fca5c9f537e4104c514affdb5ba7851300c5ecdd
[gnulib.git] / ChangeLog
1 2008-02-10  Bruno Haible  <bruno@clisp.org>
2
3         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
4         Needed when ELEMENT is #defined to 'some_type *'.
5
6 2008-02-10  Jim Meyering  <meyering@redhat.com>
7
8         New script and module: useless-if-before-free
9         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
10         * build-aux/useless-if-before-free: New file.
11         * modules/useless-if-before-free: New file.
12
13         * build-aux/gitlog-to-changelog: Use committer date, not author date.
14
15         xstrtol_error: Fix typo.
16         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
17         s/exit_failure/exit_status/.
18
19 2008-02-09  Jim Meyering  <meyering@redhat.com>
20
21         New script and module: gitlog-to-changelog
22         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
23         * modules/gitlog-to-changelog: New file.
24         * build-aux/gitlog-to-changelog: New file.
25
26 2008-02-08  Jim Meyering  <meyering@redhat.com>
27
28         Avoid two "parameter unused" warnings.
29         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
30         Mark "st" as used.
31
32         Use "git COMMAND", not "git-COMMAND".
33         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
34         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
35         * build-aux/git-version-gen: Use "git status", not "git-status".
36
37 2008-02-07  Bruno Haible  <bruno@clisp.org>
38
39         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
40         Avoids a crash on Windows Vista.
41         Reported by Simon Josefsson <simon@josefsson.org>.
42
43 2008-02-06  Bruno Haible  <bruno@clisp.org>
44
45         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
46         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
47         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
48         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
49         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
52         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
53         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
61         left-adjust flag.
62         * tests/test-snprintf-posix.h (test_function): Likewise.
63         * tests/test-sprintf-posix.h (test_function): Likewise.
64         * tests/test-vasprintf-posix.c (test_function): Likewise.
65         * doc/posix-functions/fprintf.texi: Update.
66         * doc/posix-functions/printf.texi: Update.
67         * doc/posix-functions/snprintf.texi: Update.
68         * doc/posix-functions/sprintf.texi: Update.
69         * doc/posix-functions/vfprintf.texi: Update.
70         * doc/posix-functions/vprintf.texi: Update.
71         * doc/posix-functions/vsnprintf.texi: Update.
72         * doc/posix-functions/vsprintf.texi: Update.
73         Reported by Peter Fales <psfales@alcatel-lucent.com>.
74
75 2008-02-06  Bruno Haible  <bruno@clisp.org>
76
77         Fix bug introduced on 2008-01-26.
78         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
79
80 2008-02-06  Bruno Haible  <bruno@clisp.org>
81
82         Fix bug introduced on 2007-06-10.
83         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
84         !NEED_PRINTF_FLAG_ZERO.
85
86 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
87
88         getloadavg: use libperfstat on AIX5
89         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
90
91 2008-02-03  Bruno Haible  <bruno@clisp.org>
92
93         * lib/diffseq.h: Add comments about required #includes.
94         Reported by Michael Biggs <gnulib@doubleplum.net>.
95
96 2008-02-01  Bruno Haible  <bruno@clisp.org>
97
98         * users.txt: Add gnuit.
99
100 2008-01-31  Bruno Haible  <bruno@clisp.org>
101
102         * lib/md4.c (set_uint32): Mark as inline.
103         * lib/md5.c (set_uint32): Likewise.
104         * lib/sha1.c (set_uint32): Likewise.
105         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
106         * m4/md5.m4 (gl_MD5): Likewise.
107         * m4/sha1.m4 (gl_SHA1): Likewise.
108
109 2008-01-31  Jim Meyering  <meyering@redhat.com>
110
111         Use "sizeof VAR", rather than a literal "4".
112         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
113         * lib/md4.c (md4_read_ctx): Likewise.
114         * lib/sha1.c (sha1_read_ctx): Likewise.
115
116 2008-01-31  Simon Josefsson  <simon@josefsson.org>
117
118         * tests/test-sha1.c: New file, based on test-md5.c.
119
120         * modules/crypto/sha1-tests: New file.
121
122 2008-01-31  Simon Josefsson  <simon@josefsson.org>
123
124         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
125
126 2008-01-31  Jim Meyering  <meyering@redhat.com>
127
128         Prefer "sizeof v" over the equivalent "4".
129         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
130         * lib/md5.c (set_uint32): Likewise.
131         * lib/sha1.c (set_uint32): Likewise.
132
133 2008-01-31  Simon Josefsson  <simon@josefsson.org>
134
135         * lib/sha1.c (set_uint32): Mark function as static.
136
137 2008-01-31  Simon Josefsson  <simon@josefsson.org>
138
139         md2: clarify comments to say that alignment is not required.
140         * lib/md2.h: Remove warning about alignment in comment.
141         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
142         never been required.
143
144 2008-01-31  Simon Josefsson  <simon@josefsson.org>
145
146         md4: adapt alignment constraint fix from sha1.
147         * lib/md4.c (set_uint32): New function, from sha1.c
148         (md4_read_ctx): Use it.
149         (md4_finish_ctx): Doc fix.
150         * lib/md4.h: Doc fix.
151
152 2008-01-31  Simon Josefsson  <simon@josefsson.org>
153
154         md5: adapt alignment constraint fix from sha1.
155         * lib/md5.c (set_uint32): New function, from sha1.c
156         (md5_read_ctx): Use it.
157         (md5_finish_ctx): Doc fix.
158         * lib/md5.h: Doc fix.
159
160 2008-01-30  Peter Palfrader  <weasel@debian.org>
161
162         sha1: remove the result buffer alignment constraint
163         * lib/sha1.c (set_uint32): New function.
164         (sha1_read_ctx): Rewrite to remove the result buffer alignment
165         constraint.
166         (sha1_finish_ctx): Remove comment warning about alignment constraint.
167         * lib/sha1.h: Likewise.
168
169 2008-01-30  Andreas Schwab  <schwab@suse.de>
170             Bruno Haible  <bruno@clisp.org>
171
172         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
173         correct definition of LDBL_MIN_EXP.
174
175 2008-01-30  Karl Berry  <karl@gnu.org>
176
177         * config/srclist-update: try to preserve x bit on updates.
178         * config/srclistvars.sh: update for karl.
179
180 2008-01-29  Jim Meyering  <meyering@redhat.com>
181
182         vasnprintf.c: Avoid warning about unused label
183         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
184         "overflow" label definition and associated code with the
185         same cpp condition that guards the sole use of that label.
186
187 2008-01-26  Bruno Haible  <bruno@clisp.org>
188
189         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
190         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
191         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
192         * lib/isnanl-nolibm.h (isnanl): Likewise.
193         Reported by Paul Eggert <eggert@cs.ucla.edu>.
194
195 2008-01-26  Bruno Haible  <bruno@clisp.org>
196
197         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
198         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
199
200 2008-01-26  Bruno Haible  <bruno@clisp.org>
201
202         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
203         GCC >= 4.0 built-in.
204         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
205
206 2008-01-26  Bruno Haible  <bruno@clisp.org>
207
208         Rename isnan, applicable to 'double' only, to isnand.
209         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
210         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
211         (configure.ac): Update.
212         (Include): Replace "isnan.h" with "isnand.h".
213         * m4/isnand.m4: Renamed from m4/isnan.m4.
214         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
215         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
216         instead of isnan.c.
217         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
218         instead of HAVE_ISNAN_IN_LIBC.
219         (isnand): Renamed from isnan.
220         * lib/isnand.c: New file.
221         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
222         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
223         (Makefile.am): Update.
224         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
225         Include isnand.h instead of isnan.h.
226         (main): Test isnand instead of isnan.
227         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
228         isnan-nolibm.
229         * modules/frexp (Depends-on): Likewise.
230         * modules/frexp-tests (Depends-on): Likewise.
231         * modules/frexp-nolibm (Depends-on): Likewise.
232         * modules/frexp-nolibm-tests (Depends-on): Likewise.
233         * modules/isfinite (Depends-on): Likewise.
234         * modules/round-tests (Depends-on): Likewise.
235         * modules/signbit (Depends-on): Likewise.
236         * modules/signbit-tests (Depends-on): Likewise.
237         * modules/snprintf-posix (Depends-on): Likewise.
238         * modules/sprintf-posix (Depends-on): Likewise.
239         * modules/trunc-tests (Depends-on): Likewise.
240         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
241         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
242         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
243         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
244         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
245         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
246         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
247         * modules/vasnprintf-posix (Depends-on): Likewise.
248         * modules/vasprintf-posix (Depends-on): Likewise.
249         * modules/vfprintf-posix (Depends-on): Likewise.
250         * modules/vsnprintf-posix (Depends-on): Likewise.
251         * modules/vsprintf-posix (Depends-on): Likewise.
252         * lib/frexp.c: Include isnand.h instead of isnan.h.
253         (ISNAN): Set to isnand instead of isnan.
254         * lib/isfinite.c: Include isnand.h instead of isnan.h.
255         (gl_isfinited): Use isnand instead of isnan.
256         * lib/signbitd.c: Include isnand.h instead of isnan.h.
257         (gl_signbitd): Use isnand instead of isnan.
258         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
259         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
260         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
261         (main): Use isnand instead of isnan.
262         * tests/test-round1.c: Include isnand.h.
263         (main): Use isnand instead of isnan.
264         * tests/test-round2.c: Include isnand.h instead of isnan.h.
265         (ISNAN): Set to isnand instead of isnan.
266         * tests/test-trunc1.c: Include isnand.h.
267         (main): Use isnand instead of isnan.
268         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
269         (equal): Use isnand instead of isnan.
270         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
271         isnand-nolibm.
272         * NEWS: Mention the change.
273
274 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
275             Bruno Haible  <bruno@clisp.org>
276
277         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
278         the GCC builtins for signbits are present and set
279         REPLACE_SIGNBIT_USING_GCC if so.
280         * lib/math.in.h (signbit): Define using GCC builtins if
281         REPLACE_SIGNBIT_USING_GCC is set.
282         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
283         REPLACE_SIGNBIT_USING_GCC.
284         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
285
286 2008-01-25  Jim Meyering  <meyering@redhat.com>
287
288         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
289         * lib/poll.c: Include <config.h>, not "config.h".
290         * tests/test-getaddrinfo.c: Likewise.
291
292 2008-01-25  Simon Josefsson  <simon@josefsson.org>
293
294         * modules/sockets-tests: New file.
295
296 2008-01-24  Simon Josefsson  <simon@josefsson.org>
297
298         * modules/sockets: New module, can be used to call WSA_Startup and
299         WSA_Cleanup when needed.
300
301         * lib/sockets.h, lib/sockets.c: New files.
302
303         * m4/sockets.m4: New file.
304
305         * tests/test-sockets.c: New file.
306
307 2008-01-19  Bruno Haible  <bruno@clisp.org>
308
309         * doc/posix-headers: Renamed from doc/headers.
310         * doc/posix-functions: Renamed from doc/functions.
311         * doc/gnulib.texi: Update.
312
313 2008-01-19  Bruno Haible  <bruno@clisp.org>
314
315         * doc/glibc-functions/strcasestr.texi: Include contents of
316         doc/functions/strcasestr.texi, fixing the list of platforms.
317         * doc/functions/strcasestr.texi: Remove file.
318
319 2008-01-19  Bruno Haible  <bruno@clisp.org>
320
321         * doc/glibc-functions/memmem.texi: Include contents of
322         doc/functions/memmem.texi.
323         * doc/functions/memmem.texi: Remove file.
324
325 2008-01-18  Bruno Haible  <bruno@clisp.org>
326
327         * doc/glibc-functions/*.texi: New files.
328         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
329         to use the new files.
330
331 2008-01-17  Bruno Haible  <bruno@clisp.org>
332
333         * tests/test-gethostname.c (main): Fix printf statement.
334
335 2008-01-17  Simon Josefsson  <simon@josefsson.org>
336
337         * modules/gethostname-tests: New file.
338
339         * tests/test-gethostname.c: New file.
340
341 2008-01-17  Simon Josefsson  <simon@josefsson.org>
342
343         * lib/gethostname.c: Include string.h unconditionally, strncpy is
344         used by the UNAME case.  Reported by Bruno Haible
345         <bruno@clisp.org>.
346
347 2008-01-17  Eric Blake  <ebb9@byu.net>
348
349         Convert c-strcasestr to be more efficient.
350         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
351         (Depends-on): Add c-strcase, remove malloca, strnlen.
352         * tests/test-c-strcasestr.c (main): Enhance test.
353         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
354
355 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
356
357         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
358         Use it in creating po/Makevars.
359
360 2008-01-15  Simon Josefsson  <simon@josefsson.org>
361
362         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
363         Applications that requires it should initialize libgcrypt
364         manually.
365
366 2008-01-16  Simon Josefsson  <simon@josefsson.org>
367
368         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
369
370 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
371
372         Fix problem with getdate on mingw32 reported by Simon Josefsson
373         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
374         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
375         tzname", when deciding whether to declare tzname.
376         * lib/strftime.c (tzname): Likewise.
377
378 2008-01-15  Bruno Haible  <bruno@clisp.org>
379
380         Work around a MacOS X 10.5 bug in frexpl().
381         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
382         * doc/functions/frexpl.texi: Document the bug.
383         Reported by Elias Pipping <pipping@gentoo.org>.
384
385 2008-01-14  Eric Blake  <ebb9@byu.net>
386
387         Touch up previous patch.
388         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
389         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
390
391         Convert strcasestr module to use Two-Way algorithm.
392         * modules/strcasestr-simple: New module, based on the old
393         strcasestr, but with Two-Way rather than KMP.
394         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
395         * lib/string.in.h (rpl_strcasestr): Declare.
396         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
397         performance.
398         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
399         * modules/string (Makefile.am): Support strcasestr.
400         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
401         * modules/strcasestr-tests (Depends-on): Check for alarm.
402         * tests/test-strcasestr.c: Augment test.
403         * lib/str-two-way.h: Clean up stray macro.
404         * NEWS: Document new module.
405         * MODULES.html.sh (string handling): Likewise.
406         * doc/functions/strcasestr.texi: New file.
407         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
408         here, since it is not a POSIX function.
409
410 2008-01-14  Colin Watson  <cjwatson@debian.org>
411             Bruno Haible  <bruno@clisp.org>
412
413         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
414         works fine; if not, set REPLACE_STRSIGNAL.
415         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
416         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
417         REPLACE_STRSIGNAL.
418         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
419         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
420         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
421
422 2008-01-14  Bruno Haible  <bruno@clisp.org>
423
424         * modules/strsignal (Include): Change to <string.h>.
425
426 2008-01-14  Colin Watson  <cjwatson@debian.org>
427
428         * modules/argp (Notice): Add a notice recommending to change
429         XGETTEXT_OPTIONS.
430         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
431
432 2008-01-13  Colin Watson  <cjwatson@debian.org>
433
434         * modules/strsignal-tests: New file.
435         * tests/test-strsignal.c: New file.
436
437         * lib/strsignal.c: New file, from glibc with modifications.
438         * lib/siglist.h: New file, from glibc with modifications.
439         * lib/string.in.h (strsignal): New declaration.
440         * m4/strsignal.m4: New file.
441         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
442         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
443         * modules/strsignal: New file.
444         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
445         HAVE_DECL_STRSIGNAL.
446
447 2008-01-13  Bruno Haible  <bruno@clisp.org>
448
449         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
450         locale encoding is not ASCII. Needed for OpenBSD 4.0.
451         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
452         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
453
454 2008-01-13  Bruno Haible  <bruno@clisp.org>
455
456         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
457         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
458         * lib/argp.h (__attribute__): Likewise.
459         * lib/c-stack.c (__attribute__): Likewise.
460         * lib/error.h (__attribute__): Likewise.
461         * lib/fts.c (__attribute__): Likewise.
462         * lib/openat.h (__attribute__): Likewise.
463         * lib/stdio.in.h (__attribute__): Likewise.
464         * lib/string.in.h (__attribute__): Likewise.
465         * lib/utimens.c (__attribute__): Likewise.
466         * lib/vasnprintf.h (__attribute__): Likewise.
467         * lib/xalloc.h (__attribute__): Likewise.
468         * lib/xprintf.h (__attribute__): Likewise.
469         * lib/xstrtol.h (__attribute__): Likewise.
470         * lib/xvasprintf.h (__attribute__): Likewise.
471
472 2008-01-12  Bruno Haible  <bruno@clisp.org>
473
474         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
475         * doc/glibc-headers/a.out.texi: New file.
476         * doc/glibc-headers/aliases.texi: New file.
477         * doc/glibc-headers/alloca.texi: New file.
478         * doc/glibc-headers/ar.texi: New file.
479         * doc/glibc-headers/argp.texi: New file.
480         * doc/glibc-headers/argz.texi: New file.
481         * doc/glibc-headers/byteswap.texi: New file.
482         * doc/glibc-headers/crypt.texi: New file.
483         * doc/glibc-headers/endian.texi: New file.
484         * doc/glibc-headers/envz.texi: New file.
485         * doc/glibc-headers/err.texi: New file.
486         * doc/glibc-headers/error.texi: New file.
487         * doc/glibc-headers/execinfo.texi: New file.
488         * doc/glibc-headers/fpu_control.texi: New file.
489         * doc/glibc-headers/fstab.texi: New file.
490         * doc/glibc-headers/fts.texi: New file.
491         * doc/glibc-headers/getopt.texi: New file.
492         * doc/glibc-headers/ieee754.texi: New file.
493         * doc/glibc-headers/ifaddrs.texi: New file.
494         * doc/glibc-headers/libintl.texi: New file.
495         * doc/glibc-headers/mcheck.texi: New file.
496         * doc/glibc-headers/mntent.texi: New file.
497         * doc/glibc-headers/obstack.texi: New file.
498         * doc/glibc-headers/paths.texi: New file.
499         * doc/glibc-headers/printf.texi: New file.
500         * doc/glibc-headers/pty.texi: New file.
501         * doc/glibc-headers/resolv.texi: New file.
502         * doc/glibc-headers/shadow.texi: New file.
503         * doc/glibc-headers/sysexits.texi: New file.
504         * doc/glibc-headers/ttyent.texi: New file.
505
506 2008-01-12  Jim Meyering  <meyering@redhat.com>
507
508         announce-gen: emit Gnulib's git-based version string.
509         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
510         New option --gnulib-version=V, where V is expected to be
511         the output of running git describe in the gnulib directory.
512         (get_tool_versions): Request feedback on xdelta.  I suspect it's
513         not useful, and plan to stop publishing an xdelta file with each
514         coreutils release.
515
516         * build-aux/announce-gen: Also check for lzma-compressed files.
517
518 2008-01-11  Bruno Haible  <bruno@clisp.org>
519
520         * tests/test-memmem.c (main): Increase maximum allowed time.
521         * tests/test-strstr.c (main): Likewise.
522
523 2008-01-11  Bruno Haible  <bruno@clisp.org>
524
525         * doc/functions/memmem.texi: Add more precisions about platforms.
526         * doc/functions/strstr.texi: Likewise.
527
528 2008-01-10  Eric Blake  <ebb9@byu.net>
529
530         * m4/strstr.m4: Delete cruft from copy-n-paste.
531         Reported by Bruno Haible.
532
533 2008-01-10  Bruno Haible  <bruno@clisp.org>
534
535         Make c-strstr rely on strstr.
536         * lib/c-strstr.c: Don't include str-kmp.h.
537         (c_strstr): Define in terms of strstr.
538         * modules/c-strstr (Files): Remove lib/str-kmp.h.
539         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
540
541 2008-01-10  Bruno Haible  <bruno@clisp.org>
542
543         * doc/gnulib.texi (String Functions in C Locale): New section.
544         * doc/c-ctype.texi: New file.
545         * doc/c-strcase.texi: New file.
546         * doc/c-strcaseeq.texi: New file.
547         * doc/c-strcasestr.texi: New file.
548         * doc/c-strstr.texi: New file.
549         * doc/c-strtod.texi: New file.
550         * doc/c-strtold.texi: New file.
551
552 2008-01-10  Eric Blake  <ebb9@byu.net>
553
554         * lib/relocatable.h: Fix a comment.
555
556 2008-01-10  Eric Blake  <ebb9@byu.net>
557
558         Share two-way algorithm.
559         * lib/str-two-way.h: New file, merged from...
560         * lib/memmem.c: ...here...
561         * lib/strstr.c: ...and here.
562         * modules/memmem (Files): Use it.
563         * modules/strstr (Files): Likewise.
564
565         Avoid quadratic strstr implementations.
566         * lib/strstr.c: New file.
567         * m4/strstr.m4: Likewise.
568         * modules/strstr: Likewise.
569         * modules/strstr-tests: Likewise.
570         * tests/test-strstr.c: Likewise.
571         * lib/string.in.h (rpl_strstr): Declare.
572         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
573         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
574         * modules/string (Makefile.am): Likewise.
575         * MODULES.html.sh (string handling): Mention new module.
576         * doc/functions/strstr.texi (strstr): Document the bug.
577
578 2008-01-10  Bruno Haible  <bruno@clisp.org>
579
580         * lib/relocatable.h (relocate): State whether result is freshly
581         allocated or not.
582         * lib/relocatable.c (relocate): Return a freshly allocated string
583         instead of a pointer to a privately held string.
584         Reported by Sylvain Beucler <beuc@gnu.org>.
585
586 2008-01-10  Colin Watson  <cjwatson@debian.org>
587
588         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
589         s/S_ISNLK/S_ISLNK/.
590
591 2008-01-09  Bruno Haible  <bruno@clisp.org>
592
593         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
594         and other files.
595         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
596         if it's only a guess.
597         * modules/memmem: Simplify by depending on memmem-simple.
598
599 2008-01-09  Bruno Haible  <bruno@clisp.org>
600
601         Work around OpenBSD 4.0 tdelete() bug.
602         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
603         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
604         macros and don't redefine the enum values.
605         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
606         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
607         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
608
609 2008-01-09  Bruno Haible  <bruno@clisp.org>
610
611         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
612         (main): Don't perform the tests if setlocale did not install a UTF-8
613         locale. Needed on OpenBSD 4.0.
614         * modules/wcwidth-tests (Depends-on): Add localcharset.
615
616 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
617
618         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
619         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
620         * NEWS: announce this.
621         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
622
623 2008-01-09  Simon Josefsson  <simon@josefsson.org>
624         and Eric Blake  <ebb9@byu.net>
625
626         Add memmem-simple module.
627         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
628         (gl_FUNC_MEMMEM): Separate performance from presence checks.
629         * modules/memmem-simple: New file.
630         * modules/memmem (Description): Tweak.
631         * MODULES.html.sh (string handling): Mention new module.
632         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
633         addressed by memmem-simple.
634         * NEWS: Document the difference.
635
636 2008-01-09  Eric Blake  <ebb9@byu.net>
637
638         Give gcc some memmem optimization hints.
639         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
640         (strcasestr): Declare as pure.
641         * modules/memmem (Maintainer): Claim my implementation.
642
643 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
644
645         Support AIX 6.1 and higher.
646         * build-aux/config.libpath: Likewise.
647         * build-aux/config.rpath: Likewise.
648
649 2008-01-08  Jim Meyering  <meyering@redhat.com>
650             Bruno Haible  <bruno@clisp.org>
651
652         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
653         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
654         Reported by Peter Fales in
655         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
656
657 2008-01-08  Bruno Haible  <bruno@clisp.org>
658
659         * modules/unictype/category-of (Depends-on): Add
660         unictype/category-none.
661         * modules/unictype/category-and-tests (Depends-on): Add
662         unictype/category-{L,N,Lu,Nd}.
663         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
664         * modules/unictype/category-or-tests (Depends-on): Add
665         unictype/category-{L,N}.
666         * modules/unictype/category-name-tests (Depends-on): Add
667         unictype/category-{Z,Nl}.
668         Reported by Simon Josefsson.
669
670 2008-01-08  Bruno Haible  <bruno@clisp.org>
671
672         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
673         convention better.
674         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
675         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
676         Reported by Peter Miller <millerp@canb.auug.org.au>.
677
678 2008-01-08  Eric Blake  <ebb9@byu.net>
679
680         Rewrite memmem to guarantee linear complexity without malloc.
681         * lib/memmem.c (memmem): Use Two-Way rather than
682         Knuth-Morris-Pratt, to allow O(1) space usage.
683         (critical_factorization, two_way_short_needle)
684         (two_way_long_needle): New functions.
685         (knuth_morris_pratt): Delete.
686         * modules/memmem (Depends-on): No longer need malloca or stdbool.
687         Add stdint.
688         * tests/test-memmem.c (main): Add tests for periodic needle and
689         sublinear performance.
690         * doc/functions/memmem.texi (memmem): Document other deficiencies
691         in cygwin and older glibc.
692
693 2008-01-08  Bruno Haible  <bruno@clisp.org>
694
695         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
696         augmentation.
697
698 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
699
700         Add a configure time option: --disable-acl.
701         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
702         AC_ARG_ENABLE(acl).
703
704 2008-01-06  Simon Josefsson  <simon@josefsson.org>
705
706         * tests/test-localename.c: Don't include obsolete "setenv.h".
707
708         * modules/localename-tests (Depends-on): Need unsetenv.
709
710 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
711
712         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
713
714 2008-01-06  Colin Watson  <cjwatson@debian.org>
715
716         * users.txt: Add man-db.
717
718 2008-01-07  Bruno Haible  <bruno@clisp.org>
719
720         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
721         previous section name.
722
723 2008-01-07  Bruno Haible  <bruno@clisp.org>
724
725         * lib/progname.c (set_program_name): Don't strip off a leading
726         "lt-" prefix outside a .libs directory.
727         Suggested by Paul Eggert.
728
729 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
730             Bruno Haible  <bruno@clisp.org>
731
732         Improve memory cleanup in 'relocatable' module.
733         * lib/relocatable.h (compute_curr_prefix): Change return type to
734         'char *'.
735         * lib/relocatable.c (compute_curr_prefix): Change return type to
736         'char *'. Free curr_installdir after use.
737         (relocate): Free curr_prefix_better after use.
738         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
739
740 2008-01-01  Bruno Haible  <bruno@clisp.org>
741
742         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
743         failure on older glibc systems.
744         Reported by Peter Fales <psfales@alcatel-lucent.com>.
745
746 2008-01-05  Eric Blake  <ebb9@byu.net>
747
748         Avoid quadratic system memmem.
749         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
750         Reported by Ralf Wildenhues.
751
752         Fix memmem test for mingw.
753         * modules/memmem-tests (configure.ac): Check for alarm.
754         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
755         it.
756         * doc/functions/memmem.texi: New file.
757         * doc/gnulib.texi (Function Substitutes): Add memmem.
758         Reported by Bruno Haible.
759
760 2008-01-04  Bruno Haible  <bruno@clisp.org>
761
762         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
763         Require gl_HEADER_STRINGS_H_DEFAULTS, not
764         gl_HEADER_STRING_H_DEFAULTS.
765
766 2008-01-04  Eric Blake  <ebb9@byu.net>
767
768         Shorten duration of memmem test.
769         * tests/test-memmem.c (main): Use alarm to declare failure if test
770         is taking too long.
771         Reported by Ralf Wildenhues.
772
773 2007-12-21  Simon Josefsson  <simon@josefsson.org>
774
775         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
776         string, needed by strerror.
777
778 2008-01-03  Colin Watson  <cjwatson@debian.org>
779             Bruno Haible  <bruno@clisp.org>
780
781         * doc/gnulib-tool.texi (Localization): New section.
782
783 2008-01-02  Bruno Haible  <bruno@clisp.org>
784
785         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
786         variables to 'unsigned char *' type.
787         Reported by Paul Eggert.
788
789 2008-01-02  Jim Meyering  <jim@meyering.net>
790
791         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
792
793 2007-12-31  Jim Meyering  <jim@meyering.net>
794
795         Avoid use of private FTS type name.
796         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
797
798 2007-12-30  Karl Berry  <karl@gnu.org>
799
800         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
801         work around defect in Texinfo and/or the standalone Info browser.
802
803 2007-12-30  Bruno Haible  <bruno@clisp.org>
804
805         Unify 5 copies of the KMP code.
806         * lib/str-kmp.h: New file.
807         * lib/c-strcasestr.c: Include str-kmp.h.
808         (knuth_morris_pratt): Remove function.
809         (c_strcasestr): Update.
810         * lib/c-strstr.c: Include str-kmp.h.
811         (knuth_morris_pratt): Remove function.
812         (c_strcasestr): Update.
813         * lib/mbscasestr.c: Include str-kmp.h.
814         (knuth_morris_pratt_unibyte): Remove function.
815         * lib/mbsstr.c: Include str-kmp.h.
816         (knuth_morris_pratt_unibyte): Remove function.
817         * lib/strcasestr.c: Include str-kmp.h.
818         (knuth_morris_pratt): Remove function.
819         (strcasestr): Update.
820         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
821         * modules/c-strstr (Files): Likewise.
822         * modules/mbscasestr (Files): Likewise.
823         * modules/mbsstr (Files): Likewise.
824         * modules/strcasestr (Files): Likewise.
825         Suggested by Paul Eggert.
826
827 2007-12-30  Bruno Haible  <bruno@clisp.org>
828
829         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
830         defined.
831
832 2007-12-30  Bruno Haible  <bruno@clisp.org>
833
834         * lib/xmalloca.h: Include xalloc.h.
835         (xnmalloca): New macro.
836
837 2007-12-30  Bruno Haible  <bruno@clisp.org>
838
839         * lib/malloca.h (nmalloca): New macro.
840         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
841         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
842         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
843         knuth_morris_pratt_multibyte): Likewise.
844         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
845         knuth_morris_pratt_multibyte): Likewise.
846         * lib/memmem.c (knuth_morris_pratt): Likewise.
847         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
848
849 2007-12-25  Bruno Haible  <bruno@clisp.org>
850
851         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
852         * lib/glob.c: Don't include openat.h.
853         (link_exists2_p): Add back the code that deals with the
854         !GLOB_ALTDIRFUNC case.
855         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
856         let it do the filename concatenation.
857         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
858         * modules/glob (Depends-on): Remove openat.
859
860 2007-12-31  Bruno Haible  <bruno@clisp.org>
861
862         * modules/dirfd (License): Change to LGPLv2+.
863         Approved by Jim Meyering.
864
865 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
866
867         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
868         when multiplying M by sizeof (size_t).
869
870 2007-12-10  Martin Lambers  <marlam@marlam.de>
871
872         Override getpagesize on mingw.
873         * lib/getpagesize.c: New file.
874         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
875         * modules/getpagesize (Files): Add lib/getpagesize.c.
876         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
878         REPLACE_GETPAGESIZE.
879         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
880
881 2007-12-25  Bruno Haible  <bruno@clisp.org>
882
883         * modules/localcharset (Notice): New field.
884         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
885         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
886
887 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
888             Bruno Haible  <bruno@clisp.org>
889
890         Avoid using the syntax symbol() in formatted documentation.
891         * MODULES.html.sh (func_module): When replacing symbol() with a
892         hyperlink, remove the parentheses. Show an error if some remain.
893         Recognize and render the '...' syntax.
894         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
895         Rework. Add paragraph about GCC's inlining.
896         * doc/alloca.texi: Likewise.
897         * doc/error.texi: Remove parentheses from symbol reference.
898         * doc/gnulib-intro.texi: Likewise.
899         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
900         * modules/fnmatch (Description): Reword to say "the ... function".
901         * modules/full-read (Description): Likewise.
902         * modules/full-write (Description): Likewise.
903         * modules/safe-read (Description): Likewise.
904         * modules/safe-write (Description): Likewise.
905         * modules/strchrnul (Description): Likewise.
906         * modules/trim (Description): Likewise.
907         * modules/error (Description): Remove parentheses from symbol
908         references.
909         * modules/verror (Description): Likewise.
910         Reported by Karl Berry.
911
912 2007-12-25  Bruno Haible  <bruno@clisp.org>
913
914         Fixup after 2007-10-16 commit.
915         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
916
917 2007-12-24  Bruno Haible  <bruno@clisp.org>
918
919         Make --enable-relocatable work with DESTDIR.
920         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
921         to compute installdir from destprog.
922         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
923         also set the RELOC_DESTDIR variable.
924         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
925
926 2007-12-24  Bruno Haible  <bruno@clisp.org>
927
928         Fix link error due to xalloc_die().
929         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
930         of xreadlink.
931         * lib/relocwrapper.c: Update comments.
932         * build-aux/install-reloc: Remove xreadlink.c from file list.
933         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
934         xreadlink.c.
935         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
936
937 2007-12-24  Bruno Haible  <bruno@clisp.org>
938
939         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
940         * lib/setenv.h: Remove file.
941         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
942         lib/setenv.h.
943         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
944         (Depends-on): Add stdlib.
945         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
946         gl_FUNC_UNSETENV.
947         (Include): Replace setenv.h with <stdlib.h>.
948         * modules/unsetenv: New file.
949         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
950         * lib/unsetenv.c: Include <stdlib.h> first.
951         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
952         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
953         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
954         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
955         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
956         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
957         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
958         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
959         * doc/functions/unsetenv.texi: Update.
960         * modules/xsetenv (Depends-on): Add unsetenv.
961         * modules/getdate (Depends-on): Likewise.
962         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
963         * lib/xsetenv.c: Don't include setenv.h.
964         * lib/getdate.y: Likewise.
965         * lib/relocwrapper.c: Likewise.
966         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
967         (Depends-on): Add stdlib.
968         * NEWS: Mention the changes.
969         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
970
971 2007-12-23  Bruno Haible  <bruno@clisp.org>
972
973         * lib/memmem.c (memmem): Use lowercase variable names. Tab
974         indentation.
975
976 2007-12-23  Bruno Haible  <bruno@clisp.org>
977
978         * lib/c-strcasestr.c: Add more comments.
979         * lib/c-strstr.c: Likewise.
980         * lib/mbscasestr.c: Likewise.
981         * lib/mbsstr.c: Likewise.
982         * lib/strcasestr.c: Likewise.
983         * lib/memmem.c: Likewise.
984
985 2007-12-23  Bruno Haible  <bruno@clisp.org>
986
987         * tests/test-memmem.c: Include <string.h> first.
988
989 2007-12-22  Bruno Haible  <bruno@clisp.org>
990
991         * gnulib-tool (func_create_testdir): Change $auxdir while generating
992         the contents of $testsbase.
993         Reported by Ralf Wildenhues.
994
995 2007-12-22  Bruno Haible  <bruno@clisp.org>
996
997         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
998         two variables local_ldadd_before, local_ldadd_last.
999
1000 2007-12-20  Eric Blake  <ebb9@byu.net>
1001
1002         Work around circular library issue when cross-compiling.
1003         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
1004         that progname.o does not need to pull in rpl_memcmp.
1005
1006 2007-12-19  Eric Blake  <ebb9@byu.net>
1007
1008         Fix memmem to avoid O(n^2) worst-case complexity.
1009         * lib/memmem.c (knuth_morris_pratt): New function.
1010         (memmem): Use it if first few naive iterations fail.
1011         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
1012         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
1013         * modules/memchr (License): Likewise.
1014         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
1015         malloca.
1016         * tests/test-memmem.c: Rewrite, borrowing ideas from
1017         test-mbsstr1.c; the old version wouldn't even compile!
1018         * modules/memmem-tests: New file.
1019         * lib/string.in.h (rpl_memmem): Add declaration.
1020         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
1021         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
1022         REPLACE_MEMMEM.
1023
1024 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1025
1026         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
1027         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
1028         before any system include files, and undef after them all.  This
1029         should fix a problem on VMS reported by John E. Malmberg in
1030         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
1031
1032 2007-12-17  Eric Blake  <ebb9@byu.net>
1033
1034         Revert addition of verify, for BSD/OS.
1035         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
1036         can't handle large files, for the sake of obsolete platforms.
1037         * modules/fseeko (Depends-on): Remove verify.
1038         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
1039         * doc/functions/ftello.texi (ftello): Likewise.
1040         * doc/functions/fgetpos.texi (fgetpos): Likewise.
1041         Reported by Larry Jones.
1042
1043 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
1044
1045         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
1046         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
1047
1048 2007-12-17  Jim Meyering  <meyering@redhat.com>
1049
1050         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
1051         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
1052         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
1053         * modules/getcwd (Depends-on): Add openat.
1054         Reported by Petr Salinger.
1055
1056 2007-12-17  Bruno Haible  <bruno@clisp.org>
1057
1058         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
1059         avoid a segmentation fault of the configure test on x86_64 systems.
1060
1061 2007-12-15  Jim Meyering  <meyering@redhat.com>
1062
1063         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
1064
1065 2007-12-13  Eric Blake  <ebb9@byu.net>
1066
1067         Another fseek test.
1068         * tests/test-fseek.c (main): Also test ungetc handling.
1069         * tests/test-fseeko.c (main): Likewise.
1070         * modules/fseeko (Depends-on): Add verify.
1071         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
1072         large.
1073         Reported by Larry Jones.
1074
1075         Fix fseeko on mingw.
1076         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
1077         seek.
1078
1079         Beef up fseek tests.
1080         * tests/test-fseek.c (main): Also test eof handling.
1081         * tests/test-fseeko.c (main): Likewise.
1082         Reported by Larry Jones.
1083
1084 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
1085
1086         Fix fseeko on BSD-based platforms.
1087         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
1088         successful seek.
1089
1090 2007-12-12  Eric Blake  <ebb9@byu.net>
1091
1092         Allow circular dependency of separate libtests.a
1093         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
1094         when use_libtests.
1095
1096 2007-12-11  Eric Blake  <ebb9@byu.net>
1097
1098         Fix bug with -0.0L in previous patch.
1099         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
1100         * tests/test-isnan.c (main): Also test on zeroes.
1101         * tests/test-isnanf.c (main): Likewise.
1102         * tests/test-isnanl.h (main): Likewise.
1103
1104         Detect pseudo-denormals on x86 even when cross-compiling.
1105         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
1106         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
1107         invalid bit patterns that happen to satisfy ==.
1108
1109         Avoid link failures with separate libtests.a.
1110         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
1111         last, to satisfy circular dependencies.
1112
1113 2007-12-11  Eric Blake  <ebb9@byu.net>
1114         and Bruno Haible  <bruno@clisp.org>
1115
1116         Fix OpenBSD 4.0 <float.h> handling of long double.
1117         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
1118         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
1119         * doc/headers/float.texi (float.h): Document OpenBSD bug.
1120
1121 2007-12-11  Jim Meyering  <meyering@redhat.com>
1122
1123         * users.txt: Add libvirt.
1124
1125         Support versions of autoconf prior to 2.59c.
1126         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
1127         if it is not already defined.
1128
1129 2007-12-09  Bruno Haible  <bruno@clisp.org>
1130
1131         Let 'gnulib-tool --import' collect sources needed for the tests in
1132         tests/ rather than in lib/.
1133         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
1134         argument. If true, add rules to generate libtests.a, and put libtests.a
1135         into $(LDADD). Consider source files in subdirectories and set
1136         uses_subdirs.
1137         (func_emit_initmacro_start, func_emit_initmacro_end,
1138         func_emit_initmacro_done): Pass all arguments explicitly.
1139         (func_import): Determine two module lists main_modules,
1140         testsrelated_modules. Determine use_libtests. Determine two variables
1141         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
1142         instead of just sed_transform_lib_file. Determine two variables
1143         main_files and testsrelated_files. Compute 'files' as the union of
1144         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
1145         func_add_or_update. In the generated gnulib-comp.m4, collect the
1146         object files for tests/ in different variables than those for lib/.
1147         Substitute LIBTESTS_LIBDEPS.
1148         (func_create_testdir): Combine the uses_subdirs results from
1149         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
1150
1151 2007-12-09  Bruno Haible  <bruno@clisp.org>
1152
1153         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
1154         the build-aux directory.
1155
1156 2007-12-09  Bruno Haible  <bruno@clisp.org>
1157
1158         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
1159         introduced on 2006-09-09.
1160
1161 2007-12-07  Jim Meyering  <meyering@redhat.com>
1162
1163         Let these macros work also with autoconf-2.59.
1164         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
1165         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
1166         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
1167
1168 2007-12-06  Jim Meyering  <meyering@redhat.com>
1169
1170         Avoid a configure-time syntax error in gl_FUNC_ACL.
1171         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
1172         function in each branch, before testing the cache variable.
1173
1174 2007-12-04  Eric Blake  <ebb9@byu.net>
1175
1176         Make scripts executable.
1177         * build-aux/config.guess: Add execute permissions.
1178         * build-aux/config.sub: Likewise.
1179         * build-aux/gendocs.sh: Likewise.
1180
1181         Fix frexp on mingw.
1182         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
1183         cross-compiling.
1184         * doc/functions/frexp.texi (frexp): Document the bug.
1185
1186         Make cygwin fseeko check more reliable.
1187         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
1188         version numbers, rather than unrelated feature check.
1189         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
1190         * doc/functions/ftello.texi (ftello): Likewise.
1191         Reported by Bruno Haible.
1192
1193         * m4/strerror.m4: Bump version number.
1194
1195 2007-12-03  Bruno Haible  <bruno@clisp.org>
1196
1197         * doc/functions/mprotect.texi: Mention the mingw problem.
1198
1199 2007-12-03  Eric Blake  <ebb9@byu.net>
1200
1201         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
1202         REPLACE_STRERROR is initialized before this macro.
1203
1204 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
1205
1206         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
1207         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
1208         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
1209         put -lsec in even for programs other than 'ls'.  This fixes a problem
1210         for gettext reported by Bruno Haible in
1211         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
1212         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
1213         Add support for Solaris 10.  This isn't efficient, but should get the
1214         job done for now.
1215
1216 2007-12-03  James Youngman  <jay@gnu.org>
1217
1218         * doc/regexprops-generic.texi: change "an close-group" to "a
1219         close-group" and "illegal" to "not allowed".
1220
1221 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1222
1223         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
1224         pr_byname.h. Needed for the rare case when the maintainer has done
1225         "make maintainer-clean" in the source directory and then attempts a
1226         build outside the source directory.
1227         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
1228         scripts_byname.h.
1229
1230 2007-12-02  Martin Lambers <marlam@marlam.de>
1231             Bruno Haible  <bruno@clisp.org>
1232
1233         * lib/getpagesize.h: Remove file.
1234         * lib/unistd.in.h: Include declaration of getpagesize here.
1235         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
1236         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
1237         HAVE_SYS_PARAM_H.
1238         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
1239         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
1240         * modules/getpagesize (Files): Remove lib/getpagesize.h.
1241         (Depends-on): Add unistd.
1242         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1243         (Include): Use <unistd.h> instead of getpagesize.h.
1244         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
1245         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
1246         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
1247         gl_GETPAGESIZE invocation, already handled by module dependency.
1248         * lib/pagealign_alloc.c: Don't include getpagesize.h.
1249
1250 2007-12-02  Bruno Haible  <bruno@clisp.org>
1251
1252         * modules/strings-tests: New file.
1253         * tests/test-strings.c: New file.
1254
1255         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
1256         * lib/strings.in.h: New file.
1257         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
1258         * m4/strings_h.m4: New file.
1259         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
1260         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
1261         * modules/strings: New file.
1262         * modules/string (Makefile.am): Update.
1263         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
1264         Reported by Karl Berry.
1265
1266 2007-12-01  Eric Blake  <ebb9@byu.net>
1267
1268         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
1269         accomodate fix in cygwin 1.5.25.
1270
1271 2007-12-01  Jim Meyering  <meyering@redhat.com>
1272
1273         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
1274         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
1275         that would inhibit utf8-optimization of a regexp containing line-
1276         or buffer-anchors, e.g., `^', `$'.
1277
1278 2007-11-30  Bruno Haible  <bruno@clisp.org>
1279
1280         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
1281         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
1282         glthread_recursive_lock_init.
1283         * lib/lock.c (glthread_recursive_lock_init)
1284         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
1285         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
1286
1287 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
1288
1289         New function qset_acl, like set_acl but with syscall semantics.
1290         * lib/acl.h (qset_acl): New decl.
1291         * lib/acl.c (qset_acl): New function.
1292         (set_acl): Use new function.  Use more-consistent diagnostics.
1293
1294 2007-11-28  Jim Meyering  <meyering@redhat.com>
1295
1296         * modules/physmem (License): Change from GPL to LGPLv2+.
1297
1298 2007-11-26  Bruno Haible  <bruno@clisp.org>
1299
1300         * lib/vasnprintf.c (decode_long_double): Don't abort if the
1301         'long double' type has excess precision.
1302         Reported by Jim Meyering in
1303         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
1304
1305 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1306
1307         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
1308         Sync from <http://gnu.org/licenses>.
1309         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
1310         with license text from same location.
1311         * doc/maintain.texi, doc/standards.texi:  Sync from
1312         <http://savannah.gnu.org/projects/gnustandards>.
1313
1314 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
1315         and Jim Meyering  <meyering@redhat.com>
1316
1317         Adjust getdate' grammar to accept a slightly more regular language.
1318         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
1319         Before, the former was rejected.
1320         * lib/getdate.y (digits_to_date_time): New function, factored
1321         out of ...
1322         (number): ...here.  Just call digits_to_date_time.
1323         (hybrid): New non-terminal to handle an <unsigned number,
1324         signed relative offset> sequence consistently.
1325
1326 2007-11-18  Jim Meyering  <meyering@redhat.com>
1327
1328         Pull my changes from coreutils:
1329         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
1330         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
1331         use of $gnulib_tool_option_extras, so that it's separated from the
1332         preceding argument.
1333
1334         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
1335         * build-aux/bootstrap (cp_mark_as_generated): Create any required
1336         parent destination directories before copying a file into place.
1337
1338 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
1339
1340         bootstrap: work also with 4-argument variant of AC_INIT
1341         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
1342
1343 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
1344
1345         Port test-getaddrinfo to Solaris.
1346         Problem reported by Bruno Haible in
1347         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
1348         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
1349         explanation of setting 'hints'.
1350         Don't reject an implementation merely because it returns EAI_SERVICE.
1351         (EAI_SERVICE): Define to 0 if not defined.
1352
1353 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
1354
1355         The license of gnu-make and posix-shell is now "GPLed build tool".
1356         * modules/gnu-make (License): Likewise.
1357         * modules/posix-shell (License): Likewise.
1358
1359         New module posix-shell, for determining a POSIX shell
1360         or perhaps something that is close enough to a POSIX shell.
1361         * m4/posix-shell.m4: New file.
1362         * modules/posix-shell: New file.
1363
1364         * MODULES.html.sh: Mention new module.
1365
1366         New module gnu-make, for determining whether we're using GNU Make.
1367         * m4/gnu-make.m4: New file.
1368         * modules/gnu-make: New file.
1369         * MODULES.html.sh: Mention new module.
1370
1371 2007-11-14  Jim Meyering  <meyering@redhat.com>
1372
1373         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
1374         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
1375         use this macro to create a function _definition_.
1376         Remove useless "#undef ARGMATCH_DIE".
1377
1378 2007-11-14  Bruno Haible  <bruno@clisp.org>
1379
1380         * lib/config.charset: Update for OpenBSD 4.1.
1381         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
1382
1383 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
1384
1385         Document 64-bit #if problems in stdint.texi.
1386         * doc/headers/stdint.texi (stdint.h): Mention problems with
1387         64-bit-#if, and how to work around them.
1388
1389         Don't insist on 'long long int' support in the preprocessor.  It
1390         breaks too many things.  For example, PRIdMAX still uses a 'long
1391         long int' format with the latest Sun compiler, even though
1392         HAVE_LONG_LONG_INT isn't defined due to that compiler's
1393         preprocessor problem.  This causes the latest coreutils to dump
1394         core on Solaris 10 sparc with the Sun C compiler.
1395         Instead, fix the 2007-10-16 problem in a different way, by evaluating
1396         the troublesome expressions at configure-time, not at #if-time.
1397         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
1398         preprocessor.
1399         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
1400         compile-time C checks, done at 'configure'-time.
1401         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
1402         * modules/inttypes (Makefile): Substitute the new symbols that
1403         gl_INTTYPES_H now generates.
1404         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
1405
1406 2007-11-12  Bruno Haible  <bruno@clisp.org>
1407
1408         Tests for Unicode character classification functions.
1409
1410         * modules/unictype/bidicategory-byname-tests: New file.
1411         * modules/unictype/bidicategory-name-tests: New file.
1412         * modules/unictype/bidicategory-of-tests: New file.
1413         * modules/unictype/bidicategory-test-tests: New file.
1414         * modules/unictype/block-list-tests: New file.
1415         * modules/unictype/block-of-tests: New file.
1416         * modules/unictype/block-test-tests: New file.
1417         * modules/unictype/category-C-tests: New file.
1418         * modules/unictype/category-Cc-tests: New file.
1419         * modules/unictype/category-Cf-tests: New file.
1420         * modules/unictype/category-Cn-tests: New file.
1421         * modules/unictype/category-Co-tests: New file.
1422         * modules/unictype/category-Cs-tests: New file.
1423         * modules/unictype/category-L-tests: New file.
1424         * modules/unictype/category-Ll-tests: New file.
1425         * modules/unictype/category-Lm-tests: New file.
1426         * modules/unictype/category-Lo-tests: New file.
1427         * modules/unictype/category-Lt-tests: New file.
1428         * modules/unictype/category-Lu-tests: New file.
1429         * modules/unictype/category-M-tests: New file.
1430         * modules/unictype/category-Mc-tests: New file.
1431         * modules/unictype/category-Me-tests: New file.
1432         * modules/unictype/category-Mn-tests: New file.
1433         * modules/unictype/category-N-tests: New file.
1434         * modules/unictype/category-Nd-tests: New file.
1435         * modules/unictype/category-Nl-tests: New file.
1436         * modules/unictype/category-No-tests: New file.
1437         * modules/unictype/category-P-tests: New file.
1438         * modules/unictype/category-Pc-tests: New file.
1439         * modules/unictype/category-Pd-tests: New file.
1440         * modules/unictype/category-Pe-tests: New file.
1441         * modules/unictype/category-Pf-tests: New file.
1442         * modules/unictype/category-Pi-tests: New file.
1443         * modules/unictype/category-Po-tests: New file.
1444         * modules/unictype/category-Ps-tests: New file.
1445         * modules/unictype/category-S-tests: New file.
1446         * modules/unictype/category-Sc-tests: New file.
1447         * modules/unictype/category-Sk-tests: New file.
1448         * modules/unictype/category-Sm-tests: New file.
1449         * modules/unictype/category-So-tests: New file.
1450         * modules/unictype/category-Z-tests: New file.
1451         * modules/unictype/category-Zl-tests: New file.
1452         * modules/unictype/category-Zp-tests: New file.
1453         * modules/unictype/category-Zs-tests: New file.
1454         * modules/unictype/category-and-not-tests: New file.
1455         * modules/unictype/category-and-tests: New file.
1456         * modules/unictype/category-byname-tests: New file.
1457         * modules/unictype/category-name-tests: New file.
1458         * modules/unictype/category-none-tests: New file.
1459         * modules/unictype/category-of-tests: New file.
1460         * modules/unictype/category-or-tests: New file.
1461         * modules/unictype/category-test-withtable-tests: New file.
1462         * modules/unictype/combining-class-tests: New file.
1463         * modules/unictype/ctype-alnum-tests: New file.
1464         * modules/unictype/ctype-alpha-tests: New file.
1465         * modules/unictype/ctype-blank-tests: New file.
1466         * modules/unictype/ctype-cntrl-tests: New file.
1467         * modules/unictype/ctype-digit-tests: New file.
1468         * modules/unictype/ctype-graph-tests: New file.
1469         * modules/unictype/ctype-lower-tests: New file.
1470         * modules/unictype/ctype-print-tests: New file.
1471         * modules/unictype/ctype-punct-tests: New file.
1472         * modules/unictype/ctype-space-tests: New file.
1473         * modules/unictype/ctype-upper-tests: New file.
1474         * modules/unictype/ctype-xdigit-tests: New file.
1475         * modules/unictype/decimal-digit-tests: New file.
1476         * modules/unictype/digit-tests: New file.
1477         * modules/unictype/mirror-tests: New file.
1478         * modules/unictype/numeric-tests: New file.
1479         * modules/unictype/property-alphabetic-tests: New file.
1480         * modules/unictype/property-ascii-hex-digit-tests: New file.
1481         * modules/unictype/property-bidi-arabic-digit-tests: New file.
1482         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
1483         * modules/unictype/property-bidi-block-separator-tests: New file.
1484         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
1485         * modules/unictype/property-bidi-common-separator-tests: New file.
1486         * modules/unictype/property-bidi-control-tests: New file.
1487         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
1488         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
1489         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
1490         * modules/unictype/property-bidi-european-digit-tests: New file.
1491         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
1492         * modules/unictype/property-bidi-left-to-right-tests: New file.
1493         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
1494         * modules/unictype/property-bidi-other-neutral-tests: New file.
1495         * modules/unictype/property-bidi-pdf-tests: New file.
1496         * modules/unictype/property-bidi-segment-separator-tests: New file.
1497         * modules/unictype/property-bidi-whitespace-tests: New file.
1498         * modules/unictype/property-byname-tests: New file.
1499         * modules/unictype/property-combining-tests: New file.
1500         * modules/unictype/property-composite-tests: New file.
1501         * modules/unictype/property-currency-symbol-tests: New file.
1502         * modules/unictype/property-dash-tests: New file.
1503         * modules/unictype/property-decimal-digit-tests: New file.
1504         * modules/unictype/property-default-ignorable-code-point-tests: New file.
1505         * modules/unictype/property-deprecated-tests: New file.
1506         * modules/unictype/property-diacritic-tests: New file.
1507         * modules/unictype/property-extender-tests: New file.
1508         * modules/unictype/property-format-control-tests: New file.
1509         * modules/unictype/property-grapheme-base-tests: New file.
1510         * modules/unictype/property-grapheme-extend-tests: New file.
1511         * modules/unictype/property-grapheme-link-tests: New file.
1512         * modules/unictype/property-hex-digit-tests: New file.
1513         * modules/unictype/property-hyphen-tests: New file.
1514         * modules/unictype/property-id-continue-tests: New file.
1515         * modules/unictype/property-id-start-tests: New file.
1516         * modules/unictype/property-ideographic-tests: New file.
1517         * modules/unictype/property-ids-binary-operator-tests: New file.
1518         * modules/unictype/property-ids-trinary-operator-tests: New file.
1519         * modules/unictype/property-ignorable-control-tests: New file.
1520         * modules/unictype/property-iso-control-tests: New file.
1521         * modules/unictype/property-join-control-tests: New file.
1522         * modules/unictype/property-left-of-pair-tests: New file.
1523         * modules/unictype/property-line-separator-tests: New file.
1524         * modules/unictype/property-logical-order-exception-tests: New file.
1525         * modules/unictype/property-lowercase-tests: New file.
1526         * modules/unictype/property-math-tests: New file.
1527         * modules/unictype/property-non-break-tests: New file.
1528         * modules/unictype/property-not-a-character-tests: New file.
1529         * modules/unictype/property-numeric-tests: New file.
1530         * modules/unictype/property-other-alphabetic-tests: New file.
1531         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
1532         * modules/unictype/property-other-grapheme-extend-tests: New file.
1533         * modules/unictype/property-other-id-continue-tests: New file.
1534         * modules/unictype/property-other-id-start-tests: New file.
1535         * modules/unictype/property-other-lowercase-tests: New file.
1536         * modules/unictype/property-other-math-tests: New file.
1537         * modules/unictype/property-other-uppercase-tests: New file.
1538         * modules/unictype/property-paired-punctuation-tests: New file.
1539         * modules/unictype/property-paragraph-separator-tests: New file.
1540         * modules/unictype/property-pattern-syntax-tests: New file.
1541         * modules/unictype/property-pattern-white-space-tests: New file.
1542         * modules/unictype/property-private-use-tests: New file.
1543         * modules/unictype/property-punctuation-tests: New file.
1544         * modules/unictype/property-quotation-mark-tests: New file.
1545         * modules/unictype/property-radical-tests: New file.
1546         * modules/unictype/property-sentence-terminal-tests: New file.
1547         * modules/unictype/property-soft-dotted-tests: New file.
1548         * modules/unictype/property-space-tests: New file.
1549         * modules/unictype/property-terminal-punctuation-tests: New file.
1550         * modules/unictype/property-test-tests: New file.
1551         * modules/unictype/property-titlecase-tests: New file.
1552         * modules/unictype/property-unassigned-code-value-tests: New file.
1553         * modules/unictype/property-unified-ideograph-tests: New file.
1554         * modules/unictype/property-uppercase-tests: New file.
1555         * modules/unictype/property-variation-selector-tests: New file.
1556         * modules/unictype/property-white-space-tests: New file.
1557         * modules/unictype/property-xid-continue-tests: New file.
1558         * modules/unictype/property-xid-start-tests: New file.
1559         * modules/unictype/property-zero-width-tests: New file.
1560         * modules/unictype/scripts-tests: New file.
1561         * modules/unictype/syntax-c-ident-tests: New file.
1562         * modules/unictype/syntax-c-whitespace-tests: New file.
1563         * modules/unictype/syntax-java-ident-tests: New file.
1564         * modules/unictype/syntax-java-whitespace-tests: New file.
1565         * tests/unictype/test-bidi_byname.c: New file.
1566         * tests/unictype/test-bidi_name.c: New file.
1567         * tests/unictype/test-bidi_of.c: New file.
1568         * tests/unictype/test-bidi_test.c: New file.
1569         * tests/unictype/test-block_list.c: New file.
1570         * tests/unictype/test-block_of.c: New file.
1571         * tests/unictype/test-block_test.c: New file.
1572         * tests/unictype/test-categ_and.c: New file.
1573         * tests/unictype/test-categ_and_not.c: New file.
1574         * tests/unictype/test-categ_byname.c: New file.
1575         * tests/unictype/test-categ_name.c: New file.
1576         * tests/unictype/test-categ_none.c: New file.
1577         * tests/unictype/test-categ_of.c: New file.
1578         * tests/unictype/test-categ_or.c: New file.
1579         * tests/unictype/test-categ_test_withtable.c: New file.
1580         * tests/unictype/test-combining.c: New file.
1581         * tests/unictype/test-decdigit.c: New file.
1582         * tests/unictype/test-digit.c: New file.
1583         * tests/unictype/test-mirror.c: New file.
1584         * tests/unictype/test-numeric.c: New file.
1585         * tests/unictype/test-pr_byname.c: New file.
1586         * tests/unictype/test-pr_test.c: New file.
1587         * tests/unictype/test-predicate-part1.h: New file.
1588         * tests/unictype/test-predicate-part2.h: New file.
1589         * tests/unictype/test-scripts.c: New file.
1590         * tests/unictype/test-sy_c_ident.c: New file.
1591         * tests/unictype/test-sy_java_ident.c: New file.
1592
1593         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
1594         for Unicode 5.0.0.
1595         * tests/unictype/test-categ_Cc.c: Likewise.
1596         * tests/unictype/test-categ_Cf.c: Likewise.
1597         * tests/unictype/test-categ_Cn.c: Likewise.
1598         * tests/unictype/test-categ_Co.c: Likewise.
1599         * tests/unictype/test-categ_Cs.c: Likewise.
1600         * tests/unictype/test-categ_L.c: Likewise.
1601         * tests/unictype/test-categ_Ll.c: Likewise.
1602         * tests/unictype/test-categ_Lm.c: Likewise.
1603         * tests/unictype/test-categ_Lo.c: Likewise.
1604         * tests/unictype/test-categ_Lt.c: Likewise.
1605         * tests/unictype/test-categ_Lu.c: Likewise.
1606         * tests/unictype/test-categ_M.c: Likewise.
1607         * tests/unictype/test-categ_Mc.c: Likewise.
1608         * tests/unictype/test-categ_Me.c: Likewise.
1609         * tests/unictype/test-categ_Mn.c: Likewise.
1610         * tests/unictype/test-categ_N.c: Likewise.
1611         * tests/unictype/test-categ_Nd.c: Likewise.
1612         * tests/unictype/test-categ_Nl.c: Likewise.
1613         * tests/unictype/test-categ_No.c: Likewise.
1614         * tests/unictype/test-categ_P.c: Likewise.
1615         * tests/unictype/test-categ_Pc.c: Likewise.
1616         * tests/unictype/test-categ_Pd.c: Likewise.
1617         * tests/unictype/test-categ_Pe.c: Likewise.
1618         * tests/unictype/test-categ_Pf.c: Likewise.
1619         * tests/unictype/test-categ_Pi.c: Likewise.
1620         * tests/unictype/test-categ_Po.c: Likewise.
1621         * tests/unictype/test-categ_Ps.c: Likewise.
1622         * tests/unictype/test-categ_S.c: Likewise.
1623         * tests/unictype/test-categ_Sc.c: Likewise.
1624         * tests/unictype/test-categ_Sk.c: Likewise.
1625         * tests/unictype/test-categ_Sm.c: Likewise.
1626         * tests/unictype/test-categ_So.c: Likewise.
1627         * tests/unictype/test-categ_Z.c: Likewise.
1628         * tests/unictype/test-categ_Zl.c: Likewise.
1629         * tests/unictype/test-categ_Zp.c: Likewise.
1630         * tests/unictype/test-categ_Zs.c: Likewise.
1631         * tests/unictype/test-ctype_alnum.c: Likewise.
1632         * tests/unictype/test-ctype_alpha.c: Likewise.
1633         * tests/unictype/test-ctype_blank.c: Likewise.
1634         * tests/unictype/test-ctype_cntrl.c: Likewise.
1635         * tests/unictype/test-ctype_digit.c: Likewise.
1636         * tests/unictype/test-ctype_graph.c: Likewise.
1637         * tests/unictype/test-ctype_lower.c: Likewise.
1638         * tests/unictype/test-ctype_print.c: Likewise.
1639         * tests/unictype/test-ctype_punct.c: Likewise.
1640         * tests/unictype/test-ctype_space.c: Likewise.
1641         * tests/unictype/test-ctype_upper.c: Likewise.
1642         * tests/unictype/test-ctype_xdigit.c: Likewise.
1643         * tests/unictype/test-decdigit.h: Likewise.
1644         * tests/unictype/test-digit.h: Likewise.
1645         * tests/unictype/test-numeric.h: Likewise.
1646         * tests/unictype/test-pr_alphabetic.c: Likewise.
1647         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
1648         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
1649         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
1650         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
1651         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
1652         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
1653         * tests/unictype/test-pr_bidi_control.c: Likewise.
1654         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
1655         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
1656         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
1657         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
1658         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
1659         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
1660         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
1661         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
1662         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
1663         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
1664         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
1665         * tests/unictype/test-pr_combining.c: Likewise.
1666         * tests/unictype/test-pr_composite.c: Likewise.
1667         * tests/unictype/test-pr_currency_symbol.c: Likewise.
1668         * tests/unictype/test-pr_dash.c: Likewise.
1669         * tests/unictype/test-pr_decimal_digit.c: Likewise.
1670         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
1671         * tests/unictype/test-pr_deprecated.c: Likewise.
1672         * tests/unictype/test-pr_diacritic.c: Likewise.
1673         * tests/unictype/test-pr_extender.c: Likewise.
1674         * tests/unictype/test-pr_format_control.c: Likewise.
1675         * tests/unictype/test-pr_grapheme_base.c: Likewise.
1676         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
1677         * tests/unictype/test-pr_grapheme_link.c: Likewise.
1678         * tests/unictype/test-pr_hex_digit.c: Likewise.
1679         * tests/unictype/test-pr_hyphen.c: Likewise.
1680         * tests/unictype/test-pr_id_continue.c: Likewise.
1681         * tests/unictype/test-pr_id_start.c: Likewise.
1682         * tests/unictype/test-pr_ideographic.c: Likewise.
1683         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
1684         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
1685         * tests/unictype/test-pr_ignorable_control.c: Likewise.
1686         * tests/unictype/test-pr_iso_control.c: Likewise.
1687         * tests/unictype/test-pr_join_control.c: Likewise.
1688         * tests/unictype/test-pr_left_of_pair.c: Likewise.
1689         * tests/unictype/test-pr_line_separator.c: Likewise.
1690         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
1691         * tests/unictype/test-pr_lowercase.c: Likewise.
1692         * tests/unictype/test-pr_math.c: Likewise.
1693         * tests/unictype/test-pr_non_break.c: Likewise.
1694         * tests/unictype/test-pr_not_a_character.c: Likewise.
1695         * tests/unictype/test-pr_numeric.c: Likewise.
1696         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
1697         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
1698         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
1699         * tests/unictype/test-pr_other_id_continue.c: Likewise.
1700         * tests/unictype/test-pr_other_id_start.c: Likewise.
1701         * tests/unictype/test-pr_other_lowercase.c: Likewise.
1702         * tests/unictype/test-pr_other_math.c: Likewise.
1703         * tests/unictype/test-pr_other_uppercase.c: Likewise.
1704         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
1705         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
1706         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
1707         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
1708         * tests/unictype/test-pr_private_use.c: Likewise.
1709         * tests/unictype/test-pr_punctuation.c: Likewise.
1710         * tests/unictype/test-pr_quotation_mark.c: Likewise.
1711         * tests/unictype/test-pr_radical.c: Likewise.
1712         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
1713         * tests/unictype/test-pr_soft_dotted.c: Likewise.
1714         * tests/unictype/test-pr_space.c: Likewise.
1715         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
1716         * tests/unictype/test-pr_titlecase.c: Likewise.
1717         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
1718         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
1719         * tests/unictype/test-pr_uppercase.c: Likewise.
1720         * tests/unictype/test-pr_variation_selector.c: Likewise.
1721         * tests/unictype/test-pr_white_space.c: Likewise.
1722         * tests/unictype/test-pr_xid_continue.c: Likewise.
1723         * tests/unictype/test-pr_xid_start.c: Likewise.
1724         * tests/unictype/test-pr_zero_width.c: Likewise.
1725         * tests/unictype/test-sy_c_whitespace.c: Likewise.
1726         * tests/unictype/test-sy_java_whitespace.c: Likewise.
1727
1728 2007-11-12  Bruno Haible  <bruno@clisp.org>
1729
1730         Unicode character classification functions.
1731         * lib/unictype.h: New file.
1732         * modules/unictype/base: New file.
1733         * modules/unictype/category-L: New file.
1734         * modules/unictype/category-Lu: New file.
1735         * modules/unictype/category-Ll: New file.
1736         * modules/unictype/category-Lt: New file.
1737         * modules/unictype/category-Lm: New file.
1738         * modules/unictype/category-Lo: New file.
1739         * modules/unictype/category-M: New file.
1740         * modules/unictype/category-Mn: New file.
1741         * modules/unictype/category-Mc: New file.
1742         * modules/unictype/category-Me: New file.
1743         * modules/unictype/category-N: New file.
1744         * modules/unictype/category-Nd: New file.
1745         * modules/unictype/category-Nl: New file.
1746         * modules/unictype/category-No: New file.
1747         * modules/unictype/category-P: New file.
1748         * modules/unictype/category-Pc: New file.
1749         * modules/unictype/category-Pd: New file.
1750         * modules/unictype/category-Ps: New file.
1751         * modules/unictype/category-Pe: New file.
1752         * modules/unictype/category-Pi: New file.
1753         * modules/unictype/category-Pf: New file.
1754         * modules/unictype/category-Po: New file.
1755         * modules/unictype/category-S: New file.
1756         * modules/unictype/category-Sm: New file.
1757         * modules/unictype/category-Sc: New file.
1758         * modules/unictype/category-Sk: New file.
1759         * modules/unictype/category-So: New file.
1760         * modules/unictype/category-Z: New file.
1761         * modules/unictype/category-Zs: New file.
1762         * modules/unictype/category-Zl: New file.
1763         * modules/unictype/category-Zp: New file.
1764         * modules/unictype/category-C: New file.
1765         * modules/unictype/category-Cc: New file.
1766         * modules/unictype/category-Cf: New file.
1767         * modules/unictype/category-Cs: New file.
1768         * modules/unictype/category-Co: New file.
1769         * modules/unictype/category-Cn: New file.
1770         * modules/unictype/category-or: New file.
1771         * modules/unictype/category-of: New file.
1772         * modules/unictype/category-test: New file.
1773         * modules/unictype/category-test-withtable: New file.
1774         * modules/unictype/category-byname: New file.
1775         * modules/unictype/category-none: New file.
1776         * modules/unictype/category-and: New file.
1777         * modules/unictype/category-and-not: New file.
1778         * modules/unictype/category-name: New file.
1779         * modules/unictype/combining-class: New file.
1780         * modules/unictype/category-all: New file.
1781         * modules/unictype/bidicategory-all: New file.
1782         * modules/unictype/bidicategory-byname: New file.
1783         * modules/unictype/bidicategory-name: New file.
1784         * modules/unictype/bidicategory-of: New file.
1785         * modules/unictype/bidicategory-test: New file.
1786         * modules/unictype/decimal-digit: New file.
1787         * modules/unictype/digit: New file.
1788         * modules/unictype/numeric: New file.
1789         * modules/unictype/mirror: New file.
1790         * modules/unictype/property-white-space: New file.
1791         * modules/unictype/property-alphabetic: New file.
1792         * modules/unictype/property-other-alphabetic: New file.
1793         * modules/unictype/property-not-a-character: New file.
1794         * modules/unictype/property-default-ignorable-code-point: New file.
1795         * modules/unictype/property-other-default-ignorable-code-point: New
1796         file.
1797         * modules/unictype/property-deprecated: New file.
1798         * modules/unictype/property-logical-order-exception: New file.
1799         * modules/unictype/property-variation-selector: New file.
1800         * modules/unictype/property-private-use: New file.
1801         * modules/unictype/property-unassigned-code-value: New file.
1802         * modules/unictype/property-uppercase: New file.
1803         * modules/unictype/property-other-uppercase: New file.
1804         * modules/unictype/property-lowercase: New file.
1805         * modules/unictype/property-other-lowercase: New file.
1806         * modules/unictype/property-titlecase: New file.
1807         * modules/unictype/property-soft-dotted: New file.
1808         * modules/unictype/property-id-start: New file.
1809         * modules/unictype/property-other-id-start: New file.
1810         * modules/unictype/property-id-continue: New file.
1811         * modules/unictype/property-other-id-continue: New file.
1812         * modules/unictype/property-xid-start: New file.
1813         * modules/unictype/property-xid-continue: New file.
1814         * modules/unictype/property-pattern-white-space: New file.
1815         * modules/unictype/property-pattern-syntax: New file.
1816         * modules/unictype/property-join-control: New file.
1817         * modules/unictype/property-grapheme-base: New file.
1818         * modules/unictype/property-grapheme-extend: New file.
1819         * modules/unictype/property-other-grapheme-extend: New file.
1820         * modules/unictype/property-grapheme-link: New file.
1821         * modules/unictype/property-bidi-control: New file.
1822         * modules/unictype/property-bidi-left-to-right: New file.
1823         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
1824         * modules/unictype/property-bidi-arabic-right-to-left: New file.
1825         * modules/unictype/property-bidi-european-digit: New file.
1826         * modules/unictype/property-bidi-eur-num-separator: New file.
1827         * modules/unictype/property-bidi-eur-num-terminator: New file.
1828         * modules/unictype/property-bidi-arabic-digit: New file.
1829         * modules/unictype/property-bidi-common-separator: New file.
1830         * modules/unictype/property-bidi-block-separator: New file.
1831         * modules/unictype/property-bidi-segment-separator: New file.
1832         * modules/unictype/property-bidi-whitespace: New file.
1833         * modules/unictype/property-bidi-non-spacing-mark: New file.
1834         * modules/unictype/property-bidi-boundary-neutral: New file.
1835         * modules/unictype/property-bidi-pdf: New file.
1836         * modules/unictype/property-bidi-embedding-or-override: New file.
1837         * modules/unictype/property-bidi-other-neutral: New file.
1838         * modules/unictype/property-hex-digit: New file.
1839         * modules/unictype/property-ascii-hex-digit: New file.
1840         * modules/unictype/property-ideographic: New file.
1841         * modules/unictype/property-unified-ideograph: New file.
1842         * modules/unictype/property-radical: New file.
1843         * modules/unictype/property-ids-binary-operator: New file.
1844         * modules/unictype/property-ids-trinary-operator: New file.
1845         * modules/unictype/property-zero-width: New file.
1846         * modules/unictype/property-space: New file.
1847         * modules/unictype/property-non-break: New file.
1848         * modules/unictype/property-iso-control: New file.
1849         * modules/unictype/property-format-control: New file.
1850         * modules/unictype/property-dash: New file.
1851         * modules/unictype/property-hyphen: New file.
1852         * modules/unictype/property-punctuation: New file.
1853         * modules/unictype/property-line-separator: New file.
1854         * modules/unictype/property-paragraph-separator: New file.
1855         * modules/unictype/property-quotation-mark: New file.
1856         * modules/unictype/property-sentence-terminal: New file.
1857         * modules/unictype/property-terminal-punctuation: New file.
1858         * modules/unictype/property-currency-symbol: New file.
1859         * modules/unictype/property-math: New file.
1860         * modules/unictype/property-other-math: New file.
1861         * modules/unictype/property-paired-punctuation: New file.
1862         * modules/unictype/property-left-of-pair: New file.
1863         * modules/unictype/property-combining: New file.
1864         * modules/unictype/property-composite: New file.
1865         * modules/unictype/property-decimal-digit: New file.
1866         * modules/unictype/property-numeric: New file.
1867         * modules/unictype/property-diacritic: New file.
1868         * modules/unictype/property-extender: New file.
1869         * modules/unictype/property-ignorable-control: New file.
1870         * modules/unictype/property-test: New file.
1871         * modules/unictype/property-byname: New file.
1872         * modules/unictype/property-all: New file.
1873         * modules/unictype/scripts: New file.
1874         * modules/unictype/scripts-all: New file.
1875         * modules/unictype/block-of: New file.
1876         * modules/unictype/block-test: New file.
1877         * modules/unictype/block-list: New file.
1878         * modules/unictype/block-all: New file.
1879         * modules/unictype/syntax-c-whitespace: New file.
1880         * modules/unictype/syntax-java-whitespace: New file.
1881         * modules/unictype/syntax-c-ident: New file.
1882         * modules/unictype/syntax-java-ident: New file.
1883         * modules/unictype/ctype-alnum: New file.
1884         * modules/unictype/ctype-alpha: New file.
1885         * modules/unictype/ctype-cntrl: New file.
1886         * modules/unictype/ctype-digit: New file.
1887         * modules/unictype/ctype-graph: New file.
1888         * modules/unictype/ctype-lower: New file.
1889         * modules/unictype/ctype-print: New file.
1890         * modules/unictype/ctype-punct: New file.
1891         * modules/unictype/ctype-space: New file.
1892         * modules/unictype/ctype-upper: New file.
1893         * modules/unictype/ctype-xdigit: New file.
1894         * modules/unictype/ctype-blank: New file.
1895         * lib/unictype/bidi_byname.c: New file.
1896         * lib/unictype/bidi_name.c: New file.
1897         * lib/unictype/bidi_of.c: New file.
1898         * lib/unictype/bidi_test.c: New file.
1899         * lib/unictype/bitmap.h: New file.
1900         * lib/unictype/block_test.c: New file.
1901         * lib/unictype/blocks.c: New file.
1902         * lib/unictype/categ_C.c: New file.
1903         * lib/unictype/categ_Cc.c: New file.
1904         * lib/unictype/categ_Cf.c: New file.
1905         * lib/unictype/categ_Cn.c: New file.
1906         * lib/unictype/categ_Co.c: New file.
1907         * lib/unictype/categ_Cs.c: New file.
1908         * lib/unictype/categ_L.c: New file.
1909         * lib/unictype/categ_Ll.c: New file.
1910         * lib/unictype/categ_Lm.c: New file.
1911         * lib/unictype/categ_Lo.c: New file.
1912         * lib/unictype/categ_Lt.c: New file.
1913         * lib/unictype/categ_Lu.c: New file.
1914         * lib/unictype/categ_M.c: New file.
1915         * lib/unictype/categ_Mc.c: New file.
1916         * lib/unictype/categ_Me.c: New file.
1917         * lib/unictype/categ_Mn.c: New file.
1918         * lib/unictype/categ_N.c: New file.
1919         * lib/unictype/categ_Nd.c: New file.
1920         * lib/unictype/categ_Nl.c: New file.
1921         * lib/unictype/categ_No.c: New file.
1922         * lib/unictype/categ_P.c: New file.
1923         * lib/unictype/categ_Pc.c: New file.
1924         * lib/unictype/categ_Pd.c: New file.
1925         * lib/unictype/categ_Pe.c: New file.
1926         * lib/unictype/categ_Pf.c: New file.
1927         * lib/unictype/categ_Pi.c: New file.
1928         * lib/unictype/categ_Po.c: New file.
1929         * lib/unictype/categ_Ps.c: New file.
1930         * lib/unictype/categ_S.c: New file.
1931         * lib/unictype/categ_Sc.c: New file.
1932         * lib/unictype/categ_Sk.c: New file.
1933         * lib/unictype/categ_Sm.c: New file.
1934         * lib/unictype/categ_So.c: New file.
1935         * lib/unictype/categ_Z.c: New file.
1936         * lib/unictype/categ_Zl.c: New file.
1937         * lib/unictype/categ_Zp.c: New file.
1938         * lib/unictype/categ_Zs.c: New file.
1939         * lib/unictype/categ_and.c: New file.
1940         * lib/unictype/categ_and_not.c: New file.
1941         * lib/unictype/categ_byname.c: New file.
1942         * lib/unictype/categ_name.c: New file.
1943         * lib/unictype/categ_none.c: New file.
1944         * lib/unictype/categ_of.c: New file.
1945         * lib/unictype/categ_or.c: New file.
1946         * lib/unictype/categ_test.c: New file.
1947         * lib/unictype/combining.c: New file.
1948         * lib/unictype/ctype_alnum.c: New file.
1949         * lib/unictype/ctype_alpha.c: New file.
1950         * lib/unictype/ctype_blank.c: New file.
1951         * lib/unictype/ctype_cntrl.c: New file.
1952         * lib/unictype/ctype_digit.c: New file.
1953         * lib/unictype/ctype_graph.c: New file.
1954         * lib/unictype/ctype_lower.c: New file.
1955         * lib/unictype/ctype_print.c: New file.
1956         * lib/unictype/ctype_punct.c: New file.
1957         * lib/unictype/ctype_space.c: New file.
1958         * lib/unictype/ctype_upper.c: New file.
1959         * lib/unictype/ctype_xdigit.c: New file.
1960         * lib/unictype/decdigit.c: New file.
1961         * lib/unictype/digit.c: New file.
1962         * lib/unictype/identsyntaxmap.h: New file.
1963         * lib/unictype/mirror.c: New file.
1964         * lib/unictype/numeric.c: New file.
1965         * lib/unictype/pr_alphabetic.c: New file.
1966         * lib/unictype/pr_ascii_hex_digit.c: New file.
1967         * lib/unictype/pr_bidi_arabic_digit.c: New file.
1968         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
1969         * lib/unictype/pr_bidi_block_separator.c: New file.
1970         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
1971         * lib/unictype/pr_bidi_common_separator.c: New file.
1972         * lib/unictype/pr_bidi_control.c: New file.
1973         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
1974         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
1975         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
1976         * lib/unictype/pr_bidi_european_digit.c: New file.
1977         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
1978         * lib/unictype/pr_bidi_left_to_right.c: New file.
1979         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
1980         * lib/unictype/pr_bidi_other_neutral.c: New file.
1981         * lib/unictype/pr_bidi_pdf.c: New file.
1982         * lib/unictype/pr_bidi_segment_separator.c: New file.
1983         * lib/unictype/pr_bidi_whitespace.c: New file.
1984         * lib/unictype/pr_byname.c: New file.
1985         * lib/unictype/pr_byname.gperf: New file.
1986         * lib/unictype/pr_combining.c: New file.
1987         * lib/unictype/pr_composite.c: New file.
1988         * lib/unictype/pr_currency_symbol.c: New file.
1989         * lib/unictype/pr_dash.c: New file.
1990         * lib/unictype/pr_decimal_digit.c: New file.
1991         * lib/unictype/pr_default_ignorable_code_point.c: New file.
1992         * lib/unictype/pr_deprecated.c: New file.
1993         * lib/unictype/pr_diacritic.c: New file.
1994         * lib/unictype/pr_extender.c: New file.
1995         * lib/unictype/pr_format_control.c: New file.
1996         * lib/unictype/pr_grapheme_base.c: New file.
1997         * lib/unictype/pr_grapheme_extend.c: New file.
1998         * lib/unictype/pr_grapheme_link.c: New file.
1999         * lib/unictype/pr_hex_digit.c: New file.
2000         * lib/unictype/pr_hyphen.c: New file.
2001         * lib/unictype/pr_id_continue.c: New file.
2002         * lib/unictype/pr_id_start.c: New file.
2003         * lib/unictype/pr_ideographic.c: New file.
2004         * lib/unictype/pr_ids_binary_operator.c: New file.
2005         * lib/unictype/pr_ids_trinary_operator.c: New file.
2006         * lib/unictype/pr_ignorable_control.c: New file.
2007         * lib/unictype/pr_iso_control.c: New file.
2008         * lib/unictype/pr_join_control.c: New file.
2009         * lib/unictype/pr_left_of_pair.c: New file.
2010         * lib/unictype/pr_line_separator.c: New file.
2011         * lib/unictype/pr_logical_order_exception.c: New file.
2012         * lib/unictype/pr_lowercase.c: New file.
2013         * lib/unictype/pr_math.c: New file.
2014         * lib/unictype/pr_non_break.c: New file.
2015         * lib/unictype/pr_not_a_character.c: New file.
2016         * lib/unictype/pr_numeric.c: New file.
2017         * lib/unictype/pr_other_alphabetic.c: New file.
2018         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
2019         * lib/unictype/pr_other_grapheme_extend.c: New file.
2020         * lib/unictype/pr_other_id_continue.c: New file.
2021         * lib/unictype/pr_other_id_start.c: New file.
2022         * lib/unictype/pr_other_lowercase.c: New file.
2023         * lib/unictype/pr_other_math.c: New file.
2024         * lib/unictype/pr_other_uppercase.c: New file.
2025         * lib/unictype/pr_paired_punctuation.c: New file.
2026         * lib/unictype/pr_paragraph_separator.c: New file.
2027         * lib/unictype/pr_pattern_syntax.c: New file.
2028         * lib/unictype/pr_pattern_white_space.c: New file.
2029         * lib/unictype/pr_private_use.c: New file.
2030         * lib/unictype/pr_punctuation.c: New file.
2031         * lib/unictype/pr_quotation_mark.c: New file.
2032         * lib/unictype/pr_radical.c: New file.
2033         * lib/unictype/pr_sentence_terminal.c: New file.
2034         * lib/unictype/pr_soft_dotted.c: New file.
2035         * lib/unictype/pr_space.c: New file.
2036         * lib/unictype/pr_terminal_punctuation.c: New file.
2037         * lib/unictype/pr_test.c: New file.
2038         * lib/unictype/pr_titlecase.c: New file.
2039         * lib/unictype/pr_unassigned_code_value.c: New file.
2040         * lib/unictype/pr_unified_ideograph.c: New file.
2041         * lib/unictype/pr_uppercase.c: New file.
2042         * lib/unictype/pr_variation_selector.c: New file.
2043         * lib/unictype/pr_white_space.c: New file.
2044         * lib/unictype/pr_xid_continue.c: New file.
2045         * lib/unictype/pr_xid_start.c: New file.
2046         * lib/unictype/pr_zero_width.c: New file.
2047         * lib/unictype/scripts.c: New file.
2048         * lib/unictype/sy_c_ident.c: New file.
2049         * lib/unictype/sy_c_whitespace.c: New file.
2050         * lib/unictype/sy_java_ident.c: New file.
2051         * lib/unictype/sy_java_whitespace.c: New file.
2052
2053         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
2054         Unicode 5.0.0.
2055         * lib/unictype/blocks.h: Likewise.
2056         * lib/unictype/categ_C.h: Likewise.
2057         * lib/unictype/categ_Cc.h: Likewise.
2058         * lib/unictype/categ_Cf.h: Likewise.
2059         * lib/unictype/categ_Cn.h: Likewise.
2060         * lib/unictype/categ_Co.h: Likewise.
2061         * lib/unictype/categ_Cs.h: Likewise.
2062         * lib/unictype/categ_L.h: Likewise.
2063         * lib/unictype/categ_Ll.h: Likewise.
2064         * lib/unictype/categ_Lm.h: Likewise.
2065         * lib/unictype/categ_Lo.h: Likewise.
2066         * lib/unictype/categ_Lt.h: Likewise.
2067         * lib/unictype/categ_Lu.h: Likewise.
2068         * lib/unictype/categ_M.h: Likewise.
2069         * lib/unictype/categ_Mc.h: Likewise.
2070         * lib/unictype/categ_Me.h: Likewise.
2071         * lib/unictype/categ_Mn.h: Likewise.
2072         * lib/unictype/categ_N.h: Likewise.
2073         * lib/unictype/categ_Nd.h: Likewise.
2074         * lib/unictype/categ_Nl.h: Likewise.
2075         * lib/unictype/categ_No.h: Likewise.
2076         * lib/unictype/categ_P.h: Likewise.
2077         * lib/unictype/categ_Pc.h: Likewise.
2078         * lib/unictype/categ_Pd.h: Likewise.
2079         * lib/unictype/categ_Pe.h: Likewise.
2080         * lib/unictype/categ_Pf.h: Likewise.
2081         * lib/unictype/categ_Pi.h: Likewise.
2082         * lib/unictype/categ_Po.h: Likewise.
2083         * lib/unictype/categ_Ps.h: Likewise.
2084         * lib/unictype/categ_S.h: Likewise.
2085         * lib/unictype/categ_Sc.h: Likewise.
2086         * lib/unictype/categ_Sk.h: Likewise.
2087         * lib/unictype/categ_Sm.h: Likewise.
2088         * lib/unictype/categ_So.h: Likewise.
2089         * lib/unictype/categ_Z.h: Likewise.
2090         * lib/unictype/categ_Zl.h: Likewise.
2091         * lib/unictype/categ_Zp.h: Likewise.
2092         * lib/unictype/categ_Zs.h: Likewise.
2093         * lib/unictype/categ_of.h: Likewise.
2094         * lib/unictype/combining.h: Likewise.
2095         * lib/unictype/ctype_alnum.h: Likewise.
2096         * lib/unictype/ctype_alpha.h: Likewise.
2097         * lib/unictype/ctype_blank.h: Likewise.
2098         * lib/unictype/ctype_cntrl.h: Likewise.
2099         * lib/unictype/ctype_digit.h: Likewise.
2100         * lib/unictype/ctype_graph.h: Likewise.
2101         * lib/unictype/ctype_lower.h: Likewise.
2102         * lib/unictype/ctype_print.h: Likewise.
2103         * lib/unictype/ctype_punct.h: Likewise.
2104         * lib/unictype/ctype_space.h: Likewise.
2105         * lib/unictype/ctype_upper.h: Likewise.
2106         * lib/unictype/ctype_xdigit.h: Likewise.
2107         * lib/unictype/decdigit.h: Likewise.
2108         * lib/unictype/digit.h: Likewise.
2109         * lib/unictype/mirror.h: Likewise.
2110         * lib/unictype/numeric.h: Likewise.
2111         * lib/unictype/pr_alphabetic.h: Likewise.
2112         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
2113         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
2114         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
2115         * lib/unictype/pr_bidi_block_separator.h: Likewise.
2116         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
2117         * lib/unictype/pr_bidi_common_separator.h: Likewise.
2118         * lib/unictype/pr_bidi_control.h: Likewise.
2119         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
2120         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
2121         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
2122         * lib/unictype/pr_bidi_european_digit.h: Likewise.
2123         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
2124         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
2125         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
2126         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
2127         * lib/unictype/pr_bidi_pdf.h: Likewise.
2128         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
2129         * lib/unictype/pr_bidi_whitespace.h: Likewise.
2130         * lib/unictype/pr_combining.h: Likewise.
2131         * lib/unictype/pr_composite.h: Likewise.
2132         * lib/unictype/pr_currency_symbol.h: Likewise.
2133         * lib/unictype/pr_dash.h: Likewise.
2134         * lib/unictype/pr_decimal_digit.h: Likewise.
2135         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
2136         * lib/unictype/pr_deprecated.h: Likewise.
2137         * lib/unictype/pr_diacritic.h: Likewise.
2138         * lib/unictype/pr_extender.h: Likewise.
2139         * lib/unictype/pr_format_control.h: Likewise.
2140         * lib/unictype/pr_grapheme_base.h: Likewise.
2141         * lib/unictype/pr_grapheme_extend.h: Likewise.
2142         * lib/unictype/pr_grapheme_link.h: Likewise.
2143         * lib/unictype/pr_hex_digit.h: Likewise.
2144         * lib/unictype/pr_hyphen.h: Likewise.
2145         * lib/unictype/pr_id_continue.h: Likewise.
2146         * lib/unictype/pr_id_start.h: Likewise.
2147         * lib/unictype/pr_ideographic.h: Likewise.
2148         * lib/unictype/pr_ids_binary_operator.h: Likewise.
2149         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
2150         * lib/unictype/pr_ignorable_control.h: Likewise.
2151         * lib/unictype/pr_iso_control.h: Likewise.
2152         * lib/unictype/pr_join_control.h: Likewise.
2153         * lib/unictype/pr_left_of_pair.h: Likewise.
2154         * lib/unictype/pr_line_separator.h: Likewise.
2155         * lib/unictype/pr_logical_order_exception.h: Likewise.
2156         * lib/unictype/pr_lowercase.h: Likewise.
2157         * lib/unictype/pr_math.h: Likewise.
2158         * lib/unictype/pr_non_break.h: Likewise.
2159         * lib/unictype/pr_not_a_character.h: Likewise.
2160         * lib/unictype/pr_numeric.h: Likewise.
2161         * lib/unictype/pr_other_alphabetic.h: Likewise.
2162         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
2163         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
2164         * lib/unictype/pr_other_id_continue.h: Likewise.
2165         * lib/unictype/pr_other_id_start.h: Likewise.
2166         * lib/unictype/pr_other_lowercase.h: Likewise.
2167         * lib/unictype/pr_other_math.h: Likewise.
2168         * lib/unictype/pr_other_uppercase.h: Likewise.
2169         * lib/unictype/pr_paired_punctuation.h: Likewise.
2170         * lib/unictype/pr_paragraph_separator.h: Likewise.
2171         * lib/unictype/pr_pattern_syntax.h: Likewise.
2172         * lib/unictype/pr_pattern_white_space.h: Likewise.
2173         * lib/unictype/pr_private_use.h: Likewise.
2174         * lib/unictype/pr_punctuation.h: Likewise.
2175         * lib/unictype/pr_quotation_mark.h: Likewise.
2176         * lib/unictype/pr_radical.h: Likewise.
2177         * lib/unictype/pr_sentence_terminal.h: Likewise.
2178         * lib/unictype/pr_soft_dotted.h: Likewise.
2179         * lib/unictype/pr_space.h: Likewise.
2180         * lib/unictype/pr_terminal_punctuation.h: Likewise.
2181         * lib/unictype/pr_titlecase.h: Likewise.
2182         * lib/unictype/pr_unassigned_code_value.h: Likewise.
2183         * lib/unictype/pr_unified_ideograph.h: Likewise.
2184         * lib/unictype/pr_uppercase.h: Likewise.
2185         * lib/unictype/pr_variation_selector.h: Likewise.
2186         * lib/unictype/pr_white_space.h: Likewise.
2187         * lib/unictype/pr_xid_continue.h: Likewise.
2188         * lib/unictype/pr_xid_start.h: Likewise.
2189         * lib/unictype/pr_zero_width.h: Likewise.
2190         * lib/unictype/scripts.h: Likewise.
2191         * lib/unictype/scripts_byname.gperf: Likewise.
2192         * lib/unictype/sy_c_ident.h: Likewise.
2193         * lib/unictype/sy_c_whitespace.h: Likewise.
2194         * lib/unictype/sy_java_ident.h: Likewise.
2195         * lib/unictype/sy_java_whitespace.h: Likewise.
2196
2197         * lib/unictype/Makefile: New file.
2198         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
2199         glibc.
2200         * lib/unictype/3level.h: New file, copied from glibc.
2201         * lib/unictype/3levelbit.h: New file.
2202
2203 2007-11-11  Bruno Haible  <bruno@clisp.org>
2204
2205         * modules/gperf: New file.
2206         * modules/iconv_open (Depends-on): Add it.
2207         (Makefile.am): Remove the GPERF definition.
2208
2209 2007-11-11  Bruno Haible  <bruno@clisp.org>
2210
2211         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
2212         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
2213
2214 2007-11-11  Bruno Haible  <bruno@clisp.org>
2215
2216         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
2217         (usage): Remove function.
2218
2219 2007-11-11  Bruno Haible  <bruno@clisp.org>
2220
2221         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
2222         gl_FUNC_CEILF_LIBS.
2223         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
2224         gl_FUNC_CEIL_LIBS.
2225         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
2226         gl_FUNC_CEILL_LIBS.
2227         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
2228         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
2229         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
2230
2231 2007-11-11  Bruno Haible  <bruno@clisp.org>
2232
2233         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
2234         roundf were declared but do not exist on functions.
2235         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
2236         roundl were declared but do not exist on functions.
2237         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
2238         HAVE_FLOORL_AND_CEILL, respectively.
2239         Needed for Sun C on Solaris 10.
2240
2241 2007-11-11  Bruno Haible  <bruno@clisp.org>
2242
2243         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
2244         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
2245         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
2246         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
2247         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
2248         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
2249         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
2250         HAVE_DECL_ROUNDF.
2251         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
2252         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
2253         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
2254         of HAVE_DECL_ROUND*.
2255         * modules/math (Makefile.am): Update.
2256
2257 2007-11-10  Bruno Haible  <bruno@clisp.org>
2258
2259         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
2260         ptrdiff_t as m4/intl.m4.
2261
2262 2007-11-10  Jim Meyering  <meyering@redhat.com>
2263
2264         Avoid link failure for the argmatch test.
2265         * tests/test-argmatch.c (usage): Define function to avoid a link
2266         failure: argmatch_die requires a usage function.
2267
2268 2007-11-09  Bruno Haible  <bruno@clisp.org>
2269
2270         * doc/functions/snprintf.texi: Mention BeOS deficiency.
2271         * doc/functions/vsnprintf.texi: Likewise.
2272         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
2273         with a size argument < 2.
2274
2275 2007-11-09  Bruno Haible  <bruno@clisp.org>
2276
2277         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
2278         buffer. Fixes an inefficiency introduced on 2007-11-03.
2279
2280 2007-11-09  Bruno Haible  <bruno@clisp.org>
2281
2282         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
2283         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
2284
2285 2007-11-08  Jim Meyering  <meyering@redhat.com>
2286
2287         Change cache variable name prefix "jm_" to "gl_" everywhere.
2288         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
2289         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
2290         * m4/uptime.m4: s/gl_/jm_/
2291
2292 2007-11-07  Bruno Haible  <bruno@clisp.org>
2293
2294         Update to GNU gettext 0.17.
2295         * m4/intl.m4: Update to GNU gettext 0.17.
2296         * m4/po.m4: Likewise.
2297         * modules/gettext (Files): Remove m4/ulonglong.m4.
2298         (configure.ac): Require gettext infrastructure from version 0.17.
2299
2300 2007-11-06  Bruno Haible  <bruno@clisp.org>
2301
2302         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
2303         symbolic values are not defined in a public header.
2304         * lib/freadable.c (freadable) [QNX]: Likewise.
2305         * lib/freadahead.c (freadahead) [QNX]: Likewise.
2306         * lib/freading.c (freading) [QNX]: Likewise.
2307         * lib/fseterr.c (fseterr) [QNX]: Likewise.
2308         * lib/fwritable.c (fwritable) [QNX]: Likewise.
2309         * lib/fwriting.c (fwriting) [QNX]: Likewise.
2310         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
2311         Reported by Alain Magloire.
2312
2313         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
2314
2315 2007-11-05  Bruno Haible  <bruno@clisp.org>
2316
2317         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
2318         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
2319         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
2320         Reported by Eric Blake.
2321
2322 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2323             Bruno Haible  <bruno@clisp.org>
2324
2325         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
2326         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
2327         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
2328         (malloc): Undefine also before including <stdlib.h>.
2329         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
2330         Needed on OSF/1 4.0.
2331
2332 2007-11-05  Jim Meyering  <meyering@redhat.com>
2333
2334         git-version-gen: sync from coreutils.
2335         * build-aux/git-version-gen: Add comments.
2336         Change the first '-' to '.' in the snapshot version string,
2337         e.g., 6.9-377-08144 -> 6.9.377-08144
2338         Remove first parameter.
2339         Don't declare a version "-dirty" merely because a time
2340         stamp has changed.
2341
2342 2007-11-04  Bruno Haible  <bruno@clisp.org>
2343
2344         * lib/lock.h: Protect all macro definitions containing an 'if'
2345         statement through a "do { ... } while (0)".
2346         * lib/tls.h: Likewise.
2347
2348 2007-11-04  Bruno Haible  <bruno@clisp.org>
2349
2350         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
2351
2352 2007-11-04  Bruno Haible  <bruno@clisp.org>
2353
2354         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
2355         * modules/fprintf-posix (Depends-on): Add nocrash.
2356         * modules/snprintf-posix (Depends-on): Likewise.
2357         * modules/sprintf-posix (Depends-on): Likewise.
2358         * modules/vasnprintf-posix (Depends-on): Likewise.
2359         * modules/vasprintf-posix (Depends-on): Likewise.
2360         * modules/vfprintf-posix (Depends-on): Likewise.
2361         * modules/vsnprintf-posix (Depends-on): Likewise.
2362         * modules/vsprintf-posix (Depends-on): Likewise.
2363         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
2364         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
2365         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
2366         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
2367         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
2368         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
2369         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
2370
2371 2007-11-04  Bruno Haible  <bruno@clisp.org>
2372
2373         * modules/nocrash: New file.
2374         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
2375         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
2376
2377 2007-11-04  Bruno Haible  <bruno@clisp.org>
2378
2379         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
2380         precision handling.
2381         * tests/test-vasprintf-posix.c (test_function): Likewise.
2382         * tests/test-snprintf-posix.h (test_function): Likewise.
2383         * tests/test-sprintf-posix.h (test_function): Likewise.
2384
2385         Fix *printf behaviour for large precisions on mingw and BeOS.
2386         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
2387         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
2388         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
2389         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
2390         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2391         gl_PRINTF_PRECISION and test its result. Invoke
2392         gl_PREREQ_VASNPRINTF_PRECISION.
2393         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2394         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2395         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2396         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2397         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2398         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2399         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2400         * doc/functions/fprintf.texi: Update.
2401         * doc/functions/printf.texi: Update.
2402         * doc/functions/snprintf.texi: Update.
2403         * doc/functions/sprintf.texi: Update.
2404         * doc/functions/vfprintf.texi: Update.
2405         * doc/functions/vprintf.texi: Update.
2406         * doc/functions/vsnprintf.texi: Update.
2407         * doc/functions/vsprintf.texi: Update.
2408
2409 2007-11-04  Bruno Haible  <bruno@clisp.org>
2410
2411         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
2412
2413 2007-11-04  Bruno Haible  <bruno@clisp.org>
2414
2415         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
2416         Reported by Sylvain Beucler <beuc@gnu.org>.
2417
2418 2007-11-03  Bruno Haible  <bruno@clisp.org>
2419
2420         * tests/test-fprintf-posix2.sh: New file.
2421         * tests/test-fprintf-posix2.c: New file.
2422         * modules/fprintf-posix-tests (Files): Add them.
2423         (TESTS): Add test-fprintf-posix2.sh.
2424         (configure.ac): Check for getrlimit and setrlimit.
2425         (check_PROGRAMS): Add test-fprintf-posix2.
2426
2427         * tests/test-printf-posix2.sh: New file.
2428         * tests/test-printf-posix2.c: New file.
2429         * modules/printf-posix-tests (Files): Add them.
2430         (TESTS): Add test-printf-posix2.sh.
2431         (configure.ac): Check for getrlimit and setrlimit.
2432         (check_PROGRAMS): Add test-printf-posix2.
2433
2434         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
2435         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
2436         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
2437         (decode_double): New function, copied from decode_long_double.
2438         (scale10_round_decimal_decoded): New function, extracted from
2439         scale10_round_decimal_long_double.
2440         (scale10_round_decimal_long_double): Use it.
2441         (scale10_round_decimal_double): New function.
2442         (floorlog10): New function.
2443         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
2444         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
2445         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
2446         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2447         gl_PRINTF_ENOMEM and test its result. Invoke
2448         gl_PREREQ_VASNPRINTF_ENOMEM.
2449         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2450         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2451         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2452         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2453         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2454         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2455         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2456         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
2457         * modules/snprintf-posix (Depends-on): Likewise.
2458         * modules/sprintf-posix (Depends-on): Likewise.
2459         * modules/vasnprintf-posix (Depends-on): Likewise.
2460         * modules/vasprintf-posix (Depends-on): Likewise.
2461         * modules/vfprintf-posix (Depends-on): Likewise.
2462         * modules/vsnprintf-posix (Depends-on): Likewise.
2463         * modules/vsprintf-posix (Depends-on): Likewise.
2464         * doc/functions/fprintf.texi: Update.
2465         * doc/functions/printf.texi: Update.
2466         * doc/functions/snprintf.texi: Update.
2467         * doc/functions/sprintf.texi: Update.
2468         * doc/functions/vfprintf.texi: Update.
2469         * doc/functions/vprintf.texi: Update.
2470         * doc/functions/vsnprintf.texi: Update.
2471         * doc/functions/vsprintf.texi: Update.
2472
2473 2007-11-03  Bruno Haible  <bruno@clisp.org>
2474
2475         * modules/frexp-nolibm-tests: New file.
2476
2477         * modules/frexp-nolibm: New file.
2478         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
2479
2480 2007-11-03  Bruno Haible  <bruno@clisp.org>
2481
2482         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
2483         value is C99 compliant.
2484         Needed for OSF/1 5.1.
2485
2486 2007-11-03  Bruno Haible  <bruno@clisp.org>
2487
2488         Fix out-of-memory handling of vasnprintf.
2489         * lib/printf-parse.c: Include <errno.h>.
2490         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
2491         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
2492         is already set.
2493
2494 2007-11-02  Eric Blake  <ebb9@byu.net>
2495
2496         Fix tests on cygwin.
2497         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
2498
2499 2007-11-01  Bruno Haible  <bruno@clisp.org>
2500
2501         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
2502         warning.
2503         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
2504         needed for POSIX compatibility.
2505
2506 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
2507
2508         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
2509         for compatibility with GNU.
2510
2511 2007-11-01  Bruno Haible  <bruno@clisp.org>
2512
2513         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
2514         (putenv): Renamed from rpl_putenv. Change argument type from
2515         'const char *' to 'char *'.
2516         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
2517         of defining putenv in config.h, just set REPLACE_PUTENV.
2518         * modules/putenv (Depends-on): Add stdlib.
2519         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
2520         (Include): Use <stdlib.h>.
2521         * lib/stdlib.in.h (putenv): New declaration.
2522         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
2523         REPLACE_PUTENV.
2524         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
2525         REPLACE_PUTENV.
2526         Needed for MacOS X 10.5.0.
2527         Reported by Peter O'Gorman <peter@pogma.com>.
2528
2529 2007-11-01  Jim Meyering  <meyering@redhat.com>
2530
2531         Treat an empty date string exactly like "0".
2532         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
2533         if the remaining date string (to be parsed) is empty, use "0".
2534         Reported by Mischa Molhoek and discussed in this thread:
2535         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
2536
2537 2007-10-31  Bruno Haible  <bruno@clisp.org>
2538
2539         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
2540         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
2541         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
2542         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
2543         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
2544         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
2545
2546 2007-10-31  Bruno Haible  <bruno@clisp.org>
2547
2548         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
2549         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
2550         (AC_TYPE_LONG_LONG_INT): Use it.
2551         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
2552         it as well.
2553         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
2554         to m4/longlong.m4.
2555         * modules/stdint (Files): Remove m4/ulonglong.m4.
2556         * modules/strtoull (Files): Use m4/longlong.m4 instead of
2557         m4/ulonglong.m4.
2558         * modules/strtoumax (Files): Likewise.
2559
2560 2007-10-30  Bruno Haible  <bruno@clisp.org>
2561
2562         * modules/xvasprintf-posix: New file.
2563         Suggested by Eric Blake.
2564
2565 2007-10-30  Bruno Haible  <bruno@clisp.org>
2566
2567         * modules/xprintf-posix-tests: New file.
2568         * tests/test-xprintf-posix.sh: New file.
2569         * tests/test-xprintf-posix.c: New file.
2570         * tests/test-xfprintf-posix.c: New file.
2571
2572         * modules/xprintf-posix: New file.
2573
2574 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2575
2576         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
2577         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
2578         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
2579
2580 2007-10-29  Bruno Haible  <bruno@clisp.org>
2581
2582         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
2583         contain the special marker '_cv_'.
2584         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
2585         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
2586         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
2587         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
2588         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
2589         Reported by Ralf Wildenhues.
2590
2591 2007-10-29  Bruno Haible  <bruno@clisp.org>
2592
2593         * gnulib-tool (func_import): When --lgpl is not specified, set
2594         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
2595         GPLv3.
2596         Reported by Simon Josefsson.
2597
2598 2007-10-28  Bruno Haible  <bruno@clisp.org>
2599
2600         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
2601         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
2602         HAVE_DECL_ISFINITE.
2603         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
2604         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
2605         HAVE_DECL_ISFINITE.
2606
2607 2007-10-28  Bruno Haible  <bruno@clisp.org>
2608
2609         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
2610         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
2611
2612 2007-10-28  Bruno Haible  <bruno@clisp.org>
2613
2614         Fix link errors with Sun C 5.0 on Solaris 10.
2615         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
2616         function is declared but not present in the compiler's libm.
2617         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
2618         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2619         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
2620         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
2621         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
2622         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
2623         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
2624         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
2625         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
2626         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
2627         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
2628         HAVE_DECL_FLOORL.
2629
2630 2007-10-28  Bruno Haible  <bruno@clisp.org>
2631
2632         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
2633         gl_FUNC_FLOORL. Cache the result.
2634         (gl_FUNC_FLOORL): Use it.
2635         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
2636         gl_FUNC_CEILL. Cache the result.
2637         (gl_FUNC_CEILL): Use it.
2638
2639         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
2640         gl_FUNC_FLOOR. Cache the result.
2641         (gl_FUNC_FLOOR): Use it.
2642         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
2643         gl_FUNC_CEIL. Cache the result.
2644         (gl_FUNC_CEIL): Use it.
2645
2646         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
2647         gl_FUNC_FLOORF. Cache the result.
2648         (gl_FUNC_FLOORF): Use it.
2649         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
2650         gl_FUNC_CEILF. Cache the result.
2651         (gl_FUNC_CEILF): Use it.
2652
2653 2007-10-28  Bruno Haible  <bruno@clisp.org>
2654
2655         * gnulib-tool: Allow specifying the LGPL version number through
2656         --lgpl=2 or --lgpl=3.
2657         (func_usage): Document --lgpl with argument.
2658         Handle --lgpl=... arguments.
2659         (func_import): Recognize also gl_LGPL calls with an argument. When
2660         --lgpl=2 is used and the module's license is just LGPL, report an
2661         error. Set sed_transform_lib_file according to the lgpl variable. In
2662         the generated files, use --lgpl or gl_LGPL invocations with argument,
2663         if necessary.
2664         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
2665         an LGPv2+ license.
2666         * doc/gnulib-tool.texi (Modified imports): Update explanation of
2667         gl_LGPL macro.
2668
2669 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2670             Bruno Haible  <bruno@clisp.org>
2671
2672         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
2673         (u16_uctomb_aux): Likewise.
2674         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
2675         !HAVE_INLINE.
2676         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
2677
2678 2007-10-28  Bruno Haible  <bruno@clisp.org>
2679
2680         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
2681         Invoke AM_GETTEXT_OPTION if it exists.
2682         * modules/vasprintf: Likewise.
2683         * modules/verror: Likewise.
2684         * modules/xprintf: Likewise.
2685         * modules/xvasprintf: Likewise.
2686
2687 2007-10-27  Ben Pfaff  <blp@gnu.org>
2688
2689         * lib/math.in.h: Define isfinite macro and prototypes for
2690         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
2691         implementations.
2692         * m4/math_h.m4: New substitutions for isfinite module.
2693         * lib/isfinite.c: New file.
2694         * m4/isfinite.m4: New file.
2695         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
2696         * modules/isfinite: New file.
2697         * modules/isfinite-tests: New file.
2698         * tests/tests-isfinite.c: New file.
2699         * doc/functions/isfinite.texi: Mention isfinite module.
2700         * MODULES.html.sh: Mention new module.
2701
2702 2007-10-27  Ben Pfaff  <blp@gnu.org>
2703
2704         Ralf Wildenhues reported that Tru64 4.0D declares the round
2705         functions but does not have definitions.
2706         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
2707         cannot be found in any library, set the output variable to
2708         "missing" instead of "".
2709         * m4/round.m4: Also use our substitute if we cannot find round in
2710         any library, even if it is declared.
2711         * m4/roundf.m4: Likewise for roundf.
2712         * m4/roundl.m4: Likewise for roundl.
2713         * lib/math.in.h: Undefine roundf, round, roundl before defining
2714         their replacements, to allow for hypothetical systems where these
2715         may be defined as macros but not available in libraries.
2716
2717 2007-10-27  Bruno Haible  <bruno@clisp.org>
2718
2719         * doc/gnulib.texi: Invoke @firstparagraphindent.
2720         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
2721         changes in gnulib.
2722         (Source changes): New section.
2723
2724 2007-10-26  Bruno Haible  <bruno@clisp.org>
2725
2726         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
2727         borrowed from autoconf.
2728
2729 2007-10-26  Bruno Haible  <bruno@clisp.org>
2730
2731         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
2732         strerror returned the empty string. Needed on HP-UX 11.00.
2733
2734 2007-10-24  Micah Cowan  <micah@cowan.name>
2735
2736         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
2737         * build-aux/bootstrap: Remove support for now-unnecessary option,
2738         --cvs-user, and envvars CVS_USER, CVS_RSH.
2739
2740 2007-10-24  Jim Meyering  <meyering@redhat.com>
2741
2742         Avoid diagnostics from sha1sum when there is no cached checksum.
2743         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
2744         if the po.s1 file hasn't been created yet.
2745
2746         * build-aux/bootstrap: Sync from coreutils:
2747         2007-10-24  Jim Meyering  <meyering@redhat.com>
2748         Get gnulib from the git repository, not from an obsolete cvs one.
2749         * build-aux/bootstrap: Suggestion from Micah Cowan.
2750         2007-10-04  Jim Meyering  <jim@meyering.net>
2751         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
2752         (update_po_files): Work also when there are no .po files in po/.
2753
2754 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
2755
2756         * README: Append ".git" to git and cg examples.
2757         Problem reported by Benoit Sigoure.
2758
2759 2007-10-23  Micah Cowan  <micah@cowan.name>
2760
2761         * users.txt: Add wget.
2762
2763 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2764
2765         Fix linking of some unistdio tests on FreeBSD.
2766         * modules/unistdio/u16-vsnprintf-tests
2767         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
2768         * modules/unistdio/u16-vsprintf-tests
2769         (test_u16_vsnprintf1_LDADD): Likewise.
2770         * modules/unistdio/u32-vsnprintf-tests
2771         (test_u32_vsnprintf1_LDADD): Likewise.
2772         * modules/unistdio/u32-vsprintf-tests
2773         (test_u32_vsprintf1_LDADD): Likewise.
2774         * modules/unistdio/u8-vsnprintf-tests
2775         (test_u8_vsnprintf1_LDADD): Likewise.
2776         * modules/unistdio/u8-vsprintf-tests
2777         (test_u8_vsprintf1_LDADD): Likewise.
2778         * modules/unistdio/ulc-vsnprintf-tests
2779         (test_ulc_vsnprintf1_LDADD): Likewise.
2780         * modules/unistdio/ulc-vsprintf-tests
2781         (test_ulc_vsprintf1_LDADD): Likewise.
2782
2783         Fix linking of some uniconv tests on FreeBSD.
2784         * modules/uniconv/u16-conv-from-enc-tests
2785         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
2786         * modules/uniconv/u16-conv-to-enc-tests
2787         (test_u16_conv_to_enc_LDADD): Likewise.
2788         * modules/uniconv/u16-strconv-from-enc-tests
2789         (test_u16_strconv_from_enc_LDADD): Likewise.
2790         * modules/uniconv/u16-strconv-to-enc-tests
2791         (test_u16_strconv_to_enc_LDADD): Likewise.
2792         * modules/uniconv/u32-conv-from-enc-tests
2793         (test_u32_conv_from_enc_LDADD): Likewise.
2794         * modules/uniconv/u32-conv-to-enc-tests
2795         (test_u32_conv_to_enc_LDADD): Likewise.
2796         * modules/uniconv/u32-strconv-from-enc-tests
2797         (test_u32_strconv_from_enc_LDADD): Likewise.
2798         * modules/uniconv/u32-strconv-to-enc-tests
2799         (test_u32_strconv_to_enc_LDADD): Likewise.
2800         * modules/uniconv/u8-conv-from-enc-tests
2801         (test_u8_conv_from_enc_LDADD): Likewise.
2802         * modules/uniconv/u8-conv-to-enc-tests
2803         (test_u8_conv_to_enc_LDADD): Likewise.
2804         * modules/uniconv/u8-strconv-from-enc-tests
2805         (test_u8_strconv_from_enc_LDADD): Likewise.
2806         * modules/uniconv/u8-strconv-to-enc-tests
2807         (test_u8_strconv_to_enc_LDADD): Likewise.
2808
2809 2007-10-22  Bruno Haible  <bruno@clisp.org>
2810
2811         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
2812         size.
2813
2814 2007-10-22  Eric Blake  <ebb9@byu.net>
2815
2816         Tweak x*printf documentation.
2817         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
2818         variable name and comments.
2819         Suggested by Bruno Haible.
2820
2821 2007-10-22  Bruno Haible  <bruno@clisp.org>
2822
2823         * lib/acl.c (copy_acl): Fix file name in comment.
2824
2825 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
2826
2827         Fix Tru64 problem with stdbool.h.
2828         * lib/stdbool.in.h (false, true):
2829         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
2830         Don't declare as an enum in this situation; it runs afoul of Tru64.
2831         Problem reported by Steven M. Schweda in
2832         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
2833
2834 2007-10-22  Eric Blake  <ebb9@byu.net>
2835
2836         Also wrap vf?printf.
2837         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
2838         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
2839         (xvprintf, xvfprintf): New functions.
2840
2841 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2842
2843         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
2844         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
2845
2846         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
2847         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
2848
2849 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
2850
2851         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
2852         by Bruno Haible.
2853
2854 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2855
2856         * lib/getloadavg.c
2857         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
2858         Undef `sys' after including sys/table.h, for Tru64 4.0D.
2859
2860         * tests/test-i-ring.c: Work for C89.
2861
2862 2007-10-22  Bruno Haible  <bruno@clisp.org>
2863
2864         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
2865         -1u, in preprocessor expression, so that we don't test for the bug
2866         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
2867         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
2868
2869 2007-10-22  Eric Blake  <ebb9@byu.net>
2870
2871         * tests/test-yesno.sh: Silence stderr during test.
2872
2873 2007-10-22  Simon Josefsson  <simon@josefsson.org>
2874
2875         * modules/crypto/gc-camellia: New file.
2876
2877         * m4/gc-camellia.m4: New file.
2878
2879         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
2880
2881         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
2882
2883 2007-10-22  Simon Josefsson  <simon@josefsson.org>
2884
2885         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
2886         --help to stdout.  Reported by sms@antinode.org (Steven
2887         M. Schweda).
2888
2889 2007-10-22  Simon Josefsson  <simon@josefsson.org>
2890
2891         * users.txt: Fix link to libksba.
2892
2893 2007-10-21  Ben Pfaff  <blp@gnu.org>
2894
2895         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
2896         round.c roundf implementation that depends on floorf and ceilf to
2897         be tested unconditionally.
2898
2899 2007-10-21  Ben Pfaff  <blp@gnu.org>
2900
2901         * m4/check-libm-func.m4: Removed.
2902         * m4/check-math-lib.m4: New file.
2903         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
2904         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
2905         definition and lack of AC_LIBOBJ([roundf]).
2906         * m4/roundl.m4: Ditto, and similarly for roundl.
2907         * modules/round: Reference new m4 file.
2908         * modules/roundf: Ditto.
2909         * modules/roundl: Ditto.
2910         * tests/test-round2.c (main): Use ROUND instead of round.
2911         Bug report from Bruno Haible.
2912
2913 2007-10-21  Bruno Haible  <bruno@clisp.org>
2914
2915         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
2916         context.
2917
2918 2007-10-21  Bruno Haible  <bruno@clisp.org>
2919
2920         * tests/test-wcwidth.c (main): Allow negative result for some control
2921         characters.
2922
2923         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
2924         Needed on OSF/1 5.1.
2925
2926 2007-10-21  Bruno Haible  <bruno@clisp.org>
2927
2928         * tests/test-floorf1.c: Include isnanf.h.
2929         (main): Use isnanf() instead of isnan().
2930         * tests/test-ceilf1.c: Include isnanf.h.
2931         (main): Use isnanf() instead of isnan().
2932         * tests/test-truncf1.c: Include isnanf.h.
2933         (main): Use isnanf() instead of isnan().
2934         * tests/test-roundf1.c: Include isnanf.h.
2935         (main): Use isnanf() instead of isnan().
2936
2937 2007-10-21  Eric Blake  <ebb9@byu.net>
2938
2939         * users.txt: Update URL for m4.
2940
2941 2007-10-21  Bruno Haible  <bruno@clisp.org>
2942
2943         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
2944
2945 2007-10-21  Bruno Haible  <bruno@clisp.org>
2946
2947         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
2948         Git's management files if the CVS files are not present.
2949
2950 2007-10-20  Bruno Haible  <bruno@clisp.org>
2951
2952         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
2953         gcc-3.4.x.
2954
2955 2007-10-20  Ben Pfaff  <blp@gnu.org>
2956
2957         * lib/math.in.h: Declare round, roundf, roundl if we are providing
2958         implementations.
2959         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
2960         * lib/round.c: New file.
2961         * lib/roundf.c: New file.
2962         * lib/roundl.c: New file.
2963         * m4/round.m4: New file.
2964         * m4/roundf.m4: New file.
2965         * m4/roundl.m4: New file.
2966         * m4/check-libm-func-m4: New file.
2967         * modules/math: Replace round, roundf, roundl related @VARS@ in
2968         math.in.h.
2969         * modules/round: New file.
2970         * modules/round-tests: New file.
2971         * modules/roundf: New file.
2972         * modules/roundf-tests: New file.
2973         * modules/roundl: New file.
2974         * modules/roundl-tests: New file.
2975         * tests/test-round1.c: New file.
2976         * tests/test-round2.c: New file.
2977         * tests/test-roundf1.c: New file.
2978         * tests/test-roundf2.c: New file.
2979         * tests/test-roundl.c: New file.
2980         * doc/functions/round.texi: Mention round module.
2981         * doc/functions/roundf.texi: Mention roundf module.
2982         * doc/functions/roundl.texi: Mention roundl module.
2983         * MODULES.html.sh: Mention new modules.
2984         Thanks to Bruno Haible for suggestions.
2985
2986 2007-10-20  Jim Meyering  <meyering@redhat.com>
2987
2988         * lib/xprintf.c: Include <config.h> unconditionally.
2989
2990         Change xprintf's license to GPL.
2991         * modules/xprintf (License): s/LGPL/GPL/, since this module
2992         depends on modules (exit and exitfail) which are GPL.
2993         Suggestion from Bruno Haible.
2994
2995         xprintf fixes.
2996         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
2997         Use a clearer diagnostic.
2998         Patch from Bruno Haible.
2999
3000 2007-10-20  Bruno Haible  <bruno@clisp.org>
3001
3002         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
3003         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
3004         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3005
3006 2007-10-20  Bruno Haible  <bruno@clisp.org>
3007
3008         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
3009         precision in the comparison result > x - 1 or similar.
3010         * tests/test-ceilf2.c (correct_result_p): Likewise.
3011         * tests/test-truncf2.c (correct_result_p): Likewise.
3012         * tests/test-trunc2.c (correct_result_p): Likewise.
3013         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3014
3015 2007-10-20  Bruno Haible  <bruno@clisp.org>
3016
3017         * modules/ceil: New file.
3018         * m4/ceil.m4: New file.
3019         * doc/functions/ceil.texi: Mention the 'ceil' module.
3020
3021 2007-10-20  Bruno Haible  <bruno@clisp.org>
3022
3023         * modules/floor: New file.
3024         * m4/floor.m4: New file.
3025         * doc/functions/floor.texi: Mention the 'floor' module.
3026
3027 2007-10-20  Bruno Haible  <bruno@clisp.org>
3028
3029         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
3030         of %a.
3031         * modules/floorf-tests (Depends-on): Likewise.
3032         * modules/truncf-tests (Depends-on): Likewise.
3033         * modules/trunc-tests (Depends-on): Likewise.
3034         Reported by Ben Pfaff.
3035
3036 2007-10-19  Jim Meyering  <meyering@redhat.com>
3037
3038         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
3039         Don't bother testing specific errno values.  Just test ferror.
3040
3041         New module: xprintf
3042         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
3043
3044 2007-10-19  Bruno Haible  <bruno@clisp.org>
3045
3046         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
3047         syntax.
3048         * modules/javaexec (Makefile.am): Likewise.
3049         * modules/relocatable-prog (Makefile.am): Likewise.
3050         Suggested by Jim Meyering.
3051
3052 2007-10-18  Bruno Haible  <bruno@clisp.org>
3053
3054         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
3055         Reported by Jim Meyering.
3056
3057 2007-10-18  Eric Blake  <ebb9@byu.net>
3058
3059         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
3060
3061 2007-10-18  Bruno Haible  <bruno@clisp.org>
3062
3063         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
3064         the format string into writable memory. Needed in Fortify conditions.
3065
3066 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
3067             Bruno Haible  <bruno@clisp.org>
3068
3069         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
3070         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
3071         * modules/trim (Depends-on): Add mbchar.
3072         (configure.ac): Add gl_FUNC_MBRTOWC.
3073         (Makefile.am): Augment lib_SOURCES.
3074
3075 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
3076
3077         Modify glob.c to use fstatat and dirfd, to simplify it.
3078         Suggested by Eric Blake.
3079         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
3080         Don't include <stdbool.h>; not used.
3081         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
3082         (link_exists_p): Simplify implementation, since we can now assume
3083         dirfd and fstatat.
3084         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
3085
3086 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3087
3088         * gnulib-tool (func_get_dependencies): Fix sed script to
3089         match only tests.
3090
3091 2007-10-17  Bruno Haible  <bruno@clisp.org>
3092
3093         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
3094         allow locale names without encoding suffix.
3095         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3096         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3097
3098 2007-10-16  Bruno Haible  <bruno@clisp.org>
3099
3100         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
3101         * lib/getgroups.c (getgroups): Likewise.
3102         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
3103
3104 2007-10-16  Bruno Haible  <bruno@clisp.org>
3105
3106         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
3107         * modules/malloc-posix (License): Likewise.
3108         * modules/realloc-posix (License): Likewise.
3109         * modules/calloc-posix (License): Likewise.
3110         * modules/intprops (License): Change from GPL to LGPL, with
3111         Paul Eggert's approval.
3112
3113 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
3114
3115         Merge glibc changes into lib/glob.c.
3116
3117         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
3118         2007-10-15 04:59:03 UTC.  Here are the changes:
3119
3120         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
3121
3122         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
3123
3124         * lib/glob.c: Add some branch prediction throughout.
3125
3126         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
3127
3128         [BZ #5103]
3129         * lib/glob.c (glob): Recognize patterns starting \/.
3130
3131         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
3132
3133         [BZ #3996]
3134         * lib/glob.c (attribute_hidden): Define if not defined.
3135         (glob): Unescape dirname, filename or username when needed and not
3136         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
3137         is NULL.  Handle unescaped [ in pattern without closing ].
3138         Don't pass GLOB_CHECK down to recursive glob for directories.
3139         (__glob_pattern_type): New function.
3140         (__glob_pattern_p): Implement using __glob_pattern_type.
3141         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
3142         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
3143         Remove unreachable code.
3144
3145         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
3146
3147         * lib/glob.c (glob_in_dir): Add some comments and asserts to
3148         explain why there are no leaks.
3149
3150         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
3151
3152         [BZ #3253]
3153         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
3154         time, rather allocate increasingly bigger arrays of pointers, if
3155         possible with alloca, if too large with malloc.
3156
3157 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
3158
3159         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
3160         Problem reported by H.Merijn Brand in
3161         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
3162         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
3163         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
3164
3165 2007-10-15  Bruno Haible  <bruno@clisp.org>
3166
3167         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
3168         with explicit rpl_ prefix.
3169         * lib/fopen.c (fopen): Likewise.
3170         * lib/freopen.c (freopen): Likewise.
3171         * lib/iconv.c (iconv): Likewise.
3172         * lib/iconv_close.c (iconv_close): Likewise.
3173
3174 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3175
3176         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
3177
3178 2007-10-15  Bruno Haible  <bruno@clisp.org>
3179
3180         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
3181         <stddef.h> instead of <stdlib.h> since we only need NULL.
3182         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3183
3184 2007-10-15  Bruno Haible  <bruno@clisp.org>
3185
3186         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
3187         Replace paragraph talking about LIBOBJS.
3188         Reported by Colin Watson <cjwatson@debian.org>.
3189
3190 2007-10-15  Bruno Haible  <bruno@clisp.org>
3191
3192         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
3193         <stdlib.h> before using NULL.
3194
3195 2007-10-15  Simon Josefsson  <simon@josefsson.org>
3196
3197         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
3198         Reported by Albert Chin <china@thewrittenword.com>.
3199
3200 2007-10-14  Bruno Haible  <bruno@clisp.org>
3201
3202         * modules/iconv_open-utf-tests: New file.
3203         * tests/test-iconv-utf.c: New file.
3204
3205         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
3206         * modules/iconv_open-utf: New file.
3207         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
3208         (iconv, iconv_close): New declarations.
3209         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
3210         be defined.
3211         (iconv_open): Add special handling of conversion between UTF-8 and
3212         UTF-{16,32}{BE,LE}.
3213         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
3214         * lib/iconv_close.c: New file.
3215         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
3216         gl_FUNC_ICONV_OPEN.
3217         (gl_FUNC_ICONV_OPEN): Use it.
3218         (gl_FUNC_ICONV_OPEN_UTF): New macro.
3219         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
3220         and REPLACE_ICONV_UTF.
3221         * modules/iconv_open (Depends-on): Add c-strcase.
3222         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
3223         ICONV_CONST.
3224         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
3225
3226 2007-10-13  Albert Chin  <china@thewrittenword.com>
3227             Bruno Haible  <bruno@clisp.org>
3228
3229         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
3230         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
3231
3232 2007-10-13  Bruno Haible  <bruno@clisp.org>
3233
3234         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
3235         defined, use the ISO C99 inline semantics.
3236         * lib/argp.h (ARGP_EI): Likewise.
3237
3238 2007-10-13  Bruno Haible  <bruno@clisp.org>
3239
3240         Handle 'inline' change in gcc 4.3.0.
3241         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
3242         argp_fmtstream_write, argp_fmtstream_set_lmargin,
3243         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
3244         argp_fmtstream_point): Disable 'extern' declaration if the function
3245         definition is going to be provided inline.
3246         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
3247         semantics, not the ISO C99 inline semantics.
3248         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
3249         'extern' declaration if the function definition is going to be provided
3250         inline.
3251         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
3252         the GNU C inline semantics, not the ISO C99 inline semantics. With
3253         GCC 4.2, avoid a warning.
3254
3255 2007-10-13  Bruno Haible  <bruno@clisp.org>
3256
3257         * lib/freading.h (freading): Enable the use of __freading for
3258         glibc >= 2.7.
3259         * lib/freading.c (freading): Likewise.
3260
3261 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
3262
3263         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
3264         "warning: C99 inline functions are not supported; using GNU89".
3265
3266 2007-10-12  Bruno Haible  <bruno@clisp.org>
3267
3268         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
3269         of 2.
3270         * tests/test-ceilf2.c: New file.
3271         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
3272
3273         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
3274         * modules/ceilf-tests: Update.
3275
3276 2007-10-12  Bruno Haible  <bruno@clisp.org>
3277
3278         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
3279         of 2.
3280         * tests/test-floorf2.c: New file.
3281         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
3282
3283         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
3284         * modules/floorf-tests: Update.
3285
3286 2007-10-12  Bruno Haible  <bruno@clisp.org>
3287
3288         * tests/test-trunc2.c: New file.
3289         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
3290
3291         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
3292         * modules/trunc-tests: Update.
3293
3294 2007-10-12  Bruno Haible  <bruno@clisp.org>
3295
3296         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
3297         of 2.
3298         * tests/test-truncf2.c: New file.
3299         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
3300
3301         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
3302         * modules/truncf-tests: Update.
3303
3304 2007-10-11  Eric Blake  <ebb9@byu.net>
3305
3306         Don't claim strerror is broken on Interix.
3307         * doc/functions/strerror.texi (strerror): Known broken systems are
3308         now Solaris 8, and not Interix.
3309         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
3310         Interix on cross-compile.
3311         Reported by Martin Koeppe in
3312         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
3313
3314 2007-10-11  Bruno Haible  <bruno@clisp.org>
3315
3316         * modules/i-ring-tests: New file.
3317         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
3318         instead of assert.
3319
3320 2007-10-11  Bruno Haible  <bruno@clisp.org>
3321
3322         * modules/filenamecat-tests: New file.
3323         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
3324         * lib/filenamecat.c: Remove test code.
3325
3326 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3327
3328         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
3329
3330         * lib/strerror.c: Include <string.h> always, to test interface,
3331         and to remove the need for the dummy.
3332         Include intprops.h to compute width instead of doing it ourselves
3333         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
3334         (strerror): Define it to return NULL if there's no system strerror.
3335         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
3336         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
3337         ancient pre-strerror Unix systems well any more.  Saying "unknown
3338         system error" is enough.
3339         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
3340         simpler strerror.c implementation.
3341         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
3342         Simplify the tests to reflect the simpler strerror implementation.
3343         * modules/strerror (Depends-on): Add intprops.
3344
3345 2007-10-09  Eric Blake  <ebb9@byu.net>
3346
3347         Silence test-fpending.
3348         * modules/fpending-tests (Files): Add wrapper script.
3349         * tests/test-fpending.sh: New file.
3350
3351 2007-10-09  Bruno Haible  <bruno@clisp.org>
3352
3353         * MODULES.html.sh (func_module): Don't create a hyperlink for
3354         function names like 'printf_frexp'.
3355         (Misc): Add crc, memxor.
3356         (Characteristics of floating types): New section.
3357         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
3358         isnanf-nolibm, signbit, trunc, truncf, truncl.
3359         (Enhancements for ISO C 99 functions): New subsection Input/output.
3360         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
3361         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
3362         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
3363         (Compatibility checks for POSIX:2001 functions): Add clock-time.
3364         (Enhancements for POSIX:2001 functions): Add chdir-long.
3365         (File system functions): Add areadlink, chdir-safer, read-file.
3366         Remove cycle-check.
3367         (File system as inode set): New section.
3368         (Date and time): Add gethrxtime.
3369         (Multithreading): Add openmp.
3370         (Internationalization functions): Add localename.
3371         (Unicode string functions): Add unistr/u*-mbsnlen.
3372         (Support for maintaining and releasing projects): Add git-version-gen.
3373         (Lone files): Remove directories.
3374
3375 2007-10-08  Ben Pfaff  <blp@gnu.org>
3376
3377         * lib/xmalloca.h: Fix typo in comment.
3378
3379 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
3380
3381         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
3382         when avoiding problems with integer overflow.  Use a portable test
3383         instead.
3384
3385 2007-10-08  Simon Josefsson  <simon@josefsson.org>
3386
3387         * modules/dummy (License): Change to LGPLv2+.
3388         * modules/float (License): Likewise
3389         * modules/realloc (License): Likewise
3390         * modules/stdlib (License): Likewise
3391
3392 2007-10-07  Bruno Haible  <bruno@clisp.org>
3393
3394         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
3395         * floor.c (TWO_MANT_DIG): Likewise.
3396         * ceil.c (TWO_MANT_DIG): Likewise.
3397         Reported by Ben Pfaff.
3398
3399 2007-10-07  Bruno Haible  <bruno@clisp.org>
3400
3401         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
3402         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
3403         * lib/frexp.c (FUNC): Likewise.
3404         * lib/printf-frexp.h (printf_frexp): Likewise.
3405         * lib/printf-frexpl.h (printf_frexpl): Likewise.
3406         * lib/printf-frexp.c (FUNC): Likewise.
3407         Suggested by Jim Meyering.
3408
3409 2007-10-07  Jim Meyering  <meyering@redhat.com>
3410
3411         Make xnanosleep's integer overflow test more robust.
3412         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
3413         so that gcc-4.3.0 doesn't optimize away this test for overflow.
3414
3415 2007-10-07  Bruno Haible  <bruno@clisp.org>
3416
3417         * NEWS: Mention the license change.
3418
3419         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
3420         abbreviations in the modules files.
3421
3422         Change copyright notice from GPLv2+ to GPLv3+.
3423         * README: Change copyright notice.
3424         * MODULES.html.sh: Likewise.
3425         * build-aux/bootstrap.conf: Likewise.
3426         * build-aux/config.libpath: Likewise.
3427         * build-aux/csharpcomp.sh.in: Likewise.
3428         * build-aux/csharpexec.sh.in: Likewise.
3429         * build-aux/install-reloc: Likewise.
3430         * build-aux/javacomp.sh.in: Likewise.
3431         * build-aux/javaexec.sh.in: Likewise.
3432         * build-aux/ldd.sh.in: Likewise.
3433         * build-aux/reloc-ldflags: Likewise.
3434         * build-aux/relocatable.sh.in: Likewise.
3435         * build-aux/x-to-1.in: Likewise.
3436         * check-module: Likewise.
3437         * config/srclistvars.sh: Likewise.
3438         * gnulib-tool: Likewise.
3439         * lib/acl-internal.h: Likewise.
3440         * lib/acl.c: Likewise.
3441         * lib/acl.h: Likewise.
3442         * lib/acl_entries.c: Likewise.
3443         * lib/areadlink-with-size.c: Likewise.
3444         * lib/areadlink.c: Likewise.
3445         * lib/areadlink.h: Likewise.
3446         * lib/argmatch.c: Likewise.
3447         * lib/argmatch.h: Likewise.
3448         * lib/argp-ba.c: Likewise.
3449         * lib/argp-eexst.c: Likewise.
3450         * lib/argp-fmtstream.c: Likewise.
3451         * lib/argp-fmtstream.h: Likewise.
3452         * lib/argp-fs-xinl.c: Likewise.
3453         * lib/argp-help.c: Likewise.
3454         * lib/argp-namefrob.h: Likewise.
3455         * lib/argp-parse.c: Likewise.
3456         * lib/argp-pin.c: Likewise.
3457         * lib/argp-pv.c: Likewise.
3458         * lib/argp-pvh.c: Likewise.
3459         * lib/argp-xinl.c: Likewise.
3460         * lib/argp.h: Likewise.
3461         * lib/at-func.c: Likewise.
3462         * lib/atanl.c: Likewise.
3463         * lib/backupfile.c: Likewise.
3464         * lib/backupfile.h: Likewise.
3465         * lib/basename.c: Likewise.
3466         * lib/binary-io.h: Likewise.
3467         * lib/byteswap.in.h: Likewise.
3468         * lib/c-stack.c: Likewise.
3469         * lib/c-stack.h: Likewise.
3470         * lib/c-strcasestr.c: Likewise.
3471         * lib/c-strcasestr.h: Likewise.
3472         * lib/c-strstr.c: Likewise.
3473         * lib/c-strstr.h: Likewise.
3474         * lib/c-strtod.c: Likewise.
3475         * lib/calloc.c: Likewise.
3476         * lib/canon-host.c: Likewise.
3477         * lib/canon-host.h: Likewise.
3478         * lib/canonicalize-lgpl.c: Likewise.
3479         * lib/canonicalize.c: Likewise.
3480         * lib/canonicalize.h: Likewise.
3481         * lib/ceil.c: Likewise.
3482         * lib/ceilf.c: Likewise.
3483         * lib/ceill.c: Likewise.
3484         * lib/chdir-long.c: Likewise.
3485         * lib/chdir-long.h: Likewise.
3486         * lib/chdir-safer.c: Likewise.
3487         * lib/chdir-safer.h: Likewise.
3488         * lib/chown.c: Likewise.
3489         * lib/classpath.c: Likewise.
3490         * lib/classpath.h: Likewise.
3491         * lib/clean-temp.c: Likewise.
3492         * lib/clean-temp.h: Likewise.
3493         * lib/cloexec.c: Likewise.
3494         * lib/close-stream.c: Likewise.
3495         * lib/closein.c: Likewise.
3496         * lib/closein.h: Likewise.
3497         * lib/closeout.c: Likewise.
3498         * lib/closeout.h: Likewise.
3499         * lib/concat-filename.c: Likewise.
3500         * lib/copy-file.c: Likewise.
3501         * lib/copy-file.h: Likewise.
3502         * lib/count-one-bits.h: Likewise.
3503         * lib/crc.c: Likewise.
3504         * lib/crc.h: Likewise.
3505         * lib/creat-safer.c: Likewise.
3506         * lib/csharpcomp.c: Likewise.
3507         * lib/csharpcomp.h: Likewise.
3508         * lib/csharpexec.c: Likewise.
3509         * lib/csharpexec.h: Likewise.
3510         * lib/cycle-check.c: Likewise.
3511         * lib/cycle-check.h: Likewise.
3512         * lib/diacrit.c: Likewise.
3513         * lib/diacrit.h: Likewise.
3514         * lib/diffseq.h: Likewise.
3515         * lib/dirchownmod.c: Likewise.
3516         * lib/dirent.in.h: Likewise.
3517         * lib/dirfd.c: Likewise.
3518         * lib/dirfd.h: Likewise.
3519         * lib/dirname.c: Likewise.
3520         * lib/dirname.h: Likewise.
3521         * lib/dummy.c: Likewise.
3522         * lib/dup-safer.c: Likewise.
3523         * lib/dup2.c: Likewise.
3524         * lib/eealloc.h: Likewise.
3525         * lib/error.c: Likewise.
3526         * lib/error.h: Likewise.
3527         * lib/euidaccess.c: Likewise.
3528         * lib/exclude.c: Likewise.
3529         * lib/exclude.h: Likewise.
3530         * lib/execute.c: Likewise.
3531         * lib/execute.h: Likewise.
3532         * lib/exitfail.c: Likewise.
3533         * lib/exitfail.h: Likewise.
3534         * lib/expl.c: Likewise.
3535         * lib/fatal-signal.c: Likewise.
3536         * lib/fatal-signal.h: Likewise.
3537         * lib/fbufmode.c: Likewise.
3538         * lib/fbufmode.h: Likewise.
3539         * lib/fchdir.c: Likewise.
3540         * lib/fchmodat.c: Likewise.
3541         * lib/fchownat.c: Likewise.
3542         * lib/fcntl--.h: Likewise.
3543         * lib/fcntl-safer.h: Likewise.
3544         * lib/fcntl.in.h: Likewise.
3545         * lib/fd-safer.c: Likewise.
3546         * lib/fflush.c: Likewise.
3547         * lib/file-has-acl.c: Likewise.
3548         * lib/file-set.c: Likewise.
3549         * lib/file-type.c: Likewise.
3550         * lib/file-type.h: Likewise.
3551         * lib/fileblocks.c: Likewise.
3552         * lib/filemode.c: Likewise.
3553         * lib/filemode.h: Likewise.
3554         * lib/filename.h: Likewise.
3555         * lib/filenamecat.c: Likewise.
3556         * lib/filenamecat.h: Likewise.
3557         * lib/findprog.c: Likewise.
3558         * lib/findprog.h: Likewise.
3559         * lib/float.in.h: Likewise.
3560         * lib/floor.c: Likewise.
3561         * lib/floorf.c: Likewise.
3562         * lib/floorl.c: Likewise.
3563         * lib/fopen-safer.c: Likewise.
3564         * lib/fopen.c: Likewise.
3565         * lib/fpending.c: Likewise.
3566         * lib/fpending.h: Likewise.
3567         * lib/fprintf.c: Likewise.
3568         * lib/fprintftime.h: Likewise.
3569         * lib/fpucw.h: Likewise.
3570         * lib/fpurge.c: Likewise.
3571         * lib/fpurge.h: Likewise.
3572         * lib/freadable.c: Likewise.
3573         * lib/freadable.h: Likewise.
3574         * lib/freadahead.c: Likewise.
3575         * lib/freadahead.h: Likewise.
3576         * lib/freading.c: Likewise.
3577         * lib/freading.h: Likewise.
3578         * lib/free.c: Likewise.
3579         * lib/freopen.c: Likewise.
3580         * lib/frexp.c: Likewise.
3581         * lib/frexpl.c: Likewise.
3582         * lib/fseek.c: Likewise.
3583         * lib/fseterr.c: Likewise.
3584         * lib/fseterr.h: Likewise.
3585         * lib/fstatat.c: Likewise.
3586         * lib/fstrcmp.c: Likewise.
3587         * lib/fstrcmp.h: Likewise.
3588         * lib/fsusage.c: Likewise.
3589         * lib/fsusage.h: Likewise.
3590         * lib/ftell.c: Likewise.
3591         * lib/ftello.c: Likewise.
3592         * lib/fts-cycle.c: Likewise.
3593         * lib/fts.c: Likewise.
3594         * lib/fts_.h: Likewise.
3595         * lib/full-read.c: Likewise.
3596         * lib/full-read.h: Likewise.
3597         * lib/full-write.c: Likewise.
3598         * lib/full-write.h: Likewise.
3599         * lib/fwritable.c: Likewise.
3600         * lib/fwritable.h: Likewise.
3601         * lib/fwriteerror.c: Likewise.
3602         * lib/fwriteerror.h: Likewise.
3603         * lib/fwriting.c: Likewise.
3604         * lib/fwriting.h: Likewise.
3605         * lib/gcd.c: Likewise.
3606         * lib/gcd.h: Likewise.
3607         * lib/getcwd.c: Likewise.
3608         * lib/getdate.h: Likewise.
3609         * lib/getdate.y: Likewise.
3610         * lib/getdomainname.c: Likewise.
3611         * lib/getdomainname.h: Likewise.
3612         * lib/getgroups.c: Likewise.
3613         * lib/gethostname.c: Likewise.
3614         * lib/gethrxtime.c: Likewise.
3615         * lib/gethrxtime.h: Likewise.
3616         * lib/getloadavg.c: Likewise.
3617         * lib/getndelim2.c: Likewise.
3618         * lib/getndelim2.h: Likewise.
3619         * lib/getnline.c: Likewise.
3620         * lib/getnline.h: Likewise.
3621         * lib/getopt.c: Likewise.
3622         * lib/getopt.in.h: Likewise.
3623         * lib/getopt1.c: Likewise.
3624         * lib/getopt_int.h: Likewise.
3625         * lib/getpagesize.h: Likewise.
3626         * lib/getsubopt.c: Likewise.
3627         * lib/gettime.c: Likewise.
3628         * lib/getugroups.c: Likewise.
3629         * lib/getugroups.h: Likewise.
3630         * lib/getusershell.c: Likewise.
3631         * lib/gl_anyavltree_list1.h: Likewise.
3632         * lib/gl_anyavltree_list2.h: Likewise.
3633         * lib/gl_anyhash_list1.h: Likewise.
3634         * lib/gl_anyhash_list2.h: Likewise.
3635         * lib/gl_anylinked_list1.h: Likewise.
3636         * lib/gl_anylinked_list2.h: Likewise.
3637         * lib/gl_anyrbtree_list1.h: Likewise.
3638         * lib/gl_anyrbtree_list2.h: Likewise.
3639         * lib/gl_anytree_list1.h: Likewise.
3640         * lib/gl_anytree_list2.h: Likewise.
3641         * lib/gl_anytree_oset.h: Likewise.
3642         * lib/gl_anytreehash_list1.h: Likewise.
3643         * lib/gl_anytreehash_list2.h: Likewise.
3644         * lib/gl_array_list.c: Likewise.
3645         * lib/gl_array_list.h: Likewise.
3646         * lib/gl_array_oset.c: Likewise.
3647         * lib/gl_array_oset.h: Likewise.
3648         * lib/gl_avltree_list.c: Likewise.
3649         * lib/gl_avltree_list.h: Likewise.
3650         * lib/gl_avltree_oset.c: Likewise.
3651         * lib/gl_avltree_oset.h: Likewise.
3652         * lib/gl_avltreehash_list.c: Likewise.
3653         * lib/gl_avltreehash_list.h: Likewise.
3654         * lib/gl_carray_list.c: Likewise.
3655         * lib/gl_carray_list.h: Likewise.
3656         * lib/gl_linked_list.c: Likewise.
3657         * lib/gl_linked_list.h: Likewise.
3658         * lib/gl_linkedhash_list.c: Likewise.
3659         * lib/gl_linkedhash_list.h: Likewise.
3660         * lib/gl_list.c: Likewise.
3661         * lib/gl_list.h: Likewise.
3662         * lib/gl_oset.c: Likewise.
3663         * lib/gl_oset.h: Likewise.
3664         * lib/gl_rbtree_list.c: Likewise.
3665         * lib/gl_rbtree_list.h: Likewise.
3666         * lib/gl_rbtree_oset.c: Likewise.
3667         * lib/gl_rbtree_oset.h: Likewise.
3668         * lib/gl_rbtreehash_list.c: Likewise.
3669         * lib/gl_rbtreehash_list.h: Likewise.
3670         * lib/gl_sublist.c: Likewise.
3671         * lib/gl_sublist.h: Likewise.
3672         * lib/group-member.c: Likewise.
3673         * lib/group-member.h: Likewise.
3674         * lib/hard-locale.c: Likewise.
3675         * lib/hard-locale.h: Likewise.
3676         * lib/hash-pjw.c: Likewise.
3677         * lib/hash-pjw.h: Likewise.
3678         * lib/hash-triple.c: Likewise.
3679         * lib/hash.c: Likewise.
3680         * lib/hash.h: Likewise.
3681         * lib/human.c: Likewise.
3682         * lib/human.h: Likewise.
3683         * lib/i-ring.c: Likewise.
3684         * lib/i-ring.h: Likewise.
3685         * lib/idcache.c: Likewise.
3686         * lib/imaxabs.c: Likewise.
3687         * lib/imaxdiv.c: Likewise.
3688         * lib/inet_pton.c: Likewise.
3689         * lib/inet_pton.h: Likewise.
3690         * lib/intprops.h: Likewise.
3691         * lib/inttostr.c: Likewise.
3692         * lib/inttostr.h: Likewise.
3693         * lib/inttypes.in.h: Likewise.
3694         * lib/isapipe.c: Likewise.
3695         * lib/isdir.c: Likewise.
3696         * lib/isnan.c: Likewise.
3697         * lib/isnan.h: Likewise.
3698         * lib/isnanf.c: Likewise.
3699         * lib/isnanf.h: Likewise.
3700         * lib/isnanl-nolibm.h: Likewise.
3701         * lib/isnanl.c: Likewise.
3702         * lib/isnanl.h: Likewise.
3703         * lib/javacomp.c: Likewise.
3704         * lib/javacomp.h: Likewise.
3705         * lib/javaexec.c: Likewise.
3706         * lib/javaexec.h: Likewise.
3707         * lib/javaversion.c: Likewise.
3708         * lib/javaversion.h: Likewise.
3709         * lib/javaversion.java: Likewise.
3710         * lib/lbrkprop.h: Likewise.
3711         * lib/lchmod.h: Likewise.
3712         * lib/lchown.c: Likewise.
3713         * lib/ldexpl.c: Likewise.
3714         * lib/linebreak.c: Likewise.
3715         * lib/linebreak.h: Likewise.
3716         * lib/linebuffer.c: Likewise.
3717         * lib/linebuffer.h: Likewise.
3718         * lib/locale.in.h: Likewise.
3719         * lib/logl.c: Likewise.
3720         * lib/long-options.c: Likewise.
3721         * lib/long-options.h: Likewise.
3722         * lib/lstat.c: Likewise.
3723         * lib/lstat.h: Likewise.
3724         * lib/math.in.h: Likewise.
3725         * lib/mbchar.c: Likewise.
3726         * lib/mbchar.h: Likewise.
3727         * lib/mbfile.h: Likewise.
3728         * lib/mbiter.h: Likewise.
3729         * lib/mbscasecmp.c: Likewise.
3730         * lib/mbscasestr.c: Likewise.
3731         * lib/mbschr.c: Likewise.
3732         * lib/mbscspn.c: Likewise.
3733         * lib/mbslen.c: Likewise.
3734         * lib/mbsncasecmp.c: Likewise.
3735         * lib/mbsnlen.c: Likewise.
3736         * lib/mbspbrk.c: Likewise.
3737         * lib/mbspcasecmp.c: Likewise.
3738         * lib/mbsrchr.c: Likewise.
3739         * lib/mbssep.c: Likewise.
3740         * lib/mbsspn.c: Likewise.
3741         * lib/mbsstr.c: Likewise.
3742         * lib/mbstok_r.c: Likewise.
3743         * lib/mbswidth.c: Likewise.
3744         * lib/mbswidth.h: Likewise.
3745         * lib/mbuiter.h: Likewise.
3746         * lib/memcasecmp.c: Likewise.
3747         * lib/memcasecmp.h: Likewise.
3748         * lib/memchr.c: Likewise.
3749         * lib/memcmp.c: Likewise.
3750         * lib/memcoll.c: Likewise.
3751         * lib/memcoll.h: Likewise.
3752         * lib/memcpy.c: Likewise.
3753         * lib/memrchr.c: Likewise.
3754         * lib/mkancesdirs.c: Likewise.
3755         * lib/mkdir-p.c: Likewise.
3756         * lib/mkdir-p.h: Likewise.
3757         * lib/mkdir.c: Likewise.
3758         * lib/mkdirat.c: Likewise.
3759         * lib/mkdtemp.c: Likewise.
3760         * lib/mkstemp-safer.c: Likewise.
3761         * lib/mkstemp.c: Likewise.
3762         * lib/modechange.c: Likewise.
3763         * lib/modechange.h: Likewise.
3764         * lib/mountlist.c: Likewise.
3765         * lib/mountlist.h: Likewise.
3766         * lib/mpsort.c: Likewise.
3767         * lib/nanosleep.c: Likewise.
3768         * lib/obstack.c: Likewise.
3769         * lib/obstack.h: Likewise.
3770         * lib/open-safer.c: Likewise.
3771         * lib/open.c: Likewise.
3772         * lib/openat-die.c: Likewise.
3773         * lib/openat-priv.h: Likewise.
3774         * lib/openat-proc.c: Likewise.
3775         * lib/openat.c: Likewise.
3776         * lib/openat.h: Likewise.
3777         * lib/pagealign_alloc.c: Likewise.
3778         * lib/pagealign_alloc.h: Likewise.
3779         * lib/physmem.c: Likewise.
3780         * lib/physmem.h: Likewise.
3781         * lib/pipe-safer.c: Likewise.
3782         * lib/pipe.c: Likewise.
3783         * lib/pipe.h: Likewise.
3784         * lib/posixtm.c: Likewise.
3785         * lib/posixtm.h: Likewise.
3786         * lib/posixver.c: Likewise.
3787         * lib/printf-frexp.c: Likewise.
3788         * lib/printf-frexp.h: Likewise.
3789         * lib/printf-frexpl.c: Likewise.
3790         * lib/printf-frexpl.h: Likewise.
3791         * lib/printf.c: Likewise.
3792         * lib/progname.c: Likewise.
3793         * lib/progname.h: Likewise.
3794         * lib/progreloc.c: Likewise.
3795         * lib/putenv.c: Likewise.
3796         * lib/quote.c: Likewise.
3797         * lib/quote.h: Likewise.
3798         * lib/quotearg.c: Likewise.
3799         * lib/quotearg.h: Likewise.
3800         * lib/raise.c: Likewise.
3801         * lib/readline.c: Likewise.
3802         * lib/readline.h: Likewise.
3803         * lib/readlink.c: Likewise.
3804         * lib/readtokens.c: Likewise.
3805         * lib/readtokens.h: Likewise.
3806         * lib/readtokens0.c: Likewise.
3807         * lib/readtokens0.h: Likewise.
3808         * lib/readutmp.c: Likewise.
3809         * lib/readutmp.h: Likewise.
3810         * lib/realloc.c: Likewise.
3811         * lib/relocwrapper.c: Likewise.
3812         * lib/rename-dest-slash.c: Likewise.
3813         * lib/rename.c: Likewise.
3814         * lib/rmdir.c: Likewise.
3815         * lib/rpmatch.c: Likewise.
3816         * lib/safe-read.c: Likewise.
3817         * lib/safe-read.h: Likewise.
3818         * lib/safe-write.c: Likewise.
3819         * lib/safe-write.h: Likewise.
3820         * lib/same-inode.h: Likewise.
3821         * lib/same.c: Likewise.
3822         * lib/same.h: Likewise.
3823         * lib/save-cwd.c: Likewise.
3824         * lib/save-cwd.h: Likewise.
3825         * lib/savedir.c: Likewise.
3826         * lib/savedir.h: Likewise.
3827         * lib/savewd.c: Likewise.
3828         * lib/savewd.h: Likewise.
3829         * lib/search.in.h: Likewise.
3830         * lib/setenv.c: Likewise.
3831         * lib/setenv.h: Likewise.
3832         * lib/settime.c: Likewise.
3833         * lib/sh-quote.c: Likewise.
3834         * lib/sh-quote.h: Likewise.
3835         * lib/sig2str.c: Likewise.
3836         * lib/sig2str.h: Likewise.
3837         * lib/signal.in.h: Likewise.
3838         * lib/signbitd.c: Likewise.
3839         * lib/signbitf.c: Likewise.
3840         * lib/signbitl.c: Likewise.
3841         * lib/sigprocmask.c: Likewise.
3842         * lib/sincosl.c: Likewise.
3843         * lib/sleep.c: Likewise.
3844         * lib/sprintf.c: Likewise.
3845         * lib/sqrtl.c: Likewise.
3846         * lib/stat-time.h: Likewise.
3847         * lib/stdio--.h: Likewise.
3848         * lib/stdio-safer.h: Likewise.
3849         * lib/stdlib--.h: Likewise.
3850         * lib/stdlib-safer.h: Likewise.
3851         * lib/stdlib.in.h: Likewise.
3852         * lib/stpcpy.c: Likewise.
3853         * lib/stpncpy.c: Likewise.
3854         * lib/strchrnul.c: Likewise.
3855         * lib/strcspn.c: Likewise.
3856         * lib/strerror.c: Likewise.
3857         * lib/strftime.c: Likewise.
3858         * lib/strftime.h: Likewise.
3859         * lib/striconveh.c: Likewise.
3860         * lib/striconveh.h: Likewise.
3861         * lib/striconveha.c: Likewise.
3862         * lib/striconveha.h: Likewise.
3863         * lib/stripslash.c: Likewise.
3864         * lib/strnlen1.c: Likewise.
3865         * lib/strnlen1.h: Likewise.
3866         * lib/strtod.c: Likewise.
3867         * lib/strtoimax.c: Likewise.
3868         * lib/strtok_r.c: Likewise.
3869         * lib/strtol.c: Likewise.
3870         * lib/strtoll.c: Likewise.
3871         * lib/strtoul.c: Likewise.
3872         * lib/strtoull.c: Likewise.
3873         * lib/sysexits.in.h: Likewise.
3874         * lib/tempname.c: Likewise.
3875         * lib/tempname.h: Likewise.
3876         * lib/timespec.h: Likewise.
3877         * lib/tls.c: Likewise.
3878         * lib/tls.h: Likewise.
3879         * lib/tmpdir.c: Likewise.
3880         * lib/tmpdir.h: Likewise.
3881         * lib/tmpfile-safer.c: Likewise.
3882         * lib/tmpfile.c: Likewise.
3883         * lib/trigl.c: Likewise.
3884         * lib/trigl.h: Likewise.
3885         * lib/trim.c: Likewise.
3886         * lib/trim.h: Likewise.
3887         * lib/trunc.c: Likewise.
3888         * lib/truncf.c: Likewise.
3889         * lib/truncl.c: Likewise.
3890         * lib/tsearch.c: Likewise.
3891         * lib/unicodeio.c: Likewise.
3892         * lib/unicodeio.h: Likewise.
3893         * lib/unistd--.h: Likewise.
3894         * lib/unistd-safer.h: Likewise.
3895         * lib/unistdio/ulc-fprintf.c: Likewise.
3896         * lib/unistdio/ulc-vfprintf.c: Likewise.
3897         * lib/unlinkdir.c: Likewise.
3898         * lib/unlinkdir.h: Likewise.
3899         * lib/unlocked-io.h: Likewise.
3900         * lib/unsetenv.c: Likewise.
3901         * lib/userspec.c: Likewise.
3902         * lib/utime.c: Likewise.
3903         * lib/utimecmp.c: Likewise.
3904         * lib/utimecmp.h: Likewise.
3905         * lib/utimens.c: Likewise.
3906         * lib/verify.h: Likewise.
3907         * lib/verror.c: Likewise.
3908         * lib/verror.h: Likewise.
3909         * lib/version-etc-fsf.c: Likewise.
3910         * lib/version-etc.c: Likewise.
3911         * lib/version-etc.h: Likewise.
3912         * lib/vfprintf.c: Likewise.
3913         * lib/vprintf.c: Likewise.
3914         * lib/vsprintf.c: Likewise.
3915         * lib/w32spawn.h: Likewise.
3916         * lib/wait-process.c: Likewise.
3917         * lib/wait-process.h: Likewise.
3918         * lib/wcwidth.c: Likewise.
3919         * lib/write-any-file.c: Likewise.
3920         * lib/xalloc-die.c: Likewise.
3921         * lib/xalloc.h: Likewise.
3922         * lib/xasprintf.c: Likewise.
3923         * lib/xgetcwd.c: Likewise.
3924         * lib/xgetcwd.h: Likewise.
3925         * lib/xgetdomainname.c: Likewise.
3926         * lib/xgetdomainname.h: Likewise.
3927         * lib/xgethostname.c: Likewise.
3928         * lib/xmalloc.c: Likewise.
3929         * lib/xmalloca.c: Likewise.
3930         * lib/xmalloca.h: Likewise.
3931         * lib/xmemcoll.c: Likewise.
3932         * lib/xnanosleep.c: Likewise.
3933         * lib/xreadlink.c: Likewise.
3934         * lib/xreadlink.h: Likewise.
3935         * lib/xsetenv.c: Likewise.
3936         * lib/xsetenv.h: Likewise.
3937         * lib/xstriconv.c: Likewise.
3938         * lib/xstriconv.h: Likewise.
3939         * lib/xstrndup.c: Likewise.
3940         * lib/xstrndup.h: Likewise.
3941         * lib/xstrtod.c: Likewise.
3942         * lib/xstrtod.h: Likewise.
3943         * lib/xstrtol-error.c: Likewise.
3944         * lib/xstrtol.c: Likewise.
3945         * lib/xstrtol.h: Likewise.
3946         * lib/xtime.h: Likewise.
3947         * lib/xvasprintf.c: Likewise.
3948         * lib/xvasprintf.h: Likewise.
3949         * lib/yesno.c: Likewise.
3950         * lib/yesno.h: Likewise.
3951         * posix-modules: Likewise.
3952         * tests/test-alloca-opt.c: Likewise.
3953         * tests/test-arcfour.c: Likewise.
3954         * tests/test-arctwo.c: Likewise.
3955         * tests/test-argmatch.c: Likewise.
3956         * tests/test-argp-2.sh: Likewise.
3957         * tests/test-argp.c: Likewise.
3958         * tests/test-arpa_inet.c: Likewise.
3959         * tests/test-array_list.c: Likewise.
3960         * tests/test-array_oset.c: Likewise.
3961         * tests/test-atexit.c: Likewise.
3962         * tests/test-avltree_list.c: Likewise.
3963         * tests/test-avltree_oset.c: Likewise.
3964         * tests/test-avltreehash_list.c: Likewise.
3965         * tests/test-base64.c: Likewise.
3966         * tests/test-binary-io.c: Likewise.
3967         * tests/test-byteswap.c: Likewise.
3968         * tests/test-c-ctype.c: Likewise.
3969         * tests/test-c-strcasecmp.c: Likewise.
3970         * tests/test-c-strcasestr.c: Likewise.
3971         * tests/test-c-strncasecmp.c: Likewise.
3972         * tests/test-c-strstr.c: Likewise.
3973         * tests/test-canonicalize-lgpl.c: Likewise.
3974         * tests/test-canonicalize.c: Likewise.
3975         * tests/test-carray_list.c: Likewise.
3976         * tests/test-ceilf.c: Likewise.
3977         * tests/test-ceill.c: Likewise.
3978         * tests/test-count-one-bits.c: Likewise.
3979         * tests/test-crc.c: Likewise.
3980         * tests/test-dirname.c: Likewise.
3981         * tests/test-fbufmode.c: Likewise.
3982         * tests/test-fcntl.c: Likewise.
3983         * tests/test-fflush.c: Likewise.
3984         * tests/test-floorf.c: Likewise.
3985         * tests/test-floorl.c: Likewise.
3986         * tests/test-fopen.c: Likewise.
3987         * tests/test-fprintf-posix.c: Likewise.
3988         * tests/test-fprintf-posix.h: Likewise.
3989         * tests/test-fpurge.c: Likewise.
3990         * tests/test-freadable.c: Likewise.
3991         * tests/test-freadahead.c: Likewise.
3992         * tests/test-freading.c: Likewise.
3993         * tests/test-freopen.c: Likewise.
3994         * tests/test-frexp.c: Likewise.
3995         * tests/test-frexpl.c: Likewise.
3996         * tests/test-fseek.c: Likewise.
3997         * tests/test-fseeko.c: Likewise.
3998         * tests/test-fseterr.c: Likewise.
3999         * tests/test-fstrcmp.c: Likewise.
4000         * tests/test-ftell.c: Likewise.
4001         * tests/test-ftello.c: Likewise.
4002         * tests/test-fwritable.c: Likewise.
4003         * tests/test-fwriting.c: Likewise.
4004         * tests/test-getaddrinfo.c: Likewise.
4005         * tests/test-getpass.c: Likewise.
4006         * tests/test-gettimeofday.c: Likewise.
4007         * tests/test-hmac-md5.c: Likewise.
4008         * tests/test-hmac-sha1.c: Likewise.
4009         * tests/test-iconv.c: Likewise.
4010         * tests/test-iconvme.c: Likewise.
4011         * tests/test-inttypes.c: Likewise.
4012         * tests/test-isnan.c: Likewise.
4013         * tests/test-isnanf.c: Likewise.
4014         * tests/test-isnanl-nolibm.c: Likewise.
4015         * tests/test-isnanl.c: Likewise.
4016         * tests/test-isnanl.h: Likewise.
4017         * tests/test-ldexpl.c: Likewise.
4018         * tests/test-linked_list.c: Likewise.
4019         * tests/test-linkedhash_list.c: Likewise.
4020         * tests/test-locale.c: Likewise.
4021         * tests/test-localename.c: Likewise.
4022         * tests/test-lock.c: Likewise.
4023         * tests/test-lseek.c: Likewise.
4024         * tests/test-malloca.c: Likewise.
4025         * tests/test-math.c: Likewise.
4026         * tests/test-mbscasecmp.c: Likewise.
4027         * tests/test-mbscasestr1.c: Likewise.
4028         * tests/test-mbscasestr2.c: Likewise.
4029         * tests/test-mbscasestr3.c: Likewise.
4030         * tests/test-mbscasestr4.c: Likewise.
4031         * tests/test-mbschr.c: Likewise.
4032         * tests/test-mbscspn.c: Likewise.
4033         * tests/test-mbsncasecmp.c: Likewise.
4034         * tests/test-mbspbrk.c: Likewise.
4035         * tests/test-mbspcasecmp.c: Likewise.
4036         * tests/test-mbsrchr.c: Likewise.
4037         * tests/test-mbsspn.c: Likewise.
4038         * tests/test-mbsstr1.c: Likewise.
4039         * tests/test-mbsstr2.c: Likewise.
4040         * tests/test-mbsstr3.c: Likewise.
4041         * tests/test-md5.c: Likewise.
4042         * tests/test-memmem.c: Likewise.
4043         * tests/test-netinet_in.c: Likewise.
4044         * tests/test-open.c: Likewise.
4045         * tests/test-printf-frexp.c: Likewise.
4046         * tests/test-printf-frexpl.c: Likewise.
4047         * tests/test-printf-posix.c: Likewise.
4048         * tests/test-printf-posix.h: Likewise.
4049         * tests/test-rbtree_list.c: Likewise.
4050         * tests/test-rbtree_oset.c: Likewise.
4051         * tests/test-rbtreehash_list.c: Likewise.
4052         * tests/test-read-file.c: Likewise.
4053         * tests/test-rijndael.c: Likewise.
4054         * tests/test-search.c: Likewise.
4055         * tests/test-signbit.c: Likewise.
4056         * tests/test-sleep.c: Likewise.
4057         * tests/test-snprintf-posix.c: Likewise.
4058         * tests/test-snprintf-posix.h: Likewise.
4059         * tests/test-snprintf.c: Likewise.
4060         * tests/test-sprintf-posix.c: Likewise.
4061         * tests/test-sprintf-posix.h: Likewise.
4062         * tests/test-stat-time.c: Likewise.
4063         * tests/test-stdbool.c: Likewise.
4064         * tests/test-stdint.c: Likewise.
4065         * tests/test-stdio.c: Likewise.
4066         * tests/test-stdlib.c: Likewise.
4067         * tests/test-stpncpy.c: Likewise.
4068         * tests/test-strcasestr.c: Likewise.
4069         * tests/test-striconv.c: Likewise.
4070         * tests/test-striconveh.c: Likewise.
4071         * tests/test-striconveha.c: Likewise.
4072         * tests/test-string.c: Likewise.
4073         * tests/test-sys_select.c: Likewise.
4074         * tests/test-sys_socket.c: Likewise.
4075         * tests/test-sys_stat.c: Likewise.
4076         * tests/test-sys_time.c: Likewise.
4077         * tests/test-sysexits.c: Likewise.
4078         * tests/test-time.c: Likewise.
4079         * tests/test-tls.c: Likewise.
4080         * tests/test-trunc.c: Likewise.
4081         * tests/test-truncf.c: Likewise.
4082         * tests/test-truncl.c: Likewise.
4083         * tests/test-unistd.c: Likewise.
4084         * tests/test-vasnprintf-posix.c: Likewise.
4085         * tests/test-vasnprintf-posix2.c: Likewise.
4086         * tests/test-vasnprintf.c: Likewise.
4087         * tests/test-vasprintf-posix.c: Likewise.
4088         * tests/test-vasprintf.c: Likewise.
4089         * tests/test-verify.c: Likewise.
4090         * tests/test-vfprintf-posix.c: Likewise.
4091         * tests/test-vprintf-posix.c: Likewise.
4092         * tests/test-vsnprintf-posix.c: Likewise.
4093         * tests/test-vsnprintf.c: Likewise.
4094         * tests/test-vsprintf-posix.c: Likewise.
4095         * tests/test-wchar.c: Likewise.
4096         * tests/test-wctype.c: Likewise.
4097         * tests/test-wcwidth.c: Likewise.
4098         * tests/test-xstrtol.c: Likewise.
4099         * tests/test-xvasprintf.c: Likewise.
4100         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
4101         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
4102         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
4103         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
4104         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
4105         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
4106         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
4107         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
4108         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
4109         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
4110         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
4111         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
4112         * tests/uniname/test-uninames.c: Likewise.
4113         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
4114         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
4115         * tests/unistdio/test-u16-printf1.h: Likewise.
4116         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
4117         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
4118         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
4119         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
4120         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
4121         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
4122         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
4123         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
4124         * tests/unistdio/test-u32-printf1.h: Likewise.
4125         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
4126         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
4127         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
4128         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
4129         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
4130         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
4131         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
4132         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
4133         * tests/unistdio/test-u8-printf1.h: Likewise.
4134         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
4135         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
4136         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
4137         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
4138         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
4139         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
4140         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
4141         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
4142         * tests/unistdio/test-ulc-printf1.h: Likewise.
4143         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
4144         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
4145         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
4146         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
4147         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
4148         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
4149         * tests/uniwidth/test-u16-strwidth.c: Likewise.
4150         * tests/uniwidth/test-u16-width.c: Likewise.
4151         * tests/uniwidth/test-u32-strwidth.c: Likewise.
4152         * tests/uniwidth/test-u32-width.c: Likewise.
4153         * tests/uniwidth/test-u8-strwidth.c: Likewise.
4154         * tests/uniwidth/test-u8-width.c: Likewise.
4155         * tests/uniwidth/test-uc_width.c: Likewise.
4156         * config/srclist-update: Likewise.
4157         (fixlicense): Update to GPLv3+.
4158
4159         Change copyright notice from LGPLv2.1+ to LGPLv3+.
4160         * tests/test-tsearch.c: Change copyright notice.
4161
4162         Change copyright notice from LGPLv2.0+ to LGPLv3+.
4163         * lib/c-strcaseeq.h: Change copyright notice.
4164         * lib/streq.h: Likewise.
4165         * lib/uniconv.h: Likewise.
4166         * lib/uniconv/u-conv-from-enc.h: Likewise.
4167         * lib/uniconv/u-conv-to-enc.h: Likewise.
4168         * lib/uniconv/u-strconv-from-enc.h: Likewise.
4169         * lib/uniconv/u-strconv-to-enc.h: Likewise.
4170         * lib/uniconv/u16-conv-from-enc.c: Likewise.
4171         * lib/uniconv/u16-conv-to-enc.c: Likewise.
4172         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
4173         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
4174         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
4175         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
4176         * lib/uniconv/u32-conv-from-enc.c: Likewise.
4177         * lib/uniconv/u32-conv-to-enc.c: Likewise.
4178         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
4179         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
4180         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
4181         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
4182         * lib/uniconv/u8-conv-from-enc.c: Likewise.
4183         * lib/uniconv/u8-conv-to-enc.c: Likewise.
4184         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
4185         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
4186         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
4187         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
4188         * lib/uniname.h: Likewise.
4189         * lib/uniname/uniname.c: Likewise.
4190         * lib/unistdio.h: Likewise.
4191         * lib/unistdio/u-asnprintf.h: Likewise.
4192         * lib/unistdio/u-asprintf.h: Likewise.
4193         * lib/unistdio/u-printf-args.c: Likewise.
4194         * lib/unistdio/u-printf-args.h: Likewise.
4195         * lib/unistdio/u-printf-parse.h: Likewise.
4196         * lib/unistdio/u-snprintf.h: Likewise.
4197         * lib/unistdio/u-sprintf.h: Likewise.
4198         * lib/unistdio/u-vasprintf.h: Likewise.
4199         * lib/unistdio/u-vsnprintf.h: Likewise.
4200         * lib/unistdio/u-vsprintf.h: Likewise.
4201         * lib/unistdio/u16-asnprintf.c: Likewise.
4202         * lib/unistdio/u16-asprintf.c: Likewise.
4203         * lib/unistdio/u16-printf-parse.c: Likewise.
4204         * lib/unistdio/u16-snprintf.c: Likewise.
4205         * lib/unistdio/u16-sprintf.c: Likewise.
4206         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
4207         * lib/unistdio/u16-u16-asprintf.c: Likewise.
4208         * lib/unistdio/u16-u16-snprintf.c: Likewise.
4209         * lib/unistdio/u16-u16-sprintf.c: Likewise.
4210         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
4211         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
4212         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
4213         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
4214         * lib/unistdio/u16-vasnprintf.c: Likewise.
4215         * lib/unistdio/u16-vasprintf.c: Likewise.
4216         * lib/unistdio/u16-vsnprintf.c: Likewise.
4217         * lib/unistdio/u16-vsprintf.c: Likewise.
4218         * lib/unistdio/u32-asnprintf.c: Likewise.
4219         * lib/unistdio/u32-asprintf.c: Likewise.
4220         * lib/unistdio/u32-printf-parse.c: Likewise.
4221         * lib/unistdio/u32-snprintf.c: Likewise.
4222         * lib/unistdio/u32-sprintf.c: Likewise.
4223         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
4224         * lib/unistdio/u32-u32-asprintf.c: Likewise.
4225         * lib/unistdio/u32-u32-snprintf.c: Likewise.
4226         * lib/unistdio/u32-u32-sprintf.c: Likewise.
4227         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
4228         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
4229         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
4230         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
4231         * lib/unistdio/u32-vasnprintf.c: Likewise.
4232         * lib/unistdio/u32-vasprintf.c: Likewise.
4233         * lib/unistdio/u32-vsnprintf.c: Likewise.
4234         * lib/unistdio/u32-vsprintf.c: Likewise.
4235         * lib/unistdio/u8-asnprintf.c: Likewise.
4236         * lib/unistdio/u8-asprintf.c: Likewise.
4237         * lib/unistdio/u8-printf-parse.c: Likewise.
4238         * lib/unistdio/u8-snprintf.c: Likewise.
4239         * lib/unistdio/u8-sprintf.c: Likewise.
4240         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
4241         * lib/unistdio/u8-u8-asprintf.c: Likewise.
4242         * lib/unistdio/u8-u8-snprintf.c: Likewise.
4243         * lib/unistdio/u8-u8-sprintf.c: Likewise.
4244         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
4245         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
4246         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
4247         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
4248         * lib/unistdio/u8-vasnprintf.c: Likewise.
4249         * lib/unistdio/u8-vasprintf.c: Likewise.
4250         * lib/unistdio/u8-vsnprintf.c: Likewise.
4251         * lib/unistdio/u8-vsprintf.c: Likewise.
4252         * lib/unistdio/ulc-asnprintf.c: Likewise.
4253         * lib/unistdio/ulc-asprintf.c: Likewise.
4254         * lib/unistdio/ulc-printf-parse.c: Likewise.
4255         * lib/unistdio/ulc-snprintf.c: Likewise.
4256         * lib/unistdio/ulc-sprintf.c: Likewise.
4257         * lib/unistdio/ulc-vasnprintf.c: Likewise.
4258         * lib/unistdio/ulc-vasprintf.c: Likewise.
4259         * lib/unistdio/ulc-vsnprintf.c: Likewise.
4260         * lib/unistdio/ulc-vsprintf.c: Likewise.
4261         * lib/unistr.h: Likewise.
4262         * lib/unistr/u-cpy-alloc.h: Likewise.
4263         * lib/unistr/u-cpy.h: Likewise.
4264         * lib/unistr/u-endswith.h: Likewise.
4265         * lib/unistr/u-move.h: Likewise.
4266         * lib/unistr/u-set.h: Likewise.
4267         * lib/unistr/u-startswith.h: Likewise.
4268         * lib/unistr/u-stpcpy.h: Likewise.
4269         * lib/unistr/u-stpncpy.h: Likewise.
4270         * lib/unistr/u-strcat.h: Likewise.
4271         * lib/unistr/u-strcpy.h: Likewise.
4272         * lib/unistr/u-strcspn.h: Likewise.
4273         * lib/unistr/u-strdup.h: Likewise.
4274         * lib/unistr/u-strlen.h: Likewise.
4275         * lib/unistr/u-strncat.h: Likewise.
4276         * lib/unistr/u-strncpy.h: Likewise.
4277         * lib/unistr/u-strnlen.h: Likewise.
4278         * lib/unistr/u-strpbrk.h: Likewise.
4279         * lib/unistr/u-strspn.h: Likewise.
4280         * lib/unistr/u-strstr.h: Likewise.
4281         * lib/unistr/u-strtok.h: Likewise.
4282         * lib/unistr/u16-check.c: Likewise.
4283         * lib/unistr/u16-chr.c: Likewise.
4284         * lib/unistr/u16-cmp.c: Likewise.
4285         * lib/unistr/u16-cpy-alloc.c: Likewise.
4286         * lib/unistr/u16-cpy.c: Likewise.
4287         * lib/unistr/u16-endswith.c: Likewise.
4288         * lib/unistr/u16-mblen.c: Likewise.
4289         * lib/unistr/u16-mbsnlen.c: Likewise.
4290         * lib/unistr/u16-mbtouc-aux.c: Likewise.
4291         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
4292         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
4293         * lib/unistr/u16-mbtouc.c: Likewise.
4294         * lib/unistr/u16-mbtoucr.c: Likewise.
4295         * lib/unistr/u16-move.c: Likewise.
4296         * lib/unistr/u16-next.c: Likewise.
4297         * lib/unistr/u16-prev.c: Likewise.
4298         * lib/unistr/u16-set.c: Likewise.
4299         * lib/unistr/u16-startswith.c: Likewise.
4300         * lib/unistr/u16-stpcpy.c: Likewise.
4301         * lib/unistr/u16-stpncpy.c: Likewise.
4302         * lib/unistr/u16-strcat.c: Likewise.
4303         * lib/unistr/u16-strchr.c: Likewise.
4304         * lib/unistr/u16-strcmp.c: Likewise.
4305         * lib/unistr/u16-strcpy.c: Likewise.
4306         * lib/unistr/u16-strcspn.c: Likewise.
4307         * lib/unistr/u16-strdup.c: Likewise.
4308         * lib/unistr/u16-strlen.c: Likewise.
4309         * lib/unistr/u16-strmblen.c: Likewise.
4310         * lib/unistr/u16-strmbtouc.c: Likewise.
4311         * lib/unistr/u16-strncat.c: Likewise.
4312         * lib/unistr/u16-strncmp.c: Likewise.
4313         * lib/unistr/u16-strncpy.c: Likewise.
4314         * lib/unistr/u16-strnlen.c: Likewise.
4315         * lib/unistr/u16-strpbrk.c: Likewise.
4316         * lib/unistr/u16-strrchr.c: Likewise.
4317         * lib/unistr/u16-strspn.c: Likewise.
4318         * lib/unistr/u16-strstr.c: Likewise.
4319         * lib/unistr/u16-strtok.c: Likewise.
4320         * lib/unistr/u16-to-u32.c: Likewise.
4321         * lib/unistr/u16-to-u8.c: Likewise.
4322         * lib/unistr/u16-uctomb-aux.c: Likewise.
4323         * lib/unistr/u16-uctomb.c: Likewise.
4324         * lib/unistr/u32-check.c: Likewise.
4325         * lib/unistr/u32-chr.c: Likewise.
4326         * lib/unistr/u32-cmp.c: Likewise.
4327         * lib/unistr/u32-cpy-alloc.c: Likewise.
4328         * lib/unistr/u32-cpy.c: Likewise.
4329         * lib/unistr/u32-endswith.c: Likewise.
4330         * lib/unistr/u32-mblen.c: Likewise.
4331         * lib/unistr/u32-mbsnlen.c: Likewise.
4332         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
4333         * lib/unistr/u32-mbtouc.c: Likewise.
4334         * lib/unistr/u32-mbtoucr.c: Likewise.
4335         * lib/unistr/u32-move.c: Likewise.
4336         * lib/unistr/u32-next.c: Likewise.
4337         * lib/unistr/u32-prev.c: Likewise.
4338         * lib/unistr/u32-set.c: Likewise.
4339         * lib/unistr/u32-startswith.c: Likewise.
4340         * lib/unistr/u32-stpcpy.c: Likewise.
4341         * lib/unistr/u32-stpncpy.c: Likewise.
4342         * lib/unistr/u32-strcat.c: Likewise.
4343         * lib/unistr/u32-strchr.c: Likewise.
4344         * lib/unistr/u32-strcmp.c: Likewise.
4345         * lib/unistr/u32-strcpy.c: Likewise.
4346         * lib/unistr/u32-strcspn.c: Likewise.
4347         * lib/unistr/u32-strdup.c: Likewise.
4348         * lib/unistr/u32-strlen.c: Likewise.
4349         * lib/unistr/u32-strmblen.c: Likewise.
4350         * lib/unistr/u32-strmbtouc.c: Likewise.
4351         * lib/unistr/u32-strncat.c: Likewise.
4352         * lib/unistr/u32-strncmp.c: Likewise.
4353         * lib/unistr/u32-strncpy.c: Likewise.
4354         * lib/unistr/u32-strnlen.c: Likewise.
4355         * lib/unistr/u32-strpbrk.c: Likewise.
4356         * lib/unistr/u32-strrchr.c: Likewise.
4357         * lib/unistr/u32-strspn.c: Likewise.
4358         * lib/unistr/u32-strstr.c: Likewise.
4359         * lib/unistr/u32-strtok.c: Likewise.
4360         * lib/unistr/u32-to-u16.c: Likewise.
4361         * lib/unistr/u32-to-u8.c: Likewise.
4362         * lib/unistr/u32-uctomb.c: Likewise.
4363         * lib/unistr/u8-check.c: Likewise.
4364         * lib/unistr/u8-chr.c: Likewise.
4365         * lib/unistr/u8-cmp.c: Likewise.
4366         * lib/unistr/u8-cpy-alloc.c: Likewise.
4367         * lib/unistr/u8-cpy.c: Likewise.
4368         * lib/unistr/u8-endswith.c: Likewise.
4369         * lib/unistr/u8-mblen.c: Likewise.
4370         * lib/unistr/u8-mbsnlen.c: Likewise.
4371         * lib/unistr/u8-mbtouc-aux.c: Likewise.
4372         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
4373         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
4374         * lib/unistr/u8-mbtouc.c: Likewise.
4375         * lib/unistr/u8-mbtoucr.c: Likewise.
4376         * lib/unistr/u8-move.c: Likewise.
4377         * lib/unistr/u8-next.c: Likewise.
4378         * lib/unistr/u8-prev.c: Likewise.
4379         * lib/unistr/u8-set.c: Likewise.
4380         * lib/unistr/u8-startswith.c: Likewise.
4381         * lib/unistr/u8-stpcpy.c: Likewise.
4382         * lib/unistr/u8-stpncpy.c: Likewise.
4383         * lib/unistr/u8-strcat.c: Likewise.
4384         * lib/unistr/u8-strchr.c: Likewise.
4385         * lib/unistr/u8-strcmp.c: Likewise.
4386         * lib/unistr/u8-strcpy.c: Likewise.
4387         * lib/unistr/u8-strcspn.c: Likewise.
4388         * lib/unistr/u8-strdup.c: Likewise.
4389         * lib/unistr/u8-strlen.c: Likewise.
4390         * lib/unistr/u8-strmblen.c: Likewise.
4391         * lib/unistr/u8-strmbtouc.c: Likewise.
4392         * lib/unistr/u8-strncat.c: Likewise.
4393         * lib/unistr/u8-strncmp.c: Likewise.
4394         * lib/unistr/u8-strncpy.c: Likewise.
4395         * lib/unistr/u8-strnlen.c: Likewise.
4396         * lib/unistr/u8-strpbrk.c: Likewise.
4397         * lib/unistr/u8-strrchr.c: Likewise.
4398         * lib/unistr/u8-strspn.c: Likewise.
4399         * lib/unistr/u8-strstr.c: Likewise.
4400         * lib/unistr/u8-strtok.c: Likewise.
4401         * lib/unistr/u8-to-u16.c: Likewise.
4402         * lib/unistr/u8-to-u32.c: Likewise.
4403         * lib/unistr/u8-uctomb-aux.c: Likewise.
4404         * lib/unistr/u8-uctomb.c: Likewise.
4405         * lib/unitypes.h: Likewise.
4406         * lib/uniwidth.h: Likewise.
4407         * lib/uniwidth/cjk.h: Likewise.
4408         * lib/uniwidth/u16-strwidth.c: Likewise.
4409         * lib/uniwidth/u16-width.c: Likewise.
4410         * lib/uniwidth/u32-strwidth.c: Likewise.
4411         * lib/uniwidth/u32-width.c: Likewise.
4412         * lib/uniwidth/u8-strwidth.c: Likewise.
4413         * lib/uniwidth/u8-width.c: Likewise.
4414         * lib/uniwidth/width.c: Likewise.
4415
4416 2007-10-07  Bruno Haible  <bruno@clisp.org>
4417
4418         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
4419         The file is still under LGPL (see modules/inttypes).
4420
4421 2007-10-06  Bruno Haible  <bruno@clisp.org>
4422
4423         * modules/trunc (Dependencies): Add 'extensions'.
4424         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
4425         Reported by Ben Pfaff <blp@gnu.org>.
4426
4427 2007-10-06  Bruno Haible  <bruno@clisp.org>
4428
4429         * modules/freopen-tests: New file.
4430         * tests/test-freopen.c: New file.
4431
4432         * modules/fopen-tests: New file.
4433         * tests/test-fopen.c: New file.
4434
4435         * modules/fopen: New file.
4436         * lib/fopen.c: New file.
4437         * m4/fopen.m4: New file.
4438         * modules/freopen: New file.
4439         * lib/freopen.c: New file.
4440         * m4/freopen.m4: New file.
4441         * lib/stdio.in.h (fopen, freopen): New declarations.
4442         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
4443         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
4444         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
4445         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
4446         * doc/functions/fopen.texi: Mention the 'fopen' module.
4447         * doc/functions/freopen.texi: Mention the 'freopen' module.
4448
4449 2007-10-06  Bruno Haible  <bruno@clisp.org>
4450
4451         * modules/open-tests: New file.
4452         * tests/test-open.c: New file.
4453
4454         * modules/open: New file.
4455         * lib/open.c: New file.
4456         * m4/open.m4: New file.
4457         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
4458         lib/open.c does.
4459         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
4460         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
4461         macros.
4462         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
4463         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
4464         REPLACE_OPEN.
4465         * doc/functions/open.texi: Mention the 'open' module.
4466
4467 2007-10-04  Bruno Haible  <bruno@clisp.org>
4468
4469         * modules/ceill-tests: New file.
4470         * tests/test-ceill.c: New file.
4471
4472         * modules/ceill: New file.
4473         * lib/ceill.c: Replace entire file.
4474         * m4/ceill.m4: New file.
4475         * lib/math.in.h (ceill): Replace declaration.
4476         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
4477         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
4478         * doc/functions/ceill.texi: Mention the 'ceill' module.
4479         * modules/mathl (Files): Remove lib/ceill.c.
4480         (Depends-on): Add ceill.
4481
4482 2007-10-04  Bruno Haible  <bruno@clisp.org>
4483
4484         * modules/ceilf-tests: New file.
4485         * tests/test-ceilf.c: New file.
4486
4487         * modules/ceilf: New file.
4488         * lib/ceil.c: New file.
4489         * lib/ceilf.c: New file.
4490         * m4/ceilf.m4: New file.
4491         * lib/math.in.h (ceilf): New declaration.
4492         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
4493         HAVE_DECL_CEILF.
4494         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
4495         HAVE_DECL_CEILF.
4496         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
4497
4498 2007-10-04  Bruno Haible  <bruno@clisp.org>
4499
4500         * modules/floorl-tests: New file.
4501         * tests/test-floorl.c: New file.
4502
4503         * modules/floorl: New file.
4504         * lib/floorl.c: Replace entire file.
4505         * m4/floorl.m4: New file.
4506         * lib/math.in.h (floorl): Replace declaration.
4507         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
4508         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
4509         * doc/functions/floorl.texi: Mention the 'floorl' module.
4510         * modules/mathl (Files): Remove lib/floorl.c.
4511         (Depends-on): Add floorl.
4512
4513 2007-10-04  Bruno Haible  <bruno@clisp.org>
4514
4515         * modules/floorf-tests: New file.
4516         * tests/test-floorf.c: New file.
4517
4518         * modules/floorf: New file.
4519         * lib/floor.c: New file.
4520         * lib/floorf.c: New file.
4521         * m4/floorf.m4: New file.
4522         * lib/math.in.h (floorf): New declaration.
4523         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
4524         HAVE_DECL_FLOORF.
4525         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
4526         HAVE_DECL_FLOORF.
4527         * doc/functions/floorf.texi: Mention the 'floorf' module.
4528
4529 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
4530             Bruno Haible  <bruno@clisp.org>
4531
4532         Advertise for the Git server instead of the CVS server.
4533         * doc/gnulib-intro.texi (Steady Development): Mention the Git
4534         repository instead of the CVS one.
4535         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
4536         about all VCS systems generically.
4537         * doc/gnulib.texi (Introduction): Capitalize `Git'.
4538
4539 2007-10-04  Bruno Haible  <bruno@clisp.org>
4540
4541         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
4542         means.
4543         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
4544
4545 2007-10-04  Bruno Haible  <bruno@clisp.org>
4546
4547         * modules/truncl-tests: New file.
4548         * tests/test-truncl.c: New file.
4549
4550         * modules/truncl: New file.
4551         * lib/truncl.c: New file.
4552         * m4/truncl.m4: New file.
4553         * lib/math.in.h (truncl): New declaration.
4554         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
4555         HAVE_DECL_TRUNCL.
4556         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
4557         HAVE_DECL_TRUNCL.
4558         * doc/functions/truncl.texi: Mention the 'truncl' module.
4559
4560 2007-10-04  Bruno Haible  <bruno@clisp.org>
4561
4562         * modules/truncf-tests: New file.
4563         * tests/test-truncf.c: New file.
4564
4565         * modules/truncf: New file.
4566         * lib/trunc.c: Make paramerizable through USE_* macros.
4567         * lib/truncf.c: New file.
4568         * m4/truncf.m4: New file.
4569         * lib/math.in.h (truncf): New declaration.
4570         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
4571         HAVE_DECL_TRUNCF.
4572         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
4573         HAVE_DECL_TRUNCF.
4574         * doc/functions/truncf.texi: Mention the 'truncf' module.
4575
4576 2007-10-03  Bruno Haible  <bruno@clisp.org>
4577
4578         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
4579         augmentation also for tests modules.
4580         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
4581         * modules/atexit-tests (Makefile.am): Likewise.
4582         * modules/binary-io-tests (Makefile.am): Likewise.
4583         * modules/c-strcase-tests (Makefile.am): Likewise.
4584         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
4585         * modules/canonicalize-tests (Makefile.am): Likewise.
4586         * modules/closein-tests (Makefile.am): Likewise.
4587         * modules/fprintf-posix-tests (Makefile.am): Likewise.
4588         * modules/freadahead-tests (Makefile.am): Likewise.
4589         * modules/fseek-tests (Makefile.am): Likewise.
4590         * modules/fseeko-tests (Makefile.am): Likewise.
4591         * modules/ftell-tests (Makefile.am): Likewise.
4592         * modules/ftello-tests (Makefile.am): Likewise.
4593         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
4594         * modules/isnanl-tests (Makefile.am): Likewise.
4595         * modules/lseek-tests (Makefile.am): Likewise.
4596         * modules/mbscasecmp-tests (Makefile.am): Likewise.
4597         * modules/mbscasestr-tests (Makefile.am): Likewise.
4598         * modules/mbschr-tests (Makefile.am): Likewise.
4599         * modules/mbscspn-tests (Makefile.am): Likewise.
4600         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
4601         * modules/mbspbrk-tests (Makefile.am): Likewise.
4602         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
4603         * modules/mbsrchr-tests (Makefile.am): Likewise.
4604         * modules/mbsspn-tests (Makefile.am): Likewise.
4605         * modules/mbsstr-tests (Makefile.am): Likewise.
4606         * modules/printf-posix-tests (Makefile.am): Likewise.
4607         * modules/snprintf-posix-tests (Makefile.am): Likewise.
4608         * modules/sprintf-posix-tests (Makefile.am): Likewise.
4609         * modules/tsearch-tests (Makefile.am): Likewise.
4610         * modules/uniname/uniname-tests (Makefile.am): Likewise.
4611         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
4612         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
4613         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
4614         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
4615         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
4616         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
4617         * modules/vprintf-posix-tests (Makefile.am): Likewise.
4618         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
4619         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
4620         * modules/xstrtoimax-tests (Makefile.am): Likewise.
4621         * modules/xstrtol-tests (Makefile.am): Likewise.
4622         * modules/xstrtoumax-tests (Makefile.am): Likewise.
4623         * modules/yesno-tests (Makefile.am): Likewise.
4624
4625 2007-10-03  Bruno Haible  <bruno@clisp.org>
4626
4627         * modules/trunc-tests: New file.
4628         * tests/test-trunc.c: New file.
4629
4630         * modules/trunc: New file.
4631         * lib/trunc.c: New file.
4632         * m4/trunc.m4: New file.
4633         * lib/math.in.h (trunc): New declaration.
4634         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
4635         HAVE_DECL_TRUNC.
4636         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
4637         HAVE_DECL_TRUNC.
4638         * doc/functions/trunc.texi: Mention the 'trunc' module.
4639
4640 2007-10-03  Bruno Haible  <bruno@clisp.org>
4641
4642         * tests/test-fpending.c: New file, mostly copied
4643         from coreutils/lib/t-fpending.c.
4644         * modules/fpending-tests: New file.
4645
4646 2007-10-03  Bruno Haible  <bruno@clisp.org>
4647
4648         Port the stdio extensions to QNX (untested).
4649         * lib/fseterr.c (fseterr): Add support for QNX.
4650         * lib/fbufmode.c (fbufmode): Likewise.
4651         * lib/freadable.c (freadable): Likewise.
4652         * lib/fwritable.c (fwritable): Likewise.
4653         * lib/freading.c (freading): Likewise.
4654         * lib/fwriting.c (fwriting): Likewise.
4655         * lib/freadahead.c (freadahed): Likewise.
4656         * lib/fpurge.c (fpurge): Likewise.
4657         * lib/fseeko.c (rpl_fseeko): Likewise.
4658
4659 2007-10-03  Bruno Haible  <bruno@clisp.org>
4660             Jim Meyering  <jim@meyering.net>
4661             Eric Blake  <ebb9@byu.net>
4662
4663         * doc/relocatable.texi: Use @command instead of @program.
4664
4665 2007-10-02  Jim Meyering  <jim@meyering.net>
4666
4667         Perform one more "_.h" -> ".in.h" substitution.
4668         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
4669         instead of unistd_.h here, too.
4670
4671 2007-10-01  Bruno Haible  <bruno@clisp.org>
4672
4673         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
4674         Needed for the alloca-opt module.
4675
4676 2007-09-30  Bruno Haible  <bruno@clisp.org>
4677
4678         * lib/alloca.in.h: Renamed from lib/alloca_.h.
4679         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
4680         alloca_.h.
4681         * lib/argz.in.h: Renamed from lib/argz_.h.
4682         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
4683         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
4684         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
4685         byteswap_.h.
4686         * lib/dirent.in.h: Renamed from lib/dirent_.h.
4687         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
4688         dirent_.h.
4689         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
4690         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
4691         fcntl_.h.
4692         * lib/float.in.h: Renamed from lib/float_.h.
4693         * modules/float (Files, Makefile.am): Use float.in.h instead of
4694         float_.h.
4695         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
4696         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
4697         fnmatch_.h.
4698         * lib/getopt.in.h: Renamed from lib/getopt_.h.
4699         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
4700         getopt_.h.
4701         * lib/glob.in.h: Renamed from lib/glob_.h.
4702         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
4703         * lib/iconv.in.h: Renamed from lib/iconv_.h.
4704         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
4705         iconv_.h.
4706         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
4707         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
4708         inttypes_.h.
4709         * lib/locale.in.h: Renamed from lib/locale_.h.
4710         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
4711         locale_.h.
4712         * lib/math.in.h: Renamed from lib/math_.h.
4713         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
4714         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
4715         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
4716         of netinet_in_.h. Add dependency.
4717         * lib/poll.in.h: Renamed from lib/poll_.h.
4718         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
4719         * lib/search.in.h: Renamed from lib/search_.h.
4720         * modules/search (Files, Makefile.am): Use search.in.h instead of
4721         search_.h.
4722         * lib/signal.in.h: Renamed from lib/signal_.h.
4723         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
4724         _signal.h.
4725         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
4726         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
4727         stdbool_.h.
4728         * lib/stdint.in.h: Renamed from lib/stdint_.h.
4729         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
4730         stdint_.h.
4731         * lib/stdio.in.h: Renamed from lib/stdio_.h.
4732         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
4733         stdio_.h.
4734         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
4735         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
4736         stdlib_.h.
4737         * lib/string.in.h: Renamed from lib/string_.h.
4738         * modules/string (Files, Makefile.am): Use string.in.h instead of
4739         string_.h.
4740         * doc/gnulib-tool.texi (Initial import): Update.
4741         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
4742         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
4743         of sys_select_.h. Add dependency.
4744         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
4745         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
4746         of sys_socket_.h.
4747         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
4748         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
4749         sys_stat_.h.
4750         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
4751         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
4752         sys_time_.h.
4753         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
4754         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
4755         sysexits_.h.
4756         * lib/time.in.h: Renamed from lib/time_.h.
4757         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
4758         * lib/unistd.in.h: Renamed from lib/unistd_.h.
4759         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
4760         unistd_.h.
4761         * lib/wchar.in.h: Renamed from lib/wchar_.h.
4762         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
4763         wchar_.h.
4764         * lib/wctype.in.h: Renamed from lib/wctype_.h.
4765         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
4766         wctype_.h.
4767         * build-aux/bootstrap (slurp): Update.
4768         * lib/.cppi-disable: Update.
4769
4770 2007-09-30  Bruno Haible  <bruno@clisp.org>
4771
4772         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
4773         Needed on BeOS.
4774
4775 2007-09-30  Bruno Haible  <bruno@clisp.org>
4776
4777         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
4778
4779 2007-09-29  Bruno Haible  <bruno@clisp.org>
4780
4781         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
4782
4783 2007-09-29  Bruno Haible  <bruno@clisp.org>
4784
4785         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
4786         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
4787         * build-aux/install-reloc: Compile also areadlink.c.
4788         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
4789
4790 2007-09-29  Bruno Haible  <bruno@clisp.org>
4791
4792         * gnulib-tool (func_emit_initmacro_done): Indentation.
4793
4794 2007-09-29  Bruno Haible  <bruno@clisp.org>
4795
4796         * README: Add CVS checkout update instructions.
4797         Info from Bob Proulx <bob@proulx.com>.
4798
4799 2007-09-28  Eric Blake  <ebb9@byu.net>
4800
4801         Provide move-if-change.
4802         * build-aux/move-if-change: New file, based on best practice
4803         rather than any canonical upstream location.
4804
4805 2007-09-28  Jim Meyering  <jim@meyering.net>
4806
4807         Fix canonicalize loop-detection corner case.
4808         Do not attempt to stat the symlink values stored via seen_triple.
4809         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
4810         on linux-2.6.18, (but not 2.6.22).
4811         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
4812         triple_compare.  The former compares dev,ino,filename, while the latter
4813         would actually stat dirname(filename) when dev and ino were equal.
4814         * lib/hash-triple.c: Install <string.h>.
4815         (STREQ): Define.
4816         (triple_compare_ino_str): New function.
4817         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
4818
4819 2007-09-28  Eric Blake  <ebb9@byu.net>
4820
4821         Enforce that AC_REPLACE_FUNCS files exist.
4822         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
4823         override check for typos.
4824
4825         Fix test-closein on Solaris 10.
4826         * tests/test-closein.c (main): Don't assume stdin can be inherited
4827         closed on all systems.
4828         * tests/test-closein.sh: Likewise.
4829         Reported by Piotr Tarnowski.
4830
4831 2007-09-28  Jim Meyering  <jim@meyering.net>
4832
4833         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
4834
4835 2007-09-27  Jim Meyering  <jim@meyering.net>
4836
4837         canonicalize: Avoid a false-positive cycle failure.
4838         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
4839         Sort.  Remove cycle-check.
4840         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
4841         not cycle-check.h.
4842         (seen_triple): New function.
4843         (canonicalize_filename_mode): Use it instead of cycle-check.
4844         * tests/test-canonicalize.c: Add a test for this bug.
4845         * tests/test-canonicalize.sh: Set up and run the test.
4846
4847         New module, file-set, from coreutils.
4848         * modules/file-set: Define it.
4849         * lib/file-set.c, lib/file-set.h: Implement.
4850
4851         New module, hash-triple, from coreutils.
4852         * modules/hash-triple: Define it.
4853         * lib/hash-triple.c, lib/hash-triple.h: Implement.
4854
4855 2007-09-25  Eric Blake  <ebb9@byu.net>
4856
4857         Fix strerror on Interix.
4858         * lib/string_.h (strerror): Declare replacement.
4859         * doc/functions/strerror.texi (strerror): Document the Interix
4860         shortcoming.
4861         * modules/string (Makefile.am): Support new hooks.
4862         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
4863         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
4864         gl_FUNC_STRERROR_SEPARATE.
4865         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
4866         * lib/strerror.c (rpl_strerror): Provide replacement.
4867         * modules/strerror (Depends-on): Add string.
4868         (configure.ac): Detect use of module.
4869         * tests/test-strerror.c: New file.
4870         * modules/strerror-tests: New test module.
4871         * modules/argp (Depends-on): Add strerror.
4872         * modules/error (Depends-on): Likewise.
4873         Reported by Martin Koeppe.
4874
4875 2007-09-24  Bruno Haible  <bruno@clisp.org>
4876
4877         * README: Update git instructions.
4878
4879 2007-09-24  Eric Blake  <ebb9@byu.net>
4880
4881         Revert fpending breakage from 2007-09-08.
4882         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
4883         __fpending.c.
4884
4885 2007-09-24  Jim Meyering  <jim@meyering.net>
4886
4887         filenamecat.c: Add a test.
4888         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
4889         showing how the function works when DIR is the empty string.
4890
4891 2007-09-21  Simon Josefsson  <simon@josefsson.org>
4892
4893         * tests/test-canonicalize.sh: Turn on executable bit.
4894
4895 2007-09-19  Eric Blake  <ebb9@byu.net>
4896
4897         * README: Update CVS instructions.
4898
4899 2007-09-18  Bruno Haible  <bruno@clisp.org>
4900
4901         * modules/areadlink: New file.
4902         * lib/areadlink.h (areadlink): New declaration.
4903         * lib/areadlink.c: New file, based on lib/xreadlink.c.
4904
4905 2007-09-17  Jim Meyering  <jim@meyering.net>
4906
4907         * lib/savewd.c (ESTALE) [!defined]: Define.
4908         Reported to be required on Interix by Martin Koeppe.
4909
4910 2007-09-17  Bruno Haible  <bruno@clisp.org>
4911
4912         * gnulib-tool (func_version): Use $version.
4913
4914 2007-09-16  Bruno Haible  <bruno@clisp.org>
4915
4916         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
4917         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
4918         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
4919         Reported by Greg Schafer <gschafer@zip.com.au>.
4920
4921 2007-09-15  Bruno Haible  <bruno@clisp.org>
4922
4923         * gnulib-tool (sed): Try a little harder to make bash understand the
4924         alias.
4925         Reported by Bruce Korb <bruce.korb@gmail.com>.
4926
4927 2007-09-13  Eric Blake  <ebb9@byu.net>
4928
4929         * ChangeLog: Remove conflict markers.
4930
4931 2007-09-13  Simon Josefsson  <simon@josefsson.org>
4932
4933         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
4934         Reported by Bruno Haible <bruno@clisp.org>.
4935
4936 2007-09-12  Bruno Haible  <bruno@clisp.org>
4937
4938         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
4939         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
4940         is not defined.
4941
4942 2007-09-12  Eric Blake  <ebb9@byu.net>
4943
4944         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
4945         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
4946         Autoconf definition.
4947         * modules/euidaccess (Depends-on): Add extensions, for
4948         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
4949         * modules/fnmatch (Depends-on): Likewise.
4950         * modules/getaddrinfo (Depends-on): Likewise.
4951         * modules/getdelim (Depends-on): Likewise.
4952         * modules/getline (Depends-on): Likewise.
4953         * modules/getsubopt (Depends-on): Likewise.
4954         * modules/gettext (Depends-on): Likewise.
4955         * modules/group-member (Depends-on): Likewise.
4956         * modules/mbchar (Depends-on): Likewise.
4957         * modules/memmem (Depends-on): Likewise.
4958         * modules/mempcpy (Depends-on): Likewise.
4959         * modules/memrchr (Depends-on): Likewise.
4960         * modules/pagealign_alloc (Depends-on): Likewise.
4961         * modules/readutmp (Depends-on): Likewise.
4962         * modules/stpcpy (Depends-on): Likewise.
4963         * modules/stpncpy (Depends-on): Likewise.
4964         * modules/strchrnul (Depends-on): Likewise.
4965         * modules/strndup (Depends-on): Likewise.
4966         * modules/strsep (Depends-on): Likewise.
4967         * modules/strverscmp (Depends-on): Likewise.
4968         * modules/vasprintf (Depends-on): Likewise.
4969         * modules/wcwidth (Depends-on): Likewise.
4970         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
4971         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
4972         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
4973         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
4974         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
4975         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
4976         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
4977         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
4978         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
4979         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
4980         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
4981         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
4982         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
4983         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
4984         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
4985         * m4/readutmp.m4 (gl_READUTMP): Likewise.
4986         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4987         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
4988         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
4989         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
4990         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
4991         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
4992         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
4993         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
4994         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
4995         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4996         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
4997         so that lock.m4 can be used in gettext without extensions module.
4998
4999 2007-09-11  Bruno Haible  <bruno@clisp.org>
5000
5001         * m4/isc-posix.m4: Remove file.
5002         Suggested by Eric Blake.
5003
5004 2007-09-11  Eric Blake  <ebb9@byu.net>
5005
5006         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
5007
5008 2007-09-10  Bruno Haible  <bruno@clisp.org>
5009
5010         * posix-modules: Fix typo in error message.
5011         Reported by Matt <mkraai@beckman.com>.
5012
5013 2007-09-09  Bruno Haible  <bruno@clisp.org>
5014
5015         * doc/functions/getdelim.texi: Update list of platforms lacking the
5016         function.
5017         * doc/functions/getline.texi: Likewise.
5018
5019 2007-09-09  Jim Meyering  <jim@meyering.net>
5020
5021         * lib/hash.c (hash_initialize): Detect calloc failure.
5022         Reported by Bruno Haible.
5023
5024 2007-09-09  Bruno Haible  <bruno@clisp.org>
5025
5026         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
5027         malloc or realloc fails.
5028
5029 2007-09-09  Bruno Haible  <bruno@clisp.org>
5030
5031         * modules/getcwd (Depends-on): Add malloc-posix.
5032         * modules/glob (Depends-on): Likewise.
5033         * modules/putenv (Depends-on): Likewise.
5034         * modules/strdup (Depends-on): Likewise.
5035         * modules/getdelim (Depends-on): Add realloc-posix.
5036         * modules/read-file (Depends-on): Likewise.
5037
5038 2007-09-09  Bruno Haible  <bruno@clisp.org>
5039
5040         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
5041         (gl_FUNC_MALLOC_POSIX): Require it.
5042         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
5043         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
5044         * modules/realloc (Files): Add m4/malloc.m4.
5045         * modules/calloc (Files): Likewise.
5046
5047 2007-09-09  Bruno Haible  <bruno@clisp.org>
5048
5049         * modules/malloc-posix: New file.
5050         * modules/malloc (Depends-on): Add malloc-posix.
5051         * lib/malloc.c: Include errno.h.
5052         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
5053         and a POSIX-compatible malloc into a single function. Set ENOMEM
5054         when returning NULL.
5055         * m4/malloc.m4: New file.
5056         * doc/functions/malloc.texi: Mention the malloc-posix module.
5057         * lib/stdlib_.h (malloc): New declaration.
5058         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
5059         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
5060         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
5061         and HAVE_MALLOC_POSIX.
5062
5063 2007-09-09  Bruno Haible  <bruno@clisp.org>
5064
5065         * modules/realloc-posix: New file.
5066         * modules/realloc (Depends-on): Add realloc-posix.
5067         * lib/realloc.c: Include errno.h.
5068         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
5069         and a POSIX-compatible realloc into a single function. Set ENOMEM
5070         when returning NULL.
5071         * m4/realloc.m4: New file.
5072         * doc/functions/realloc.texi: Mention the realloc-posix module.
5073         * lib/stdlib_.h (realloc): New declaration.
5074         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
5075         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
5076         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
5077         and HAVE_REALLOC_POSIX.
5078
5079 2007-09-09  Bruno Haible  <bruno@clisp.org>
5080
5081         * modules/calloc-posix: New file.
5082         * modules/calloc (Depends-on): Add calloc-posix.
5083         * lib/calloc.c: Include errno.h.
5084         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
5085         and a POSIX-compatible calloc into a single function. Set ENOMEM
5086         when returning NULL.
5087         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
5088         * doc/functions/calloc.texi: Mention the calloc-posix module.
5089         * lib/stdlib_.h (calloc): New declaration.
5090         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
5091         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
5092         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
5093         and HAVE_CALLOC_POSIX.
5094
5095 2007-09-09  Bruno Haible  <bruno@clisp.org>
5096
5097         Allow for modules to show an arbitrary notice.
5098         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
5099         * gnulib-tool: New option --extract-notice.
5100         (func_usage): Document it.
5101         (sed_extract_prog): Update.
5102         (func_get_notice): New function.
5103         (func_modules_notice): New function.
5104         (func_import, func_create_testdir): Invoke it.
5105         Suggested by Jim Meyering.
5106
5107 2007-09-09  Bruno Haible  <bruno@clisp.org>
5108
5109         * gnulib-tool: New options --verbose, --quiet.
5110         (func_usage): Document them.
5111         (verbose): New variable.
5112         (func_execute_command): New function.
5113         (func_import): Don't show the module list and the file list if
5114         $verbose < 0.
5115         (func_create_testdir): Likewise. Use func_execute_command.
5116         (func_create_megatestdir): Use func_execute_command.
5117
5118 2007-09-08  Bruno Haible  <bruno@clisp.org>
5119
5120         * gnulib-tool (func_import): Prefer rsync over wget when available,
5121         for fetching the PO files.
5122
5123 2007-09-08  Bruno Haible  <bruno@clisp.org>
5124
5125         * posix-modules: New file. Portions copied from gnulib-tool.
5126         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
5127
5128 2007-09-08  Jim Meyering  <jim@meyering.net>
5129
5130         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
5131         * lib/fpending.h: Rename from __fpending.h.
5132         * lib/fpending.c: Rename from __fpending.c.
5133         Include "fpending.h", not "__fpending.h".
5134         * lib/__fpending.h, lib/__fpending.c: Remove files.
5135         * modules/fpending (Files): Reflect new file names.
5136         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
5137
5138 2007-09-08  Bruno Haible  <bruno@clisp.org>
5139
5140         * m4/inttypes-h.m4: Remove stub file.
5141
5142 2007-09-07  Simon Josefsson  <simon@josefsson.org>
5143
5144         * doc/headers/stdint.texi: Discuss #include_next issue.
5145
5146 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
5147
5148         * build-aux/bootstrap: Remove obsolete comment about wget --help.
5149
5150 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
5151
5152         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
5153         in variable name.
5154
5155 2007-09-03  Jim Meyering  <jim@meyering.net>
5156
5157         New module: git-version-gen.
5158         * modules/git-version-gen: New file.
5159
5160         Import changes from coreutils for bootstrap script.
5161
5162         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
5163
5164         bootstrap: uses rsync to download the .po files
5165         * build-aux/bootstrap (po_download_command_format): New global.
5166         (download_po_files): Use rsync.
5167         (update_po_files): Don't remove .po files after download,
5168         so future rsync runs can take advantage of the copies.
5169
5170         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
5171
5172         Solve the unnecessary-.po-file-regeneration problem once and for all.
5173         * build-aux/bootstrap (download_po_files): New function, renamed from
5174         get_translations.  Now, downloads, but doesn't update LINGUAS.
5175         (update_po_files): New function.
5176
5177         bootstrap: Ignore more.
5178         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
5179         uniwidth to e.g., lib/.gitignore.
5180         (slurp): Handle the sys_stat_.h -> sys mapping, too.
5181
5182         * build-aux/bootstrap: New setting: vc_ignore.
5183         (insert_sorted_if_absent): Create $file if absent.
5184         Adapt to new, possibly empty, list: $vc_ignore.
5185
5186         bootstrap: generate more ignorable names
5187         * build-aux/bootstrap (slurp): When generating ignorable names,
5188         also map .sin to .sed, .gperf to .c, and .y to .c.
5189
5190 2007-09-03  Jim Meyering  <jim@meyering.net>
5191
5192         * build-aux/git-version-gen: New file, from coreutils.  For details, see
5193         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
5194
5195 2007-09-02  Bruno Haible  <bruno@clisp.org>
5196
5197         Fix mis-recognition of 'mcs' on QNX 6.
5198         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
5199         output contains the string "Mono".
5200         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
5201         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
5202
5203 2007-09-01  Bruno Haible  <bruno@clisp.org>
5204
5205         Fix collision between uniwidth/* and linebreak modules.
5206         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
5207         u32_width): Remove declarations.
5208         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
5209         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
5210         streq3, streq2, streq1, streq0): Remove functions.
5211         (STREQ): Remove macro.
5212         (is_cjk_encoding): Remove function.
5213         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
5214         (uc_width, u8_width, u16_width, u32_width): Remove functions.
5215         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
5216         * NEWS: Document the change.
5217
5218 2007-09-01  Bruno Haible  <bruno@clisp.org>
5219
5220         * lib/streq.h: Add double-inclusion guard.
5221
5222 2007-09-01  Karl Berry  <karl@gnu.org>
5223
5224         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
5225
5226 2007-08-28  Jim Meyering  <jim@meyering.net>
5227
5228         Rename mreadlink_with_size to areadlink_with_size.
5229         * NEWS: Document the change.
5230         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
5231         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
5232         * lib/mreadlink.h: Rename this to...
5233         * lib/areadlink.h: ...this.
5234         * modules/mreadlink-with-size: Rename this to...
5235         * modules/areadlink-with-size: ...this.
5236         * lib/canonicalize.c: Reflect the renaming.
5237         * modules/canonicalize: Likewise.
5238
5239 2007-08-26  Bruno Haible  <bruno@clisp.org>
5240
5241         * gnulib-tool (func_import): When deciding which files to remove,
5242         consider also dangling symbolic links.
5243         Reported by Eric Blake.
5244
5245 2007-08-26  Bruno Haible  <bruno@clisp.org>
5246
5247         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
5248
5249 2007-08-23  Simon Josefsson  <simon@josefsson.org>
5250
5251         * lib/readline.c: Don't include getline.h, the prototype is now
5252         found in stdio.h.
5253
5254 2007-08-23  Jim Meyering  <jim@meyering.net>
5255
5256         Getdelim touchup.
5257         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
5258         around the funlockfile call, since funlockfile never sets errno.
5259         Don't set errno upon failed realloc.
5260
5261 2007-08-22  Eric Blake  <ebb9@byu.net>
5262
5263         Getline touchups.
5264         * lib/getdelim.c (getdelim): Revert regression that required *n to
5265         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
5266         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
5267         getdelim, rather than whether implementation is missing.
5268         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
5269         * lib/stdio_.h (getline): Also declare if replacement is
5270         required.
5271         * doc/functions/getdelim.texi: New file.
5272         * doc/functions/getline.texi: Likewise.
5273         * doc/gnulib.texi (Function Substitutes): Add new files.
5274         Reported by Bruno Haible.
5275
5276 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
5277
5278         * users.txt: Add Guile.
5279
5280 2007-08-22  Eric Blake  <ebb9@byu.net>
5281
5282         * tests/test-getdelim.c (main): Use remove, not unlink.
5283         * tests/test-getline.c (main): Likewise.
5284
5285         Move getline and getdelim into stdio.h, per POSIX 200x.
5286         * modules/getline (Files): Remove getline.h.
5287         (Depends-on): Add stdio.
5288         (configure.ac): Add module indicator.
5289         * modules/getdelim (Files): Remove getdelim.h.
5290         (Depends-on): Add stdio.
5291         (configure.ac): Add module indicator.
5292         * modules/stdio (Makefile.am): Work with new indicators.
5293         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
5294         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
5295         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
5296         * lib/getdelim.h: Delete.
5297         * lib/getline.h: Delete.
5298         * lib/stdio_.h (getdelim, getline): Declare.
5299         * modules/getdelim-tests: New module.
5300         * modules/getline-tests: Likewise.
5301         * tests/test-getdelim.c: New file.
5302         * tests/test-getline.c: Likewise.
5303         * NEWS: Document the change.
5304         * lib/getline.c: Update choice of header.
5305         * lib/csharpcomp.c: Likewise.
5306         * lib/getpass.c: Likewise.
5307         * lib/javacomp.c: Likewise.
5308         * lib/javaversion.c: Likewise.
5309         * lib/yesno.c: Likewise.
5310         * lib/getdelim.c: Likewise.
5311         (getdelim): Set errno on failure, and avoid memory leak.
5312
5313 2007-08-19  Bruno Haible  <bruno@clisp.org>
5314
5315         * modules/closein (Depends-on): Add freadahead.
5316         * lib/closein.c: Include freadahead.h.
5317         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
5318         is zero.
5319
5320 2007-08-19  Bruno Haible  <bruno@clisp.org>
5321
5322         * modules/freadahead-tests: New file.
5323         * tests/test-freadahead.sh: New file.
5324         * tests/test-freadahead.c: New file.
5325
5326         * modules/freadahead: New file.
5327         * lib/freadahead.h: New file.
5328         * lib/freadahead.c: New file.
5329         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
5330         fbufmode, fpurge, freadable, fwritable.
5331
5332 2007-08-19  Eric Blake  <ebb9@byu.net>
5333
5334         Test yesno in combination with closein.
5335         * lib/yesno.c (yesno): Document use of stdin.
5336         * modules/yesno-tests (Files): New module.
5337         * tests/test-yesno.c (main): New file.
5338         * tests/test-yesno.sh: Likewise.
5339
5340 2007-08-19  Bruno Haible  <bruno@clisp.org>
5341
5342         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
5343         * lib/fseeko.c (rpl_fseeko): Likewise.
5344         * lib/fseterr.c (fseterr): Likewise.
5345
5346 2007-08-19  Bruno Haible  <bruno@clisp.org>
5347
5348         * tests/test-lseek.c (main): Disable a test for BeOS.
5349         * doc/functions/lseek.texi: Document the BeOS bug.
5350
5351 2007-08-19  Bruno Haible  <bruno@clisp.org>
5352             Eric Blake  <ebb9@byu.net>
5353
5354         * lib/lseek.c: Include <sys/stat.h>.
5355         (rpl_lseek): Add workaround code also for Unix platforms.
5356         Needed for BeOS.
5357         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
5358         * doc/functions/lseek.texi: Document BeOS definiency.
5359
5360 2007-08-18  Bruno Haible  <bruno@clisp.org>
5361
5362         * modules/fstrcmp-tests: New file.
5363         * tests/test-fstrcmp.c: New file.
5364
5365 2007-08-18  Bruno Haible  <bruno@clisp.org>
5366
5367         * modules/fstrcmp: New file, from GNU gettext with modifications.
5368         * lib/fstrcmp.h: New file, from GNU gettext.
5369         * lib/fstrcmp.c: New file, from GNU gettext.
5370         * MODULES.html.sh (String handling): Add fstrcmp.
5371
5372 2007-08-18  Bruno Haible  <bruno@clisp.org>
5373
5374         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
5375         'bool'.
5376         (diag, compareseq): Remove const from the ctxt argument.
5377         (USE_HEURISTIC): Undefine at the end.
5378
5379 2007-08-18  Jim Meyering  <jim@meyering.net>
5380
5381         New file: lib/idcache.h
5382         * NEWS: Mention the addition.
5383         * modules/idcache (Files): Add lib/idcache.h
5384         * lib/idcache.c: Include "idcache.h".
5385         Don't include <sys/types.h>.
5386         Add a FIXME comment.
5387         Move file-scoped "static" declarations to the top.
5388         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
5389
5390 2007-08-17  Bruno Haible  <bruno@clisp.org>
5391         and Paul Eggert  <eggert@cs.ucla.edu>
5392
5393         * MODULES.html.sh: Add diffseq.
5394         * modules/diffseq: New file.
5395         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
5396         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
5397
5398 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
5399
5400         Import changes from coreutils for bootstrap script.
5401
5402         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
5403
5404         * build-aux/bootstrap (slurp): Work even in environments where
5405         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
5406         current code does not slurp files whose names start with ".", and
5407         this looks like it might be a troublesome area.
5408
5409         2007-07-11  Jim Meyering  <jim@meyering.net>
5410
5411         If there's a GPL vN copyright comment, require that N == 3.
5412
5413         2007-07-08  Jim Meyering  <jim@meyering.net>
5414
5415         Run the coreutils-specific code only if tests/Makefile.am.in exists.
5416         * build-aux/bootstrap (mam_template): Move definition out of loop.
5417
5418         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
5419
5420         * build-aux/bootstrap (symlink_to_dir): Rename function from
5421         symlink_to_gnulib.  Add a directory parameter.  Update all
5422         callers.
5423         (cp_mark_as_generated): Also check for -- and link to -- files in
5424         gl/.
5425
5426         2007-07-08  Jim Meyering  <jim@meyering.net>
5427
5428         Adapt to deeper hierarchy in gnulib.
5429         * build-aux/bootstrap (symlink_to_dir): If the destination
5430         directory doesn't exist, create it. This is required at least for
5431         "lib/uniwidth/cjk.h".
5432
5433         2007-05-15  Jim Meyering  <jim@meyering.net>
5434
5435         * build-aux/bootstrap: Now that generated Makefile.am files
5436         are no longer under version control, they must be created at
5437         bootstrap time.
5438
5439 2007-08-14  Ben Pfaff  <blp@gnu.org>
5440
5441         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
5442
5443 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
5444
5445         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
5446         given the changes below.
5447         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
5448         even on hosts that have padding bits beyond the supported 64.
5449
5450 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5451
5452         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
5453         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
5454         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
5455         depends on it.
5456         (xstrtol_error): Remove.
5457         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
5458         but with a different signature.
5459         (ATTRIBUTE_NORETURN, __attribute__): New macros.
5460         * lib/xstrtol-error.c: Include exitfail.h.
5461         (xstrtol_fatal): New function, with a different signature from the
5462         old xstrtol_error, so that the caller need not worry about passing
5463         in an exit status, or about storage management of the option argument.
5464         (xstrtol_error): Now a static function.  Redo signature to
5465         implement xstrtol_fatal.  Output the correct number of hyphens in
5466         front of the option so that the caller need not worry about
5467         storage management.
5468         (N_): New macro.
5469         (_): Remove; not used now.
5470         * modules/xstrtol: Depend on getopt.
5471         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
5472         of old STRTOL_FATAL_ERROR macro.
5473         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
5474         of test program.
5475         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
5476         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
5477
5478 2007-08-08  Eric Blake  <ebb9@byu.net>
5479
5480         * lib/xstrtol-error.c: Add missing include.
5481
5482         Move xstrtol messages into gnulib domain, when --pobase is used.
5483         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
5484         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
5485         * modules/xstrtol (Files): Distribute new file.
5486         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
5487         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
5488         * tests/test-xstrtol.c: ...into new file.
5489         * tests/test-xstrtoul.c: Also test xstrtoul.
5490         * tests/test-xstrtoimax.c: Also test xstrtoimax.
5491         * tests/test-xstrtoumax.c: Also test xstrtoumax.
5492         * tests/test-xstrtol.sh: Drive the tests.
5493         * tests/test-xstrtoimax.sh: Likewise.
5494         * tests/test-xstrtoumax.sh: Likewise.
5495         * modules/xstrtol-tests: New module.
5496         * modules/xstrtoimax-tests: Likewise.
5497         * modules/xstrtoumax-tests: Likewise.
5498
5499 2007-08-08  Jim Meyering  <jim@meyering.net>
5500
5501         New function: mfile_name_concat.
5502         * lib/filenamecat.c (mfile_name_concat): New function, just like
5503         file_name_concat, but return NULL upon failure rather than exiting
5504         with a diagnostic.
5505         * lib/filenamecat.h: Declare it.
5506
5507 2007-08-07  Bruno Haible  <bruno@clisp.org>
5508
5509         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
5510         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
5511         warning from gcc.
5512         Reported by Eric Blake.
5513
5514 2007-08-07  Simon Josefsson  <simon@josefsson.org>
5515
5516         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
5517         * modules/crypto/arcfour (License): Likewise.
5518         * modules/crypto/des-tests (License): Likewise.
5519         * modules/crypto/gc-arctwo-tests (License): Likewise.
5520         * modules/crypto/gc-des-tests (License): Likewise.
5521         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
5522         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
5523         * modules/crypto/gc-md2-tests (License): Likewise.
5524         * modules/crypto/gc-md4-tests (License): Likewise.
5525         * modules/crypto/gc-md5-tests (License): Likewise.
5526         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
5527         * modules/crypto/gc-rijndael-tests (License): Likewise.
5528         * modules/crypto/gc-sha1-tests (License): Likewise.
5529         * modules/crypto/gc-tests (License): Likewise.
5530         * modules/crypto/hmac-md5 (License): Likewise.
5531         * modules/crypto/hmac-sha1 (License): Likewise.
5532         * modules/crypto/md2-tests (License): Likewise.
5533         * modules/crypto/md4-tests (License): Likewise.
5534         * modules/crypto/md5 (License): Likewise.
5535         * modules/crypto/rijndael (License): Likewise.
5536         * modules/crypto/sha1 (License): Likewise.
5537         * modules/memxor (License): Likewise.
5538
5539 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
5540         and Bruno Haible  <bruno@clisp.org>
5541
5542         * NEWS: Describe interface changes to human, xstrtol.
5543         * lib/human.h: Include <xstrtol.h>.
5544         (human_options): Return enum strtol_error, not int.  Remove
5545         bool arg; take int * instead.
5546         * lib/human.c: Don't include "gettext.h".
5547         (_): Remove; no longer used.
5548         Don't include <xstrtol.h>, since human.h does it.
5549         (human_options): Adjust to abovementioned interface changes.
5550         Do not report error to stderr; that's now the caller's
5551         responsibility.
5552         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
5553         interface change.
5554         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
5555         Str, Argument_type_string.  All uses changed.  Put " argument"
5556         in diagnostics to make them clearer.  Change wording of suffix
5557         message for clarity.
5558         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
5559         Argument_type_string.
5560         (STRTOL_FATAL_WARN): Remove; no longer used.
5561         * modules/human (Depends-on): Remove gettext-h.
5562
5563 2007-08-06  Simon Josefsson  <simon@josefsson.org>
5564
5565         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
5566
5567 2007-07-31  Bruno Haible  <bruno@clisp.org>
5568
5569         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
5570         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
5571         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
5572
5573 2007-07-31  Bruno Haible  <bruno@clisp.org>
5574
5575         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
5576         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
5577
5578 2007-07-30  Bruno Haible  <bruno@clisp.org>
5579
5580         * modules/base64 (License): Use the synonymous term "LGPLv2+".
5581         * modules/c-ctype (License): Likewise.
5582         * modules/c-strcase (License): Likewise.
5583         * modules/check-version (License): Likewise.
5584         * modules/iconv (License): Likewise.
5585         * modules/iconv_open (License): Likewise.
5586         * modules/read-file (License): Likewise.
5587         * modules/striconv (License): Likewise.
5588         * modules/strverscmp (License): Likewise.
5589         * modules/vasprintf (License): Likewise.
5590         * modules/crypto/des (License): Likewise.
5591         * modules/crypto/gc (License): Likewise.
5592         * modules/crypto/gc-arcfour (License): Likewise.
5593         * modules/crypto/gc-arctwo (License): Likewise.
5594         * modules/crypto/gc-des (License): Likewise.
5595         * modules/crypto/gc-hmac-md5 (License): Likewise.
5596         * modules/crypto/gc-hmac-sha1 (License): Likewise.
5597         * modules/crypto/gc-md2 (License): Likewise.
5598         * modules/crypto/gc-md4 (License): Likewise.
5599         * modules/crypto/gc-md5 (License): Likewise.
5600         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
5601         * modules/crypto/gc-random (License): Likewise.
5602         * modules/crypto/gc-rijndael (License): Likewise.
5603         * modules/crypto/gc-sha1 (License): Likewise.
5604         * modules/crypto/md2 (License): Likewise.
5605         * modules/crypto/md4 (License): Likewise.
5606
5607 2007-07-30  Jim Meyering  <jim@meyering.net>
5608
5609         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
5610         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
5611         it has valid stat data.  This bug would cause du not to count the
5612         sizes of inaccessible directories.
5613         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
5614         in <http://bugzilla.redhat.com/250077>.
5615
5616 2007-07-25  Peter O'Gorman  <peter@pogma.com>
5617             Bruno Haible  <bruno@clisp.org>
5618
5619         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
5620         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
5621         #include_next, gives a diagnostic about it, but reports no error in
5622         the exit code.
5623         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
5624
5625 2007-07-24  Ben Pfaff  <blp@gnu.org>
5626
5627         Improve name: "count-one-bits" is better than "popcount".
5628         * MODULES.html.sh: Update name.
5629         * lib/popcount.h: Renamed lib/count-one-bits.h.
5630         (popcount): Renamed count_one_bits.
5631         (popcountl): Renamed count_one_bits_l.
5632         (popcountll): Renamed count_one_bits_ll.
5633         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
5634         * modules/popcount: Renamed module/count-one-bits.
5635         * modules/popcount-tests: Renamed module/count-one-bits-tests.
5636         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
5637
5638 2007-07-23  Ben Pfaff  <blp@gnu.org>
5639
5640         * lib/popcount.h (popcount32): Reduce size of constants, to allow
5641         better code generation, and add U to large constants to avoid
5642         warnings, in non-GCC case.
5643         Suggested by Bruno Haible.
5644
5645 2007-07-23  Ben Pfaff  <blp@gnu.org>
5646
5647         * lib/popcount.h: Use verify_true instead of if...abort.
5648         * modules/popcount: Depend on verify module.
5649         Suggested by Jim Meyering.
5650
5651 2007-07-23  Bruno Haible  <bruno@clisp.org>
5652
5653         * gnulib-tool (func_import): Create a .cvsignore file also when the
5654         directory is not yet in CVS but the toplevel directory is. When
5655         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
5656         Reported by Karl Berry.
5657
5658 2007-07-22  Ben Pfaff  <blp@gnu.org>
5659
5660         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
5661         case.
5662         Suggested by Eric Blake.
5663
5664 2007-07-22  Ben Pfaff  <blp@gnu.org>
5665
5666         New module: popcount.
5667         * MODULES.html.sh: Add popcount.
5668         * modules/popcount: New file.
5669         * modules/popcount-tests: New file.
5670         * tests/test-popcount.c: New file.
5671         * lib/popcount.h: New file.
5672         * m4/popcount.m4: New file.
5673
5674 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5675
5676         * build-aux/announce-gen: Update to GPLv3.
5677
5678         * build-aux/config.guess: Update from config.
5679
5680 2007-07-21  Bruno Haible  <bruno@clisp.org>
5681
5682         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
5683         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
5684
5685 2007-07-20  Jim Meyering  <jim@meyering.net>
5686
5687         * check-module: Diagnose a self-dependency.
5688
5689 2007-07-19  Bruno Haible  <bruno@clisp.org>
5690
5691         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
5692         empty.
5693         Reported by Eric Blake.
5694
5695 2007-07-18  Bruno Haible  <bruno@clisp.org>
5696
5697         * gnulib-tool: New options --po-base, --po-domain.
5698         (func_usage): Document them.
5699         (pobase, po_domain): New variables.
5700         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
5701         DEFAULT_TEXT_DOMAIN.
5702         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
5703         (func_import): Consider pobase and po_domain. Create a po/ directory.
5704         (func_create_testdir): Set pobase and po_domain to empty.
5705         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
5706         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
5707
5708 2007-07-18  Bruno Haible  <bruno@clisp.org>
5709
5710         * gnulib-tool (func_get_automake_snippet): Synthesize also an
5711         EXTRA_DIST augmentation for files in build-aux/.
5712
5713 2007-07-16  Bruno Haible  <bruno@clisp.org>
5714
5715         * modules/lseek (License): Use the synonymous term "LGPLv2+".
5716         * modules/getdelim (License): Likewise.
5717
5718 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
5719
5720         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
5721         * modules/d-type (License): Likewise.
5722         * modules/extensions (License): Likewise.
5723         * modules/fnmatch (License): Likewise.
5724         * modules/fseeko (License): Likewise.
5725         * modules/getaddrinfo (License): Likewise.
5726         * modules/getline (License): Likewise.
5727         * modules/getlogin_r (License): Likewise.
5728         * modules/getpass (License): Likewise.
5729         * modules/gettimeofday (License): Likewise.
5730         * modules/glob (License): Likewise.
5731         * modules/inet_ntop (License): Likewise.
5732         * modules/malloc (License): Likewise.
5733         * modules/malloca (License): Likewise.
5734         * modules/memmem (License): Likewise.
5735         * modules/mempcpy (License): Likewise.
5736         * modules/memset (License): Likewise.
5737         * modules/minmax (License): Likewise.
5738         * modules/mktime (License): Likewise.
5739         * modules/netinet_in (License): Likewise.
5740         * modules/pathmax (License): Likewise.
5741         * modules/poll (License): Likewise.
5742         * modules/regex (License): Likewise.
5743         * modules/snprintf (License): Likewise.
5744         * modules/stdbool (License): Likewise.
5745         * modules/stdint (License): Likewise.
5746         * modules/stdio (License): Likewise.
5747         * modules/strcase (License): Likewise.
5748         * modules/strcasestr (License): Likewise.
5749         * modules/strdup (License): Likewise.
5750         * modules/string (License): Likewise.
5751         * modules/strndup (License): Likewise.
5752         * modules/strnlen (License): Likewise.
5753         * modules/strpbrk (License): Likewise.
5754         * modules/strptime (License): Likewise.
5755         * modules/strsep (License): Likewise.
5756         * modules/sys_select (License): Likewise.
5757         * modules/sys_socket (License): Likewise.
5758         * modules/sys_stat (License): Likewise.
5759         * modules/sys_time (License): Likewise.
5760         * modules/time (License): Likewise.
5761         * modules/time_r (License): Likewise.
5762         * modules/timegm (License): Likewise.
5763         * modules/unistd (License): Likewise.
5764         * modules/vsnprintf (License): Likewise.
5765         * modules/wctype (License): Likewise.
5766
5767 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5768
5769         * modules/argz (License): LGPLv2+.
5770
5771 2007-07-15  Karl Berry  <karl@gnu.org>
5772
5773         * doc/gnulib.texi: revise node structure per new fdl.texi.
5774
5775 2007-07-14  Bruno Haible  <bruno@clisp.org>
5776
5777         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
5778         the output file.
5779         * lib/uniname/uninames.h: Regenerated.
5780
5781 2007-07-14  Karl Berry  <karl@gnu.org>
5782
5783         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
5784         omitting sectioning and index commands.
5785
5786 2007-07-13  Bruno Haible  <bruno@clisp.org>
5787
5788         New gnulib-tool option --more-symlinks.
5789         * gnulib-tool (func_usage): Document --more-symlinks.
5790         (do_copyrights): New variable.
5791         Recognize option --more-symlinks.
5792         (func_import): Don't add a copyright notice transform to
5793         sed_transform_lib_file if do_copyrights is empty.
5794
5795 2007-07-13  Bruno Haible  <bruno@clisp.org>
5796
5797         * lib/vasnprintf.c (decimal_point_char): Define also if
5798         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
5799         && !NEED_PRINTF_DIRECTIVE_A.
5800         Reported by Clemens Koller <clemens.koller@anagramm.de> via
5801         Gary V. Vaughan <gary@gnu.org>.
5802
5803 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
5804
5805         * lib/inttypes_.h: Undo previous change, since it was fixed
5806         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
5807
5808 2007-07-13  Bruno Haible  <bruno@clisp.org>
5809
5810         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
5811         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
5812
5813 2007-07-13  Jim Meyering  <jim@meyering.net>
5814
5815         df: Don't fail for Tru64's "file-on-file mount".
5816         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
5817         so we fall through and use statfs instead.  Details here:
5818         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
5819         Reported by Albert Chin.
5820
5821 2007-07-13  Bruno Haible  <bruno@clisp.org>
5822
5823         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
5824         * modules/configmake (License): Likewise.
5825         * modules/gettext (License): Likewise.
5826         * modules/gettext-h (License): Likewise.
5827         * modules/include_next (License): Likewise.
5828         * modules/link-warning (License): Likewise.
5829         * modules/localcharset (License): Likewise.
5830         * modules/localename (License): Likewise.
5831         * modules/lock (License): Likewise.
5832         * modules/relocatable-lib-lgpl (License): Likewise.
5833         * modules/size_max (License): Likewise.
5834         * modules/vasnprintf (License): Likewise.
5835         * modules/wchar (License): Likewise.
5836         * modules/xsize (License): Likewise.
5837
5838 2007-07-13  Bruno Haible  <bruno@clisp.org>
5839
5840         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
5841         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
5842
5843 2007-07-12  Bruno Haible  <bruno@clisp.org>
5844
5845         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
5846         in the modules files.
5847
5848 2007-07-11  Karl Berry  <karl@gnu.org>
5849
5850         * MODULES.html.sh (func_module): use
5851          sed -e '\|^'"${includefile}"'$|d'
5852          instead of /.../d, to avoid errors on $includefile's containing /.
5853
5854 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
5855
5856         * gnulib-tool (func_import): Avoid duplication of --avoid
5857         statements
5858         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
5859         names to `_' in variable names.
5860
5861 2007-07-10  Eric Blake  <ebb9@byu.net>
5862
5863         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
5864         * NEWS: Document this change.
5865
5866 2007-07-08  Bruno Haible  <bruno@clisp.org>
5867
5868         Update to Unicode 5.0.
5869         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
5870         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
5871         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
5872         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
5873         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
5874         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
5875         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
5876         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
5877         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
5878         U+10A3F, U+1D242..U+1D244.
5879         (nonspacing_table_ind): Update.
5880         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
5881         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
5882
5883 2007-07-08  Bruno Haible  <bruno@clisp.org>
5884
5885         Update to Unicode 5.0.
5886         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
5887         code transform. Extend the name index field of unicode_name_to_code and
5888         unicode_code_to_name from 16 to 24 bits.
5889         * lib/uniname/uniname.c (unicode_character_name,
5890         unicode_name_character): Add the range 0x12xxx to the code transform.
5891         * lib/uniname/uninames.h: Regenerated.
5892         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
5893
5894 2007-07-07  Bruno Haible  <bruno@clisp.org>
5895
5896         * modules/wcwidth-tests: New file.
5897         * tests/test-wcwidth.c: New file.
5898
5899         Work around MacOS X wcwidth() bug.
5900         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
5901         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
5902         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
5903         original wcwidth in non-UTF-8 locales.
5904         * modules/wcwidth (Depends-on): Add localcharset, streq,
5905         uniwidth/width.
5906         * doc/functions/wcwidth.texi: Update.
5907
5908 2007-07-07  Bruno Haible  <bruno@clisp.org>
5909
5910         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
5911         (wcwidth): New declaration.
5912         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
5913         macros.
5914         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
5915         here. Prepare for creating <wchar.h> unconditionally.
5916         * modules/wchar (Depends-on): Add link-warning.
5917         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
5918         REPLACE_WCWIDTH, and GL_LINK_WARNING.
5919         * lib/wcwidth.h: Remove file.
5920         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
5921         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
5922         * modules/wcwidth (Files): Remove lib/wcwidth.h.
5923         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
5924         (Include): Replace wcwidth.h with <wchar.h>.
5925         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
5926         * lib/mbchar.h: Don't include wcwidth.h.
5927         * lib/mbswidth.c: Likewise.
5928         * NEWS: Mention the change.
5929
5930 2007-07-07  Bruno Haible  <bruno@clisp.org>
5931
5932         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
5933         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
5934         definition with an external declaration.
5935         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
5936         defined as a function. Remove AC_C_INLINE requirement.
5937         * modules/wcwidth (Files): Add lib/wcwidth.c.
5938         (Makefile.am): Remove redundant statement.
5939
5940 2007-07-07  Bruno Haible  <bruno@clisp.org>
5941
5942         * MODULES.html.sh (Unicode string functions): Add the new modules.
5943
5944         * tests/uniwidth/test-u32-strwidth.c: New file.
5945         * modules/uniwidth/u32-strwidth-tests: New file.
5946
5947         * lib/uniwidth/u32-strwidth.c: New file.
5948         * modules/uniwidth/u32-strwidth: New file.
5949
5950         * tests/uniwidth/test-u16-strwidth.c: New file.
5951         * modules/uniwidth/u16-strwidth-tests: New file.
5952
5953         * lib/uniwidth/u16-strwidth.c: New file.
5954         * modules/uniwidth/u16-strwidth: New file.
5955
5956         * tests/uniwidth/test-u8-strwidth.c: New file.
5957         * modules/uniwidth/u8-strwidth-tests: New file.
5958
5959         * lib/uniwidth/u8-strwidth.c: New file.
5960         * modules/uniwidth/u8-strwidth: New file.
5961
5962         * tests/uniwidth/test-u32-width.c: New file.
5963         * modules/uniwidth/u32-width-tests: New file.
5964
5965         * lib/uniwidth/u32-width.c: New file.
5966         * modules/uniwidth/u32-width: New file.
5967
5968         * tests/uniwidth/test-u16-width.c: New file.
5969         * modules/uniwidth/u16-width-tests: New file.
5970
5971         * lib/uniwidth/u16-width.c: New file.
5972         * modules/uniwidth/u16-width: New file.
5973
5974         * tests/uniwidth/test-u8-width.c: New file.
5975         * modules/uniwidth/u8-width-tests: New file.
5976
5977         * lib/uniwidth/u8-width.c: New file.
5978         * modules/uniwidth/u8-width: New file.
5979
5980         * tests/uniwidth/test-uc_width.c: New file.
5981         * modules/uniwidth/width-tests: New file.
5982
5983         * lib/uniwidth/width.c: New file, from GNU libiconv.
5984         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
5985         * modules/uniwidth/width: New file.
5986
5987         * lib/uniwidth.h: New file, from GNU libiconv.
5988         * modules/uniwidth/base: New file.
5989
5990 2007-07-07  Bruno Haible  <bruno@clisp.org>
5991
5992         * lib/uniname.h: New file, from GNU gettext.
5993         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
5994         * lib/uniname/uninames.h: New file, from GNU gettext.
5995         * lib/uniname/uniname.c: New file, from GNU gettext.
5996         * tests/uniname/test-uninames.sh: New file.
5997         * tests/uniname/test-uninames.c: New file, from GNU gettext.
5998         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
5999         * modules/uniname/base: New file.
6000         * modules/uniname/uniname: New file.
6001         * modules/uniname/uniname-tests: New file.
6002         * MODULES.html.sh (Unicode string functions): Add the new modules.
6003
6004 2007-07-06  Bruno Haible  <bruno@clisp.org>
6005
6006         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
6007
6008 2007-07-06  Bruno Haible  <bruno@clisp.org>
6009
6010         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
6011         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
6012         includes <cygwin/sys_time.h> which includes <sys/select.h> which
6013         include <sys/time.h>.
6014         Reported by Eric Blake.
6015
6016 2007-07-06  Eric Blake  <ebb9@byu.net>
6017
6018         Fix testing canonicalize on cygwin.
6019         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
6020         Revert patch from 2007-06-19.
6021         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
6022         canonicalize module is also in use.
6023         * tests/test-canonicalize.c: New file.
6024         * tests/test-canonicalize.sh: Likewise.
6025         * modules/canonicalize-tests: Likewise.
6026
6027 2007-07-06  Jim Meyering  <jim@meyering.net>
6028
6029         * lib/getugroups.c (getugroups): Detect getgrent failure.
6030         Adjust comment to reflect reality: this function may return -1.
6031
6032 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
6033
6034         * build-aux/bootstrap (TP_URL,get_translations): Update to use
6035         the new TP address.
6036         (usage): Fix typo
6037         (gnulib_mk): New variable.
6038
6039 2007-07-05  Jim Meyering  <jim@meyering.net>
6040
6041         Don't let endgrent clobber errno, no matter how improbable.
6042         * lib/getugroups.c (getugroups): Save and restore errno around
6043         endgrent call.
6044
6045         Close the group DB even when failing with 2^31 or more members.
6046         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
6047
6048 2007-07-04  Jim Meyering  <jim@meyering.net>
6049
6050         * lib/getugroups.h: New file.
6051         * lib/getugroups.c: Include "getugroups.h".
6052         Remove uses of "register" keyword.
6053         Move local variable, "cp", down into scope where used.
6054         Give "username" parameter the "const" attribute.
6055         * modules/getugroups (Files): Add lib/getugroups.h
6056
6057 2007-07-04  Karl Berry  <karl@gnu.org>
6058
6059         * MODULES.html.sh (func_all_modules): Complete rename of
6060         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
6061
6062 2007-07-02  Bruno Haible  <bruno@clisp.org>
6063
6064         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
6065         mode, when inttypes.h comes from gnulib.
6066         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
6067
6068 2007-07-02  Simon Josefsson  <simon@josefsson.org>
6069
6070         * NEWS: Mention lgpl module name change.
6071
6072         * modules/lgpl-2.1: Renamed from lgpl.
6073
6074         * NEWS: Mention gpl module name change.
6075
6076         * modules/gpl-3.0: New file, based on gpl-2.0.
6077
6078         * modules/gpl-2.0: Renamed from gpl.
6079
6080         * modules/gpl: Fix filename, doc/gpl.texi is now found at
6081         doc/gpl-2.0.texi.
6082
6083 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
6084
6085         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
6086         #define __STDC_LIMIT_MACROS temporarily while including
6087         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
6088         Problem reported by Joel E. Denny in
6089         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
6090
6091 2007-07-01  Bruno Haible  <bruno@clisp.org>
6092
6093         * lib/unistdio.h: New file.
6094         * lib/unistdio/u-asnprintf.h: New file.
6095         * lib/unistdio/u-asprintf.h: New file.
6096         * lib/unistdio/u-printf-args.c: New file.
6097         * lib/unistdio/u-printf-args.h: New file.
6098         * lib/unistdio/u-printf-parse.h: New file.
6099         * lib/unistdio/u-snprintf.h: New file.
6100         * lib/unistdio/u-sprintf.h: New file.
6101         * lib/unistdio/u-vasprintf.h: New file.
6102         * lib/unistdio/u-vsnprintf.h: New file.
6103         * lib/unistdio/u-vsprintf.h: New file.
6104         * lib/unistdio/ulc-asnprintf.c: New file.
6105         * lib/unistdio/ulc-asprintf.c: New file.
6106         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
6107         * lib/unistdio/ulc-printf-parse.c: New file.
6108         * lib/unistdio/ulc-snprintf.c: New file.
6109         * lib/unistdio/ulc-sprintf.c: New file.
6110         * lib/unistdio/ulc-vasnprintf.c: New file.
6111         * lib/unistdio/ulc-vasprintf.c: New file.
6112         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
6113         * lib/unistdio/ulc-vsnprintf.c: New file.
6114         * lib/unistdio/ulc-vsprintf.c: New file.
6115         * lib/unistdio/u8-asnprintf.c: New file.
6116         * lib/unistdio/u8-asprintf.c: New file.
6117         * lib/unistdio/u8-printf-parse.c: New file.
6118         * lib/unistdio/u8-snprintf.c: New file.
6119         * lib/unistdio/u8-sprintf.c: New file.
6120         * lib/unistdio/u8-vasnprintf.c: New file.
6121         * lib/unistdio/u8-vasprintf.c: New file.
6122         * lib/unistdio/u8-vsnprintf.c: New file.
6123         * lib/unistdio/u8-vsprintf.c: New file.
6124         * lib/unistdio/u8-u8-asnprintf.c: New file.
6125         * lib/unistdio/u8-u8-asprintf.c: New file.
6126         * lib/unistdio/u8-u8-snprintf.c: New file.
6127         * lib/unistdio/u8-u8-sprintf.c: New file.
6128         * lib/unistdio/u8-u8-vasnprintf.c: New file.
6129         * lib/unistdio/u8-u8-vasprintf.c: New file.
6130         * lib/unistdio/u8-u8-vsnprintf.c: New file.
6131         * lib/unistdio/u8-u8-vsprintf.c: New file.
6132         * lib/unistdio/u16-asnprintf.c: New file.
6133         * lib/unistdio/u16-asprintf.c: New file.
6134         * lib/unistdio/u16-printf-parse.c: New file.
6135         * lib/unistdio/u16-snprintf.c: New file.
6136         * lib/unistdio/u16-sprintf.c: New file.
6137         * lib/unistdio/u16-vasnprintf.c: New file.
6138         * lib/unistdio/u16-vasprintf.c: New file.
6139         * lib/unistdio/u16-vsnprintf.c: New file.
6140         * lib/unistdio/u16-vsprintf.c: New file.
6141         * lib/unistdio/u16-u16-asnprintf.c: New file.
6142         * lib/unistdio/u16-u16-asprintf.c: New file.
6143         * lib/unistdio/u16-u16-snprintf.c: New file.
6144         * lib/unistdio/u16-u16-sprintf.c: New file.
6145         * lib/unistdio/u16-u16-vasnprintf.c: New file.
6146         * lib/unistdio/u16-u16-vasprintf.c: New file.
6147         * lib/unistdio/u16-u16-vsnprintf.c: New file.
6148         * lib/unistdio/u16-u16-vsprintf.c: New file.
6149         * lib/unistdio/u32-asnprintf.c: New file.
6150         * lib/unistdio/u32-asprintf.c: New file.
6151         * lib/unistdio/u32-printf-parse.c: New file.
6152         * lib/unistdio/u32-snprintf.c: New file.
6153         * lib/unistdio/u32-sprintf.c: New file.
6154         * lib/unistdio/u32-vasnprintf.c: New file.
6155         * lib/unistdio/u32-vasprintf.c: New file.
6156         * lib/unistdio/u32-vsnprintf.c: New file.
6157         * lib/unistdio/u32-vsprintf.c: New file.
6158         * lib/unistdio/u32-u32-asnprintf.c: New file.
6159         * lib/unistdio/u32-u32-asprintf.c: New file.
6160         * lib/unistdio/u32-u32-snprintf.c: New file.
6161         * lib/unistdio/u32-u32-sprintf.c: New file.
6162         * lib/unistdio/u32-u32-vasnprintf.c: New file.
6163         * lib/unistdio/u32-u32-vasprintf.c: New file.
6164         * lib/unistdio/u32-u32-vsnprintf.c: New file.
6165         * lib/unistdio/u32-u32-vsprintf.c: New file.
6166         * tests/unistdio/test-ulc-asnprintf1.c: New file.
6167         * tests/unistdio/test-ulc-asnprintf1.h: New file.
6168         * tests/unistdio/test-ulc-printf1.h: New file.
6169         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
6170         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
6171         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
6172         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
6173         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
6174         * tests/unistdio/test-ulc-vasprintf1.c: New file.
6175         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
6176         * tests/unistdio/test-ulc-vsprintf1.c: New file.
6177         * tests/unistdio/test-u8-asnprintf1.c: New file.
6178         * tests/unistdio/test-u8-asnprintf1.h: New file.
6179         * tests/unistdio/test-u8-printf1.h: New file.
6180         * tests/unistdio/test-u8-vasnprintf1.c: New file.
6181         * tests/unistdio/test-u8-vasnprintf2.c: New file.
6182         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
6183         * tests/unistdio/test-u8-vasnprintf3.c: New file.
6184         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
6185         * tests/unistdio/test-u8-vasprintf1.c: New file.
6186         * tests/unistdio/test-u8-vsnprintf1.c: New file.
6187         * tests/unistdio/test-u8-vsprintf1.c: New file.
6188         * tests/unistdio/test-u16-asnprintf1.c: New file.
6189         * tests/unistdio/test-u16-asnprintf1.h: New file.
6190         * tests/unistdio/test-u16-printf1.h: New file.
6191         * tests/unistdio/test-u16-vasnprintf1.c: New file.
6192         * tests/unistdio/test-u16-vasnprintf2.c: New file.
6193         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
6194         * tests/unistdio/test-u16-vasnprintf3.c: New file.
6195         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
6196         * tests/unistdio/test-u16-vasprintf1.c: New file.
6197         * tests/unistdio/test-u16-vsnprintf1.c: New file.
6198         * tests/unistdio/test-u16-vsprintf1.c: New file.
6199         * tests/unistdio/test-u32-asnprintf1.c: New file.
6200         * tests/unistdio/test-u32-asnprintf1.h: New file.
6201         * tests/unistdio/test-u32-printf1.h: New file.
6202         * tests/unistdio/test-u32-vasnprintf1.c: New file.
6203         * tests/unistdio/test-u32-vasnprintf2.c: New file.
6204         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
6205         * tests/unistdio/test-u32-vasnprintf3.c: New file.
6206         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
6207         * tests/unistdio/test-u32-vasprintf1.c: New file.
6208         * tests/unistdio/test-u32-vsnprintf1.c: New file.
6209         * tests/unistdio/test-u32-vsprintf1.c: New file.
6210         * modules/unistdio/base: New file.
6211         * modules/unistdio/u-printf-args: New file.
6212         * modules/unistdio/ulc-asnprintf: New file.
6213         * modules/unistdio/ulc-asprintf: New file.
6214         * modules/unistdio/ulc-fprintf: New file.
6215         * modules/unistdio/ulc-printf-parse: New file.
6216         * modules/unistdio/ulc-snprintf: New file.
6217         * modules/unistdio/ulc-sprintf: New file.
6218         * modules/unistdio/ulc-vasnprintf: New file.
6219         * modules/unistdio/ulc-vasprintf: New file.
6220         * modules/unistdio/ulc-vfprintf: New file.
6221         * modules/unistdio/ulc-vsnprintf: New file.
6222         * modules/unistdio/ulc-vsprintf: New file.
6223         * modules/unistdio/u8-asnprintf: New file.
6224         * modules/unistdio/u8-asprintf: New file.
6225         * modules/unistdio/u8-printf-parse: New file.
6226         * modules/unistdio/u8-snprintf: New file.
6227         * modules/unistdio/u8-sprintf: New file.
6228         * modules/unistdio/u8-vasnprintf: New file.
6229         * modules/unistdio/u8-vasprintf: New file.
6230         * modules/unistdio/u8-vsnprintf: New file.
6231         * modules/unistdio/u8-vsprintf: New file.
6232         * modules/unistdio/u8-u8-asnprintf: New file.
6233         * modules/unistdio/u8-u8-asprintf: New file.
6234         * modules/unistdio/u8-u8-snprintf: New file.
6235         * modules/unistdio/u8-u8-sprintf: New file.
6236         * modules/unistdio/u8-u8-vasnprintf: New file.
6237         * modules/unistdio/u8-u8-vasprintf: New file.
6238         * modules/unistdio/u8-u8-vsnprintf: New file.
6239         * modules/unistdio/u8-u8-vsprintf: New file.
6240         * modules/unistdio/u16-asnprintf: New file.
6241         * modules/unistdio/u16-asprintf: New file.
6242         * modules/unistdio/u16-printf-parse: New file.
6243         * modules/unistdio/u16-snprintf: New file.
6244         * modules/unistdio/u16-sprintf: New file.
6245         * modules/unistdio/u16-vasnprintf: New file.
6246         * modules/unistdio/u16-vasprintf: New file.
6247         * modules/unistdio/u16-vsnprintf: New file.
6248         * modules/unistdio/u16-vsprintf: New file.
6249         * modules/unistdio/u16-u16-asnprintf: New file.
6250         * modules/unistdio/u16-u16-asprintf: New file.
6251         * modules/unistdio/u16-u16-snprintf: New file.
6252         * modules/unistdio/u16-u16-sprintf: New file.
6253         * modules/unistdio/u16-u16-vasnprintf: New file.
6254         * modules/unistdio/u16-u16-vasprintf: New file.
6255         * modules/unistdio/u16-u16-vsnprintf: New file.
6256         * modules/unistdio/u16-u16-vsprintf: New file.
6257         * modules/unistdio/u32-asnprintf: New file.
6258         * modules/unistdio/u32-asprintf: New file.
6259         * modules/unistdio/u32-printf-parse: New file.
6260         * modules/unistdio/u32-snprintf: New file.
6261         * modules/unistdio/u32-sprintf: New file.
6262         * modules/unistdio/u32-vasnprintf: New file.
6263         * modules/unistdio/u32-vasprintf: New file.
6264         * modules/unistdio/u32-vsnprintf: New file.
6265         * modules/unistdio/u32-vsprintf: New file.
6266         * modules/unistdio/u32-u32-asnprintf: New file.
6267         * modules/unistdio/u32-u32-asprintf: New file.
6268         * modules/unistdio/u32-u32-snprintf: New file.
6269         * modules/unistdio/u32-u32-sprintf: New file.
6270         * modules/unistdio/u32-u32-vasnprintf: New file.
6271         * modules/unistdio/u32-u32-vasprintf: New file.
6272         * modules/unistdio/u32-u32-vsnprintf: New file.
6273         * modules/unistdio/u32-u32-vsprintf: New file.
6274         * modules/unistdio/ulc-asnprintf-tests: New file.
6275         * modules/unistdio/ulc-vasnprintf-tests: New file.
6276         * modules/unistdio/ulc-vasprintf-tests: New file.
6277         * modules/unistdio/ulc-vsnprintf-tests: New file.
6278         * modules/unistdio/ulc-vsprintf-tests: New file.
6279         * modules/unistdio/u8-asnprintf-tests: New file.
6280         * modules/unistdio/u8-vasnprintf-tests: New file.
6281         * modules/unistdio/u8-vasprintf-tests: New file.
6282         * modules/unistdio/u8-vsnprintf-tests: New file.
6283         * modules/unistdio/u8-vsprintf-tests: New file.
6284         * modules/unistdio/u16-asnprintf-tests: New file.
6285         * modules/unistdio/u16-vasnprintf-tests: New file.
6286         * modules/unistdio/u16-vasprintf-tests: New file.
6287         * modules/unistdio/u16-vsnprintf-tests: New file.
6288         * modules/unistdio/u16-vsprintf-tests: New file.
6289         * modules/unistdio/u32-asnprintf-tests: New file.
6290         * modules/unistdio/u32-vasnprintf-tests: New file.
6291         * modules/unistdio/u32-vasprintf-tests: New file.
6292         * modules/unistdio/u32-vsnprintf-tests: New file.
6293         * modules/unistdio/u32-vsprintf-tests: New file.
6294         * MODULES.html.sh (Unicode string functions): Add the new modules.
6295
6296 2007-07-01  Bruno Haible  <bruno@clisp.org>
6297
6298         * lib/sprintf.c (sprintf): Limit the available length estimation,
6299         to avoid address wraparound.
6300         * lib/vsprintf.c (vsprintf): Likewise.
6301         * modules/sprintf-posix (Dependencies): Add stdint.
6302         * modules/vsprintf-posix (Dependencies): Likewise.
6303
6304 2007-07-01  Bruno Haible  <bruno@clisp.org>
6305
6306         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
6307         Windows PATH as well. Conservative double-quoting. Comments.
6308
6309 2007-07-01  Bruno Haible  <bruno@clisp.org>
6310             Eric Blake  <ebb9@byu.net>
6311             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6312
6313         * gnulib-tool (self_abspathname): Fix algorithm to cope with
6314         empty components in $PATH, denoting '.'.
6315
6316 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6317
6318         * gnulib-tool: Fix indentation.
6319         (func_create_megatestdir): Likewise.
6320         Report by Bruno Haible.
6321
6322 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6323
6324         Sync from Automake.
6325         * build-aux/gnupload: Fix shell portability issues with for loops.
6326         Report by Karl Berry.
6327
6328 2007-06-29  Simon Josefsson  <simon@josefsson.org>
6329
6330         * build-aux/maint.mk (POURL): Use translationproject.org.
6331
6332 2007-06-27  Simon Josefsson  <simon@josefsson.org>
6333             Bruno Haible  <bruno@clisp.org>
6334
6335         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
6336         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
6337         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
6338         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
6339         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
6340
6341 2007-06-27  Bruno Haible  <bruno@clisp.org>
6342
6343         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
6344         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
6345
6346 2007-06-26  Karl Berry  <karl@gnu.org>
6347
6348         * MODULES.html.sh: remove xreadlink-with-size.
6349
6350 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
6351
6352         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
6353         method that I hope also handles the double-include problem noted
6354         by Bruno Haible in
6355         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
6356
6357 2007-06-23  Bruno Haible  <bruno@clisp.org>
6358
6359         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6360         Don't let the 'mostlyclean' target fail if the last subdirectory could
6361         not be removed.
6362         Reported by Karl Berry.
6363
6364 2007-06-23  Bruno Haible  <bruno@clisp.org>
6365
6366         * gnulib-tool (echo): Add a speedier workaround for ksh.
6367         * tests/test-echo.sh: Likewise.
6368
6369 2007-06-23  Bruno Haible  <bruno@clisp.org>
6370
6371         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
6372         * tests/test-echo.sh: Likewise.
6373
6374 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6375
6376         * gnulib-tool (IFS): Initialize early, so we don't set it to
6377         empty later.
6378         (self_abspathname): Rewrite algorithm to set it, reindent.
6379         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
6380         (func_create_megatestdir): Merge some sed scripts.
6381
6382 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
6383
6384         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
6385         exposed by Sun Studio 11 cc on Solaris 8.
6386
6387 2007-06-22  Bruno Haible  <bruno@clisp.org>
6388
6389         * gnulib-tool (echo): Ensure the echo primitive does not interpret
6390         backslashes.
6391         * tests/test-echo.sh: New file.
6392
6393 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6394
6395         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
6396         simplify `sed_replace_build_aux' scripts, they are portable but
6397         echoing them with `echo' is not.
6398         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
6399
6400 2007-06-21  Karl Berry  <karl@gnu.org>
6401
6402         * config/srclist.txt: guess we can't handle the licenses via
6403         srclist at the moment.
6404
6405 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
6406
6407         * MODULES.html.sh: Add include_next.
6408         * modules/include_next: New file.
6409
6410 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6411
6412         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
6413         INCLUDE_NEXT.
6414         (gl_CHECK_NEXT_HEADERS): New macro.
6415         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
6416         the obsolescent gl_ABSOLUTE_HEADER.
6417         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
6418         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
6419         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
6420         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
6421         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
6422         * m4/math_h.m4 (gl_MATH_H): Likewise.
6423         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
6424         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
6425         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
6426         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6427         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
6428         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
6429         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
6430         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6431         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
6432         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
6433         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
6434         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
6435         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
6436         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6437         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
6438         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
6439         * m4/inttypes.m4 (gl_INTTYPES_H): Define
6440         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
6441         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
6442         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
6443         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
6444         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
6445         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
6446         * lib/float_.h: Likewise.
6447         * lib/inttypes_.h: Likewise.
6448         * lib/math_.h: Likewise.
6449         * lib/search_.h: Likewise.
6450         * lib/signal_.h: Likewise.
6451         * lib/stdint_.h: Likewise.
6452         * lib/stdio_.h: Likewise.
6453         * lib/stdlib_.h: Likewise.
6454         * lib/string_.h: Likewise.
6455         * lib/sys_stat_.h: Likewise.
6456         * lib/sys_time_.h: Likewise.
6457         * lib/time_.h: Likewise.
6458         * lib/unistd_.h: Likewise.
6459         * lib/wchar_.h: Likewise.
6460         * lib/wctype_.h: Likewise.
6461         * lib/dirent_.h: Likewise.
6462         * lib/iconv_.h: Likewise.
6463         * lib/locale_.h: Likewise.
6464         * lib/netinet_in_.h: Likewise.
6465         * lib/sys_select_.h: Likewise.
6466         * lib/sys_socket_.h: Likewise.
6467         * lib/sysexits_.h: Likewise.
6468         * modules/fcntl (Depends-on): Depend on include_next, not
6469         absolute_header.
6470         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
6471         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
6472         * modules/fchdir: Likewise.
6473         * modules/float: Likewise.
6474         * modules/iconv_open: Likewise.
6475         * modules/inttypes: Likewise.
6476         * modules/locale: Likewise.
6477         * modules/math: Likewise.
6478         * modules/netinet_in: Likewise.
6479         * modules/search: Likewise.
6480         * modules/signal: Likewise.
6481         * modules/stdint: Likewise.
6482         * modules/stdio: Likewise.
6483         * modules/stdlib: Likewise.
6484         * modules/string: Likewise.
6485         * modules/sys_select: Likewise.
6486         * modules/sys_socket: Likewise.
6487         * modules/sys_stat: Likewise.
6488         * modules/sys_time: Likewise.
6489         * modules/sysexits: Likewise.
6490         * modules/time: Likewise.
6491         * modules/unistd: Likewise.
6492         * modules/wchar: Likewise.
6493         * modules/wctype: Likewise.
6494         * modules/sys_stat: Change maintainer to "all".
6495         * modules/unistd: Likewise.
6496
6497 2007-06-20  Karl Berry  <karl@gnu.org>
6498
6499         * config/srclist.txt: track www changes in license files.
6500
6501 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
6502
6503         * build-aux/bootstrap: Remove stray dot.
6504         Make sure build_aux settings are honored when linking
6505         gnulib_extra_files.
6506
6507 2007-06-19  Eric Blake  <ebb9@byu.net>
6508
6509         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
6510         Allow compilation on cygwin.
6511
6512 2007-06-19  Jim Meyering  <jim@meyering.net>
6513
6514         xreadlink-with-size: Remove module.  No longer used.
6515         Ex-callers now use xreadlink or mreadlink-with-size.
6516         * modules/xreadlink-with-size: Remove module.
6517         * lib/xreadlink-with-size.c: Remove file.
6518         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
6519         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
6520         just before the function definition *is* accurate.
6521
6522         Eliminate one way canonicalize_filename_mode could exit.
6523         * lib/canonicalize.c (canonicalize_filename_mode):
6524         Use mreadlink_with_size, not xreadlink_with_size.
6525
6526 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
6527
6528         Detect porting problems to FreeBSD/arm, which has time_t wider than
6529         long int.  Original problem reported for GNU diff by Xin Li in
6530         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
6531         * modules/getdate (Depends-on): Add intprops, verify.
6532         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
6533         is an integer type no wider than long int.
6534
6535 2007-06-18  Jim Meyering  <jim@meyering.net>
6536
6537         New module: mreadlink-with-size.
6538         * MODULES.html.sh: Add mreadlink-with-size.
6539         * modules/mreadlink-with-size: New module
6540         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
6541         not xreadlink-with-size.
6542         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
6543
6544 2007-06-16  Bruno Haible  <bruno@clisp.org>
6545
6546         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
6547         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
6548         Reported by Gary V. Vaughan <gary@gnu.org>.
6549
6550 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
6551
6552         Revamp lchown so that it lives in unistd.h where it belongs.
6553         * lib/lchown.h: Remove.
6554         * lib/dirchownmod.c: Don't include lib/lchown.h.
6555         * lib/fchownat.c: Likewise.
6556         * lib/openat.c: Likewise.
6557         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
6558         does not follow symlinks.
6559         (EOPNOTSUPP): Define if not defined.
6560         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
6561         is defined to 0.
6562         (lchown): New decl.
6563         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
6564         Do not check for lchown decl.
6565         Set REPLACE_LCHOWN.
6566         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
6567         REPLACE_LCHOWN.
6568         * modules/chown: Make it clear it follows symlinks.
6569         * modules/lchown: Make it clear it doesn't follow symlinks.
6570         (Files): Remove lib/lchown.h
6571         (Depends-on): Add unistd.
6572         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
6573         (Include): Include <unistd.h>, not "lchown.h".
6574         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
6575         REPLACE_LCHOWN.
6576
6577 2007-06-15  Jim Meyering  <jim@meyering.net>
6578
6579         Change license (GPL to LGPL) of fsusage and dependents.
6580         * modules/fsusage (License): Change to LGPL.
6581         * modules/full-read (License): Likewise.
6582         * modules/full-write (License): Likewise.
6583         * modules/safe-read (License): Likewise.
6584         * modules/safe-write (License): Likewise.
6585
6586 2007-06-14  Ben Pfaff  <blp@gnu.org>
6587
6588         Missing part of allocsa -> malloca transition.
6589         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
6590         gl_MALLOCA.
6591
6592 2007-06-12  Bruno Haible  <bruno@clisp.org>
6593
6594         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
6595         to ia64, x86_64, i386.
6596         Reported by Eric Blake.
6597
6598 2007-06-12  Bruno Haible  <bruno@clisp.org>
6599
6600         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
6601         cross-compiling to x86_64.
6602
6603 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
6604
6605         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
6606         glitch reported by Ralf Wildenhues in
6607         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
6608
6609         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
6610         Vin Shelton.
6611
6612 2007-06-11  Bruno Haible  <bruno@clisp.org>
6613
6614         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
6615         replacement string.
6616         Reported by Eric Blake.
6617
6618 2007-06-10  Bruno Haible  <bruno@clisp.org>
6619
6620         Prepare vasnprintf code for use with Unicode strings.
6621         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
6622         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
6623         TYPE_U32_STRING.
6624         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
6625         a_u32_string variants.
6626         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
6627         * lib/printf-args.c: Don't include config.h and the specification
6628         header if PRINTF_FETCHARGS is already defined.
6629         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
6630         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
6631         TYPE_U16_STRING, TYPE_U32_STRING.
6632         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
6633         u16_directive, u16_directives, u32_directive, u32_directives): New
6634         types.
6635         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
6636         New declarations.
6637         * lib/printf-parse.c: Don't include config.h and the specification
6638         header if PRINTF_PARSE is already defined. Eliminate the set of
6639         parameters for WIDE_CHAR_VERSION; the user of this file must provide
6640         them now. Include c-ctype.h.
6641         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
6642         directive and CHAR_T_ONLY_ASCII.
6643         * lib/vasnprintf.c: Don't include config.h and the specification header
6644         if VASNPRINTF is already defined.
6645         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
6646         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
6647         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
6648         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
6649         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
6650         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
6651         code accordingly.
6652         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
6653         pad_ourselves also in this case, with the 'c' and 's' directives, and
6654         with a different notion of "width".
6655         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
6656
6657 2007-06-10  Bruno Haible  <bruno@clisp.org>
6658
6659         * modules/unistr/u32-mbsnlen: New file.
6660         * lib/unistr/u32-mbsnlen.c: New file.
6661
6662         * modules/unistr/u16-mbsnlen: New file.
6663         * lib/unistr/u16-mbsnlen.c: New file.
6664
6665         * modules/unistr/u8-mbsnlen: New file.
6666         * lib/unistr/u8-mbsnlen.c: New file.
6667
6668         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
6669         declarations.
6670
6671 2007-06-10  Bruno Haible  <bruno@clisp.org>
6672
6673         * lib/string_.h (mbsnlen): New declaration.
6674         * lib/mbsnlen.c: New file.
6675         * m4/mbsnlen.m4: New file.
6676         * modules/mbsnlen: New file.
6677         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
6678         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
6679         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
6680
6681 2007-06-10  Bruno Haible  <bruno@clisp.org>
6682
6683         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
6684
6685 2007-06-10  Bruno Haible  <bruno@clisp.org>
6686
6687         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
6688         * lib/mbuiter.h: Likewise.
6689
6690 2007-06-10  Bruno Haible  <bruno@clisp.org>
6691
6692         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
6693         declaration.
6694
6695 2007-06-10  Karl Berry  <karl@gnu.org>
6696
6697         * config/srclist.txt: remove gettext entries, Bruno prefers
6698         to update individually.
6699
6700 2007-06-10  Bruno Haible  <bruno@clisp.org>
6701
6702         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
6703         'maxlen'. Ensure only length + width bytes are allocated, not
6704         length + 1 + width.
6705
6706 2007-06-09  Bruno Haible  <bruno@clisp.org>
6707
6708         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
6709         (CHAR_T): Remove macro.
6710         (VASNPRINTF): Update.
6711
6712 2007-06-09  Bruno Haible  <bruno@clisp.org>
6713
6714         * MODULES.html.sh (Unicode string functions): Add the new modules.
6715
6716         * modules/uniconv/u32-conv-to-enc: New file.
6717         * lib/uniconv/u32-conv-to-enc.c: New file.
6718         * modules/uniconv/u32-conv-to-enc-tests: New file.
6719         * tests/uniconv/test-u32-conv-to-enc.c: New file.
6720
6721         * modules/uniconv/u16-conv-to-enc: New file.
6722         * lib/uniconv/u16-conv-to-enc.c: New file.
6723         * lib/uniconv/u-conv-to-enc.h: New file.
6724         * modules/uniconv/u16-conv-to-enc-tests: New file.
6725         * tests/uniconv/test-u16-conv-to-enc.c: New file.
6726
6727         * modules/uniconv/u8-conv-to-enc: New file.
6728         * lib/uniconv/u8-conv-to-enc.c: New file.
6729         * modules/uniconv/u8-conv-to-enc-tests: New file.
6730         * tests/uniconv/test-u8-conv-to-enc.c: New file.
6731
6732         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
6733         u32_conv_to_encoding): New declarations.
6734
6735 2007-06-09  Bruno Haible  <bruno@clisp.org>
6736
6737         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
6738
6739 2007-06-09  Bruno Haible  <bruno@clisp.org>
6740
6741         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
6742         * modules/malloca: Renamed from modules/allocsa, updated.
6743         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
6744         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
6745         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
6746         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
6747         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
6748         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
6749         * modules/xmalloca: Renamed from modules/xallocsa, updated.
6750         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
6751         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
6752         * modules/c-strcasestr (Depends-on): Update.
6753         * lib/c-strcasestr.c: Update.
6754         * modules/c-strstr (Depends-on): Update.
6755         * lib/c-strstr.c: Update.
6756         * modules/canonicalize-lgpl (Depends-on): Update.
6757         * lib/canonicalize-lgpl.c: Update.
6758         * modules/clean-temp (Depends-on): Update.
6759         * lib/clean-temp.c: Update.
6760         * modules/csharpcomp (Depends-on): Update.
6761         * lib/csharpcomp.c: Update.
6762         * modules/csharpexec (Depends-on): Update.
6763         * lib/csharpexec.c: Update.
6764         * modules/javacomp (Depends-on): Update.
6765         * lib/javacomp.c: Update.
6766         * modules/javaexec (Depends-on): Update.
6767         * lib/javaexec.c: Update.
6768         * modules/mbscasestr (Depends-on): Update.
6769         * lib/mbscasestr.c: Update.
6770         * modules/mbsstr (Depends-on): Update.
6771         * lib/mbsstr.c: Update.
6772         * modules/setenv (Depends-on): Update.
6773         * lib/setenv.c: Update.
6774         * modules/strcasestr (Depends-on): Update.
6775         * lib/strcasestr.c: Update.
6776         * modules/striconveha (Depends-on): Update.
6777         * lib/striconveha.c: Update.
6778         * modules/relocatable-prog-wrapper (Files): Update.
6779         * lib/relocwrapper.c: Update.
6780         * build-aux/install-reloc: Update.
6781         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
6782
6783 2007-06-08  Bruno Haible  <bruno@clisp.org>
6784
6785         Port to uClibc.
6786         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
6787         * lib/fpurge.c (fpurge): Likewise.
6788         * lib/freading.c (freading): Likewise.
6789         * lib/fseeko.c (rpl_fseeko): Likewise.
6790         * lib/fseterr.c (fseterr): Likewise.
6791         * lib/fwriting.c (fwriting): Likewise.
6792         * tests/test-fflush.c (main): Avoid a failure on uClibc.
6793
6794 2007-06-08  Bruno Haible  <bruno@clisp.org>
6795
6796         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
6797         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
6798         * modules/gettext (Files): Add m4/intlmacosx.m4.
6799
6800 2007-06-07  Bruno Haible  <bruno@clisp.org>
6801
6802         * modules/localename-tests: New file.
6803         * tests/test-localename.c: New file.
6804
6805         New module 'localename'.
6806         * lib/localename.h: New file.
6807         * lib/localename.c: New file, from GNU gettext.
6808         * m4/localename.m4: New file.
6809         * modules/localename: New file.
6810
6811 2007-06-07  Bruno Haible  <bruno@clisp.org>
6812
6813         Work around the lack of <wchar.h> on some builds of uClibc.
6814         * doc/headers/wchar.texi: Update.
6815         * lib/wchar_.h: Include <wchar.h> only if it exists.
6816         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
6817         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
6818         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
6819         doesn't exist.
6820         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
6821         * modules/mbfile (Depends-on): Add wchar.
6822         * modules/mbiter (Depends-on): Likewise.
6823         * modules/mbuiter (Depends-on): Likewise.
6824         Reported by Simon Josefsson.
6825
6826 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
6827
6828         Work around problem reported by Steven M. Schweda in
6829         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
6830         Tru64 5.1B with the Compaq compiler environment installed declares
6831         an 'isblank' function but does not define it in the C library.
6832         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
6833         * lib/regex_internal.h (isblank): Likewise.
6834         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
6835         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
6836
6837 2007-06-05  Bruno Haible  <bruno@clisp.org>
6838
6839         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
6840         ia64.
6841         * modules/printf-safe: New file.
6842         * modules/fprintf-posix (Depends-on): Add printf-safe.
6843         * modules/printf-posix (Depends-on): Likewise.
6844         * modules/snprintf-posix (Depends-on): Likewise.
6845         * modules/sprintf-posix (Depends-on): Likewise.
6846         * modules/vasnprintf-posix (Depends-on): Likewise.
6847         * modules/vasprintf-posix (Depends-on): Likewise.
6848         * modules/vfprintf-posix (Depends-on): Likewise.
6849         * modules/vprintf-posix (Depends-on): Likewise.
6850         * modules/vsnprintf-posix (Depends-on): Likewise.
6851         * modules/vsprintf-posix (Depends-on): Likewise.
6852         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
6853         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
6854         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
6855         "no" on i386, x86_64, ia64.
6856         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
6857         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
6858         on i386, x86_64, ia64.
6859         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
6860         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
6861         on i386, x86_64, ia64.
6862         * tests/test-vasnprintf-posix.c: Include float.h.
6863         (LDBL80_WORDS): New macro.
6864         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
6865         on i386, x86_64, ia64.
6866         * tests/test-vasprintf-posix.c: Include float.h.
6867         (LDBL80_WORDS): New macro.
6868         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
6869         on i386, x86_64, ia64.
6870         * tests/test-snprintf-posix.c: Include float.h.
6871         * tests/test-sprintf-posix.c: Likewise.
6872         * tests/test-vsnprintf-posix.c: Likewise.
6873         * tests/test-vsprintf-posix.c: Likewise.
6874
6875 2007-06-05  Bruno Haible  <bruno@clisp.org>
6876
6877         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
6878         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
6879         non-IEEE numbers on i386, x86_64, ia64.
6880         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
6881         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
6882         * tests/test-isnanl.h: Include float.h.
6883         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
6884
6885 2007-06-05  Bruno Haible  <bruno@clisp.org>
6886
6887         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
6888         also the %a / %A. Handle the %a / %A code before this extra handling.
6889
6890 2007-06-05  Bruno Haible  <bruno@clisp.org>
6891
6892         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
6893         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
6894
6895 2007-06-05  Bruno Haible  <bruno@clisp.org>
6896
6897         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
6898         typo in variable name.
6899
6900 2007-06-05  Eric Blake  <ebb9@byu.net>
6901
6902         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
6903         Reported by Simon Josefsson.
6904
6905 2007-06-04  Bruno Haible  <bruno@clisp.org>
6906
6907         Avoid test failures on some PowerPC platforms.
6908         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
6909         Define differently for PowerPC.
6910         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
6911         Reported by Gary V. Vaughan <gary@gnu.org>.
6912
6913 2007-06-02  Bruno Haible  <bruno@clisp.org>
6914
6915         Fix test-stdint failure on FreeBSD/ia64.
6916         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
6917         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
6918         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
6919         * doc/headers/stdint.texi: Update.
6920
6921 2007-06-01  Bruno Haible  <bruno@clisp.org>
6922
6923         * tests/test-binary-io.c (main): Pass a third argument to open().
6924         Reported by Gary V. Vaughan <gary@gnu.org>.
6925
6926 2007-06-01  Bruno Haible  <bruno@clisp.org>
6927
6928         * doc/functions/frexpl.texi: Update for mingw.
6929
6930 2007-06-01  Bruno Haible  <bruno@clisp.org>
6931
6932         * tests/test-lseek.c (main): Disable test of errno for invalid third
6933         argument.
6934         * doc/functions/lseek.texi: Update.
6935         Reported by Gary V. Vaughan <gary@gnu.org>.
6936
6937 2007-05-28  Bruno Haible  <bruno@clisp.org>
6938
6939         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
6940
6941 2007-05-31  Eric Blake  <ebb9@byu.net>
6942
6943         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
6944         cross compiling.
6945
6946 2007-05-30  Eric Blake  <ebb9@byu.net>
6947         and Bruno Haible  <bruno@clisp.org>
6948
6949         Work around mingw test failures exposed by m4-1.4.9b.
6950         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
6951         * tests/test-unistd.c: Disable uid_t and git_t tests for the
6952         moment.
6953
6954 2007-05-30  Bruno Haible  <bruno@clisp.org>
6955
6956         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
6957         assuming that they are closed. Needed on HP-UX 11.
6958
6959 2007-05-29  Bruno Haible  <bruno@clisp.org>
6960
6961         Fix a problem with #include_next.
6962         * lib/dirent_.h: Split the double-inclusion guard.
6963         * lib/fcntl_.h: Likewise.
6964         * lib/float_.h: Likewise.
6965         * lib/iconv_.h: Likewise.
6966         * lib/inttypes_.h: Likewise.
6967         * lib/locale_.h: Likewise.
6968         * lib/math_.h: Likewise.
6969         * lib/netinet_in_.h: Likewise.
6970         * lib/search_.h: Likewise.
6971         * lib/signal_.h: Likewise.
6972         * lib/stdint_.h: Likewise.
6973         * lib/stdio_.h: Likewise.
6974         * lib/stdlib_.h: Likewise.
6975         * lib/string_.h: Likewise.
6976         * lib/sys_select_.h: Likewise.
6977         * lib/sys_socket_.h: Likewise.
6978         * lib/sys_stat_.h: Likewise.
6979         * lib/sys_time_.h: Likewise.
6980         * lib/sysexits_.h: Likewise.
6981         * lib/time_.h: Likewise.
6982         * lib/unistd_.h: Likewise.
6983         * lib/wchar_.h: Likewise.
6984         * lib/wctype_.h: Likewise.
6985
6986 2007-05-29  Bruno Haible  <bruno@clisp.org>
6987
6988         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
6989         for the moment.
6990
6991 2007-05-29  Bruno Haible  <bruno@clisp.org>
6992
6993         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
6994         invocation.
6995         Reported by Eric Blake.
6996
6997 2007-05-29  Bruno Haible  <bruno@clisp.org>
6998
6999         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
7000         compiling case.
7001
7002 2007-05-29  Eric Blake  <ebb9@byu.net>
7003             Bruno Haible  <bruno@clisp.org>
7004
7005         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
7006         cross compiles.
7007
7008 2007-05-28  Eric Blake  <ebb9@byu.net>
7009
7010         * modules/closein-tests (test_closein_LDADD): Support test on
7011         cygwin with libtool.
7012
7013 2007-05-28  Bruno Haible  <bruno@clisp.org>
7014
7015         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
7016         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
7017         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
7018         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
7019         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
7020         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
7021         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
7022         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
7023         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
7024
7025 2007-05-28  Eric Blake  <ebb9@byu.net>
7026
7027         Unconditionally include <config.h> in unit tests.
7028         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
7029         * tests/test-allocsa.c, tests/test-arcfour.c,
7030         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
7031         tests/test-array_list.c, tests/test-array_oset.c,
7032         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
7033         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
7034         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
7035         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
7036         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
7037         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
7038         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
7039         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
7040         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
7041         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
7042         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
7043         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
7044         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
7045         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
7046         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
7047         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
7048         test-md5.c, test-memmem.c, test-printf-posix.c,
7049         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
7050         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
7051         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
7052         test-strcasestr.c, test-striconv.c, test-striconveh.c,
7053         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
7054         test-vasnprintf-posix2.c, test-vasnprintf.c,
7055         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
7056         test-vfprintf-posix.c, test-vprintf-posix.c,
7057         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
7058         test-xvasprintf.c: Likewise.
7059
7060 2007-05-28  Bruno Haible  <bruno@clisp.org>
7061
7062         * gnulib-tool (func_import): Remember the --with-tests command-line
7063         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
7064         Reported by Eric Blake.
7065
7066 2007-05-28  Bruno Haible  <bruno@clisp.org>
7067
7068         * modules/ftell-tests: New file.
7069         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
7070         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
7071
7072         * lib/ftell.c: New file.
7073         * modules/ftell: New file.
7074         * m4/ftell.m4: New file.
7075         * doc/functions/ftell.texi: Update.
7076         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
7077         REPLACE_FTELL.
7078         * lib/stdio_.h (rpl_ftell): New declaration.
7079         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
7080         REPLACE_FTELL.
7081
7082 2007-05-28  Eric Blake  <ebb9@byu.net>
7083
7084         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
7085
7086 2007-05-28  Bruno Haible  <bruno@clisp.org>
7087
7088         * modules/fseek-tests: New file.
7089         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
7090         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
7091
7092         * lib/fseek.c: New file.
7093         * modules/fseek: New file.
7094         * m4/fseek.m4: New file.
7095         * doc/functions/fseek.texi: Update.
7096         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
7097         REPLACE_FSEEK.
7098         * lib/stdio_.h (rpl_fseek): New declaration.
7099         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
7100         REPLACE_FSEEK.
7101
7102 2007-05-28  Bruno Haible  <bruno@clisp.org>
7103
7104         * lib/stdio_.h (fflush): More comments.
7105
7106 2007-05-28  Bruno Haible  <bruno@clisp.org>
7107
7108         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
7109         runtime test.
7110
7111 2007-05-28  Eric Blake  <ebb9@byu.net>
7112
7113         Improve lseek module.
7114         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
7115         * lib/unistd_.h (lseek): Scale back link warning message.
7116         * tests/test-lseek.c: Beef up test.
7117         * tests/test-lseek.sh: Exercise more facets of lseek.
7118         Reported by Bruno Haible.
7119
7120 2007-05-28  Bruno Haible  <bruno@clisp.org>
7121
7122         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
7123         to define.
7124
7125 2007-05-27  Bruno Haible  <bruno@clisp.org>
7126
7127         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
7128
7129 2007-05-27  Bruno Haible  <bruno@clisp.org>
7130
7131         * modules/openmp: New file.
7132         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
7133         Noah Misch.
7134
7135 2007-05-26  Bruno Haible  <bruno@clisp.org>
7136
7137         * modules/chdir-long (Depends-on): Add fchdir.
7138         * modules/chdir-safer (Depends-on): Likewise.
7139         * modules/fts (Depends-on): Likewise.
7140         * modules/fts-lgpl (Depends-on): Likewise.
7141         * modules/openat (Depends-on): Likewise.
7142         * modules/savewd (Depends-on): Likewise.
7143
7144 2007-05-24  Eric Blake  <ebb9@byu.net>
7145
7146         Fix lseek on mingw.
7147         * modules/lseek: New module.
7148         * m4/lseek.m4: New file.
7149         * lib/lseek.c: New file.
7150         * modules/lseek-tests: New file.
7151         * tests/test-lseek.c: New file.
7152         * tests/test-lseek.sh: New file.
7153         * MODULES.html.sh: Document lseek module.
7154         * modules/fflush (Depends-on): Add lseek, fseeko.
7155         * modules/fseeko (Depends-on): Likewise.
7156         * modules/ftello (Depends-on): Likewise.
7157         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
7158         broken.
7159         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
7160         broken.
7161         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
7162         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
7163         * lib/ftello.c (rpl_ftello): Likewise.
7164         * tests/test-fseeko.c (main): Test this.
7165         * tests/test-fseeko.sh: Likewise.
7166         * tests/test-ftello.c (main): Likewise.
7167         * tests/test-ftello.sh: Likewise.
7168         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
7169         implies replacing fseek.
7170         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
7171         HAVE_FTELLO.
7172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
7173         * modules/unistd (Makefile.am): Likewise.
7174         * lib/unistd_.h (lseek): Declare a replacement.
7175         * doc/functions/lseek.texi (lseek): Document this fix.
7176         * doc/functions/fseek.texi (fseek): Likewise.
7177         * doc/functions/ftell.texi (ftell): Likewise.
7178
7179 2007-05-24  Bruno Haible  <bruno@clisp.org>
7180
7181         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
7182         in the printed representation of a NaN.
7183         * tests/test-vasprintf-posix.c (test_function): Likewise.
7184         * tests/test-snprintf-posix.h (test_function): Likewise.
7185         * tests/test-sprintf-posix.h (test_function): Likewise.
7186         Reported by Eric Blake.
7187
7188 2007-05-23  Eric Blake  <ebb9@byu.net>
7189
7190         Fix fseeko/ftello on cygwin 1.5.24.
7191         * doc/functions/fseeko.texi (fseeko): Document the fix.
7192         * doc/functions/ftello.texi (ftello): Document the fix.
7193         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
7194         * doc/functions/stdout.text (stdout): New file.
7195         * doc/functions/stderr.text (stderr): New file.
7196         * doc/gnulib.texi (Function Substitutes): Use new files.
7197         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
7198         prior to 1.7.0.
7199         * tests/test-ftello.c (main): Likewise for ftello.
7200         * tests/test-fseeko.sh: New file.
7201         * tests/test-ftello.sh: New file.
7202         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
7203         with seekable stdin.
7204         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
7205         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
7206         (gl_REPLACE_FSEEKO): New macro.
7207         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
7208         * modules/fseeko (Files): Distribute fseeko.c.
7209         * modules/ftello (Files): Distribute ftello.c.
7210         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
7211         mode.
7212         * lib/ftello.c (rpl_ftello): New file.
7213         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
7214         fseeko, ftello.
7215         (gl_STDIN_LARGE_OFFSET): New macro.
7216         * modules/stdio (Makefile.am): Perform the replacement.
7217         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
7218
7219 2007-05-23  Bruno Haible  <bruno@clisp.org>
7220
7221         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
7222         GNULIB_POSIXCHECK is defined.
7223
7224 2007-05-21  Bruno Haible  <bruno@clisp.org>
7225
7226         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
7227         Check also the output for NaN arguments. When cross-compiling, guess
7228         no on IRIX.
7229         * lib/vasnprintf.c: Update comments.
7230         * tests/test-vasnprintf-posix.c (strisnan): New function.
7231         (test_function): Use it.
7232         * tests/test-vasprintf-posix.c (strisnan): New function.
7233         (test_function): Use it.
7234         * tests/test-snprintf-posix.h (strisnan): New function.
7235         (test_function): Use it.
7236         * tests/test-sprintf-posix.h (strisnan): New function.
7237         (test_function): Use it.
7238         Reported by Eric Blake.
7239
7240 2007-05-20  Bruno Haible  <bruno@clisp.org>
7241
7242         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
7243         numbers that fails on BeOS.
7244         * doc/functions/frexpl.texi: Update.
7245
7246 2007-05-20  Jim Meyering  <jim@meyering.net>
7247
7248         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
7249         forced upon us by glibc-2.6.
7250
7251 2007-05-20  Bruno Haible  <bruno@clisp.org>
7252
7253         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
7254         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
7255         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
7256         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
7257         NEED_PRINTF_INFINITE.
7258         (is_infinitel): New function.
7259         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
7260         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
7261         gl_PREREQ_VASNPRINTF_INFINITE.
7262         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
7263         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7264         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
7265         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
7266         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
7267         gl_PREREQ_VASNPRINTF_INFINITE.
7268         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7269         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7270         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7271         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7272         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7273         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7274         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7275         * doc/functions/fprintf.texi: Update.
7276         * doc/functions/printf.texi: Update.
7277         * doc/functions/snprintf.texi: Update.
7278         * doc/functions/sprintf.texi: Update.
7279         * doc/functions/vfprintf.texi: Update.
7280         * doc/functions/vprintf.texi: Update.
7281         * doc/functions/vsnprintf.texi: Update.
7282         * doc/functions/vsprintf.texi: Update.
7283
7284 2007-05-20  Bruno Haible  <bruno@clisp.org>
7285
7286         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
7287         was not found in libc.
7288         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
7289
7290 2007-05-20  Bruno Haible  <bruno@clisp.org>
7291
7292         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
7293         printed as "-nan" instead of "nan".
7294         * tests/test-vasprintf-posix.c (test_function): Likewise.
7295         * tests/test-snprintf-posix.h (test_function): Likewise.
7296         * tests/test-sprintf-posix.h (test_function): Likewise.
7297         Needed for HP-UX 11.
7298
7299 2007-05-20  Jim Meyering  <jim@meyering.net>
7300
7301         Fix buggy test for the fchownat-deref bug.
7302         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
7303         symlink required for the run-test.  Without it, this test would
7304         always declare that fchownat doesn't work, and client code would
7305         unnecessarily use the replacement function with fixed libc.
7306         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
7307         Reported by Greg Schafer.
7308
7309 2007-05-19  Bruno Haible  <bruno@clisp.org>
7310
7311         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
7312         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
7313         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
7314         Needed for IRIX 6.5 and Solaris 2.5.1.
7315
7316 2007-05-19  Bruno Haible  <bruno@clisp.org>
7317
7318         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
7319         (test_function): Skip tests involving -0.0 on platforms where
7320         -0.0 = 0.0.
7321         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
7322         (test_function): Skip tests involving -0.0 on platforms where
7323         -0.0 = 0.0.
7324         * tests/test-snprintf-posix.h (have_minus_zero): New function.
7325         (test_function): Skip tests involving -0.0 on platforms where
7326         -0.0 = 0.0.
7327         * tests/test-sprintf-posix.h (have_minus_zero): New function.
7328         (test_function): Skip tests involving -0.0 on platforms where
7329         -0.0 = 0.0.
7330         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
7331         tests.
7332         * tests/test-printf-posix.h (test_function): Likewise.
7333         * tests/test-printf-posix.output: Remove all -0.0 related results.
7334         Needed for IRIX 6.5.
7335
7336 2007-05-19  Bruno Haible  <bruno@clisp.org>
7337
7338         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
7339         printed as "nan0x7fffffff" instead of "nan".
7340         * tests/test-vasprintf-posix.c (test_function): Likewise.
7341         * tests/test-snprintf-posix.h (test_function): Likewise.
7342         * tests/test-sprintf-posix.h (test_function): Likewise.
7343         * tests/test-fprintf-posix.h (NaN): Remove macro.
7344         (test_function): Remove all NaN related tests.
7345         * tests/test-printf-posix.h (NaN): Remove macro.
7346         (test_function): Remove all NaN related tests.
7347         * tests/test-printf-posix.output: Remove all NaN related results.
7348         Needed for IRIX 6.5.
7349
7350 2007-05-19  Bruno Haible  <bruno@clisp.org>
7351
7352         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
7353         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
7354
7355 2007-05-19  Bruno Haible  <bruno@clisp.org>
7356
7357         * lib/float_.h: New file.
7358         * m4/float_h.m4: New file.
7359         * modules/float: New file.
7360         * modules/isnanl (Dependencies): Add float.
7361         * modules/isnanl-nolibm (Dependencies): Likewise.
7362         * modules/mathl (Dependencies): Likewise.
7363         * modules/printf-frexpl (Dependencies): Likewise.
7364         * modules/signbit (Dependencies): Likewise.
7365         * modules/vasnprintf (Dependencies): Likewise.
7366         * doc/headers/float.texi: Update.
7367
7368 2007-05-19  Jim Meyering  <jim@meyering.net>
7369
7370         * lib/utimens.c (gl_futimens): Rename from futimens,
7371         now that glibc-2.6 declares futimens.
7372         * lib/utimens.h: Likewise.
7373
7374 2007-05-19  Bruno Haible  <bruno@clisp.org>
7375
7376         Avoid test failures on mingw.
7377         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
7378         * tests/test-printf-posix.sh: Likewise.
7379         * tests/test-vfprintf-posix.sh: Likewise.
7380         * tests/test-vprintf-posix.sh: Likewise.
7381
7382 2007-05-19  Bruno Haible  <bruno@clisp.org>
7383
7384         Fix *printf result for NaN, Inf, -0.0 on mingw.
7385         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
7386         * lib/vasnprintf.c: Include math.h and isnan.h.
7387         (is_infinite_or_zero): New function.
7388         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
7389         values in the %f, %F, %e, %E, %g, %G directives.
7390         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
7391         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7392         gl_PRINTF_INFINITE and test its result. Invoke
7393         gl_PREREQ_VASNPRINTF_INFINITE.
7394         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7395         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7396         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7397         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7398         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7399         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7400         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7401         * doc/functions/fprintf.texi: Update.
7402         * doc/functions/printf.texi: Update.
7403         * doc/functions/snprintf.texi: Update.
7404         * doc/functions/sprintf.texi: Update.
7405         * doc/functions/vfprintf.texi: Update.
7406         * doc/functions/vprintf.texi: Update.
7407         * doc/functions/vsnprintf.texi: Update.
7408         * doc/functions/vsprintf.texi: Update.
7409
7410 2007-05-19  Bruno Haible  <bruno@clisp.org>
7411
7412         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
7413         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
7414         Instead of multiplying with 10^k, set extra_zeroes to k.
7415         (scale10_round_long_double): Remove function.
7416
7417 2007-05-18  Bruno Haible  <bruno@clisp.org>
7418
7419         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
7420         introduced on 2007-05-06.
7421
7422 2007-05-18  Bruno Haible  <bruno@clisp.org>
7423
7424         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
7425         %g directives.
7426         * tests/test-vasprintf-posix.c (test_function): Likewise.
7427         * tests/test-snprintf-posix.h (test_function): Likewise.
7428         * tests/test-sprintf-posix.h (test_function): Likewise.
7429
7430 2007-05-18  Bruno Haible  <bruno@clisp.org>
7431
7432         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
7433         (strmatch): New function.
7434         (test_function): Test the %f directive on numbers of various exponents.
7435         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
7436         (strmatch): New function.
7437         (test_function): Test the %f directive on numbers of various exponents.
7438         * tests/test-snprintf-posix.h (strmatch): New function.
7439         (test_function): Test the %f directive on numbers of various exponents.
7440         * tests/test-sprintf-posix.h (strmatch): New function.
7441         (test_function): Test the %f directive on numbers of various exponents.
7442         * tests/test-snprintf-posix.c (SIZEOF): New macro.
7443         * tests/test-sprintf-posix.c (SIZEOF): New macro.
7444         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
7445         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
7446
7447 2007-05-18  Bruno Haible  <bruno@clisp.org>
7448
7449         Add support for 'long double' number output.
7450         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
7451         * lib/vasnprintf.c: Include math.h and float+.h.
7452         (mp_limb_t): New type.
7453         (GMP_LIMB_BITS): New macro.
7454         (mp_twolimb_t): New type.
7455         (GMP_TWOLIMB_BITS): New macro.
7456         (mpn_t): New type.
7457         (multiply, divide, convert_to_decimal, decode_long_double,
7458         scale10_round_long_double, scale10_round_decimal_long_double,
7459         floorlog10l): New functions.
7460         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
7461         for the %f, %F, %e, %E, %g, %G directives.
7462         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
7463         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7464         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
7465         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
7466         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7467         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7468         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7469         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7470         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7471         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7472         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7473         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
7474         * modules/snprintf-posix (Depends-on): Likewise.
7475         * modules/sprintf-posix (Depends-on): Likewise.
7476         * modules/vasnprintf-posix (Depends-on): Likewise.
7477         * modules/vasprintf-posix (Depends-on): Likewise.
7478         * modules/vfprintf-posix (Depends-on): Likewise.
7479         * modules/vsnprintf-posix (Depends-on): Likewise.
7480         * modules/vsprintf-posix (Depends-on): Likewise.
7481         * modules/vasnprintf (Files): Add lib/float+.h.
7482         * doc/functions/fprintf.texi: Update.
7483         * doc/functions/printf.texi: Update.
7484         * doc/functions/snprintf.texi: Update.
7485         * doc/functions/sprintf.texi: Update.
7486         * doc/functions/vfprintf.texi: Update.
7487         * doc/functions/vprintf.texi: Update.
7488         * doc/functions/vsnprintf.texi: Update.
7489         * doc/functions/vsprintf.texi: Update.
7490
7491 2007-05-18  Bruno Haible  <bruno@clisp.org>
7492
7493         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
7494
7495 2007-05-18  Bruno Haible  <bruno@clisp.org>
7496
7497         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
7498         for printing 64-bit integers. Needed for mingw.
7499
7500 2007-05-18  Bruno Haible  <bruno@clisp.org>
7501
7502         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
7503         gl_FUNC_FREXPL_WORKS.
7504         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
7505
7506 2007-05-18  Bruno Haible  <bruno@clisp.org>
7507
7508         * modules/frexpl-nolibm-tests: New file.
7509
7510         * modules/frexpl-nolibm: New file.
7511         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
7512
7513 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
7514
7515         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
7516         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
7517         GCC 4.2, which otherwise issues a lot of warnings.
7518         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
7519         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
7520         Likewise.
7521         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
7522         * modules/iconv_open (iconv.h): Likewise.
7523         * modules/locale (locale.h): Likewise.
7524         * modules/netinet_in (netinet/in.h): Likewise.
7525         * modules/sys_select (sys_select.h): Likewise.
7526         * modules/sys_socket (sys/socket.h): Likewise.
7527         * modules/sys_stat (sys/stat.h): Likewise.
7528         * modules/sysexits (sysexits.h): Likewise.
7529         * modules/unistd (unistd.h): Likewise.
7530
7531 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7532
7533         * modules/closein-tests (Makefile.am): Distribute
7534         `test-closein.sh'.
7535
7536 2007-05-17  Bruno Haible  <bruno@clisp.org>
7537
7538         * tests/test-printf-posix.output: Renamed from
7539         tests/test-fprintf-posix.out.
7540         * modules/fprintf-posix-tests: Update.
7541         * modules/printf-posix-tests: Update.
7542         * modules/vfprintf-posix-tests: Update.
7543         * modules/vprintf-posix-tests: Update.
7544         * tests/test-fprintf-posix.sh: Update.
7545         * tests/test-printf-posix.sh: Update.
7546         * tests/test-vfprintf-posix.sh: Update.
7547         * tests/test-vprintf-posix.sh: Update.
7548         Reported by Ralf Wildenhues.
7549
7550 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7551
7552         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
7553         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
7554         GCC 4.2, which otherwise issues a lot of warnings.
7555         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
7556         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
7557         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
7558         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
7559         it should no longer be needed.
7560         * lib/string_.h: Likewise.
7561         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
7562         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
7563         * modules/inttypes (inttypes.h): Likewise.
7564         * modules/math (math.h): Likewise.
7565         * modules/search (search.h): Likewise.
7566         * modules/signal (signal.h): Likewise.
7567         * modules/stdint (stdint.h): Likewise.
7568         * modules/stdio (stdio.h): Likewise.
7569         * modules/stdlib (stdlib.h): Likewise.
7570         * modules/string (string.h): Likewise.
7571         * modules/sys_time (sys/time.h): Likewise.
7572         * modules/time (time.h): Likewise.
7573         * modules/wchar (wchar.h): Likewise.
7574         * modules/wctype (wtype.h): Likewise.
7575
7576 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
7577
7578         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
7579
7580 2007-05-13  Bruno Haible  <bruno@clisp.org>
7581
7582         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
7583         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
7584         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
7585         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
7586         (gl_PREREQ_STRTOK_R): Don't require it here.
7587
7588 2007-05-13  Bruno Haible  <bruno@clisp.org>
7589
7590         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
7591         when used in C++ mode.
7592
7593 2007-05-12  Bruno Haible  <bruno@clisp.org>
7594
7595         * lib/linebuffer.h: Tweak doc.
7596         * lib/linebuffer.c: Likewise.
7597
7598 2007-05-12  James Youngman  <jay@gnu.org>
7599
7600         * lib/linebuffer.c (readlinebuffer_delim): New function,
7601         like readlinebuffer, but use a caller-specified delimiter.
7602         (readlinebuffer): Just call readlinebuffer_delim with '\n'
7603         as the delimiter.
7604         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
7605
7606 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
7607
7608         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
7609         * modules/openat (Files): Remove openat-die.c.
7610         (Depends-on): Add openat-die.
7611         * modules/openat-die: New module.
7612
7613 2007-05-06  Bruno Haible  <bruno@clisp.org>
7614
7615         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
7616         Update with info about Cygwin.
7617         * doc/functions/fprintf.texi: Update.
7618         * doc/functions/printf.texi: Update.
7619         * doc/functions/snprintf.texi: Update.
7620         * doc/functions/sprintf.texi: Update.
7621         * doc/functions/vfprintf.texi: Update.
7622         * doc/functions/vprintf.texi: Update.
7623         * doc/functions/vsnprintf.texi: Update.
7624         * doc/functions/vsprintf.texi: Update.
7625         Reported by Eric Blake.
7626
7627 2007-05-06  Bruno Haible  <bruno@clisp.org>
7628
7629         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
7630         padding ourselves for the floating-point directives.
7631         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
7632         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
7633         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
7634         gl_PRINTF_FLAG_ZERO and test its result. Invoke
7635         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
7636         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7637         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
7638         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7639         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7640         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7641         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7642         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7643         * tests/test-snprintf-posix.h (test_function): Also check the width
7644         and some flags in the %f directive.
7645         * tests/test-sprintf-posix.h (test_function): Likewise.
7646         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7647         * tests/test-vasprintf-posix.c (test_function): Likewise.
7648         * doc/functions/fprintf.texi: Update.
7649         * doc/functions/printf.texi: Update.
7650         * doc/functions/snprintf.texi: Update.
7651         * doc/functions/sprintf.texi: Update.
7652         * doc/functions/vfprintf.texi: Update.
7653         * doc/functions/vprintf.texi: Update.
7654         * doc/functions/vsnprintf.texi: Update.
7655         * doc/functions/vsprintf.texi: Update.
7656
7657 2007-05-06  Bruno Haible  <bruno@clisp.org>
7658
7659         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
7660         pass the ' flag character to sprintf or snprintf.
7661         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
7662         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
7663         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
7664         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
7665         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
7666         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7667         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
7668         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7669         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7670         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7671         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7672         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7673         * tests/test-snprintf-posix.h (test_function): Also check the grouping
7674         flag.
7675         * tests/test-sprintf-posix.h (test_function): Likewise.
7676         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7677         * tests/test-vasprintf-posix.c (test_function): Likewise.
7678         * doc/functions/fprintf.texi: Update.
7679         * doc/functions/printf.texi: Update.
7680         * doc/functions/snprintf.texi: Update.
7681         * doc/functions/sprintf.texi: Update.
7682         * doc/functions/vfprintf.texi: Update.
7683         * doc/functions/vprintf.texi: Update.
7684         * doc/functions/vsnprintf.texi: Update.
7685         * doc/functions/vsprintf.texi: Update.
7686
7687 2007-05-01  Bruno Haible  <bruno@clisp.org>
7688
7689         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
7690
7691 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
7692
7693         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
7694         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
7695
7696 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
7697
7698         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
7699         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
7700         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
7701
7702 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
7703
7704         * lib/argp-help.c (struct hol_entry): New member `ord'.
7705         (HOL_ENTRY_PTRCMP): Use ord for comparison
7706         (hol_sort): Initialize ord.
7707
7708 2007-05-01  Bruno Haible  <bruno@clisp.org>
7709
7710         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
7711         Reported by Eric Blake.
7712         * doc/gnulib.texi (Function Substitutes): Update.
7713
7714 2007-05-01  Bruno Haible  <bruno@clisp.org>
7715
7716         * doc/functions.texi: Remove file, now redundant through
7717         doc/functions/*.texi.
7718
7719 2007-05-01  Bruno Haible  <bruno@clisp.org>
7720
7721         * modules/argp (Depends-on): Add sleep.
7722
7723 2007-05-01  Bruno Haible  <bruno@clisp.org>
7724
7725         * modules/sleep-tests: New file.
7726         * tests/test-sleep.c: New file.
7727
7728         * modules/sleep: New file.
7729         * lib/sleep.c: New file.
7730         * m4/sleep.m4: New file.
7731         * lib/unistd_.h (sleep): New declaration.
7732         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
7733         HAVE_SLEEP.
7734         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
7735         * doc/functions/sleep.texi: Document the sleep module.
7736
7737 2007-05-01  Bruno Haible  <bruno@clisp.org>
7738
7739         * lib/sigprocmask.h: Remove file.
7740         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
7741         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
7742         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
7743         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
7744         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
7745         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
7746         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
7747         HAVE_SIGSET_T as a shell variable.
7748         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
7749         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
7750         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
7751         (Depends-on): Add signal. Remove verify.
7752         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
7753         (Include): Mention <signal.h> instead of sigprocmask.h.
7754         * NEWS: Mention the change.
7755         * lib/fatal-signal.c: Don't include sigprocmask.h.
7756
7757 2007-05-01  Bruno Haible  <bruno@clisp.org>
7758
7759         * modules/signal: New file.
7760         * lib/signal_.h: New file.
7761         * m4/signal_h.m4: New file.
7762
7763 2007-05-01  Bruno Haible  <bruno@clisp.org>
7764
7765         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
7766         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
7767         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
7768         HAVE_WCTYPE_CTMP_BUG into wctype.h.
7769
7770 2007-05-01  Bruno Haible  <bruno@clisp.org>
7771
7772         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
7773         configure time.
7774         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
7775         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
7776         * modules/sys_stat (Makefile.am): Substitute their values into
7777         sys/stat.h.
7778
7779 2007-05-01  Bruno Haible  <bruno@clisp.org>
7780
7781         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
7782         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
7783         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
7784
7785 2007-05-01  Bruno Haible  <bruno@clisp.org>
7786
7787         * doc/header/assert.texi: Undo last change: don't mention the gnulib
7788         'assert' module here.
7789
7790 2007-05-01  Bruno Haible  <bruno@clisp.org>
7791
7792         * doc/functions/*.texi: New files.
7793         * doc/functions/google-ranking.txt: New file.
7794         * doc/gnulib.texi (Function Substitutes): New chapter.
7795         (ctime, inet_ntoa): Remove sections.
7796         * doc/ctime.texi: Remove file.
7797         * doc/inet_ntoa.texi: Remove file.
7798         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
7799         dependencies.
7800         (%.info): New rule, specifying a --reference-limit.
7801
7802 2007-05-01  Bruno Haible  <bruno@clisp.org>
7803
7804         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
7805
7806 2007-05-01  Bruno Haible  <bruno@clisp.org>
7807
7808         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
7809         the portability of 'mkdir' to mingw systems.
7810
7811 2007-05-01  Bruno Haible  <bruno@clisp.org>
7812
7813         * doc/headers/google-ranking.txt: New file.
7814
7815 2007-04-30  Eric Blake  <ebb9@byu.net>
7816
7817         Prefer fseeko to fseek.
7818         * modules/getpass (Depends-on): Add fseeko.
7819         * lib/getpass.c (getpass): Use fseeko, not fseek.
7820
7821 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
7822
7823         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
7824         assumes the sorting is stable, while most qsort implementations
7825         are not.  Use argument addresses to ensure they never compare as
7826         equal.
7827
7828         * tests/test-argp-2.sh (usage-indent test): Fix output
7829         (func_compare): Restore diff options
7830         * tests/test-argp.c: Restore #include "progname.h"
7831
7832 2007-04-29  Bruno Haible  <bruno@clisp.org>
7833
7834         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
7835         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
7836         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
7837         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7838         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
7839         (configure.ac): Define CHECK_SNPRINTF_POSIX.
7840         (TESTS, check_PROGRAMS): Add test-snprintf.
7841         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
7842         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
7843         (TESTS, check_PROGRAMS): Add test-vsnprintf.
7844         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
7845         assertions that fail on HP-UX, OSF/1, or IRIX.
7846         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
7847
7848 2007-04-29  Bruno Haible  <bruno@clisp.org>
7849
7850         * MODULES.html.sh (posix_functions): Remove 'contents'.
7851
7852 2007-04-29  Karl Berry  <karl@gnu.org>
7853
7854         * config/srclist.txt (gendocs_template_min): new entry.
7855
7856 2007-04-29  Bruno Haible  <bruno@clisp.org>
7857
7858         Work around fpurge bug on BSD systems.
7859         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
7860         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
7861         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
7862         fpurge to rpl_fpurge if the system already has this function.
7863         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
7864         the case where the system already has this function. Correct invariants
7865         on BSD systems.
7866         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
7867         BSD systems.
7868
7869 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
7870
7871         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
7872         proposed by Sven Verdoolaege.
7873
7874         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
7875         options.
7876         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
7877         (usage and help tests): Update
7878
7879 2007-04-29  Bruno Haible  <bruno@clisp.org>
7880
7881         * tests/test-fflush.c (main): Use a file of size 17, not 10.
7882         Print more information in case of failure. Disable a test on BeOS.
7883
7884 2007-04-29  Bruno Haible  <bruno@clisp.org>
7885
7886         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
7887         This helps debugging on systems on which no gdb is available.
7888
7889 2007-04-29  Bruno Haible  <bruno@clisp.org>
7890
7891         * lib/freading.h: Improve comments.
7892         * lib/fwriting.h: Likewise.
7893         * tests/test-freading.c (main): Don't check freading immediately after
7894         repositioning. Needed for glibc.
7895
7896 2007-04-29  Bruno Haible  <bruno@clisp.org>
7897
7898         * lib/freading.c (freading): Trivial simplification.
7899
7900 2007-04-28  Bruno Haible  <bruno@clisp.org>
7901
7902         * tests/test-fwriting.c (main): Also test the interaction between
7903         fflush and fwriting.
7904         * modules/fwriting-tests (Depends-on): Add fflush.
7905
7906         * tests/test-freading.c (main): Also test the interaction between
7907         fflush and freading.
7908         * modules/freading-tests (Depends-on): Add fflush.
7909
7910 2007-04-28  Bruno Haible  <bruno@clisp.org>
7911
7912         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
7913         fseeko and ftello.
7914         Suggested by Eric Blake.
7915
7916 2007-04-28  Jim Meyering  <jim@meyering.net>
7917
7918         Avoid false-negative in gl_STDINT_H's C99 conformance test.
7919         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
7920         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
7921
7922 2007-04-27  Eric Blake  <ebb9@byu.net>
7923
7924         * doc/headers/assert.texi (assert.h): Document assert module use.
7925
7926 2007-04-27  Bruno Haible  <bruno@clisp.org>
7927
7928         * doc/headers/*.texi: New files.
7929         * doc/gnulib.texi (Header File Substitutes): New chapter.
7930         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
7931         dependencies.
7932         (standards.info ,standards.html, standards.dvi): Update dependencies.
7933         (mostlyclean, clean): New targets.
7934
7935 2007-04-27  Bruno Haible  <bruno@clisp.org>
7936
7937         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
7938         * modules/sysexits (Files, Makefile.am): Update.
7939
7940         * lib/sys_socket_.h: Renamed from lib/socket_.h.
7941         * modules/sys_socket (Files, Makefile.am): Update.
7942
7943         * lib/sys_stat_.h: Renamed from lib/stat_.h.
7944         * modules/sys_stat (Files, Makefile.am): Update.
7945
7946 2007-04-27  Eric Blake  <ebb9@byu.net>
7947
7948         * lib/freading.h: Improve comments.
7949         * lib/fwriting.h: Likewise.
7950         * lib/fflush.c: Likewise.
7951
7952         Fix closein for mingw.
7953         * modules/closein-tests: Add tests for closein.
7954         * tests/test-closein.c: New file.
7955         * tests/test-closein.sh: Likewise.
7956         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
7957         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
7958
7959 2007-04-27  Bruno Haible  <bruno@clisp.org>
7960
7961         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
7962         version is < 6.
7963         * lib/math_.h [__DECC]: Likewise.
7964         * lib/stdio_.h [__DECC]: Likewise.
7965         * lib/stdlib_.h [__DECC]: Likewise.
7966         * lib/string_.h [__DECC]: Likewise.
7967         * lib/time_.h [__DECC]: Likewise.
7968         * lib/wchar_.h [__DECC]: Likewise.
7969         * lib/wctype_.h [__DECC]: Likewise.
7970
7971 2007-04-27  Bruno Haible  <bruno@clisp.org>
7972
7973         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
7974
7975 2007-04-27  Bruno Haible  <bruno@clisp.org>
7976
7977         * lib/fflush.c: Add comments.
7978         * modules/fpurge-tests (Depends-on): Add fflush.
7979         * modules/freadable-tests (Depends-on): Likewise.
7980         * modules/fwritable-tests (Depends-on): Likewise.
7981
7982 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
7983
7984         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
7985         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
7986         Report by Bruno Haible <bruno@clisp.org>.
7987
7988 2007-04-26  Eric Blake  <ebb9@byu.net>
7989
7990         Fix fflush on mingw.
7991         * modules/fflush (Depends-on): Add freading.
7992         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
7993         but unread data.
7994
7995 2007-04-26  Eric Blake  <ebb9@byu.net>
7996         and Bruno Haible  <bruno@clisp.org>
7997
7998         Implement freading and fwriting.
7999         * lib/freading.c: New file.
8000         * lib/freading.h: Likewise.
8001         * m4/freading.m4: Likewise.
8002         * modules/freading: Likewise.
8003         * modules/freading-tests: Likewise.
8004         * tests/test-freading.c: Likewise.
8005         * lib/fwriting.c: New file.
8006         * lib/fwriting.h: Likewise.
8007         * m4/fwriting.m4: Likewise.
8008         * modules/fwriting: Likewise.
8009         * modules/fwriting-tests: Likewise.
8010         * tests/test-fwriting.c: Likewise.
8011         * MODULES.html.sh (File stream based Input/Output): Mention them.
8012
8013 2007-04-26  Bruno Haible  <bruno@clisp.org>
8014
8015         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
8016         'long' when we assume it.
8017         Suggested by Eric Blake.
8018
8019 2007-04-26  Bruno Haible  <bruno@clisp.org>
8020
8021         Ensure fseeko, ftello are declared on glibc systems.
8022         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
8023         * modules/fseeko (configure.ac-early): Likewise.
8024         * modules/ftello (configure.ac-early): Likewise.
8025         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
8026         AC_FUNC_FSEEKO for this.
8027         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
8028         (gl_CHECK_FSEEKO): Remove macro.
8029
8030 2007-04-26  Bruno Haible  <bruno@clisp.org>
8031
8032         * tests/test-fflush.c (main): Also check the ftell result after
8033         fflush and fseek/fseeko.
8034         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
8035         file descriptor position cache in the stream.
8036         * lib/fseeko.c (rpl_fseeko): Likewise.
8037
8038 2007-04-26  Bruno Haible  <bruno@clisp.org>
8039
8040         * modules/fflush-tests (Depends-on): Add fseeko.
8041
8042 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
8043             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8044
8045         * lib/argz_.h: ensure error_t definition is obtained in same
8046         mechanism system argz.h would have.
8047         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
8048         argz facilities are known bad.  Err on the side of caution if
8049         cross-compiling.
8050
8051 2007-04-25  Eric Blake  <ebb9@byu.net>
8052
8053         * lib/fpurge.c (includes): Use stdlib.h for free.
8054         * tests/test-fflush.c (main): Also test fflush-fseeko.
8055
8056 2007-04-25  Bruno Haible  <bruno@clisp.org>
8057
8058         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
8059         * lib/fseeko.c: New file.
8060         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
8061         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
8062         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
8063         gl_FUNC_FSEEKO.
8064         (gl_FUNC_FSEEKO): Invoke it.
8065         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
8066         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
8067         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
8068
8069 2007-04-25  Bruno Haible  <bruno@clisp.org>
8070
8071         * modules/fflush (Depends-on): Add ftello.
8072
8073 2007-04-25  Bruno Haible  <bruno@clisp.org>
8074
8075         * modules/ftello-tests: New file.
8076         * tests/test-ftello.c: New file.
8077
8078         * modules/ftello: New file.
8079         * m4/ftello.m4: New file.
8080         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
8081         HAVE_FTELLO.
8082         * lib/stdio_.h (ftello): New declaration.
8083         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
8084         HAVE_FTELLO.
8085
8086 2007-04-25  Bruno Haible  <bruno@clisp.org>
8087
8088         * modules/fseeko-tests: New file.
8089         * tests/test-fseeko.c: New file.
8090
8091         * modules/fseeko: New file.
8092         * m4/fseeko.m4: New file.
8093         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
8094         HAVE_FSEEKO.
8095         * lib/stdio_.h (fseeko): New declaration.
8096         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
8097         HAVE_FSEEKO.
8098
8099 2007-04-25  Bruno Haible  <bruno@clisp.org>
8100
8101         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
8102
8103 2007-04-25  Bruno Haible  <bruno@clisp.org>
8104
8105         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
8106         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
8107         * tests/test-unistd.c: Likewise.
8108         * tests/test-fcntl.c: Likewise.
8109
8110 2007-04-23  Eric Blake  <ebb9@byu.net>
8111
8112         * lib/fflush.c: Fix missing include.
8113         Reported by Bruno Haible.
8114
8115 2007-04-23  Bruno Haible  <bruno@clisp.org>
8116
8117         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
8118         Reported by Eric Blake.
8119
8120 2007-04-23  Bruno Haible  <bruno@clisp.org>
8121
8122         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
8123
8124 2007-04-23  Bruno Haible  <bruno@clisp.org>
8125
8126         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
8127
8128 2007-04-23  Bruno Haible  <bruno@clisp.org>
8129
8130         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
8131         Needed on HP-UX 11.
8132
8133 2007-04-16  Eric Blake  <ebb9@byu.net>
8134
8135         Make fflush rely on fpurge.
8136         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
8137         open coding all variants.
8138         * modules/fflush (Depends-on): Add fpurge and unistd.
8139         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
8140         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
8141
8142         Fix --with-tests compilation on cygwin.
8143         * modules/argmatch-tests (Makefile.am): List gnulib library first
8144         in LDADD.
8145         * modules/argp-tests (Makefile.am): Likewise.
8146         * modules/array-list-tests (Makefile.am): Likewise.
8147         * modules/array-oset-tests (Makefile.am): Likewise.
8148         * modules/avltree-list-tests (Makefile.am): Likewise.
8149         * modules/avltree-oset-tests (Makefile.am): Likewise.
8150         * modules/avltreehash-list-tests (Makefile.am): Likewise.
8151         * modules/carray-list-tests (Makefile.am): Likewise.
8152         * modules/dirname-tests (Makefile.am): Likewise.
8153         * modules/frexp-tests (Makefile.am): Likewise.
8154         * modules/isnanl-tests (Makefile.am): Likewise.
8155         * modules/linked-list-tests (Makefile.am): Likewise.
8156         * modules/linkedhash-list-tests (Makefile.am): Likewise.
8157         * modules/lock-tests (Makefile.am): Likewise.
8158         * modules/rbtree-list-tests (Makefile.am): Likewise.
8159         * modules/rbtree-oset-tests (Makefile.am): Likewise.
8160         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
8161         * modules/tls-tests (Makefile.am): Likewise.
8162         * modules/tsearch-tests (Makefile.am): Likewise.
8163         * modules/xvasprintf-tests (Makefile.am): Likewise.
8164
8165         Fix fpurge for cygwin.
8166         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
8167         value.
8168         * modules/fpurge-tests (Depends-on): Clean up trash.
8169
8170 2007-04-16  Simon Josefsson  <simon@josefsson.org>
8171
8172         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
8173
8174         * m4/autobuild.m4: Re-indent.
8175
8176 2007-04-13  Bruno Haible  <bruno@clisp.org>
8177
8178         * modules/fpurge-tests: New file.
8179         * tests/test-fpurge.c: New file.
8180
8181         * modules/fpurge: New file.
8182         * lib/fpurge.h: New file.
8183         * lib/fpurge.c: New file.
8184         * m4/fpurge.m4: New file.
8185
8186 2007-04-13  Bruno Haible  <bruno@clisp.org>
8187
8188         * modules/fbufmode-tests: New file.
8189         * tests/test-fbufmode.c: New file.
8190
8191         * modules/fbufmode: New file.
8192         * lib/fbufmode.h: New file.
8193         * lib/fbufmode.c: New file.
8194         * m4/fbufmode.m4: New file.
8195
8196 2007-04-13  Bruno Haible  <bruno@clisp.org>
8197
8198         * modules/fwritable-tests: New file.
8199         * tests/test-fwritable.c: New file.
8200
8201         * modules/fwritable: New file.
8202         * lib/fwritable.h: New file.
8203         * lib/fwritable.c: New file.
8204         * m4/fwritable.m4: New file.
8205
8206 2007-04-13  Bruno Haible  <bruno@clisp.org>
8207
8208         * modules/freadable-tests: New file.
8209         * tests/test-freadable.c: New file.
8210
8211         * modules/freadable: New file.
8212         * lib/freadable.h: New file.
8213         * lib/freadable.c: New file.
8214         * m4/freadable.m4: New file.
8215
8216 2007-04-13  Bruno Haible  <bruno@clisp.org>
8217
8218         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
8219         MOSTLYCLEANFILES.
8220
8221 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
8222
8223         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
8224         gzip bootstrap.conf to avoid dragging in i18n machinery.
8225         (gnulib_tool_option): Use it.
8226
8227 2007-04-13  Bruno Haible  <bruno@clisp.org>
8228
8229         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
8230         %F directives.
8231         * tests/test-vasprintf-posix.c (test_function): Likewise.
8232         * tests/test-snprintf-posix.h (test_function): Likewise.
8233         * tests/test-sprintf-posix.h (test_function): Likewise.
8234         * tests/test-fprintf-posix.h (test_function): Likewise.
8235         * tests/test-printf-posix.h (test_function): Likewise.
8236         * tests/test-fprintf-posix.out: Likewise.
8237
8238 2007-04-13  Bruno Haible  <bruno@clisp.org>
8239
8240         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
8241         * modules/tls-tests (configure.ac): Likewise.
8242         Reported by Arto C. Nirkko <anirkko@insel.ch>.
8243
8244 2007-04-13  Bruno Haible  <bruno@clisp.org>
8245
8246         * lib/tls.c (glthread_tls_get): Fix return type.
8247         Patch by Arto C. Nirkko <anirkko@insel.ch>.
8248
8249 2007-04-12  Eric Blake  <ebb9@byu.net>
8250
8251         * modules/gettime (Depends-on): Remove gettime.
8252         Reported by Dmitry V. Levin.
8253
8254 2007-04-12  Bruno Haible  <bruno@clisp.org>
8255
8256         * modules/fflush (Include): Mention <stdio.h>.
8257         * modules/strtoimax (Include): Mention <inttypes.h>.
8258         * modules/strtoumax (Include): Likewise.
8259
8260 2007-04-12  Eric Blake  <ebb9@byu.net>
8261
8262         * .cvsignore: New file.
8263         * .gitignore: Likewise.
8264
8265 2007-04-12  Bruno Haible  <bruno@clisp.org>
8266
8267         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
8268         not before, since $(LDADD) often contains libgnu.a.
8269         * modules/striconv-tests (test_striconv_LDADD): Likewise.
8270         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
8271         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
8272         Needed on Cygwin.
8273
8274 2007-04-12  Eric Blake  <ebb9@byu.net>
8275
8276         Work around glibc's failure to flush stdin on fclose.
8277         * lib/closein.c (close_stdin): Flush stdin before closing.
8278
8279         Work around glibc's failure to reset seekable stdin on exit.
8280         * modules/closein: New module.
8281         * lib/closein.c: New file.
8282         * lib/closein.h: Likewise.
8283         * m4/closein.m4: Likewise.
8284         * MODULES.html.sh (File stream based Input/Output): Document it.
8285
8286 2007-04-12  Simon Josefsson  <simon@josefsson.org>
8287
8288         * gnulib-tool: Rename generated 'autobuild' script to
8289         'do-autobuild' in --create-megatestdir output.
8290
8291         * doc/gnulib.texi (Build robot for gnulib): Fix.
8292
8293 2007-04-12  Simon Josefsson  <simon@josefsson.org>
8294
8295         * modules/sysexits (Depends-on): Add absolute-header.
8296
8297 2007-04-12  Eric Blake  <ebb9@byu.net>
8298
8299         No need to preserve errno on success.
8300         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
8301         Reported by Bruno Haible.
8302
8303 2007-04-12  Simon Josefsson  <simon@josefsson.org>
8304
8305         * MODULES.html.sh (Support for maintaining and releasing
8306         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
8307
8308 2007-04-12  Simon Josefsson  <simon@josefsson.org>
8309
8310         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
8311
8312 2007-04-12  Simon Josefsson  <simon@josefsson.org>
8313
8314         * modules/autobuild: New module.
8315
8316         * m4/autobuild.m4: New file.
8317
8318 2007-04-11  Bruno Haible  <bruno@clisp.org>
8319
8320         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
8321         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
8322         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
8323         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
8324         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8325         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
8326         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
8327         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
8328         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
8329         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
8330         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
8331         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
8332         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
8333         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
8334         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
8335         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
8336         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
8337         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
8338         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
8339         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
8340         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
8341         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
8342         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
8343         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
8344         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
8345         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
8346         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
8347         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
8348         Reported by Eric Blake.
8349
8350 2007-04-11  Bruno Haible  <bruno@clisp.org>
8351
8352         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
8353
8354 2007-04-10  Bruno Haible  <bruno@clisp.org>
8355
8356         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
8357         for NaN and Infinity. Needed on FreeBSD 6.1.
8358         * tests/test-vasnprintf-posix.c (test_function): Undo last change
8359         regarding results for "%010a" of Infinity and NaN.
8360         * tests/test-vasprintf-posix.c (test_function): Likewise.
8361         * tests/test-snprintf-posix.h (test_function): Likewise.
8362         * tests/test-sprintf-posix.h (test_function): Likewise.
8363         * tests/test-fprintf-posix.h (test_function): Likewise.
8364         * tests/test-printf-posix.h (test_function): Likewise.
8365         * tests/test-fprintf-posix.out: Likewise.
8366
8367 2007-04-10  Bruno Haible  <bruno@clisp.org>
8368
8369         * modules/locale-tests: New file.
8370         * tests/test-locale.c: New file.
8371
8372         * modules/locale: New file.
8373         * lib/locale_.h: New file.
8374         * m4/locale_h.m4: New file.
8375
8376 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
8377             Bruno Haible  <bruno@clisp.org>
8378
8379         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
8380         be determined, test for availability of the copysignf, copysign,
8381         copysignl functions.
8382         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
8383         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
8384         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
8385
8386 2007-04-09  Eric Blake  <ebb9@byu.net>
8387
8388         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
8389         * modules/stdio (Makefile.am): Support fflush.
8390         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
8391         * modules/fflush: New file.
8392         * lib/fflush.c: Likewise.
8393         * m4/fflush.m4: Likewise.
8394         * modules/fflush-tests: New test.
8395         * tests/test-fflush.c: Likewise.
8396         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
8397
8398 2007-04-06  Bruno Haible  <bruno@clisp.org>
8399
8400         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
8401         (VASNPRINTF): Use signbit for faster determination whether to print a
8402         minus sign.
8403         * modules/vasnprintf (Files): Remove lib/float+.h.
8404         * modules/fprintf-posix (Depends-on): Add signbit.
8405         * modules/snprintf-posix (Depends-on): Likewise.
8406         * modules/sprintf-posix (Depends-on): Likewise.
8407         * modules/vasnprintf-posix (Depends-on): Likewise.
8408         * modules/vasprintf-posix (Depends-on): Likewise.
8409         * modules/vfprintf-posix (Depends-on): Likewise.
8410         * modules/vsnprintf-posix (Depends-on): Likewise.
8411         * modules/vsprintf-posix (Depends-on): Likewise.
8412
8413 2007-04-06  Bruno Haible  <bruno@clisp.org>
8414
8415         * tests/test-frexp.c (main): Test also the sign bit of zero results.
8416         * tests/test-frexpl.c (main): Likewise.
8417         * tests/test-ldexpl.c (main): Likewise.
8418         * modules/frexp-tests (Depends-on): Add signbit.
8419         * modules/frexpl-tests (Depdends-on): Likewise.
8420         * modules/ldexpl-tests (Depdends-on): Likewise.
8421
8422 2007-04-06  Bruno Haible  <bruno@clisp.org>
8423
8424         * modules/signbit-tests: New file.
8425         * tests/test-signbit.c: New file.
8426
8427         * modules/signbit: New file.
8428         * lib/signbitf.c: New file.
8429         * lib/signbitd.c: New file.
8430         * lib/signbitl.c: New file.
8431         * m4/signbit.m4: New file.
8432         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
8433         (signbit): New macro.
8434         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
8435         REPLACE_SIGNBIT.
8436         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
8437         REPLACE_FREXPL into math.h.
8438
8439 2007-04-06  Bruno Haible  <bruno@clisp.org>
8440
8441         * modules/isnanf-nolibm-tests: New file.
8442         * tests/test-isnanf.c: New file.
8443
8444         * modules/isnanf-nolibm: New file.
8445         * lib/isnanf.h: New file.
8446         * lib/isnanf.c: New file.
8447         * lib/isnan.c: Consider the USE_FLOAT macro.
8448         * m4/isnanf.m4: New file.
8449
8450 2007-04-06  Bruno Haible  <bruno@clisp.org>
8451
8452         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
8453         (Link): New section.
8454
8455         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
8456
8457 2007-04-06  Bruno Haible  <bruno@clisp.org>
8458
8459         Assume the 'long double' type.
8460         * m4/longdouble.m4: Remove file.
8461         * config/srclist.txt: Don't mention longdouble.m4.
8462         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
8463         * lib/float+.h: Likewise.
8464         * lib/frexp.c: Likewise.
8465         * lib/printf-args.h: Likewise.
8466         * lib/printf-args.c: Likewise.
8467         * lib/printf-frexp.c: Likewise.
8468         * lib/printf-parse.c: Likewise.
8469         * lib/vasnprintf.c: Likewise.
8470         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
8471         * m4/intl.m4: Likewise.
8472         * m4/isnanl.m4: Likewise.
8473         * m4/printf.m4: Likewise.
8474         * m4/printf-frexpl.m4: Likewise.
8475         * m4/vasnprintf.m4: Likewise.
8476         * modules/allocsa (Files): Remove m4/longdouble.m4.
8477         * modules/gettext (Files): Likewise.
8478         * modules/relocatable-prog-wrapper (Files): Likewise.
8479         * modules/vasnprintf (Files): Likewise.
8480         * modules/isnanl (Files): Likewise.
8481         (Include): Simplify.
8482         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
8483         (Include): Simplify.
8484         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
8485         (Include): Simplify.
8486         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
8487         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
8488         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
8489         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
8490         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
8491         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
8492         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
8493         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
8494         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
8495         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
8496         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
8497         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
8498         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
8499         * tests/test-isnanl.c: Likewise.
8500         * tests/test-snprintf-posix.h: Likewise.
8501         * tests/test-sprintf-posix.h: Likewise.
8502         * tests/test-vasnprintf-posix.c: Likewise.
8503         * tests/test-vasnprintf-posix2.c: Likewise.
8504         * tests/test-vasprintf-posix.c: Likewise.
8505
8506 2007-04-06  Bruno Haible  <bruno@clisp.org>
8507
8508         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
8509         * lib/math_.h [__DECC]: Include the overridden include file through
8510         #include_next, outside the double-inclusion guard.
8511         * lib/stdio_.h [__DECC]: Likewise.
8512         * lib/stdlib_.h [__DECC]: Likewise.
8513         * lib/string_.h [__DECC]: Likewise.
8514         * lib/time_.h [__DECC]: Likewise.
8515         * lib/wchar_.h [__DECC]: Likewise.
8516         * lib/wctype_.h [__DECC]: Likewise.
8517         * lib/inttypes_.h [__DECC]: Likewise.
8518         Reported by Albert Chin <china@thewrittenword.com> in
8519         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
8520
8521 2007-04-04  Eric Blake  <ebb9@byu.net>
8522
8523         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
8524         1.5.x.
8525
8526 2007-04-04  Bruno Haible  <bruno@clisp.org>
8527
8528         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
8529         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
8530
8531 2007-04-04  Bruno Haible  <bruno@clisp.org>
8532
8533         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
8534         results for "%010a" of Infinity and NaN.
8535         * tests/test-vasprintf-posix.c (test_function): Likewise.
8536         * tests/test-snprintf-posix.h (test_function): Likewise.
8537         * tests/test-sprintf-posix.h (test_function): Likewise.
8538         * tests/test-fprintf-posix.h (test_function): Remove these tests.
8539         * tests/test-printf-posix.h (test_function): Likewise.
8540         * tests/test-fprintf-posix.out: Update.
8541         Needed for FreeBSD 6.1.
8542
8543 2007-04-04  Bruno Haible  <bruno@clisp.org>
8544
8545         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
8546         directly used by the gnulib modules nor by gnulib-tool.
8547
8548 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
8549
8550         * DEPENDENCIES: Give overall description of version dependency
8551         desirability.  Use more-typical names for apps.
8552         Add shell, coreutils, diffutils, grep, tar, gzip.
8553
8554 2007-04-04  Simon Josefsson  <simon@josefsson.org>
8555
8556         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
8557
8558 2007-04-04  Karl Berry  <karl@gnu.org>
8559
8560         * MODULES.html.sh (func_module): missing '.
8561
8562 2007-04-03  Bruno Haible  <bruno@clisp.org>
8563
8564         * modules/argmatch-tests (Makefile.am): New variable
8565         test_argmatch_LDADD.
8566         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
8567         * modules/array-list-tests (Makefile.am): New variable
8568         test_array_list_LDADD.
8569         * modules/array-oset-tests (Makefile.am): New variable
8570         test_array_oset_LDADD.
8571         * modules/avltree-list-tests (Makefile.am): New variable
8572         test_avltree_list_LDADD.
8573         * modules/avltree-oset-tests (Makefile.am): New variable
8574         test_avltree_oset_LDADD.
8575         * modules/avltreehash-list-tests (Makefile.am): New variable
8576         test_avltreehash_list_LDADD.
8577         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
8578         test_canonicalize_lgpl_LDADD.
8579         * modules/carray-list-tests (Makefile.am): New variable
8580         test_carray_list_LDADD.
8581         * modules/dirname-tests (Makefile.am): New variable
8582         test_dirname_LDADD.
8583         * modules/linked-list-tests (Makefile.am): New variable
8584         test_linked_list_LDADD.
8585         * modules/linkedhash-list-tests (Makefile.am): New variable
8586         test_linkedhash_list_LDADD.
8587         * modules/rbtree-list-tests (Makefile.am): New variable
8588         test_rbtree_list_LDADD.
8589         * modules/rbtree-oset-tests (Makefile.am): New variable
8590         test_rbtree_oset_LDADD.
8591         * modules/rbtreehash-list-tests (Makefile.am): New variable
8592         test_rbtreehash_list_LDADD.
8593         * modules/xvasprintf-tests (Makefile.am): New variable
8594         test_xvasprintf_LDADD.
8595         Reported by Eric Blake.
8596
8597 2007-04-03  Eric Blake  <ebb9@byu.net>
8598
8599         * DEPENDENCIES: Weaken m4 requirements.
8600
8601 2007-04-03  Bruno Haible  <bruno@clisp.org>
8602
8603         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
8604         * modules/isnanl-tests (configure.ac): Likewise.
8605
8606 2007-04-03  Ben Pfaff  <blp@gnu.org>
8607
8608         * modules/iconv_open: Add $(srcdir)/ to source directory
8609         references in Makefile fragments that call gperf, to fix VPATH
8610         builds.
8611
8612 2007-04-03  Bruno Haible  <bruno@clisp.org>
8613
8614         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
8615         * lib/ldexpl.c: Undo last change.
8616
8617 2007-04-03  Bruno Haible  <bruno@clisp.org>
8618
8619         * modules/printf-frexpl (Depends-on): Undo last change.
8620         (Files): Add m4/ldexpl.m4.
8621
8622 2007-04-03  Bruno Haible  <bruno@clisp.org>
8623
8624         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
8625         * modules/isnanl (Link): New section.
8626
8627         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
8628         * modules/frexp (Link): New section.
8629
8630         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
8631         * modules/frexpl (Link): New section.
8632
8633         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
8634         * modules/ldexpl (Link): New section.
8635
8636 2007-04-03  Bruno Haible  <bruno@clisp.org>
8637
8638         * modules/TEMPLATE-EXTENDED: New file.
8639         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
8640
8641 2007-04-03  Bruno Haible  <bruno@clisp.org>
8642
8643         * DEPENDENCIES: New file.
8644         Suggested by Simon Josefsson.
8645
8646 2007-04-03  Bruno Haible  <bruno@clisp.org>
8647
8648         * doc/gnulib.texi: Escape @.
8649
8650 2007-04-03  James Youngman  <jay@gnu.org>
8651         and Paul Eggert  <eggert@cs.ucla.edu>
8652
8653         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
8654         birthtime on all systems that have birthtime, not just those which
8655         use st_birthtimensec rather than st_birthtim.  Putting zero in
8656         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
8657         that the birth time is not available for files on an NFS mount.
8658
8659 2007-04-03  Simon Josefsson  <simon@josefsson.org>
8660
8661         * modules/memxor: Move back from crypto/, suggested by Bruno.
8662         * modules/crypto/hmac-sha1: Fix memxor dependency.
8663
8664         * modules/crypto/gc: Moved from ../.
8665
8666 2007-04-02  Eric Blake  <ebb9@byu.net>
8667
8668         * lib/ldexpl.c (includes): Avoid libm.
8669
8670         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
8671
8672 2007-04-02  Bruno Haible  <bruno@clisp.org>
8673
8674         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
8675         on IRIX.
8676
8677 2007-04-02  Bruno Haible  <bruno@clisp.org>
8678
8679         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
8680         x86 or x86_64 platforms running MacOS X.
8681         Reported by Ryan Schmidt <@ryandesign.com>.
8682
8683 2007-04-02  Bruno Haible  <bruno@clisp.org>
8684
8685         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
8686         i386.
8687
8688 2007-04-01  Simon Josefsson  <simon@josefsson.org>
8689
8690         * modules/crypto/arcfour: Moved from ../.
8691         * modules/crypto/arcfour-tests: Moved from ../.
8692         * modules/crypto/arctwo: Moved from ../.
8693         * modules/crypto/arctwo-tests: Moved from ../.
8694         * modules/crypto/des: Moved from ../.
8695         * modules/crypto/des-tests: Moved from ../.
8696         * modules/crypto/gc-arcfour: Moved from ../.
8697         * modules/crypto/gc-arcfour-tests: Moved from ../.
8698         * modules/crypto/gc-arctwo: Moved from ../.
8699         * modules/crypto/gc-arctwo-tests: Moved from ../.
8700         * modules/crypto/gc-des: Moved from ../.
8701         * modules/crypto/gc-des-tests: Moved from ../.
8702         * modules/crypto/gc-hmac-md5: Moved from ../.
8703         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
8704         * modules/crypto/gc-hmac-sha1: Moved from ../.
8705         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
8706         * modules/crypto/gc-md2: Moved from ../.
8707         * modules/crypto/gc-md2-tests: Moved from ../.
8708         * modules/crypto/gc-md4: Moved from ../.
8709         * modules/crypto/gc-md4-tests: Moved from ../.
8710         * modules/crypto/gc-md5: Moved from ../.
8711         * modules/crypto/gc-md5-tests: Moved from ../.
8712         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
8713         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
8714         * modules/crypto/gc-random: Moved from ../.
8715         * modules/crypto/gc-rijndael: Moved from ../.
8716         * modules/crypto/gc-rijndael-tests: Moved from ../.
8717         * modules/crypto/gc-sha1: Moved from ../.
8718         * modules/crypto/gc-sha1-tests: Moved from ../.
8719         * modules/crypto/gc-tests: Moved from ../.
8720         * modules/crypto/hmac-md5: Moved from ../.
8721         * modules/crypto/hmac-md5-tests: Moved from ../.
8722         * modules/crypto/hmac-sha1: Moved from ../.
8723         * modules/crypto/hmac-sha1-tests: Moved from ../.
8724         * modules/crypto/md2: Moved from ../.
8725         * modules/crypto/md2-tests: Moved from ../.
8726         * modules/crypto/md4: Moved from ../.
8727         * modules/crypto/md4-tests: Moved from ../.
8728         * modules/crypto/md5: Moved from ../.
8729         * modules/crypto/md5-tests: Moved from ../.
8730         * modules/crypto/memxor: Moved from ../.
8731         * modules/crypto/rijndael: Moved from ../.
8732         * modules/crypto/rijndael-tests: Moved from ../.
8733         * modules/crypto/sha1: Moved from ../.
8734
8735 2007-03-30  James Youngman  <jay@gnu.org>
8736
8737         * tests/test-stat-time.c (prepare_test): use chmod() rather than
8738         rename() to change the ctime of a file (because ctime is unaffected
8739         by rename on jfs2 on AIX 5.1).
8740         (main): Start by doing cleanup, in case a previous run failed leaving
8741         test files behind.
8742
8743 2007-03-31  Bruno Haible  <bruno@clisp.org>
8744
8745         Support old proprietary implementations of iconv.
8746         * modules/iconv_open: New file.
8747         * lib/iconv_.h: New file.
8748         * m4/iconv_h.m4: New file.
8749         * lib/iconv_open.c: New file.
8750         * lib/iconv_open-aix.gperf: New file.
8751         * lib/iconv_open-hpux.gperf: New file.
8752         * lib/iconv_open-irix.gperf: New file.
8753         * lib/iconv_open-osf.gperf: New file.
8754         * m4/iconv_open.m4: New file.
8755         * modules/linebreak (Depends-on): Add iconv_open.
8756         * modules/striconv (Depends-on): Likewise.
8757         * modules/striconveh (Depends-on): Likewise.
8758         * modules/unicodeio (Depends-on): Likewise.
8759         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
8760         (iconv_t)(-1).
8761         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
8762         conversion if cd is (iconv_t)(-1).
8763         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
8764         is not possible.
8765
8766 2007-03-31  Bruno Haible  <bruno@clisp.org>
8767
8768         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
8769         work on Solaris either. Protect also second use of "autodetect_jp".
8770
8771 2007-03-31  Bruno Haible  <bruno@clisp.org>
8772
8773         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
8774         the function is not present.
8775
8776 2007-03-31  Bruno Haible  <bruno@clisp.org>
8777
8778         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
8779         the function is not present.
8780
8781 2007-03-31  Bruno Haible  <bruno@clisp.org>
8782
8783         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
8784         a bug in HP-UX iconv_open().
8785
8786 2007-03-31  Bruno Haible  <bruno@clisp.org>
8787
8788         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
8789         (Mathematics <math.h>): New section, add fpieee.
8790         (Input/output <stdio.h>): Add fseterr.
8791         (Mathematics <math.h>): New section, add printf-frexp.
8792         (Container data structures): Add sublist.
8793         (Core language properties): Add fpucw, inline.
8794         (Functions for greatest-width integer types <inttypes.h>): Add
8795         imaxabs, imaxdiv, inttypes.
8796         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
8797         isnanl-nolibm, ldexp.
8798         (Mathematics <math.h>): New section, add printf-frexpl.
8799         (Support for systems lacking POSIX:2001): Add fprintf-posix,
8800         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
8801         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
8802         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
8803         (Unicode string functions): Add unistr/u*-mbtoucr.
8804         (Java): Add javacomp-script, javaexec-script.
8805         (C#): Add csharpcomp-script, csharpexec-script.
8806         (Support for building libraries and executables): Add havelib,
8807         relocatable-*.
8808         (Support for maintaining and releasing projects): Renamed from
8809         'Support for maintaining and release projects'. Add announce-gen.
8810
8811 2007-03-31  Bruno Haible  <bruno@clisp.org>
8812
8813         * README: Talk primarily about git.
8814         (git and CVS): Renamed from CVS.
8815         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
8816         gnulib is available through git.
8817         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
8818
8819 2007-03-30  Bruno Haible  <bruno@clisp.org>
8820
8821         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
8822         * lib/poll_.h: Likewise.
8823         * lib/stat_.h: Likewise.
8824         * lib/sys_time_.h: Likewise.
8825         * lib/sysexit_.h: Likewise.
8826         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
8827         * lib/stdbool_.h: Likewise.
8828         * lib/byteswap_.h: Add double-inclusion guard.
8829
8830 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
8831
8832         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
8833
8834 2007-03-30  Karl Berry  <karl@gnu.org>
8835
8836         * config/srclist-update: double space after USA in the license
8837         substitution, since that's how it's usually (?) written.
8838
8839 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
8840
8841         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
8842         reported by Bruno Haible.
8843
8844 2007-03-29  Bruno Haible  <bruno@clisp.org>
8845
8846         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
8847         a bug in AIX iconv().
8848
8849 2007-03-29  Bruno Haible  <bruno@clisp.org>
8850
8851         * modules/ldexpl-tests: New file.
8852         * tests/test-ldexpl.c: New file.
8853
8854 2007-03-29  Bruno Haible  <bruno@clisp.org>
8855
8856         * lib/ldexpl.c: Include fpucw.h.
8857         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
8858         multiplication.
8859         * modules/ldexpl (Depends-on): Add fpucw.
8860
8861 2007-03-29  Bruno Haible  <bruno@clisp.org>
8862
8863         * modules/ldexpl: New file.
8864         * m4/ldexpl.m4: New file.
8865         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
8866         set.
8867         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
8868         REPLACE_LDEXPL.
8869         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
8870         REPLACE_LDEXPL.
8871         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
8872         gl_FUNC_LDEXPL_WORKS.
8873         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
8874         * modules/mathl (Files): Remove lib/ldexpl.c.
8875         (Depends-on): Add ldexpl.
8876
8877 2007-03-29  Bruno Haible  <bruno@clisp.org>
8878
8879         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
8880
8881 2007-03-29  Bruno Haible  <bruno@clisp.org>
8882
8883         * tests/test-striconveh.c (main): Don't assume that a direct conversion
8884         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
8885         and possibly also HP-UX.
8886         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
8887         work on AIX, IRIX, HP-UX, OSF/1.
8888         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
8889         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
8890         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
8891         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
8892         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
8893         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
8894
8895 2007-03-29  Bruno Haible  <bruno@clisp.org>
8896
8897         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
8898
8899 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
8900
8901         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
8902         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
8903
8904 2007-03-29  Eric Blake  <ebb9@byu.net>
8905
8906         * lib/acl-internal.h: Remove redundant include.
8907         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
8908         Cygwin when a file is locked.
8909
8910 2007-03-29  Bruno Haible  <bruno@clisp.org>
8911
8912         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
8913         file.
8914         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
8915
8916 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
8917
8918         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
8919         try to remove a parent directory if the child couldn't be removed
8920         (except for the first rmdir, which could fail because the child
8921         doesn't exist).  Problem reported by Jeff Blaine in
8922         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
8923
8924 2007-03-28  Bruno Haible  <bruno@clisp.org>
8925
8926         * lib/striconveh.c (utf8conv_carefully): New function.
8927         (mem_cd_iconveh_internal): Invoke it.
8928
8929 2007-03-28  Bruno Haible  <bruno@clisp.org>
8930
8931         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
8932         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
8933         input.
8934         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
8935         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
8936         unistr/u8-uctomb.
8937
8938 2007-03-28  Bruno Haible  <bruno@clisp.org>
8939
8940         * modules/unistr/u8-mbtoucr: New file.
8941         * lib/unistr/u8-mbtoucr.c: New file.
8942         * modules/unistr/u16-mbtoucr: New file.
8943         * lib/unistr/u16-mbtoucr.c: New file.
8944         * modules/unistr/u16-mbtoucr: New file.
8945         * lib/unistr/u16-mbtoucr.c: New file.
8946         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
8947
8948 2007-03-27  Simon Josefsson  <simon@josefsson.org>
8949             Bruno Haible  <bruno@clisp.org>
8950
8951         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
8952         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
8953         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
8954
8955         * m4/stdio_h.m4: Add stubs for vasprintf too.
8956
8957         * modules/stdio: Support vasprintf in sed command.
8958
8959         * modules/vasprintf: Depend on stdio for prototypes.  Remove
8960         vasprintf.h.  Add stdio module indicator.
8961
8962         * lib/stdio_.h: Declare asprintf and vasprintf, based on
8963         vasprintf.h.
8964
8965         * lib/vasprintf.h: File removed.
8966
8967         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
8968         * lib/vasprintf.c: Ditto.
8969         * lib/xvasprintf.c: Ditto.
8970         * tests/test-vasprintf-posix.c: Ditto.
8971         * tests/test-vasprintf.c: Ditto.
8972
8973 2007-03-27  Bruno Haible  <bruno@clisp.org>
8974
8975         Make vasnprintf multithread-safe.
8976         * lib/vasnprintf.c (decimal_point_char): New function.
8977         (VASNPRINTF): Use it.
8978         Suggested by Simon Josefsson.
8979
8980 2007-03-27  Eric Blake  <ebb9@byu.net>
8981
8982         Support sub-second birthtime on cygwin.
8983         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
8984         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
8985         (get_stat_birthtime): Also work with st_birthtim.
8986
8987 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
8988
8989         * lib/stat-time.h (USE_BIRTHTIME): Remove.
8990         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
8991         (get_stat_birthtime_ns): Do not try to use "spare" fields.
8992         (get_stat_birthtime_ns): Simplify compile-time tests.
8993         (get_stat_birthtime): Change the API to look like
8994         get_stat_mtime etc., except return a negative tv_nsec on error.
8995         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
8996         Don't check for "spare" fields.
8997         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
8998         or for struct stat.st_birthtime, as these tests aren't used.
8999         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
9000
9001 2007-03-27  Bruno Haible  <bruno@clisp.org>
9002
9003         * lib/stat-time.h: Include <sys/stat.h>.
9004
9005 2007-03-27  James Youngman  <jay@gnu.org>
9006
9007         * lib/stat-time.h (get_stat_birthtime): New function for
9008           retrieving st_birthtime as provided by UFS2 (hence *BSD).
9009         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
9010           and its variants.
9011         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
9012         * modules/stat-time-test: New file.
9013         * tests/test-stat-time.c: New test, devised by Bruno Haible.
9014
9015 2007-03-26  Bruno Haible  <bruno@clisp.org>
9016
9017         Better support of signalling NaNs.
9018         * lib/atanl.c: Include isnanl.h.
9019         (atanl): Perform test for NaN at the beginning of the function and
9020         through a call to isnanl.
9021         * lib/cosl.c: Include isnanl.h.
9022         (cosl): Perform test for NaN at the beginning of the function and
9023         through a call to isnanl.
9024         * lib/ldexpl.c: Include isnanl.h.
9025         (ldexpl): Perform test for NaN through a call to isnanl.
9026         * lib/logl.c: Include isnanl.h.
9027         (logl): Perform test for NaN at the beginning of the function and
9028         through a call to isnanl.
9029         * lib/sinl.c: Include isnanl.h.
9030         (sinl): Perform test for NaN at the beginning of the function and
9031         through a call to isnanl.
9032         * lib/sqrtl.c: Include isnanl.h.
9033         (sqrtl): Perform test for NaN at the beginning of the function and
9034         through a call to isnanl.
9035         * lib/tanl.c: Include isnanl.h.
9036         (tanl): Perform test for NaN at the beginning of the function and
9037         through a call to isnanl.
9038         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
9039         * modules/mathl (Depends-on): Add isnanl.
9040
9041 2007-03-26  Eric Blake  <ebb9@byu.net>
9042
9043         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
9044         regression in logic sense of previous patch.
9045
9046 2007-03-26  Bruno Haible  <bruno@clisp.org>
9047
9048         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
9049         unportable shell command "if ! ...".
9050         Reported by Ralf Wildenhues.
9051
9052 2007-03-25  Bruno Haible  <bruno@clisp.org>
9053
9054         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
9055         <sysexits.h> file, and only add EX_CONFIG.
9056         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
9057         absolute file name and whether it is sufficient. Substitute also
9058         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
9059         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
9060         ABSOLUTE_SYSEXITS_H into sysexits.h.
9061
9062 2007-03-25  Bruno Haible  <bruno@clisp.org>
9063
9064         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
9065         hints is NULL.
9066
9067 2007-03-25  Bruno Haible  <bruno@clisp.org>
9068
9069         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
9070         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
9071
9072 2007-03-25  Bruno Haible  <bruno@clisp.org>
9073
9074         * lib/vasnprintf.c: Include langinfo.h.
9075         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
9076         multithread-safe.
9077         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
9078         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
9079         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9080         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9081         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9082         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9083         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9084         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
9085         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9086         Reported by Simon Josefsson.
9087
9088 2007-03-25  Bruno Haible  <bruno@clisp.org>
9089
9090         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
9091         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
9092         * modules/vasnprintf (Depends-on): Add stdint.
9093
9094 2007-03-25  Bruno Haible  <bruno@clisp.org>
9095
9096         * modules/fpieee: New file.
9097         * m4/fpieee.m4: New file.
9098         * modules/isnan-nolibm (Depends-on): Add fpieee.
9099         * modules/isnanl-nolibm (Depends-on): Add fpieee.
9100         * modules/isnanl (Depends-on): Add fpieee.
9101
9102 2007-03-25  Bruno Haible  <bruno@clisp.org>
9103
9104         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
9105
9106 2007-03-25  Bruno Haible  <bruno@clisp.org>
9107
9108         Avoid test failures on IRIX 6.5.
9109         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
9110         (main): Use it.
9111         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
9112         macros.
9113         (main): Use them.
9114
9115 2007-03-25  Bruno Haible  <bruno@clisp.org>
9116
9117         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
9118         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
9119         exists but doesn't work.
9120         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
9121         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
9122         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
9123         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
9124
9125 2007-03-25  Bruno Haible  <bruno@clisp.org>
9126
9127         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
9128         returns inf. Needed on IRIX 6.5.
9129
9130 2007-03-25  Bruno Haible  <bruno@clisp.org>
9131
9132         * tests/test-frexpl.c: Include isnanl-nolibm.h.
9133         (main): Use isnanl instead of x != x idiom.
9134         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
9135
9136         * tests/test-frexp.c: Include isnan.h.
9137         (main): Use isnan instead of x != x idiom.
9138         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
9139
9140 2007-03-25  Bruno Haible  <bruno@clisp.org>
9141
9142         * tests/test-frexp.c (NaN): New function/macro.
9143         (main): Use it instead of 0.0 / 0.0.
9144         * tests/test-isnan.c (NaN): New function/macro.
9145         (main): Use it instead of 0.0 / 0.0.
9146         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
9147         (test_function): Use it instead of 0.0 / 0.0.
9148         * tests/test-vasprintf-posix.c (NaN): New function/macro.
9149         (test_function): Use it instead of 0.0 / 0.0.
9150         * tests/test-snprintf-posix.h (NaN): New function/macro.
9151         (test_function): Use it instead of 0.0 / 0.0.
9152         * tests/test-sprintf-posix.h (NaN): New function/macro.
9153         (test_function): Use it instead of 0.0 / 0.0.
9154         * tests/test-fprintf-posix.h (NaN): New function/macro.
9155         (test_function): Use it instead of 0.0 / 0.0.
9156         * tests/test-printf-posix.h (NaN): New function/macro.
9157         (test_function): Use it instead of 0.0 / 0.0.
9158
9159         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
9160
9161 2007-03-25  Bruno Haible  <bruno@clisp.org>
9162
9163         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
9164
9165 2007-03-25  Bruno Haible  <bruno@clisp.org>
9166
9167         * lib/regexec.c (merge_state_with_log): Make static.
9168
9169 2007-03-25  Bruno Haible  <bruno@clisp.org>
9170
9171         * lib/trigl.c (kernel_rem_pio2): Make static.
9172
9173 2007-03-25  Bruno Haible  <bruno@clisp.org>
9174
9175         * lib/sincosl.c (sincosl_table): Make static.
9176
9177 2007-03-25  Bruno Haible  <bruno@clisp.org>
9178
9179         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
9180         if the compiler does not support C99.
9181
9182 2007-03-25  Bruno Haible  <bruno@clisp.org>
9183
9184         * modules/time (Makefile.am): Ensure all rule action lines start with a
9185         tab.
9186
9187 2007-03-24  Bruno Haible  <bruno@clisp.org>
9188
9189         * modules/tsearch-tests: New file.
9190         * tests/test-tsearch.sh: New file.
9191         * tests/test-tsearch.c: New file, mostly copied from glibc.
9192
9193         * modules/search-tests: New file.
9194         * tests/test-search.c: New file.
9195
9196         * modules/search: New file.
9197         * lib/search_.h: New file, incorporating lib/tsearch.h.
9198         * m4/search_h.m4: New file.
9199         * lib/tsearch.h: Remove file.
9200         * lib/tsearch.c: Include search.h instead of tsearch.h.
9201         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
9202         HAVE_TSEARCH.
9203         * modules/tsearch (Files): Remove lib/tsearch.h.
9204         (Depends-on): Add search.
9205         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
9206         (Include): Change tsearch.h into search.h.
9207
9208 2007-03-24  Bruno Haible  <bruno@clisp.org>
9209
9210         * modules/fpucw: New file.
9211         * lib/fpucw.h: New file.
9212         * lib/frexp.c: Include fpucw.h.
9213         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
9214         (FUNC): Use them.
9215         * lib/printf-frexp.c: Include fpucw.h.
9216         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
9217         (FUNC): Use them.
9218         * lib/vasnprintf.c: Include fpucw.h.
9219         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
9220         'long double' calculations.
9221         * tests/test-frexpl.c: Include fpucw.h.
9222         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
9223         * tests/test-printf-frexpl.c: Include fpucw.h.
9224         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
9225         * modules/frexpl (Depends-on): Add fpucw.
9226         * modules/printf-frexpl (Depends-on): Likewise.
9227         * modules/fprintf-posix (Depends-on): Likewise.
9228         * modules/snprintf-posix (Depends-on): Likewise.
9229         * modules/sprintf-posix (Depends-on): Likewise.
9230         * modules/vasnprintf-posix (Depends-on): Likewise.
9231         * modules/vasprintf-posix (Depends-on): Likewise.
9232         * modules/vfprintf-posix (Depends-on): Likewise.
9233         * modules/vsnprintf-posix (Depends-on): Likewise.
9234         * modules/vsprintf-posix (Depends-on): Likewise.
9235         * modules/frexpl-tests (Depends-on): Likewise.
9236         * modules/printf-frexpl-tests (Depends-on): Likewise.
9237
9238 2007-03-24  Bruno Haible  <bruno@clisp.org>
9239
9240         * lib/float+.h: New file.
9241         * lib/isnan.c: Include float+.h.
9242         (SIZE): New macro.
9243         (FUNC): Compare only SIZE bytes of the value.
9244         * lib/vasnprintf.c: Include float+.h.
9245         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
9246         SIZEOF_LDBL or SIZEOF_DBL bytes.
9247         * modules/isnan-nolibm (Files): Add lib/float+.h.
9248         * modules/isnanl-nolibm (Files): Add lib/float+.h.
9249         * modules/isnanl (Files): Add lib/float+.h.
9250         * modules/vasnprintf (Files): Add lib/float+.h.
9251
9252 2007-03-24  Bruno Haible  <bruno@clisp.org>
9253
9254         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
9255         include isnanl-nolibm.h.
9256
9257 2007-03-24  Bruno Haible  <bruno@clisp.org>
9258
9259         * tests/test-read-file.c (main): Don't produce spurious output for
9260         expected situations. Make the test fail if it encountered unexpected
9261         results.
9262
9263 2007-03-24  Bruno Haible  <bruno@clisp.org>
9264
9265         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
9266         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
9267
9268 2007-03-24  Bruno Haible  <bruno@clisp.org>
9269
9270         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
9271
9272 2007-03-24  Bruno Haible  <bruno@clisp.org>
9273
9274         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
9275         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
9276
9277         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
9278         * modules/utf8-ucs4: Turn into a symbolic link to module
9279         unistr/u8-mbtouc.
9280
9281         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
9282         utf8-ucs4-unsafe.
9283         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
9284         unistr/u8-mbtouc-unsafe.
9285
9286         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
9287         * modules/utf16-ucs4: Turn into a symbolic link to module
9288         unistr/u16-mbtouc.
9289
9290         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
9291         utf16-ucs4-unsafe.
9292         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
9293         unistr/u16-mbtouc-unsafe.
9294
9295         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
9296         * modules/ucs4-utf8: Turn into a symbolic link to module
9297         unistr/u8-ubtomb.
9298
9299         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
9300         * modules/ucs4-utf16: Turn into a symbolic link to module
9301         unistr/u16-ubtomb.
9302
9303 2007-03-24  Bruno Haible  <bruno@clisp.org>
9304
9305         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
9306         Enable the function only if HAVE_INLINE.
9307         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
9308         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
9309         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
9310         Enable the function only if HAVE_INLINE.
9311         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
9312         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
9313         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
9314         Enable the function only if HAVE_INLINE.
9315         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
9316         Enable the function only if HAVE_INLINE.
9317         * modules/utf8-ucs4: Update.
9318         * modules/utf8-ucs4-unsafe: Update.
9319         * modules/utf16-ucs4: Update.
9320         * modules/utf16-ucs4-unsafe: Update.
9321         * modules/ucs4-utf8: Update.
9322         * modules/ucs4-utf16: Update.
9323
9324 2007-03-24  Bruno Haible  <bruno@clisp.org>
9325
9326         * lib/utf8-ucs4.h: Remove file.
9327         * lib/utf8-ucs4-unsafe.h: Remove file.
9328         * lib/utf16-ucs4.h: Remove file.
9329         * lib/utf16-ucs4-unsafe.h: Remove file.
9330         * lib/ucs4-utf8.h: Remove file.
9331         * lib/ucs4-utf16.h: Remove file.
9332         * lib/unistr.h: Include their previous contents.
9333         * m4/utf-ucs4.m4: Remove file.
9334         * m4/ucs4-utf.m4: Remove file.
9335         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
9336         (Depends-on): Add unistr/base.
9337         (configure.ac): Remove gl_UTF_UCS4.
9338         (Makefile.am): Update.
9339         (Include): Change to unistr.h.
9340         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
9341         (Depends-on): Add unistr/base.
9342         (configure.ac): Remove gl_UTF_UCS4.
9343         (Makefile.am): Update.
9344         (Include): Change to unistr.h.
9345         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
9346         (Depends-on): Add unistr/base.
9347         (configure.ac): Remove gl_UTF_UCS4.
9348         (Makefile.am): Update.
9349         (Include): Change to unistr.h.
9350         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
9351         (Depends-on): Add unistr/base.
9352         (configure.ac): Remove gl_UTF_UCS4.
9353         (Makefile.am): Update.
9354         (Include): Change to unistr.h.
9355         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
9356         (Depends-on): Add unistr/base.
9357         (configure.ac): Remove gl_UCS4_UTF.
9358         (Makefile.am): Update.
9359         (Include): Change to unistr.h.
9360         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
9361         (Depends-on): Add unistr/base.
9362         (configure.ac): Remove gl_UCS4_UTF.
9363         (Makefile.am): Update.
9364         (Include): Change to unistr.h.
9365         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
9366         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
9367         utf8-ucs4-unsafe.h.
9368         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
9369         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
9370         utf16-ucs4-unsafe.h.
9371         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
9372         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
9373         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
9374         * lib/unistr/u8-strchr.c: Likewise.
9375         * lib/unistr/u8-strrchr.c: Likewise.
9376         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
9377         * lib/unistr/u16-strchr.c: Likewise.
9378         * lib/unistr/u16-strrchr.c: Likewise.
9379         * lib/striconveh.c: Update.
9380         * lib/linebreak.c: Update.
9381
9382 2007-03-24  Bruno Haible  <bruno@clisp.org>
9383
9384         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
9385         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
9386
9387 2007-03-22  Bruno Haible  <bruno@clisp.org>
9388
9389         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
9390
9391 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
9392
9393         * MODULES.html.sh (File system functions): New module write-any-file.
9394         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
9395         * m4/write-any-file.m4: New files.
9396
9397 2007-03-23  Eric Blake  <ebb9@byu.net>
9398
9399         * gnulib-tool: Rearrange space-tab sequences, since some editors
9400         like to eat them.
9401
9402 2007-03-23  Eric Blake  <ebb9@byu.net>
9403
9404         * lib/version-etc.c (version_etc_va): Update license wording to
9405         be more concise.  Recommended by Richard Stallman.
9406
9407 2007-03-22  Bruno Haible  <bruno@clisp.org>
9408
9409         * lib/poll.c (MSG_PEEK): New fallback definition.
9410
9411 2007-03-22  Bruno Haible  <bruno@clisp.org>
9412
9413         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
9414         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
9415         (main): Update.
9416         Fixes a compilation error on BeOS.
9417
9418 2007-03-22  Bruno Haible  <bruno@clisp.org>
9419
9420         * modules/frexpl-tests: New file.
9421         * tests/test-frexpl.c: New file.
9422
9423         * modules/frexpl: New file.
9424         * m4/frexpl.m4: New file.
9425         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
9426         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
9427         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
9428         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
9429         (Depends-on): Add frexpl. Remove isnanl-nolibm.
9430         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
9431
9432 2007-03-22  Bruno Haible  <bruno@clisp.org>
9433
9434         * lib/frexpl.c: Share code with lib/frexp.c.
9435         * modules/mathl (Files): Add lib/frexp.c.
9436         (Depends-on): Add isnanl-nolibm.
9437
9438 2007-03-22  Bruno Haible  <bruno@clisp.org>
9439
9440         * modules/printf-frexp (Files): Add m4/frexp.m4.
9441         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
9442         only if the found frexp function actually works.
9443
9444 2007-03-22  Bruno Haible  <bruno@clisp.org>
9445
9446         * lib/frexp.c: Remove older implementation that uses divisions.
9447
9448 2007-03-21  Bruno Haible  <bruno@clisp.org>
9449
9450         * modules/frexp-tests: New file.
9451         * tests/test-frexp.c: New file.
9452
9453         * modules/frexp: New file.
9454         * lib/frexp.c: New file.
9455         * m4/frexp.m4: New file.
9456         * lib/math_.h (frexp): New declaration.
9457         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
9458         REPLACE_FREXP.
9459         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
9460
9461 2007-03-21  Bruno Haible  <bruno@clisp.org>
9462
9463         * modules/isnanl-tests: New file.
9464         * tests/test-isnanl.c: New file.
9465
9466         * modules/isnanl: New file.
9467         * lib/isnanl.h: New file.
9468         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
9469         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
9470         gl_FUNC_ISNANL_WORKS.
9471         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
9472         New macros.
9473
9474 2007-03-21  Bruno Haible  <bruno@clisp.org>
9475
9476         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
9477         lib/isnanl.h.
9478         (Include): Update.
9479         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
9480         * lib/vasnprintf.c: Update.
9481         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
9482         tests/test-isnanl.h, remove tests/test-isnanl.c.
9483         (Makefile.am): Update.
9484         * tests/test-isnanl-nolibm.c: New file.
9485         * tests/test-isnanl.h: New file.
9486         * tests/test-isnanl.c: Remove file.
9487
9488 2007-03-21  Jim Meyering  <jim@meyering.net>
9489
9490         When trying to open ".", treat ESTALE like EACCES.
9491         * lib/savewd.c (savewd_save): Resort to forking not just upon
9492         failure with EACCES, but also when errno is ESTALE.
9493
9494 2007-03-20  Bruno Haible  <bruno@clisp.org>
9495
9496         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
9497         Needed on AIX 5.1. Reported by Matthew Woehlke.
9498
9499 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9500
9501         Suggestions by Bruno Haible:
9502         * lib/acl-internal.h: Include "gettext.h" rather than rolling
9503         our own.
9504         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
9505         * modules/acl (Depends-on): Add gettext.
9506
9507 2007-03-19  Bruno Haible  <bruno@clisp.org>
9508
9509         * modules/iconvme: Remove file.
9510         * lib/iconvme.h: Remove file.
9511         * lib/iconvme.c: Remove file.
9512         * m4/iconvme.m4: Remove file.
9513
9514 2007-03-19  Bruno Haible  <bruno@clisp.org>
9515
9516         * doc/relocatable-maint.texi: Break long shell script line.
9517         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
9518
9519 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9520
9521         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
9522         handle file_has_acl.
9523         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
9524         * lib/acl.c: Move header inclusions and related macro defns into
9525         lib/acl-internal.h.
9526         (S_ISLNK): Remove defn, since that's now done for us.
9527         (file_has_acl): Move to lib/file-has-acl.c.
9528         Call acl_trivial if available.  This is the crucial part of the fix.
9529         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
9530         shared within the library.  Rewrite a bit, partly to make it compatible
9531         with the GNU coding style.
9532         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
9533         Remove unnecessary double-quotes.
9534         Don't test for acl_to_text; the build will catch that.
9535         Replace acl_entries if it doesn't exist and it is needed.
9536         Check for -lsec and acl_trivial (as used on Solaris 10).
9537         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
9538         lib/file-has-acl.c.
9539         (Depends-on): Add sys_stat, for S_ISLNK.
9540
9541 2007-03-19  Ben Pfaff  <blp@gnu.org>
9542
9543         * doc/gnulib.texi: Fix typos.
9544         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
9545
9546 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9547
9548         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
9549         If size is zero here, buf must be zero.
9550
9551 2007-03-19  Simon Josefsson  <simon@josefsson.org>
9552
9553         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
9554         <bruno@clisp.org>.
9555
9556 2007-03-18  Bruno Haible  <bruno@clisp.org>
9557
9558         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
9559         Suggested by Eric Blake.
9560
9561 2007-03-18  Ben Pfaff  <blp@gnu.org>
9562
9563         * doc/relocatable.texi: Recommend using as prefix a directory
9564         that does not exist and will never be created.  Based on
9565         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
9566         and others.
9567
9568 2007-03-17  Bruno Haible  <bruno@clisp.org>
9569
9570         * lib/fchownat.c: Include lchown.h.
9571
9572 2007-03-17  Bruno Haible  <bruno@clisp.org>
9573
9574         Fix endless loop when the given allocated size was > INT_MAX.
9575         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
9576         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
9577         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
9578         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
9579         * lib/sprintf.c (sprintf): Likewise.
9580
9581 2007-03-17  Bruno Haible  <bruno@clisp.org>
9582
9583         * tests/test-argp-2.sh (func_compare): Output a context diff.
9584
9585 2007-03-17  Bruno Haible  <bruno@clisp.org>
9586
9587         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
9588         locale's decimal-point character.
9589
9590 2007-03-17  Bruno Haible  <bruno@clisp.org>
9591
9592         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
9593         before comparing it. Needed because on some platforms (e.g. x86) a
9594         'long double' occupies less bytes than sizeof (long double).
9595
9596 2007-03-17  Bruno Haible  <bruno@clisp.org>
9597
9598         * tests/test-crc.c (main): Make printf statements 64-bit clean.
9599         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
9600         * tests/test-getaddrinfo.c (simple): Likewise.
9601         * tests/test-read-file.c (main): Likewise.
9602
9603 2007-03-17  Bruno Haible  <bruno@clisp.org>
9604
9605         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
9606
9607 2007-03-17  Bruno Haible  <bruno@clisp.org>
9608
9609         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
9610         unused variable.
9611
9612 2007-03-17  Bruno Haible  <bruno@clisp.org>
9613
9614         * tests/test-c-strcasecmp.c: Include c-strcase.h.
9615         * tests/test-c-strncasecmp.c: Likewise.
9616
9617 2007-03-17  Bruno Haible  <bruno@clisp.org>
9618
9619         * modules/stdlib (Depends-on): Add unistd.
9620         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
9621         Needed for MacOS X 10.3.
9622
9623 2007-03-17  Bruno Haible  <bruno@clisp.org>
9624
9625         * lib/unistr/u-strdup.h: Include <stdlib.h>.
9626
9627 2007-03-17  Bruno Haible  <bruno@clisp.org>
9628
9629         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
9630
9631 2007-03-17  Bruno Haible  <bruno@clisp.org>
9632
9633         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
9634         to reflect files copied from gnulib (with or without modifications).
9635         Suggested by Jim Meyering.
9636
9637 2007-03-17  Eric Blake  <ebb9@byu.net>
9638
9639         * NEWS: Document stdlib change from 2007-02-18.
9640
9641 2007-03-17  Jim Meyering  <jim@meyering.net>
9642
9643         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
9644         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
9645         someone uses a name containing shell meta-characters.
9646         Reported by Alfred M. Szmidt.
9647
9648         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
9649
9650 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
9651
9652         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
9653         and copy gettext configuration files only if configure.ac contains
9654         a use of AM_GNU_GETTEXT_VERSION.
9655
9656 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
9657
9658         * build-aux/bootstrap (gnulib_name): New variable.
9659         (gnulib_tool_options): Use it.
9660
9661 2007-03-13  Simon Josefsson  <simon@josefsson.org>
9662
9663         * tests/test-des.c: Use new namespace.
9664
9665 2007-03-15  Bruno Haible  <bruno@clisp.org>
9666
9667         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
9668         Reported by James Youngman <jay@gnu.org>.
9669
9670 2007-03-15  Bruno Haible  <bruno@clisp.org>
9671
9672         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
9673         declared prototype. Needed with cc on OSF/1 5.1.
9674
9675 2007-03-15  Bruno Haible  <bruno@clisp.org>
9676
9677         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
9678         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
9679         (struct gl_list_implementation): Add dispose_fn argument to the
9680         'create_empty', 'create' methods.
9681         (struct gl_list_impl_base): Add field 'dispose_fn'.
9682         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
9683         argument.
9684         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
9685         dispose_fn argument.
9686         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
9687         dispose_fn on the dropped values.
9688         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
9689         dispose_fn argument.
9690         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
9691         dropped values.
9692         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
9693         (gl_tree_remove_node): Call dispose_fn on the dropped value.
9694         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
9695         (gl_tree_remove_node): Call dispose_fn on the dropped value.
9696         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
9697         argument.
9698         (gl_tree_list_free): Call dispose_fn on the dropped values.
9699         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
9700         the dropped values.
9701         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
9702         Add dispose_fn argument.
9703         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
9704         Call dispose_fn on the dropped values.
9705         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
9706         Add dispose_fn argument.
9707         (gl_sublist_create): Initialize the 'dispose_fn' field.
9708         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
9709         * tests/test-array_list.c (main): Update.
9710         * tests/test-carray_list.c (main): Update.
9711         * tests/test-avltree_list.c (main): Update.
9712         * tests/test-rbtree_list.c (main): Update.
9713         * tests/test-avltreehash_list.c (main): Update.
9714         * tests/test-rbtreehash_list.c (main): Update.
9715         * tests/test-linked_list.c (main): Update.
9716         * tests/test-linkedhash_list.c (main): Update.
9717         * tests/test-array_oset.c (main): Update.
9718
9719 2007-03-15  Bruno Haible  <bruno@clisp.org>
9720
9721         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
9722         (gl_oset_create_empty): Add dispose_fn argument.
9723         (struct gl_oset_implementation): Add dispose_fn argument to
9724         'create_empty' method.
9725         (struct gl_oset_impl_base): Add dispose_fn field.
9726         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
9727         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
9728         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
9729         values.
9730         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
9731         (gl_tree_oset_free): Call dispose_fn on the dropped values.
9732         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
9733         dropped value.
9734         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
9735         dropped value.
9736         * tests/test-array_oset.c (main): Update.
9737         * tests/test-avltree_oset.c (main): Update.
9738         * tests/test-rbtree_oset.c (main): Update.
9739         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
9740
9741 2007-03-13  Bruno Haible  <bruno@clisp.org>
9742
9743         * tests/test-stdbool.c (i): Update after last patch.
9744
9745 2007-03-12  Bruno Haible  <bruno@clisp.org>
9746
9747         * lib/quotearg.c: Include <wctype.h> early, before the definition of
9748         the iswprint macro. Needed on Solaris 2.5.1.
9749
9750 2007-03-12  Bruno Haible  <bruno@clisp.org>
9751
9752         * tests/test-printf-frexp.c (main): Declare x as volatile.
9753
9754 2007-03-12  Simon Josefsson  <simon@josefsson.org>
9755
9756         * doc/gnulib.texi (Build robot for gnulib): New section.
9757
9758 2007-03-12  Jim Meyering  <jim@meyering.net>
9759
9760         * build-aux/bootstrap: New file.
9761         * build-aux/bootstrap.conf: New file, from coreutils.
9762
9763 2007-03-11  Bruno Haible  <bruno@clisp.org>
9764
9765         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
9766
9767 2007-03-12  Simon Josefsson  <simon@josefsson.org>
9768
9769         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
9770         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
9771         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
9772
9773 2007-03-11  Bruno Haible  <bruno@clisp.org>
9774
9775         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
9776         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
9777
9778 2007-03-11  Bruno Haible  <bruno@clisp.org>
9779
9780         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
9781         formula. Needed for SunPRO C 5.0.
9782
9783 2007-03-11  Bruno Haible  <bruno@clisp.org>
9784
9785         * modules/long-options (Depends-on): Add getopt.
9786
9787 2007-03-11  Bruno Haible  <bruno@clisp.org>
9788
9789         * modules/modechange (Depends-on): Add stdbool.
9790
9791 2007-03-11  Bruno Haible  <bruno@clisp.org>
9792
9793         * modules/i-ring (Depends-on): Add stdbool.
9794
9795 2007-03-11  Bruno Haible  <bruno@clisp.org>
9796
9797         * modules/gc-des (Depends-on): Add stdbool.
9798
9799 2007-03-11  Bruno Haible  <bruno@clisp.org>
9800
9801         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
9802
9803 2007-03-11  Bruno Haible  <bruno@clisp.org>
9804
9805         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
9806
9807 2007-03-11  Bruno Haible  <bruno@clisp.org>
9808
9809         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
9810
9811 2007-03-11  Bruno Haible  <bruno@clisp.org>
9812
9813         * lib/vasnprintf.c (sprintf): Undefine.
9814
9815 2007-03-11  Bruno Haible  <bruno@clisp.org>
9816
9817         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
9818         initializers in SunPRO C and Compaq C compilers.
9819
9820 2007-03-11  Bruno Haible  <bruno@clisp.org>
9821
9822         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
9823         decrementing code ANSI C compliant.
9824
9825 2007-03-11  Bruno Haible  <bruno@clisp.org>
9826
9827         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
9828         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
9829
9830 2007-03-11  Bruno Haible  <bruno@clisp.org>
9831
9832         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
9833         <stdbool.h> substitute doesn't pass.
9834
9835 2007-03-11  Bruno Haible  <bruno@clisp.org>
9836
9837         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
9838
9839 2007-03-11  Bruno Haible  <bruno@clisp.org>
9840
9841         * gnulib-tool (func_create_megatestdir): Create also an autobuild
9842         script, for submission to autobuild.josefsson.org.
9843
9844 2007-03-10  Bruno Haible  <bruno@clisp.org>
9845
9846         * modules/canonicalize-lgpl-tests: New file.
9847         * tests/test-canonicalize-lgpl.sh: New file.
9848         * tests/test-canonicalize-lgpl.c: New file.
9849
9850         * modules/c-strcase-tests: New file.
9851         * tests/test-c-strcase.sh: New file.
9852         * tests/test-c-strcasecmp.c: New file.
9853         * tests/test-c-strncasecmp.c: New file.
9854
9855         * modules/atexit-tests: New file.
9856         * tests/test-atexit.sh: New file.
9857         * tests/test-atexit.c: New file.
9858
9859 2007-03-10  Bruno Haible  <bruno@clisp.org>
9860
9861         * tests/test-binary-io.sh: Use temporary filenames that are not so
9862         likely to clash with those of other tests (in a parallel make).
9863         * tests/test-binary-io.c: Likewise.
9864
9865 2007-03-10  Bruno Haible  <bruno@clisp.org>
9866
9867         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
9868         fallback; use #error instead.
9869         Suggested by Simon Josefsson.
9870
9871 2007-03-10  Bruno Haible  <bruno@clisp.org>
9872
9873         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
9874         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
9875         first and the last.
9876
9877 2007-03-10  Bruno Haible  <bruno@clisp.org>
9878
9879         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
9880
9881 2007-03-10  Bruno Haible  <bruno@clisp.org>
9882
9883         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
9884         "make distcheck".
9885         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
9886         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
9887         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
9888
9889 2007-03-10  Bruno Haible  <bruno@clisp.org>
9890
9891         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
9892         variable.
9893         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
9894         variable.
9895
9896 2007-03-09  Eric Blake  <ebb9@byu.net>
9897         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
9898
9899         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
9900         types are not being provided by gnulib.
9901         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
9902         types are supported.
9903
9904 2007-03-10  Bruno Haible  <bruno@clisp.org>
9905
9906         * lib/stdio_.h (__attribute__): New macro.
9907         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
9908         vsprintf): Specify __attribute__ __format__ for GCC.
9909         Suggested by Eric Blake.
9910
9911 2007-03-09  Bruno Haible  <bruno@clisp.org>
9912
9913         * modules/printf-posix-tests: New file.
9914         * tests/test-printf-posix.sh: New file.
9915         * tests/test-printf-posix.c: New file.
9916
9917         * modules/printf-posix: New file.
9918         * lib/printf.c: New file.
9919         * m4/printf-posix-rpl.m4: New file.
9920         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
9921         REPLACE_PRINTF.
9922         * lib/stdio_.h (printf): New declaration.
9923         (format, __format__, ____printf____, ____scanf____, ____strftime____,
9924         ____strfmon____): New macros.
9925         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
9926         REPLACE_PRINTF.
9927
9928 2007-03-09  Bruno Haible  <bruno@clisp.org>
9929
9930         * tests/test-vasnprintf-posix2.sh: New file.
9931         * tests/test-vasnprintf-posix2.c: New file.
9932         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
9933         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
9934         (Makefile.am): Activate test-vasnprintf-posix2.sh.
9935
9936         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
9937         a locale dependent decimal point, rather than always '.'.
9938
9939 2007-03-09  Eric Blake  <ebb9@byu.net>
9940
9941         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
9942         spite of platforms like Tandem/NSK that define it to -1.
9943
9944 2007-03-08  Bruno Haible  <bruno@clisp.org>
9945
9946         * modules/vprintf-posix-tests: New file.
9947         * tests/test-vprintf-posix.sh: New file.
9948         * tests/test-vprintf-posix.c: New file.
9949         * tests/test-printf-posix.h: New file.
9950
9951         * modules/vprintf-posix: New file.
9952         * lib/vprintf.c: New file.
9953         * m4/vprintf-posix.m4: New file.
9954         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
9955         REPLACE_VPRINTF.
9956         * lib/stdio_.h (vprintf): New declaration.
9957         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
9958         REPLACE_VPRINTF.
9959
9960 2007-03-08  Bruno Haible  <bruno@clisp.org>
9961
9962         * modules/fprintf-posix-tests: New file.
9963         * tests/test-fprintf-posix.sh: New file.
9964         * tests/test-fprintf-posix.c: New file.
9965
9966         * modules/fprintf-posix: New file.
9967         * lib/fprintf.c: New file.
9968         * m4/fprintf-posix.m4: New file.
9969         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
9970         REPLACE_FPRINTF.
9971         * lib/stdio_.h (fprintf): New declaration.
9972         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
9973         REPLACE_FPRINTF.
9974
9975 2007-03-08  Bruno Haible  <bruno@clisp.org>
9976
9977         * modules/vfprintf-posix-tests: New file.
9978         * tests/test-vfprintf-posix.sh: New file.
9979         * tests/test-vfprintf-posix.c: New file.
9980         * tests/test-fprintf-posix.h: New file.
9981         * tests/test-fprintf-posix.out: New file.
9982
9983         * modules/vfprintf-posix: New file.
9984         * lib/vfprintf.c: New file.
9985         * m4/vfprintf-posix.m4: New file.
9986         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
9987         REPLACE_VFPRINTF.
9988         * lib/stdio_.h (vfprintf): New declaration.
9989         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
9990         REPLACE_VFPRINTF.
9991
9992 2007-03-08  Bruno Haible  <bruno@clisp.org>
9993
9994         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
9995
9996 2007-03-08  Bruno Haible  <bruno@clisp.org>
9997
9998         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
9999         instead of 'expr' invocations.
10000         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10001         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10002         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10003         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10004         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10005         Suggested by Paul Eggert.
10006
10007 2007-03-08  Bruno Haible  <bruno@clisp.org>
10008
10009         * modules/fseterr-tests: New file.
10010         * tests/test-fseterr.c: New file.
10011
10012         * modules/fseterr: New file.
10013         * lib/fseterr.h: New file.
10014         * lib/fseterr.c: New file.
10015
10016 2007-03-08  Bruno Haible  <bruno@clisp.org>
10017
10018         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
10019         * lib/getopt_.h: Likewise.
10020         * lib/mbswidth.h: Likewise.
10021         * lib/setenv.h: Likewise.
10022         * lib/vasnprintf.h: Likewise.
10023         * lib/vasprintf.h: Likewise.
10024         * lib/verror.h: Likewise.
10025         * lib/xsetenv.h: Likewise.
10026         * lib/xvasprintf.h: Likewise.
10027
10028 2007-03-08  Jim Meyering  <jim@meyering.net>
10029
10030         * users.txt: Add parted.
10031
10032         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
10033
10034 2007-03-07  Bruno Haible  <bruno@clisp.org>
10035
10036         * m4/printf.m4: Make the shell script snippets copy&pastable.
10037
10038 2007-03-02  Bruno Haible  <bruno@clisp.org>
10039
10040         * lib/netinet_in_.h: New file.
10041         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
10042         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
10043         * modules/netinet_in (Files): Add lib/netinet_in_.h.
10044         (Depends-on): Add absolute-header.
10045         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
10046         into netinet/in.h.
10047
10048 2007-03-03  Bruno Haible  <bruno@clisp.org>
10049
10050         * lib/sys_select_.h: New file.
10051         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
10052         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
10053         * modules/sys_select (Files): Add lib/sys_select_.h.
10054         (Depends-on): Add absolute-header.
10055         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
10056         into sys/select.h.
10057
10058 2007-03-02  Bruno Haible  <bruno@clisp.org>
10059
10060         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
10061         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
10062         values.
10063         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
10064         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
10065         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
10066         * modules/sys_socket (Depends-on): Add absolute-header.
10067         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
10068         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
10069         (Include): Remove requirement of inclusion of <sys/types.h>.
10070
10071 2007-03-02  Bruno Haible  <bruno@clisp.org>
10072
10073         * lib/byteswap_.h (bswap_32): Fix formula.
10074
10075 2007-03-06  Bruno Haible  <bruno@clisp.org>
10076
10077         * modules/sprintf-posix-tests: New file.
10078         * tests/test-sprintf-posix.c: New file.
10079
10080         * modules/sprintf-posix: New file.
10081         * lib/sprintf.c: New file.
10082         * m4/sprintf-posix.m4: New file.
10083         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
10084         REPLACE_SPRINTF.
10085         * lib/stdio_.h (sprintf): New declaration.
10086         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
10087         REPLACE_SPRINTF.
10088
10089 2007-03-06  Bruno Haible  <bruno@clisp.org>
10090
10091         * modules/vsprintf-posix-tests: New file.
10092         * tests/test-vsprintf-posix.c: New file.
10093         * tests/test-sprintf-posix.h: New file.
10094
10095         * modules/vsprintf-posix: New file.
10096         * lib/vsprintf.c: New file.
10097         * m4/vsprintf-posix.m4: New file.
10098         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
10099         REPLACE_VSPRINTF.
10100         * lib/stdio_.h (vsprintf): New declaration.
10101         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
10102         REPLACE_VSPRINTF.
10103
10104 2007-03-06  Bruno Haible  <bruno@clisp.org>
10105
10106         * modules/vsnprintf (Depend-on): Remove minmax.
10107
10108 2007-03-06  Bruno Haible  <bruno@clisp.org>
10109
10110         * modules/snprintf-posix-tests: New file.
10111         * tests/test-snprintf-posix.c: New file.
10112
10113         * modules/snprintf-posix: New file.
10114         * m4/snprintf-posix.m4: New file.
10115         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
10116         gl_FUNC_SNPRINTF.
10117         (gl_FUNC_SNPRINTF): Invoke it.
10118         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
10119         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
10120         is set.
10121         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
10122
10123 2007-03-06  Bruno Haible  <bruno@clisp.org>
10124
10125         * modules/vsnprintf-posix-tests: New file.
10126         * tests/test-vsnprintf-posix.c: New file.
10127         * tests/test-snprintf-posix.h: New file.
10128
10129         * modules/vsnprintf-posix: New file.
10130         * m4/vsnprintf-posix.m4: New file.
10131         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
10132         gl_FUNC_VSNPRINTF.
10133         (gl_FUNC_VSNPRINTF): Invoke it.
10134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
10135         * lib/stdio_.h (vsnprintf): Define as a replacement if
10136         REPLACE_VSNPRINTF is set.
10137         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
10138
10139 2007-03-06  Bruno Haible  <bruno@clisp.org>
10140
10141         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
10142         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
10143
10144 2007-03-06  Bruno Haible  <bruno@clisp.org>
10145
10146         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
10147         (asinl): Declare also if HAVE_DECL_ASINL is set.
10148         (atanl): Declare also if HAVE_DECL_ATANL is set.
10149         (ceill): Declare also if HAVE_DECL_CEILL is set.
10150         (cosl): Declare also if HAVE_DECL_COSL is set.
10151         (expl): Declare also if HAVE_DECL_EXPL is set.
10152         (floorl): Declare also if HAVE_DECL_FLOORL is set.
10153         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
10154         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
10155         (logl): Declare also if HAVE_DECL_LOGL is set.
10156         (sinl): Declare also if HAVE_DECL_SINL is set.
10157         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
10158         (tanl): Declare also if HAVE_DECL_TANL is set.
10159         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
10160         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
10161         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
10162         declaration of frexpl, ldexpl.
10163         * modules/printf-frexpl (Depends-on): Add math.
10164         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
10165
10166 2007-03-05  Bruno Haible  <bruno@clisp.org>
10167
10168         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
10169         frexpl and ldexpl are declared.
10170         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
10171
10172 2007-03-05  Bruno Haible  <bruno@clisp.org>
10173
10174         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
10175         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
10176
10177 2007-03-05  Bruno Haible  <bruno@clisp.org>
10178
10179         * lib/stdio_.h: Include <stddef.h>.
10180
10181 2007-03-05  Bruno Haible  <bruno@clisp.org>
10182
10183         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
10184
10185 2007-03-05  Bruno Haible  <bruno@clisp.org>
10186
10187         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
10188         NetBSD 4, from Ralf Wildenhues.
10189
10190 2007-03-04  Bruno Haible  <bruno@clisp.org>
10191
10192         * lib/vasprintf.h: Update #if logic for the case when the functions
10193         exist but are overridden.
10194
10195 2007-03-04  Bruno Haible  <bruno@clisp.org>
10196
10197         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
10198         implementations: glibc-2.4 and MacOS X 10.3.
10199         * tests/test-vasnprintf-posix.c (test_function): Test also the case
10200         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
10201         * tests/test-vasprintf-posix.c (test_function): Likewise.
10202
10203 2007-03-04  Bruno Haible  <bruno@clisp.org>
10204
10205         * modules/vasprintf-posix-tests: New file.
10206         * tests/test-vasprintf-posix.c: New file.
10207
10208         * modules/vasprintf-posix: New file.
10209         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
10210         defined.
10211         * m4/vasprintf-posix.m4: New file.
10212         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
10213         gl_FUNC_VASPRINTF.
10214         (gl_FUNC_VASPRINTF): Invoke it.
10215         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
10216         here.
10217         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
10218
10219 2007-03-04  Bruno Haible  <bruno@clisp.org>
10220
10221         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
10222         REPLACE_GETTIMEOFDAY.
10223         * modules/sys_time (Makefile.am): Likewise.
10224         * m4/sys_time_h.m4: Likewise.
10225         * m4/gettimeofday.m4: Likewise.
10226
10227 2007-03-04  Bruno Haible  <bruno@clisp.org>
10228
10229         * modules/vasnprintf-posix-tests: New file.
10230         * tests/test-vasnprintf-posix.c: New file.
10231
10232         * modules/vasnprintf-posix: New file.
10233         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
10234         printf-frexpl.h.
10235         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
10236         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
10237         REPLACE_VASNPRINTF is defined.
10238         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
10239         gl_FUNC_VASNPRINTF.
10240         (gl_FUNC_VASNPRINTF): Invoke it.
10241         * m4/vasnprintf-posix.m4: New file.
10242         * m4/printf.m4: New file.
10243
10244 2007-03-04  Bruno Haible  <bruno@clisp.org>
10245
10246         Compile progreloc.c only if --enable-relocatable is specified.
10247         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
10248         if --enable-relocatable was specified.
10249         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
10250         lib_SOURCES.
10251
10252 2007-03-04  Jim Meyering  <jim@meyering.net>
10253
10254         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
10255         Use it consistently, rather than enumerating errno constants.
10256
10257 2007-03-04  Bruno Haible  <bruno@clisp.org>
10258
10259         * modules/xvasprintf-tests: New file.
10260         * tests/test-xvasprintf.c: New file.
10261
10262         * modules/vasprintf-tests: New file.
10263         * tests/test-vasprintf.c: New file.
10264
10265         * modules/vasnprintf-tests: New file.
10266         * tests/test-vasnprintf.c: New file.
10267
10268         * modules/vsnprintf-tests: New file.
10269         * tests/test-vsnprintf.c: New file.
10270
10271         * modules/snprintf-tests: New file.
10272         * tests/test-snprintf.c: New file.
10273
10274 2007-03-04  Bruno Haible  <bruno@clisp.org>
10275
10276         Compile relocatable.c only if --enable-relocatable is specified.
10277         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
10278         gl_RELOCATABLE_LIBRARY.
10279         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
10280         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
10281         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
10282         gl_RELOCATABLE_LIBRARY.
10283         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
10284         (Makefile.am): Remove lib_SOURCES.
10285         * modules/relocatable-lib-lgpl (configure.ac): Invoke
10286         gl_RELOCATABLE_LIBRARY.
10287         (Makefile.am): Remove lib_SOURCES.
10288         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
10289         always.
10290         * modules/relocatable-prog-wrapper (configure.ac): Invoke
10291         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
10292
10293 2007-03-04  Bruno Haible  <bruno@clisp.org>
10294
10295         * modules/argmatch-tests: New file.
10296         * tests/test-argmatch.c: New file.
10297
10298         * tests/test-allocsa.c (main): Halve the number of loop runs.
10299
10300         * modules/alloca-opt-tests: New file.
10301         * tests/test-alloca-opt.c: New file.
10302
10303 2007-03-04  Jim Meyering  <jim@meyering.net>
10304
10305         Work around difference between Linux ACLs and Solaris 10 ZFS.
10306         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
10307         for EINVAL.
10308
10309 2007-03-03  Bruno Haible  <bruno@clisp.org>
10310
10311         * modules/relocatable-prog (Depends-on): Add back progreloc's
10312         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
10313
10314 2007-03-03  Bruno Haible  <bruno@clisp.org>
10315
10316         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
10317         * modules/relocatable-lib: New file.
10318
10319 2007-03-03  Bruno Haible  <bruno@clisp.org>
10320
10321         * modules/relocatable-prog: Renamed from modules/relocatable.
10322         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
10323
10324 2007-03-03  Bruno Haible  <bruno@clisp.org>
10325
10326         * modules/relocatable-script (Files): Add doc/relocatable.texi,
10327         m4/relocatable-lib.m4.
10328         (Depends-on): Remove 'relocatable'.
10329         (configure.ac): Add gl_RELOCATABLE_NOP.
10330
10331 2007-03-03  Bruno Haible  <bruno@clisp.org>
10332
10333         * modules/relocatable-prog-wrapper: New file.
10334         * modules/relocatable (Depends-on): Add it. Remove all other
10335         dependencies except progname.
10336         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
10337
10338         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
10339         (gl_FUNC_STRERROR): Nop.
10340         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
10341
10342         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
10343         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
10344
10345         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
10346         (gl_FUNC_READLINK): Update.
10347
10348         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
10349
10350 2007-03-03  Bruno Haible  <bruno@clisp.org>
10351
10352         * lib/xreadlink.c: Include <unistd.h> unconditionally.
10353         * modules/xreadlink (Depends-on): Add unistd.
10354         * modules/xreadlink-with-size (Depends-on): Likewise.
10355
10356 2007-03-03  Bruno Haible  <bruno@clisp.org>
10357
10358         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
10359         extracted from gt_FUNC_SETENV.
10360         (gt_FUNC_SETENV): Remove macro.
10361         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
10362         remove gt_FUNC_SETENV.
10363
10364 2007-03-03  Bruno Haible  <bruno@clisp.org>
10365
10366         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
10367         ENABLE_RELOCATABLE here.
10368         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
10369
10370 2007-03-03  Bruno Haible  <bruno@clisp.org>
10371
10372         * modules/rbtreehash-list-tests (Depends-on): Add progname.
10373         * tests/test-rbtreehash_list.c: Include progname.h.
10374         (main): Call set_program_name.
10375
10376         * modules/rbtree-oset-tests (Depends-on): Add progname.
10377         * tests/test-rbtree_oset.c: Include progname.h.
10378         (main): Call set_program_name.
10379
10380         * modules/rbtree-list-tests (Depends-on): Add progname.
10381         * tests/test-rbtree_list.c: Include progname.h.
10382         (main): Call set_program_name.
10383
10384         * modules/linked-list-tests (Depends-on): Add progname.
10385         * tests/test-linked_list.c: Include progname.h.
10386         (main): Call set_program_name.
10387
10388 2007-03-03  Bruno Haible  <bruno@clisp.org>
10389
10390         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
10391         All uses of __restrict changed to _Restrict_.
10392         * lib/glob_.h (__restrict): Remove macro.
10393
10394 2007-03-02  Bruno Haible  <bruno@clisp.org>
10395
10396         * modules/gettext (configure.ac): Require gettext infrastructure
10397         from version 0.16.1.
10398
10399 2007-03-02  Bruno Haible  <bruno@clisp.org>
10400
10401         * modules/linkedhash-list-tests (Depends-on): Add progname.
10402         * tests/test-linkedhash_list.c: Include progname.h.
10403         (main): Call set_program_name.
10404
10405         * modules/carray-list-tests (Depends-on): Add progname.
10406         * tests/test-carray_list.c: Include progname.h.
10407         (main): Call set_program_name.
10408
10409         * modules/avltreehash-list-tests (Depends-on): Add progname.
10410         * tests/test-avltreehash_list.c: Include progname.h.
10411         (main): Call set_program_name.
10412
10413         * modules/avltree-oset-tests (Depends-on): Add progname.
10414         * tests/test-avltree_oset.c: Include progname.h.
10415         (main): Call set_program_name.
10416
10417         * modules/avltree-list-tests (Depends-on): Add progname.
10418         * tests/test-avltree_list.c: Include progname.h.
10419         (main): Call set_program_name.
10420
10421         * modules/array-oset-tests (Depends-on): Add progname.
10422         * tests/test-array_oset.c: Include progname.h.
10423         (main): Call set_program_name.
10424
10425         * modules/array-list-tests (Depends-on): Add progname.
10426         * tests/test-array_list.c: Include progname.h.
10427         (main): Call set_program_name.
10428
10429         * modules/argp-tests (Depends-on): Add progname.
10430         * tests/test-argp.c: Include argp.h first. Include progname.h.
10431         (main): Call set_program_name.
10432
10433 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
10434
10435         * doc/gnulib-tool.texi (Initial import): Reword description of
10436         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
10437         limited effect even if defined after the first system include.
10438
10439 2007-03-01  Bruno Haible  <bruno@clisp.org>
10440
10441         * build-aux/config.libpath: Update to libtool-1.5.22.
10442         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10443
10444 2007-03-01  Bruno Haible  <bruno@clisp.org>
10445
10446         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
10447         foo_CFLAGS.
10448         Reported by Ralf Wildenhues.
10449
10450 2007-03-01  Bruno Haible  <bruno@clisp.org>
10451
10452         * build-aux/install-reloc: Remove object files left over by some
10453         compilers.
10454         Reported by Ralf Wildenhues.
10455
10456 2007-03-01  Bruno Haible  <bruno@clisp.org>
10457
10458         * build-aux/install-reloc: Break long lines.
10459
10460 2007-03-01  Bruno Haible  <bruno@clisp.org>
10461
10462         * doc/relocatable.texi: Document that it may not work on OpenBSD.
10463         Reported by Ralf Wildenhues.
10464
10465 2007-03-01  Bruno Haible  <bruno@clisp.org>
10466
10467         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
10468         include ordering constraints.
10469
10470 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
10471
10472         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
10473         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
10474         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
10475         as another example.
10476         * lib/time_.h: Fix misspelling.
10477         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
10478         Require gl_HEADER_TIME_H_DEFAULTS.
10479         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
10480         * m4/time_r.m4 (gl_TIME_R): Likewise.
10481         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
10482
10483 2007-03-01  Bruno Haible  <bruno@clisp.org>
10484
10485         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
10486         * m4/utimens.m4 (gl_UTIMENS): Likewise.
10487
10488 2007-03-01  Jim Meyering  <jim@meyering.net>
10489
10490         * modules/xreadlink (Maintainer): Add my name.
10491         * modules/xreadlink-with-size (Depends-on): Alphabetize.
10492
10493 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
10494             Bruno Haible  <bruno@clisp.org>
10495
10496         * build-aux/install-reloc: Compile also c-ctype.c.
10497         * build-aux/relocatable.sh.in: New file.
10498         * doc/relocatable.texi: New file.
10499         * doc/relocatable-maint.texi: New file.
10500         * doc/gnulib.texi: Include relocatable-maint.texi.
10501         * lib/progreloc.c: Include unistd.h unconditionally.
10502         * lib/relocwrapper.c: Include unistd.h unconditionally.
10503         Include c-ctype.h.
10504         (add_dotbin): Use c_tolower.
10505         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
10506         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
10507         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
10508         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
10509         to m4/relocatable-lib.m4.
10510         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
10511         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
10512         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
10513         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
10514         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
10515         * modules/relocatable: New file.
10516         * modules/relocatable-lib: New file.
10517         * modules/relocatable-script: New file.
10518
10519 2007-02-28  Bruno Haible  <bruno@clisp.org>
10520
10521         Import --enable-relocatable infrastructure.
10522         * build-aux/config.libpath: New file, from GNU gettext.
10523         * build-aux/install-reloc: New file, from GNU gettext.
10524         * build-aux/reloc-ldflags: New file, from GNU gettext.
10525         * lib/relocatable.h: New file, from GNU gettext.
10526         * lib/relocatable.c: New file, from GNU gettext.
10527         * lib/relocwrapper.c: New file, from GNU gettext.
10528         * m4/relocatable.m4: New file, from GNU gettext.
10529
10530 2007-02-28  Bruno Haible  <bruno@clisp.org>
10531
10532         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
10533
10534         * modules/xreadlink: New file, from GNU gettext with modifications.
10535         * lib/xreadlink.c: New file, from GNU gettext.
10536         * lib/xreadlink.h: Add comments.
10537         (xreadlink): New declaration.
10538
10539         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
10540         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
10541         lib/xreadlink-with-size.c.
10542         (configure.ac): Remove gl_XREADLINK invocation.
10543         (Makefile.am): Augment lib_SOURCES.
10544         * m4/xreadlink.m4: Remove file.
10545         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
10546         (xreadlink_with_size): Renamed from xreadink.
10547         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
10548         * modules/canonicalize (Depends-on): Replace xreadlink with
10549         xreadlink-with-size.
10550         * lib/canonicalize.c (canonicalize_filename_mode): Update.
10551
10552 2007-02-25  Jim Meyering  <jim@meyering.net>
10553
10554         * build-aux/announce-gen: When complaining about excess arguments,
10555         list them.
10556
10557 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
10558
10559         * README: Document signed integer overflow situation more
10560         accurately.
10561
10562 2007-02-25  Bruno Haible  <bruno@clisp.org>
10563
10564         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
10565         'a' or 'A' conversion.
10566
10567 2007-02-25  Bruno Haible  <bruno@clisp.org>
10568
10569         * modules/filename: Renamed from modules/pathname.
10570         (Files): Replace lib/pathname.h with lib/filename.h. Replace
10571         lib/concatpath.c with lib/concat-filename.c.
10572         (Makefile.am): Update.
10573         (Include): Replace pathname.h with filename.h.
10574         * lib/filename.h: Renamed from lib/pathname.h.
10575         (concatenated_filename): Renamed from concatenated_pathname.
10576         * lib/concat-filename.c: Renamed from lib/concatpath.c.
10577         (concatenated_filename): Renamed from concatenated_pathname.
10578         * lib/findprog.c: Include filename.h instead of pathname.h.
10579         (find_in_path): Update.
10580         * lib/javacomp.c: Include filename.h instead of pathname.h.
10581         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
10582         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
10583         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
10584         is_oldgcj_14_13_usable, is_javac_usable): Update.
10585         * lib/javaexec.c: Include filename.h instead of pathname.h.
10586         (execute_java_class): Update.
10587         * modules/findprog: Update.
10588         * modules/javacomp: Update.
10589         * modules/javaexec: Update.
10590         * MODULES.html.sh (File system functions): Add 'filename', remove
10591         'pathname'.
10592
10593 2007-02-25  Bruno Haible  <bruno@clisp.org>
10594
10595         * modules/printf-frexpl-tests: New file.
10596         * tests/test-printf-frexpl.c: New file.
10597
10598         * modules/printf-frexpl: New file.
10599         * lib/printf-frexpl.h: New file.
10600         * lib/printf-frexpl.c: New file.
10601         * m4/printf-frexpl.m4: New file.
10602
10603 2007-02-25  Bruno Haible  <bruno@clisp.org>
10604
10605         * modules/printf-frexp-tests: New file.
10606         * tests/test-printf-frexp.c: New file.
10607
10608         * modules/printf-frexp: New file.
10609         * lib/printf-frexp.h: New file.
10610         * lib/printf-frexp.c: New file.
10611         * m4/printf-frexp.m4: New file.
10612
10613 2007-02-25  Bruno Haible  <bruno@clisp.org>
10614
10615         Assume automake >= 1.10 for the tests.
10616         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
10617         * modules/arctwo-tests: Likewise.
10618         * modules/argp-tests: Likewise.
10619         * modules/avltree-list-tests: Likewise.
10620         * modules/avltree-oset-tests: Likewise.
10621         * modules/avltreehash-list-tests: Likewise.
10622         * modules/carray-list-tests: Likewise.
10623         * modules/crc-tests: Likewise.
10624         * modules/des-tests: Likewise.
10625         * modules/gc-arcfour-tests: Likewise.
10626         * modules/gc-arctwo-tests: Likewise.
10627         * modules/gc-des-tests: Likewise.
10628         * modules/gc-hmac-md5-tests: Likewise.
10629         * modules/gc-hmac-sha1-tests: Likewise.
10630         * modules/gc-md2-tests: Likewise.
10631         * modules/gc-md4-tests: Likewise.
10632         * modules/gc-md5-tests: Likewise.
10633         * modules/gc-pbkdf2-sha1-tests: Likewise.
10634         * modules/gc-rijndael-tests: Likewise.
10635         * modules/gc-sha1-tests: Likewise.
10636         * modules/gc-tests: Likewise.
10637         * modules/getaddrinfo-tests: Likewise.
10638         * modules/hmac-md5-tests: Likewise.
10639         * modules/hmac-sha1-tests: Likewise.
10640         * modules/linked-list-tests: Likewise.
10641         * modules/linkedhash-list-tests: Likewise.
10642         * modules/lock-tests: Likewise.
10643         * modules/md2-tests: Likewise.
10644         * modules/md4-tests: Likewise.
10645         * modules/md5-tests: Likewise.
10646         * modules/rbtree-list-tests: Likewise.
10647         * modules/rbtree-oset-tests: Likewise.
10648         * modules/rbtreehash-list-tests: Likewise.
10649         * modules/read-file-tests: Likewise.
10650         * modules/rijndael-tests: Likewise.
10651         * modules/stdint-tests: Likewise.
10652         * modules/tls-tests: Likewise.
10653
10654 2007-02-24  Bruno Haible  <bruno@clisp.org>
10655
10656         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
10657         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
10658         function; instead check whether isnan with a double argument links.
10659         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
10660         function; instead check whether isnan with a 'long double' argument
10661         links.
10662         Reported by Eric Blake <ebb9@byu.net>.
10663
10664 2007-02-24  Bruno Haible  <bruno@clisp.org>
10665
10666         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
10667         defined.
10668         * lib/isnanl.c: Remove all code. Just include isnan.c.
10669         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
10670
10671 2007-02-25  Jim Meyering  <jim@meyering.net>
10672
10673         Avoid conflicting types for 'unsetenv' on FreeBSD.
10674         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
10675         conflicting with FreeBSD's (5.0 and 6.1) function declaration
10676         in stdlib.h.
10677
10678 2007-02-24  Bruno Haible  <bruno@clisp.org>
10679
10680         * modules/isnanl-nolibm-tests: New file.
10681         * tests/test-isnanl.c: New file.
10682
10683         * modules/isnanl-nolibm: New file.
10684         * lib/isnanl.h: New file.
10685         * lib/isnanl.c: New file.
10686         * m4/isnanl.m4: New file.
10687
10688 2007-02-24  Bruno Haible  <bruno@clisp.org>
10689
10690         * modules/isnan-nolibm-tests: New file.
10691         * tests/test-isnan.c: New file.
10692
10693         * modules/isnan-nolibm: New file.
10694         * lib/isnan.h: New file.
10695         * lib/isnan.c: New file.
10696         * m4/isnan.m4: New file.
10697
10698 2007-02-24  Bruno Haible  <bruno@clisp.org>
10699
10700         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
10701         assume that an exponent fits in 20 bits.
10702
10703 2007-02-24  Jim Meyering  <jim@meyering.net>
10704
10705         * m4/regex.m4: Update the description of the configure-time option,
10706         --without-included-regex, to state accurately what the defaults are,
10707         and perhaps to give people an idea why using this option is risky.
10708
10709 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
10710
10711         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
10712         loops on small arguments.  This attempts to avoid the problem
10713         Bruno Haible reported for AIX 4.3.2 in
10714         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
10715
10716 2007-02-23  Bruno Haible  <bruno@clisp.org>
10717
10718         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
10719         Needed for help2man.
10720
10721 2007-02-23  Karl Berry  <karl@gnu.org>
10722
10723         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
10724         exists, foo.h should be cvs-ignored, not committed.
10725
10726 2007-02-23  Eric Blake  <ebb9@byu.net>
10727
10728         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
10729         * lib/stat-time.h (includes): Likewise.
10730         * lib/utimecmp.c (includes): Likewise.
10731         * lib/utimens.h (includes): Likewise.
10732         * lib/getdate.y (includes): Also include "timespec.h" for use
10733         internal to the module.
10734         * modules/utimens (Depends-on): Revert yesterday's patch.
10735         * modules/nanosleep (Depends-on): Add missing dependency.
10736
10737 2007-02-22  Bruno Haible  <bruno@clisp.org>
10738
10739         * lib/glob.c: Don't include getlogin_r.h.
10740
10741 2007-02-22  Jim Meyering  <jim@meyering.net>
10742
10743         * modules/utimens (Depends-on): Add timespec, required for
10744         utimens.h's inclusion of timespec.h.
10745
10746 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
10747
10748         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
10749         long unreadable paths in GNU/Linux.  Problem reported by Andreas
10750         Schwab in
10751         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
10752         I'll try to think of a better way to fix the Solaris problem.
10753
10754         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
10755         like glibc; on Solaris 10, it fails with errno == EINVAL.
10756         POSIX says the behavior is unspecified if the first argument is NULL,
10757         so play it safe and never pass NULL to the system getcwd.
10758
10759 2007-02-21  Jim Meyering  <jim@meyering.net>
10760
10761         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
10762         of gettimeofday.  It would conflict with the one now always
10763         provided via sys_time_.h.  Reported by Matthew Woehlke, as
10764         an IRIX 6.5 build failure.
10765
10766 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
10767
10768         Minor fixups to port to Solaris 10 with Sun C 5.8.
10769         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
10770         * modules/getcwd (Depends-on): Add dirfd.
10771         * lib/putenv.c (putenv): #undef it.
10772         (rpl_putenv): New decl.
10773         (malloc, free): Include <stdlib.h> rather than prototyping separately.
10774
10775 2007-02-20  Bruno Haible  <bruno@clisp.org>
10776
10777         * modules/stdio-tests: New file.
10778         * tests/test-stdio.c: New file.
10779
10780         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
10781         (Depends-on): Add stdio.
10782         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
10783         (Include): Use <stdio.h> instead of vsnprintf.h.
10784         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
10785         HAVE_DECL_VSNPRINTF.
10786         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
10787
10788         * modules/snprintf (Files): Remove lib/snprintf.h.
10789         (Depends-on): Add stdio.
10790         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
10791         (Include): Use <stdio.h> instead of snprintf.h.
10792         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
10793         HAVE_DECL_SNPRINTF.
10794         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
10795         * lib/getaddrinfo.c: Likewise.
10796
10797         * modules/stdio: New file.
10798         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
10799         * lib/snprintf.h: Remove file.
10800         * lib/vsnprintf.h: Remove file.
10801         * lib/.cppi-disable: Remove snprintf.h.
10802         * m4/stdio_h.m4: New file.
10803         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
10804
10805 2007-02-20  Jim Meyering  <jim@meyering.net>
10806
10807         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
10808         used by e.g., mingw.  From Bruno Haible.
10809
10810 2007-02-19  Bruno Haible  <bruno@clisp.org>
10811
10812         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
10813         warnings.
10814         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10815
10816 2007-02-19  Bruno Haible  <bruno@clisp.org>
10817
10818         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
10819         from mingw users.
10820
10821 2007-02-19  Bruno Haible  <bruno@clisp.org>
10822
10823         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
10824         warnings.
10825         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
10826
10827 2007-02-19  Jim Meyering  <jim@meyering.net>
10828
10829         Don't use FD after a successful "fdopendir (fd)".
10830         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
10831         Reset it by calling dirfd on the just-obtained DIR*.
10832
10833         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
10834         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
10835
10836 2007-02-18  Bruno Haible  <bruno@clisp.org>
10837
10838         * lib/readlink.c: Include <unistd.h>.
10839         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
10840         HAVE_READLINK.
10841         * modules/readlink (Depends-on): Add unistd.
10842         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10843         (Include): Add <unistd.h>.
10844
10845         * lib/getlogin_r.h: Remove file.
10846         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
10847         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
10848         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
10849         HAVE_DECL_GETLOGIN_R.
10850         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
10851         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10852         (Include): Use <unistd.h> instead of getlogin_r.h.
10853
10854         * lib/getcwd.h: Remove file.
10855         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
10856         * lib/xgetcwd.c: Likewise.
10857         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
10858         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
10859         * modules/getcwd (Files): Remove lib/getcwd.h.
10860         (Depends-on): Add unistd.
10861         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10862         (Include): Use <unistd.h> instad of getcwd.h.
10863
10864         * lib/ftruncate.c: Include <unistd.h> first.
10865         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
10866         Set HAVE_FTRUNCATE.
10867         * modules/ftruncate (Depends-on): Add unistd.
10868         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10869
10870         * lib/fchdir.c: Include <unistd.h> first.
10871         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
10872         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
10873         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
10874         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10875         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
10876
10877         * lib/dup2.c: Include <unistd.h> first.
10878         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
10879         HAVE_DUP2.
10880         * modules/dup2 (Depends-on): Add unistd.
10881         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10882
10883         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
10884         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
10885         REPLACE_CHOWN. Don't define chown as a macro here.
10886         * modules/chown (Depends-on): Add unistd.
10887         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10888
10889         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
10890         Add definition for GL_LINK_WARNING.
10891         (chown, dup2): New declarations.
10892         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
10893         link warning.
10894         (ftruncate): New declaration.
10895         (getcwd): New declaration, taken from old getcwd.h.
10896         (getlogin_r): New declaration, taken from old getlogin_r.h.
10897         (readlink): New declaration.
10898         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
10899         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
10900         (gl_PREREQ_UNISTD): Remove macro.
10901         (gl_UNISTD_MODULE_INDICATOR): New macro.
10902         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
10903         many new variables. Don't set UNISTD_H.
10904         * modules/unistd (Description): Change.
10905         (Depends-on): Add link-warning.
10906         (configure.ac): Update.
10907         (Makefile.am): Create unistd.h always. Substitute many new variables
10908         into it.
10909
10910 2007-02-18  Bruno Haible  <bruno@clisp.org>
10911
10912         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
10913         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
10914         HAVE_GETSUBOPT.
10915         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
10916         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
10917         * lib/getsubopt.h: Remove file.
10918         * modules/getsubopt (Files): Remove lib/getsubopt.h.
10919         (Depends-on): Add stdlib.
10920         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
10921         (Includes): Use <stdlib.h> instead of getsubopt.h.
10922         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
10923         Set HAVE_GETSUBOPT.
10924         * lib/getsubopt.c: Don't include getsubopt.h.
10925
10926 2007-02-18  Bruno Haible  <bruno@clisp.org>
10927
10928         * modules/fchdir (Depends-on): Add dup2.
10929
10930 2007-02-18  Bruno Haible  <bruno@clisp.org>
10931
10932         * lib/stdlib_.h: Handle glibc's special invocation convention
10933         specially.
10934
10935 2007-02-18  Bruno Haible  <bruno@clisp.org>
10936
10937         * modules/stdlib-tests: New file.
10938         * tests/test-stdlib.c: New file.
10939
10940         * modules/mkstemp (Files): Remove lib/mkstemp.h.
10941         (Depends-on): Add stdlib.
10942         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
10943         (Includes): Use <stdlib.h> instead of mkstemp.h.
10944         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
10945         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
10946         * lib/mkstemp.c: Don't include mkstemp.h.
10947         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
10948         * lib/stdlib--.h: Don't include mkstemp.h.
10949
10950         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
10951         (Depends-on): Add stdlib.
10952         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
10953         (Includes): Use <stdlib.h> instead of mkdtemp.h.
10954         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
10955         HAVE_MKDTEMP.
10956         * lib/mkdtemp.c: Don't include mkdtemp.h.
10957         * lib/clean-temp.c: Don't include mkdtemp.h.
10958
10959         * modules/exit (Files): Remove lib/exit.h.
10960         (Depends-on): Add stdlib.
10961         (Makefile.am): Remove lib_SOURCES.
10962         (Include): Use <stdlib.h> instead of exit.h.
10963         * lib/argmatch.c: Don't include exit.h.
10964         * lib/execute.c: Likewise.
10965         * lib/pagealign_alloc.c: Likewise.
10966         * lib/pipe.c: Likewise.
10967         * lib/wait-process.c: Likewise.
10968         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
10969         * lib/exitfail.c: Likewise.
10970         * lib/savewd.c: Likewise.
10971         * lib/xsetenv.c: Likewise.
10972
10973         * modules/stdlib: New file.
10974         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
10975         and extra comments about mkstemp().
10976         * lib/exit.h: Remove file.
10977         * lib/mkdtemp.h: Remove file.
10978         * lib/mkstemp.h: Remove file.
10979         * m4/stdlib_h.m4: New file.
10980         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
10981
10982 2007-02-18  Bruno Haible  <bruno@clisp.org>
10983
10984         * modules/math-tests: New file.
10985         * tests/test-math.c: New file.
10986
10987         * modules/math: New file.
10988         * modules/mathl (Files): Remove lib/mathl.h.
10989         (Depends-on): Add math.
10990         (Makefile.am): Don't mention mathl.h.
10991         (Include): Use <math.h> instead of mathl.h.
10992         * lib/math_.h: New file.
10993         * lib/mathl.h: Remove file.
10994         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
10995         mathl.h.
10996         * lib/asinl.c: Likewise.
10997         * lib/atanl.c: Likewise.
10998         * lib/ceill.c: Likewise.
10999         * lib/cosl.c: Likewise.
11000         * lib/expl.c: Likewise.
11001         * lib/floorl.c: Likewise.
11002         * lib/frexpl.c: Likewise.
11003         * lib/ldexpl.c: Likewise.
11004         * lib/logl.c: Likewise.
11005         * lib/sincosl.c: Likewise.
11006         * lib/sinl.c: Likewise.
11007         * lib/sqrtl.c: Likewise.
11008         * lib/tanl.c: Likewise.
11009         * lib/trigl.c: Likewise.
11010         * m4/math_h.m4: New file.
11011         * MODULES.html.sh (Mathematics): Add math.
11012
11013 2007-02-17  Bruno Haible  <bruno@clisp.org>
11014
11015         * modules/wctype-tests: New file.
11016         * tests/test-wctype.c: New file.
11017
11018         * modules/wchar-tests: New file.
11019         * tests/test-wchar.c: New file.
11020
11021         * modules/unistd-tests: New file.
11022         * tests/test-unistd.c: New file.
11023
11024         * modules/time-tests: New file.
11025         * tests/test-time.c: New file.
11026
11027         * modules/sysexits-tests: New file.
11028         * tests/test-sysexits.c: New file.
11029
11030         * modules/sys_time-tests: New file.
11031         * tests/test-sys_time.c: New file.
11032
11033         * modules/sys_stat-tests: New file.
11034         * tests/test-sys_stat.c: New file.
11035
11036         * modules/sys_socket-tests: New file.
11037         * tests/test-sys_socket.c: New file.
11038
11039         * modules/sys_select-tests: New file.
11040         * tests/test-sys_select.c: New file.
11041
11042         * modules/string-tests: New file.
11043         * tests/test-string.c: New file.
11044
11045         * modules/stdbool-tests: New file.
11046         * tests/test-stdbool.c: New file.
11047
11048         * modules/netinet_in-tests: New file.
11049         * tests/test-netinet_in.c: New file.
11050
11051         * modules/inttypes-tests: New file.
11052         * tests/test-inttypes.c: New file.
11053
11054         * modules/fcntl-tests: New file.
11055         * tests/test-fcntl.c: New file.
11056
11057         * modules/byteswap-tests: New file.
11058         * tests/test-byteswap.c: New file.
11059
11060         * modules/arpa_inet-tests: New file.
11061         * tests/test-arpa_inet.c: New file.
11062
11063 2007-02-17  Bruno Haible  <bruno@clisp.org>
11064
11065         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
11066         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
11067         if the corresponding module is not enabled. Emit link warnings if
11068         the function is used nevertheless.
11069         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
11070         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
11071         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
11072         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
11073         * modules/inttypes (Depends-on): Add link-warning.
11074         (Makefile.am): Copy the contents of build-aux/link-warning.h into
11075         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
11076         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
11077         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
11078         * modules/imaxdiv (configure.ac): Likewise.
11079         * modules/strtoimax (configure.ac): Likewise.
11080         * modules/strtoumax (configure.ac): Likewise.
11081
11082 2007-02-17  Bruno Haible  <bruno@clisp.org>
11083
11084         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
11085         gl_STRING_MODULE_INDICATOR_DEFAULTS.
11086         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
11087         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
11088
11089 2007-02-17  Bruno Haible  <bruno@clisp.org>
11090
11091         * modules/link-warning: New file.
11092         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
11093         * lib/string_.h (GL_LINK_WARNING): Remove definition.
11094         * modules/string (Depends-on): Add link-warning.
11095         (Makefile.am): Copy the contents of build-aux/link-warning.h into
11096         string.h.
11097         * MODULES.html.sh (Support for building libraries and executables): Add
11098         link-warning.
11099
11100 2007-02-17  Bruno Haible  <bruno@clisp.org>
11101
11102         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
11103         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
11104         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
11105         long lines.
11106
11107 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
11108             Bruno Haible  <bruno@clisp.org>
11109
11110         * modules/tmpfile: New file.
11111         * lib/tmpfile.c: New file.
11112         * m4/tmpfile.m4: New file.
11113         * MODULES.html.sh (func_all_modules): New section "Input/output".
11114
11115 2007-02-15  Bruno Haible  <bruno@clisp.org>
11116
11117         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
11118         (supports_delete_on_close): New function.
11119         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
11120
11121 2007-02-14  Bruno Haible  <bruno@clisp.org>
11122
11123         * modules/mbspcasecmp-tests: New file.
11124         * tests/test-mbspcasecmp.sh: New file.
11125         * tests/test-mbspcasecmp.c: New file.
11126
11127         New module mbspcasecmp.
11128         * modules/mbspcasecmp: New file.
11129         * lib/mbspcasecmp.c: New file.
11130         * lib/string_.h (strncasecmp): Change warning message.
11131         (mbspcasecmp): New declaration.
11132         * m4/mbspcasecmp.m4: New file.
11133         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11134         GNULIB_MBSPCASECMP.
11135         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
11136         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
11137
11138 2007-02-14  Bruno Haible  <bruno@clisp.org>
11139
11140         * modules/mbsncasecmp-tests: New file.
11141         * tests/test-mbsncasecmp.sh: New file.
11142         * tests/test-mbsncasecmp.c: New file.
11143
11144         New module mbsncasecmp.
11145         * modules/mbsncasecmp: New file.
11146         * lib/mbsncasecmp.c: New file.
11147         * lib/string_.h (mbsncasecmp): New declaration.
11148         * m4/mbsncasecmp.m4: New file.
11149         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11150         GNULIB_MBSNCASECMP.
11151         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
11152         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
11153
11154 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
11155
11156         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
11157         Verify that it doesn't overlap with our flags.
11158         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
11159         do not have the desired effect in multibyte locales; instead, use
11160         mbscasecmp.
11161         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
11162         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
11163         we don't require GNU fnmatch ourselves (if our users require it, they
11164         should do so explicitly).
11165
11166         Fix regex code so it doesn't rely on strcasecmp.
11167         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
11168         Otherwise, include gnulib's langinfo.h.
11169         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
11170         undesirable behavior in non-C locales.  Instead, rely on localecharset.
11171         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
11172         * modules/regex (FILES): Remove m4/codeset.m4.
11173         (Depends-on): Add localcharset.  Remove strcase.
11174
11175 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11176
11177         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
11178         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
11179
11180 2007-02-13  Bruno Haible  <bruno@clisp.org>
11181
11182         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
11183         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11184
11185 2007-02-12  Bruno Haible  <bruno@clisp.org>
11186
11187         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
11188         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
11189         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
11190         time warning rather than a link error.
11191
11192 2007-02-12  Bruno Haible  <bruno@clisp.org>
11193
11194         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
11195         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
11196         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11197
11198 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
11199
11200         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
11201         args, not 2.
11202
11203 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
11204
11205         New module 'time', so that apps can include <time.h> as per
11206         POSIX and GNU instead of separate include files like time_r.h
11207         and timegm.h.  This implementation tries out a simpler approach
11208         for replacing decls in standard include files (as compared to
11209         the string module), somewhat as an experiment.
11210
11211         * config/srclist.txt: Comment out mktime.c for now.
11212         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
11213         since it doesn't apply any more.  Use generic wording instead.
11214         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
11215         'time'.
11216         * lib/time_.h, m4/time_h.m4, modules/time: New files.
11217         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
11218         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
11219         Don't include <sys/types.h>; no longer needed since we assume C89.
11220         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
11221         * lib/strftime.c: Likewise.
11222         * lib/time_r.c: Likewise.
11223         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
11224         * lib/nanosleep.c: Include <time.h> first, to check interface.
11225         * lib/strptime.c: Likewise.
11226         * lib/time_r.c: Likewise.
11227         * lib/timegm.c: Likewise.
11228         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
11229         needed.
11230         * lib/timegm.c: Don't include timegm.h; no longer needed.
11231         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
11232         time.h now handles any problems in that area.
11233         (struct timespec, nanosleep): Remove; time.h now arranges for these.
11234         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
11235         that time.h defines struct timespec.
11236         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
11237         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
11238         handles that.
11239         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
11240         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
11241         needed.  Set REPLACE_LOCALTIME.
11242         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
11243         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
11244         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
11245         nanosleep; time_h.m4 now does that.  Don't require
11246         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
11247         module handles this now.
11248         * modules/getdate (Depends-on): Remove timespec.  Add time.
11249         * modules/nanosleep (Depends-on): Likewise.
11250         * modules/stat-time (Depends-on): Likewise.
11251         * modules/nanosleep (Include): Include time.h, not timespec.h.
11252         * modules/strptime (Files): Remove lib/strptime.h.
11253         (Depends-on): Add extensions, time.
11254         (Include): Include time.h, not strptime.h.
11255         * modules/time_r (Files): Remove lib/time_r.h.
11256         (Depends-on): Add time.
11257         (Include): Include time.h, not time_r.h.
11258         * modules/timegm: Likewise.
11259         * modules/timespec (Description): Now does timespec-related decls
11260         of our own, instead of struct timespec itself.
11261         (Depends-on): Add time; remove extensions.
11262         (Maintainer): Add self.
11263         * modules/utimecmp (Depends-on): Add time; remove timespec.
11264         * modules/utimens (Depends-on): Likewise.
11265         * modules/xnanosleep (Depends-on): Likewise.
11266
11267 2007-02-11  Bruno Haible  <bruno@clisp.org>
11268
11269         * lib/c-strstr.c: Include allocsa.h.
11270         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
11271         * lib/c-strcasestr.c: Include allocsa.h.
11272         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
11273         * lib/strcasestr.c: Include allocsa.h.
11274         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
11275         * lib/mbsstr.c: Include allocsa.h.
11276         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
11277         allocsa/freesa instead of malloc/free.
11278         * lib/mbscasestr.c: Include allocsa.h.
11279         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
11280         allocsa/freesa instead of malloc/free.
11281         * modules/c-strstr (Depends-on): Add allocsa.
11282         * modules/c-strcasestr (Depends-on): Likewise.
11283         * modules/strcasestr (Depends-on): Likewise.
11284         * modules/mbsstr (Depends-on): Likewise.
11285         * modules/mbscasestr (Depends-on): Likewise.
11286
11287 2007-02-11  Bruno Haible  <bruno@clisp.org>
11288
11289         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
11290
11291         * modules/mbsspn-tests: New file.
11292         * tests/test-mbsspn.sh: New file.
11293         * tests/test-mbsspn.c: New file.
11294
11295 2007-02-11  Bruno Haible  <bruno@clisp.org>
11296
11297         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
11298
11299         * modules/mbspbrk-tests: New file.
11300         * tests/test-mbspbrk.sh: New file.
11301         * tests/test-mbspbrk.c: New file.
11302
11303 2007-02-11  Bruno Haible  <bruno@clisp.org>
11304
11305         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
11306         unneeded cast.
11307
11308         * modules/mbscspn-tests: New file.
11309         * tests/test-mbscspn.sh: New file.
11310         * tests/test-mbscspn.c: New file.
11311
11312 2007-02-11  Bruno Haible  <bruno@clisp.org>
11313
11314         * modules/mbscasecmp-tests: New file.
11315         * tests/test-mbscasecmp.sh: New file.
11316         * tests/test-mbscasecmp.c: New file.
11317
11318 2007-02-11  Bruno Haible  <bruno@clisp.org>
11319
11320         Ensure O(n) worst-case complexity of mbscasestr.
11321         * lib/mbscasestr.c: Include stdbool.h.
11322         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
11323         functions.
11324         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
11325         the bookkeeping indicates that it's worth it.
11326         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
11327
11328         * modules/mbscasestr-tests: New file.
11329         * tests/test-mbscasestr1.c: New file.
11330         * tests/test-mbscasestr2.sh: New file.
11331         * tests/test-mbscasestr2.c: New file.
11332         * tests/test-mbscasestr3.sh: New file.
11333         * tests/test-mbscasestr3.c: New file.
11334         * tests/test-mbscasestr4.sh: New file.
11335         * tests/test-mbscasestr4.c: New file.
11336         * m4/locale-tr.m4: New file.
11337
11338 2007-02-11  Bruno Haible  <bruno@clisp.org>
11339
11340         Ensure O(n) worst-case complexity of mbsstr.
11341         * lib/mbsstr.c: Include stdbool.h.
11342         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
11343         functions.
11344         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
11345         bookkeeping indicates that it's worth it.
11346         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
11347
11348         * modules/mbsstr-tests: New file.
11349         * tests/test-mbsstr1.c: New file.
11350         * tests/test-mbsstr2.sh: New file.
11351         * tests/test-mbsstr2.c: New file.
11352         * tests/test-mbsstr3.sh: New file.
11353         * tests/test-mbsstr3.c: New file.
11354         * m4/locale-fr.m4: New file.
11355
11356 2007-02-11  Bruno Haible  <bruno@clisp.org>
11357
11358         * lib/mbsrchr.c (mbsrchr): Fix bug.
11359
11360         * modules/mbsrchr-tests: New file.
11361         * tests/test-mbsrchr.sh: New file.
11362         * tests/test-mbsrchr.c: New file.
11363
11364 2007-02-11  Bruno Haible  <bruno@clisp.org>
11365
11366         * lib/mbschr.c (mbschr): Fix bug.
11367
11368         * modules/mbschr-tests: New file.
11369         * tests/test-mbschr.sh: New file.
11370         * tests/test-mbschr.c: New file.
11371         * m4/locale-zh.m4: New file.
11372
11373 2007-02-11  Bruno Haible  <bruno@clisp.org>
11374
11375         Support for copying multibyte string iterators.
11376         * lib/mbiter.h: Include <string.h>.
11377         (mbiter_multi_copy): New function.
11378         (mbi_copy): New macro.
11379         * lib/mbuiter.h: Include <string.h>.
11380         (mbuiter_multi_copy): New function.
11381         (mbui_copy): New macro.
11382
11383 2007-02-11  Bruno Haible  <bruno@clisp.org>
11384
11385         New module mbslen.
11386         * modules/mbslen: New file.
11387         * lib/mbslen.c: New file.
11388         * lib/string_.h (mbslen): New declaration.
11389         * m4/mbslen.m4: New file.
11390         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11391         GNULIB_MBSLEN.
11392         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
11393         * MODULES.html.sh (Internationalization functions): Add mbslen.
11394
11395 2007-02-11  Bruno Haible  <bruno@clisp.org>
11396
11397         Ensure O(n) worst-case complexity of strcasestr substitute.
11398         * lib/strcasestr.c: Include stdbool.h.
11399         (knuth_morris_pratt): New function.
11400         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
11401         bookkeeping indicates that it's worth it.
11402         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
11403
11404         * modules/strcasestr-tests: New file.
11405         * tests/test-strcasestr.c: New file.
11406
11407 2007-02-11  Bruno Haible  <bruno@clisp.org>
11408
11409         Ensure O(n) worst-case complexity of c_strcasestr.
11410         * lib/c-strcasestr.c: Include stdbool.h, string.h.
11411         (knuth_morris_pratt): New function.
11412         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
11413         the bookkeeping indicates that it's worth it.
11414         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
11415
11416         * modules/c-strcasestr-tests: New file.
11417         * tests/test-c-strcasestr.c: New file.
11418
11419 2007-02-11  Bruno Haible  <bruno@clisp.org>
11420
11421         Ensure O(n) worst-case complexity of c_strstr.
11422         * lib/c-strstr.c: Include stdbool.h, string.h.
11423         (knuth_morris_pratt): New function.
11424         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
11425         bookkeeping indicates that it's worth it.
11426         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
11427
11428         * lib/c-strstr.c: Complete rewrite for maintainability.
11429
11430         * modules/c-strstr-tests: New file.
11431         * tests/test-c-strstr.c: New file.
11432
11433 2007-02-11  Bruno Haible  <bruno@clisp.org>
11434
11435         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
11436         5.2.1 and earlier, whereby \055 was treated just like the range
11437         delimiter '-'.
11438         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
11439
11440 2007-02-08  Bruno Haible  <bruno@clisp.org>
11441
11442         * modules/regex (Depends-on): Add stdbool.
11443         Reported by Dalibor Topic <robilad@kaffe.org>.
11444
11445 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
11446
11447         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
11448         Prefer returning from main to exiting from it.
11449         Remove unnecessary parens after sizeof.
11450
11451 2007-02-05  Bruno Haible  <bruno@clisp.org>
11452
11453         New module mbssep.
11454         * modules/mbssep: New file.
11455         * lib/mbssep.c: New file.
11456         * lib/string_.h (strsep): Add a conditional link warning.
11457         (mbssep): New declaration.
11458         * m4/mbssep.m4: New file.
11459         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11460         GNULIB_MBSSEP.
11461         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
11462         * MODULES.html.sh (Internationalization functions): Add mbssep.
11463
11464 2007-02-05  Bruno Haible  <bruno@clisp.org>
11465
11466         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
11467         Optimize search in case of 1 delimiter.
11468
11469 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
11470
11471         * lib/acl.h: Include sys/types.h before sys/acl.h.
11472
11473 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
11474
11475         Merge upstream fix for glibc bugzilla #3957:
11476
11477         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
11478
11479         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
11480         bit for RE_HAT_LISTS_NOT_NEWLINE.
11481         (build_charclass_op): Remove bogus comment.
11482
11483 2007-02-05  Simon Josefsson  <simon@josefsson.org>
11484
11485         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
11486
11487 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
11488
11489         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
11490         * lib/memmem.c [!defined _LIBC]: Include config.h.
11491
11492 2007-02-04  Bruno Haible  <bruno@clisp.org>
11493
11494         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
11495         warning message.
11496
11497 2007-02-04  Bruno Haible  <bruno@clisp.org>
11498
11499         New module mbstok_r.
11500         * modules/mbstok_r: New file.
11501         * lib/mbstok_r.c: New file.
11502         * lib/string_.h (strtok_r): Change argument names to match the
11503         comments. Add a conditional link warning.
11504         (mbstok_r): New declaration.
11505         * m4/mbstok_r.m4: New file.
11506         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11507         GNULIB_MBSTOK_R.
11508         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
11509         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
11510
11511 2007-02-04  Bruno Haible  <bruno@clisp.org>
11512
11513         New module mbsspn.
11514         * modules/mbsspn: New file.
11515         * lib/mbsspn.c: New file.
11516         * lib/string_.h (strspn): Add a conditional link warning.
11517         (mbsspn): New declaration.
11518         * m4/mbsspn.m4: New file.
11519         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11520         GNULIB_MBSSPN.
11521         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
11522         * MODULES.html.sh (Internationalization functions): Add mbsspn.
11523
11524 2007-02-04  Bruno Haible  <bruno@clisp.org>
11525
11526         New module mbspbrk.
11527         * modules/mbspbrk: New file.
11528         * lib/mbspbrk.c: New file.
11529         * lib/string_.h (strpbrk): Add a conditional link warning.
11530         (mbspbrk): New declaration.
11531         * m4/mbspbrk.m4: New file.
11532         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11533         GNULIB_MBSPBRK.
11534         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
11535         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
11536
11537 2007-02-04  Bruno Haible  <bruno@clisp.org>
11538
11539         New module mbscspn.
11540         * modules/mbscspn: New file.
11541         * lib/mbscspn.c: New file.
11542         * lib/string_.h (strcspn): Add a conditional link warning.
11543         (mbscspn): New declaration.
11544         * m4/mbscspn.m4: New file.
11545         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11546         GNULIB_MBSCSPN.
11547         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
11548         * MODULES.html.sh (Internationalization functions): Add mbscspn.
11549
11550 2007-02-04  Bruno Haible  <bruno@clisp.org>
11551
11552         New module mbscasestr, reduced goal of strcasestr.
11553         * modules/mbscasestr: New file.
11554         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
11555         (mbscasestr): Renamed from strcasestr.
11556         * lib/strcasestr.c: Don't include mbuiter.h.
11557         (strcasestr): Remove support for multibyte locales.
11558         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
11559         Change the conditional link warning.
11560         (mbscasestr): New declaration.
11561         * m4/mbscasestr.m4: New file.
11562         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
11563         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
11564         REPLACE_STRCASESTR.
11565         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
11566         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11567         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
11568         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
11569         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
11570         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
11571         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
11572         (Depends-on): Remove mbuiter.
11573         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
11574
11575 2007-02-04  Bruno Haible  <bruno@clisp.org>
11576
11577         Simplify handling of strncasecmp.
11578         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
11579         the conditional link warning.
11580         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11581         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
11582         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
11583         * modules/strcase (configure.ac): Don't invoke
11584         gl_STRING_MODULE_INDICATOR.
11585         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
11586
11587 2007-02-04  Bruno Haible  <bruno@clisp.org>
11588
11589         New module mbscasecmp, reduced goal of strcasecmp.
11590         * modules/mbscasecmp: New file.
11591         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
11592         (mbscasecmp): Renamed from strcasecmp.
11593         * lib/strcasecmp.c: Don't include mbuiter.h.
11594         (strcasecmp): Remove support for multibyte locales.
11595         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
11596         Change the conditional link warning.
11597         (mbscasecmp): New declaration.
11598         * m4/mbscasecmp.m4: New file.
11599         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
11600         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
11601         REPLACE_STRCASECMP.
11602         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
11603         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11604         GNULIB_MBSCASECMP.
11605         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
11606         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
11607         * modules/strcase (Files): Remove m4/mbrtowc.m4.
11608         (Depends-on): Remove mbuiter.
11609         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
11610
11611 2007-02-04  Bruno Haible  <bruno@clisp.org>
11612
11613         New module mbsstr. Remove module strstr.
11614         * modules/mbsstr: New file.
11615         * modules/strstr: Remove file.
11616         * lib/mbsstr.c: Renamed from lib/strstr.c.
11617         (mbsstr): Renamed from strstr.
11618         * lib/string_.h (strstr): Remove declaration. Change the conditional
11619         link warning.
11620         (mbsstr): New declaration.
11621         * m4/mbsstr.m4: New file.
11622         * m4/strstr.m4: Remove file.
11623         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
11624         REPLACE_STRSTR.
11625         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
11626         Don't initialize GNULIB_STRSTR.
11627         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
11628         substitute GNULIB_STRSTR and REPLACE_STRSTR.
11629         * MODULES.html.sh (Internationalization functions): Add mbsstr.
11630         (Support for systems lacking ANSI C 89): Remove strstr.
11631
11632 2007-02-04  Bruno Haible  <bruno@clisp.org>
11633
11634         New module mbsrchr.
11635         * modules/mbsrchr: New file.
11636         * lib/mbsrchr.c: New file.
11637         * lib/string_.h (strrchr): Add a conditional link warning.
11638         (mbsrchr): New declaration.
11639         * m4/mbsrchr.m4: New file.
11640         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11641         GNULIB_MBSRCHR.
11642         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
11643         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
11644
11645 2007-02-04  Bruno Haible  <bruno@clisp.org>
11646
11647         New module mbschr.
11648         * modules/mbschr: New file.
11649         * lib/mbschr.c: New file.
11650         * lib/string_.h (strchr): Add a conditional link warning.
11651         (mbschr): New declaration.
11652         * m4/mbschr.m4: New file.
11653         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11654         GNULIB_MBSCHR.
11655         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
11656         * MODULES.html.sh (Internationalization functions): Add mbschr.
11657
11658 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
11659
11660         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
11661
11662         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
11663
11664 2007-02-04  Bruno Haible  <bruno@clisp.org>
11665
11666         New module description section 'configure.ac-early'.
11667         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
11668         (func_get_autoconf_early_snippet): New function.
11669         (func_import, func_create_testdir): Use it. Remove special cases for
11670         modules 'extensions' and 'lock'.
11671         * modules/extensions (configure.ac-early): Require
11672         gl_USE_SYSTEM_EXTENSIONS.
11673         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
11674
11675 2007-02-04  Bruno Haible  <bruno@clisp.org>
11676
11677         Make use of gcj-4.3's -fsource and -ftarget option.
11678         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
11679         and if so try the options -fsource and -ftarget.
11680         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
11681         source_version, ftarget_option, target_version arguments.
11682         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
11683         (is_envjavac_oldgcj_14_14_usable): Renamed from
11684         is_envjavac_gcj_14_14_usable.
11685         (is_envjavac_oldgcj_14_13_usable): Renamed from
11686         is_envjavac_gcj_14_13_usable.
11687         (is_gcj_present): Update.
11688         (is_gcj_43, is_gcj43_usable): New functions.
11689         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
11690         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
11691         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
11692         try the options -fsource and -ftarget.
11693
11694 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
11695
11696         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
11697         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
11698         larger value.
11699
11700 2007-02-03  Jim Meyering  <jim@meyering.net>
11701
11702         Give tools a better chance to allocate space for very large buffers.
11703         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
11704
11705         Make pwd and readlink work also when run with an unreadable parent dir
11706         on systems with openat support.
11707         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
11708         provided getcwd function, even when we have openat support.
11709         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
11710
11711 2007-02-02  Bruno Haible  <bruno@clisp.org>
11712
11713         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
11714         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
11715         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
11716         portability problems if one of these functions is only used on specific
11717         platforms.
11718         Reported by Paul Eggert.
11719
11720 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
11721
11722         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
11723         is causing more trouble than it's curing.
11724         * lib/regex_internal.h (__mempcpy): Remove.
11725         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
11726         (and make the code a tad smaller to boot).
11727         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
11728
11729 2007-02-02  Jim Meyering  <jim@meyering.net>
11730
11731         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
11732         section, not in the Makefile.am: one.
11733
11734 2007-02-02  Eric Blake  <ebb9@byu.net>
11735
11736         * lib/strchrnul.c: Always include config.h first.
11737
11738         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
11739         gnulib strstr is not necessary here.
11740
11741 2007-02-02  Simon Josefsson  <simon@josefsson.org>
11742
11743         * m4/socklen.m4: Fix typo.
11744
11745 2007-02-02  Eric Blake  <ebb9@byu.net>
11746
11747         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
11748         * modules/netinet_in (Makefile.am): Likewise.
11749
11750 2007-02-01  Bruno Haible  <bruno@clisp.org>
11751
11752         * lib/string_.h (GL_LINK_WARNING): New macro.
11753         (strcasecmp, strstr, strcasestr): If provided by the system,
11754         conditionally define as a macro that leads to a warning instead of to
11755         an error.
11756         (strncasecmp): Conditionally define as a macro that leads to a warning.
11757
11758 2007-02-01  Karl Berry  <karl@gnu.org>
11759
11760         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
11761
11762 2007-02-01  Bruno Haible  <bruno@clisp.org>
11763
11764         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
11765         renamings.
11766
11767 2007-02-01  Eric Blake  <ebb9@byu.net>
11768
11769         * modules/regex (Depends-on): Revert dependence on mempcpy.
11770         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
11771         module's definition of mempcpy.
11772         Reported by Paul Eggert.
11773
11774 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
11775
11776         * lib/string_.h: If the gnulib module XYZ is not present, undefine
11777         the symbol XYZ before redefining it.  This fixes a problem with
11778         programs that don't use XYZ, when compiled on systems that define
11779         XYZ to something else.
11780
11781 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
11782
11783         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
11784         occurs when "mkdir -m foo" creates a setgid directory that is (1)
11785         writeable to group or other and (2) is intended to have a special
11786         mode bit that is set or cleared.  In such a case, the directory
11787         should be neither group- nor other-writeable until the special
11788         mode bits are right.
11789
11790 2007-01-31  Eric Blake  <ebb9@byu.net>
11791
11792         * modules/mountlist (Depends-on): Add strstr.
11793
11794         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
11795         bug.
11796         * modules/string (Makefile.am): Remove redundant replacement.
11797         * modules/regex (Depends-on): Add mempcpy.
11798
11799 2007-01-31  Bruno Haible  <bruno@clisp.org>
11800
11801         New module description field 'Link'.
11802         * gnulib-tool (func_usage): Document --extract-link-directive.
11803         (sed_extract_prog): Recognize 'Link' directive.
11804         (func_get_link_directive): New function.
11805         (func_import): Show summary of link directives.
11806         Handle --extract-link-directive option.
11807         * modules/acl (Link): New section.
11808         * modules/clock-time (Link): New section.
11809         * modules/euidaccess (Link): New section.
11810         * modules/gettext (Link): New section.
11811         * modules/iconv (Link): New section.
11812         * modules/lock (Link): New section.
11813         * modules/nanosleep (Link): New section.
11814         * modules/readline (Link): New section.
11815
11816 2007-01-27  Bruno Haible  <bruno@clisp.org>
11817
11818         Enforce the use of gnulib modules for unportable <string.h> functions.
11819         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
11820         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
11821         (gl_HEADER_STRING_H_BODY): Require it.
11822         * lib/string_.h: If the gnulib module XYZ is not present, redefine
11823         the symbol XYZ to one that gives a link error.
11824         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
11825         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
11826         * modules/mempcpy (configure.ac): Likewise.
11827         * modules/memrchr (configure.ac): Likewise.
11828         * modules/stpcpy (configure.ac): Likewise.
11829         * modules/stpncpy (configure.ac): Likewise.
11830         * modules/strcase (configure.ac): Likewise.
11831         * modules/strcasestr (configure.ac): Likewise.
11832         * modules/strchrnul (configure.ac): Likewise.
11833         * modules/strdup (configure.ac): Likewise.
11834         * modules/strndup (configure.ac): Likewise.
11835         * modules/strnlen (configure.ac): Likewise.
11836         * modules/strpbrk (configure.ac): Likewise.
11837         * modules/strsep (configure.ac): Likewise.
11838         * modules/strstr (configure.ac): Likewise.
11839         * modules/strtok_r (configure.ac): Likewise.
11840
11841 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
11842
11843         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
11844
11845 2007-01-30  Jim Meyering  <jim@meyering.net>
11846
11847         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
11848
11849 2007-01-29  Bruno Haible  <bruno@clisp.org>
11850
11851         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
11852         * lib/execute.c: Likewise.
11853         * lib/pipe.c: Likewise.
11854         * lib/printf-args.h: Likewise.
11855         * lib/printf-args.c: Likewise.
11856         * lib/printf-parse.c: Likewise.
11857         * lib/vasnprintf.c: Likewise.
11858
11859 2007-01-29  Eric Blake  <ebb9@byu.net>
11860
11861         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
11862         declaration.
11863
11864 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
11865
11866         * lib/strptime.h (strptime): Use 'restrict' for args where
11867         POSIX requires this.
11868         * lib/strptime.c (strptime): Likewise.
11869         Change license notice from LGPL to GPL, since gnulib-tool will
11870         change this as needed.
11871         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
11872         defined.
11873         Include "strptime.h" first, to check interface.
11874         Do not #undef _LIBC and _NL_CURRENT.
11875         Do not include <stdlib.h>; no longer needed.
11876         Include "time_r.h" and declare ptime_locale_status
11877         only if _LIBC is not defined.
11878         (__P): Remove unused macro.
11879         (match_string): Bring back glibc version, but use it only if _LIBC
11880         is defined.
11881         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
11882         Remove unnecessary assertion and abort() call.
11883         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
11884         * m4/strptime.m4: Fix serial number comment.
11885         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
11886         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
11887         (Depends-on): Add time_r.
11888
11889 2007-01-29  Bruno Haible  <bruno@clisp.org>
11890
11891         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
11892         strptime.
11893         * modules/strptime (Depends-on): Add stdbool.
11894         * lib/strptime.h: Include <time.h> always. Add comments.
11895
11896 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
11897
11898         * modules/strptime: New file.
11899         * lib/strptime.h: New file.
11900         * lib/strptime.c: New file.
11901         * m4/strptime.m4: New file.
11902
11903 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
11904
11905         * MODULES.html.sh: New module mpsort.
11906         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
11907
11908         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
11909         a circularity problem with HP-UX ia64 reported by Bob Proulx in
11910         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
11911         All uses changed.
11912         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
11913         All uses changed.
11914         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
11915         to _Restrict_.
11916         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
11917         the parameter matches the prototype.
11918
11919 2007-01-28  Jim Meyering  <jim@meyering.net>
11920
11921         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
11922         sys/time.h here, reverting that part of the previous patch:
11923         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
11924
11925 2007-01-28  Bruno Haible  <bruno@clisp.org>
11926
11927         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
11928         value of $(SYS_TIME_H).
11929         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
11930         remove it conditionally, too. [added by Jim Meyering]
11931         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
11932         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
11933         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
11934         GETTIMEOFDAY_REPLACEMENT to 1.
11935
11936 2007-01-28  Bruno Haible  <bruno@clisp.org>
11937
11938         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
11939         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
11940         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
11941         Set UNISTD_H instead of UNISTD_H2.
11942         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
11943
11944 2007-01-28  Bruno Haible  <bruno@clisp.org>
11945
11946         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
11947         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
11948
11949 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11950
11951         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
11952         (func_create_testdir): Ensure C locale for `grep' and `tr'
11953         character ranges.
11954         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
11955         ACLOCAL_AMFLAGS parsing state machine.
11956
11957 2007-01-27  Bruno Haible  <bruno@clisp.org>
11958
11959         * modules/unistr/base: Update.
11960
11961 2007-01-27  Bruno Haible  <bruno@clisp.org>
11962
11963         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
11964         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
11965         * modules/unistr/u32-mbtouc-unsafe: Renamed from
11966         modules/unistr/u32-mbtouc.
11967         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
11968         * lib/unistr.h: Update.
11969         * lib/linebreak.c: Update.
11970         * modules/unistr/u32-mbtouc: Renamed from
11971         modules/unistr/u32-mbtouc-safe.
11972         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
11973         * lib/unistr.h: Update.
11974         * lib/unistr/u32-to-u8.c: Update.
11975         * lib/unistr/u32-to-u16.c: Update.
11976
11977 2007-01-27  Bruno Haible  <bruno@clisp.org>
11978
11979         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
11980         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
11981         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
11982         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
11983         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
11984         * modules/unistr/u16-mbtouc-unsafe: Renamed from
11985         modules/unistr/u16-mbtouc.
11986         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
11987         * lib/unistr.h: Update.
11988         * lib/linebreak.c: Update.
11989         * modules/linebreak: Update.
11990         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
11991         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
11992         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
11993         * modules/unistr/u16-mbtouc: Renamed from
11994         modules/unistr/u16-mbtouc-safe.
11995         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
11996         * lib/unistr.h: Update.
11997         * lib/unistr/u16-to-u8.c: Update.
11998         * modules/unistr/u16-to-u8: Update.
11999         * lib/unistr/u16-to-u32.c: Update.
12000         * modules/unistr/u16-to-u32: Update.
12001
12002 2007-01-27  Bruno Haible  <bruno@clisp.org>
12003
12004         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
12005         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
12006         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
12007         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
12008         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
12009         * modules/unistr/u8-mbtouc-unsafe: Renamed from
12010         modules/unistr/u8-mbtouc.
12011         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
12012         * lib/unistr.h: Update.
12013         * lib/striconveh.c: Update.
12014         * modules/striconveh: Update.
12015         * lib/linebreak.c: Update.
12016         * modules/linebreak: Update.
12017         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
12018         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
12019         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
12020         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
12021         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
12022         * lib/unistr.h: Update.
12023         * lib/striconveh.c: Update.
12024         * modules/striconveh: Update.
12025         * lib/unistr/u8-to-u16.c: Update.
12026         * modules/unistr/u8-to-u16: Update.
12027         * lib/unistr/u8-to-u32.c: Update.
12028         * modules/unistr/u8-to-u32: Update.
12029
12030 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12031
12032         Sync from Libtool.
12033         * lib/argz.c: Do not include strings.h nor memory.h, include
12034         string.h unconditionally.  Patch by Simon Josefsson.
12035
12036 2007-01-27  Bruno Haible  <bruno@clisp.org>
12037
12038         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
12039         from gl_HEADER_STRING_H_BODY.
12040         (gl_HEADER_STRING_H_BODY): Require it.
12041         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
12042         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
12043         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
12044         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
12045         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12046         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
12047         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12048         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
12049         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
12050         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
12051         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
12052         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
12053         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
12054         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12055         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
12056
12057 2007-01-27  Bruno Haible  <bruno@clisp.org>
12058
12059         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
12060         check_PROGRAMS into noinst_PROGRAMS.
12061         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
12062         check_PROGRAMS in this case.
12063         (func_import): Set for_test to false.
12064         (func_create_testdir): Set for_test to true.
12065
12066 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12067             Bruno Haible  <bruno@clisp.org>
12068
12069         * modules/strcasestr (Files): Remove lib/strcasestr.h.
12070         (Depends-on): Add string.
12071         (Includes): Use <string.h> instead of strcasestr.h.
12072         * modules/string (Makefile.am): Also substitute the value of
12073         REPLACE_STRCASESTR.
12074         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
12075         assume strcasestr is declared in <string.h> not <strings.h>. Also
12076         set REPLACE_STRCASESTR.
12077         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
12078         REPLACE_STRCASESTR.
12079         * lib/strcasestr.h: Remove file.
12080         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
12081         * lib/string_.h (strcasestr): New declaration.
12082
12083 2007-01-27  Bruno Haible  <bruno@clisp.org>
12084
12085         * lib/string_.h: Use 'extern'.
12086
12087 2007-01-27  Jim Meyering  <jim@meyering.net>
12088
12089         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
12090         of set-but-not-used local, "q".
12091
12092         * lib/mempcpy.c: Include <config.h> before <string.h>.
12093         This fixes a compilation error on HP-UX, due to the system's
12094         "restrict"-using mempcpy prototype.
12095
12096 2007-01-26  Bruno Haible  <bruno@clisp.org>
12097
12098         Small optimization.
12099         * lib/javacomp.c: Include c-strstr.h.
12100          (is_envjavac_gcj): Use c_strstr instead of strstr.
12101         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
12102
12103 2007-01-26  Bruno Haible  <bruno@clisp.org>
12104
12105         * MODULES.html.sh (Unicode string functions): Add the new modules.
12106
12107         * modules/uniconv/u32-strconv-to-locale: New file.
12108         * lib/uniconv/u32-strconv-to-locale.c: New file.
12109
12110         * modules/uniconv/u16-strconv-to-locale: New file.
12111         * lib/uniconv/u16-strconv-to-locale.c: New file.
12112
12113         * modules/uniconv/u8-strconv-to-locale: New file.
12114         * lib/uniconv/u8-strconv-to-locale.c: New file.
12115
12116         * modules/uniconv/u32-strconv-from-locale: New file.
12117         * lib/uniconv/u32-strconv-from-locale.c: New file.
12118
12119         * modules/uniconv/u16-strconv-from-locale: New file.
12120         * lib/uniconv/u16-strconv-from-locale.c: New file.
12121
12122         * modules/uniconv/u8-strconv-from-locale: New file.
12123         * lib/uniconv/u8-strconv-from-locale.c: New file.
12124
12125         * modules/uniconv/u32-strconv-to-enc: New file.
12126         * lib/uniconv/u32-strconv-to-enc.c: New file.
12127         * modules/uniconv/u32-strconv-to-enc-tests: New file.
12128         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
12129
12130         * modules/uniconv/u16-strconv-to-enc: New file.
12131         * lib/uniconv/u16-strconv-to-enc.c: New file.
12132         * lib/uniconv/u-strconv-to-enc.h: New file.
12133         * modules/uniconv/u16-strconv-to-enc-tests: New file.
12134         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
12135
12136         * modules/uniconv/u8-strconv-to-enc: New file.
12137         * lib/uniconv/u8-strconv-to-enc.c: New file.
12138         * modules/uniconv/u8-strconv-to-enc-tests: New file.
12139         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
12140
12141         * modules/uniconv/u32-strconv-from-enc: New file.
12142         * lib/uniconv/u32-strconv-from-enc.c: New file.
12143         * modules/uniconv/u32-strconv-from-enc-tests: New file.
12144         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
12145
12146         * modules/uniconv/u16-strconv-from-enc: New file.
12147         * lib/uniconv/u16-strconv-from-enc.c: New file.
12148         * modules/uniconv/u16-strconv-from-enc-tests: New file.
12149         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
12150
12151         * modules/uniconv/u8-strconv-from-enc: New file.
12152         * lib/uniconv/u8-strconv-from-enc.c: New file.
12153         * lib/uniconv/u-strconv-from-enc.h: New file.
12154         * modules/uniconv/u8-strconv-from-enc-tests: New file.
12155         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
12156
12157         * modules/uniconv/u32-conv-from-enc: New file.
12158         * lib/uniconv/u32-conv-from-enc.c: New file.
12159         * modules/uniconv/u32-conv-from-enc-tests: New file.
12160         * tests/uniconv/test-u32-conv-from-enc.c: New file.
12161
12162         * modules/uniconv/u16-conv-from-enc: New file.
12163         * lib/uniconv/u16-conv-from-enc.c: New file.
12164         * lib/uniconv/u-conv-from-enc.h: New file.
12165         * modules/uniconv/u16-conv-from-enc-tests: New file.
12166         * tests/uniconv/test-u16-conv-from-enc.c: New file.
12167
12168         * modules/uniconv/u8-conv-from-enc: New file.
12169         * lib/uniconv/u8-conv-from-enc.c: New file.
12170         * modules/uniconv/u8-conv-from-enc-tests: New file.
12171         * tests/uniconv/test-u8-conv-from-enc.c: New file.
12172
12173         * modules/uniconv/base: New file.
12174         * lib/uniconv.h: New file.
12175
12176 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
12177
12178         * doc/gnulib-tool.texi (Initial import): Update to match current
12179         behavior with strdup module.
12180         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
12181         * lib/memmem.h: Remove; all uses removed.  This is now done
12182         by <string.h>.
12183         * lib/mempcpy.h: Likewise.
12184         * lib/memrchr.h: Likewise.
12185         * lib/stpcpy.h: Likewise.
12186         * lib/stpncpy.h: Likewise.
12187         * lib/strcase.h: Likewise.
12188         * lib/strchrnul.h: Likewise.
12189         * lib/strdup.h: Likewise.
12190         * lib/strndup.h: Likewise.
12191         * lib/strnlen.h: Likewise.
12192         * lib/strpbrk.h: Likewise.
12193         * lib/strsep.h: Likewise.
12194         * lib/strstr.h: Likewise.
12195         * lib/strtok_r.h: Likewise.
12196         * lib/string_.h: New file.
12197         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
12198         Rely on <string.h> instead.
12199         * lib/canon-host.c: Likewise.
12200         * lib/chdir-long.c: Likewise.
12201         * lib/concatpath.c: Likewise.
12202         * lib/exclude.c: Likewise.
12203         * lib/fchdir.c: Likewise.
12204         * lib/getaddrinfo.c: Likewise.
12205         * lib/getcwd.c: Likewise.
12206         * lib/getsubopt.c: Likewise.
12207         * lib/glob.c: Likewise.
12208         * lib/hard-locale.c: Likewise.
12209         * lib/iconvme.c: Likewise.
12210         * lib/javacomp.c: Likewise.
12211         * lib/mempcpy.c: Likewise.
12212         * lib/memrchr.c: Likewise.
12213         * lib/regex_internal.h: Likewise.
12214         * lib/stpncpy.c: Likewise.
12215         * lib/strcasecmp.c: Likewise.
12216         * lib/strchrnul.c: Likewise.
12217         * lib/strdup.c: Likewise.
12218         * lib/striconv.c: Likewise.
12219         * lib/striconveh.c: Likewise.
12220         * lib/striconveha.c: Likewise.
12221         * lib/strncasecmp.c: Likewise.
12222         * lib/strndup.c: Likewise.
12223         * lib/strnlen.c: Likewise.
12224         * lib/strsep.c: Likewise.
12225         * lib/strstr.c: Likewise.
12226         * lib/strtok_r.c: Likewise.
12227         * lib/userspec.c: Likewise.
12228         * lib/w32spawn.h: Likewise.
12229         * lib/xstrndup.c: Likewise.
12230         * lib/mountlist.c (strstr): Remove decl.
12231         * m4/string_h.m4: New file.
12232         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
12233         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
12234         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
12235         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
12236         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
12237         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
12238         Set REPLACE_STRCASECMP if necessary.
12239         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
12240         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
12241         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
12242         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
12243         HAVE_DECL_STRDUP if necessary.
12244         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
12245         since gl_FUNC_STRNDUP does that now.
12246         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
12247         Check for decl here...
12248         (gl_PREREQ_STRNLEN): ... not here.
12249         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
12250         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
12251         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
12252         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
12253         necessary.
12254         * modules/string: New file.
12255         * modules/memmem (Files): Remove special-purpose include file.
12256         (Depends-on): Add string.
12257         (Include): Include <string.h>, not the removed file.
12258         * modules/mempcpy: Likewise.
12259         * modules/memrchr: Likewise.
12260         * modules/stpcpy: Likewise.
12261         * modules/stpncpy: Likewise.
12262         * modules/strcase: Likewise.
12263         * modules/strchrnul: Likewise.
12264         * modules/strdup: Likewise.
12265         * modules/strndup: Likewise.
12266         * modules/strnlen: Likewise.
12267         * modules/strpbrk: Likewise.
12268         * modules/strsep: Likewise.
12269         * modules/strstr: Likewise.
12270         * modules/strtok_r: Likewise.
12271         * tests/test-dirname.c: Don't include "strdup.h", since
12272         <string.h> now suffices.
12273         * tests/test-memmem.c: Don't include "memmem.h", since
12274         <string.h> now suffices.
12275
12276 2007-01-25  Bruno Haible  <bruno@clisp.org>
12277
12278         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
12279         *resultp is 0.
12280
12281         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
12282         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
12283         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
12284         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
12285
12286         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
12287         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
12288         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
12289         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
12290         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
12291         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
12292
12293 2007-01-24  Bruno Haible  <bruno@clisp.org>
12294
12295         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
12296         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
12297         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
12298         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
12299         gl_FUNC_FTS_CORE.
12300         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
12301         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
12302         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12303         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
12304         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
12305         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
12306         gl_FUNC_FCHOWNAT.
12307         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
12308         gl_FUNC_STRFTIME.
12309         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
12310         Reported by Ralf Wildenhues.
12311
12312 2007-01-24  Bruno Haible  <bruno@clisp.org>
12313
12314         Drop AC_REQUIRE calls that are redundant with the module dependencies.
12315         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
12316         gl_GETADDRINFO.
12317         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
12318         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
12319         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
12320
12321 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
12322
12323         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
12324         Don't use 'exit'; just return from 'main'.
12325         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
12326
12327         * lib/fnmatch_.h: Readjust white space and comments to match
12328         glibc, to avoid spurious diffs.
12329
12330 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12331
12332         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
12333         2004-12-01 change by Jakub Jelinek, since this code won't compile
12334         if !LIBC.  Problem reported by Bob Proulx.
12335
12336 2007-01-23  Bruno Haible  <bruno@clisp.org>
12337
12338         * lib/striconveh.c: Include c-strcaseeq.h.
12339         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
12340         * modules/striconveh (Depends-on): Add c-strcaseeq.
12341
12342 2007-01-23  Bruno Haible  <bruno@clisp.org>
12343
12344         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
12345
12346         * modules/c-strcaseeq: New file.
12347         * lib/c-strcaseeq.h: New file.
12348
12349         * modules/streq: New file.
12350         * lib/streq.h: New file.
12351
12352 2007-01-23  Bruno Haible  <bruno@clisp.org>
12353
12354         * modules/striconveha-tests: New file.
12355         * tests/test-striconveha.c: New file.
12356
12357         * lib/striconveha.h: Include <stdbool.h>.
12358         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
12359         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
12360         (mem_iconveha_notranslit): Renamed from mem_iconveha.
12361         (mem_iconveha): New function.
12362         (str_iconveha_notranslit): Renamed from str_iconveha.
12363         (str_iconveha): New function.
12364         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
12365         c-strcase.
12366
12367 2007-01-23  Bruno Haible  <bruno@clisp.org>
12368
12369         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
12370         encodings without forgiving before trying any encoding with handler.
12371         (str_iconveha): Try all encodings without forgiving before trying any
12372         encoding with handler.
12373
12374 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12375
12376         Import the following changes from libc.
12377
12378         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
12379
12380         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
12381
12382         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
12383
12384         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
12385         normal_bracket label.
12386
12387         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
12388
12389         [BZ #361]
12390         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
12391         to normal_bracket after fetching the next character.
12392
12393 2007-01-22  Bruno Haible  <bruno@clisp.org>
12394
12395         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
12396         argument.
12397         * lib/striconveh.c (iconv_carefully_1): New function.
12398         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
12399         argument.
12400         (str_cd_iconveh): Update.
12401         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
12402         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
12403         * tests/test-striconveh.c (MAGIC): New macro.
12404         (new_offsets): New function.
12405         (main): Test call with and without offsets.
12406
12407 2007-01-22  Bruno Haible  <bruno@clisp.org>
12408
12409         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
12410         * modules/sys_select (Makefile.am): Likewise.
12411         * modules/sys_socket (Makefile.am): Likewise.
12412         * modules/sys_time (Makefile.am): Likewise.
12413
12414 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
12415
12416         * modules/gettimeofday (License): Change from GPL to LGPL, since
12417         gettimeofday is a library function.
12418
12419 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12420
12421         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
12422
12423 2007-01-21  Bruno Haible  <bruno@clisp.org>
12424
12425         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
12426
12427 2007-01-21  Bruno Haible  <bruno@clisp.org>
12428
12429         * modules/striconveha: New file.
12430         * lib/striconveha.h: New file.
12431         * lib/striconveha.c: New file.
12432         * MODULES.html.sh (Internationalization functions): Add striconveha.
12433         * lib/striconv.c (str_iconv): Optimize the case of an empty input
12434         string.
12435         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
12436
12437 2007-01-21  Bruno Haible  <bruno@clisp.org>
12438
12439         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
12440         * lib/striconveh.c (str_iconveh): Likewise.
12441
12442 2007-01-21  Bruno Haible  <bruno@clisp.org>
12443
12444         * lib/striconveh.h (mem_iconveh): New declaration.
12445         * lib/striconveh.c (mem_iconveh): New function.
12446         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
12447
12448 2007-01-21  Bruno Haible  <bruno@clisp.org>
12449
12450         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
12451
12452         * lib/striconveh.h (mem_cd_iconveh): Change specification.
12453         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
12454         original result buffer.
12455         (str_cd_iconveh): Update.
12456         * tests/test-striconveh.c (main): Update.
12457
12458         * lib/striconv.h (mem_cd_iconv): Change specification.
12459         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
12460         result buffer.
12461         (str_cd_iconv): Update.
12462         * tests/test-striconv.c (main): Update.
12463
12464 2007-01-21  Bruno Haible  <bruno@clisp.org>
12465
12466         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
12467
12468 2007-01-20  Jim Meyering  <jim@meyering.net>
12469
12470         * lib/userspec.c (parse_with_separator): If a user or group string
12471         starts with "+", skip the corresponding name-to-ID look-up, since
12472         such a look-up must fail: user and group names may not include "+".
12473
12474 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
12475
12476         * lib/poll.c: Include sys/time.h and time.h unconditionally,
12477         since we now assume the sys_time module.
12478         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
12479         check for sys/time.h; no longer needed.
12480         * modules/poll (Depends-on): Depend on sys_time.
12481
12482 2007-01-18  Bruno Haible  <bruno@clisp.org>
12483
12484         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
12485         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
12486
12487         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
12488         gettimeofday.
12489
12490         * tests/test-gettimeofday.c: Include <time.h>.
12491         (dummy): Remove variable.
12492
12493         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
12494         gl_HEADER_SYS_TIME_H.
12495         (gl_HEADER_SYS_TIME_H): New macro.
12496
12497         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
12498         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
12499         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
12500         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
12501         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
12502         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
12503         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
12504         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
12505         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
12506         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
12507         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
12508
12509         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
12510         last change; it caused a compilation error when cross-compiling to
12511         Cygwin.
12512
12513 2007-01-18  Jim Meyering  <jim@meyering.net>
12514
12515         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
12516         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
12517         than the race-prone "test -d sys || mkdir sys".
12518         (configure.ac): Use AC_PROG_MKDIR_P.
12519         * modules/sys_select: Likewise.
12520         * modules/sys_socket: Likewise.
12521         * modules/sys_time: Likewise.
12522
12523 2007-01-18  Eric Blake  <ebb9@byu.net>
12524
12525         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
12526         replace gettimeofday.
12527         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
12528         name, to avoid infinite recursion.
12529
12530 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
12531
12532         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
12533         module sys_time.
12534         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
12535         assume timespec.h defines struct timeval.
12536         * lib/settime.c: Likewise.
12537         * lib/utimens.c: Likewise.
12538         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
12539         since we now assume the gettimeofday module.
12540         * lib/tempname.c (__gen_tempname): Likewise.
12541         * lib/gettimeofday.h: Remove.
12542         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
12543         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
12544         Include <time.h>, for 'time()'.
12545         (localtime_buffer_addr): Also use this workaround if
12546         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
12547         to simplify the uses.  All uses changed.
12548         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
12549         that #undef is inside {}, and 'const' follows type name consistently.
12550         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
12551         (gettimeofday): Do not use the maximum possible value for
12552         tv->tv_usec, since that might break usages other than ls.c.
12553         Instead, we'll leave ls.c alone.  This undoes today's patch
12554         by Bruno.  Add a compile-time warning for 1s-clock resolution;
12555         we've never observed the problem but might as well keep the
12556         canary.
12557         * lib/nanosleep.c: Include timespec.h first, for interface check.
12558         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
12559         now assume the sys_time module.
12560         * lib/tempname.c: Likewise.
12561         * lib/timespec.h: Likewise.
12562         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
12563         needed.
12564         * lib/strftime.c: Likewise.
12565         * lib/timespec.h: Likewise.
12566         * lib/posixtm.c: Include posixtm.h first, for interface check.
12567         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
12568         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
12569         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
12570         * lib/sys_time_.h: New file.
12571         * lib/timespec.h (struct timespec): Use long int, not long.
12572         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
12573         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
12574         Remove obsolescent call to AC_HEADER_TIME.
12575         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
12576         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12577         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
12578         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
12579         Likewise.
12580         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
12581         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
12582         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
12583         into the sys_time module.  Check for gettimeofday just once.
12584         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
12585         for gettimeofday signature to just check the signature.  Merely
12586         compile it, since linking doesn't test signature.  Improve test for
12587         whether gettimeofday.o is actually needed.
12588         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
12589         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
12590         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
12591         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
12592         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
12593         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
12594         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
12595         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
12596         than worrying about sys/time.h.
12597         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
12598         Don't bother worrying about TIME_WITH_SYS_TIME.
12599         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
12600         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
12601         * m4/sys_time_h.m4: New file.
12602         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
12603         Don't include sys/time.h.  Return from main rather than exiting.
12604         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
12605         all uses changed.
12606         * modules/gethrxtime (Depends-on): Add sys_time.
12607         * modules/gettime (Depends-on): Likewise.
12608         * modules/gettimeofday (Depends-on): Likewise.
12609         * modules/nanosleep (Depends-on): Likewise.
12610         * modules/settime (Depends-on): Likewise.
12611         * modules/tempname (Depends-on): Likewise.
12612         * modules/utimens (Depends-on): Likewise.
12613         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
12614         (Include:) Change back to <sys/time.h>.
12615         (Maintainer:) Add self.
12616         * modules/sys_time: New file.
12617         * modules/tempname (Depends-on): Add gettimeofday.
12618         * tests/test-gettimeofday.c: Include <sys/time.h>
12619         rather than gettimeofday.h.
12620
12621 2007-01-17  Bruno Haible  <bruno@clisp.org>
12622
12623         * gnulib-tool (func_get_license): Revert last patch. Instead, let
12624         the license default to GPL.
12625         (func_create_testdir): Don't complain if a module is LGPL and its
12626         tests module depends on GPLed modules.
12627
12628 2007-01-17  Bruno Haible  <bruno@clisp.org>
12629
12630         * lib/gettimeofday.c (gettimeofday): Add code for the case
12631         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
12632         maximum possible value for tv->tv_usec, rather than the minimum one.
12633
12634 2005-10-08  Martin Lambers  <marlam@marlam.de>
12635 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
12636 2007-01-16  Bruno Haible  <bruno@clisp.org>
12637
12638         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
12639         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
12640         gl_FUNC_GETTIMEOFDAY.
12641         (Include): Add gettimeofday.h.
12642         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
12643         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
12644         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
12645         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
12646         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
12647         * lib/gettimeofday.h: New file.
12648         * lib/gettimeofday.c: Include <sys/timeb.h>.
12649         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
12650         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
12651         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
12652         fall back on time().
12653
12654         * tests/test-gettimeofday.c: New file.
12655         * modules/gettimeofday-tests: New file.
12656
12657 2007-01-16  Eric Blake  <ebb9@byu.net>
12658
12659         * modules/fnmatch (Depends-on): Depend on wchar.
12660         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
12661         * m4/fnmatch.m4: Likewise.
12662         * modules/mbchar (Makefile.am): Assume <wchar.h>.
12663         * m4/mbchar.m4: Likewise.
12664         * modules/mbswidth (Depends-on): Depend on wchar.
12665         * lib/mbswidth.c: Assume <wchar.h>.
12666         * m4/mbswidth.m4: Likewise.
12667         * modules/quotearg (Depends-on): Depend on wchar.
12668         * lib/quotearg.c: Assume <wchar.h>.
12669         * m4/quotearg.m4: Likewise.
12670         * modules/regex (Depends-on): Depend on wchar.
12671         * lib/regex_internal.h: Assume <wchar.h>.
12672         * m4/regex.m4: Likewise.
12673         * modules/stdint (Depends-on): Depend on wchar.
12674         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
12675         * m4/stdint.m4: Likewise.
12676         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
12677         * modules/strftime (Depends-on): Depend on wchar.
12678         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
12679         * modules/strtol (Depends-on): Depend on wchar.
12680         * lib/strtol.c: Assume <wchar.h>.
12681         * modules/wcwidth (Depends-on): Depend on wchar.
12682         * lib/wcwidth.h: Assume <wchar.h>.
12683         * m4/wcwidth.m4: Likewise.
12684
12685 2007-01-16  Bruno Haible  <bruno@clisp.org>
12686
12687         * modules/csharpexec-script: New, created from...
12688         * modules/csharpexec: ... this.
12689
12690 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
12691
12692         * modules/javaexec-script: New, created from...
12693         * modules/javaexec: ... this.
12694
12695 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12696
12697         * modules/poll (Dependencies): Add sys_select.
12698
12699 2007-01-15  Jim Meyering  <jim@meyering.net>
12700
12701         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
12702         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
12703         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
12704         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
12705
12706 2007-01-15  Bruno Haible  <bruno@clisp.org>
12707
12708         * modules/striconveh: New file.
12709         * lib/striconveh.h: New file.
12710         * lib/striconveh.c: New file.
12711         * MODULES.html.sh (Internationalization functions): Add striconveh.
12712
12713         * modules/striconveh-tests: New file.
12714         * tests/test-striconveh.c: New file.
12715
12716 2007-01-15  Bruno Haible  <bruno@clisp.org>
12717
12718         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
12719         not from GNU libiconv or GNU libc.
12720
12721 2007-01-15  Bruno Haible  <bruno@clisp.org>
12722
12723         * doc/gnulib-intro.texi (Copyright): Explain the different license
12724         terms for module descriptions, autoconf macros, tests, documentation.
12725
12726 2007-01-14  Bruno Haible  <bruno@clisp.org>
12727
12728         * modules/striconv-tests: New file.
12729         * tests/test-striconv.c: New file.
12730
12731 2007-01-14  Bruno Haible  <bruno@clisp.org>
12732
12733         * modules/iconv-tests: New file.
12734         * tests/test-iconv.c: New file.
12735
12736 2007-01-14  Bruno Haible  <bruno@clisp.org>
12737
12738         * gnulib-tool (func_get_license): For test modules, use the license of
12739         the main module.
12740
12741 2007-01-14  Bruno Haible  <bruno@clisp.org>
12742
12743         * modules/iconv (Include): Clarify that <iconv.h> can only be included
12744         if iconv is found to exist.
12745
12746 2007-01-14  Bruno Haible  <bruno@clisp.org>
12747
12748         * modules/c-ctype-tests: New file.
12749         * tests/test-c-ctype.c: New file.
12750
12751 2007-01-14  Bruno Haible  <bruno@clisp.org>
12752
12753         * modules/binary-io-tests: New file.
12754         * tests/test-binary-io.sh: New file.
12755         * tests/test-binary-io.c: New file.
12756
12757 2007-01-14  Bruno Haible  <bruno@clisp.org>
12758
12759         * modules/array-oset-tests: New file.
12760         * tests/test-array_oset.c: New file.
12761
12762 2007-01-14  Bruno Haible  <bruno@clisp.org>
12763
12764         * modules/array-list-tests: New file.
12765         * tests/test-array_list.c: New file.
12766
12767 2007-01-14  Bruno Haible  <bruno@clisp.org>
12768
12769         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
12770         and make.
12771         Reported by Simon Josefsson in
12772         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
12773
12774 2007-01-14  Bruno Haible  <bruno@clisp.org>
12775
12776         * modules/allocsa-tests: New file.
12777         * tests/test-allocsa.c: New file.
12778
12779 2007-01-14  Bruno Haible  <bruno@clisp.org>
12780
12781         * modules/fchdir (Depends-on): Add absolute-header.
12782         * modules/unistd (Depends-on): Likewise.
12783
12784 2006-12-30  Bruno Haible  <bruno@clisp.org>
12785
12786         * modules/fchdir: New file.
12787         * modules/unistd (Files): Add lib/unistd_.h.
12788         (Makefile.am): Generate unistd.h from unistd_.h.
12789         * lib/fchdir.c: New file.
12790         * lib/dirent_.h: New file.
12791         * lib/unistd_.h: New file.
12792         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
12793         * m4/fchdir.m4: New file.
12794         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
12795         (gl_HEADER_UNISTD): Invoke it.
12796         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
12797         function.
12798         * lib/backupfile.c (opendir, closedir): Undefine.
12799         * lib/chown.c (open, close): Undefine.
12800         * lib/clean-temp.c (open, close): Undefine.
12801         * lib/copy-file.c (open, close): Undefine.
12802         * lib/execute.c (open, close): Undefine.
12803         * lib/fsusage.c (open, close): Undefine.
12804         * lib/gc-gnulib.c (open, close): Undefine.
12805         * lib/getcwd.c (opendir, closedir): Undefine.
12806         * lib/glob.c (opendir, closedir): Undefine.
12807         * lib/javacomp.c (open, close): Undefine.
12808         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
12809         * lib/openat-proc.c (open, close): Undefine.
12810         * lib/pagealign_alloc.c (open, close): Undefine.
12811         * lib/pipe.c (open, close): Undefine.
12812         * lib/progreloc.c (open, close): Undefine.
12813         * lib/savedir.c (opendir, closedir): Undefine.
12814         * lib/utime.c (open, close): Undefine.
12815         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
12816
12817 2007-01-10  Bruno Haible  <bruno@clisp.org>
12818
12819         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
12820
12821 2007-01-12  Eric Blake  <ebb9@byu.net>
12822
12823         Provide a robust <wchar.h>.  Further simplifications are now
12824         possible in other modules, but not included here.
12825         * modules/wchar: New module.
12826         * m4/wchar.m4: New file.
12827         * lib/wchar_.h: Likewise.
12828         * modules/mbchar (Depends-on): Depend on wchar, as the first use
12829         of the new module.
12830         * MODULES.html.sh (Extended multibyte and wide character utilities):
12831         New section.
12832
12833 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
12834
12835         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
12836         to a reasonable default for memory allocation.
12837         (xreadlink): Don't allocate a huge buffer, to work around a buggy
12838         file system that reports garbage st_size values for symlinks.
12839         Problem reported by Liyang Hu.
12840
12841 2007-01-11  Simon Josefsson  <simon@josefsson.org>
12842
12843         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
12844         Emacs .#* auto-save files).
12845
12846 2007-01-11  Bruno Haible  <bruno@clisp.org>
12847
12848         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
12849         directory.
12850
12851 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
12852
12853         Use @...@ consistently in lib/wctype_.h.
12854         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
12855         on it being set to 1 or 0.
12856         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
12857         go back to AC_SUBSTing it.
12858         * modules/wctype (Makefile.am): Undo previous change.
12859
12860 2007-01-10  Eric Blake  <ebb9@byu.net>
12861
12862         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
12863         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
12864         * modules/wctype (Makefile.am): Likewise.
12865         Reported by Chris McGuire.
12866
12867 2007-01-10  Jim Meyering  <jim@meyering.net>
12868
12869         fts.c: a small readability/maintainability improvement
12870         * lib/fts.c (fts_read): Make this code slightly more readable and
12871         maintainable by hoisting the "sp->fts_cur = p" assignments to
12872         immediately follow the statements that set P.  Derived from
12873         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
12874
12875 2007-01-10  Eric Blake  <ebb9@byu.net>
12876
12877         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
12878         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
12879         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12880         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
12881         Reported by Chris McGuire.
12882
12883 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12884
12885         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
12886         in sed script.
12887
12888 2007-01-09  Bruno Haible  <bruno@clisp.org>
12889
12890         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
12891         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
12892         variables.
12893         (func_module): Use them.
12894
12895 2007-01-09  Bruno Haible  <bruno@clisp.org>
12896
12897         * modules/unistr/base: New file.
12898         * lib/unistr.h: New file.
12899
12900         * modules/unistr/u8-to-u16: New file.
12901         * lib/unistr/u8-to-u16.c: New file.
12902
12903         * modules/unistr/u8-to-u32: New file.
12904         * lib/unistr/u8-to-u32.c: New file.
12905
12906         * modules/unistr/u16-to-u8: New file.
12907         * lib/unistr/u16-to-u8.c: New file.
12908
12909         * modules/unistr/u16-to-u32: New file.
12910         * lib/unistr/u16-to-u32.c: New file.
12911
12912         * modules/unistr/u32-to-u8: New file.
12913         * lib/unistr/u32-to-u8.c: New file.
12914
12915         * modules/unistr/u32-to-u16: New file.
12916         * lib/unistr/u32-to-u16.c: New file.
12917
12918         * modules/unistr/u8-check: New file.
12919         * modules/unistr/u16-check: New file.
12920         * modules/unistr/u32-check: New file.
12921         * lib/unistr/u8-check.c: New file.
12922         * lib/unistr/u16-check.c: New file.
12923         * lib/unistr/u32-check.c: New file.
12924
12925         * modules/unistr/u8-chr: New file.
12926         * modules/unistr/u16-chr: New file.
12927         * modules/unistr/u32-chr: New file.
12928         * lib/unistr/u8-chr.c: New file.
12929         * lib/unistr/u16-chr.c: New file.
12930         * lib/unistr/u32-chr.c: New file.
12931
12932         * modules/unistr/u8-cmp: New file.
12933         * modules/unistr/u16-cmp: New file.
12934         * modules/unistr/u32-cmp: New file.
12935         * lib/unistr/u8-cmp.c: New file.
12936         * lib/unistr/u16-cmp.c: New file.
12937         * lib/unistr/u32-cmp.c: New file.
12938
12939         * modules/unistr/u8-cpy: New file.
12940         * modules/unistr/u16-cpy: New file.
12941         * modules/unistr/u32-cpy: New file.
12942         * lib/unistr/u8-cpy.c: New file.
12943         * lib/unistr/u16-cpy.c: New file.
12944         * lib/unistr/u32-cpy.c: New file.
12945         * lib/unistr/u-cpy.h: New file.
12946
12947         * modules/unistr/u8-cpy-alloc: New file.
12948         * modules/unistr/u16-cpy-alloc: New file.
12949         * modules/unistr/u32-cpy-alloc: New file.
12950         * lib/unistr/u8-cpy-alloc.c: New file.
12951         * lib/unistr/u16-cpy-alloc.c: New file.
12952         * lib/unistr/u32-cpy-alloc.c: New file.
12953         * lib/unistr/u-cpy-alloc.h: New file.
12954
12955         * modules/unistr/u8-endswith: New file.
12956         * modules/unistr/u16-endswith: New file.
12957         * modules/unistr/u32-endswith: New file.
12958         * lib/unistr/u8-endswith.c: New file.
12959         * lib/unistr/u16-endswith.c: New file.
12960         * lib/unistr/u32-endswith.c: New file.
12961         * lib/unistr/u-endswith.h: New file.
12962
12963         * modules/unistr/u8-mblen: New file.
12964         * modules/unistr/u16-mblen: New file.
12965         * modules/unistr/u32-mblen: New file.
12966         * lib/unistr/u8-mblen.c: New file.
12967         * lib/unistr/u16-mblen.c: New file.
12968         * lib/unistr/u32-mblen.c: New file.
12969
12970         * modules/unistr/u8-mbtouc: New file.
12971         * modules/unistr/u16-mbtouc: New file.
12972         * modules/unistr/u32-mbtouc: New file.
12973         * lib/unistr/u8-mbtouc.c: New file.
12974         * lib/unistr/u16-mbtouc.c: New file.
12975         * lib/unistr/u32-mbtouc.c: New file.
12976
12977         * modules/unistr/u8-mbtouc-safe: New file.
12978         * modules/unistr/u16-mbtouc-safe: New file.
12979         * modules/unistr/u32-mbtouc-safe: New file.
12980         * lib/unistr/u8-mbtouc-safe.c: New file.
12981         * lib/unistr/u16-mbtouc-safe.c: New file.
12982         * lib/unistr/u32-mbtouc-safe.c: New file.
12983
12984         * modules/unistr/u8-move: New file.
12985         * modules/unistr/u16-move: New file.
12986         * modules/unistr/u32-move: New file.
12987         * lib/unistr/u8-move.c: New file.
12988         * lib/unistr/u16-move.c: New file.
12989         * lib/unistr/u32-move.c: New file.
12990         * lib/unistr/u-move.h: New file.
12991
12992         * modules/unistr/u8-next: New file.
12993         * modules/unistr/u16-next: New file.
12994         * modules/unistr/u32-next: New file.
12995         * lib/unistr/u8-next.c: New file.
12996         * lib/unistr/u16-next.c: New file.
12997         * lib/unistr/u32-next.c: New file.
12998
12999         * modules/unistr/u8-prev: New file.
13000         * modules/unistr/u16-prev: New file.
13001         * modules/unistr/u32-prev: New file.
13002         * lib/unistr/u8-prev.c: New file.
13003         * lib/unistr/u16-prev.c: New file.
13004         * lib/unistr/u32-prev.c: New file.
13005
13006         * modules/unistr/u8-set: New file.
13007         * modules/unistr/u16-set: New file.
13008         * modules/unistr/u32-set: New file.
13009         * lib/unistr/u8-set.c: New file.
13010         * lib/unistr/u16-set.c: New file.
13011         * lib/unistr/u32-set.c: New file.
13012         * lib/unistr/u-set.h: New file.
13013
13014         * modules/unistr/u8-startswith: New file.
13015         * modules/unistr/u16-startswith: New file.
13016         * modules/unistr/u32-startswith: New file.
13017         * lib/unistr/u8-startswith.c: New file.
13018         * lib/unistr/u16-startswith.c: New file.
13019         * lib/unistr/u32-startswith.c: New file.
13020         * lib/unistr/u-startswith.h: New file.
13021
13022         * modules/unistr/u8-stpcpy: New file.
13023         * modules/unistr/u16-stpcpy: New file.
13024         * modules/unistr/u32-stpcpy: New file.
13025         * lib/unistr/u8-stpcpy.c: New file.
13026         * lib/unistr/u16-stpcpy.c: New file.
13027         * lib/unistr/u32-stpcpy.c: New file.
13028         * lib/unistr/u-stpcpy.h: New file.
13029
13030         * modules/unistr/u8-stpncpy: New file.
13031         * modules/unistr/u16-stpncpy: New file.
13032         * modules/unistr/u32-stpncpy: New file.
13033         * lib/unistr/u8-stpncpy.c: New file.
13034         * lib/unistr/u16-stpncpy.c: New file.
13035         * lib/unistr/u32-stpncpy.c: New file.
13036         * lib/unistr/u-stpncpy.h: New file.
13037
13038         * modules/unistr/u8-strcat: New file.
13039         * modules/unistr/u16-strcat: New file.
13040         * modules/unistr/u32-strcat: New file.
13041         * lib/unistr/u8-strcat.c: New file.
13042         * lib/unistr/u16-strcat.c: New file.
13043         * lib/unistr/u32-strcat.c: New file.
13044         * lib/unistr/u-strcat.h: New file.
13045
13046         * modules/unistr/u8-strchr: New file.
13047         * modules/unistr/u16-strchr: New file.
13048         * modules/unistr/u32-strchr: New file.
13049         * lib/unistr/u8-strchr.c: New file.
13050         * lib/unistr/u16-strchr.c: New file.
13051         * lib/unistr/u32-strchr.c: New file.
13052
13053         * modules/unistr/u8-strcmp: New file.
13054         * modules/unistr/u16-strcmp: New file.
13055         * modules/unistr/u32-strcmp: New file.
13056         * lib/unistr/u8-strcmp.c: New file.
13057         * lib/unistr/u16-strcmp.c: New file.
13058         * lib/unistr/u32-strcmp.c: New file.
13059
13060         * modules/unistr/u8-strcpy: New file.
13061         * modules/unistr/u16-strcpy: New file.
13062         * modules/unistr/u32-strcpy: New file.
13063         * lib/unistr/u8-strcpy.c: New file.
13064         * lib/unistr/u16-strcpy.c: New file.
13065         * lib/unistr/u32-strcpy.c: New file.
13066         * lib/unistr/u-strcpy.h: New file.
13067
13068         * modules/unistr/u8-strcspn: New file.
13069         * modules/unistr/u16-strcspn: New file.
13070         * modules/unistr/u32-strcspn: New file.
13071         * lib/unistr/u8-strcspn.c: New file.
13072         * lib/unistr/u16-strcspn.c: New file.
13073         * lib/unistr/u32-strcspn.c: New file.
13074         * lib/unistr/u-strcspn.h: New file.
13075
13076         * modules/unistr/u8-strdup: New file.
13077         * modules/unistr/u16-strdup: New file.
13078         * modules/unistr/u32-strdup: New file.
13079         * lib/unistr/u8-strdup.c: New file.
13080         * lib/unistr/u16-strdup.c: New file.
13081         * lib/unistr/u32-strdup.c: New file.
13082         * lib/unistr/u-strdup.h: New file.
13083
13084         * modules/unistr/u8-strlen: New file.
13085         * modules/unistr/u16-strlen: New file.
13086         * modules/unistr/u32-strlen: New file.
13087         * lib/unistr/u8-strlen.c: New file.
13088         * lib/unistr/u16-strlen.c: New file.
13089         * lib/unistr/u32-strlen.c: New file.
13090         * lib/unistr/u-strlen.h: New file.
13091
13092         * modules/unistr/u8-strmblen: New file.
13093         * modules/unistr/u16-strmblen: New file.
13094         * modules/unistr/u32-strmblen: New file.
13095         * lib/unistr/u8-strmblen.c: New file.
13096         * lib/unistr/u16-strmblen.c: New file.
13097         * lib/unistr/u32-strmblen.c: New file.
13098
13099         * modules/unistr/u8-strmbtouc: New file.
13100         * modules/unistr/u16-strmbtouc: New file.
13101         * modules/unistr/u32-strmbtouc: New file.
13102         * lib/unistr/u8-strmbtouc.c: New file.
13103         * lib/unistr/u16-strmbtouc.c: New file.
13104         * lib/unistr/u32-strmbtouc.c: New file.
13105
13106         * modules/unistr/u8-strncat: New file.
13107         * modules/unistr/u16-strncat: New file.
13108         * modules/unistr/u32-strncat: New file.
13109         * lib/unistr/u8-strncat.c: New file.
13110         * lib/unistr/u16-strncat.c: New file.
13111         * lib/unistr/u32-strncat.c: New file.
13112         * lib/unistr/u-strncat.h: New file.
13113
13114         * modules/unistr/u8-strncmp: New file.
13115         * modules/unistr/u16-strncmp: New file.
13116         * modules/unistr/u32-strncmp: New file.
13117         * lib/unistr/u8-strncmp.c: New file.
13118         * lib/unistr/u16-strncmp.c: New file.
13119         * lib/unistr/u32-strncmp.c: New file.
13120
13121         * modules/unistr/u8-strncpy: New file.
13122         * modules/unistr/u16-strncpy: New file.
13123         * modules/unistr/u32-strncpy: New file.
13124         * lib/unistr/u8-strncpy.c: New file.
13125         * lib/unistr/u16-strncpy.c: New file.
13126         * lib/unistr/u32-strncpy.c: New file.
13127         * lib/unistr/u-strncpy.h: New file.
13128
13129         * modules/unistr/u8-strnlen: New file.
13130         * modules/unistr/u16-strnlen: New file.
13131         * modules/unistr/u32-strnlen: New file.
13132         * lib/unistr/u8-strnlen.c: New file.
13133         * lib/unistr/u16-strnlen.c: New file.
13134         * lib/unistr/u32-strnlen.c: New file.
13135         * lib/unistr/u-strnlen.h: New file.
13136
13137         * modules/unistr/u8-strpbrk: New file.
13138         * modules/unistr/u16-strpbrk: New file.
13139         * modules/unistr/u32-strpbrk: New file.
13140         * lib/unistr/u8-strpbrk.c: New file.
13141         * lib/unistr/u16-strpbrk.c: New file.
13142         * lib/unistr/u32-strpbrk.c: New file.
13143         * lib/unistr/u-strpbrk.h: New file.
13144
13145         * modules/unistr/u8-strrchr: New file.
13146         * modules/unistr/u16-strrchr: New file.
13147         * modules/unistr/u32-strrchr: New file.
13148         * lib/unistr/u8-strrchr.c: New file.
13149         * lib/unistr/u16-strrchr.c: New file.
13150         * lib/unistr/u32-strrchr.c: New file.
13151
13152         * modules/unistr/u8-strspn: New file.
13153         * modules/unistr/u16-strspn: New file.
13154         * modules/unistr/u32-strspn: New file.
13155         * lib/unistr/u8-strspn.c: New file.
13156         * lib/unistr/u16-strspn.c: New file.
13157         * lib/unistr/u32-strspn.c: New file.
13158         * lib/unistr/u-strspn.h: New file.
13159
13160         * modules/unistr/u8-strstr: New file.
13161         * modules/unistr/u16-strstr: New file.
13162         * modules/unistr/u32-strstr: New file.
13163         * lib/unistr/u8-strstr.c: New file.
13164         * lib/unistr/u16-strstr.c: New file.
13165         * lib/unistr/u32-strstr.c: New file.
13166         * lib/unistr/u-strstr.h: New file.
13167
13168         * modules/unistr/u8-strtok: New file.
13169         * modules/unistr/u16-strtok: New file.
13170         * modules/unistr/u32-strtok: New file.
13171         * lib/unistr/u8-strtok.c: New file.
13172         * lib/unistr/u16-strtok.c: New file.
13173         * lib/unistr/u32-strtok.c: New file.
13174         * lib/unistr/u-strtok.h: New file.
13175
13176         * modules/unistr/u8-uctomb: New file.
13177         * modules/unistr/u16-uctomb: New file.
13178         * modules/unistr/u32-uctomb: New file.
13179         * lib/unistr/u8-uctomb.c: New file.
13180         * lib/unistr/u16-uctomb.c: New file.
13181         * lib/unistr/u32-uctomb.c: New file.
13182
13183         * MODULES.html.sh (Unicode string functions): Add the new modules.
13184
13185 2007-01-08  Bruno Haible  <bruno@clisp.org>
13186
13187         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
13188         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
13189         subdirectories.
13190
13191 2007-01-08  Karl Berry  <karl@gnu.org>
13192
13193         * doc/error.texi: mention that main() fns must set program_name
13194         when progname is used.
13195
13196 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
13197
13198         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
13199         WCTYPE_H is empty, for the benefit of builds from non-distclean
13200         directories.  Problem reported by Eric Blake in
13201         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
13202
13203 2007-01-08  Bruno Haible  <bruno@clisp.org>
13204
13205         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
13206         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
13207         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
13208         PROVIDE_CANONICALIZE_FILENAME_MODE.
13209         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
13210
13211 2007-01-08  Bruno Haible  <bruno@clisp.org>
13212
13213         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
13214         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
13215         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
13216         * lib/fts.c: Likewise.
13217         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
13218
13219 2006-12-25  Bruno Haible  <bruno@clisp.org>
13220
13221         * modules/utf8-ucs4-safe: New file.
13222         * lib/utf8-ucs4-safe.h: New file.
13223         * lib/unistr/utf8-ucs4-safe.c: New file.
13224
13225         * modules/utf16-ucs4-safe: New file.
13226         * lib/utf16-ucs4-safe.h: New file.
13227         * lib/unistr/utf16-ucs4-safe.c: New file.
13228
13229         * MODULES.html.sh (Unicode string functions): Add the new modules.
13230
13231 2007-01-08  Bruno Haible  <bruno@clisp.org>
13232
13233         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
13234         (Depends-on): Add unitypes.
13235         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
13236         (u8_mbtouc_aux): Move out to separate file.
13237         (u8_mbtouc): Use ucs4_t, uint8_t types.
13238         * lib/unistr/utf8-ucs4.c: New file.
13239
13240         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
13241         (Depends-on): Add unitypes.
13242         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
13243         (u16_mbtouc_aux): Move out to separate file.
13244         (u16_mbtouc): Use ucs4_t, uint16_t types.
13245         * lib/unistr/utf16-ucs4.c: New file.
13246
13247         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
13248         (Depends-on): Add unitypes.
13249         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
13250         (u8_uctomb_aux): Move out to separate file.
13251         (u8_uctomb): Use ucs4_t, uint8_t types.
13252         * lib/unistr/ucs4-utf8.c: New file.
13253
13254         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
13255         (Depends-on): Add unitypes.
13256         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
13257         (u16_uctomb_aux): Move out to separate file.
13258         (u16_uctomb): Use ucs4_t, uint16_t types.
13259         * lib/unistr/ucs4-utf16.c: New file.
13260
13261 2006-12-25  Bruno Haible  <bruno@clisp.org>
13262
13263         * modules/unitypes: New file.
13264         * lib/unitypes.h: New file.
13265         * MODULES.html.sh (func_all_modules): New section "Unicode string
13266         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
13267         this section. Add unitypes.
13268
13269 2007-01-08  Bruno Haible  <bruno@clisp.org>
13270
13271         Avoid variable names that conflict with those from libtool.
13272         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
13273         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
13274         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
13275         library_names_spec to acl_library_names_spec, hardcode_* to
13276         acl_hardcode_*.
13277         Reported by Ralf Wildenhues.
13278
13279 2007-01-08  Bruno Haible  <bruno@clisp.org>
13280
13281         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
13282         definition.
13283         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
13284         definition.
13285         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
13286         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
13287         definition.
13288         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
13289         definition.
13290         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
13291         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
13292         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
13293         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
13294         definition.
13295         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
13296         definition.
13297         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
13298         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
13299         GC_USE_<algorithm>.
13300         * lib/gc-libgcrypt.c: Likewise.
13301         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
13302         * modules/gc-arctwo (configure.ac): Likewise.
13303         * modules/gc-des (configure.ac): Likewise.
13304         * modules/gc-hmac-md5 (configure.ac): Likewise.
13305         * modules/gc-hmac-sha1 (configure.ac): Likewise.
13306         * modules/gc-md2 (configure.ac): Likewise.
13307         * modules/gc-md4 (configure.ac): Likewise.
13308         * modules/gc-md5 (configure.ac): Likewise.
13309         * modules/gc-random (configure.ac): Likewise.
13310         * modules/gc-rijndael (configure.ac): Likewise.
13311         * modules/gc-sha1 (configure.ac): Likewise.
13312
13313 2007-01-08  Bruno Haible  <bruno@clisp.org>
13314
13315         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
13316         macro definition.
13317         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
13318         definition.
13319         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
13320         definition.
13321         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
13322         * modules/fcntl-safer (configure.ac): Likewise.
13323         * modules/fopen-safer (configure.ac): Likewise.
13324         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
13325         GNULIB_FWRITEERROR macro definition.
13326
13327 2007-01-08  Bruno Haible  <bruno@clisp.org>
13328
13329         * m4/gnulib-common.m4: New file.
13330         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
13331         (func_get_filelist): Add m4/gnulib-common.m4.
13332
13333 2007-01-08  Bruno Haible  <bruno@clisp.org>
13334
13335         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
13336         command.
13337
13338 2007-01-08  Jim Meyering  <jim@meyering.net>
13339
13340         Use a more robust test for a "can't happen" condition.
13341         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
13342         narrowed the st_size value.  Presuming the "can't happen" condition
13343         is true, that narrowing could conceivably convert an invalid st_size
13344         value into a valid one.  Instead, use a change based on Matthew
13345         Woehlke's original patch.
13346
13347         Slight readability improvement: use an assert-like macro
13348         in place of literal "abort ()" uses.
13349         * lib/fts.c (fts_assert): Define.
13350         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
13351         Use this macro instead of a bare 'abort'.
13352
13353 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
13354
13355         Don't worry about using IRIX 5.3's wctype.h broken definitions;
13356         simply work around them.
13357         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
13358         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
13359         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
13360         declaring.
13361         Don't bother to define as macros, since the standard doesn't require it.
13362         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
13363         longer worry about IRIX 5.3.
13364         (HAVE_WCTYPE_CTMP_BUG): Remove.
13365
13366 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
13367
13368         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
13369         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
13370         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
13371         Problems reported by Georg Schwarz for IRIX 5.3.
13372
13373         * gnulib-tool (autoconf_minversion): Take the maximum version number
13374         found, not the minimum.  Problem reported by James Youngman.
13375
13376 2007-01-03  Karl Berry  <karl@gnu.org>
13377
13378         * doc/error.texi: new file, explaining interaction with progname.
13379         * doc/gnulib.texi: include it.  Update copyright.
13380
13381 2007-01-03  Simon Josefsson  <simon@josefsson.org>
13382
13383         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
13384         AC_CANONICAL_HOST, to improve autobuild outputs.
13385
13386 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
13387             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13388
13389         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
13390         sockets, server sockets, and other file descriptors.  Count errors
13391         to compute the return value.  Reorder the code a bit to be easier
13392         to follow.  Don't set event bits that were not requested (except
13393         POLLERR and POLLHUP).
13394
13395 2007-01-01  Bruno Haible  <bruno@clisp.org>
13396
13397         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
13398
13399 2007-01-03  Jim Meyering  <jim@meyering.net>
13400
13401         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
13402
13403 2007-01-02  Bruno Haible  <bruno@clisp.org>
13404
13405         * modules/settime (Include): Require timespec.h.
13406         * modules/nanosleep (Include): Likewise.
13407
13408 2007-01-01  Bruno Haible  <bruno@clisp.org>
13409
13410         * gnulib-tool (func_emit_copyright_notice): Bump year.
13411         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
13412
13413 2007-01-01  Bruno Haible  <bruno@clisp.org>
13414
13415         Improve support for OpenBSD.
13416         * build-aux/config.rpath (libname_spec): Export.
13417         (library_names_spec): New variable. Export.
13418         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
13419         library_names_spec from the config.rpath output. Locate shared library
13420         through the name pattern in library_names_spec.
13421
13422 2007-01-01  Eric Blake  <ebb9@byu.net>
13423
13424         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
13425
13426 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
13427
13428         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
13429         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
13430         assume the C locale, and avoid an "eval" that could cause trouble.
13431         Problem with SORT reported by Bob Proulx.
13432
13433         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
13434         Define.  Trivial patch from Henning Nielsen Lund, originally
13435         sent to bug-grep@gnu.org today.
13436
13437 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
13438
13439         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
13440         struct stat.  Problem reported by Henning Nielsen Lund.
13441         * lib/acl.c: Include acl.h first, to check interface.  Don't
13442         bother to include sys/types.h and sys/stat.h again.
13443
13444 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
13445
13446         Import the following change from libc; problem reported by
13447         Sven Verdoolaege.
13448
13449         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
13450
13451         [BZ #1373]
13452         * lib/argp.h: Remove __NTH for __argp_usage inline function.
13453
13454 2006-12-28  Jim Meyering  <jim@meyering.net>
13455
13456         * build-aux/announce-gen: Do not assume that the package
13457         builds any of tar.gz, tar.bz2, and .xdelta files.
13458         Suggestion from Simon Josefsson.
13459
13460 2006-12-28  Simon Josefsson  <simon@josefsson.org>
13461
13462         * modules/announce-gen: New file.
13463
13464 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13465
13466         * lib/mbchar.h: Just include <wctype.h>; the wctype module
13467         handles its gotchas now.
13468         * lib/mbswidth.c: Likewise.
13469         * lib/wcwidth.h: Likewise.
13470         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
13471         and iswcntrl; the wctype module does this stuff now.
13472         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
13473         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13474         * modules/mbchar (Depends-on): Add wctype.
13475         * modules/mbswidth (Depends-on): Likewise.
13476         * modules/wcwidth (Depends-on): Likewise.
13477
13478 2006-12-27  Eric Blake  <ebb9@byu.net>
13479
13480         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
13481         module uses more than what <wctype.h> is required to provide.
13482
13483 2006-12-26  Eric Blake  <ebb9@byu.net>
13484
13485         * gnulib-tool (sed_extract_prog): Avoid space-tab.
13486
13487 2006-12-26  Eric Blake  <ebb9@byu.net>
13488
13489         * modules/absolute-header: New module.
13490         * modules/fcntl (Depends-on): Depend on it.
13491         * modules/inttypes (Depends-on): Likewise.
13492         * modules/stdint (Depends-on): Likewise.
13493         * modules/sys_stat (Depends-on): Likewise.
13494         * modules/wctype (Depends-on): Likewise.
13495         * MODULES.html.sh (Support for building libraries and
13496         executables): Document it.
13497
13498 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
13499
13500         * gnulib-tool (SED): Remove, undoing previous change.
13501         The problem was that it broke coreutils on Solaris, because
13502         "sed --posix" leaked into a makefile.
13503         (sed): New alias, if 'alias' and GNU sed.
13504
13505 2006-12-24  Jim Meyering  <jim@meyering.net>
13506
13507         Work around an fchownat bug in glibc-2.4:
13508         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
13509         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
13510         in spite of the -P option.
13511         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
13512         New macros.
13513         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
13514         * modules/openat (Files): Add lib/fchownat.c.
13515         * lib/openat.c (fchownat): Don't define here.  Move to...
13516         * lib/fchownat.c: ...this new file.
13517
13518 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13519
13520         Fix bug reported by Bruno Haible in
13521         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
13522         where quotearg.c didn't compile on Mac OS X 10.2 because it
13523         lacks <wchar.h> and wint_t.
13524         * lib/wctype_.h (__wctype_wint_t): New type.
13525         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
13526         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
13527         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
13528         Arg is now of type __wctype_wint_t, not wint_t.
13529         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
13530         substitute HAVE_WINT_T.
13531         * modules/wctype (Files): Add m4/wint_t.m4.
13532         (wctype.h): Substitute HAVE_WINT_T.
13533
13534 2006-12-23  Bruno Haible  <bruno@clisp.org>
13535
13536         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
13537
13538 2006-12-23  Bruno Haible  <bruno@clisp.org>
13539
13540         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
13541         S_ISLNK.
13542         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
13543         mingw.
13544
13545 2006-12-22  Bruno Haible  <bruno@clisp.org>
13546
13547         * lib/copy-file.c: Include acl.h.
13548         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
13549         Close the file descriptors only after being done with copy_acl.
13550         * modules/copy-file (Depends-on): Add acl.
13551
13552 2006-12-22  Bruno Haible  <bruno@clisp.org>
13553
13554         * gnulib-tool (SED): New variable.
13555         Use $SED instead of sed everywhere.
13556
13557 2006-12-22  Bruno Haible  <bruno@clisp.org>
13558
13559         * modules/no-c++: New file.
13560         * m4/no-c++.m4: New file.
13561         * MODULES.html.sh (Support for building libraries and executables):
13562         Add no-c++.
13563
13564 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13565
13566         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
13567         Include <limits.h>, and use its INT_MAX to rewrite the
13568         j loop so that it does not overflow 'int'.  Problem reported by
13569         Ralf Wildenhues in
13570         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
13571         Play it safe by shifting left by 1 rather than multiplying by 2,
13572         as GCC is less likely to optimize this away when the value
13573         is signed (when it assumes overflow leads to undefined behavior).
13574         Also, don't assume time_t uses two's complement.
13575
13576 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
13577
13578         * MODULES.html.sh: New module wctype.
13579         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
13580         * lib/fnmatch.c: Don't bother to include <wchar.h> before
13581         <wctype.h>, since the new wctype module should fix this.
13582         * lib/quotearg.c: Include <wctype.h> unconditionally, since
13583         the wctype module should arrange for it.
13584         * lib/regex_internal.h: Likewise.
13585         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
13586         since the wctype module should handle this now.
13587         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
13588         * modules/fnmatch (Depends-on): Add wctype.
13589         * modules/quotearg (Depends-on): Likewise.
13590         * modules/regex (Depends-on): Likewise.
13591
13592 2006-12-19  Bruno Haible  <bruno@clisp.org>
13593
13594         * lib/strdup.h [C++]: Wrap definitions in extern "C".
13595         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
13596
13597 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13598
13599         * modules/savewd (Depends-on): Fix dependency on fcntl.
13600
13601 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
13602
13603         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
13604         conforms to C99, rather than relying on the user's environment
13605         setting of STDINT_H.
13606
13607 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
13608         and Eric Blake  <ebb9@byu.net>
13609
13610         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
13611         This is more consistent with the other defines here.
13612         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
13613         Port to z/OS.  Problem reported by Paul Gilmartin.
13614         Change local vars to use gl_ prefix rather than ac_.
13615         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
13616         with other defines.
13617         * modules/double-slash-root: New module.
13618         * modules/dirname (Files): Remove m4/double-slash-root.m4.
13619         (Depends-on): Add double-slash-root.
13620         * MODULES.html.sh (File system functions): Mention new module.
13621
13622 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
13623
13624         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
13625         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
13626         This is for the benefit of gzip, which doesn't do i18n.
13627
13628 2006-12-12  Jim Meyering  <jim@meyering.net>
13629
13630         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
13631         Reported by Andreas Schwab <schwab@suse.de>.
13632
13633 2006-12-12  Bruno Haible  <bruno@clisp.org>
13634
13635         Merge these changes.
13636         2006-09-05  Bruno Haible  <bruno@clisp.org>
13637         * lib/iconvme.c (iconv_string): No need to save and restore errno when
13638         iconv_alloc succeeded.
13639         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
13640         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
13641         test for " && dest " at the end - dest is always != NULL there. Call
13642         iconv with 4xNULL arguments initially, to reset the state. Call iconv
13643         with 2xNULL arguments, also to flush the state storage. Handle the
13644         IRIX iconv behaviour. Realloc the final result, to throw away unused
13645         memory.
13646
13647 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
13648
13649         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
13650         and fchmodat unconditionally, since glibc 2.4 has them.
13651         Problem reported by Arkadiusz Miskiewicz.
13652
13653 2006-12-10  Bruno Haible  <bruno@clisp.org>
13654
13655         * gnulib-tool (func_import): Show the include files only for those
13656         modules that are copied and specified.
13657         Reported by Karl Berry.
13658
13659 2006-12-08  Jim Meyering  <jim@meyering.net>
13660
13661         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
13662         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
13663
13664         * build-aux/announce-gen: Add two new options, both optional:
13665         --bootstrap-tools=TOOL_LIST
13666               a comma-separated list of tools, e.g.,
13667               autoconf,automake,bison,gnulib
13668         --gnulib-snapshot-date=DATE
13669               if gnulib is in the bootstrap tool list,
13670               then report this as the snapshot date.
13671               If not specified, use the current date/time.
13672               If you specify a date here, be sure it's UTC.
13673
13674 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13675
13676         * tests/test-argp-2.sh: Fix test to match actual output.
13677         (func_compare): Fix sed script to be portable.
13678
13679 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
13680
13681         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
13682         workaround for this case.  It is not autoconfigured now; offhand
13683         it's hard to see how to autoconfigure it.
13684
13685 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
13686
13687         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
13688         a directory that is about to be chowned.  Such a directory's
13689         initial file permissions should permit the owner only and this
13690         should not be changed until after the chown, since the group and
13691         other bits would be incorrect if they granted permission before
13692         the chown.
13693
13694         Fix porting problem for iswctype reported by Georg Schwarz in:
13695         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
13696         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
13697         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
13698         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
13699         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13700
13701 2006-12-03  Jim Meyering  <jim@meyering.net>
13702
13703         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
13704         p->fts_statp may not yet be defined.
13705         (fts_read): Instead, set it in the caller, once p->fts_statp is
13706         sure to be defined, and corresponds to a top-level directory.
13707         This bug made du -x fail.  Here's the coreutils test case:
13708         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
13709         Reported by Mike Frysinger.
13710
13711 2006-12-01  Jim Meyering  <jim@meyering.net>
13712
13713         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
13714         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
13715         Reported by Simon Josefsson.
13716
13717 2006-11-30  Jim Meyering  <jim@meyering.net>
13718
13719         * m4/warning.m4: Use the all-permissive copyright notice
13720         recommended by RMS (rather than LGPL).
13721         * m4/vararrays.m4: Likewise.
13722         * m4/flexmember.m4: Likewise.
13723
13724 2006-11-29  Bruno Haible  <bruno@clisp.org>
13725
13726         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
13727         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
13728         using +=.
13729         Reported by Simon Josefsson <simon@josefsson.org>.
13730
13731 2006-11-28  James Youngman <jay@gnu.org>
13732
13733         * README: Advise users that they might find the bug-gnulib@gnu.org
13734         and autotools-announce@gnu.org mailing lists useful.
13735
13736 2006-11-28  Bruno Haible  <bruno@clisp.org>
13737
13738         * m4/ptrdiff_max.m4: Remove file.
13739
13740 2006-11-21  Bruno Haible  <bruno@clisp.org>
13741
13742         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
13743         _AC_COMPUTE_INT.
13744         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
13745         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
13746         _AC_COMPUTE_INT.
13747         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
13748         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
13749         _AC_COMPUTE_INT.
13750         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
13751
13752 2006-11-28  Jim Meyering  <jim@meyering.net>
13753
13754         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
13755         warning from "gcc -Wshadow" about shadowing the builtin.
13756
13757 2006-11-27  Bruno Haible  <bruno@clisp.org>
13758
13759         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
13760         _AC_COMPUTE_INT.
13761         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
13762
13763 2006-11-27  Bruno Haible  <bruno@clisp.org>
13764             Paul Eggert  <eggert@cs.ucla.edu>
13765
13766         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
13767
13768 2006-11-26  Bruno Haible  <bruno@clisp.org>
13769
13770         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
13771         noinst_LTLIBRARIES.
13772
13773 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
13774             Bruno Haible  <bruno@clisp.org>
13775
13776         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
13777         if compiling with "gcc -ansi".
13778
13779 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
13780
13781         Fix some incompatibilities with gcc -ansi -pedantic.
13782         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
13783         if compiling pedantically with GCC, unless it's C99 or later.
13784         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
13785         it mishandles gcc -ansi -pedantic as well.
13786         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
13787         if gcc -pedantic.
13788         * lib/regexec.c (check_node_accept_bytes): Don't use auto
13789         initializers for struct if -pedantic, unless it's C99 or later.
13790
13791 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
13792
13793         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
13794         Don't close an fd more than once. Identical atimes indicate
13795         success, not failure.
13796
13797 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
13798
13799         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
13800
13801 2006-11-23  Jim Meyering  <jim@meyering.net>
13802
13803         * build-aux/announce-gen: New file.  From coreutils.
13804
13805 2006-11-22  Jim Meyering  <jim@meyering.net>
13806
13807         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
13808         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
13809         (fts_read): Use a temporary to narrow the overused st_size member
13810         before using it in a switch statement.  Reported by Matthew Woehlke.
13811
13812         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
13813         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
13814
13815 2006-11-20  Bruno Haible  <bruno@clisp.org>
13816
13817         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
13818         changequote instead of pairs of brackets.
13819         Reported by Andreas Schwab <schwab@suse.de>.
13820
13821 2006-11-21  Jim Meyering  <jim@meyering.net>
13822
13823         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
13824         so as to remain compatible with older compilers.
13825         Patch from Michael Deutschmann.
13826
13827 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
13828
13829         * MODULES.html.sh (File system functions): Add openat.
13830
13831         * lib/openat.h (rpl_fstatat): New macro, if
13832         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
13833         (fstatat): Define to rpl_fstatat under the same conditions,
13834         unless COMPILING_FSTATAT.
13835         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
13836         seems to have the bug.
13837         * lib/fstatat.c: New file.
13838         * modules/openat (Files): Add it.
13839
13840 2006-11-20  Bruno Haible  <bruno@clisp.org>
13841
13842         * Makefile: New file.
13843
13844 2006-11-20  Jim Meyering  <jim@meyering.net>
13845
13846         The beginnings of syntax-related checks for gnulib.
13847         * lib/Makefile: New file.
13848         * lib/t-idcache: New script.  Ensure that the two halves of
13849         idcache.c stay in sync.
13850
13851         * lib/idcache.c: Adjust comments in user- and group- portions to
13852         be more accurate, and to be consistent with one another.
13853
13854 2006-11-20  Jim Meyering  <jim@meyering.net>
13855
13856         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
13857         continue using the flexible array member (thus, this module performs
13858         half as many malloc calls), with the addition that...
13859         (getgroup, getuser): Consistently record a non-match via an empty
13860         "name" string, and map an empty string match to a NULL return value.
13861         * modules/idcache (Depends-on): Re-add flexmember.
13862
13863         * lib/idcache.c (getuser): Remove all uses of the register keyword.
13864         (getuidbyname, getgroup, getgidbyname): Likewise.
13865
13866         Use cleaner syntax: NULL rather than 0.
13867         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
13868
13869 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
13870
13871         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
13872         It mishandled the case where the group was missing.
13873         Problem reported by Greg Schafer.
13874         * modules/idcache: Likewise.
13875
13876 2006-11-18  Jim Meyering  <jim@meyering.net>
13877
13878         * check-module (%exempt_header): Add exception for some
13879         conditionally-included headers.
13880
13881         * modules/i-ring (Depends-on): Add verify.
13882         (License): Change to LGPL.
13883
13884 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
13885
13886         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
13887         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
13888         and inttostr.h.  Use snprintf rather than uinttostr, so that
13889         LGPLed code doesn't depend on GPLed.
13890
13891 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
13892
13893         * modules/inline (License): Change from GPL to LGPL.
13894
13895 2006-11-17  Jim Meyering  <jim@meyering.net>
13896
13897         * modules/d-type (License): Switch to LGPL.
13898
13899 2006-11-15  Bruno Haible  <bruno@clisp.org>
13900
13901         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
13902
13903 2006-11-15  Eric Blake  <ebb9@byu.net>
13904
13905         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
13906         the module dependency.
13907
13908 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13909             Bruno Haible  <bruno@clisp.org>
13910
13911         * gnulib-tool (func_create_testdir): Add license consistency check.
13912
13913 2006-11-15  Eric Blake  <ebb9@byu.net>
13914
13915         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
13916         random "(cached)" in configure output.
13917
13918 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13919
13920         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
13921         test for conforming inttypes.h is both announced and cached.
13922
13923         * MODULES.html.sh (seen_modules, seen_files): New variables.
13924         (func_module): Rewrite to use a few less gnulib-tool and sed
13925         invocations.  Avoid a couple of quadratic algorithms for ...
13926         (missed_modules, missed_files): ... these, with ...
13927         (func_append, func_tmpdir): ... these new functions, from
13928         gnulib-tool.  Analogously, install traps for cleanup.
13929
13930         * tests/test-gc.c (main): Remove unused variables.
13931         * tests/test-read-file.c: Include stdlib.h, for 'free'.
13932
13933 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
13934
13935         * modules/inttostr (License): Change to LGPL.
13936
13937 2006-11-14  Eric Blake  <ebb9@byu.net>
13938
13939         * modules/tempname (License): Change to LGPL.
13940
13941 2006-11-14  Eric Blake  <ebb9@byu.net>
13942
13943         * doc/functions.texi (Function Portability): *printf functions on
13944         Cygwin now understand all POSIX size specifiers.
13945
13946 2006-11-14  Bruno Haible  <bruno@clisp.org>
13947
13948         * modules/c-ctype (License): Change to LGPL.
13949
13950 2006-11-12  Bruno Haible  <bruno@clisp.org>
13951
13952         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
13953         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
13954         for GNOME libraries, for which the include files are installed in
13955         subdirectories of $prefix/include.
13956
13957 2006-11-12  Bruno Haible  <bruno@clisp.org>
13958
13959         * m4/lib-link.m4: Require at least autoconf-2.54.
13960         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
13961         name to underscores for the --with option.
13962
13963 2006-11-13  Bruno Haible  <bruno@clisp.org>
13964
13965         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
13966         the tests directory.
13967         Reported by Ralf Wildenhues.
13968
13969 2006-11-13  Bruno Haible  <bruno@clisp.org>
13970
13971         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
13972         (func_emit_initmacro_end): Undo the override here.
13973         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
13974         Works around the famous automake error in coreutils.
13975
13976 2006-11-13  Eric Blake  <ebb9@byu.net>
13977
13978         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
13979         element, not its node.
13980
13981 2006-11-12  Bruno Haible  <bruno@clisp.org>
13982
13983         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
13984         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
13985
13986 2006-11-12  Bruno Haible  <bruno@clisp.org>
13987
13988         * gnulib-tool: New option --local-symlink.
13989         (func_usage): Document it.
13990         (lsymbolic): New variable.
13991         (func_import, func_create_testdir): If --symlink was not specified,
13992         test whether --local-symlink was specified and the file comes from
13993         the local_gnulib_dir.
13994
13995 2006-11-12  Bruno Haible  <bruno@clisp.org>
13996
13997         * gnulib-tool (func_ln): New function.
13998         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
13999
14000 2006-11-12  Bruno Haible  <bruno@clisp.org>
14001
14002         Finish support for source files in subdirectories.
14003         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
14004         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
14005         AUTOMAKE_OPTIONS.
14006         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
14007
14008 2006-11-12  Bruno Haible  <bruno@clisp.org>
14009
14010         * gnulib-tool (func_get_automake_snippet): Synthesize also an
14011         EXTRA_lib_SOURCES augmentation.
14012         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
14013
14014 2006-11-12  Jim Meyering  <jim@meyering.net>
14015
14016         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
14017         file descriptors.  This also averts a failure on systems with
14018         native openat support when a traversed directory lacks "x" access.
14019         * lib/fts_.h: Include "i-ring.h"
14020         (struct FTS) [fts_fd_ring]: New member.
14021         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
14022         (FCHDIR): Add parentheses.
14023         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
14024         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
14025         When descending, rather than simply closing the previous
14026         fts_cwd_fd value, push that file descriptor onto the ring.
14027         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
14028         (fts_open): Initialize the new fd_ring member.
14029         (fts_close): Clear the ring.
14030         (fts_safe_changedir): When possible, use our new fd_ring to skip
14031         the diropen and fstat and dev/ino comparison that would normally
14032         accompany a virtual `chdir ("..")'.
14033
14034         * modules/fts (Depends-on): Add i-ring.
14035         * modules/i-ring: New module.
14036         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
14037         * m4/i-ring.m4: New file.
14038
14039 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14040
14041         * gnulib-tool (func_create_testdir): Fix replacement of
14042         `build-aux' in configure.ac.  Run autotools in gltests
14043         subdirectory.
14044         (func_create_testdir, func_create_megatestdir, test): There is
14045         no need for '--force' in most autotool invocations in a new
14046         tree.  Actually fail the whole test if any of the tools, or the
14047         configure or make stages fail.
14048
14049         Sync from Automake.
14050         * build-aux/gnupload: Revert last change.  Add pointer to upload
14051         instructions of the GNU Maintenance Instructions.
14052         Suggestion by Karl Berry.
14053
14054 2006-11-10  Jim Meyering  <jim@meyering.net>
14055
14056         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
14057
14058 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
14059
14060         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
14061         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
14062         (bind_textdomain_codeset) [! ENABLE_NLS]:
14063         Evaluate all the arguments.  That way, callers get compatible behavior
14064         if the arguments have side effects.  Also, it avoids some GCC
14065         diagnostics in some cases; Joel E. Denny reported problems when Bison
14066         was configured with --enable-gcc-warnigs.
14067
14068 2006-11-10  Jim Meyering  <jim@meyering.net>
14069
14070         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
14071         relevant options in CFLAGS (like -O, -fno-inline) are taken into
14072         account.
14073
14074 2006-11-10  Jim Meyering  <jim@meyering.net>
14075
14076         * modules/inline: New file/module.
14077         * modules/xalloc (Files): Remove m4/inline.m4.
14078         (Depends-on): Add inline, instead.
14079         * modules/oset: Likewise.
14080         * modules/list: Likewise.
14081
14082 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
14083
14084         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
14085         Problem reported by Matthew Woehlke.
14086
14087 2006-11-09  Bruno Haible  <bruno@clisp.org>
14088
14089         * lib/tempname.c (gen_tempname): Remove variant that invokes
14090         __gen_tempname.
14091         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
14092         __gen_tempname.
14093
14094 2006-11-08  Bruno Haible  <bruno@clisp.org>
14095
14096         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
14097         to 'yes' instead of 'cross-compiling'.
14098
14099 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
14100
14101         * lib/quotearg.h (quotearg_free): New decl.
14102         * lib/quotearg.c (quotearg_free): New function.
14103         (slot0, nslots, slotvec0, slotvec):
14104         Now file-scope so that quotearg_free can get at them.
14105
14106 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14107
14108         Sync from Automake.
14109         * build-aux/gnupload: Add missing 'gnu' to example URL.
14110         Report by Karl Berry.
14111
14112 2006-11-08  Bruno Haible  <bruno@clisp.org>
14113
14114         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
14115         Suggested by Paul Eggert.
14116
14117 2006-11-08  Jim Meyering  <jim@meyering.net>
14118
14119         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
14120         It's already included if !_LIBC.
14121         (fts_safe_changedir): Add a comment.
14122
14123 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
14124
14125         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
14126         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
14127         Matthew Woehlke.
14128
14129         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
14130         definitions up, to avoid colliding with change below.
14131         (static_inline) [HAVE_INLINE]: New macro.
14132         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
14133         Provide extern decls when !HAVE_INLINE.  Do not define unless
14134         static_inline is defined, either by us or by xmalloc.c.  Use
14135         static_inline rather than static inline.
14136         (XCALLOC): Optimize sizeof(T) = 1 case.
14137         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
14138
14139 2006-11-07  Bruno Haible  <bruno@clisp.org>
14140
14141         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
14142         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
14143         AC_C_INLINE.
14144         * modules/xalloc (Files): Add m4/inline.m4.
14145
14146 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14147
14148         * README: Fix typo.
14149         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
14150         (Miscellanous Notes): ...from this.
14151
14152 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
14153
14154         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
14155         Mention that offsetof should be used instead of sizeof.
14156         From Bruno Haible.
14157
14158 2006-11-07  Bruno Haible  <bruno@clisp.org>
14159
14160         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
14161
14162 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
14163
14164         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
14165         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
14166         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
14167         (gl_tree_add_before, gl_tree_add_after):
14168         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
14169         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
14170         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
14171         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
14172         (gl_linked_add_after, gl_linked_add_at): Likewise.
14173         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
14174         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
14175         (gl_tree_add_before, gl_tree_add_after): Likewise.
14176         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
14177         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
14178         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
14179
14180 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14181
14182         * lib/gl_oset.h: Use C comment style, not C++ comment style.
14183
14184 2006-11-06  Bruno Haible  <bruno@clisp.org>
14185
14186         * m4/inline.m4: New file.
14187         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
14188         * modules/list (Files): Add m4/inline.m4.
14189         * modules/oset (Files): Likewise.
14190
14191 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
14192
14193         * lib/idcache.c: Include <stddef.h>, for offsetof.
14194         (struct userid.name): Change from char * to a flexible array member.
14195         All uses changed.
14196         * modules/idcache (Depends-on): Add flexmember.
14197
14198         * MODULES.html.sh (Core language properties): New module flexmember.
14199         * modules/flexmember, m4/flexmember.m4: New files.
14200
14201         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
14202         inline functions that are identical with the old xnmalloc_inline,
14203         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
14204         that we can avoid some unnecessary integer multiplications and
14205         divisions in the common case where the element size is known at
14206         compile time.
14207         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
14208         needed.
14209         (xnboundedmalloc): Remove.
14210         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
14211         arguments, for consistency with rest of this header.
14212         (xcharalloc): Rewrite using XNMALLOC.
14213         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
14214         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
14215         versions have been moved to lib/xalloc.h and renamed to be the
14216         non-*_inline versions.
14217         (xmalloc, xrealloc): Implement without reference to the xnmalloc
14218         and xnrealloc functions, since those functions are now inline and
14219         now call us.
14220         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
14221         renaming described above.
14222         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
14223         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
14224         captures the dependency in AC_C_INLINE.
14225
14226         New module canonicalize-lgpl, proposed by Charles Wilson in
14227         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
14228         with a few small changes afterwards.
14229         * MODULES.html.sh (File system functions): New module
14230         canonicalize-lgpl.
14231         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
14232         and canonicalize_file_name.
14233         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
14234         * modules/canonicalize-lgpl: New files.
14235
14236 2006-11-05  Bruno Haible  <bruno@clisp.org>
14237
14238         * gnulib-tool (func_import, func_create_testdir): Create directories
14239         also for files in subdirectories of lib/.
14240
14241 2006-11-05  Bruno Haible  <bruno@clisp.org>
14242
14243         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
14244         ANSI C compliant.
14245
14246 2006-11-03  Bruno Haible  <bruno@clisp.org>
14247
14248         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
14249         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
14250         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
14251         (xnboundedmalloc): New inline function.
14252         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
14253         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
14254         xmalloc.
14255         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
14256         xmalloc.
14257         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
14258         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
14259         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
14260         xmalloc.
14261         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
14262         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
14263         xmalloc.
14264         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
14265         gl_tree_add_after): Use XMALLOC instead of xmalloc.
14266         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
14267         xmalloc.
14268         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
14269         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
14270         gl_tree_add_after): Use XMALLOC instead of xmalloc.
14271         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
14272         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
14273         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
14274         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
14275
14276 2006-11-03  Bruno Haible  <bruno@clisp.org>
14277
14278         * lib/c-ctype.h [C++]: Define functions without name mangling.
14279         * lib/fwriteerror.h [C++]: Likewise.
14280         * lib/gcd.h [C++]: Likewise.
14281         * lib/linebreak.h [C++]: Likewise.
14282
14283 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
14284
14285         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
14286         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
14287         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
14288         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
14289         Check for functions and headers just once.
14290         Check for declaration of canonicalize_file_name.
14291         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
14292
14293 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
14294
14295         * gnulib-tool (func_import): Fix typo in actioncmd.
14296
14297 2006-11-02  Bruno Haible  <bruno@clisp.org>
14298
14299         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
14300         newline sequence in the Makefile.am snippet as a space, like "make"
14301         does.
14302         Reported by Roger Persson <perrog@gmail.com>.
14303
14304 2006-11-01  Bruno Haible  <bruno@clisp.org>
14305
14306         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
14307         already declared in <string.h>.
14308         * lib/strcase.h (strncasecmp): Don't declare it if yes.
14309
14310 2006-11-01  Bruno Haible  <bruno@clisp.org>
14311
14312         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
14313         * lib/strcase.h: Include <string.h>.
14314         (strcasecmp): Define to rpl_strcasecmp here.
14315
14316 2006-11-01  Bruno Haible  <bruno@clisp.org>
14317
14318         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
14319
14320 2006-11-01  Eric Blake  <ebb9@byu.net>
14321
14322         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
14323
14324         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
14325
14326 2006-10-29  Bruno Haible  <bruno@clisp.org>
14327
14328         Make it compile in C++ mode.
14329         * lib/full-write.c (full_rw): Add a cast.
14330
14331 2006-11-01  Bruno Haible  <bruno@clisp.org>
14332
14333         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
14334         be POSIX compliant.
14335         Reported by Roger Persson <perrog@gmail.com>.
14336
14337 2006-11-01  Eric Blake  <ebb9@byu.net>
14338
14339         * lib/getopt_.h: Fix comments.
14340
14341 2006-10-31  Eric Blake  <ebb9@byu.net>
14342
14343         * modules/tmpdir (Depends-on): Add sys_stat.
14344         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
14345         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
14346         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
14347         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
14348         tempname.
14349
14350 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
14351
14352         Avoid some C++ diagnostics reported by Bruno Haible.
14353         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
14354         xmalloc.
14355         (quotearg_alloc): Use xcharalloc rather than xmalloc.
14356         (struct slotvec): Move to top level.
14357         (quotearg_n_options): Rewrite to avoid xmalloc.
14358         * lib/xalloc.h (xcharalloc): New function.
14359         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
14360         [defined __cplusplus]: Add function template that provides result
14361         type propagation.  This part of the change is from Bruno Haible.
14362
14363 2006-10-29  Bruno Haible  <bruno@clisp.org>
14364
14365         Make it compile in C++ mode.
14366         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
14367         * lib/strnlen1.c (strnlen1): Cast memchr result.
14368         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
14369         * lib/clean-temp.c (string_equals, string_hash): Add casts.
14370         (create_temp_dir): Rename local variable 'template'.
14371         (compile_csharp_using_sscli): Add cast.
14372         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
14373         * lib/findprog.c (find_in_path): Likewise.
14374         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
14375         * lib/wait-process.c (register_slave_subprocess): Likewise.
14376
14377 2006-10-22  Bruno Haible  <bruno@clisp.org>
14378
14379         * modules/tsearch: New file.
14380         * lib/tsearch.h: New file.
14381         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
14382         * m4/tsearch.m4: New file.
14383         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
14384
14385 2006-10-29  Eric Blake  <ebb9@byu.net>
14386
14387         * lib/arcfour.c: Assume config.h.
14388         * lib/arctwo.c: Likewise.
14389         * lib/base64.c: Likewise.
14390         * lib/check-version.c: Likewise.
14391         * lib/crc.c: Likewise.
14392         * lib/des.c: Likewise.
14393         * lib/gc-gnulib.c: Likewise.
14394         * lib/gc-libgcrypt.c: Likewise.
14395         * lib/gc-pbkdf2-sha1.c: Likewise.
14396         * lib/getaddrinfo.c: Likewise.
14397         * lib/getdelim.c: Likewise.
14398         * lib/getline.c: Likewise.
14399         * lib/hmac-md5.c: Likewise.
14400         * lib/hmac-sha1.c: Likewise.
14401         * lib/iconvme.c: Likewise.
14402         * lib/md2.c: Likewise.
14403         * lib/md4.c: Likewise.
14404         * lib/memxor.c: Likewise.
14405         * lib/read-file.c: Likewise.
14406         * lib/readline.c: Likewise.
14407         * lib/rijndael-alg-fst.c: Likewise.
14408         * lib/rijndael-api-fst.c: Likewise.
14409         * lib/xgetdomainname.c: Likewise.
14410
14411 2006-10-28  Eric Blake  <ebb9@byu.net>
14412
14413         * lib/xstrndup.c: Assume config.h.
14414
14415 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
14416
14417         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
14418         stat-macros.h is now for our own macros, whereas stat_h is for
14419         macros in the <sys/stat.h> name space.
14420         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
14421         (STAT_MACROS_H): Remove.
14422         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
14423         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
14424         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
14425         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
14426         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
14427         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
14428         Move these macros to ...
14429         * lib/stat_.h: here.  Don't include stat-macros.h.
14430         * lib/canonicalize.c: Don't include stat-macros.h.
14431         * lib/chown.c: Likewise.
14432         * lib/euidaccess.c: Likewise.
14433         * lib/file-type.c: Likewise.
14434         * lib/filemode.c: Likewise.
14435         * lib/glob.c: Likewise.
14436         * lib/isapipe.c: Likewise.
14437         * lib/lchown.c: Likewise.
14438         * lib/lstat.c: Likewise.
14439         * lib/mkdir-p.c: Likewise.
14440         * lib/rmdir.c: Likewise.
14441         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
14442         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
14443         unless mkdir isn't declared, to speed up 'configure'.
14444         Always create sys/stat.h, since it's unlikely any real sys/stat.h
14445         would define all the S_* symbols.
14446         * modules/canonicalize (Depends-on):
14447         Depend on sys_stat, not stat-macros.
14448         * modules/chown: Likewise.
14449         * modules/euidaccess: Likewise.
14450         * modules/filemode: Likewise.
14451         * modules/file-type: Likewise.
14452         * modules/glob: Likewise.
14453         * modules/isapipe: Likewise.
14454         * modules/lchown: Likewise.
14455         * modules/lstat: Likewise.
14456         * modules/mkancesdirs: Likewise.
14457         * modules/rmdir: Likewise.
14458         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
14459         * modules/modechange: Likewise.
14460         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
14461         (configure.ac): Remove gl_STAT_MACROS.
14462         * modules/sys_stat (Depends-on): Remove stat-macros.
14463
14464 2006-10-27  Bruno Haible  <bruno@clisp.org>
14465
14466         * m4/signed.m4: Remove file.
14467         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
14468         invocation.
14469         * modules/vasnprintf (Files): Remove m4/signed.m4.
14470
14471 2006-10-27  Bruno Haible  <bruno@clisp.org>
14472
14473         Update to GNU gettext 0.16.
14474         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
14475         m4/inttypes-h.m4, m4/signed.m4.
14476         * m4/gettext.m4: Update to GNU gettext 0.16.
14477         * m4/intl.m4: New file, from GNU gettext.
14478         * m4/intldir.m4: New file, from GNU gettext.
14479         * config/srclist.txt: Update
14480
14481 2006-10-27  Eric Blake  <ebb9@byu.net>
14482
14483         * MODULES.html.sh: Document tempname.
14484         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
14485         dependencies.
14486         (Files): Move lib/tempname.c...
14487         * modules/tempname: ...to this new module.
14488         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
14489         (gl_PREREQ_TEMPNAME): Move...
14490         * m4/tempname.m4: ...to this new file.
14491         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
14492         * modules/sys_stat (Depends-on): Add stat-macros.
14493         * lib/stat_.h (includes): Pick up stat macros.
14494         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
14495         if stat macros are broken.
14496         * lib/tempname.c (includes): No need to include "stat-macros.h".
14497         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
14498         (direxists, __path_search) [!_LIBC]: Don't compile these in
14499         gnulib; the tmpdir module covers that.
14500         * lib/tempname.h: New file.
14501
14502 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
14503
14504         * COPYING: Explain how gnulib-tool converts licence headers.
14505         Almost all wording by Eric Blake.
14506
14507 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
14508
14509         * lib/mbchar.h (is_basic_table): Make read-only.
14510         * lib/mbchar.c (is_basic_table): Likewise.
14511         Reported by John Darrington.
14512
14513 2006-10-25  Bruno Haible  <bruno@clisp.org>
14514
14515         * lib/progname.h (set_program_name): Undefine before defining.
14516
14517 2006-10-25  Bruno Haible  <bruno@clisp.org>
14518
14519         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
14520         false for non-gcc C++ compilers.
14521         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
14522
14523 2006-10-24  Bruno Haible  <bruno@clisp.org>
14524
14525         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
14526         iconv implementations like Irix iconv.
14527
14528 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
14529
14530         * modules/vararrays: New file.
14531         * m4/vararrays.m4: New file, taken from diffutils.
14532         * MODULES.html.sh: New module vararrays.
14533
14534 2006-10-24  Karl Berry  <karl@gnu.org>
14535
14536         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
14537         Don't call GNU Unix.
14538
14539 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14540
14541         * users.txt: Add Libtool.
14542
14543         Sync from Libtool:
14544
14545         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
14546
14547         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
14548         to gnulib's policy of including config.h unconditionally.
14549
14550 2006-10-24  Bruno Haible  <bruno@clisp.org>
14551
14552         * modules/wcwidth (Files): Add m4/wint_t.m4.
14553         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
14554         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
14555
14556 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
14557
14558         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
14559         to pacify GCC with some -W flags enabled.  Problem reported by
14560         Bruno Haible.
14561
14562 2006-10-24  Jim Meyering  <jim@meyering.net>
14563
14564         * MODULES.html.sh: Remove uinttostr.  It's not a module.
14565         Reported by Karl Berry.
14566
14567 2006-10-23  Bruno Haible  <bruno@clisp.org>
14568
14569         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
14570
14571 2006-10-24  Bruno Haible  <bruno@clisp.org>
14572
14573         * lib/gl_list.h: Use C comment style, not C++ comment style.
14574
14575 2006-10-23  Eric Blake  <ebb9@byu.net>
14576
14577         * lib/getaddrinfo.c (includes): Add missing include.
14578
14579 2006-10-23  Bruno Haible  <bruno@clisp.org>
14580             Paul Eggert  <eggert@cs.ucla.edu>
14581
14582         Ability to rename obstack_free.
14583         * lib/obstack.h (__obstack_free): New macro. Declare instead of
14584         obstack_free.
14585         (obstack_free): Invoke the __obstack_free macro.
14586         * lib/obstack.c (obstack_free): Use __obstack_free macro.
14587
14588 2006-10-23  Bruno Haible  <bruno@clisp.org>
14589             Paul Eggert  <eggert@cs.ucla.edu>
14590
14591         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
14592         __argc, __argv from the declaration. (They are defined as macros on
14593         mingw.)
14594
14595 2006-10-22  Bruno Haible  <bruno@clisp.org>
14596
14597         * doc/gnulib-intro.texi: New file.
14598         * doc/gnulib.texi: Include it.
14599
14600 2006-10-21  Bruno Haible  <bruno@clisp.org>
14601
14602         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
14603         "Introduction", "Miscellanous Notes", "Particular Modules".
14604
14605 2006-10-21  Bruno Haible  <bruno@clisp.org>
14606
14607         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14608         Change mostlyclean-local rule to avoid sh syntax error from bash
14609         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
14610
14611 2006-10-23  Jim Meyering  <jim@meyering.net>
14612
14613         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
14614         in place of snprintf.
14615
14616         * modules/inttostr (Files): Add lib/uinttostr.c.
14617         * lib/uinttostr.c (inttostr): New file/function.
14618         * lib/inttostr.h (uinttostr): Declare.
14619         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
14620         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
14621         Add uinttostr.
14622         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
14623
14624 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
14625
14626         * lib/canonicalize.c (ELOOP): Define if not already defined.
14627         Problem reported by Bruno Haible in
14628         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
14629
14630 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
14631
14632         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
14633         Problem reported by Perry Smith and Ville Laurikari.
14634
14635         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
14636         uses.
14637
14638 2006-10-19  Bruno Haible  <bruno@clisp.org>
14639
14640         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
14641         for mingw.
14642
14643 2006-10-19  Bruno Haible  <bruno@clisp.org>
14644
14645         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
14646         Needed for mingw.
14647
14648 2006-10-19  Bruno Haible  <bruno@clisp.org>
14649
14650         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
14651
14652 2006-10-19  Bruno Haible  <bruno@clisp.org>
14653
14654         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
14655         it.
14656
14657 2006-10-19  Bruno Haible  <bruno@clisp.org>
14658
14659         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
14660         invocation.
14661
14662 2006-10-19  Bruno Haible  <bruno@clisp.org>
14663
14664         * gnulib-tool (func_create_testdir): Don't include ftruncate and
14665         mountlist by default.
14666
14667 2006-10-16  Bruno Haible  <bruno@clisp.org>
14668
14669         * lib/c-strstr.c: Include c-strstr.h.
14670
14671 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
14672
14673         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
14674         in a slash.
14675
14676 2006-10-18  Bruno Haible  <bruno@clisp.org>
14677
14678         * lib/lock.h [C++]: Wrap definitions in extern "C".
14679
14680 2006-10-18  Bruno Haible  <bruno@clisp.org>
14681
14682         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
14683         gl_LIBOBJS list.
14684
14685 2006-10-18  Bruno Haible  <bruno@clisp.org>
14686
14687         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
14688
14689 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
14690
14691         * lib/xstrtol.h: Include gettext.h.
14692         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
14693         Problem reported by Eric Blake.
14694         * modules/xstrtol (Depends-on): Add gettext-h.
14695
14696 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
14697
14698         * lib/strftime.c (advance): New macro.
14699         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
14700         incomplete type, so you can't add 0 to it.  Problem and patch
14701         reported by Eelco Dolstra for dietlibc.
14702
14703 2006-10-18  Jim Meyering  <jim@meyering.net>
14704
14705         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
14706         type for a local, and rename it: s/up/user_proc/.
14707
14708 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
14709
14710         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
14711         READ_UTMP_USER_PROCESS.
14712         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
14713
14714 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
14715
14716         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
14717         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
14718
14719 2006-10-17  Eric Blake  <ebb9@byu.net>
14720
14721         * lib/sigprocmask.c (sigprocmask): Fix typo.
14722
14723         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
14724
14725         * modules/clean-temp (Makefile.am): Don't add to make output...
14726         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
14727         config.h.
14728
14729 2006-10-17  Bruno Haible  <bruno@clisp.org>
14730
14731         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
14732         differently if DEFAULT_TEXT_DOMAIN is set.
14733
14734 2006-10-16  Bruno Haible  <bruno@clisp.org>
14735
14736         * lib/clean-temp.c: Include fwriteerror.h.
14737
14738 2006-10-16  Bruno Haible  <bruno@clisp.org>
14739
14740         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
14741
14742 2006-10-16  Bruno Haible  <bruno@clisp.org>
14743
14744         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
14745         * lib/sigprocmask.h: Include <sys/types.h>.
14746         (sigset_t): Use the system's definition if present.
14747
14748 2006-10-17  Eric Blake  <ebb9@byu.net>
14749
14750         * lib/xvasprintf.c (includes): Assume config.h.
14751         * lib/xasprintf.c (includes): Likewise.
14752
14753 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
14754
14755         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
14756         at least as wide as intmax_t.
14757
14758 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
14759
14760         (Imported from Automake.)
14761         * build-aux/gnupload: Update to version 1.1 of directive file.
14762
14763 2006-10-16  Eric Blake  <ebb9@byu.net>
14764
14765         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
14766         match Automake 1.10a.
14767
14768 2006-10-14  Bruno Haible  <bruno@clisp.org>
14769
14770         * modules/sigprocmask: New file.
14771         * lib/sigprocmask.h: New file.
14772         * lib/sigprocmask.c: New file.
14773         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
14774         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
14775         request sigprocmask.o.
14776         (gl_PREREQ_SIGPROCMASK): New macro.
14777         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
14778         (Depends-on): Add sigprocmask.
14779         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
14780         gt_SIGNALBLOCKING. Test for 'raise' only once.
14781         * lib/fatal-signal.c: Include sigprocmask.h.
14782         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
14783         unblock_fatal_signals): Define always.
14784         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
14785         sigprocmask.
14786
14787 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
14788
14789         Sync from Automake.
14790         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
14791         which incorrectly sets the mode of an existing destination
14792         directory.  In some cases the unpatched install-sh could do the
14793         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
14794         system.  We hope this is rare in practice, but it's clearly worth
14795         fixing.  Problem reported by Alex Unleashed in
14796         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
14797         Also, don't bother to check for -m bugs unless we're using -m;
14798         suggested by Stepan Kasal.
14799
14800 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14801
14802         Sync from Automake.
14803         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
14804         `-c' flag, so they appear at the same position as in %FASTDEP%
14805         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
14806         which ignores unknown options only after the first non-option.
14807         Bug report against M4 by Nelson H. F. Beebe.
14808
14809 2006-10-13  Jim Meyering  <jim@meyering.net>
14810
14811         Fix a bug in yesterday's change.
14812         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
14813         p->fts_statp->st_dev would be used uninitialized.
14814         Ensures that we always call fts_stat on the very first entry.
14815         Miklos Szeredi reported that find -xdev stopped working.
14816
14817 2006-10-12  Bruno Haible  <bruno@clisp.org>
14818
14819         * gnulib-tool (func_get_automake_snippet): Append an automatically
14820         computed EXTRA_DIST augmentation.
14821         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
14822         * modules/alloca-opt (Makefile.am): Likewise.
14823         * modules/allocsa (Makefile.am): Likewise.
14824         * modules/arcfour (Makefile.am): Likewise.
14825         * modules/arctwo (Makefile.am): Likewise.
14826         * modules/argmatch (Makefile.am): Likewise.
14827         * modules/argz (Makefile.am): Likewise.
14828         * modules/atexit (Makefile.am): Likewise.
14829         * modules/backupfile (Makefile.am): Likewise.
14830         * modules/byteswap (Makefile.am): Likewise.
14831         * modules/c-strtod (Makefile.am): Likewise.
14832         * modules/c-strtold (Makefile.am): Likewise.
14833         * modules/calloc (Makefile.am): Likewise.
14834         * modules/canon-host (Makefile.am): Likewise.
14835         * modules/canonicalize (Makefile.am): Likewise.
14836         * modules/chdir-long (Makefile.am): Likewise.
14837         * modules/chdir-safer (Makefile.am): Likewise.
14838         * modules/check-version (Makefile.am): Likewise.
14839         * modules/chown (Makefile.am): Likewise.
14840         * modules/cloexec (Makefile.am): Likewise.
14841         * modules/close-stream (Makefile.am): Likewise.
14842         * modules/closeout (Makefile.am): Likewise.
14843         * modules/crc (Makefile.am): Likewise.
14844         * modules/csharpexec (Makefile.am): Likewise.
14845         * modules/cycle-check (Makefile.am): Likewise.
14846         * modules/des (Makefile.am): Likewise.
14847         * modules/dev-ino (Makefile.am): Likewise.
14848         * modules/dirfd (Makefile.am): Likewise.
14849         * modules/dirname (Makefile.am): Likewise.
14850         * modules/dup2 (Makefile.am): Likewise.
14851         * modules/eealloc (Makefile.am): Likewise.
14852         * modules/error (Makefile.am): Likewise.
14853         * modules/euidaccess (Makefile.am): Likewise.
14854         * modules/exclude (Makefile.am): Likewise.
14855         * modules/exitfail (Makefile.am): Likewise.
14856         * modules/fcntl-safer (Makefile.am): Likewise.
14857         * modules/fcntl (Makefile.am): Likewise.
14858         * modules/file-type (Makefile.am): Likewise.
14859         * modules/fileblocks (Makefile.am): Likewise.
14860         * modules/filemode (Makefile.am): Likewise.
14861         * modules/filenamecat (Makefile.am): Likewise.
14862         * modules/fnmatch (Makefile.am): Likewise.
14863         * modules/fopen-safer (Makefile.am): Likewise.
14864         * modules/fpending (Makefile.am): Likewise.
14865         * modules/fprintftime (Makefile.am): Likewise.
14866         * modules/free (Makefile.am): Likewise.
14867         * modules/fsusage (Makefile.am): Likewise.
14868         * modules/ftruncate (Makefile.am): Likewise.
14869         * modules/fts (Makefile.am): Likewise.
14870         * modules/gc-arcfour (Makefile.am): Likewise.
14871         * modules/gc-des (Makefile.am): Likewise.
14872         * modules/gc-hmac-md5 (Makefile.am): Likewise.
14873         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
14874         * modules/gc-md4 (Makefile.am): Likewise.
14875         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
14876         * modules/gc-sha1 (Makefile.am): Likewise.
14877         * modules/gc (Makefile.am): Likewise.
14878         * modules/getaddrinfo (Makefile.am): Likewise.
14879         * modules/getcwd (Makefile.am): Likewise.
14880         * modules/getdelim (Makefile.am): Likewise.
14881         * modules/getdomainname (Makefile.am): Likewise.
14882         * modules/getgroups (Makefile.am): Likewise.
14883         * modules/gethostname (Makefile.am): Likewise.
14884         * modules/gethrxtime (Makefile.am): Likewise.
14885         * modules/getline (Makefile.am): Likewise.
14886         * modules/getloadavg (Makefile.am): Likewise.
14887         * modules/getlogin_r (Makefile.am): Likewise.
14888         * modules/getndelim2 (Makefile.am): Likewise.
14889         * modules/getopt (Makefile.am): Likewise.
14890         * modules/getpagesize (Makefile.am): Likewise.
14891         * modules/getpass-gnu (Makefile.am): Likewise.
14892         * modules/getpass (Makefile.am): Likewise.
14893         * modules/getsubopt (Makefile.am): Likewise.
14894         * modules/gettime (Makefile.am): Likewise.
14895         * modules/gettimeofday (Makefile.am): Likewise.
14896         * modules/getugroups (Makefile.am): Likewise.
14897         * modules/getusershell (Makefile.am): Likewise.
14898         * modules/glob (Makefile.am): Likewise.
14899         * modules/group-member (Makefile.am): Likewise.
14900         * modules/hard-locale (Makefile.am): Likewise.
14901         * modules/hash (Makefile.am): Likewise.
14902         * modules/hmac-md5 (Makefile.am): Likewise.
14903         * modules/hmac-sha1 (Makefile.am): Likewise.
14904         * modules/human (Makefile.am): Likewise.
14905         * modules/idcache (Makefile.am): Likewise.
14906         * modules/imaxabs (Makefile.am): Likewise.
14907         * modules/imaxdiv (Makefile.am): Likewise.
14908         * modules/inet_ntop (Makefile.am): Likewise.
14909         * modules/inet_pton (Makefile.am): Likewise.
14910         * modules/intprops (Makefile.am): Likewise.
14911         * modules/inttostr (Makefile.am): Likewise.
14912         * modules/inttypes (Makefile.am): Likewise.
14913         * modules/isapipe (Makefile.am): Likewise.
14914         * modules/javaversion (Makefile.am): Likewise.
14915         * modules/lchmod (Makefile.am): Likewise.
14916         * modules/lchown (Makefile.am): Likewise.
14917         * modules/localcharset (Makefile.am): Likewise.
14918         * modules/long-options (Makefile.am): Likewise.
14919         * modules/lstat (Makefile.am): Likewise.
14920         * modules/malloc (Makefile.am): Likewise.
14921         * modules/mathl (Makefile.am): Likewise.
14922         * modules/mbchar (Makefile.am): Likewise.
14923         * modules/md2 (Makefile.am): Likewise.
14924         * modules/md4 (Makefile.am): Likewise.
14925         * modules/md5 (Makefile.am): Likewise.
14926         * modules/memcasecmp (Makefile.am): Likewise.
14927         * modules/memchr (Makefile.am): Likewise.
14928         * modules/memcmp (Makefile.am): Likewise.
14929         * modules/memcoll (Makefile.am): Likewise.
14930         * modules/memcpy (Makefile.am): Likewise.
14931         * modules/memmem (Makefile.am): Likewise.
14932         * modules/memmove (Makefile.am): Likewise.
14933         * modules/mempcpy (Makefile.am): Likewise.
14934         * modules/memrchr (Makefile.am): Likewise.
14935         * modules/memset (Makefile.am): Likewise.
14936         * modules/memxor (Makefile.am): Likewise.
14937         * modules/mkancesdirs (Makefile.am): Likewise.
14938         * modules/mkdir-p (Makefile.am): Likewise.
14939         * modules/mkdir (Makefile.am): Likewise.
14940         * modules/mkdtemp (Makefile.am): Likewise.
14941         * modules/mkstemp (Makefile.am): Likewise.
14942         * modules/mktime (Makefile.am): Likewise.
14943         * modules/modechange (Makefile.am): Likewise.
14944         * modules/mountlist (Makefile.am): Likewise.
14945         * modules/nanosleep (Makefile.am): Likewise.
14946         * modules/obstack (Makefile.am): Likewise.
14947         * modules/openat (Makefile.am): Likewise.
14948         * modules/pagealign_alloc (Makefile.am): Likewise.
14949         * modules/pathmax (Makefile.am): Likewise.
14950         * modules/physmem (Makefile.am): Likewise.
14951         * modules/poll (Makefile.am): Likewise.
14952         * modules/posixtm (Makefile.am): Likewise.
14953         * modules/posixver (Makefile.am): Likewise.
14954         * modules/putenv (Makefile.am): Likewise.
14955         * modules/quote (Makefile.am): Likewise.
14956         * modules/quotearg (Makefile.am): Likewise.
14957         * modules/raise (Makefile.am): Likewise.
14958         * modules/read-file (Makefile.am): Likewise.
14959         * modules/readline (Makefile.am): Likewise.
14960         * modules/readlink (Makefile.am): Likewise.
14961         * modules/readtokens (Makefile.am): Likewise.
14962         * modules/readutmp (Makefile.am): Likewise.
14963         * modules/realloc (Makefile.am): Likewise.
14964         * modules/regex (Makefile.am): Likewise.
14965         * modules/rename-dest-slash (Makefile.am): Likewise.
14966         * modules/rename (Makefile.am): Likewise.
14967         * modules/rijndael (Makefile.am): Likewise.
14968         * modules/rmdir (Makefile.am): Likewise.
14969         * modules/rpmatch (Makefile.am): Likewise.
14970         * modules/safe-read (Makefile.am): Likewise.
14971         * modules/safe-write (Makefile.am): Likewise.
14972         * modules/same-inode (Makefile.am): Likewise.
14973         * modules/same (Makefile.am): Likewise.
14974         * modules/save-cwd (Makefile.am): Likewise.
14975         * modules/savedir (Makefile.am): Likewise.
14976         * modules/setenv (Makefile.am): Likewise.
14977         * modules/settime (Makefile.am): Likewise.
14978         * modules/sha1 (Makefile.am): Likewise.
14979         * modules/sig2str (Makefile.am): Likewise.
14980         * modules/snprintf (Makefile.am): Likewise.
14981         * modules/stat-macros (Makefile.am): Likewise.
14982         * modules/stat-time (Makefile.am): Likewise.
14983         * modules/stdbool (Makefile.am): Likewise.
14984         * modules/stdint (Makefile.am): Likewise.
14985         * modules/stdlib-safer (Makefile.am): Likewise.
14986         * modules/stpcpy (Makefile.am): Likewise.
14987         * modules/stpncpy (Makefile.am): Likewise.
14988         * modules/strcase (Makefile.am): Likewise.
14989         * modules/strcasestr (Makefile.am): Likewise.
14990         * modules/strchrnul (Makefile.am): Likewise.
14991         * modules/strcspn (Makefile.am): Likewise.
14992         * modules/strdup (Makefile.am): Likewise.
14993         * modules/strerror (Makefile.am): Likewise.
14994         * modules/strftime (Makefile.am): Likewise.
14995         * modules/strndup (Makefile.am): Likewise.
14996         * modules/strnlen (Makefile.am): Likewise.
14997         * modules/strpbrk (Makefile.am): Likewise.
14998         * modules/strsep (Makefile.am): Likewise.
14999         * modules/strstr (Makefile.am): Likewise.
15000         * modules/strtod (Makefile.am): Likewise.
15001         * modules/strtoimax (Makefile.am): Likewise.
15002         * modules/strtok_r (Makefile.am): Likewise.
15003         * modules/strtol (Makefile.am): Likewise.
15004         * modules/strtoll (Makefile.am): Likewise.
15005         * modules/strtoul (Makefile.am): Likewise.
15006         * modules/strtoull (Makefile.am): Likewise.
15007         * modules/strtoumax (Makefile.am): Likewise.
15008         * modules/strverscmp (Makefile.am): Likewise.
15009         * modules/sys_socket (Makefile.am): Likewise.
15010         * modules/sys_stat (Makefile.am): Likewise.
15011         * modules/sysexits (Makefile.am): Likewise.
15012         * modules/time_r (Makefile.am): Likewise.
15013         * modules/timegm (Makefile.am): Likewise.
15014         * modules/timespec (Makefile.am): Likewise.
15015         * modules/tmpfile-safer (Makefile.am): Likewise.
15016         * modules/trim (Makefile.am): Likewise.
15017         * modules/unistd-safer (Makefile.am): Likewise.
15018         * modules/unlinkdir (Makefile.am): Likewise.
15019         * modules/unlocked-io (Makefile.am): Likewise.
15020         * modules/userspec (Makefile.am): Likewise.
15021         * modules/utime (Makefile.am): Likewise.
15022         * modules/utimecmp (Makefile.am): Likewise.
15023         * modules/utimens (Makefile.am): Likewise.
15024         * modules/vasnprintf (Makefile.am): Likewise.
15025         * modules/vasprintf (Makefile.am): Likewise.
15026         * modules/vsnprintf (Makefile.am): Likewise.
15027         * modules/xalloc (Makefile.am): Likewise.
15028         * modules/xgetcwd (Makefile.am): Likewise.
15029         * modules/xnanosleep (Makefile.am): Likewise.
15030         * modules/xreadlink (Makefile.am): Likewise.
15031         * modules/xstrtod (Makefile.am): Likewise.
15032         * modules/xstrtol (Makefile.am): Likewise.
15033         * modules/xstrtold (Makefile.am): Likewise.
15034         * modules/yesno (Makefile.am): Likewise.
15035         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
15036
15037 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
15038
15039         * modules/error (Makefile.am): Distribute files through
15040         EXTRA_DIST, not lib_SOURCES.
15041
15042 2006-10-12  Eric Blake  <ebb9@byu.net>
15043
15044         * modules/error (Makefile.am): Distribute files in /lib.
15045         * modules/obstack (Makefile.am): Likewise.
15046
15047 2006-10-12  Bruno Haible  <bruno@clisp.org>
15048
15049         * modules/acl (Makefile.am): Distribute all files in lib/ through
15050         EXTRA_DIST.
15051         * modules/arcfour (Makefile.am): Likewise.
15052         * modules/arctwo (Makefile.am): Likewise.
15053         * modules/argmatch (Makefile.am): Likewise.
15054         * modules/argz (Makefile.am): Likewise.
15055         * modules/atexit (Makefile.am): Likewise.
15056         * modules/backupfile (Makefile.am): Likewise.
15057         * modules/c-strtod (Makefile.am): Likewise.
15058         * modules/c-strtold (Makefile.am): Likewise.
15059         * modules/calloc (Makefile.am): Likewise.
15060         * modules/canon-host (Makefile.am): Likewise.
15061         * modules/canonicalize (Makefile.am): Likewise.
15062         * modules/chdir-long (Makefile.am): Likewise.
15063         * modules/chdir-safer (Makefile.am): Likewise.
15064         * modules/check-version (Makefile.am): Likewise.
15065         * modules/chown (Makefile.am): Likewise.
15066         * modules/cloexec (Makefile.am): Likewise.
15067         * modules/close-stream (Makefile.am): Likewise.
15068         * modules/closeout (Makefile.am): Likewise.
15069         * modules/crc (Makefile.am): Likewise.
15070         * modules/cycle-check (Makefile.am): Likewise.
15071         * modules/des (Makefile.am): Likewise.
15072         * modules/dirfd (Makefile.am): Likewise.
15073         * modules/dirname (Makefile.am): Likewise.
15074         * modules/dup2 (Makefile.am): Likewise.
15075         * modules/euidaccess (Makefile.am): Likewise.
15076         * modules/exclude (Makefile.am): Likewise.
15077         * modules/exitfail (Makefile.am): Likewise.
15078         * modules/fcntl-safer (Makefile.am): Likewise.
15079         * modules/file-type (Makefile.am): Likewise.
15080         * modules/fileblocks (Makefile.am): Likewise.
15081         * modules/filemode (Makefile.am): Likewise.
15082         * modules/filenamecat (Makefile.am): Likewise.
15083         * modules/fnmatch (Makefile.am): Likewise.
15084         * modules/fopen-safer (Makefile.am): Likewise.
15085         * modules/fpending (Makefile.am): Likewise.
15086         * modules/fprintftime (Makefile.am): Likewise.
15087         * modules/free (Makefile.am): Likewise.
15088         * modules/fsusage (Makefile.am): Likewise.
15089         * modules/ftruncate (Makefile.am): Likewise.
15090         * modules/fts (Makefile.am): Likewise.
15091         * modules/gc (Makefile.am): Likewise.
15092         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
15093         * modules/getaddrinfo (Makefile.am): Likewise.
15094         * modules/getcwd (Makefile.am): Likewise.
15095         * modules/getdelim (Makefile.am): Likewise.
15096         * modules/getdomainname (Makefile.am): Likewise.
15097         * modules/getgroups (Makefile.am): Likewise.
15098         * modules/gethostname (Makefile.am): Likewise.
15099         * modules/gethrxtime (Makefile.am): Likewise.
15100         * modules/getline (Makefile.am): Likewise.
15101         * modules/getloadavg (Makefile.am): Likewise.
15102         * modules/getlogin_r (Makefile.am): Likewise.
15103         * modules/getopt (Makefile.am): Likewise.
15104         * modules/getpass (Makefile.am): Likewise.
15105         * modules/getpass-gnu (Makefile.am): Likewise.
15106         * modules/getsubopt (Makefile.am): Likewise.
15107         * modules/gettime (Makefile.am): Likewise.
15108         * modules/gettimeofday (Makefile.am): Likewise.
15109         * modules/getugroups (Makefile.am): Likewise.
15110         * modules/getusershell (Makefile.am): Likewise.
15111         * modules/glob (Makefile.am): Likewise.
15112         * modules/group-member (Makefile.am): Likewise.
15113         * modules/hard-locale (Makefile.am): Likewise.
15114         * modules/hash (Makefile.am): Likewise.
15115         * modules/hmac-md5 (Makefile.am): Likewise.
15116         * modules/hmac-sha1 (Makefile.am): Likewise.
15117         * modules/human (Makefile.am): Likewise.
15118         * modules/idcache (Makefile.am): Likewise.
15119         * modules/imaxabs (Makefile.am): Likewise.
15120         * modules/imaxdiv (Makefile.am): Likewise.
15121         * modules/inet_ntop (Makefile.am): Likewise.
15122         * modules/inet_pton (Makefile.am): Likewise.
15123         * modules/inttostr (Makefile.am): Likewise.
15124         * modules/isapipe (Makefile.am): Likewise.
15125         * modules/lchown (Makefile.am): Likewise.
15126         * modules/long-options (Makefile.am): Likewise.
15127         * modules/lstat (Makefile.am): Likewise.
15128         * modules/malloc (Makefile.am): Likewise.
15129         * modules/mathl (Makefile.am): Likewise.
15130         * modules/mbchar (Makefile.am): Likewise.
15131         * modules/md2 (Makefile.am): Likewise.
15132         * modules/md4 (Makefile.am): Likewise.
15133         * modules/md5 (Makefile.am): Likewise.
15134         * modules/memcasecmp (Makefile.am): Likewise.
15135         * modules/memchr (Makefile.am): Likewise.
15136         * modules/memcmp (Makefile.am): Likewise.
15137         * modules/memcoll (Makefile.am): Likewise.
15138         * modules/memcpy (Makefile.am): Likewise.
15139         * modules/memmem (Makefile.am): Likewise.
15140         * modules/memmove (Makefile.am): Likewise.
15141         * modules/mempcpy (Makefile.am): Likewise.
15142         * modules/memrchr (Makefile.am): Likewise.
15143         * modules/memset (Makefile.am): Likewise.
15144         * modules/memxor (Makefile.am): Likewise.
15145         * modules/mkancesdirs (Makefile.am): Likewise.
15146         * modules/mkdir (Makefile.am): Likewise.
15147         * modules/mkdir-p (Makefile.am): Likewise.
15148         * modules/mkdtemp (Makefile.am): Likewise.
15149         * modules/mkstemp (Makefile.am): Likewise.
15150         * modules/mktime (Makefile.am): Likewise.
15151         * modules/modechange (Makefile.am): Likewise.
15152         * modules/mountlist (Makefile.am): Likewise.
15153         * modules/nanosleep (Makefile.am): Likewise.
15154         * modules/openat (Makefile.am): Likewise.
15155         * modules/pagealign_alloc (Makefile.am): Likewise.
15156         * modules/physmem (Makefile.am): Likewise.
15157         * modules/poll (Makefile.am): Likewise.
15158         * modules/posixtm (Makefile.am): Likewise.
15159         * modules/posixver (Makefile.am): Likewise.
15160         * modules/putenv (Makefile.am): Likewise.
15161         * modules/quote (Makefile.am): Likewise.
15162         * modules/quotearg (Makefile.am): Likewise.
15163         * modules/raise (Makefile.am): Likewise.
15164         * modules/read-file (Makefile.am): Likewise.
15165         * modules/readline (Makefile.am): Likewise.
15166         * modules/readlink (Makefile.am): Likewise.
15167         * modules/readtokens (Makefile.am): Likewise.
15168         * modules/readutmp (Makefile.am): Likewise.
15169         * modules/realloc (Makefile.am): Likewise.
15170         * modules/regex (Makefile.am): Likewise.
15171         * modules/rename (Makefile.am): Likewise.
15172         * modules/rename-dest-slash (Makefile.am): Likewise.
15173         * modules/rijndael (Makefile.am): Likewise.
15174         * modules/rmdir (Makefile.am): Likewise.
15175         * modules/rpmatch (Makefile.am): Likewise.
15176         * modules/safe-read (Makefile.am): Likewise.
15177         * modules/safe-write (Makefile.am): Likewise.
15178         * modules/same (Makefile.am): Likewise.
15179         * modules/save-cwd (Makefile.am): Likewise.
15180         * modules/savedir (Makefile.am): Likewise.
15181         * modules/setenv (Makefile.am): Likewise.
15182         * modules/settime (Makefile.am): Likewise.
15183         * modules/sha1 (Makefile.am): Likewise.
15184         * modules/sig2str (Makefile.am): Likewise.
15185         * modules/snprintf (Makefile.am): Likewise.
15186         * modules/stdlib-safer (Makefile.am): Likewise.
15187         * modules/stpcpy (Makefile.am): Likewise.
15188         * modules/stpncpy (Makefile.am): Likewise.
15189         * modules/strcase (Makefile.am): Likewise.
15190         * modules/strcasestr (Makefile.am): Likewise.
15191         * modules/strchrnul (Makefile.am): Likewise.
15192         * modules/strcspn (Makefile.am): Likewise.
15193         * modules/strdup (Makefile.am): Likewise.
15194         * modules/strerror (Makefile.am): Likewise.
15195         * modules/strftime (Makefile.am): Likewise.
15196         * modules/strndup (Makefile.am): Likewise.
15197         * modules/strnlen (Makefile.am): Likewise.
15198         * modules/strpbrk (Makefile.am): Likewise.
15199         * modules/strsep (Makefile.am): Likewise.
15200         * modules/strstr (Makefile.am): Likewise.
15201         * modules/strtod (Makefile.am): Likewise.
15202         * modules/strtoimax (Makefile.am): Likewise.
15203         * modules/strtok_r (Makefile.am): Likewise.
15204         * modules/strtol (Makefile.am): Likewise.
15205         * modules/strtoll (Makefile.am): Likewise.
15206         * modules/strtoul (Makefile.am): Likewise.
15207         * modules/strtoull (Makefile.am): Likewise.
15208         * modules/strtoumax (Makefile.am): Likewise.
15209         * modules/strverscmp (Makefile.am): Likewise.
15210         * modules/time_r (Makefile.am): Likewise.
15211         * modules/timegm (Makefile.am): Likewise.
15212         * modules/tmpfile-safer (Makefile.am): Likewise.
15213         * modules/unistd-safer (Makefile.am): Likewise.
15214         * modules/unlinkdir (Makefile.am): Likewise.
15215         * modules/userspec (Makefile.am): Likewise.
15216         * modules/utime (Makefile.am): Likewise.
15217         * modules/utimecmp (Makefile.am): Likewise.
15218         * modules/utimens (Makefile.am): Likewise.
15219         * modules/vasnprintf (Makefile.am): Likewise.
15220         * modules/vasprintf (Makefile.am): Likewise.
15221         * modules/vsnprintf (Makefile.am): Likewise.
15222         * modules/xalloc (Makefile.am): Likewise.
15223         * modules/xgetcwd (Makefile.am): Likewise.
15224         * modules/xnanosleep (Makefile.am): Likewise.
15225         * modules/xreadlink (Makefile.am): Likewise.
15226         * modules/xstrtod (Makefile.am): Likewise.
15227         * modules/xstrtol (Makefile.am): Likewise.
15228         * modules/xstrtold (Makefile.am): Likewise.
15229         * modules/yesno (Makefile.am): Likewise.
15230
15231 2006-10-12  Jim Meyering  <jim@meyering.net>
15232
15233         * m4/getloadavg.m4: Revert the change below.
15234
15235         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
15236         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
15237         fail with a symlink, which is what coreutils' ./bootstrap now
15238         creates by default.
15239
15240 2006-10-12  Bruno Haible  <bruno@clisp.org>
15241
15242         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
15243         mingw.
15244         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
15245         MSVC and mingw explicitly.
15246
15247 2006-10-11  Simon Josefsson  <jas@extundo.com>
15248             Bruno Haible  <bruno@clisp.org>
15249
15250         Add support for multiple gnulib-tool invocations in the scope of a
15251         single configure.ac file.
15252         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
15253         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
15254         with the same contents as the _LIBADD variable.
15255         (func_emit_initmacro_start, func_emit_initmacro_end,
15256         func_emit_initmacro_done): New functions.
15257         (func_import, func_create_testdir): Invoke them. Allow the identifiers
15258         gl_LIBOBJS and gl_LTLIBOBJS.
15259
15260 2006-10-11  Bruno Haible  <bruno@clisp.org>
15261
15262         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
15263         (func_create_testdir): Don't create po/Makefile.am, don't invoke
15264         autoreconf. Instead, invoke autopoint explicitly but move back the
15265         *.m4 files from gnulib.
15266
15267 2006-10-11  Bruno Haible  <bruno@clisp.org>
15268
15269         * gnulib-tool (func_usage): Make module names after --create-testdir
15270         optional.
15271         (func_create_testdir): If no module was specified, use nearly all
15272         modules.
15273
15274 2006-10-12  Jim Meyering  <jim@meyering.net>
15275
15276         Big performance improvement for fts-based tools that use FTS_NOSTAT.
15277         Avoid spurious inode-mismatch problems on non-POSIX file systems.
15278         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
15279         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
15280         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
15281         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
15282         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
15283         (fts_set_stat_required): New function.
15284         (fts_open): Defer the calls to fts_stat, if possible or requested.
15285         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
15286         into fts_stat itself.
15287         (fts_read): Perform any required (deferred) fts_stat call.
15288         (fts_build): Likewise, for the directory we're about to open and read.
15289         In the readdir loop, carefully decide whether each entry will require
15290         an eventual call to fts_stat, using dirent.d_type info if available.
15291         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
15292         a command line argument into this function.  Update all callers.
15293         Map a return value of FTS_DOT to FTS_D for a command line argument.
15294         * modules/fts (Depends-on): Add d-type.  Alphabetize.
15295         Thanks to Miklos Szeredi for his tenacity and for the initial
15296         bug report about "find" failing on a FUSE-based file system.
15297
15298         * lib/fts.c (fts_open): Use consistent indentation.
15299
15300 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
15301
15302         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
15303         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
15304         reported by Jim Meyering.  All uses of cache variables renamed
15305         to match Autoconf's.
15306         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
15307         the other one.
15308
15309         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
15310         Fix misspelling in diagnostic.
15311
15312 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
15313
15314         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
15315         defined.  Problem reported by Matthew Woehlke.
15316
15317         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
15318         Add support for Tandem NonStop R series.
15319         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
15320         Use new macro.
15321
15322         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
15323         (has_trailing_slash): Omit size arg; all callers changed.
15324         Omit 'inline', since it doesn't help performance and we'd
15325         need to configure it.
15326         Don't count //, ///, etc. as having a trailing slash.
15327         As a side effect, this removes a C99ism reported by Matthew Woehlke.
15328         (rpl_rename_dest_slash): On failure, use rename's errno rather
15329         than (in some cases) an incorrect or junk errno.
15330         Simplify code by removing need to compute length; this does
15331         cause it to make two passes instead of one over the file name,
15332         but it's worth it.
15333
15334         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
15335         change, since Autoconf's version may no longer be appropriate now
15336         that we are using CVS Autoconf's version.  Add support for Tandem.
15337
15338 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
15339             Bruno Haible  <bruno@clisp.org>
15340
15341         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
15342         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
15343         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
15344         gl_AC_TYPE_LONG_LONG.
15345
15346         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
15347         instead of HAVE_LONG_LONG.
15348         * lib/printf-args.c (printf_fetchargs): Likewise.
15349         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
15350         * lib/vasnprintf.c (VASNPRINTF): Likewise.
15351         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
15352         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
15353         gl_AC_TYPE_LONG_LONG.
15354
15355 2006-10-11  Bruno Haible  <bruno@clisp.org>
15356
15357         * m4/longlong.m4: Add comments.
15358         * m4/ulonglong.m4: Likewise.
15359
15360 2006-10-10  Bruno Haible  <bruno@clisp.org>
15361
15362         Make it possible to #define stpcpy, strdup to aliases.
15363         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
15364         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
15365
15366 2006-10-10  Bruno Haible  <bruno@clisp.org>
15367
15368         Make it possible to #define gcd to an alias.
15369         * lib/gcd.c: Include config.h.
15370
15371 2006-10-10  Bruno Haible  <bruno@clisp.org>
15372
15373         Make it possible to #define c_isascii to an alias.
15374         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
15375         defined. Undefine the macros before defining them, to avoid gcc
15376         warnings.
15377         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
15378         define NO_C_CTYPE_MACROS early.
15379
15380 2006-10-10  Bruno Haible  <bruno@clisp.org>
15381
15382         Make it possible to #define set_program_name to an alias.
15383         * lib/progname.c: Don't undefine set_program_name; instead, undefine
15384         ENABLE_RELOCATABLE early.
15385
15386 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15387
15388         Port to Tandem NSK OSS, which has 64-bit signed int but at most
15389         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
15390         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
15391         More generally, don't assume that 64-bit signed int is available
15392         if unsigned int is, and vice versa.
15393         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
15394         unsigned symbols, not on their signed counterparts.
15395         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
15396         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
15397         (UINT64_C, UINTMAX_C):
15398         Likewise.
15399         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
15400         unsigned counterparts.
15401         (Have_long_long, Unsigned): New macros.
15402         (Int): Renamed from INT.
15403         (strtoimax): Use the new macros.
15404         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
15405         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
15406         * modules/inttypes (inttypes.h): Substitute
15407         HAVE_UNSIGNED_LONG_LONG_INT.
15408         * modules/stdint (stdint.h): Likewise.
15409         (Files): Add m4/ulonglong.m4.
15410
15411 2006-10-10  Bruno Haible  <bruno@clisp.org>
15412
15413         Fix a gcc -Wshadow warning.
15414         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
15415         to 'bucket'.
15416         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
15417         gl_linked_indexof_from_to): Likewise.
15418         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
15419         Likewise.
15420         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
15421         Likewise.
15422         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
15423         Reported by Eric Blake.
15424
15425 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
15426
15427         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
15428         for NetBSD.  Problem reported by Bruno Haible.
15429
15430 2006-10-09  Jim Meyering  <jim@meyering.net>
15431
15432         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
15433         Patch from Bruno Haible.
15434
15435 2006-10-09  Jim Meyering  <jim@meyering.net>
15436
15437         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
15438         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
15439         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
15440
15441 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15442
15443         Don't include <config.h> twice; this doesn't work in some cases,
15444         e.g., when config.h has "#define intmax_t long long int" and
15445         we include <config.h>, <inttypes.h>, <config.h> in that order.
15446         Problem reported by Matthew Woehlke in:
15447         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
15448         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
15449         * lib/fts-cycle.c: Don't include config.h.
15450         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
15451         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
15452         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
15453         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
15454         inttypes.h.
15455         * lib/xstrtoumax.c: Likewise.
15456         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
15457         __strtol and the like, so that this module is more like its siblings.
15458         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
15459         Remove; no longer needed now that we assume gnulib inttypes.h.
15460
15461 2006-10-08  Bruno Haible  <bruno@clisp.org>
15462
15463         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
15464         option.
15465
15466 2006-10-07  Jim Meyering  <jim@meyering.net>
15467
15468         * modules/inttypes (inttypes.h): Revert what seems to have been
15469         an inadvertent part of today's change: use "|", not "/" in the
15470         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
15471
15472 2006-10-07  Bruno Haible  <bruno@clisp.org>
15473
15474         * modules/sublist: New file.
15475
15476 2006-10-07  Bruno Haible  <bruno@clisp.org>
15477
15478         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
15479         * modules/argz (argz.h): Likewise.
15480         * modules/arpa_inet (arpa/inet.h): Likewise.
15481         * modules/byteswap (byteswap.h): Likewise.
15482         * modules/configmake (configmake.h): Likewise.
15483         * modules/fcntl (fcntl.h): Likewise.
15484         * modules/fnmatch (fnmatch.h): Likewise.
15485         * modules/getopt (getopt.h): Likewise.
15486         * modules/glob (glob.h): Likewise.
15487         * modules/inttypes (inttypes.h): Likewise.
15488         * modules/netinet_in (netinet/in.h): Likewise.
15489         * modules/poll (poll.h): Likewise.
15490         * modules/stdbool (stdbool.h): Likewise.
15491         * modules/stdint (stdint.h): Likewise.
15492         * modules/sys_select (sys/select.h): Likewise.
15493         * modules/sys_socket (sys/socket.h): Likewise.
15494         * modules/sys_stat (sys/stat.h): Likewise.
15495         * modules/sysexits (sysexits.h): Likewise.
15496         * modules/unistd (unistd.h): Likewise.
15497         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15498         Add a "DO NOT EDIT" comment to the generated file.
15499         (func_import): Likewise for gnulib-comp.m4.
15500
15501 2006-10-07  Bruno Haible  <bruno@clisp.org>
15502
15503         * lib/gl_sublist.h: New file.
15504         * lib/gl_sublist.c: New file.
15505
15506 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
15507
15508         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
15509         name (relative to the original working directory) and the file
15510         name component (relative to the temporary working directory).  All
15511         callers changed.
15512         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
15513         * lib/mkdir-p.c (make_dir_parents): Likewise.
15514         * lib/mkdir-p.h (make_dir_parents): Likewise.
15515
15516 2006-10-06  Eric Blake  <ebb9@byu.net>
15517
15518         Define several macros for use by the clean-temp module.
15519         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
15520         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
15521         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
15522
15523         * lib/clean-temp.h (close_stream_temp): New declaration.
15524         * lib/clean-temp.c (includes): Pull in headers according to what
15525         other modules are in use.
15526         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
15527
15528 2006-10-06  Bruno Haible  <bruno@clisp.org>
15529
15530         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
15531         instead of fopen, fwriteerror.
15532
15533 2006-10-06  Bruno Haible  <bruno@clisp.org>
15534
15535         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
15536         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
15537         int.
15538         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
15539         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
15540         Return an error indicator.
15541         Suggested by Eric Blake.
15542
15543 2006-10-06  Bruno Haible  <bruno@clisp.org>
15544
15545         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
15546         Reported by Eric Blake.
15547
15548 2006-10-06  Bruno Haible  <bruno@clisp.org>
15549
15550         * modules/closeout (Description): Mention stderr too.
15551
15552 2006-10-06  Bruno Haible  <bruno@clisp.org>
15553         and Paul Eggert  <eggert@cs.ucla.edu>
15554
15555         * lib/closeout.c (close_stdout): Also close stderr.
15556         * lib/closeout.h: Update comment.
15557
15558 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15559
15560         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
15561         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
15562         * lib/dirchownmod.c: Include lchown.h.
15563         * lib/lchown.c: Don't include files that lchown.h now includes.
15564         Don't declare chown, since lchown.h now does that.
15565         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
15566         (lchown): Define to rpl_chown if lchown is declared but
15567         does not exist.  Declare using a prototype if lchown is not
15568         declared.  Add a copyright notice.
15569         * lib/mkstemp.h: Include <unistd.h>.
15570         * lib/openat.c: Include lchown.h.
15571
15572         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
15573         we now test for that separately.
15574         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
15575         rather than O_NOFOLLOW, when testing whether it's possible to
15576         avoid a race condition reliably.
15577         * lib/savewd.c (savewd_chdir): Likewise.
15578
15579         Remove macros that are no longer needed now that stdint.h is
15580         reliable.
15581         * lib/fsusage.c (UINTMAX_MAX): Remove.
15582         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
15583         * lib/utimecmp.c (SIZE_MAX): Remove.
15584
15585         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
15586
15587         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
15588         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
15589         O_NOATIME works.
15590
15591 2006-10-05  Bruno Haible  <bruno@clisp.org>
15592
15593         * lib/gl_list.h (gl_sortedlist_search_from_to,
15594         gl_sortedlist_indexof_from_to): New declarations.
15595         (gl_list_implementation): New fields sortedlist_search_from_to,
15596         sortedlist_indexof_from_to.
15597         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
15598         inline functions.
15599         * lib/gl_list.c (gl_sortedlist_search_from_to,
15600         gl_sortedlist_indexof_from_to): New functions.
15601         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
15602         function.
15603         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
15604         (gl_array_sortedlist_search_from_to): New function.
15605         (gl_array_list_implementation): Update.
15606         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
15607         function.
15608         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
15609         (gl_carray_sortedlist_search_from_to): New function.
15610         (gl_carray_list_implementation): Update.
15611         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
15612         gl_linked_sortedlist_indexof_from_to): New functions.
15613         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
15614         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
15615         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
15616         gl_tree_sortedlist_indexof_from_to): New functions.
15617         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
15618         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
15619         Update.
15620         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
15621         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
15622         Update.
15623
15624 2006-10-05  Bruno Haible  <bruno@clisp.org>
15625
15626         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
15627         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
15628         (struct gl_list_implementation): Add fields search_from_to,
15629         indexof_from_to. Remove fields search, indexof.
15630         (gl_list_search): Use the search_from_to method.
15631         (gl_list_search_from, gl_list_search_from_to): New functions.
15632         (gl_list_indexof): Use the indexof_from_to method.
15633         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
15634         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
15635         (gl_list_search_from, gl_list_search_from_to): New functions.
15636         (gl_list_indexof): Use the indexof_from_to method.
15637         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
15638         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
15639         gl_array_indexof. Add start_index, end_index arguments.
15640         (gl_array_search_from_to): Renamed from gl_array_search. Add
15641         start_index, end_index arguments.
15642         (gl_array_remove, gl_array_list_implementation): Update.
15643         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
15644         gl_carray_indexof. Add start_index, end_index arguments.
15645         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
15646         start_index, end_index arguments.
15647         (gl_carray_remove, gl_carray_list_implementation): Update.
15648         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
15649         gl_linked_search. Add start_index, end_index arguments.
15650         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
15651         start_index, end_index arguments.
15652         (gl_linked_remove): Update.
15653         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
15654         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
15655         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
15656         field to 'size_t'.
15657         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
15658         gl_tree_search. Add start_index, end_index arguments.
15659         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
15660         start_index, end_index arguments.
15661         (gl_tree_remove): Update.
15662         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
15663         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
15664         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
15665         function.
15666         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
15667         gl_tree_search. Add start_index, end_index arguments.
15668         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
15669         start_index, end_index arguments.
15670         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
15671         Update.
15672         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
15673
15674 2006-10-05  Bruno Haible  <bruno@clisp.org>
15675
15676         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
15677
15678         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
15679         fwriteerror_temp): New declarations.
15680         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
15681         (descriptors): New variable.
15682         (cleanup): First, close the descriptors.
15683         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
15684         fclose_temp, fwriteerror_temp): New functions.
15685
15686 2006-10-04  Jim Meyering  <jim@meyering.net>
15687
15688         * lib/fts.c (fts_open): Tiny comment change.
15689
15690 2006-10-04  Bruno Haible  <bruno@clisp.org>
15691
15692         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
15693         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
15694         gl_LOCK_BODY.
15695         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
15696         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
15697         gl_LOCK_EARLY_BODY.
15698         (gl_LOCK): Require gl_LOCK_BODY.
15699
15700 2006-10-04  Bruno Haible  <bruno@clisp.org>
15701
15702         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
15703         (gl_oset_search_atleast): New declaration.
15704         (struct gl_oset_implementation): Add field 'search_atleast'.
15705         (gl_oset_search_atleast): New inline function.
15706         * lib/gl_oset.c (gl_oset_search_atleast): New function.
15707         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
15708         (gl_array_oset_implementation): Update.
15709         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
15710         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
15711         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
15712
15713 2006-10-04  Bruno Haible  <bruno@clisp.org>
15714
15715         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
15716
15717 2006-10-03  Bruno Haible  <bruno@clisp.org>
15718
15719         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
15720         from gl_avltreehash_list_implementation.
15721
15722 2006-10-03  Bruno Haible  <bruno@clisp.org>
15723
15724         * lib/gl_oset.c (gl_oset_add): Fix return type.
15725
15726 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
15727
15728         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
15729
15730 2006-10-02  Eric Blake  <ebb9@byu.net>
15731
15732         * modules/strnlen (Depends-on): Add extensions.
15733
15734 2006-10-02  Eric Blake  <ebb9@byu.net>
15735
15736         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
15737         definition in 2.60+.
15738
15739 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
15740
15741         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
15742         checks.
15743
15744 2006-10-02  Bruno Haible  <bruno@clisp.org>
15745
15746         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
15747         to the AUTOMAKE_OPTIONS.
15748         Reported by Jim Meyering.
15749
15750 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
15751
15752         Work around bug in Solaris 10 /proc file system:
15753         /proc/self/fd/NNN/.. isn't the parent directory of
15754         the directory whose file descriptor is NNN.  This needs to
15755         be worked around at run time, not compile time, since a
15756         program might be built on Solaris 8, where things work, and
15757         run on Solaris 10.
15758         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
15759         to use the following interface instead:
15760         (OPENAT_BUFFER_SIZE): New macro.
15761         (openat_proc_name): New function.
15762         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
15763         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
15764         Likewise.
15765         * lib/openat-proc.c: New file.
15766         * modules/openat (Files): Add lib/openat-proc.c.
15767         (Depends-on): Add same-inode, stdbool.
15768         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
15769
15770 2006-09-29  Bruno Haible  <bruno@clisp.org>
15771
15772         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
15773         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
15774         argument. Set stdout_closed before testing for ferror, not after.
15775         (fwriteerror, fwriteerror_no_ebadf): New functions.
15776
15777 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15778
15779         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
15780
15781 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
15782
15783         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
15784         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
15785
15786 2006-09-28  Jim Meyering  <jim@meyering.net>
15787
15788         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
15789         Include <unistd.h>.
15790
15791 2006-09-28  Bruno Haible  <bruno@clisp.org>
15792
15793         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
15794         * modules/linkedhash-list (Depends-on): Likewise.
15795         * modules/rbtreehash-list (Depends-on): Likewise.
15796
15797 2006-09-28  Bruno Haible  <bruno@clisp.org>
15798
15799         * lib/strndup.h: Simplify the redefinition of strndup.
15800         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
15801         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
15802
15803 2006-09-28  Bruno Haible  <bruno@clisp.org>
15804
15805         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
15806         * lib/gl_linkedhash_list.c: Likewise.
15807         * lib/gl_rbtreehash_list.c: Likewise.
15808
15809 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
15810
15811         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
15812         getaddrinfo.
15813
15814         * lib/__fpending.h: Don't include <stdio_ext.h> unless
15815         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
15816         it causes <stdio_ext.h> to cause a compile-time error.
15817         Problem reported by Nelson H. F. Beebe.
15818         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
15819         of HAVE_DECL___PENDING.
15820
15821         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
15822         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
15823         declaration.
15824
15825 2006-09-27  Jim Meyering  <jim@meyering.net>
15826
15827         This file could end up with a definition for a function
15828         named __strndup, rather than rpl_strndup on a system with
15829         incomplete weak_alias support.
15830         * lib/strndup.c (strndup): Rename from __strndup.
15831         Remove #defines that used to map __strndup to strndup.
15832         Don't use K&R prototypes.
15833         Remove LIBC-related code, since this file is not sync'd with glibc.
15834         * lib/strndup.h: Revamp, accordingly.
15835         * m4/strndup.m4: Modernize.
15836
15837 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
15838
15839         * modules/savewd (Depends-on): Add 'raise'.
15840         * lib/savewd.c: Include <signal.h>, for 'raise'.
15841
15842 2006-09-26  Jim Meyering  <jim@meyering.net>
15843
15844         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
15845         when we detect Darwin 8.7.0's acl_get_file bug.
15846         Rearrange to perform the new (below) run-test while $LIBS
15847         contains any acl-related library.  Set USE_ACL at the end.
15848         (gl_ACL_GET_FILE): New function.
15849
15850 2006-09-26  Eric Blake  <ebb9@byu.net>
15851
15852         * lib/verror.c: Include <config.h> unconditionally.
15853
15854 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
15855
15856         * modules/clock-time (Maintainer): Add self.
15857         * modules/getlogin_r (Depends-on): Add extensions.
15858
15859 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15860
15861         * modules/clock-time: New module.
15862         * modules/nanosleep (Depends-on): Add clock-time.
15863         * modules/gethrxtime (Depends-on): Likewise.
15864         * modules/gettime (Depends-on): Likewise.
15865         * modules/settime (Depends-on): Likewise.
15866
15867         * modules/fts-lgpl: Depend on openat.
15868         * modules/mkancesdirs: Depend on savewd.
15869         * modules/mkdir-p: Likewise.
15870
15871 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15872
15873         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
15874
15875         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
15876         `gl_have_arbitrary_file_name_length_limit' to
15877         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
15878         actually works between configure runs.
15879
15880 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15881             Bruno Haible  <bruno@clisp.org>
15882
15883         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
15884
15885 2006-09-25  Jim Meyering  <jim@meyering.net>
15886
15887         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
15888         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
15889
15890 2006-09-25  Eric Blake  <ebb9@byu.net>
15891
15892         * gnulib-tool (func_import, func_create_testdir): Fix typos in
15893         exec's in 2006-09-18 patch when shuffling fds.
15894
15895 2006-09-25  Bruno Haible  <bruno@clisp.org>
15896
15897         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
15898         Reported by Jim Meyering.
15899
15900 2006-09-24  Jim Meyering  <jim@meyering.net>
15901
15902         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
15903         compare a pointer against a literal "0".  That caused failures with
15904         at least HP-UX's hpcc.
15905
15906 2006-09-22  Simon Josefsson  <jas@extundo.com>
15907
15908         * modules/gc-sha1:
15909         * modules/gc-md4:
15910         * modules/gc-hmac-sha1:
15911         * modules/gc-hmac-md5:
15912         * modules/gc-des:
15913         * modules/gc-arcfour: Distribute more files.
15914
15915 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15916
15917         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
15918         (gl_linked_iterator_from_to): Initialize struct completely.
15919         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
15920         (gl_tree_iterator_from_to): Likewise
15921         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
15922         * lib/gl_array_list.c [lint] (gl_array_iterator)
15923         (gl_array_iterator_from_to): Likewise.
15924         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
15925         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
15926         (gl_carray_iterator_from_to): Likewise.
15927
15928         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
15929         * lib/md4.c (md4_process_block): Remove unused variable.
15930         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
15931         parentheses for clarity.
15932
15933 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15934
15935         * modules/bison-i18n (Depends-on): Add gettext.
15936
15937 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15938
15939         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
15940         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
15941         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
15942         also add missing comma that caused broken test.
15943         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
15944         stdlib.h, for `abort'.
15945         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
15946         variables.
15947         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
15948         include unistd.h if present, for `rmdir'.
15949         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
15950         variables.
15951         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
15952         in the process include standard headers for prototypes.
15953         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
15954         gets declared on GNU/Linux.
15955         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
15956         unistd.h, for `rmdir'.
15957         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
15958
15959         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
15960         always true.
15961         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
15962
15963         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
15964
15965 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15966
15967         * gnulib-tool (func_version): Create output all at once.  This
15968         may help avoid triggering unnecessary SIGPIPEs, and at any
15969         rate it doesn't hurt.
15970
15971 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15972             Bruno Haible  <bruno@clisp.org>
15973
15974         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
15975         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
15976         * m4/signed.m4 (bh_C_SIGNED): Likewise.
15977
15978         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
15979         (gl_FUNC_VASPRINTF): Invoke it.
15980
15981 2006-09-22  Bruno Haible  <bruno@clisp.org>
15982
15983         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
15984         getloadavg.c as first argument.
15985
15986 2006-09-22  Bruno Haible  <bruno@clisp.org>
15987
15988         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
15989         at the beginning of the gl_INIT macro.
15990         * modules/getloadavg (configure.ac): Pass $gl_source_base to
15991         gl_GETLOADAVG.
15992
15993 2006-09-22  Bruno Haible  <bruno@clisp.org>
15994
15995         * gnulib-tool (func_create_megatestdir): Don't include the config-h
15996         module.
15997         Suggested by Ralf Wildenhues.
15998
15999 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
16000
16001         Import this patch from libc:
16002
16003         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
16004
16005         * lib/regex_internal.c (re_string_reconstruct): Handle
16006         offset < pstr->valid_raw_len && pstr->offsets_needed case.
16007         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
16008         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
16009         re_string_context_at.
16010
16011         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
16012         now requires it.
16013         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
16014         gl_REGEX now does it for us.
16015         (gl_REGEX): Add test taken from
16016         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
16017
16018         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
16019         Check that large offsets work.  Modernize Autoconf usages.
16020         Prefer "yes" to mean a good thing rather than a bad.
16021         Don't put "#define mkstemp" in config.h, as this might interfere
16022         with standard system headers that "#define mkstemp mkstemp64".
16023
16024         * modules/mkstemp (Depends-on): Add extensions, so that
16025         mkstemp is visible on some platforms.
16026         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
16027         (Include): Change to "mkstemp.h" from <stdlib.h>.
16028         (Files): Add mkstemp.h.
16029
16030         * lib/mkstemp.h: New file, since some standard headers
16031         #define mkstemp.
16032         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
16033         Include "mkstemp.h".
16034         Make the _LIBC code resemble glibc original more,
16035         e.g., use K&R style.
16036         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
16037         (mkstemp): Remove, since mkstemp.h does this for us.
16038         * lib/stdlib--.h: Include mkstemp.h.
16039
16040         Import this patch from libc:
16041
16042         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
16043
16044         * lib/tempname.c (__gen_tempname): Change attempts_min
16045         into a macro.  Use preprocessor to decide how to initialize
16046         attempts [Coverity CID 67].
16047
16048 2006-09-20  Bruno Haible  <bruno@clisp.org>
16049
16050         * lib/mkdtemp.c: Import from libc.
16051         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
16052                 * sysdeps/posix/tempname.c (__gen_tempname): Change
16053                 attempts_min into a macro.  Use preprocessor to decide how to
16054                 initialize attempts [Coverity CID 67].
16055         2001-11-27  Paul Eggert  <eggert@twinsun.com>
16056                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
16057                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
16058
16059 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16060
16061         * gnulib-tool (func_exit): New function, to allow to pass the
16062         exit status portably through the trap.  Use everywhere.
16063         (--help, --version): Signal a write error.
16064         (trap): catch SIGPIPE, for write errors.
16065         Exit at the end of the trap, with the correct exit status.
16066
16067 2006-09-19  Karl Berry  <karl@gnu.org>
16068
16069         * doc/gnulib.texi: note about the license texinfo files.
16070
16071 2006-09-19  Eric Blake  <ebb9@byu.net>
16072
16073         * gnulib-tool: Avoid space-tab.
16074
16075 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
16076
16077         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
16078         that prevented coreutils 6.1 from building.  Problem reported
16079         by Petter Reinholdtsen.
16080
16081 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
16082
16083         * gnulib-tool (avoidlist): Fix typo that broke options like
16084         --avoid=lock that are used by coreutils bootstrap.
16085
16086 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
16087
16088         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
16089         more systematically.
16090
16091 2006-09-18  Jim Meyering  <jim@meyering.net>
16092
16093         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
16094
16095 2006-09-18  Bruno Haible  <bruno@clisp.org>
16096
16097         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
16098
16099 2006-09-18  Bruno Haible  <bruno@clisp.org>
16100
16101         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
16102         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
16103         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
16104         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
16105         * m4/gettext.m4: Require autoconf >= 2.52.
16106         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
16107         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
16108         of gl_cv_header_inttypes_h.
16109
16110 2006-09-18  Bruno Haible  <bruno@clisp.org>
16111
16112         * lib/javaversion.c: Include configmake.h.
16113
16114 2006-09-18  Bruno Haible  <bruno@clisp.org>
16115
16116         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
16117         avoid that the while loops be executed in a subshell.
16118
16119 2006-09-18  Bruno Haible  <bruno@clisp.org>
16120
16121         * MODULES.html.sh (func_module): Break long lines.
16122         Suggested by Bruce Korb <bkorb@gnu.org>.
16123
16124 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16125
16126         Speed up by a factor of 1.12.
16127         * gnulib-tool (nl): New variable.
16128         (func_import): Rewrite include directive extraction to only read each
16129         directive once.
16130
16131 2006-09-17  Bruno Haible  <bruno@clisp.org>
16132
16133         * modules/javaversion (Makefile.am): Remove DEFS setting.
16134         (Depends-on): Add configmake, for PKGDATADIR definition.
16135
16136 2006-09-17  Bruno Haible  <bruno@clisp.org>
16137
16138         * gnulib-tool (func_create_testdir): Rewrite all files at once.
16139
16140 2006-09-17  Bruno Haible  <bruno@clisp.org>
16141
16142         * gnulib-tool (func_append): New function, stolen from libtool.m4.
16143         (func_modules_transitive_closure, func_modules_add_dummy,
16144         func_modules_to_filelist, func_import, func_create_testdir,
16145         func_create_megatestdir, ...): Use it wherever possible.
16146         Suggested by Ralf Wildenhues.
16147
16148 2006-09-16  Karl Berry  <karl@gnu.org>
16149
16150         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
16151         to avoid sectioning errors.
16152         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
16153         [ifinfo]: blank line after @center-ed titles.
16154         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
16155         Spell FSF address consistently with others.
16156         (These changes approved by rms.)
16157
16158 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16159
16160         Speed up by a factor of 1.61.
16161         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
16162         already checked module names again.
16163
16164 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16165
16166         Speed up by a factor of 1.13.
16167         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
16168         for new_files, and the input to func_add_or_update.
16169
16170 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16171
16172         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
16173         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
16174
16175 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
16176
16177         * modules/mkancesdirs (Depends-on): Add fcntl.
16178         * modules/savewd: New file.
16179         * MODULES.html.sh (File system functions): Add savewd.
16180
16181         * modules/configmake (Makefile.am): Add support for the
16182         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
16183
16184 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
16185
16186         * m4/savewd.m4: New file.
16187
16188 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
16189
16190         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
16191         (dirchownmod): New arg FD.  All callers changed.
16192         Use FD rather than opening the directory ourself, as opening is
16193         now the caller's responsibility.
16194         * lib/dirchownmod.h: Likewise.
16195         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
16196         hosts that require <sys/types.h> before <sys/stat.h>.  Include
16197         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
16198         (test_dir): Remove.
16199         (mkancesdirs): Return length of prefix of FILE that has already
16200         been made, or -2 if there is a child doing the work.  Redo
16201         algorithm so that it is O(N) rather than O(N**2).  Optimize away
16202         ".", and treat ".." specially since it might stray back into
16203         already-created areas.  Use a subprocess if necessary.  New arg
16204         WD; all users changed.  MAKE_DIR function should now return 1
16205         if it creates a directory that is not readable.  Return -2 if
16206         a child process is spun off.
16207         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
16208         Adjust signature to match code.
16209         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
16210         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
16211         all users changed.
16212         * lib/savewd.c, lib/savewd.h: New files.
16213
16214 2006-09-15  Jim Meyering  <jim@meyering.net>
16215
16216         * modules/rename-dest-slash: New module.
16217         * MODULES.html.sh (posix_compat): Add it here.
16218
16219         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
16220
16221 2006-09-15  Jim Meyering  <jim@meyering.net>
16222
16223         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
16224         file.
16225
16226         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
16227
16228 2006-09-15  Jim Meyering  <jim@meyering.net>
16229
16230         * lib/rename-dest-slash.c (has_trailing_slash): Use
16231         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
16232         (rpl_rename_dest_slash): Perform the cheaper trailing slash
16233         test before testing whether SRC is a directory.
16234         Suggestions from Bruno Haible.
16235
16236         Avoid a warning about an unused variable.
16237         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
16238         into the #ifdef block where it's used.
16239
16240         * lib/rename-dest-slash.c: New file.
16241
16242 2006-09-14  Bruno Haible  <bruno@clisp.org>
16243
16244         * lib/allocsa.c: Include <config.h> unconditionally.
16245         * lib/asnprintf.c: Likewise.
16246         * lib/asprintf.c: Likewise.
16247         * lib/c-strcasecmp.c: Likewise.
16248         * lib/c-strcasestr.c: Likewise.
16249         * lib/c-strncasecmp.c: Likewise.
16250         * lib/c-strstr.c: Likewise.
16251         * lib/classpath.c: Likewise.
16252         * lib/clean-temp.c: Likewise.
16253         * lib/concatpath.c: Likewise.
16254         * lib/copy-file.c: Likewise.
16255         * lib/csharpcomp.c: Likewise.
16256         * lib/csharpexec.c: Likewise.
16257         * lib/execute.c: Likewise.
16258         * lib/fatal-signal.c: Likewise.
16259         * lib/findprog.c: Likewise.
16260         * lib/fwriteerror.c: Likewise.
16261         * lib/gl_array_list.c: Likewise.
16262         * lib/gl_array_oset.c: Likewise.
16263         * lib/gl_avltree_list.c: Likewise.
16264         * lib/gl_avltree_oset.c: Likewise.
16265         * lib/gl_avltreehash_list.c: Likewise.
16266         * lib/gl_carray_list.c: Likewise.
16267         * lib/gl_linked_list.c: Likewise.
16268         * lib/gl_linkedhash_list.c: Likewise.
16269         * lib/gl_list.c: Likewise.
16270         * lib/gl_oset.c: Likewise.
16271         * lib/gl_rbtree_list.c: Likewise.
16272         * lib/gl_rbtree_oset.c: Likewise.
16273         * lib/gl_rbtreehash_list.c: Likewise.
16274         * lib/imaxabs.c: Likewise.
16275         * lib/imaxdiv.c: Likewise.
16276         * lib/javacomp.c: Likewise.
16277         * lib/javaexec.c: Likewise.
16278         * lib/javaversion.c: Likewise.
16279         * lib/linebreak.c: Likewise.
16280         * lib/localcharset.c: Likewise.
16281         * lib/lock.c: Likewise.
16282         * lib/mbchar.c: Likewise.
16283         * lib/mbswidth.c: Likewise.
16284         * lib/mkdtemp.c: Likewise.
16285         * lib/pipe.c: Likewise.
16286         * lib/printf-args.c: Likewise.
16287         * lib/printf-parse.c: Likewise.
16288         * lib/progname.c: Likewise.
16289         * lib/progreloc.c: Likewise.
16290         * lib/readlink.c: Likewise.
16291         * lib/sh-quote.c: Likewise.
16292         * lib/stpcpy.c: Likewise.
16293         * lib/stpncpy.c: Likewise.
16294         * lib/strcasecmp.c: Likewise.
16295         * lib/strcasestr.c: Likewise.
16296         * lib/strcspn.c: Likewise.
16297         * lib/striconv.c: Likewise.
16298         * lib/strncasecmp.c: Likewise.
16299         * lib/strnlen1.c: Likewise.
16300         * lib/strstr.c: Likewise.
16301         * lib/strtok_r.c: Likewise.
16302         * lib/tls.c: Likewise.
16303         * lib/tmpdir.c: Likewise.
16304         * lib/unicodeio.c: Likewise.
16305         * lib/unsetenv.c: Likewise.
16306         * lib/vasnprintf.c: Likewise.
16307         * lib/vasprintf.c: Likewise.
16308         * lib/wait-process.c: Likewise.
16309         * lib/xallocsa.c: Likewise.
16310         * lib/xsetenv.c: Likewise.
16311         * lib/xstriconv.c: Likewise.
16312
16313 2006-09-13  Simon Josefsson  <jas@extundo.com>
16314
16315         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
16316         that internally, suggested by Ralf Wildenhues
16317         <Ralf.Wildenhues@gmx.de>.
16318
16319 2006-09-13  Simon Josefsson  <jas@extundo.com>
16320
16321         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
16322         @LIBOBJS@.
16323         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16324
16325 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16326
16327         * lib/_fpending.c: Include <config.h> unconditionally, since we no
16328         longer worry about uses that don't define HAVE_CONFIG_H.
16329         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
16330         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
16331         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
16332         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
16333         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
16334         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
16335         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
16336         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
16337         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
16338         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
16339         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
16340         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
16341         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
16342         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
16343         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
16344         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
16345         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
16346         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
16347         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
16348         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
16349         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
16350         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
16351         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
16352         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
16353         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
16354         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
16355         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
16356         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
16357         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
16358         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
16359         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
16360         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
16361         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
16362         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
16363         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
16364         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
16365         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
16366         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
16367         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
16368         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
16369         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
16370         Likewise.
16371
16372 2006-09-13  Eric Blake  <ebb9@byu.net>
16373
16374         * lib/getopt.c: Fix typo in last commit.
16375
16376 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
16377
16378         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
16379         dgettext.
16380
16381 2006-09-12  Jim Meyering  <jim@meyering.net>
16382
16383         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
16384         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
16385         Reported by Nelson H. F. Beebe.
16386
16387 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
16388
16389         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
16390         program_invocation_name and program_invocation_short_name are
16391         initialized.
16392         * lib/argp-namefrob.h: Move declarations of program_invocation_name
16393         and program_invocation_short_name to argp.h, so they are visible
16394         to user programs.
16395         * lib/argp.h: Likewise
16396
16397 2006-09-10  Bruno Haible  <bruno@clisp.org>
16398
16399         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
16400         m4/inttypes_h.m4, m4/uintmax_t.m4.
16401
16402 2006-09-10  Bruno Haible  <bruno@clisp.org>
16403
16404         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
16405         gl_AC_TYPE_UINTMAX_T.
16406
16407 2006-09-10  Bruno Haible  <bruno@clisp.org>
16408
16409         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
16410
16411 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
16412
16413         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
16414         convention.  Text proposed by Bruno Haible.
16415         (struct argp_option): Document the use of N_() wrappers.
16416
16417         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
16418         '\v', and translate the two parts separately, instead of feeding
16419         the whole string to gettext.  This allows to exclude
16420         '\v' from the strings visible to the translator by writing doc
16421         strings as N_("..") "\v" N_("..").
16422
16423 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
16424
16425         * config/srclist.txt: Undo latest change; the bug was fixed.
16426
16427 2006-09-09  Bruno Haible  <bruno@clisp.org>
16428
16429         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
16430         assignments if building a library without libtool.
16431         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
16432         in func_emit_lib_Makefile_am.
16433         (func_import): When building a static library libfoo.a, arrange to
16434         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
16435         (func_create_testdir): Likewise.
16436         * modules/gc (configure.ac, Makefile.am): If building statically,
16437         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
16438         * modules/iconvme (configure.ac, Makefile.am): Likewise.
16439         * modules/striconv (configure.ac, Makefile.am): Likewise.
16440         Based on a suggestion by Ralf Wildenhues.
16441
16442 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
16443
16444         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
16445         Check for unistd.h too, since Autoconf doesn't assume POSIX.
16446         Also:
16447
16448         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
16449         Add year_2050_test to catch glibc bug 2821
16450         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
16451
16452         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
16453         Prefer #ifdef to #if.
16454
16455         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
16456         Return from 'main' instead of calling 'exit'.
16457
16458 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
16459
16460         * lib/mktime.c (guess_time_tm): Fix bug where mktime
16461         returned the maximum time_t value rather than (time_t) -1.
16462         Problem originally reported by William Bardwell
16463         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
16464
16465         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
16466         Moved to here ...
16467         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
16468         ... from here.
16469
16470 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
16471
16472         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
16473         2821 is fixed.
16474
16475 2006-09-08  Jim Meyering  <jim@meyering.net>
16476
16477         Don't make generated files read-only.  That would bother too many
16478         people.  However, do retain the ability to work when targets are
16479         read-only: remove the destination and temporary files before writing
16480         them (when generated via sed or echo), or by using the -f option for
16481         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
16482         * modules/alloca-opt, modules/argz, modules/arpa_inet:
16483         * modules/byteswap, modules/configmake, modules/fcntl:
16484         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
16485         * modules/localcharset, modules/netinet_in, modules/poll:
16486         * modules/stdbool, modules/stdint, modules/sys_select:
16487         * modules/sys_socket, modules/sys_stat, modules/sysexits:
16488
16489 2006-09-08  Jim Meyering  <jim@meyering.net>
16490
16491         Avoid new build failure on FreeBSD 6.0.
16492         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
16493         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
16494         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
16495
16496 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16497
16498         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
16499
16500 2006-09-07  Jim Meyering  <jim@meyering.net>
16501
16502         Fix global typo in last change: use chmod u-w, not chmod u-x.
16503         Spotted by Paul Eggert and Bruce Korb.
16504         * modules/alloca-opt, modules/argz, modules/arpa_inet:
16505         * modules/byteswap, modules/configmake, modules/fcntl:
16506         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
16507         * modules/localcharset, modules/netinet_in, modules/poll:
16508         * modules/stdbool, modules/stdint, modules/sys_select:
16509         * modules/sys_socket, modules/sys_stat, modules/sysexits:
16510
16511 2006-09-06  Jim Meyering  <jim@meyering.net>
16512
16513         Make generated files be read-only.
16514         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
16515         Ensure that each generated file is now read-only.
16516         * modules/argz: Likewise.
16517         * modules/arpa_inet: Likewise.
16518         * modules/byteswap: Likewise.
16519         * modules/configmake: Likewise.
16520         * modules/fcntl: Likewise.
16521         * modules/fnmatch: Likewise.
16522         * modules/getopt: Likewise.
16523         * modules/glob: Likewise.
16524         * modules/inttypes: Likewise.
16525         * modules/netinet_in: Likewise.
16526         * modules/poll: Likewise.
16527         * modules/stdbool: Likewise.
16528         * modules/stdint: Likewise.
16529         * modules/sys_select: Likewise.
16530         * modules/sys_socket: Likewise.
16531         * modules/sys_stat: Likewise.
16532         * modules/sysexits: Likewise.
16533         * modules/localcharset: Same as above, but continue using temporary
16534         file named "t-$@" (why different?) rather than the "$@-t" used
16535         everywhere else.
16536
16537         * modules/sysexits (Makefile.am): Replace literal occurrences
16538         of "sysexit.h" more readable, and more consistent, "$@".
16539
16540 2006-09-06  Bruno Haible  <bruno@clisp.org>
16541
16542         * modules/striconv: New file.
16543         * modules/xstriconv: New file.
16544         * MODULES.html.sh (Internationalization functions): Add striconv,
16545         xstriconv.
16546
16547 2006-09-06  Bruno Haible  <bruno@clisp.org>
16548
16549         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
16550         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
16551         not using libtool correctly.
16552
16553 2006-09-06  Bruno Haible  <bruno@clisp.org>
16554
16555         * lib/striconv.h: New file.
16556         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
16557         iconvstring.c.
16558         * lib/xstriconv.h: New file.
16559         * lib/xstriconv.c: New file.
16560
16561 2006-09-06  Bruno Haible  <bruno@clisp.org>
16562
16563         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
16564         lib_..._LDFLAGS.
16565
16566 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16567
16568         * lib/argz_.h: Sync from Libtool.
16569
16570         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
16571                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16572
16573         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
16574
16575 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
16576
16577         * modules/trim: New file.
16578
16579 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
16580
16581         * lib/trim.h: New file.
16582         * lib/trim.c: New file.
16583
16584 2006-09-05  Bruno Haible  <bruno@clisp.org>
16585
16586         * MODULES.html.sh (String handling): Add trim.
16587
16588 2006-09-04  Karl Berry  <karl@gnu.org>
16589
16590         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
16591         until next release.
16592
16593 2006-09-03  Bruno Haible  <bruno@clisp.org>
16594
16595         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
16596         correctly.
16597
16598 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16599
16600         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
16601         not gl_GETLOADAVG.  Omit unneeded semicolons.
16602         Problems reported by Ralf Wildenhues in
16603         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
16604         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
16605         at the end, which is the usual gnulib style.
16606
16607         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
16608         of doing all the work ourselves.
16609         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
16610         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
16611
16612 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16613
16614         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
16615         Problem reported by Ralf Wildenhues in
16616         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
16617
16618         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
16619         HAVE_STRUCT_STATFS_F_FSTYPENAME.
16620
16621 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16622
16623         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
16624         yesterday's patch by changing test -n to test -z.
16625
16626 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
16627
16628         * modules/getloadavg (Files): Add m4/getloadavg.m4.
16629         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
16630         the former is now obsolescent.
16631
16632         * modules/chdir-long (Depends-on): Add fcntl.
16633
16634 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
16635
16636         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
16637         obsolescent, and programs should use gnulib instead.
16638         * m4/getloadavg.m4: New file, with contents taken from Autoconf
16639         but with prefixes changed.
16640
16641 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
16642
16643         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
16644         or stdbool.h, because they might not exist while configuring.
16645
16646         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
16647         Don't include unistd.h or limits.h; not needed, since chdir-long.h
16648         does that for us.
16649         (O_DIRECTORY): Remove.
16650
16651 2006-08-31  Eric Blake  <ebb9@byu.net>
16652
16653         * gnulib-tool: Don't let emacs change spaces to TAB.
16654
16655 2006-08-31  Bruno Haible  <bruno@clisp.org>
16656
16657         * gnulib-tool: When calling func_import more than once, do it in a
16658         subshell.
16659         Reported by Eric Blake <ebb9@byu.net>.
16660
16661 2006-08-31  Bruno Haible  <bruno@clisp.org>
16662
16663         * gnulib-tool (nl): Remove variable.
16664         (sed_transform_lib_file): Use more robust test for config-h module.
16665         (func_import): Fix typo in 2006-08-25 patch.
16666
16667 2006-08-31  Bruno Haible  <bruno@clisp.org>
16668
16669         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
16670         specified, augment Makefile.am variables instead of assigning them.
16671
16672 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
16673
16674         Work around a bug in both the Linux and SunOS 64-bit kernels:
16675         nanosleep mishandles sleeps for longer than 2**31 seconds.
16676         Problem reported by Frank v Waveren in
16677         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
16678         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
16679         Check for nanosleep bug.
16680         (LIB_NANOSLEEP): Append clock_gettime library if needed.
16681
16682 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
16683
16684         Work around a bug in both the Linux and SunOS 64-bit kernels:
16685         nanosleep mishandles sleeps for longer than 2**31 seconds.
16686         Problem reported by Frank v Waveren in
16687         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
16688         * lib/nanosleep.c (BILLION): New constant.
16689         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
16690         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
16691         implementation.
16692
16693 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
16694
16695         * modules/nanosleep (Depends-on): Add gettime.
16696
16697 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
16698         and Simon Josefsson  <jas@extundo.com>
16699         and Oskar Liljeblad  <oskar@osk.mine.nu>
16700
16701         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
16702         * gnulib-tool (func_import): New license type 'unmodifiable license
16703         text'.
16704         * modules/fdl: Use it.  Longer description.
16705         * module/gpl, module/lgpl: New files.
16706
16707 2006-08-30  Jim Meyering  <jim@meyering.net>
16708
16709         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
16710         shadowing the parameter.
16711
16712 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16713
16714         Sync from Libtool:
16715
16716         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16717
16718         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
16719         sharing with gnulib.  Report by Eric Blake.
16720
16721 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
16722
16723         * modules/isapipe: New file.
16724         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
16725
16726 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
16727
16728         * modules/configmake (Makefile.am): Add a comment, and omit
16729         the CONFIGMAKE_ prefix from generated macro names.  Suggested
16730         by Bruno Haible.
16731
16732 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
16733
16734         * m4/isapipe.m4: New file.
16735
16736 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
16737
16738         * lib/isapipe.c, lib/isapipe.h: New files.
16739
16740 2006-08-29  Jim Meyering  <jim@meyering.net>
16741
16742         * modules/configmake (Makefile.am): Make configmake.h depend on
16743         Makefile.  Otherwise, a stale configmake.h could hang around.
16744
16745 2006-08-29  Eric Blake  <ebb9@byu.net>
16746
16747         * lib/error.c (error_at_line, print_errno_message): Match libc, after
16748         resolution of upstream bug 3044.
16749
16750 2006-08-29  Bruno Haible  <bruno@clisp.org>
16751
16752         * modules/localcharset (Depends-on): Add configmake.
16753         (Makefile.am): Remove setting of LIBDIR through DEFS.
16754
16755 2006-08-29  Bruno Haible  <bruno@clisp.org>
16756
16757         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
16758         defined.
16759
16760 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
16761
16762         * modules/fcntl: New file.
16763         * modules/chdir-safer (Depends-on): Add fcntl.
16764         * modules/fts: Likewise.
16765         * modules/mkdir-p: Likewise.
16766
16767         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
16768         This undoes the most recent change, since we're now addressing the
16769         problem in a different way.
16770
16771         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
16772         into output, since the output might be called Makefile.am even
16773         if $makefile_name is something different.
16774         (func_import): Use $makefile_am rather than
16775         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
16776         empty.
16777
16778         * modules/inttypes (Files): Add m4/inttypes-h.m4.
16779
16780 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
16781
16782         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
16783         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
16784         recent change to stdint.m4, since we're now addressing the problem in a
16785         different way.
16786
16787 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
16788
16789         * m4/fcntl_h.m4: New file.
16790
16791 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
16792
16793         * lib/fcntl_.h: New file.
16794         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
16795         the fcntl module.
16796         * lib/dirchownmod.c: Likewise.
16797         * lib/fts.c: Likewise.
16798
16799         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
16800         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
16801         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
16802         just before including <inttypes.h>, to avoid circular inclusion.
16803
16804 2006-08-28  Jim Meyering  <jim@meyering.net>
16805
16806         * doc/visibility.texi: Actually read and correct the grammar of the
16807         sentence affected by yesterday's change.
16808
16809 2006-08-28  Eric Blake  <ebb9@byu.net>
16810
16811         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
16812         needs wrapper.
16813
16814 2006-08-28  Eric Blake  <ebb9@byu.net>
16815
16816         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
16817
16818 2006-08-28  Eric Blake  <ebb9@byu.net>
16819
16820         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
16821
16822 2006-08-28  Bruno Haible  <bruno@clisp.org>
16823
16824         * modules/c-strstr: New file, from GNU gettext.
16825         * MODULES.html.sh (String handling): Add c-strstr.
16826
16827 2006-08-28  Bruno Haible  <bruno@clisp.org>
16828
16829         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
16830         macros.
16831         Reported by Eric Blake.
16832
16833 2006-08-28  Bruno Haible  <bruno@clisp.org>
16834
16835         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
16836         (VASNPRINTF): Return a string of length > INT_MAX without failing.
16837         * lib/vasprintf.c: Include errno.h, limits.h.
16838         (EOVERFLOW): New fallback definition.
16839         (vasprintf): Test here whether the string length is > INT_MAX.
16840         * lib/vsnprintf.c: Include errno.h, limits.h.
16841         (EOVERFLOW): New fallback definition.
16842         (vsnprintf): Fix bug when generated string was too long for the buffer.
16843         Test here whether the string length is > INT_MAX.
16844
16845 2006-08-28  Bruno Haible  <bruno@clisp.org>
16846
16847         * lib/inttypes_.h (SCNX*): Remove definitions.
16848         Reported by Eric Blake.
16849
16850 2006-08-28  Bruno Haible  <bruno@clisp.org>
16851
16852         * lib/c-strstr.h: New file, from GNU gettext.
16853         * lib/c-strstr.c: New file, from GNU gettext.
16854
16855 2006-08-28  Bruno Haible  <bruno@clisp.org>
16856
16857         * gnulib-tool: Reorder some statements.
16858
16859 2006-08-28  Bruno Haible  <bruno@clisp.org>
16860
16861         * gnulib-tool: New option --makefile-name.
16862         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
16863         $makefile_name.
16864         (func_import): Write $makefile_name to the cache file, and read it from
16865         there unless explicitly specified. Use $makefile_name as file name
16866         instead of Makefile.am. Adjust the recommendations accordingly.
16867
16868 2006-08-28  Bruno Haible  <bruno@clisp.org>
16869
16870         * gnulib-tool (func_verify_module): Check against misapplying patch.
16871
16872 2006-08-28  Bruno Haible  <bruno@clisp.org>
16873
16874         * gnulib-tool (func_relativize, func_relconcat): New functions.
16875         Give an error if --local-dir is given with --update.
16876         Remove trailing slashes from $local_gnulib_dir.
16877         (func_import): Store the relativized $local_gnulib_dir in
16878         gnulib-cache.m4, and read it from there if not specified explicitly.
16879
16880 2006-08-28  Bruno Haible  <bruno@clisp.org>
16881
16882         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
16883         is the current directory. Respect also $local_gnulib_dir.
16884
16885 2006-08-28  Bruno Haible  <bruno@clisp.org>
16886             Simon Josefsson  <jas@extundo.com>
16887
16888         BeOS portability.
16889         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
16890
16891 2006-08-27  Jim Meyering  <jim@meyering.net>
16892
16893         * doc/visibility.texi: Remove duplicate word: "pointer".
16894
16895 2006-08-26  Bruno Haible  <bruno@clisp.org>
16896
16897         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
16898         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
16899         (Makefile.am): Create inttypes.h from inttypes_.h.
16900         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
16901
16902         * modules/imaxabs: New file.
16903
16904         * modules/imaxdiv: New file.
16905
16906 2006-08-26  Bruno Haible  <bruno@clisp.org>
16907
16908         * m4/inttypes.m4: New file.
16909         * m4/_inttypes_h.m4: Remove file.
16910         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
16911         PRI_MACROS_BROKEN.
16912         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
16913
16914         * m4/imaxabs.m4: New file.
16915
16916         * m4/imaxdiv.m4: New file.
16917
16918 2006-08-26  Bruno Haible  <bruno@clisp.org>
16919
16920         * lib/inttypes_.h: New file.
16921         * lib/inttypes.h: Remove file.
16922         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
16923
16924         * lib/imaxabs.c: New file.
16925
16926         * lib/imaxdiv.c: New file.
16927
16928 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
16929
16930         New config-h module, so that "make" output needn't be cluttered
16931         by -DHAVE_CONFIG_H.
16932         * MODULES.html.sh (Support for building libraries and executables):
16933         Add config-h.
16934         * modules/config-h: New file.
16935         * gnulib-tool (nl, sed_transform_lib_file): New vars.
16936         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
16937         the config-h module is used.
16938
16939         New configmake module, so that "make" output needn't be cluttered
16940         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
16941         * MODULES.html.sh (Support for building libraries and executables):
16942         Add configmake.
16943         * modules/configmake: New file.
16944
16945 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
16946
16947         * m4/config-h.m4: New file.
16948
16949 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
16950
16951         * config/srclist.txt: Add elisp-comp.
16952
16953 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
16954
16955         * MODULES.html.sh (Support for building libraries and executables):
16956         Add elisp-comp.
16957         * build-aux/elisp-comp: New file.
16958         * modules/elisp-comp: New file.
16959
16960 2006-08-24  Bruno Haible  <bruno@clisp.org>
16961
16962         * gnulib-tool (func_create_testdir): Use non-default values of
16963         sourcebase and m4base.
16964
16965 2006-08-24  Bruno Haible  <bruno@clisp.org>
16966
16967         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
16968         HTML structure.
16969
16970 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
16971
16972         * modules/openat (Depends-on): Add lchown.
16973
16974 2006-08-23  Bruno Haible  <bruno@clisp.org>
16975
16976         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
16977         of gl_LOCK_EARLY instead of gl_LOCK.
16978
16979 2006-08-23  Bruno Haible  <bruno@clisp.org>
16980
16981         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
16982         on OSF/1 to no.
16983         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
16984
16985 2006-08-23  Bruno Haible  <bruno@clisp.org>
16986
16987         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
16988         as unusable.
16989
16990         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
16991         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
16992         (gl_LOCK): New macro.
16993
16994 2006-08-22  Simon Josefsson  <jas@extundo.com>
16995
16996         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
16997         to md5 module.
16998
16999 2006-08-22  Simon Josefsson  <jas@extundo.com>
17000
17001         * MODULES.html.sh: Add "Support for maintaining and release
17002         projects".
17003
17004         * build-aux/gnupload: New file, from coreutils.
17005
17006 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
17007
17008         Avoid the need for AC_LIBSOURCES in m4 macros.
17009         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
17010         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
17011         * modules/check-version (EXTRA_DIST): Add check-version.h.
17012         * modules/crc (EXTRA_DIST): Add crc.h.
17013         * modules/des (EXTRA_DIST): Add des.h.
17014         * modules/gc (EXTRA_DIST): Add gc.h.
17015         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
17016         * modules/getline (EXTRA_DIST): Add getline.h.
17017         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
17018         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
17019         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
17020         * modules/md2 (EXTRA_DIST): Add md2.h.
17021         * modules/md4 (EXTRA_DIST): Add md4.h.
17022         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
17023         * modules/read-file (EXTRA_DIST): Add read-file.h.
17024         * modules/readline (EXTRA_DIST): Add readline.h.
17025         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
17026         rijndael-api-fst.h.
17027
17028 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
17029
17030         * m4/rijndael.m4 (gl_ARCFOUR):
17031         * m4/arctwo.m4 (gl_ARCTWO):
17032         * m4/check-version.m4 (gl_CHECK_VERSION):
17033         * m4/crc.m4 (gl_CRC):
17034         * m4/des.m4 (gl_DES):
17035         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
17036         * m4/gc.m4 (gl_GC):
17037         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
17038         * m4/getline.m4 (gl_FUNC_GETLINE):
17039         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
17040         * m4/hmac-md5.m4 (gl_HMAC_MD5):
17041         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
17042         * m4/md2.m4 (gl_MD2):
17043         * m4/md4.m4 (gl_MD4):
17044         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
17045         * m4/read-file.m4 (gl_FUNC_READ_FILE):
17046         * m4/readline.m4 (gl_FUNC_READLINE):
17047         * m4/rijndael.m4 (gl_RIJNDAEL):
17048         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
17049         to get the necessary .h files and whatnot.
17050
17051 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
17052
17053         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
17054         gnulib rather than the other way around.
17055         * config/srclistvars.sh (COREUTILS): Remove.
17056
17057 2006-08-22  Jim Meyering  <jim@meyering.net>
17058
17059         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
17060
17061         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
17062
17063 2006-08-22  Eric Blake  <ebb9@byu.net>
17064
17065         * modules/regexprops-generic: New file.
17066         * MODULES.html.sh (Support for building documentation): List it.
17067
17068 2006-08-22  Eric Blake  <ebb9@byu.net>
17069
17070         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
17071         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17072         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
17073         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
17074
17075 2006-08-22  Bruno Haible  <bruno@clisp.org>
17076
17077         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
17078         and lib_LTLIBRARIES like the other lib_* variables.
17079
17080 2006-08-22  Bruno Haible  <bruno@clisp.org>
17081
17082         * build-aux/x-to-1.in: New file, from GNU gettext.
17083
17084 2006-08-22  Bruno Haible  <bruno@clisp.org>
17085
17086         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
17087         <utmpx.h> exists.
17088
17089 2006-08-22  Bruno Haible  <bruno@clisp.org>
17090
17091         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
17092         <utmpx.h> exists.
17093
17094 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
17095
17096         BeOS portability.
17097         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
17098         exist.
17099         Problem reported by Bruno Haible.
17100
17101 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
17102
17103         Avoid the need for AC_LIBSOURCES in m4 macros.
17104         * modules/acl (EXTRA_DIST): Add acl.h.
17105         * modules/argmatch (Files): Add m4/argmatch.m4.
17106         (configure.ac): Add gl_ARGMATCH.
17107         (EXTRA_DIST): Renamed from lib_SOURCES, for
17108         consistency with the other modules.  Remove argmatch.c.
17109         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
17110         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
17111         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
17112         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
17113         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
17114         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
17115         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
17116         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
17117         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
17118         * modules/closeout (EXTRA_DIST): Add closeout.h.
17119         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
17120         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
17121         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
17122         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
17123         dirname.h; remove basename.c and stripslash.c.
17124         * modules/exclude (EXTRA_DIST): Add exclude.h.
17125         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
17126         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
17127         * modules/file-type (EXTRA_DIST): Add file-type.h.
17128         * modules/filemode (EXTRA_DIST): Add filemode.h.
17129         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
17130         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
17131         * modules/fpending (EXTRA_DIST): Add __fpending.h.
17132         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
17133         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
17134         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
17135         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
17136         * modules/getdate (EXTRA_DIST): Add getdate.c.
17137         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
17138         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
17139         * modules/getpass (EXTRA_DIST): Add getpass.h.
17140         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
17141         * modules/group-member (EXTRA_DIST): Add group-member.h.
17142         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
17143         * modules/hash (EXTRA_DIST): Add hash.h.
17144         * modules/human (EXTRA_DIST): Add human.h.
17145         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
17146         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
17147         * modules/lchown (EXTRA_DIST): Add lchown.h.
17148         * modules/long-options (EXTRA_DIST): Add long-options.h.
17149         * modules/lstat (EXTRA_DIST): Add lstat.h.
17150         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
17151         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
17152         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
17153         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
17154         * modules/memxor (EXTRA_DIST): Add memxor.h.
17155         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
17156         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
17157         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
17158         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
17159         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
17160         * modules/physmem (EXTRA_DIST): Add physmem.h.
17161         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
17162         * modules/posixver (EXTRA_DIST): Add posixver.h.
17163         * modules/quote (EXTRA_DIST): Add quote.h.
17164         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
17165         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
17166         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
17167         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
17168         regex_internal.h regexec.c.
17169         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
17170         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
17171         * modules/same (EXTRA_DIST): Add same.h.
17172         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
17173         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
17174         * modules/savedir (EXTRA_DIST): Add savedir.h.
17175         * modules/sha1 (EXTRA_DIST): Add sha1.h.
17176         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
17177         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
17178         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
17179         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
17180         * modules/strdup (EXTRA_DIST): Add strdup.h.
17181         * modules/strftime (EXTRA_DIST): Add strftime.h.
17182         * modules/strndup (EXTRA_DIST): Add strndup.h.
17183         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
17184         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
17185         * modules/time_r (EXTRA_DIST): Add time_r.h.
17186         * modules/timespec (EXTRA_DIST): Add timespec.h.
17187         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
17188         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
17189         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
17190         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
17191         * modules/userspec (EXTRA_DIST): Add userspec.h.
17192         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
17193         * modules/utimens (EXTRA_DIST): Add utimens.h.
17194         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
17195         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
17196         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
17197         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
17198         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
17199         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
17200         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
17201         * modules/yesno (EXTRA_DIST): Add yesno.h.
17202
17203 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
17204
17205         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
17206
17207         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
17208         * m4/dev-ino.m4, same-inode.m4: Remove.
17209
17210         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
17211         * m4/acl.m4 (AC_FUNC_ACL):
17212         * m4/backupfile.m4 (gl_BACKUPFILE):
17213         * m4/c-strtod.m4 (gl_C99_STRTOLD):
17214         * m4/canon-host.m4 (gl_CANON_HOST):
17215         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
17216         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
17217         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
17218         * m4/cloexec.m4 (gl_CLOEXEC):
17219         * m4/close-stream.m4 (gl_CLOSE_STREAM):
17220         * m4/closeout.m4 (gl_CLOSEOUT):
17221         * m4/dirfd.m4 (gl_FUNC_DIRFD):
17222         * m4/dirname.m4 (gl_DIRNAME):
17223         * m4/exclude.m4 (gl_EXCLUDE):
17224         * m4/exitfail.m4 (gl_EXITFAIL):
17225         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
17226         * m4/file-type.m4 (gl_FILE_TYPE):
17227         * m4/filemode.m4 (gl_FILEMODE):
17228         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
17229         * m4/fpending.m4 (gl_FUNC_FPENDING):
17230         * m4/fprintftime.m4 (gl_FPRINTFTIME):
17231         * m4/fts.m4 (gl_FUNC_FTS):
17232         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
17233         * m4/getdate.m4 (gl_GETDATE):
17234         * m4/gethrxtime.m4 (gl_GETHRXTIME):
17235         * m4/getpagesize.m4 (gl_GETPAGESIZE):
17236         * m4/getpass.m4 (gl_FUNC_GETPASS):
17237         * m4/gettime.m4 (gl_GETTIME):
17238         * m4/getugroups.m4 (gl_GETUGROUPS):
17239         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
17240         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
17241         * m4/hard-locale.m4 (gl_HARD_LOCALE):
17242         * m4/hash.m4 (gl_HASH):
17243         * m4/idcache.m4 (gl_IDCACHE):
17244         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
17245         * m4/lchown.m4 (gl_FUNC_LCHOWN):
17246         * m4/long-options.m4 (gl_LONG_OPTIONS):
17247         * m4/lstat.m4 (gl_FUNC_LSTAT):
17248         * m4/md5.m4 (gl_MD5):
17249         * m4/memcasecmp.m4 (gl_MEMCASECMP):
17250         * m4/memcoll.m4 (gl_MEMCOLL):
17251         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
17252         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
17253         * m4/memxor.m4 (gl_MEMXOR):
17254         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
17255         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
17256         * m4/modechange.m4 (gl_MODECHANGE):
17257         * m4/mountlist.m4 (gl_MOUNTLIST):
17258         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
17259         * m4/openat.m4 (gl_FUNC_OPENAT):
17260         * m4/pathmax.m4 (gl_PATHMAX):
17261         * m4/physmem.m4 (gl_PHYSMEM):
17262         * m4/posixtm.m4 (gl_POSIXTM):
17263         * m4/posixver.m4 (gl_POSIXVER):
17264         * m4/quote.m4 (gl_QUOTE):
17265         * m4/quotearg.m4 (gl_QUOTEARG):
17266         * m4/readtokens.m4 (gl_READTOKENS):
17267         * m4/readutmp.m4 (gl_READUTMP):
17268         * m4/regex.m4 (gl_REGEX):
17269         * m4/safe-read.m4 (gl_SAFE_READ):
17270         * m4/safe-write.m4 (gl_SAFE_WRITE):
17271         * m4/same.m4 (gl_SAME):
17272         * m4/save-cwd.m4 (gl_SAVE_CWD):
17273         * m4/savedir.m4 (gl_SAVEDIR):
17274         * m4/settime.m4 (gl_SETTIME):
17275         * m4/sha1.m4 (gl_SHA1):
17276         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
17277         * m4/stat-macros.m4 (gl_STAT_MACROS):
17278         * m4/stat-time.m4 (gl_STAT_TIME):
17279         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
17280         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
17281         * m4/strdup.m4 (gl_FUNC_STRDUP):
17282         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
17283         * m4/strndup.m4 (gl_FUNC_STRNDUP):
17284         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
17285         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
17286         * m4/time_r.m4 (gl_TIME_R):
17287         * m4/timespec.m4 (gl_TIMESPEC):
17288         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
17289         * m4/unlinkdir.m4 (gl_UNLINKDIR):
17290         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
17291         * m4/userspec.m4 (gl_USERSPEC):
17292         * m4/utimecmp.m4 (gl_UTIMECMP):
17293         * m4/utimens.m4 (gl_UTIMENS):
17294         * m4/xalloc.m4 (gl_XALLOC):
17295         * m4/xgetcwd.m4 (gl_XGETCWD):
17296         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
17297         * m4/xreadlink.m4 (gl_XREADLINK):
17298         * m4/xstrtod.m4 (gl_XSTRTOD):
17299         * m4/yesno.m4 (gl_YESNO):
17300         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
17301         to get the necessary .h files and whatnot.
17302
17303 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
17304             Bruno Haible  <bruno@clisp.org>
17305
17306         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
17307         /bin/sh understanding of '!' conditional negation.
17308
17309 2006-08-21  Jim Meyering  <jim@meyering.net>
17310
17311         * modules/openat (Depends-on): Really alphabetize.
17312
17313         * modules/acl (Depends-on): Add error and quote.
17314
17315         * check-module (find_included_lib_files): Add at-func.c to the
17316         ok-to-include-more-than-once white list.
17317
17318         * modules/openat (Depends-on): Add lstat.  Alphabetize.
17319
17320 2006-08-21  Bruno Haible  <bruno@clisp.org>
17321
17322         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17323         Emit a pkgdata_DATA variable only if some snippets add contents to it.
17324         Reported by Martin Lambers <marlam@marlam.de>.
17325
17326 2006-08-21  Bruno Haible  <bruno@clisp.org>
17327
17328         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
17329         specify an installation location, don't emit a noinst_LIBRARIES or
17330         noinst_LTLIBRARIES assignment.
17331
17332 2006-08-21  Bruno Haible  <bruno@clisp.org>
17333
17334         BeOS portability.
17335         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
17336         BeOS has mbrtowc() but no <wctype.h>.
17337
17338 2006-08-21  Bruno Haible  <bruno@clisp.org>
17339
17340         BeOS portability.
17341         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
17342         exist.
17343
17344 2006-08-21  Bruno Haible  <bruno@clisp.org>
17345
17346         BeOS portability.
17347         * lib/mbchar.h: Include <wctype.h> only if it exists.
17348
17349 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
17350
17351         Remove files that are no longer needed by their respective modules.
17352         * m4/obstack.m4: Remove.
17353         * m4/strerror_r.m4: Remove.
17354         * m4/uint32_t.m4: Remove.
17355         * m4/uintptr_t.m4: Remove.
17356         * m4/ullong_max.m4: Remove.
17357         * m4/xstrtoimax.m4: Remove.
17358         * m4/xstrtoumax.m4: Remove.
17359
17360         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
17361         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
17362         dependencies now capture this.
17363
17364         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
17365         Do not use AC_LIBSOURCES, since gnulib modules now do this.
17366         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
17367         * m4/human.m4 (gl_HUMAN): Likewise.
17368         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
17369         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
17370
17371         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
17372
17373         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
17374         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
17375         stdint.
17376         * m4/human.m4 (gl_HUMAN): Likewise.
17377         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
17378         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
17379         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
17380         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
17381         * m4/xstrtol (gl_XSTRTOL): Likewise.
17382
17383         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
17384         AC_TYPE_LONG_LONG_INT.
17385         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
17386         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
17387         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
17388         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
17389
17390         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
17391         on stdbool.
17392
17393         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
17394         (gl_PREREQ_XSTRTOUL): Remove.
17395
17396         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
17397
17398         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
17399         mode.
17400
17401 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
17402
17403         Add and change modules to make it easier for coreutils to use
17404         gnulib-tool.
17405         * modules/backupfile (Files): Remove m4/d-ino.m4.
17406         (Depends-on): Add d-ino.
17407         * modules/cycle-check (Depends-on): Add stdint.
17408         (lib_SOURCES): Add cycle-check.h.
17409         * modules/d-ino: New module.
17410         * modules/d-type: New module.
17411         * modules/error (Files): Remove m4/strerror_r.m4.
17412         * modules/filemode (Files): Add m4/st_dm_mode.m4.
17413         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
17414         m4/inttypes_h.m4, m4/uintmax_t.m4.
17415         (Depends-on): Add stdint.
17416         (lib_SOURCES): Add fsusage.h.
17417         * modules/getcwd (Files): Remove d-ino.m4.
17418         (Depends-on): Add d-ino.
17419         * modules/getndelim2 (Depends-on): Add stdint.
17420         * modules/glob (Files): Remove m4/d-type.m4.
17421         (Depends-on): Add d-type.
17422         * modules/host-os: New module.
17423         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
17424         m4/inttypes_h.m4, m4/uintmax_t.m4.
17425         * Depends-on: Add stdint.
17426         (lib_SOURCES): Add human.h.
17427         * modules/inttostr (Files): Remove m4/intmax_t.m4,
17428         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
17429         m4/uintmax_t.m4, m4/ulonglong.m4.
17430         (Depends-on): Add stdint.
17431         (EXTRA_DIST): Add inttostr.h.
17432         * modules/lchmod: New module.
17433         * modules/link-follow: New module.
17434         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
17435         (Depends-on): Add lchmod.
17436         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
17437         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
17438         (Depends-on): Add stdint.
17439         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
17440         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
17441         (Depends-on): Add stdint.
17442         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
17443         * modules/perl: New module.
17444         * modules/regex (Depends-on): Add stdint.
17445         * modules/rmdir-errno: New module.
17446         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
17447         m4/intmax_t.m4.
17448         (Depends-on): Add stdint.
17449         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
17450         m4/uintmax_t.m4.
17451         (Depends-on): Add stdint.
17452         * modules/unlink-busy: New module.
17453         * modules/utimecmp (Depends-on): Add stdint.
17454         * modules/uptime: New module.
17455         * modules/winsz-ioctl: New module.
17456         * modules/winsz-termios: New module.
17457         * modules/xnanosleep (Depends-on): Add nanosleep.
17458         * modules/ullong_max: Remove.
17459         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
17460         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
17461         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
17462         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
17463         (Depends-on): Add inttypes.
17464         (lib_SOURCES): Add xstrtol.h.
17465         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
17466         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
17467         * MODULES.html.sh: Move 'assert' into the assert section.
17468         Move 'dummy' into the linking section.
17469         Remove ullong_max.
17470         Add section for compatibility checks for POSIX:2001 functions,
17471         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
17472         winsz-ioctl, and winsz-termios into it.
17473         Add lchmod.
17474         Add top-level Misc section and put host-os, perl, and uptime
17475         into it.
17476
17477 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
17478
17479         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
17480         now assume the stdint module.  Do not include inttypes.h.
17481         * lib/fsusage.h: Likewise.
17482         * lib/getndelim2.c: Likewise.
17483         * lib/human.h: Likewise.
17484         * lib/inttostr.h: Likewise.
17485         * lib/obstack.c: Likewise.
17486         * lib/regex_internal.h: Likewise.
17487         * lib/tempname.c: Likewise.
17488         * lib/utimecmp.c: Likewise.
17489         * lib/xstrtol.h: Likewise.
17490
17491         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
17492
17493         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
17494         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
17495         * lib/xtime.h: Likewise.
17496
17497 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
17498
17499         * modules/openat (Files): Add lib/fchmodat.c.
17500         Fixes problem reported by Jay Youngman.
17501
17502 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
17503
17504         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
17505         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
17506
17507 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
17508             Bruno Haible  <bruno@clisp.org>
17509
17510         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
17511         and is a script that invokes bison. Tighten the code. Add comments.
17512
17513 2006-08-18  Jim Meyering  <jim@meyering.net>
17514
17515         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
17516         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
17517         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
17518         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
17519
17520 2006-08-18  Bruno Haible  <bruno@clisp.org>
17521
17522         * modules/bison-i18n: New file.
17523         * MODULES.html.sh (Internationalization functions): Add it.
17524
17525 2006-08-18  Bruno Haible  <bruno@clisp.org>
17526
17527         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
17528         sys/statvfs.h. When getmntinfo was found, check its declaration and
17529         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
17530
17531 2006-08-18  Bruno Haible  <bruno@clisp.org>
17532
17533         * m4/bison-i18n.m4: New file, from bison.
17534
17535 2006-08-18  Bruno Haible  <bruno@clisp.org>
17536
17537         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
17538         (ME_DUMMY): Treat "kernfs" as a dummy.
17539         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
17540
17541 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
17542
17543         Update from coreutils.
17544
17545         2006-08-15  Jim Meyering  <jim@meyering.net>
17546
17547         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
17548
17549         2006-01-17  Jim Meyering  <jim@meyering.net>
17550
17551         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
17552
17553         2006-01-11  Jim Meyering  <jim@meyering.net>
17554
17555         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
17556         Check for the lchmod function.
17557
17558 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
17559
17560         Update from coreutils.
17561
17562         * lib/__fpending.h: Add copyright notice.
17563         * lib/fprintftime.h: Likewise.
17564         * lib/savedir.c: Use (C) in copyright notice.
17565         * lib/savedir.h: Likewise.
17566
17567         2006-08-15  Jim Meyering  <jim@meyering.net>
17568
17569         * lib/at-func.c: New file, with the logic of all emulated at-functions.
17570         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
17571         in support of the EXPECTED_ERRNO macro.
17572         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
17573         definitions.  Instead, define the appropriate symbols and include
17574         "at-func.c".
17575         * lib/mkdirat.c (mkdirat): Likewise.
17576         * lib/fchmodat.c (fchmodat): Likewise.
17577         (ENOSYS): Remove definition.
17578         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
17579         it.  Don't include "unistd--.h" -- it wasn't ever used.
17580
17581         2006-01-17  Jim Meyering  <jim@meyering.net>
17582
17583         Rewrite fts.c not to change the current working directory,
17584         by using openat, fstatat, fdopendir, etc..
17585
17586         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
17587         (HAVE_OPENAT_SUPPORT): Define.
17588         [_LIBC] (fchdir): Don't undef or define; no longer used.
17589         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
17590         Now, this `function' always succeeds, and consumes its file descriptor
17591         parameter -- so callers must not close such FDs.  Update callers.
17592         (diropen_fd, opendirat, cwd_advance_fd): New functions.
17593         (diropen): Add parameter, SP.  Adjust all callers.
17594         Implement using diropen_fd, rather than open.
17595         (fts_open): Initialize new member, fts_cwd_fd.
17596         Remove fts_rft-setting code.
17597         (fts_close): Close fts_cwd_fd, if necessary.
17598         (__opendir2): Define in terms of opendir or opendirat,
17599         depending on whether the FST_NOCHDIR flag is set.
17600         (fts_build): Since fts_safe_changedir consumes its FD, and since
17601         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
17602         and close the dup'd file descriptor upon failure.
17603         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
17604         (fts_safe_changedir): Tweak semantics to reflect that this function
17605         now calls cwd_advance_fd and hence consumes its FD argument.
17606         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
17607         [struct FTS] (fts_rft): Remove now-unused member.
17608         [struct FTS] (fts_cycle.state): Improve comment.
17609
17610         * lib/openat.c (openat_needs_fchdir): New function.
17611         * lib/openat.h (openat_needs_fchdir): Declare it.
17612
17613 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
17614
17615         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
17616         Problem and fix reported by Pádraig Brady in
17617         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
17618
17619 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
17620
17621         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
17622
17623 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
17624
17625         * lib/memcoll.c (memcoll): Optimize for the common case where the
17626         arguments are bytewise equal.
17627
17628 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
17629
17630         * doc/regexprops-generic.texi: Add a copyright notice.
17631
17632 2006-08-15  Bruno Haible  <bruno@clisp.org>
17633
17634         * modules/tmpdir (License): Change to LGPL.
17635
17636 2006-08-15  Bruno Haible  <bruno@clisp.org>
17637
17638         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
17639         module.
17640
17641 2006-08-14  Simon Josefsson  <jas@extundo.com>
17642
17643         * config/srclist.txt: Add gnupload.
17644
17645 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
17646
17647         Change copyright notice from LGPL 2 to GPL 2, since that's the
17648         standard form used in the gnulib repository.
17649         * tests/test-lock.c: Likewise.
17650         * tests/test-stdint.c: Likewise.
17651         * tests/test-tls.c: Likewise.
17652
17653         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
17654         prelude-manager.  User shorter URLs for GNU projects, without '?'.
17655         Add copyright notice.
17656
17657         * check-module: Add copyright notice.  Output a copyright
17658         notice if "--version" is specified.
17659         * modules/COPYING: New file.
17660         * tests/test-getaddrinfo.c: Add copyright notice.
17661         * tests/test-verify.c: Likewise.
17662
17663 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
17664
17665         Change copyright notice from LGPL 2 to GPL 2, since that's the
17666         standard form used in the gnulib repository.
17667         * lib/lock.c: LGPL -> GPL.
17668         * lib/lock.h: Likewise.
17669         * lib/strnlen1.c: Likewise.
17670         * lib/strnlen1.h: Likewise.
17671         * lib/tls.c: Likewise.
17672         * lib/tls.h: Likewise.
17673         * lib/tmpdir.c: Likewise.
17674
17675         * lib/TODO: Remove; this belongs only in coreutils.
17676
17677 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
17678
17679         Add copyright notices to long-enough files that lack them, since
17680         otherwise the files aren't clearly free.  Use the same notice that
17681         getdate.texi already uses.
17682         * doc/alloca-opt.texi: Add copyright notice.
17683         * doc/alloca.texi: Likewise.
17684         * doc/ctime.texi: Likewise.
17685         * doc/functions.texi: Likewise.
17686         * doc/gcd.texi: Likewise.
17687         * doc/gnulib-tool.texi: Likewise.
17688         * doc/inet_ntoa.texi: Likewise.
17689         * doc/visibility.texi: Likewise.
17690
17691         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
17692         * doc/quote.texi: Add copyright notice.
17693
17694         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
17695         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
17696         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
17697         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
17698         is now obsolete, and give a pointer to the Sun list.
17699         Add copyright notice.
17700
17701 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
17702
17703         * config/srclistvars.sh: Add copyright notice.
17704
17705 2006-08-14  Eric Blake  <ebb9@byu.net>
17706
17707         Import the following change from libc:
17708
17709         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
17710
17711         Upstream bug 2997.
17712         * lib/misc/error.c: Add space between program name and message if file
17713         name is missing.
17714
17715 2006-08-12  Karl Berry  <karl@gnu.org>
17716
17717         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
17718         remove, these originate in gnulib now.
17719
17720 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17721
17722         * doc/Makefile (standards.info standards.html standards.dvi):
17723         Also depend on make-stds.texi.
17724
17725 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
17726
17727         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
17728         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
17729
17730         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
17731         in wchar_t.  Problem reported by Eric Blake.
17732
17733         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
17734         LEN is smaller than SIZE.  Suggested by Bruno Haible.
17735         Also, help the compiler to keep LEN in a register.
17736
17737 2006-08-11  Eric Blake  <ebb9@byu.net>
17738
17739         * users.txt: Sort.  Add tar.
17740
17741 2006-08-11  Bruno Haible  <bruno@clisp.org>
17742
17743         * users.txt: New file.
17744
17745 2006-08-11  Bruno Haible  <bruno@clisp.org>
17746
17747         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
17748         before <wchar.h>. Needed for OSF/1 and BSD/OS.
17749
17750 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
17751
17752         * modules/snprintf (Depends-on): Remove minmax.
17753         (Maintainer): Add self and Bruno.
17754
17755 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
17756
17757         * lib/.cppi-disable: Add snprintf.h, socket_.h.
17758         * lib/snprintf.c: Include <errno.h> and <limits.h>.
17759         (EOVERFLOW): Define if the system does not.
17760         Do not include "minmax.h"; it wasn't used.
17761         (snprintf): Don't assume size_t promotes to an unsigned type.
17762         Fix bug when generated string was too long for the buffer: the
17763         buffer's contents are supposed to be the initial prefix of the
17764         output.  Don't assume vasnprintf returns EOVERFLOW if the size
17765         exceeds INT_MAX; do the check ourselves.
17766
17767         Import the following changes from libc:
17768
17769         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
17770
17771         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
17772         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
17773         set wc to the byte which couldn't be converted.
17774         (re_string_reconstruct): Don't clear valid_raw_len before calling
17775         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
17776         tip_context using re_string_context_at.
17777
17778         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
17779
17780         * lib/posix/regex.h: g++ still cannot handled [restrict].
17781
17782         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
17783
17784         * lib/posix/regex.h: Remove special handling for VMS.
17785
17786 2006-08-10  Jim Meyering  <jim@meyering.net>
17787
17788         * modules/same-inode: New module.
17789         * modules/dev-ino: New module.
17790         * modules/cycle-check: Depend on these modules, rather than simply
17791         including their .h files.
17792         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
17793         required via m4/cycle-check.m4.
17794         * modules/same: Depend on new same-inode module, rather than
17795         including same-inode.h.
17796         * modules/chdir-safer: New file.
17797
17798         * modules/chown (Depends-on): Add stat-macros.
17799
17800 2006-08-10  Jim Meyering  <jim@meyering.net>
17801
17802         * m4/cycle-check.m4: New file.
17803         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
17804         * m4/dev-ino.m4, m4/same-inode.m4: New files.
17805
17806 2006-08-10  Eric Blake  <ebb9@byu.net>
17807
17808         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
17809         in from original proposal.
17810
17811 2006-08-10  Eric Blake  <ebb9@byu.net>
17812         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17813
17814         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
17815         namespace.
17816
17817 2006-08-10  Bruno Haible  <bruno@clisp.org>
17818
17819         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
17820         as well.
17821
17822 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
17823
17824         Sync from coreutils.
17825
17826         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
17827
17828         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
17829         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
17830
17831 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
17832
17833         * modules/restrict: Remove; no longer needed now that we assume
17834         Autoconf 2.59 or later.
17835         * MODULES.html.sh: Remove 'restrict'.
17836         * modules/argp (Depends-on): Remove 'restrict'.
17837         * modules/base64 (Depends-on): Likewise.
17838         * modules/gc (Depends-on): Likewise.
17839         * modules/getaddrinfo (Depends-on): Likewise.
17840         * modules/glob (Depends-on): Likewise.
17841         * modules/inet_ntop (Depends-on): Likewise.
17842         * modules/inet_pton (Depends-on): Likewise.
17843         * modules/memxor (Depends-on): Likewise.
17844         * modules/regex (Depends-on): Likewise.
17845         * modules/strtok_r (Depends-on): Likewise.
17846         * modules/time_r (Depends-on): Likewise.
17847
17848 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
17849
17850         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
17851         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
17852         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
17853         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
17854         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
17855         * m4/memxor.m4 (gl_MEMXOR): Likewise.
17856         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
17857         gl_C_RESTRICT replaced by AC_C_RESTRICT.
17858
17859         Merge from coreutils.
17860         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
17861         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
17862         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
17863         * m4/time_r.m4 (gl_TIME_R): Likewise.
17864
17865 2006-08-09  Karl Berry  <karl@gnu.org>
17866
17867         * config/srclist.txt: no more gettext-tools, per Bruno.
17868
17869 2006-08-08  Eric Blake  <ebb9@byu.net>
17870
17871         * modules/verror: New module.
17872         * MODULES.html.sh: Document it.
17873
17874 2006-08-08  Eric Blake  <ebb9@byu.net>
17875
17876         * lib/verror.h, lib/verror.c: New files.
17877
17878 2006-08-08  Eric Blake  <ebb9@byu.net>
17879
17880         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
17881         verror_at_line output complies with GNU Coding Standards even when
17882         file is NULL.
17883
17884 2006-08-07  Bruno Haible  <bruno@clisp.org>
17885
17886         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
17887         versions of AIX.
17888         Reported by Ralf Wildenhues.
17889
17890 2006-08-07  Bruno Haible  <bruno@clisp.org>
17891
17892         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
17893         in an AC_DEFUN. Needed so that the autoconf snippets can use
17894         AC_REQUIRE.
17895
17896 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17897
17898         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17899         Initialize pkgdata_DATA.
17900         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
17901         overriding it.
17902
17903 2006-08-06  Eric Blake  <ebb9@byu.net>
17904
17905         * lib/error.h: Fold in some upstream changes from glibc.
17906         * lib/error.c: Likewise.
17907
17908 2006-08-04  Bruno Haible  <bruno@clisp.org>
17909
17910         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17911         Make the mostlyclean-local rule depend on mostlyclean-generic.
17912         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
17913
17914 2006-07-31  Bruno Haible  <bruno@clisp.org>
17915
17916         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
17917         <stdlib.h>, <string.h>.
17918
17919 2006-07-30  Bruno Haible  <bruno@clisp.org>
17920
17921         * modules/readlink (License): Change to LGPL.
17922
17923 2006-07-30  Bruno Haible  <bruno@clisp.org>
17924
17925         * modules/javaversion (Makefile.am): Distribute javaversion.java and
17926         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
17927         set PKGDATADIR to point to it.
17928
17929 2006-07-30  Bruno Haible  <bruno@clisp.org>
17930
17931         * modules/csharpexec (configure.ac): Comment out macro invocation.
17932         * modules/javaexec (configure.ac): Likewise.
17933         * modules/javacomp-script (configure.ac): Likewise.
17934
17935         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
17936
17937 2006-07-30  Bruno Haible  <bruno@clisp.org>
17938
17939         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
17940         linked-list.
17941
17942 2006-07-30  Bruno Haible  <bruno@clisp.org>
17943
17944         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
17945
17946 2006-07-30  Bruno Haible  <bruno@clisp.org>
17947
17948         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17949         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
17950         get removed.
17951
17952 2006-07-29  Bruno Haible  <bruno@clisp.org>
17953
17954         Make it possible for gnulib-tool to work with locally modified or
17955         augmented gnulib repositories.
17956         * gnulib-tool (func_usage): Document --local-dir option.
17957         (local_gnulib_dir): New variable.
17958         Handle --local-dir option.
17959         (func_lookup_file): New function.
17960         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
17961         (func_get_description, func_get_filelist, func_get_description,
17962         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
17963         func_get_automake_snippet, func_get_include_directive,
17964         func_get_license, func_get_maintainer): Use func_lookup_file.
17965         (func_import, func_create_testdir): Use func_lookup_file.
17966
17967 2006-07-29  Bruno Haible  <bruno@clisp.org>
17968
17969         * modules/setenv (Depends-on): Add unistd.
17970
17971 2006-07-29  Bruno Haible  <bruno@clisp.org>
17972
17973         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
17974
17975 2006-07-29  Bruno Haible  <bruno@clisp.org>
17976
17977         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
17978
17979 2006-07-29  Bruno Haible  <bruno@clisp.org>
17980
17981         * gnulib-tool (import, update): If there is no Makefile.am, look at
17982         aclocal.m4, instead of bailing out.
17983
17984 2006-07-29  Bruno Haible  <bruno@clisp.org>
17985
17986         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
17987         Categorize the options by when they are useful.
17988
17989 2006-07-29  Bruno Haible  <bruno@clisp.org>
17990
17991         * gnulib-tool (func_usage): Document option --no-libtool.
17992         Handle option --no-libtool.
17993         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
17994         for changed semantics of $libtool variable.
17995         (func_import): Likewise. If libtool is not used, show this through
17996         an option --no-libtool.
17997         (func_create_testdir): Update.
17998
17999 2006-07-29  Bruno Haible  <bruno@clisp.org>
18000
18001         * gnulib-tool (func_import): Extend error message about missing
18002         --doc-base.
18003
18004 2006-07-29  Bruno Haible  <bruno@clisp.org>
18005
18006         * gnulib-tool (func_import): Don't create the $docbase directory if
18007         there is no file to store there.
18008
18009 2006-07-29  Bruno Haible  <bruno@clisp.org>
18010
18011         * gnulib-tool (autoconf_minversion): If a --dir option is given and
18012         relevant, look for configure.ac there, not in the current directory.
18013         Also use a simple search for AC_PREREQ, not "autoconf --trace".
18014
18015 2006-07-29  Bruno Haible  <bruno@clisp.org>
18016
18017         * gnulib-tool (SORT): New variable.
18018         (func_usage): Undocument --assume-autoconf option.
18019         Remove --assume-autoconf option handling.
18020         (autoconf_minversion): Determine from the contents of configure.ac.
18021         (func_import): Remove autoconf_minversion handling.
18022         Suggested by Eric Blake.
18023
18024 2006-07-29  Bruno Haible  <bruno@clisp.org>
18025
18026         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
18027
18028 2006-07-29  Bruno Haible  <bruno@clisp.org>
18029
18030         * config/srclist.txt (*setenv.[ch]): Remove rules.
18031
18032 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18033
18034         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
18035
18036 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18037
18038         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
18039         arpa/inet.h.
18040
18041 2006-07-28  Simon Josefsson  <jas@extundo.com>
18042
18043         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
18044         * modules/inet_pton (Depends-on): Likewise.
18045
18046 2006-07-28  Simon Josefsson  <jas@extundo.com>
18047
18048         * m4/netinet_in_h.m4: New file.
18049
18050 2006-07-28  Simon Josefsson  <jas@extundo.com>
18051
18052         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
18053         #include's.
18054
18055 2006-07-28  Simon Josefsson  <jas@extundo.com>
18056
18057         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
18058         #include's.
18059
18060 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
18061
18062         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
18063         setgid on directories only if they set these bits.
18064         * lib/modechange.h: Remove obsolete comment about masks.
18065
18066 2006-07-28  Eric Blake  <ebb9@byu.net>
18067
18068         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
18069         macro expansion.
18070
18071 2006-07-28  Bruno Haible  <bruno@clisp.org>
18072
18073         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
18074
18075 2006-07-28  Bruno Haible  <bruno@clisp.org>
18076
18077         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
18078
18079 2006-07-28  Bruno Haible  <bruno@clisp.org>
18080
18081         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
18082         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
18083         Define fallbacks.
18084         Avoids link error on FreeBSD 4.x.
18085         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18086
18087         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
18088         encoding.
18089         * lib/mbswidth.c (iswcntrl): Likewise.
18090
18091 2006-07-27  Bruno Haible  <bruno@clisp.org>
18092
18093         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
18094         test.
18095
18096 2006-07-27  Bruno Haible  <bruno@clisp.org>
18097
18098         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
18099         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
18100         defined.
18101
18102 2006-07-26  Eric Blake  <ebb9@byu.net>
18103
18104         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
18105
18106 2006-07-26  Eric Blake  <ebb9@byu.net>
18107
18108         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
18109         like mingw that lack mkstemp.
18110         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
18111         avoid compilation warning on mingw.
18112
18113 2006-07-26  Bruno Haible  <bruno@clisp.org>
18114
18115         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
18116         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
18117         INT_FAST*_MIN, INTPTR_MIN.
18118
18119 2006-07-25  Bruno Haible  <bruno@clisp.org>
18120
18121         * modules/version-etc (Depends-on): Add stdarg.
18122
18123 2006-07-25  Bruno Haible  <bruno@clisp.org>
18124
18125         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
18126         complex commands.
18127
18128 2006-07-25  Bruno Haible  <bruno@clisp.org>
18129
18130         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
18131         defined in <stdarg.h> or config.h.
18132
18133 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
18134
18135         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
18136         (gl_STDIO_SAFER): Remove.
18137
18138 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
18139
18140         * MODULES.html.sh (File stream based Input/Output):
18141         Add fopen-safer, tmpfile-safer; remove stdio-safer.
18142         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
18143         * modules/fopen-safer, modules/tmpfile-safer: New files.
18144         * modules/stdio-safer: Remove.
18145
18146 2006-07-24  Bruno Haible  <bruno@clisp.org>
18147
18148         * modules/tmpdir: New file.
18149         * MODULES.html.sh (File system functions): Add it.
18150
18151 2006-07-24  Bruno Haible  <bruno@clisp.org>
18152
18153         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
18154         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
18155
18156 2006-07-24  Bruno Haible  <bruno@clisp.org>
18157
18158         * modules/clean-temp: New file.
18159
18160 2006-07-24  Bruno Haible  <bruno@clisp.org>
18161
18162         * m4/tmpdir.m4: New file, from GNU gettext.
18163
18164 2006-07-24  Bruno Haible  <bruno@clisp.org>
18165
18166         * lib/tmpdir.h: New file, from GNU gettext.
18167         * lib/tmpdir.c: New file, from GNU gettext.
18168
18169 2006-07-24  Bruno Haible  <bruno@clisp.org>
18170
18171         * lib/clean-temp.h: New file, from GNU gettext.
18172         * lib/clean-temp.c: New file, from GNU gettext.
18173
18174 2006-07-23  Eric Blake  <ebb9@byu.net>
18175
18176         * modules/stdio-safer (Files): Add tmpfile-safer.c.
18177         (Depends-on): Add binary-io.
18178
18179 2006-07-23  Eric Blake  <ebb9@byu.net>
18180
18181         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
18182
18183 2006-07-23  Eric Blake  <ebb9@byu.net>
18184
18185         * lib/tmpfile-safer.c: New file.
18186         * lib/stdio-safer.h (fopen_safer): Add prototype.
18187         * lib/stdio--.h (tmpfile): Make safer.
18188
18189 2006-07-23  Bruno Haible  <bruno@clisp.org>
18190
18191         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
18192         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
18193         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
18194         gl_linked_remove_at): Use it.
18195
18196 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18197         and Simon Josefsson <jas@extundo.com>
18198
18199         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
18200
18201         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
18202
18203 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
18204
18205         * modules/close-stream: New file.
18206         * modules/closeout (Description): Make it clear that it exits
18207         with a diagnostic on error.
18208         (Depends-on): Add close-stream.  Remove fpending, stdbool.
18209         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
18210
18211 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
18212
18213         * m4/close-stream.m4: New file.
18214
18215 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
18216
18217         * lib/close-stream.c, lib/close-stream.h: New files.
18218
18219 2006-07-22  Bruno Haible  <bruno@clisp.org>
18220
18221         Merge from GNU gettext 0.15.
18222
18223         2006-05-01  Bruno Haible  <bruno@clisp.org>
18224
18225                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
18226
18227         2006-07-22  Bruno Haible  <bruno@clisp.org>
18228
18229                 * modules/javaversion: New file.
18230                 * MODULES.html.sh (Java): Add javaversion.
18231
18232         2006-03-12  Bruno Haible  <bruno@clisp.org>
18233
18234                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
18235
18236         2005-12-04  Bruno Haible  <bruno@clisp.org>
18237
18238                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
18239                 (untested).
18240
18241         2006-06-21  Bruno Haible  <bruno@clisp.org>
18242
18243                 Avoid warnings from recent versions of mcs.
18244                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
18245                 -o, -L, -r any more. Use options documented since mcs-1.0
18246                 instead. Similarly for -g.
18247
18248         2005-12-04  Bruno Haible  <bruno@clisp.org>
18249
18250                 * build-aux/csharpcomp.sh.in: Suffix for resources is
18251                 .resources, not .resource.
18252
18253         2005-07-09  Bruno Haible  <bruno@clisp.org>
18254
18255                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
18256                 add a .dll suffix.
18257                 Reported by Mark Junker <mjscod@gmx.de>.
18258
18259         2006-07-22  Bruno Haible  <bruno@clisp.org>
18260
18261                 * modules/gettext: Upgrade to gettext-0.15.
18262                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
18263                 m4/visibility.m4.
18264                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
18265
18266 2006-07-22  Bruno Haible  <bruno@clisp.org>
18267
18268         Merge from GNU gettext 0.15.
18269
18270         2006-03-25  Bruno Haible  <bruno@clisp.org>
18271
18272                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
18273
18274         2006-07-21  Bruno Haible  <bruno@clisp.org>
18275
18276                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
18277                 "1.1".
18278
18279         2006-05-09  Bruno Haible  <bruno@clisp.org>
18280
18281                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
18282                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
18283                 for the conftestver execution.
18284
18285         2006-05-01  Bruno Haible  <bruno@clisp.org>
18286
18287                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
18288                 optional target-version argument. Verify that the compiler
18289                 groks source of the specified source-version, or add -source
18290                 option as necessary. Verify that the compiler produces
18291                 bytecode in the specified target-version, or add -target and
18292                 -source options as necessary. Make the result of the test
18293                 available as variable CONF_JAVAC. Also log error output in
18294                 config.log.
18295
18296         2006-03-11  Bruno Haible  <bruno@clisp.org>
18297
18298                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
18299
18300         2006-05-09  Bruno Haible  <bruno@clisp.org>
18301
18302                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
18303                 CLASSPATH_SEPARATOR to a semicolon.
18304
18305         2006-03-12  Bruno Haible  <bruno@clisp.org>
18306
18307                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
18308                 available as variable CONF_JAVA, for subsequent autoconf
18309                 tests. Also log error output in config.log.
18310
18311         2006-07-19  Bruno Haible  <bruno@clisp.org>
18312
18313                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
18314                 that getline works on glibc2 systems. Needed to avoid trouble
18315                 in relocatable.c.
18316                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
18317
18318         2005-12-04  Bruno Haible  <bruno@clisp.org>
18319
18320                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
18321                 launcher (untested).
18322
18323         2005-12-04  Bruno Haible  <bruno@clisp.org>
18324
18325                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
18326
18327         2006-07-22  Bruno Haible  <bruno@clisp.org>
18328
18329                 * gettext.m4: Update from GNU gettext-0.15.
18330                 * nls.m4: Likewise.
18331                 * po.m4: Likewise.
18332                 * inttypes-pri.m4: Likewise.
18333                 * inttypes-h.m4: Renamed from inttypes.m4.
18334                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
18335
18336 2006-07-22  Bruno Haible  <bruno@clisp.org>
18337
18338         Merge from GNU gettext 0.15.
18339
18340         2005-07-05  Bruno Haible  <bruno@clisp.org>
18341
18342                 * printf-args.c (printf_fetchargs): Work around broken
18343                 definition of wint_t on mingw.
18344
18345         2005-02-12  Bruno Haible  <bruno@clisp.org>
18346
18347                 * xallocsa.h: Add extern "C" for C++.
18348
18349         2006-05-17  Bruno Haible  <bruno@clisp.org>
18350
18351                 Cygwin portability.
18352                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
18353
18354         2006-04-30  Bruno Haible  <bruno@clisp.org>
18355
18356                 * progreloc.c: Include <mach-o/dyld.h> if available.
18357                 (find_executable): Use _NSGetExecutablePath when possible.
18358
18359         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
18360
18361                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
18362                 function.
18363
18364         2005-12-29  Bruno Haible  <bruno@clisp.org>
18365
18366                 * progreloc.c (set_program_name_and_installdir): Fix
18367                 compilation error.
18368
18369         2005-12-04  Bruno Haible  <bruno@clisp.org>
18370
18371                 Cygwin portability.
18372                 * progreloc.c: Include <windows.h> also on Cygwin.
18373                 (find_executable): Add support for Cygwin.
18374                 (set_program_name_and_installdir): Handle also platforms with
18375                 nonempty EXEEXT.
18376
18377         2006-07-11  Bruno Haible  <bruno@clisp.org>
18378
18379                 * javacomp.c: Fix a comment.
18380                 Reported by Jim Meyering.
18381
18382         2006-04-30  Bruno Haible  <bruno@clisp.org>
18383
18384                 * javacomp.h (compile_java_class): Add source_version,
18385                 target_version arguments.
18386                 * javacomp.c: Rewritten to choose only a compiler that
18387                 respects the specified source_version and target_version.
18388
18389         2006-06-27  Bruno Haible  <bruno@clisp.org>
18390
18391                 Assume correct S_ISDIR macro.
18392                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
18393
18394         2006-07-22  Bruno Haible  <bruno@clisp.org>
18395
18396                 * javaversion.h: New file, from GNU gettext.
18397                 * javaversion.c: New file, from GNU gettext.
18398                 * javaversion.java: New file, from GNU gettext.
18399                 * javaversion.class: New file, from GNU gettext.
18400
18401         2006-05-17  Bruno Haible  <bruno@clisp.org>
18402
18403                 Cygwin portability.
18404                 * javaexec.c (execute_java_class): Test for jview program
18405                 also on Cygwin.
18406
18407         2006-04-09  Bruno Haible  <bruno@clisp.org>
18408
18409                 * fatal-signal.c: Don't include string.h.
18410                 (at_fatal_signal): Use a copying loop instead of memcpy.
18411
18412         2005-12-04  Bruno Haible  <bruno@clisp.org>
18413
18414                 * csharpexec.c: Add support for 'clix' launcher (untested).
18415                 (execute_csharp_using_sscli): New function.
18416                 (execute_csharp_program): Call it.
18417
18418         2006-06-21  Bruno Haible  <bruno@clisp.org>
18419
18420                 Avoid warnings from recent versions of mcs.
18421                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
18422                 -o, -L, -r any more. Use options documented since mcs-1.0
18423                 instead. Similarly for -g.
18424
18425         2005-07-09  Bruno Haible  <bruno@clisp.org>
18426
18427                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
18428                 add a .dll suffix.
18429                 Reported by Mark Junker <mjscod@gmx.de>.
18430
18431         2006-06-17  Bruno Haible  <bruno@clisp.org>
18432
18433                 * config.charset: Update for NetBSD 3.0.
18434
18435         2006-05-17  Bruno Haible  <bruno@clisp.org>
18436
18437                 Cygwin portability.
18438                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
18439
18440         2006-05-16  Bruno Haible  <bruno@clisp.org>
18441
18442                 * localcharset.c [CYGWIN]: Include <windows.h>.
18443                 (get_charset_aliases): For Cygwin, return the same CPxxx
18444                 aliases list as under WIN32.
18445                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
18446                 the environment variables. Fall back to GetACP().
18447
18448         2006-04-05  Bruno Haible  <bruno@clisp.org>
18449
18450                 * config.charset: Update Juan Manuel Guerrero's address.
18451
18452         2005-02-12  Bruno Haible  <bruno@clisp.org>
18453
18454                 * allocsa.h: Add extern "C" for C++.
18455
18456         2005-02-10  Bruno Haible  <bruno@clisp.org>
18457
18458                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
18459                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
18460
18461         2006-07-22  Bruno Haible  <bruno@clisp.org>
18462
18463                 * gettext.h: Update to GNU gettext-0.15.
18464
18465 2006-07-22  Bruno Haible  <bruno@clisp.org>
18466
18467         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
18468         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
18469         lib-prefix.m4, longdouble.m4, ssize_t.m4.
18470
18471 2006-07-21  Eric Blake  <ebb9@byu.net>
18472
18473         * modules/stdlib-safer: New file.
18474         * MODULES.html.sh (File stream based Input/Output): Add
18475         stdlib-safer.
18476
18477 2006-07-21  Eric Blake  <ebb9@byu.net>
18478
18479         * lib/stdlib-safer.h: New file from coreutils, required by
18480         stdlib--.h.
18481
18482 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
18483
18484         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
18485
18486 2006-07-20  Bruno Haible  <bruno@clisp.org>
18487
18488         * gnulib-tool: Recognize new option --assume-autoconf.
18489         (autoconf_minversion): New variable.
18490         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
18491
18492 2006-07-20  Bruno Haible  <bruno@clisp.org>
18493
18494         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
18495
18496 2006-07-19  Derek R. Price  <derek@ximbiot.com>
18497
18498         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
18499         Reindent and repaginate.
18500
18501 2006-07-19  Derek Price  <derek@ximbiot.com>
18502
18503         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
18504         Correct grammar.
18505
18506 2006-07-17  Bruno Haible  <bruno@clisp.org>
18507
18508         * modules/list: New file.
18509         * modules/array-list: New file.
18510         * modules/carray-list, modules/carray-list-tests: New files.
18511         * modules/linked-list, modules/linked-list-tests: New files.
18512         * modules/avltree-list, modules/avltree-list-tests: New files.
18513         * modules/rbtree-list, modules/rbtree-list-tests: New files.
18514         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
18515         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
18516         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
18517         * modules/oset: New file.
18518         * modules/array-oset: New file.
18519         * modules/avltree-oset, modules/avltree-oset-tests: New files.
18520         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
18521         * tests/test-carray_list.c: New file.
18522         * tests/test-linked_list.c: New file.
18523         * tests/test-avltree_list.c: New file.
18524         * tests/test-rbtree_list.c: New file.
18525         * tests/test-linkedhash_list.c: New file.
18526         * tests/test-avltreehash_list.c: New file.
18527         * tests/test-rbtreehash_list.c: New file.
18528         * tests/test-avltree_oset.c: New file.
18529         * tests/test-rbtree_oset.c: New file.
18530         * MODULES.html.sh (Container data structures): New section.
18531
18532 2006-07-17  Bruno Haible  <bruno@clisp.org>
18533
18534         * m4/gl_list.m4: New file.
18535
18536 2006-07-17  Bruno Haible  <bruno@clisp.org>
18537
18538         * lib/gl_list.h: New file.
18539         * lib/gl_list.c: New file.
18540         * lib/gl_array_list.h: New file.
18541         * lib/gl_array_list.c: New file.
18542         * lib/gl_carray_list.h: New file.
18543         * lib/gl_carray_list.c: New file.
18544         * lib/gl_linked_list.h: New file.
18545         * lib/gl_linked_list.c: New file.
18546         * lib/gl_anylinked_list1.h: New file.
18547         * lib/gl_anylinked_list2.h: New file.
18548         * lib/gl_avltree_list.h: New file.
18549         * lib/gl_avltree_list.c: New file.
18550         * lib/gl_anyavltree_list1.h: New file.
18551         * lib/gl_anyavltree_list2.h: New file.
18552         * lib/gl_rbtree_list.h: New file.
18553         * lib/gl_rbtree_list.c: New file.
18554         * lib/gl_anyrbtree_list1.h: New file.
18555         * lib/gl_anyrbtree_list2.h: New file.
18556         * lib/gl_anytree_list1.h: New file.
18557         * lib/gl_anytree_list2.h: New file.
18558         * lib/gl_linkedhash_list.h: New file.
18559         * lib/gl_linkedhash_list.c: New file.
18560         * lib/gl_anyhash_list1.h: New file.
18561         * lib/gl_anyhash_list2.h: New file.
18562         * lib/gl_avltreehash_list.h: New file.
18563         * lib/gl_avltreehash_list.c: New file.
18564         * lib/gl_rbtreehash_list.h: New file.
18565         * lib/gl_rbtreehash_list.c: New file.
18566         * lib/gl_anytreehash_list1.h: New file.
18567         * lib/gl_anytreehash_list2.h: New file.
18568
18569         * lib/gl_oset.h: New file.
18570         * lib/gl_oset.c: New file.
18571         * lib/gl_array_oset.h: New file.
18572         * lib/gl_array_oset.c: New file.
18573         * lib/gl_avltree_oset.h: New file.
18574         * lib/gl_avltree_oset.c: New file.
18575         * lib/gl_rbtree_oset.h: New file.
18576         * lib/gl_rbtree_oset.c: New file.
18577         * lib/gl_anytree_oset.h: New file.
18578
18579 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
18580
18581         * m4/mkancesdirs.m4: New file.
18582         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
18583         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
18584         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
18585         it.
18586
18587 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
18588
18589         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
18590         * lib/mkancesdirs.h: New files.
18591         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
18592         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
18593         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
18594         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
18595         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
18596         callers changed.  Revamp internals significantly, by not
18597         attempting to create directories that are temporarily more
18598         permissive than the final results.  Do not attempt to use
18599         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
18600         This removes some race conditions, fixes some bugs, and simplifies
18601         things.  Use new dirchownmod function to do owner and mode changes.
18602         * lib/mkdir-p.h: Likewise.
18603         * lib/modechange.c (octal_to_mode): New function.
18604         (struct mode_change): New member mentioned.
18605         (make_node_op_equals): New arg mentioned.  All callers changed.
18606         (mode_compile): Keep track of which mode bits the user has explicitly
18607         mentioned.
18608         (mode_adjust): New arg DIR, so that we implement the X op correctly.
18609         New arg PMODE_BITS, to keep track of which mode bits the user
18610         mentioned; it treats S_ISUID and S_ISGID speciall.
18611         All callers changed.
18612         * lib/modechange.h: Likewise.
18613
18614 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
18615
18616         * MODULES.html.sh: Add mkancestors.
18617         * modules/mkancesdirs: New module.
18618         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
18619         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
18620         The chdir-safer and afs files are now orphans; I'll remove them
18621         unless someone speaks up.
18622         Add lib/dirchownmod.c, lib/dirchownmod.h.
18623         (Depends-on): Remove alloca, chown, save-cwd, dirname.
18624         Add lchown, mkancesdirs.
18625         (Maintainer): Add self.
18626
18627 2006-07-15  Karl Berry  <karl@gnu.org>
18628
18629         * gnulib-tool: help message wording/arrangement.
18630
18631 2006-07-14  Simon Josefsson  <jas@extundo.com>
18632
18633         * doc/gnulib.texi (Libtool and Windows): New section.
18634
18635 2006-07-12  Simon Josefsson  <jas@extundo.com>
18636
18637         * modules/gendocs (License): Fix license, approved by Karl.
18638
18639 2006-07-12  Eric Blake  <ebb9@byu.net>
18640
18641         * MODULES.html.sh: Add gendocs.
18642
18643 2006-07-11  Eric Blake  <ebb9@byu.net>
18644
18645         * modules/fdl: New module, to install doc/fdl.texi.
18646         * MODULES.html.sh: Add new section for documentation modules.
18647         * gnulib-tool: Avoid space-tab.
18648         (--doc-base): New option, to manage files from doc.
18649
18650 2006-07-11  Eric Blake  <ebb9@byu.net>
18651
18652         * m4/absolute-header.m4: Fix comments to match recent change.
18653
18654 2006-07-11  Eric Blake  <ebb9@byu.net>
18655
18656         * gnulib-tool: List --doc-base before --tests-base.
18657
18658 2006-07-11  Derek R. Price  <derek@ximbiot.com>
18659
18660         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
18661
18662 2006-07-11  Bruno Haible  <bruno@clisp.org>
18663
18664         * README: Mention where to put documentation.
18665
18666 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18667
18668         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
18669
18670 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
18671
18672         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
18673         to stdint.m4.
18674
18675 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
18676
18677         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
18678         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
18679         "no/such/file/stdint.h" when there is no such file, so that
18680         the resulting C code can be parsed by dodgy compilers.
18681         Problems reported by Bob Proulx.
18682
18683 2006-07-10  Derek R. Price  <derek@ximbiot.com>
18684
18685         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
18686         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
18687         macros into the GNU _D_EXACT_NAMLEN.
18688         * lib/savedir.c:  Likewise.
18689         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
18690
18691 2006-07-10  Derek R. Price  <derek@ximbiot.com>
18692         and Paul Eggert  <eggert@cs.ucla.edu>
18693
18694         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
18695         * m4/savedir.m4:
18696         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
18697         macros into the GNU _D_EXACT_NAMLEN.
18698
18699 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
18700
18701         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
18702         around the absolute name, to work around a problem with the HP-UX
18703         11.23 native C compiler, reported by Bob Proulx.
18704
18705 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
18706
18707         * doc/maintain.texi, make-stds.texi: Sync from
18708         <http://savannah.gnu.org/projects/gnustandards>.
18709
18710 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
18711
18712         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
18713
18714 2006-07-09  Jim Meyering  <jim@meyering.net>
18715
18716         * m4/glob.m4: Remove a doubled word in a comment.
18717
18718 2006-07-09  Jim Meyering  <jim@meyering.net>
18719
18720         * lib/argp-pv.c: Remove a doubled word in a comment.
18721         * lib/check-version.c (check_version): Likewise.
18722         * lib/javacomp.c (compile_java_class): Likewise.
18723
18724 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
18725
18726         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
18727         for the benefit of people using Autoconf 2.60.  If you want to
18728         support older Autoconf versions you can copy m4/onceonly_2_57.m4
18729         (or m4/onceonly.m4, if pre-2.57) manually.
18730
18731 2006-07-08  Jim Meyering  <jim@meyering.net>
18732
18733         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
18734         comment.
18735         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
18736         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
18737         comment.
18738
18739 2006-07-08  Jim Meyering  <jim@meyering.net>
18740
18741         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
18742
18743 2006-07-07  Simon Josefsson  <jas@extundo.com>
18744
18745         * tests/test-crc.c: Change expected crc value, the test vector
18746         were probably computed using the old broken crc.c?
18747
18748 2006-07-06  Simon Josefsson  <jas@extundo.com>
18749
18750         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
18751         now the canonical place for the M4 file).
18752
18753         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
18754         from the sys_socket dependency now.
18755
18756         * modules/inet_pton (Files): Ditto.
18757
18758         * modules/inet_ntop (Files): Ditto.
18759
18760 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
18761
18762         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
18763         not gl_PREREQ_GETUSERSHELL.
18764
18765 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18766
18767         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
18768         with only one argument, for Autoconf 2.60.
18769         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
18770         expand to nothing, so add a shell command to avoid syntax error.
18771         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
18772
18773 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18774
18775         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
18776
18777 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18778
18779         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
18780         no longer needed.  Check for isblank decl.
18781         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
18782         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
18783         of existence.
18784
18785 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18786
18787         * lib/getloadavg.c: Use __VMS, not VMS.
18788         * lib/getopt.c: Likewise.
18789         * lib/getpagesize.h: Likewise.
18790         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
18791         and probably does not work.
18792
18793 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18794
18795         * lib/.cppi-disable: Add wcwidth.
18796         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
18797         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
18798         (ISGRAPH): Remove.  All uses changed to isgraph.
18799         (FOLD) [!defined _LIBC]: Remove special case.
18800         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
18801         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
18802         HAVE_ISBLANK.
18803         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
18804         case.
18805
18806 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
18807
18808         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
18809         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
18810         brackets.  Other minor changes to suppress some compiler
18811         warnings.
18812
18813 2006-07-06  Derek R. Price  <derek@ximbiot.com>
18814         and Paul Eggert  <eggert@cs.ucla.edu>
18815
18816         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
18817         of invoking obsolescent AC_HEADER_DIRENT macro.
18818         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18819         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
18820         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18821         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
18822         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
18823         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
18824         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
18825         * m4/readdir.m4: Remove; no longer needed.
18826
18827 2006-07-06  Derek R. Price  <derek@ximbiot.com>
18828         and Paul Eggert  <eggert@cs.ucla.edu>
18829
18830         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
18831         Don't worry about this obsolete case any more.
18832         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
18833         directories.
18834         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
18835         worry about this obsolete case any more.
18836         * lib/fts.c: Likewise.
18837         * lib/getcwd.c: Likewise.
18838         * lib/glob.h: Likewise.
18839         * lib/savedir.c: Likewise.
18840
18841 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
18842
18843         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
18844         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
18845         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
18846         needed.
18847         All uses removed.
18848         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
18849         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
18850         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
18851         needed.
18852         * m4/getdate.m4 (gl_GETDATE): Likewise.
18853         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
18854         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
18855         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18856         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
18857         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
18858         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
18859         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
18860         needed.
18861
18862 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
18863
18864         * lib/memcasecmp.c: Include <limits.h>.
18865         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
18866         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
18867         Don't assume isdigit succeeds only on '0' through '9'.
18868
18869 2006-07-05  Eric Blake  <ebb9@byu.net>
18870
18871         * modules/getaddrinfo (Depends-on): Add snprintf.
18872
18873 2006-07-05  Eric Blake  <ebb9@byu.net>
18874
18875         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
18876         to avoid 'header present but could not be compiled' on cygwin.
18877
18878 2006-07-05  Eric Blake  <ebb9@byu.net>
18879
18880         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
18881         missing from netdb.h.
18882         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
18883
18884 2006-07-05  Derek R. Price  <derek@ximbiot.com>
18885
18886         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
18887         no longer needed.
18888         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
18889         * m4/getdate.m4 (gl_GETDATE): Likewise.
18890         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
18891         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
18892         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18893         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
18894         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
18895
18896 2006-07-05  Derek R. Price  <derek@ximbiot.com>
18897
18898         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
18899         All uses of is_space replaced by isspace.
18900         * lib/exit.h: Don't talk about STDC_HEADERS.
18901         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
18902         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
18903         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
18904         replaced by isprint etc.
18905         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
18906         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
18907         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
18908         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
18909         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
18910         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
18911
18912 2006-07-05  Bruno Haible  <bruno@clisp.org>
18913
18914         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
18915         the function exists, before testing against AIX.
18916         Reported by Martin Lambers <marlam@marlam.de>.
18917
18918 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
18919
18920         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
18921         From Mark D. Baushke.
18922
18923 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
18924
18925         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
18926         to the absolute name, not just one, to bypass Sun C 5.8's
18927         "warning: #include of /usr/include/... may be non-portable".
18928
18929 2006-07-04  Eric Blake  <ebb9@byu.net>
18930
18931         * modules/dirname-tests: New test module.
18932         * tests/test-dirname.c: New file, replacing dirname.c
18933         TEST_DIRNAME section that was recently deleted.
18934
18935 2006-07-04  Bruno Haible  <bruno@clisp.org>
18936
18937         Assume ANSI C header files and <ctype.h> functions.
18938         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
18939         (mbsnwidth): Use isprint, iscntrl instead.
18940
18941 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
18942
18943         Merge from coreutils.
18944         * MODULES.html.sh: Add xstrtold.
18945         * modules/xstrtold: New file.
18946         * modules/cycle-check (Files): Add lib/same-inode.h.
18947         * modules/dirname (Files): Add m4/double-slash-root.m4.
18948         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
18949         * modules/mkdir-p (Files): Add lib/same-inode.h.
18950         * modules/same (Files): Add lib/same-inode.h.
18951
18952 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
18953
18954         * m4/absolute-header.m4: Renamed from full-header-path.m4.
18955         This is to keep the terminology clean; POSIX talks about
18956         "absolute pathnames", not "full pathnames", but the GNU
18957         Coding Standards say to use "path" for something else;
18958         so use "absolute" to keep both sides happy.
18959         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
18960         Set gl_absolute_header, not gl_full_header_path.
18961         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
18962         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
18963         All uses changed.
18964
18965         Merge from coreutils.
18966
18967         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
18968
18969         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
18970         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
18971         want to require the building of c-strtod.o.
18972         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
18973         needs -lm directly.
18974         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
18975
18976         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
18977
18978         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
18979         --as-needed option if available.  Problem reported by Albert Chin in
18980         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
18981         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
18982         cc merely issues a bunch of annoying warnings for --as-needed
18983         (this problem was reported by Bob Proulx).  Also, try linking with
18984         -lm to detect a bug in binutils 2.16 (this problem was reported
18985         by Ralf Wildenhues).
18986
18987         2006-06-18  Jim Meyering  <jim@meyering.net>
18988
18989         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
18990         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
18991         macro.
18992         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
18993         also check for glibc-2.4's abort-inducing bug.
18994
18995         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
18996         Low-probability clean-up should be to use rmdir to get rid of
18997         the just-created directory, not unlink.
18998
18999         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
19000         configure fail, and request a bug report to inform us about it.
19001         Add a comment that, barring reports to the contrary, in 2007 we'll
19002         assume ftruncate is universally available.
19003
19004         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
19005
19006         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
19007
19008         2006-03-12  Jim Meyering  <jim@meyering.net>
19009
19010         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
19011         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
19012         * m4/same.m4 (gl_SAME): Likewise.
19013         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
19014
19015         2006-03-11  Eric Blake  <ebb9@byu.net>
19016
19017         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
19018         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
19019         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
19020         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
19021
19022 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
19023
19024         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
19025         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
19026         reported by Mark D. Baushke, one in
19027         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
19028
19029         Merge from coreutils.
19030
19031         * lib/.cppi-disable: Add stdint_.h.
19032         * lib/.cvsignore: Add stdint.h.
19033
19034         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
19035
19036         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
19037         both double and long double versions.
19038         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
19039         * lib/xstrtold.c: New file.
19040         * lib/xstrtod.h (xstrtold): New decl.
19041
19042         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
19043
19044         * lib/filemode.c (setst): Remove.
19045         (strmode): Rewrite to avoid setst.  This makes the code shorter,
19046         (arguably) clearer, and the generated code is a bit smaller on my
19047         Debian GNU/Linux stable x86 host.
19048
19049         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
19050
19051         * lib/filemode.c: Include "filemode.h" first, to test the interface.
19052         Assume that filemode.h includes sys/types.h and sys/stat.h.
19053         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
19054         (ftypelet): Reorder to put common cases first, for efficiency.
19055         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
19056         to do 'M'.
19057         (strmode): Renamed from mode_string, and now stores 12 bytes instead
19058         of 10, for compatibility with FreeBSD.  All callers changed.
19059         (filemodestring): Now stores 12 bytes instead of 10, and sets file
19060         types that can't be deduced solely from st_mode.  First arg is now a
19061         const pointer.
19062         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
19063         (strmode): Renamed from mode_string.
19064         (filemodestring): New decl.
19065         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
19066         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
19067         needed.
19068         (S_ISPORT, S_ISWHT): New macros, if not already defined.
19069
19070         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
19071
19072         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
19073         fsusage.h now does that.  Include fsusage.h first, to test interface.
19074         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
19075         at most one method (the old code could have generated decls that
19076         didn't conform to C89, not that this was ever exercised).
19077         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
19078
19079         2006-03-19  Jim Meyering  <jim@meyering.net>
19080
19081         Work even in a chroot where d_ino values for entries in "/"
19082         don't match the stat.st_ino values for the same names.
19083         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
19084         number, iterate through all entries again, using lstat instead.
19085         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
19086         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
19087
19088         * lib/getcwd.c (__getcwd): Clarify a comment.
19089         Use memcpy in place of a call to strcpy.
19090
19091         2006-03-12  Jim Meyering  <jim@meyering.net>
19092
19093         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
19094         matches that of the current directory (which we're about to chdir ".."
19095         out of), then save the dev-ino of the parent, instead.
19096
19097         * lib/same-inode.h (SAME_INODE): New file/macro.
19098         * lib/chdir-safer.c (SAME_INODE): Remove definition.
19099         Include "same-inode.h", instead.
19100         * lib/same.c: Likewise.
19101         * lib/cycle-check.h: Include "same-inode.h".
19102         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
19103         * lib/cycle-check.c (SAME_INODE): Remove definition.
19104         * lib/root-dev-ino.h: Include "same-inode.h".
19105
19106         2006-03-11  Eric Blake  <ebb9@byu.net>
19107
19108         * lib/same.c (same_name): s/base_name/last_component/
19109         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
19110         * lib/filenamecat.c (file_name_concat): Likewise.
19111
19112         2006-03-11  Eric Blake  <ebb9@byu.net>,
19113                     Paul Eggert  <eggert@cs.ucla.edu>
19114
19115         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
19116         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
19117         drive prefix.
19118         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
19119         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
19120         (last_component): New method.
19121         * lib/dirname.c (dir_len): Determine when drive letters need a
19122         subsequent slash.  Preserve // when it is special.
19123         (dir_name): Don't append dot when drive letter is absolute.
19124         [TEST_DIRNAME]: Move into a full-blown gnulib test.
19125         * lib/basename.c (base_name): New semantics - malloc the result.
19126         Preserve // when it is special.  Preserve relative files that look
19127         like drive letters.
19128         (base_len): Preserve // when it is special.
19129         (last_component): New method, similar to old base_name semantics.
19130         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
19131         base_name.  Strip redundant slashes from ///.
19132
19133 2006-07-03  Jim Meyering  <jim@meyering.net>
19134
19135         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
19136         macro is used before the first cycle_check call.
19137
19138 2006-07-03  Eric Blake  <ebb9@byu.net>
19139
19140         * modules/dirname (Depends-on): Add xstrndup.
19141
19142 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
19143
19144         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
19145         test cases, so that config.log is a bit easier to follow.
19146
19147 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
19148
19149         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
19150         both are 64 bits, since this seems to be the tradition, and this
19151         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
19152         we ever run into a host that prefers long long to long in this
19153         case, we'll need another configure-time test.  Problem reported by
19154         Jim Meyering.
19155
19156 2006-07-02  Eric Blake  <ebb9@byu.net>
19157
19158         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
19159
19160 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
19161
19162         * modules/inttypes (Depends-on): No longer depends on stdint.
19163         * modules/stdint (Description): Say more about assumptions.
19164         Say that the fast types might differ.  Say macros are used.
19165         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
19166         (Makefile.am): Revise list of substituted symbols to match
19167         new stdint.m4.
19168         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
19169         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
19170         * tests/test-stdint.c (verify_same_types)
19171         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
19172         the code conforms to C99/C89.
19173         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
19174         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
19175
19176 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
19177
19178         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
19179         but fix a bug, by requiring at least 64 bits.
19180         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
19181         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
19182         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
19183         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
19184
19185         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
19186         changes.  Make 2.59 a prerequisite.  Check and substitute for
19187         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
19188         inttypes.h.  Do not use special include files; just use the
19189         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
19190         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
19191         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
19192         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
19193         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
19194         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
19195         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
19196         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
19197         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
19198         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
19199         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
19200         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
19201         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
19202         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
19203         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
19204         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
19205         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
19206         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
19207         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
19208         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
19209         WINT_MAX.  Check for C99 conformance more strictly, by detecting
19210         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
19211         not check for things that C99 does not require, e.g., int8_t.  If
19212         a test isn't needed unless <stdint.h> isn't working, and is
19213         unlikely to be needed for any other reason, then don't do it
19214         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
19215         size_t, since we assume C89 freestanding at least.  Do not check
19216         for sig_atomic_t, wchar_t, or wint_t, since the code now does
19217         the right thing even if the types are not defined.  Instead use:
19218         (gl_STDINT_TYPE_PROPERTIES): New macro.
19219         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
19220         testing whether <sys/types.h> clashes, as Autoconf does this for
19221         us now.  All uses removed.
19222         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
19223         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
19224         (gl_CHECK_TYPE_SAME):
19225         Remove; no longer needed.
19226         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
19227         exists, since we'll return 0 anyway in that case.
19228         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
19229
19230 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
19231
19232         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
19233         possible collision with system files.
19234         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
19235         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
19236         WCHAR_MIN and WCHAR_MAX in this case.
19237         (<stddef.h>): Do not include; no longer needed.
19238         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
19239         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
19240         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
19241         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
19242         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
19243         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
19244         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
19245         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
19246         !defined(__c99))]: Include in this case too, since it's harmless
19247         now.
19248         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
19249         dangerous to do so.
19250         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
19251         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
19252         (_STDINT_MIN, _STDINT_MAX): New macros.
19253         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
19254         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
19255         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
19256         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
19257         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
19258         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
19259         macros, not typedefs; this simplifies things quite a bit.
19260         Use long int for all types narrower than int64_t.
19261         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
19262         Define in terms of long long int or int64_t or long int,
19263         not int64_t or int32_t.  This saves some compile-time testing.
19264         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
19265         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
19266         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
19267         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
19268         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
19269         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
19270         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
19271         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
19272         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
19273         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
19274         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
19275         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
19276         undef any previous version and define our own version, for
19277         simplicity and consistency with the new macros for types.
19278         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
19279         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
19280         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
19281         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
19282         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
19283         @WINT_T_SUFFIX@ to keep things simple here.
19284         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
19285         Simplify by assuming typical 8/16/32/64 host, since we're
19286         already doing that elsewhere anyway.
19287         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
19288         and assume long long int is 64 bits if available.  This
19289         speeds up 'configure'.
19290
19291 2006-07-01  Eric Blake  <ebb9@byu.net>
19292
19293         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
19294         Reported by Andreas Buening.
19295
19296 2006-07-01  Eric Blake  <ebb9@byu.net>
19297
19298         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
19299
19300 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
19301
19302         * lib/getaddrinfo.c: fixed typo
19303
19304 2006-06-29  Jim Meyering  <jim@meyering.net>
19305
19306         * modules/strftime (Maintainer): Add my name, since with the
19307         FPRINTFTIME changes strftime.c has forked from glibc.
19308
19309 2006-06-29  Eric Blake  <ebb9@byu.net>
19310
19311         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
19312
19313 2006-06-29  Eric Blake  <ebb9@byu.net>
19314
19315         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
19316
19317 2006-06-29  Eric Blake  <ebb9@byu.net>
19318
19319         * lib/stat_.h: New file.
19320
19321 2006-06-29  Eric Blake  <ebb9@byu.net>
19322
19323         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
19324         unused static function.
19325
19326 2006-06-29  Eric Blake  <ebb9@byu.net>
19327
19328         * doc/functions.texi (Function Portability): Document missing lstat
19329         on mingw.
19330
19331 2006-06-29  Eric Blake  <ebb9@byu.net>
19332
19333         * MODULES.html.sh: Add sys_stat.
19334         * modules/sys_stat: New module.
19335         * modules/mkstemp (Depends-on): Add sys_stat.
19336
19337 2006-06-29  Derek R. Price  <derek@ximbiot.com>
19338
19339         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
19340
19341 2006-06-29  Derek R. Price  <derek@ximbiot.com>
19342
19343         * m4/c-bs-a.m4: Removed.
19344
19345 2006-06-29  Derek R. Price  <derek@ximbiot.com>
19346
19347         * lib/strftime.c: Assume strftime() exists.
19348
19349 2006-06-29  Derek Price  <derek@ximbiot.com>
19350
19351         * modules/c-bs-a: Removed - \a is C89.
19352         * MODULES.html.sh: Remove c-bs-a.
19353
19354 2006-06-29  Bruno Haible  <bruno@clisp.org>
19355
19356         * modules/wcwidth (License): Change to LGPL.
19357
19358 2006-06-28  Simon Josefsson  <jas@extundo.com>
19359
19360         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
19361         on _WIN32.
19362
19363         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
19364         getnameinfo.
19365
19366 2006-06-28  Simon Josefsson  <jas@extundo.com>
19367
19368         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
19369
19370 2006-06-28  Simon Josefsson  <jas@extundo.com>
19371
19372         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
19373         functions there.  It will succeed on Windows XP, but on Windows
19374         2000 and (presumably) earlier, it will fail, and use the internal
19375         re-implementation.
19376         (use_win32_p): New function.
19377         (getaddrinfo): Use strtoul on servname, to support numeric ports.
19378         Support AI_NUMERICSERV to disable getservbyname.
19379         (getnameinfo): New function, only supports
19380         NI_NUMERICHOST|NI_NUMERICSERV for now.
19381
19382         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
19383         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
19384         getnameinfo.
19385
19386 2006-06-28  Eric Blake  <ebb9@byu.net>
19387
19388         * modules/wcwidth: New file.
19389         * modules/mbchar (Depends-on): Add wcwidth.
19390         * modules/mbswidth (Depends-on): Add wcwidth.
19391         * MODULES.html.sh: Add wcwidth.
19392
19393 2006-06-28  Eric Blake  <ebb9@byu.net>
19394
19395         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
19396         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
19397
19398 2006-06-28  Eric Blake  <ebb9@byu.net>
19399
19400         * lib/xvasprintf.h: Fix comments.
19401
19402 2006-06-28  Eric Blake  <ebb9@byu.net>
19403
19404         * lib/mbchar.h (wcwidth): Include wcwidth.h.
19405         * lib/mbswidth.c (wcwidth): Move from here...
19406         * lib/wcwidth.h: ...to this new file.
19407
19408 2006-06-28  Derek R. Price  <derek@ximbiot.com>
19409
19410         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
19411
19412         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
19413         it's obsolete.
19414         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
19415
19416 2006-06-28  Derek R. Price  <derek@ximbiot.com>
19417
19418         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
19419         Autoconf 2.60 says this stuff was obsolete.
19420
19421 2006-06-28  Bruno Haible  <bruno@clisp.org>
19422
19423         * modules/wcwidth (Files): Add m4/wchar_t.m4.
19424
19425 2006-06-28  Bruno Haible  <bruno@clisp.org>
19426
19427         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
19428         gt_TYPE_WCHAR_T.
19429
19430 2006-06-28  Bruno Haible  <bruno@clisp.org>
19431
19432         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
19433         declaration for wcwidth.
19434         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
19435
19436 2006-06-28  Bruno Haible  <bruno@clisp.org>
19437
19438         * lib/mkdtemp.c [MINGW]: Include <io.h>.
19439         (mkdir): Define using _mkdir.
19440
19441 2006-06-28  Bruno Haible  <bruno@clisp.org>
19442
19443         * lib/getaddrinfo.h: Fix POSIX URL.
19444         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
19445         _WIN32.
19446         (use_win32_p): Make static.
19447         (getaddrinfo): Reject service name if it is empty or does not consist
19448         solely of decimal digits, or if its value is > 65535.
19449         (getnameinfo): Remove useless casts.
19450
19451 2006-06-27  Simon Josefsson  <jas@extundo.com>
19452
19453         * modules/sys_select: New file, suggested by Bruno Haible, Paul
19454         Eggert and Martin Lambers.
19455
19456 2006-06-27  Simon Josefsson  <jas@extundo.com>
19457
19458         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
19459         Eggert and Martin Lambers.
19460
19461 2006-06-27  Bruno Haible  <bruno@clisp.org>
19462
19463         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
19464         result to 0, not to empty.
19465         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
19466
19467 2006-06-27  Bruno Haible  <bruno@clisp.org>
19468
19469         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
19470
19471 2006-06-26  Simon Josefsson  <jas@extundo.com>
19472
19473         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
19474         present.
19475
19476 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
19477
19478         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
19479         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
19480         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
19481
19482 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
19483
19484         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
19485
19486 2006-06-26  Bruno Haible  <bruno@clisp.org>
19487
19488         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
19489
19490 2006-06-26  Bruno Haible  <bruno@clisp.org>
19491
19492         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
19493
19494 2006-06-26  Bruno Haible  <bruno@clisp.org>
19495
19496         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
19497         SGI C compiler in pre-C99 mode.
19498         Suggested by Mark D. Baushke and Larry Jones.
19499
19500 2006-06-26  Bruno Haible  <bruno@clisp.org>
19501
19502         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
19503         WCHAR_MAX.
19504         Reported by Mark D. Baushke and Larry Jones.
19505
19506 2006-06-26  Bruno Haible  <bruno@clisp.org>
19507
19508         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
19509         in pre-C99 mode.
19510         Suggested by Mark D. Baushke and Larry Jones.
19511
19512 2006-06-23  Simon Josefsson  <jas@extundo.com>
19513             Bruno Haible  <bruno@clisp.org>
19514
19515         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
19516         Emit mostlyclean-local rule.
19517         (func_emit_tests_Makefile_am): Likewise.
19518         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
19519
19520 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
19521
19522         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
19523
19524 2006-06-23  Bruno Haible  <bruno@clisp.org>
19525
19526         * tests/test-stdint.c: Update to match ISO C 99 Technical
19527         Corrigendum 1.
19528
19529 2006-06-23  Bruno Haible  <bruno@clisp.org>
19530
19531         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
19532
19533 2006-06-23  Bruno Haible  <bruno@clisp.org>
19534
19535         * lib/stdint_.h: Treat IRIX like OpenBSD.
19536
19537 2006-06-23  Bruno Haible  <bruno@clisp.org>
19538
19539         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
19540         ISO C 99 Technical Corrigendum 1.
19541
19542 2006-06-22  Simon Josefsson  <jas@extundo.com>
19543
19544         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
19545         MinGW.
19546
19547 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
19548
19549         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
19550         needed.  Some compiler complained about some of them.  Problem reported
19551         by Larry Jones in
19552         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
19553
19554 2006-06-21  Simon Josefsson  <jas@extundo.com>
19555
19556         * tests/test-getaddrinfo.c: New file.
19557
19558         * modules/getaddrinfo-tests: New file.
19559
19560         * MODULES.html.sh: Add inet_pton.
19561
19562         * modules/inet_pton: New file.
19563
19564 2006-06-21  Simon Josefsson  <jas@extundo.com>
19565
19566         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
19567         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
19568         of using the (limited) gnulib implementation on Windows XP.
19569
19570         * m4/inet_pton.m4: New file.
19571
19572 2006-06-21  Simon Josefsson  <jas@extundo.com>
19573
19574         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
19575         variable.
19576
19577         * lib/socket_.h: Don't define WINVER.
19578
19579         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
19580         slightly modified to work in gnulib.
19581
19582 2006-06-21  Simon Josefsson  <jas@extundo.com>
19583
19584         * doc/gnulib.texi (Windows sockets): Add.
19585
19586 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
19587
19588         * lib/read-file.c (fread_file): Start with buffer allocation of
19589         0 bytes rather than 1 byte; this simplifies the code.
19590         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
19591         code to free buffer and save/restore errno.
19592         (internal_read_file): Remove unused local.
19593
19594 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
19595
19596         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
19597         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
19598         Problem reported by Denis Excoffier in
19599         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
19600
19601 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19602
19603         * modules/sys_socket, modules/socklen: Include sys/types since
19604         FreeBSD 4.x's sys/socket.h needs it.
19605
19606 2006-06-19  Simon Josefsson  <jas@extundo.com>
19607
19608         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
19609
19610 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
19611
19612         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
19613
19614 2006-06-19  Bruno Haible  <bruno@clisp.org>
19615
19616         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
19617         and FULL_PATH_INTTYPES_H in angle brackets.
19618         Reported by Mark D. Baushke <mdb@gnu.org>.
19619
19620 2006-06-17  Eric Blake  <ebb9@byu.net>
19621
19622         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
19623         errno.
19624
19625 2006-06-17  Bruno Haible  <bruno@clisp.org>
19626
19627         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
19628         <sys/inttypes.h>.
19629
19630 2006-06-17  Bruno Haible  <bruno@clisp.org>
19631
19632         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
19633         whether errno is declared. Assume <errno.h> declares errno.
19634
19635 2006-06-17  Bruno Haible  <bruno@clisp.org>
19636
19637         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
19638
19639 2006-06-17  Bruno Haible  <bruno@clisp.org>
19640
19641         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
19642         problem on Solaris 2.5.1.
19643
19644 2006-06-16  Eric Blake  <ebb9@byu.net>
19645
19646         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
19647         * lib/unicodeio.c [!defined errno]: Likewise.
19648         * lib/strtol.c [!defined errno]: Likewise.
19649         * lib/strtod.c [!defined errno]: Likewise.
19650
19651 2006-06-15  Eric Blake  <ebb9@byu.net>
19652
19653         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
19654
19655 2006-06-15  Eric Blake  <ebb9@byu.net>
19656
19657         * config/srclist.txt (ssize_t.m4): Lose sync.
19658
19659 2006-06-15  Bruno Haible  <bruno@clisp.org>
19660
19661         * modules/stdint (Files): Include m4/full-header-path.m4,
19662         m4/size_max.m4, m4/wchar_t.m4.
19663         (Makefile.am): Many more substitutions.
19664         * modules/stdint-tests: New file.
19665         * tests/test-stdint.c: New file.
19666
19667 2006-06-15  Bruno Haible  <bruno@clisp.org>
19668
19669         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
19670         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
19671         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
19672         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
19673         gl_CHECK_TYPE_SAME): New macros.
19674
19675 2006-06-15  Bruno Haible  <bruno@clisp.org>
19676
19677         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
19678
19679 2006-06-15  Bruno Haible  <bruno@clisp.org>
19680
19681         * lib/stdint_.h: Rewritten to be fully auto-configured.
19682         Fixes bug on HP-UX/IA64.
19683
19684 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
19685
19686         * lib/getdate.y (__attribute__): Don't define if already defined.
19687         Problem reported by Larry Jones.
19688         * lib/utimens.c (__attribute__): Likewise.
19689
19690 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
19691
19692         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
19693         reported by Andreas Schwab.
19694
19695 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19696             Bruno Haible  <bruno@clisp.org>
19697
19698         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
19699         check for the declaration of strnlen and a run test that exposes the
19700         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
19701         rpl_strndup.
19702
19703 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19704             Bruno Haible  <bruno@clisp.org>
19705
19706         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
19707
19708 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19709
19710         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
19711         compile test, for Tru64 4.0D.
19712
19713 2006-05-28  Karl Berry  <karl@gnu.org>
19714
19715         * config/srclist.txt (printf-args.c): lose sync.
19716
19717 2006-05-26  Martin Lambers  <marlam@marlam.de>
19718
19719         * lib/getpass.c: Updates the test for the native W32 API, and adds
19720         missing includes, thus fixing compilation warnings.
19721
19722 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19723
19724         * lib/exclude.c (exclude_fnmatch): New function.
19725         (excluded_file_name): Call exclude_fnmatch.
19726         * lib/exclude.h (excluded_file_name): New prototype
19727
19728 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
19729
19730         * lib/tempname.c (small_open, large_open): New macros.
19731         (__open, __open64) [!_LIBC]: Remove.
19732         (__gen_tempname): Use small_open and large_open instead of __open
19733         and __open64.  This fixes a portability bug on HP-UX 11.11i
19734         reported by Simon Wing-Tang in
19735         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
19736
19737 2006-05-24  Bruno Haible  <bruno@clisp.org>
19738
19739         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
19740         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
19741         Reported by Thorsten Maerz <torte@netztorte.de> via
19742         Aaron Stone <aaron@serendipity.cx>.
19743
19744 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19745
19746         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
19747         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
19748         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
19749         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
19750         not really conditional on the cache.
19751         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
19752
19753 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19754
19755         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
19756         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
19757         (my_usleep): Don't mishandle maximum value.
19758
19759 2006-05-19  Jim Meyering  <jim@meyering.net>
19760
19761         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
19762
19763 2006-05-17  Bruno Haible  <bruno@clisp.org>
19764
19765         Cygwin portability.
19766         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
19767
19768 2006-05-17  Bruno Haible  <bruno@clisp.org>
19769
19770         * lib/stdint_.h: Fix recognition of Cygwin.
19771
19772 2006-05-15  Bruno Haible  <bruno@clisp.org>
19773
19774         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
19775         on libtool patch by Ralf Wildenhues.
19776
19777 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
19778
19779         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
19780         test for C99 conformance; (bool) 0.5 is an integer constant
19781         expression, but (bool) -0.5 is not.  Problem reported by Fedor
19782         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
19783
19784 2006-05-11  Simon Josefsson  <jas@extundo.com>
19785
19786         * m4/xvasprintf.m4: Fix obvious typo.
19787
19788 2006-05-11  Jim Meyering  <jim@meyering.net>
19789
19790         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
19791         James Lemley.
19792
19793 2006-05-10  Simon Josefsson  <jas@extundo.com>
19794
19795         * lib/md4.c: Typo fix, update copyright years.
19796         (K1, K2): Don't use L because it turn computations into 64-bit on
19797         64-bit platforms.
19798
19799 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
19800
19801         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
19802         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
19803         unwanted sign propagation, e.g., on hosts with 64-bit int.
19804         There still are some problems with reeelly weird theoretical hosts
19805         (e.g., 33-bit int) but it's not worth worrying about now.
19806         * lib/sha1.c (rol): Likewise.
19807         (K1, K2, K3, K4): Remove unnecessary L suffix.
19808
19809 2006-05-10  Bruno Haible  <bruno@clisp.org>
19810
19811         * lib/des.c: Cast to avoid warnings.
19812
19813 2006-05-09  Bruno Haible  <bruno@clisp.org>
19814
19815         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
19816         (Depends-on): Depend also on xsize, stdarg.
19817         (configure.ac): Add gl_XVASPRINTF.
19818
19819 2006-05-09  Bruno Haible  <bruno@clisp.org>
19820
19821         * m4/xvasprintf.m4: New file.
19822
19823 2006-05-09  Bruno Haible  <bruno@clisp.org>
19824
19825         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
19826         (EOVERFLOW): Define fallback value.
19827         (xstrcat): New function.
19828         (xvasprintf): Recognize the special case of a string concatenation.
19829
19830 2006-05-08  Eric Blake  <ebb9@byu.net>
19831
19832         * gnulib-tool (func_version): Base copyright year on CVS date.
19833         (func_emit_copyright_notice): New function.
19834         (func_emit_lib_Makefile_am): Use it.
19835         (func_emit_tests_Makefile_am): Likewise.
19836         (func_import): Likewise.
19837
19838 2006-05-08  Bruno Haible  <bruno@clisp.org>
19839
19840         * modules/stdarg: New file.
19841         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
19842
19843 2006-05-08  Bruno Haible  <bruno@clisp.org>
19844
19845         * m4/stdarg.m4: New file, from GNU gettext.
19846
19847 2006-05-08  Bruno Haible  <bruno@clisp.org>
19848
19849         * config/srclist.txt (build-aux/config.rpath): different from latest
19850         release.
19851
19852 2006-05-08  Bruno Haible  <bruno@clisp.org>
19853
19854         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
19855
19856 2006-05-05  Jim Meyering  <jim@meyering.net>
19857
19858         * m4/warning.m4: New file, derived from bison's file by the same name.
19859
19860 2006-05-03  Bruno Haible  <bruno@clisp.org>
19861
19862         * lib/stdint_.h: Shorter URL.
19863         * lib/inttypes.h: Likewise.
19864
19865 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
19866
19867         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
19868
19869 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
19870
19871         * lib/verify.h: Document the internals better.  Most of this change
19872         was written by Bruno Haible.
19873
19874 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
19875
19876         * doc/verify.texi: New file, partly based on a proposal by
19877         Bruno Haible.
19878
19879 2006-05-02  Bruno Haible  <bruno@clisp.org>
19880
19881         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
19882         test from here...
19883         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
19884
19885 2006-04-29  Bruno Haible  <bruno@clisp.org>
19886
19887         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
19888         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
19889
19890 2006-04-29  Bruno Haible  <bruno@clisp.org>
19891
19892         * gnulib-tool: Make --update option actually work.
19893
19894 2006-04-29  Bruno Haible  <bruno@clisp.org>
19895
19896         * doc/gcd.texi: New file.
19897         * doc/gnulib.texi: Include it.
19898
19899 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
19900
19901         * lib/getdate.y (get_date): When adding relative date, start with the
19902         initial time, not with the result of the first mktime call.
19903
19904 2006-04-25  Bruno Haible  <bruno@clisp.org>
19905
19906         * gnulib-tool (func_import): Output the include directives in three
19907         blocks, sorted separately.
19908         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19909
19910 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
19911
19912         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
19913         to define main with arguments, for C++.  Reported by Eric Blake.
19914         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
19915         Prefer 'int main ()' to 'int main (void)', for C++.
19916         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
19917         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
19918         for 'main', for C99 and C++.
19919
19920 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
19921
19922         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
19923         Don't assume that exit status -1 is valid.
19924         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19925         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
19926         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
19927         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
19928         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
19929         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
19930         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
19931         functions can be used without declaring them, or that you can
19932         exit with status -1.
19933         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
19934
19935 2006-04-24  Karl Berry  <karl@gnu.org>
19936
19937         * config/srclist.txt (longdouble.m4): sync lost.
19938
19939 2006-04-24  Eric Blake  <ebb9@byu.net>
19940
19941         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
19942
19943 2006-04-24  Bruno Haible  <bruno@clisp.org>
19944
19945         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
19946         poll() implementation in AIX.
19947         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19948
19949 2006-04-24  Bruno Haible  <bruno@clisp.org>
19950
19951         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
19952         assigned exactly once.
19953
19954 2006-04-23  Claudio Fontana  <claudio@gnu.org>
19955             Bruno Haible  <bruno@clisp.org>
19956
19957         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
19958         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
19959         for AM_CPPFLAGS.
19960
19961 2006-04-23  Bruno Haible  <bruno@clisp.org>
19962
19963         * modules/copy-file: Depend on unistd.
19964         * modules/execute: Likewise.
19965         * modules/fatal-signal: Likewise.
19966         * modules/findprog: Likewise.
19967         * modules/mkdtemp : Likewise.
19968         * modules/pipe: Likewise.
19969         * modules/wait-process: Likewise.
19970
19971 2006-04-23  Bruno Haible  <bruno@clisp.org>
19972
19973         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
19974         condition was already detected.
19975         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19976
19977 2006-04-23  Bruno Haible  <bruno@clisp.org>
19978
19979         * lib/copy-file.c: Include <unistd.h> unconditionally.
19980         * lib/execute.c: Likewise.
19981         * lib/fatal-signal.c: Likewise.
19982         * lib/findprog.c: Likewise.
19983         * lib/mkdtemp.c: Likewise.
19984         * lib/pipe.h: Likewise.
19985         * lib/pipe.c: Likewise.
19986         * lib/wait-process.h: Likewise.
19987
19988 2006-04-23  Bruno Haible  <bruno@clisp.org>
19989
19990         * gnulib-tool (func_usage): Fix --import description. Document
19991         --update.
19992         (func_import): Create temporary file in a temporary directory, if
19993         --dry-run is specified. Silence errors from 'grep' when there are no
19994         m4 files in $m4dir.
19995         (func_create_testdir): Silence errors from 'grep' when there are no
19996         m4 files in $m4dir.
19997         Reported by Karl Berry <karl@freefriends.org>.
19998
19999 2006-04-20  Bruno Haible  <bruno@clisp.org>
20000
20001         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
20002         one argument, so that the code will be portable to Autoconf 2.60.
20003         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
20004         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
20005         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
20006
20007 2006-04-19  Derek Price  <derek@ximbiot.com>
20008             Eric Blake  <ebb9@byu.net>
20009
20010         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
20011         rather than "/full/path.h".  Update comment to match.  Shorten &
20012         generalize m4_translit call via AS_TR_CPP.
20013
20014 2006-04-19  Derek Price  <derek@ximbiot.com>
20015             Eric Blake  <ebb9@byu.net>
20016
20017         * lib/inttypes.h: Correct grammar in comment.
20018
20019 2006-04-18  Derek Price  <derek@ximbiot.com>
20020             Paul Eggert  <eggert@cs.ucla.edu>
20021
20022         * modules/inttypes: New file.
20023         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
20024
20025 2006-04-18  Derek Price  <derek@ximbiot.com>
20026             Paul Eggert  <eggert@cs.ucla.edu>
20027
20028         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
20029         New files.
20030
20031 2006-04-18  Derek Price  <derek@ximbiot.com>
20032             Paul Eggert  <eggert@cs.ucla.edu>
20033
20034         * lib/inttypes.h: New file.
20035         * lib/strtoimax.c: Assume <inttypes.h>.
20036
20037 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
20038
20039         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
20040         isn't mounted.  Problem reported by Kir Kolyshkin.
20041
20042 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
20043
20044         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
20045         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
20046         Derek R. Price.
20047         * lib/regex.h (RE_DUP_MAX): Update comment to match current
20048         implementation.
20049
20050 2006-04-12  Eric Blake  <ebb9@byu.net>
20051
20052         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
20053         is now done automatically by the corresponding Autoconf macro.
20054
20055 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
20056
20057         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
20058         time_r.h.
20059
20060 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
20061
20062         Merge regex changes from libc, removing some of our
20063         POSIX-conformance changes that were rejected and redoing them in a
20064         less-intrusive way.
20065
20066         * lib/regcomp.c (re_compile_internal, init_dfa):
20067         Length arg is now size_t, not Idx.  All uses changed.
20068         (peek_token): Forward decl now says internal_function.
20069         (__re_error_msgid, __re_error_msgid_idx):
20070         Now static rather than extern with attribute_hidden.
20071         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
20072         For some reason libc prefers K&R style defns for external functions.
20073         (regerror) [!defined _LIBC]: Likewise.
20074         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
20075         (seek_collating_symbol_entry, lookup_collation_sequence_value):
20076         (build_range_exp, build_collating_symbol):
20077         Use K&R-style defn.
20078         (re_compile_fastmap): Use '\0' to memset, not 0.
20079         (utf8_sb_map): Make the calculations more obvious.
20080         (init_dfa, parse_bracket_exp, build_charclass_op):
20081         Call calloc and cast result, as glibc does.
20082         (init_word_char, fetch_token, peek_token, peek_token_bracket):
20083         (build_range_exp, build_collating_symbol):
20084         Now internal functions.
20085
20086         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
20087
20088         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
20089         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
20090         Don't depend on VMS; depend on __VMS instead, for POSIX
20091         namespace cleanness.
20092         (regoff_t): Define to ssize_t, not long int.
20093
20094         Remove the REG_ macros named below.  Instead, make the old names
20095         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
20096         __USE_GNU_REGEX.
20097         (REG_BACKSLASH_ESCAPE_IN_LISTS):
20098         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
20099         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
20100         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
20101         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
20102         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
20103         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
20104         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
20105         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
20106         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
20107         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
20108         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
20109         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
20110         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
20111         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
20112         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
20113         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
20114         (REG_NREGS):
20115         Remove.  All uses replaced by the old RE_* names.
20116         (RE_BACKSLASH_ESCAPE_IN_LISTS):
20117         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
20118         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
20119         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
20120         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
20121         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
20122         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
20123         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
20124         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
20125         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
20126         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
20127         Don't bother having these macros be independent of each others'
20128         values, since they no longer exist in the POSIX name space.
20129
20130         Rename the following member names back to their old names,
20131         unless !__USE_GNU_REGEX.  All uses changed back.
20132         (buffer): Renamed from re_buffer.
20133         (allocated): Renamed from re_allocated.
20134         (used): Renamed from re_used.
20135         (syntax): Renamed from re_syntax.
20136         (fastmap): Renamed from re_fastmap.
20137         (translate): Renamed from re_translate.
20138         (can_be_null): Renamed from re_can_be_null.
20139         (regs_allocated): Renamed from re_regs_allocated.
20140         (fastmap_accurate): Renamed from re_fastmap_accurate.
20141         (no_sub): Renamed from re_no_sub.
20142         (not_bol): Renamed from re_not_bol.
20143         (not_eol): Renamed from re_not_eol.
20144         (newline_anchor): Renamed from re_newline_anchor.
20145         (num_regs): Renamed from rm_num_regs.
20146         (start): Renamed from rm_start.
20147         (end): Renamed from rm_end.
20148
20149         (free_state): Move up a bit.
20150
20151         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
20152         #define to be empty.
20153         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
20154         when that is what is intended.
20155         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
20156         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
20157         (MAX): New macro.
20158         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
20159         All uses changed back to re_malloc, etc.  It's now the caller's
20160         responsibility to check for overflow; all callers changed.
20161         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
20162         (re_x2nrealloc): Remove.
20163         (free_state): Remove decl.
20164
20165         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
20166         (re_set_registers, re_exec):
20167         Use K&R-style defn.
20168
20169         2006-01-31  Roland McGrath  <roland@redhat.com>
20170
20171         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
20172         Reported by Mike Frysinger <vapier@gentoo.org>.
20173
20174         2006-01-15  Andreas Jaeger  <aj@suse.de>
20175
20176         [BZ #1950]
20177         * lib/regex_internal.c (re_string_reconstruct): Adjust for
20178         build_wcs_upper_buffer change.
20179         (build_wcs_upper_buffer): Change return type.
20180
20181         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
20182
20183         * lib/regex_internal.h: Include <stdint.h> if available.
20184
20185         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
20186
20187         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
20188
20189         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
20190
20191         * lib/regcomp.c: Adjust for changed secondary hash function.
20192
20193         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
20194
20195         * lib/regex.h: Pretty printing.
20196         Clean up namespace a bit.
20197
20198         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
20199
20200         * lib/regexec.c (update_cur_sifted_state, check_arrival,
20201         check_arrival_add_next_nodes): Avoid using uninitialized variable.
20202
20203         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
20204                     Ulrich Drepper  <drepper@redhat.com>
20205
20206         [BZ #1302]
20207         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
20208         changed.
20209         (bitset_word_t): Renamed from bitset_word.  All uses changed.
20210
20211         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
20212
20213         [BZ #281]
20214         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
20215         * lib/regcomp.c: Remove unnecessary uses of
20216         unsigned RE_TRANSLATE_TYPE.
20217         * lib/regex_internal.h: Likewise.
20218         * lib/regex_internal.c: Likewise.
20219         * lib/regexec.c: Likewise.
20220         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
20221
20222         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
20223
20224         * lib/regexec.c (find_recover_state): Remove unnecessary
20225         initialization.
20226         (transit_state_bkref): Make DFA a const pointer.
20227         (get_subexp): Likewise.
20228         (check_arrival): Likewise.
20229         (update_cur_sifted_state): Likewise.
20230         (re_search_internal): Likewise.
20231         (prune_impossible_nodes): Likewise.
20232         (acquire_init_state_context): Likewise.
20233         (proceed_next_node): Likewise.
20234         (set_regs): Likewise.
20235         (free_fail_stack_return): Likewise.
20236         (check_arrival_expand_ecl): Mark DFA parameter as const.
20237         (check_arrival_expand_ecl_sub): Likewise.
20238         (check_subexp_limits): Likewise.
20239         (sub_epsilon_src_nodes):  Likewise.
20240         (add_epsilon_src_nodes):  Likewise.
20241         (merge_state_array): Likewise.
20242         (update_regs): Likewise.
20243         (build_trtable): Likewise.
20244         (sift_states_backward): Mark MCTX parameter as const.
20245         (build_sifted_states): Likewise.
20246         (update_cur_sifted_state): Likewise.
20247         (sift_states_mkref): Likewise.
20248         (check_arrival_expand_ecl): Mark eclosure as const.
20249         (check_dst_limits_calc_pos_1): Likewise.
20250         * lib/regex_internal.h (re_match_context_t): Make dfa a const
20251         pointer.
20252
20253         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
20254
20255         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
20256         (transit_state_sb): Likewise.
20257         (transit_state_mb): Likewise.
20258         (sift_states_iter_mb): Likewise.
20259         (check_arrival_add_next_nodes): Likewise.
20260         (check_node_accept_bytes): Change first parameter to pointer-to-const.
20261         [_LIBC] (re_search_2_stub): Use mempcpy.
20262
20263         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
20264         mbrtowc for very simple UTF-8 case.
20265
20266         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
20267         a pointer-to-const.
20268         (re_acquire_state_context): Likewise.
20269         * lib/regex_internal.h: Adjust prototypes.
20270
20271         * lib/regex.c: Prevent using C++ compilers.
20272
20273         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
20274         (re_acquire_state_context): Likewise.
20275
20276 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
20277
20278         * modules/regex (Depends-on): Add ssize_t.
20279
20280 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
20281
20282         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
20283         translation table.
20284
20285 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
20286
20287         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
20288
20289 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
20290             Bruno Haible  <bruno@clisp.org>
20291
20292         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
20293         <sys/types.h> and <inttypes.h>.
20294
20295 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20296
20297         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
20298         `__error_t_defined', so argp.h will not typedef the former.
20299
20300 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
20301
20302         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
20303         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
20304         glibc names.  Even if glibc is changed to conform to POSIX, the
20305         traditional names will be available anyway, since regex depends on
20306         the extensions module.  Also, fix a longstanding typo in the
20307         implementation of Spencer ERE test #75 from grep 2.3.  Problems
20308         reported by Emanuele Giaquinta.  Also, change sense of cached
20309         variable, so that the message makes sense.
20310
20311 2006-03-24  Simon Josefsson  <jas@extundo.com>
20312
20313         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
20314         including some doc fixes.
20315         (base64_encode_alloc): Fix +1 bug on allocation failures.
20316
20317 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20318
20319         * lib/base64.c (base64_encode): Do not read past end of array with
20320         unsanitized input on systems with CHAR_BIT > 8.
20321
20322 2006-03-24  Eric Blake  <ebb9@byu.net>
20323
20324         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
20325
20326 2006-03-22  Karl Berry  <karl@gnu.org>
20327
20328         * config/srclist.txt (*setenv.[ch]): get from coreutils.
20329         * config/srclistvars.sh (COREUTILS): new var.
20330
20331 2006-03-17  Jim Meyering  <jim@meyering.net>
20332
20333         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
20334         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
20335
20336 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
20337
20338         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
20339         no longer needs it.  Instead, check that regoff_t is as least
20340         as wide as ptrdiff_t.
20341
20342         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
20343         so that our regex.h stays compatible with the installed regex.
20344         This is helpful for installers who configure --without-included-regex.
20345         Problem reported by Emanuele Giaquinta.
20346
20347 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
20348
20349         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
20350         Typedef to long int, not to off_, as POSIX will likely change
20351         in that direction.
20352
20353 2006-03-15  Eric Blake  <ebb9@byu.net>
20354
20355         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
20356
20357 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
20358
20359         * lib/argp-help.c (validate_uparams): Fix typo
20360         * lib/argp-parse.c (argp_default_options): Consistently begin help
20361         messages with a lowercase letter.
20362
20363 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
20364
20365         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
20366         overrun buffers and shouldn't be used (much as gets shouldn't be
20367         used).
20368         * lib/time_r.c (asctime_r, ctime_r): Likewise.
20369
20370 2006-03-08  Simon Josefsson  <jas@extundo.com>
20371
20372         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
20373         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20374
20375 2006-03-08  Simon Josefsson  <jas@extundo.com>
20376
20377         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
20378         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20379
20380 2006-03-08  Simon Josefsson  <jas@extundo.com>
20381
20382         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
20383         signal that configure disabled the device.
20384
20385 2006-03-08  Simon Josefsson  <jas@extundo.com>
20386
20387         * build-aux/maint.mk: Fix refresh-po, to handle no translated
20388         languages.
20389
20390 2006-03-07  Simon Josefsson  <jas@extundo.com>
20391
20392         * modules/getopt (Depends-on): Add unistd.
20393
20394         * modules/unistd: New file.
20395
20396 2006-03-07  Simon Josefsson  <jas@extundo.com>
20397
20398         * modules/gc-random: New file.
20399
20400 2006-03-07  Simon Josefsson  <jas@extundo.com>
20401
20402         * m4/unistd_h.m4: New file.
20403
20404 2006-03-07  Simon Josefsson  <jas@extundo.com>
20405
20406         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
20407         test to be side-effect free by storing the result in the cache
20408         variable gl_cv_lib_readline, and moving the assignment of
20409         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
20410         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20411
20412 2006-03-07  Simon Josefsson  <jas@extundo.com>
20413
20414         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
20415         error on missing devices (the functions will return an error).
20416
20417         * m4/gc.m4: Move random stuff to gc-random.m4
20418
20419 2006-03-07  Simon Josefsson  <jas@extundo.com>
20420
20421         * lib/unistd_.h: New file.
20422
20423 2006-03-07  Simon Josefsson  <jas@extundo.com>
20424
20425         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
20426
20427 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
20428
20429         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
20430         Problem reported by Juan Manuel Guerrero.
20431
20432 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
20433
20434         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
20435         the unistd module.
20436         * lib/getlogin_r.c: Likewise.
20437         * lib/getlogin_r.h: Likewise.
20438         * lib/glob.c: Likewise.
20439         * lib/pagealign_alloc.c: Likewise.
20440         * lib/unistd_.h: Remove; no longer needed.
20441
20442 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
20443
20444         * MODULES.html.sh (Support for systems lacking POSIX:2001):
20445         Add unistd.
20446         * modules/c-stack (Depends-on): Add unistd.
20447         * modules/getlogin_r: Likewise.
20448         * modules/glob: Likewise.
20449         * modules/pagealign_alloc: Likewise.
20450         * modules/unistd (Files): Remove lib/unistd_.h.
20451         (EXTRA_DIST): Remove.
20452         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
20453         need unistd_.h.
20454         (MOSTLYCLEANFILES): Remove unistd.h-t.
20455
20456 2006-03-03  Simon Josefsson  <jas@extundo.com>
20457
20458         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
20459
20460 2006-03-03  Simon Josefsson  <jas@extundo.com>
20461
20462         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
20463         libidn and bison.
20464
20465 2006-03-03  Simon Josefsson  <jas@extundo.com>
20466
20467         * build-aux/maint.mk: Add indent target.
20468
20469 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
20470
20471         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
20472         our replacement poll.h in any case, to avoid a differing
20473         declaration from a system header.  Seen on AIX.
20474
20475 2006-03-01  Simon Josefsson  <jas@extundo.com>
20476
20477         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
20478         <kasal@ucw.cz>.
20479
20480 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
20481
20482         * modules/gettime (Depends-on): Add extensions module.
20483         * modules/nanosleep (Depends-on): Likewise.
20484         * modules/settime (Depends-on): Likewise.
20485
20486 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
20487
20488         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
20489         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
20490         pedantically.
20491         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20492         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
20493
20494         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
20495         not "==".  Reported by Ralf Wildenhues.
20496
20497 2006-03-01  Karl Berry  <karl@gnu.org>
20498
20499         * doc/Copyright/request-*: new files, synced from gnuorg.
20500
20501 2006-03-01  Karl Berry  <karl@gnu.org>
20502
20503         * config/srclist.txt (Copyright/*): new entries.
20504
20505 2006-02-28  Simon Josefsson  <jas@extundo.com>
20506
20507         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
20508
20509 2006-02-27  Simon Josefsson  <jas@extundo.com>
20510
20511         * lib/base64.h: Indent #define's.  From Jim Meyering
20512         <jim@meyering.net>.
20513
20514 2006-02-27  Jim Meyering  <jim@meyering.net>
20515
20516         Revert the change of 2006-02-24, so these files can continue
20517         to be sync'd from gettext.
20518         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
20519         of `config.h'.
20520
20521 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
20522
20523         * modules/intprops: New file.
20524         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
20525         Add intprops.
20526         * modules/getloadavg (Files): Remove lib/intprops.h.
20527         (Depends-on): Add intprops.
20528         * modules/human: Likewise.
20529         * modules/inttostr: Likewise.
20530         * modules/openat: Likewise.
20531         * modules/sig2str: Likewise.
20532         * modules/userspec: Likewise.
20533         * modules/utimecmp: Likewise.
20534         * modules/xnanosleep: Likewise.
20535         * modules/xstrtol: Likewise.
20536
20537 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
20538
20539         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
20540         * modules/lock-tests (TESTS): Use $(EXEEXT).
20541         * modules/tls-tests: Likewise.
20542         * modules/argp-tests: Likewise.
20543         (check_PROGRAMS): New var, replacing...
20544         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
20545
20546 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20547
20548         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
20549         `config.h'.
20550
20551 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
20552
20553         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
20554
20555 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20556
20557         Sync from coreutils.
20558         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
20559         gl_CHDIR_SAFER.
20560
20561 2006-02-22  Jim Meyering  <jim@meyering.net>
20562
20563         Sync from coreutils.
20564         * m4/chdir-safer.m4: New file.
20565
20566 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
20567
20568         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
20569         AT_FDCWD exceeds INT_MAX.
20570         * lib/openat.h (AT_FDCWD): Likewise.
20571
20572 2006-02-17  Eric Blake  <address@hidden>
20573
20574         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
20575
20576 2006-02-16  Simon Josefsson  <jas@extundo.com>
20577
20578         * modules/getaddrinfo (Depends-on): Add sys_socket.
20579
20580 2006-02-15  Simon Josefsson  <jas@extundo.com>
20581
20582         * build-aux/maint.mk: Add dsyntax-check rule.
20583
20584 2006-02-15  Eric Blake  <ebb9@byu.net>
20585
20586         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
20587         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
20588         'present but cannot compile' warnings on cygwin.
20589         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
20590         use ws2tcpip.h if sys/socket.h works.
20591         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
20592         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
20593
20594 2006-02-14  Simon Josefsson  <jas@extundo.com>
20595
20596         * modules/maintainer-makefile (Files): Rename.
20597
20598         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
20599         and (the local) Makefile.cfg to maint-cfg.mk.
20600
20601         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
20602         to the latter.
20603
20604         * modules/maintainer-makefile: New module.
20605
20606         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
20607         severaly stripped to make it possible to build it up from scratch
20608         with reliable tests.
20609
20610         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
20611         fixes to permit overriding the default actions when configure and
20612         makefile are not available.
20613
20614 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
20615
20616         Sync from coreutils.
20617         * modules/lstat (Depends-on): Don't depend on xalloc.
20618         (License): Change from GPL to LGPL, since this is now simply a
20619         replacement for a libc function.
20620
20621 2006-02-14  Jim Meyering  <jim@meyering.net>
20622
20623         Sync from coreutils.
20624
20625         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
20626         failure on deficient systems, and simplify gnulib lgpl dependencies.
20627         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
20628         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
20629
20630         * lib/xalloc-die.c: Remove unused definition of N_.
20631
20632 2006-02-14  Jim Meyering  <jim@meyering.net>
20633
20634         Sync from coreutils.
20635         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
20636         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
20637         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
20638         double-quote uses of that variable, to accommodate the rare case in
20639         which getmntent is available in none of the libraries checked.  This
20640         happens at least on FreeBSD 5.0.
20641
20642 2006-02-13  Simon Josefsson  <jas@extundo.com>
20643
20644         * gnulib-tool (Usage): Fix --import, from
20645         karl@freefriends.org (Karl Berry).
20646
20647 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
20648
20649         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
20650
20651 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
20652
20653         * lib/argp-namefrob.h: Restore changes accidentally lost during the
20654         "autoupdate" on 2005-12-12.
20655
20656 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20657
20658         * modules/closeout (Depends-on): Remove atexit.
20659
20660 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20661
20662         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
20663         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
20664
20665 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
20666
20667         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
20668         __EXTENSIONS__ if this causes compilation to fail.  Problem
20669         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
20670         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
20671
20672 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
20673
20674         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
20675         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
20676         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
20677         All uses changed.
20678
20679 2006-01-26  Simon Josefsson  <jas@extundo.com>
20680
20681         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
20682         prototype is visible on mingw32.
20683
20684         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
20685         for mingw32.
20686
20687         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
20688         mingw32).
20689
20690 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
20691
20692         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
20693         attempt to open for write; this always fails, at least on POSIX
20694         hosts.  This reinstates the 2006-01-09 change, which was
20695         inadvertently removed.
20696
20697 2006-01-26  Bruno Haible  <bruno@clisp.org>
20698
20699         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
20700         Reported by Paul Eggert.
20701
20702 2006-01-26  Bruno Haible  <bruno@clisp.org>
20703             Paul Eggert  <eggert@cs.ucla.edu>
20704
20705         * lib/stdbool_.h (_Bool)
20706         [(! (defined __cplusplus || defined __BEOS__)
20707           && !defined __GNUC__
20708           && !(defined __HP_cc || defined __xlc__
20709                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
20710                || defined __sgi))]:
20711         #define to signed char in these cases too; this simplifies
20712         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
20713         etc., separately) and makes it more conservative.
20714
20715 2006-01-25  Simon Josefsson  <jas@extundo.com>
20716
20717         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
20718         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
20719         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
20720
20721 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
20722
20723         * lib/argp-namefrob.h: Bugfix. Remove stray #
20724
20725 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
20726
20727         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
20728         so that we test the test.
20729         Check for yet another HP-UX cc bug involving *bool |= bool.
20730
20731 2006-01-25  Karl Berry  <karl@gnu.org>
20732
20733         * config/srclist.txt (vasnprintf.c): sync lost.
20734
20735 2006-01-25  Jim Meyering  <jim@meyering.net>
20736
20737         Sync from the stable (b5) branch of coreutils:
20738
20739         * lib/fts.c (fts_children): Don't let close() clobber errno from
20740         failed fchdir().
20741
20742         * lib/fts.c (fts_stat): When following a symlink-to-directory,
20743         don't necessarily interpret stat-fails+lstat-succeeds as indicating
20744         a dangling symlink.  That can also happen at least for ELOOP.
20745         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
20746         FYI, this bug predates the inclusion of fts.c in coreutils.
20747
20748         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
20749         in their own block, so pre-c99 compilers don't object.
20750
20751         Avoid the double-free (first in fts_read, second in fts_close) that
20752         would occur when an `active' directory is made inaccessible (e.g.,
20753         via chmod a-x) during a traversal.
20754         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
20755         before returning.  Reproduce this failure by
20756         mkdir -p a/b; cd a; chmod a-x . b
20757         Reported by Stavros Passas.
20758
20759 2006-01-25  Jim Meyering  <jim@meyering.net>
20760
20761         * lib/fileblocks.c: Remove more useless parentheses.
20762         * lib/readutmp.h: Likewise.
20763
20764 2006-01-25  Bruno Haible  <bruno@clisp.org>
20765
20766         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
20767         warnings.
20768         Reported by Paul Eggert.
20769
20770 2006-01-25  Bruno Haible  <bruno@clisp.org>
20771
20772         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
20773         rid of a trap command. For Solaris sh.
20774         Reported by Mark D. Baushke <mdb@gnu.org>.
20775
20776 2006-01-24  Simon Josefsson  <jas@extundo.com>
20777
20778         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
20779         Bruno.
20780
20781 2006-01-24  Karl Berry  <karl@gnu.org>
20782
20783         * config/srclist.txt (argp-namefrob.h): sync lost.
20784
20785 2006-01-24  Jim Meyering  <jim@meyering.net>
20786
20787         * modules/openat (Files): Add lib/intprops.h.
20788         From Mark D. Baushke.
20789
20790 2006-01-24  Jim Meyering  <jim@meyering.net>
20791
20792         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
20793         Reported by Mark D. Baushke.
20794
20795 2006-01-24  Jim Meyering  <jim@meyering.net>
20796
20797         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
20798
20799 2006-01-24  Bruno Haible  <bruno@clisp.org>
20800
20801         * modules/strnlen (Maintainer): Change from glibc to all.
20802
20803 2006-01-24  Bruno Haible  <bruno@clisp.org>
20804
20805         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
20806         Patch by Paul Eggert.
20807
20808 2006-01-24  Bruno Haible  <bruno@clisp.org>
20809
20810         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
20811         already has it.
20812         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
20813         2005-11-26.
20814
20815         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
20816         'signed char' to avoid problems with the built-in _Bool type.
20817         Reported by Paul Eggert on 2005-11-26.
20818
20819 2006-01-24  Bruno Haible  <bruno@clisp.org>
20820
20821         * gnulib-tool (func_import): Avoid constructing complicated sed
20822         expressions inside backquote.
20823         Report and solution by Mark D. Baushke <mdb@gnu.org>.
20824
20825 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
20826
20827         These changes imported from libc.
20828         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
20829         test and two separate function calls.
20830         * lib/strndup.c (__strndup): Add libc_hidden_def.
20831
20832 2006-01-23  Simon Josefsson  <jas@extundo.com>
20833
20834         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
20835         Remove the test_*_SOURCES variable: automake infers it by default.
20836         * modules/tls-tests: Likewise.
20837
20838 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20839
20840         Work around porting bugs reported by Dieter in
20841         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
20842         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
20843         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
20844         Include "getopt.h" first, to check interface.
20845         (getenv): Declare only if defined HAVE_DECL_GETENV &&
20846         !HAVE_DECL_GETENV.
20847         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
20848         (__strndup): Revert to K&R-style function dfns, the glibc style.
20849         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
20850         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
20851         Include strnlen.h first, to get prototype properly.
20852         (strnlen): Renamed from __strnlen.
20853         Remove weak alias.
20854
20855 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20856
20857         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
20858
20859 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20860
20861         * config/srclist.txt: Adjust to reflect glibc reorganization.
20862         This affects only comments.
20863
20864 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
20865
20866          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
20867          Reported by Bruce Korb <bkorb@gnu.org>.
20868
20869 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
20870
20871         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
20872         to pacify gcc -Wswitch-default.
20873
20874 2006-01-22  Bruno Haible  <bruno@clisp.org>
20875
20876         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
20877         temporary buffer for sprintf, take into account the precision also
20878         for 'd', 'i', 'u', 'o', 'x', 'X'.
20879
20880 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
20881
20882         * modules/argp-tests: New module
20883         * tests/test-argp.c: New file
20884         * tests/test-argp-2.sh: New file
20885
20886 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
20887
20888         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
20889         (__argp_base_name): Removed
20890         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
20891         typo.
20892         (__argp_base_name): Provide macro definition or extern declaration
20893         depending on the configuration
20894
20895 2006-01-20  Simon Josefsson  <jas@extundo.com>
20896
20897         * modules/inet_ntop (Depends-on): Depend on sys_socket.
20898
20899 2006-01-20  Simon Josefsson  <jas@extundo.com>
20900
20901         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
20902
20903 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
20904
20905         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
20906         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
20907         Suggested by Bruno Haible.
20908
20909 2006-01-20  Karl Berry  <karl@gnu.org>
20910
20911         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
20912         until changes propagate, I guess.
20913
20914 2006-01-19  Simon Josefsson  <jas@extundo.com>
20915
20916         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
20917
20918 2006-01-19  Simon Josefsson  <jas@extundo.com>
20919
20920         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
20921
20922 2006-01-19  Simon Josefsson  <jas@extundo.com>
20923
20924         * gnulib-tool: Set check_PROGRAMS.
20925
20926         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
20927         modules/des-tests, modules/gc-arcfour-tests,
20928         modules/gc-arctwo-tests, modules/gc-des-tests,
20929         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
20930         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
20931         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
20932         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
20933         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
20934         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
20935         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
20936         test_*_SOURCES.
20937
20938 2006-01-18  Simon Josefsson  <jas@extundo.com>
20939
20940         * modules/socklen (Depends-on): Depend on sys_socket.
20941
20942 2006-01-18  Simon Josefsson  <jas@extundo.com>
20943
20944         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
20945         modules/des-tests, modules/gc-arcfour-tests,
20946         modules/gc-arctwo-tests, modules/gc-des-tests,
20947         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
20948         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
20949         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
20950         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
20951         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
20952         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
20953         $(EXEEXT) to automake TESTS variable, for mingw32.
20954
20955 2006-01-17  Simon Josefsson  <jas@extundo.com>
20956
20957         * modules/socklen (Include): Need sys/socket.h.
20958
20959 2006-01-17  Bruno Haible  <bruno@clisp.org>
20960
20961         * modules/ssize_t (Include): Add <sys/types.h>.
20962
20963 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
20964
20965         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
20966         it's not portable and it doesn't work with cross-compiles.
20967         Problem reported by Bruno Haible.  Fix missing-$ typo in
20968         'test "gl_cv_ignore_unused_libraries" ...' that prevented
20969         -zignore from being used with Sun's C compiler.
20970
20971 2006-01-12  Simon Josefsson  <jas@extundo.com>
20972
20973         * lib/base64.c: Fix warning, reported by Bruno Haible
20974         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
20975
20976 2006-01-12  Bruno Haible  <bruno@clisp.org>
20977
20978         * modules/ldd: New file.
20979         * build-aux/ldd.sh.in: New file.
20980         * MODULES.html.sh (Support for building libraries and executables): Add
20981         ldd.
20982
20983 2006-01-12  Bruno Haible  <bruno@clisp.org>
20984
20985         * m4/ldd.m4: New file.
20986
20987 2006-01-12  Bruno Haible  <bruno@clisp.org>
20988
20989         * gnulib-tool (func_import, func_create_testdir): Don't go into an
20990         endless loop while replacing $auxdir with build-aux.
20991
20992 2006-01-11  Simon Josefsson  <jas@extundo.com>
20993
20994         * lib/stdint_.h (SIZE_MAX): Add missing (.
20995
20996 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20997
20998         Sync from coreutils.
20999         * lib/md5.c: Fix commentary typos.
21000         (alignof, UNALIGNED_P): No need for a GCC-specific version.
21001         * lib/md5.h (__attribute__): Remove; unused.
21002         * lib/sha1.c: Fix commentary to match md5 better.
21003         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
21004         so that we don't need to worry about alignment.  All uses changed.
21005         This merges the 2005-10-28 md5 change into sha1.
21006
21007 2006-01-11  Jim Meyering  <jim@meyering.net>
21008
21009         Sync from coreutils.
21010         * lib/md5.c (OP): Fix spacing.
21011
21012 2006-01-11  Bruno Haible  <bruno@clisp.org>
21013
21014         Ensure automatic ordering between gl_LOCK and gl_ARGP.
21015         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
21016         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
21017
21018 2006-01-11  Bruno Haible  <bruno@clisp.org>
21019
21020         Ensure automatic ordering between gl_LOCK and gl_ARGP.
21021         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
21022         the "early" section as well.
21023
21024 2006-01-11  Bruno Haible  <bruno@clisp.org>
21025
21026         Avoid "ar: no archive members specified" error on MacOS X.
21027         * gnulib-tool (func_modules_add_dummy): New function.
21028         (func_import, func_create_testdir): Invoke it.
21029
21030 2006-01-11  Bruno Haible  <bruno@clisp.org>
21031
21032         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
21033         with $auxdir in AC_CONFIG_FILES statements.
21034
21035 2006-01-11  Bruno Haible  <bruno@clisp.org>
21036
21037         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21038         Initialize also noinst_HEADERS to empty.
21039
21040 2006-01-11  Bruno Haible  <bruno@clisp.org>
21041
21042         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
21043         variables.
21044         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
21045         autoreconf.
21046
21047 2006-01-11  Bruno Haible  <bruno@clisp.org>
21048
21049         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
21050         overridable by the user.
21051         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21052
21053 2006-01-10  Simon Josefsson  <jas@extundo.com>
21054
21055         * modules/sys_socket: New file.
21056
21057 2006-01-10  Simon Josefsson  <jas@extundo.com>
21058
21059         * m4/sys_socket_h.m4: New file.
21060
21061 2006-01-10  Simon Josefsson  <jas@extundo.com>
21062
21063         * lib/socket_.h: New file.
21064
21065 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
21066
21067         * modules/readutmp (Maintainer): Add myself.
21068
21069 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
21070
21071         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
21072         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
21073         People who are still concerned with buggy memcmp implementations
21074         can invoke gl_FUNC_MEMCMP themselves.
21075
21076 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
21077
21078         * lib/regex_internal.h (BITSET_WORD_BITS):
21079         Work around a bug in 64-bit PGC (before version 6.1-2), where the
21080         preprocessor mishandles large unsigned values as if they were signed.
21081         Problem reported by Claudio Fontana in
21082         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
21083
21084 2006-01-10  Jim Meyering  <jim@meyering.net>
21085
21086         Avoid the double-free (first in fts_read, second in fts_close) that
21087         would occur when an `active' directory is made inaccessible (e.g.,
21088         via chmod a-x) during a traversal.
21089         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
21090         before returning.  Reproduce this failure by
21091         mkdir -p a/b; cd a; chmod a-x . b
21092         Reported by Stavros Passas.
21093
21094         Sync from coreutils.
21095         * lib/sha1.c: Tweak grammar in a comment.
21096
21097 2006-01-10  Jim Meyering  <jim@meyering.net>
21098
21099         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
21100         Patch by Joerg Sonnenberger.
21101
21102 2006-01-10  Bruno Haible  <bruno@clisp.org>
21103
21104         * modules/readutmp: Depend on module free.
21105         * modules/strtok_r: Depend on module restrict.
21106
21107 2006-01-10  Bruno Haible  <bruno@clisp.org>
21108
21109         * modules/gettext (configure.ac): Add an invocation of
21110         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
21111
21112 2006-01-10  Bruno Haible  <bruno@clisp.org>
21113
21114         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
21115         Reported by Werner Lemberg <wl@gnu.org>.
21116
21117 2006-01-10  Bruno Haible  <bruno@clisp.org>
21118
21119         * lib/localcharset.c: Update from GNU gettext.
21120
21121 2006-01-10  Bruno Haible  <bruno@clisp.org>
21122
21123         * lib/argp.h (__const): Remove macro. Use const instead.
21124         * lib/argp-fmtstream.h (__const): Likewise.
21125         * lib/glob_.h (__const): Remove macro.
21126         * lib/glob-libc.h: Use const instead of __const.
21127
21128 2006-01-10  Bruno Haible  <bruno@clisp.org>
21129
21130         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
21131         variable.
21132         Needed to avoid an automake error regarding the 'gettext' module.
21133
21134 2006-01-09  Simon Josefsson  <jas@extundo.com>
21135
21136         * modules/inet_ntop (Depends-on): Add restrict.
21137
21138 2006-01-09  Simon Josefsson  <jas@extundo.com>
21139
21140         * modules/gc-rijndael-tests (License): Put under LGPL.
21141
21142         * modules/gc-des-tests (License): Likewise.
21143
21144         * modules/gc-arcfour-tests (License): Likewise.
21145
21146         * modules/gc-arctwo-tests (License): Likewise.
21147
21148         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
21149
21150         * modules/gc-hmac-sha1-tests (Files): Likewise.
21151
21152         * modules/gc-hmac-md5-tests (License): Likewise.
21153
21154         * modules/gc-sha1-tests (License): Likewise.
21155
21156         * modules/gc-md5-tests (License): Likewise.
21157
21158         * modules/gc-md4-tests (License): Likewise.
21159
21160         * modules/gc-md2-tests (License): Likewise.
21161
21162         * modules/gc-tests (License): Likewise.
21163
21164         * modules/des-tests (License): Likewise.
21165
21166         * modules/md4-tests (License): Likewise.
21167
21168         * modules/md2-tests (License): Likewise.
21169
21170 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
21171
21172         Sync from coreutils:
21173
21174         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
21175         * modules/lib-ignore: New file.
21176         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
21177         chdir-safer.m4, lchmod.m4.
21178         * modules/openat: Add mkdirat.c, openat-priv.h.
21179
21180 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
21181
21182         Sync from coreutils.
21183         * m4/lib-ignore.m4: New file.
21184         * m4/lchmod.m4: New file.
21185
21186 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
21187
21188         Sync from coreutils.
21189         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
21190         for write access: POSIX says that must fail.
21191         * lib/fts.c (diropen): Likewise.
21192         * lib/save-cwd.c (save_cwd): Likewise.
21193         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
21194         well, for minor improvements on hosts that lack O_DIRECTORY.
21195         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
21196         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
21197         Fall back on chown if open failed with EACCES.
21198
21199         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
21200         Report an error at compile-time if only a 1-second nominal clock
21201         resolution is found.
21202
21203         * lib/lchmod.h: New file.
21204         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
21205         (make_dir_parents): Use lchown rather than chown, and
21206         lchmod rather than chmod.
21207
21208         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
21209         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
21210         "proc" reported by n0dalus.
21211
21212         * lib/mountlist.c: Include <limits.h>.
21213         (dev_from_mount_options)
21214         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
21215         New function.  It no longer assumes "dev=" has the System V meaning
21216         on Linux (since it doesn't).  It also parses "dev=" more carefully.
21217         (read_file_system_list)
21218         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
21219         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
21220         dev= in that case.
21221
21222         * lib/posixtm.h (PDS_PRE_2000): New macro.
21223         * lib/posixtm.c (year): Arg is now syntax_bits rather than
21224         allow_century.  All usages changed.  Reject dates outside the range
21225         1969-1999 if PDS_PRE_2000 is used.
21226
21227 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
21228
21229         Sync from coreutils.
21230         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
21231         (Time of day items): Mention the possibility of leap seconds.
21232         Problem reported by Dr. David Alan Gilbert.
21233
21234 2006-01-09  Jim Meyering  <jim@meyering.net>
21235
21236         Sync from coreutils.
21237
21238         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
21239
21240         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
21241
21242         * lib/modechange.c (mode_compile): Reject an invalid mode string
21243         that starts with an octal digit.  From Andreas Gruenbacher.
21244
21245         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
21246         and dup to open_safer and dup_safer, respectively.
21247         (openat_permissive): Fix typo in comment.
21248
21249         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
21250         "gettext.h"; either no longer needed or are guaranteed by openat.h.
21251         (_): Remove; no longer needed.
21252         (openat): Renamed from rpl_openat; no need for rpl_openat
21253         since openat.h renames openat for us.
21254         Replace most of the body with a call to openat_permissive,
21255         to avoid duplicate code.
21256         Port to (probably hypothetical) environments were mode_t is
21257         wider than int.
21258         (openat_permissive): Require mode arg, so that we can check
21259         types better.  Put it just after flags.  Change cwd failure
21260         indicator from pointer-to-bool to pointer-to-errno-value.
21261         All callers changed.
21262         Invoke openat_save_fail and/or openat_restore_fail if
21263         cwd_errno is null, so that openat can call us.
21264         (openat_permissive, fdopendir, fstatat, unlinkat):
21265         Simplify errno handling to avoid some duplicate code,
21266         as it's OK to set errno on success.
21267         * lib/openat.h: Revamp code so that function macros depend on
21268         __OPENAT_PREFIX only, not also on AT_FDCWD.
21269         (openat_ro): Remove.  Caller changed to use openat_permissive.
21270         (openat_permissive): Now a macro, if not a function.
21271         (openat_restore_fail, openat_save_fail): Now always functions,
21272         since mkdirat needs them even if __OPENAT_PREFIX is defined.
21273
21274         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
21275         and openat.c.
21276         * lib/mkdirat.c: Include openat-priv.h.
21277         Remove definitions of macros defined therein.
21278         * lib/openat.c: Likewise.
21279
21280         * lib/mkdirat.c (mkdirat): New file and function.
21281         * lib/openat.h (mkdirat): Declare.
21282
21283         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
21284
21285         * lib/openat.h (openat_permissive): Declare.
21286         (openat_ro): Define.
21287
21288         * lib/openat.c (EXPECTED_ERRNO): New macro.
21289         (openat_permissive): New function -- used in remove.c rewrite.
21290         (all functions): Set errno just before returning, only if there
21291         was an actual failure.
21292         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
21293
21294         Emulate openat-family functions using Linux's procfs, if possible.
21295         Idea and some code based on Ulrich Drepper's glibc changes.
21296
21297         * lib/openat.c: (BUILD_PROC_NAME): New macro.
21298         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
21299         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
21300         before falling back on save_cwd and restore_cwd.
21301         (fdopendir, fstatat, unlinkat): Likewise.
21302
21303         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
21304         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
21305
21306         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
21307         as second argument to va_arg.  Otherwise, some versions of gcc
21308         warn that `if this code is reached, the program will abort'.
21309
21310 2006-01-09  Jim Meyering  <jim@meyering.net>
21311
21312         Sync from coreutils.
21313         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
21314         Require openat-priv.h.
21315
21316 2006-01-09  Bruno Haible  <bruno@clisp.org>
21317
21318         * modules/strnlen (Include): Use strnlen.h.
21319
21320 2006-01-09  Bruno Haible  <bruno@clisp.org>
21321
21322         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
21323
21324 2006-01-09  Bruno Haible  <bruno@clisp.org>
21325
21326         * lib/sysexit_.h (EX_OK): New macro.
21327         Suggested by Martin Lambers <marlam@marlam.de>.
21328
21329 2006-01-09  Bruno Haible  <bruno@clisp.org>
21330
21331         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
21332         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
21333
21334 2006-01-09  Bruno Haible  <bruno@clisp.org>
21335
21336         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
21337         numbers.
21338
21339 2006-01-09  Bruno Haible  <bruno@clisp.org>
21340
21341         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
21342         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
21343         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
21344         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
21345
21346 2006-01-09  Bruno Haible  <bruno@clisp.org>
21347
21348         * build-aux/javacomp.sh.in: New file, moved from lib/.
21349         * modules/javacomp-script (Files): Update.
21350         (configure.ac): Add AC_CONFIG_FILES invocation.
21351         (EXTRA_DIST): Remove variable.
21352
21353         * build-aux/javaexec.sh.in: New file, moved from lib/.
21354         * modules/javaexec (Files): Update.
21355         (configure.ac): Add AC_CONFIG_FILES invocation.
21356         (EXTRA_DIST): Remove javaexec.sh.in.
21357
21358         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
21359         * modules/csharpcomp-script (Files): Update.
21360         (configure.ac): Add AC_CONFIG_FILES invocation.
21361         (EXTRA_DIST): Remove variable.
21362
21363         * build-aux/csharpexec.sh.in: New file, moved from lib/.
21364         * modules/csharpexec (Files): Update.
21365         (configure.ac): Add AC_CONFIG_FILES invocation.
21366         (EXTRA_DIST): Remove csharpexec.sh.in.
21367
21368 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
21369
21370         Sync from coreutils.
21371
21372         Add POSIX ACL support
21373         * lib/acl.h (copy_acl, set_acl): Add declarations.
21374         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
21375         systems other than Linux.
21376         (chmod_or_fchmod): New function: use fchmod when possible,
21377         and chmod otherwise.
21378         (file_has_acl): Add a POSIX ACL implementation, with a
21379         Linux-specific subcase.
21380         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
21381         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
21382         acls are unsupported.
21383         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
21384         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
21385         are unsupported.
21386
21387 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
21388
21389         Sync from coreutils.
21390         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
21391
21392 2006-01-07  Bruno Haible  <bruno@clisp.org>
21393
21394         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
21395         gl_EARLY.
21396
21397 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
21398
21399         * lib/strftime.c (tzname): Don't declare if it is already #defined.
21400         Problem reported for Mingw by Mark Junker.
21401
21402 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
21403
21404         * README: Gnulib normally doesn't generate a tarball.
21405
21406 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
21407
21408         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
21409         long int, not int, for nanosecond counts, so that people who are
21410         used to POSIX struct timespec won't be surprised.  Reported by Jim
21411         Meyering.
21412
21413 2005-12-28  Bruno Haible  <bruno@clisp.org>
21414
21415         * build-aux/config.rpath: Update from GNU gettext.
21416
21417 2005-12-16  Jim Meyering  <jim@meyering.net>
21418
21419         * modules/fprintftime: New module.
21420         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
21421
21422 2005-12-16  Jim Meyering  <jim@meyering.net>
21423
21424         * m4/fprintftime.m4: New file.
21425
21426 2005-12-16  Jim Meyering  <jim@meyering.net>
21427
21428         * lib/fprintftime.c, lib/fprintftime.h: New files.
21429
21430 2005-12-15  Simon Josefsson  <jas@extundo.com>
21431
21432         * modules/socklen (configure.ac): Fix M4 macro name, to align with
21433         new m4/socklen.m4.
21434
21435 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
21436
21437         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
21438         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
21439
21440 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
21441
21442         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
21443         * lib/argp-help.c (fill_in_uparams): Check if the constructed
21444         struct uparams is valid. Fall back to the default values if it is
21445         not.
21446
21447 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
21448
21449         * modules/argp (Files): Add argp-pin.c
21450         (Depends-on): dirname
21451         (lib_SOURCES): Add argp-pin.c
21452
21453 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
21454
21455         * m4/argp.m4:  Check if program_invocation_name and
21456         program_invocation_short_name are declared and define appropriate
21457         macros if they are not.
21458
21459 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
21460
21461         * lib/argp-help.c (__argp_base_name): New function
21462         (__argp_short_program_name): Rewrite using __argp_base_name
21463         * lib/argp-namefrob.h: Define program_invocation_name and
21464         program_invocation_short_name if requested
21465         (__argp_base_name): Add prototype
21466         * lib/argp-parse.c (argp_def): Use gettext wrappers
21467         (argp_default_parser): Use __argp_base_name
21468         * lib/argp-pin.c: New file. Defines program_invocation_name and
21469         program_invocation_short_name on systems that lack them.
21470
21471 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
21472
21473         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
21474         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
21475         porting problem reported by Georg Schwarz in
21476         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
21477
21478 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
21479
21480         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
21481         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
21482         porting problem reported by Georg Schwarz in
21483         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
21484
21485 2005-12-05  Bruno Haible  <bruno@clisp.org>
21486
21487         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
21488         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
21489         Reported by Mark Junker <mjscod@gmx.de>.
21490
21491 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
21492
21493         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
21494         Use implementation from Albert Chin, with some
21495         comments/corrections by Stepan Kasal and myself.
21496
21497 2005-12-02  Bruno Haible  <bruno@clisp.org>
21498
21499         * gnulib-tool (func_import): Accept GPLed build tool modules when
21500         --lgpl is given.
21501         * modules/csharpcomp-script: New file.
21502         * modules/csharpcomp: Depend on it.
21503         * modules/javacomp-script: New file.
21504         * modules/javacomp: Depend on it.
21505         Suggested by Simon Josefsson.
21506
21507 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
21508
21509         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
21510         statement, to work around an HP-UX 10.20 compiler bug reported by
21511         Peter O'Gorman.
21512
21513 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
21514
21515         * modules/savedir (Depends-on): Add openat.
21516
21517 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
21518
21519         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
21520         (uintmax_t) [defined uintmax_t]: Do not declare.
21521         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
21522         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
21523         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
21524         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
21525         sake of portability to weird hosts that C allows (though we don't
21526         know of any practical examples).
21527
21528         * lib/savedir.h (fdsavedir): New decl.
21529         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
21530         contains most of the former guts of savedir.
21531         (savedir): Use savedirstream.
21532         Include "openat.h".
21533
21534 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
21535
21536         * modules/obstack (Files): Add m4/ulonglong.m4.
21537         Problem reported by Davide Angelocola.
21538
21539 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
21540
21541         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
21542         coreutils no longer futzes with rounding modes.
21543
21544 2005-11-14  Jim Meyering  <jim@meyering.net>
21545
21546         * lib/mkstemp-safer.c: Include <config.h>, required for possible
21547         replacement of mkstemp.
21548
21549 2005-11-10  Simon Josefsson  <jas@extundo.com>
21550
21551         * lib/readline.c: Remove EOL.
21552
21553 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
21554
21555         * modules/gethrxtime (Depends-on): Add gettime.
21556
21557 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
21558
21559         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
21560         or gettimeofday; no longer needed.
21561
21562 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
21563
21564         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
21565         time business.
21566         (gethrxtime) [! (HAVE_NANOUPTIME
21567         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
21568         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
21569         our own approximation.
21570
21571 2005-11-08  Eric Blake  <ebb9@byu.net>
21572
21573         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
21574
21575 2005-11-08  Eric Blake  <ebb9@byu.net>
21576
21577         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
21578
21579 2005-11-04  Bruno Haible  <bruno@clisp.org>
21580
21581         * gnulib-tool: Implement --update mode.
21582
21583 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
21584
21585         Fix porting problem reported by Theodoros V. Kalamatianos.
21586         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
21587         Don't assume that futimes failing means we must fail.
21588
21589 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
21590
21591         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
21592         variables to suggest the intended function of the PATH_MAX check.
21593
21594 2005-10-30  Kean Johnston  <jkj@sco.com>
21595
21596         Trivial changes to support SCO systems.
21597         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
21598         as PATH_MAX.
21599         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
21600         where __ptr is null when no I/O is pending.
21601
21602 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
21603
21604         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
21605         leave errno alone.  Problem reported by Dmitry V. Levin.
21606
21607 2005-10-28  Simon Josefsson  <jas@extundo.com>
21608
21609         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
21610         Test more.
21611
21612         * tests/test-gc-md2.c, tests/test-md2.c: New files.
21613
21614         * modules/md2, modules/md2-tests: New files.
21615
21616 2005-10-28  Simon Josefsson  <jas@extundo.com>
21617
21618         * m4/inet_ntop.m4: More tests.
21619
21620         * m4/gc-md2.m4, md2.m4: New file.
21621
21622 2005-10-28  Simon Josefsson  <jas@extundo.com>
21623
21624         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
21625         "restrict" keywords, as per POSIX.  Protect the function
21626         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
21627         Don't use K&R prototypes.  Check the sprintf return values.
21628         Re-define EAFNOSUPPORT if not present.  Indent.
21629
21630         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
21631         suggested by Bruno Haible <bruno@clisp.org>.
21632
21633         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
21634
21635         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
21636
21637         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
21638         libgcrypt).
21639
21640         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
21641
21642         * lib/md2.h, lib/md2.c: New files.
21643
21644 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
21645
21646         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
21647         errno alone.  Problem reported by Frederic Jolliton.
21648
21649 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
21650
21651         * modules/verify (License): Change from GPL to LGPL.  This is a
21652         tiny module and there are apparently near-equivalents that are
21653         under the BSD license.
21654
21655 2005-10-24  Simon Josefsson  <jas@extundo.com>
21656
21657         * modules/sha1: Relicense to LGPL.
21658
21659 2005-10-24  Simon Josefsson  <jas@extundo.com>
21660
21661         * lib/md4.h: Shrink buffer size, now that we changed the type.
21662
21663 2005-10-23  Simon Josefsson  <jas@extundo.com>
21664
21665         * gnulib-tool (func_import): Fix --tests-base.
21666
21667 2005-10-22  Simon Josefsson  <jas@extundo.com>
21668
21669         * modules/arcfour (Depends-on): Need stdint.
21670
21671 2005-10-22  Simon Josefsson  <jas@extundo.com>
21672
21673         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
21674         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
21675
21676 2005-10-22  Simon Josefsson  <jas@extundo.com>
21677
21678         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
21679         suggested by Bruno Haible <bruno@clisp.org>.
21680
21681 2005-10-22  Simon Josefsson  <jas@extundo.com>
21682
21683         * lib/crc.h: Include stddef.h, for size_t.
21684
21685 2005-10-22  Simon Josefsson  <jas@extundo.com>
21686
21687         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
21688         arcfour_context struct (simplify test vector testing in GNU
21689         Shishi).
21690
21691 2005-10-21  Simon Josefsson  <jas@extundo.com>
21692
21693         * modules/des, modules/des-tests: New files.
21694
21695         * modules/gc-des, modules/gc-des-tests: New files.
21696
21697         * tests/test-des.c, tests/test-gc-des.c: New file.
21698
21699 2005-10-21  Simon Josefsson  <jas@extundo.com>
21700
21701         * modules/arctwo, modules/arctwo-tests: New files.
21702
21703         * tests/test-arctwo.c: New file.
21704
21705         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
21706
21707         * tests/test-gc-arctwo.c: New file.
21708
21709 2005-10-21  Simon Josefsson  <jas@extundo.com>
21710
21711         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
21712         Bruno Haible <bruno@clisp.org>.
21713
21714         * m4/gc-des.m4: New file.
21715
21716 2005-10-21  Simon Josefsson  <jas@extundo.com>
21717
21718         * m4/arctwo.m4: New file.
21719
21720         * m4/gc-arctwo.m4: New file.
21721
21722 2005-10-21  Simon Josefsson  <jas@extundo.com>
21723
21724         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
21725         block.
21726
21727 2005-10-21  Simon Josefsson  <jas@extundo.com>
21728
21729         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
21730         <bruno@clisp.org>.
21731
21732         * lib/hmac-sha1.c (hmac_sha1): Likewise.
21733
21734         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
21735         Bruno Haible <bruno@clisp.org>.
21736
21737         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
21738         <bruno@clisp.org>.
21739
21740 2005-10-21  Simon Josefsson  <jas@extundo.com>
21741
21742         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
21743
21744 2005-10-21  Simon Josefsson  <jas@extundo.com>
21745
21746         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
21747
21748 2005-10-21  Simon Josefsson  <jas@extundo.com>
21749
21750         * lib/des.h, lib/des.c: New files.
21751
21752         * lib/gc-gnulib.c: Support DES.c
21753
21754 2005-10-21  Simon Josefsson  <jas@extundo.com>
21755
21756         * lib/arctwo.h, lib/arctwo.c: New files.
21757
21758         * lib/gc-gnulib.c: Support ARCTWO.
21759
21760 2005-10-21  Simon Josefsson  <jas@extundo.com>
21761
21762         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
21763         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21764
21765 2005-10-21  Simon Josefsson  <jas@extundo.com>
21766
21767         * gnulib-tool (func_import, func_create_testdir): Define automake
21768         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
21769         Makefile.am snippet),
21770         suggested by Bruno Haible <bruno@clisp.org>.
21771
21772         * modules/gc (Makefile.am): Use it.
21773
21774 2005-10-21  Bruno Haible  <bruno@clisp.org>
21775
21776         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
21777         patch.
21778
21779 2005-10-19  Simon Josefsson  <jas@extundo.com>
21780
21781         * tests/test-gc-rijndael.c: New file.
21782
21783         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
21784
21785 2005-10-19  Simon Josefsson  <jas@extundo.com>
21786
21787         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
21788         interface too.
21789
21790 2005-10-19  Simon Josefsson  <jas@extundo.com>
21791
21792         * tests/test-gc-arcfour.c: New file.
21793
21794         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
21795
21796 2005-10-19  Simon Josefsson  <jas@extundo.com>
21797
21798         * modules/gc-md4, modules/gc-md4-tests: New file.
21799
21800         * tests/test-gc-md4.c: New file.
21801
21802 2005-10-19  Simon Josefsson  <jas@extundo.com>
21803
21804         * m4/gc-md4.m4: New file.
21805
21806 2005-10-19  Simon Josefsson  <jas@extundo.com>
21807
21808         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
21809         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
21810         <kasal@ucw.cz>.
21811
21812 2005-10-19  Simon Josefsson  <jas@extundo.com>
21813
21814         * m4/gc-arcfour.m4: New file.
21815
21816         * m4/gc-rijndael.m4: New file.
21817
21818 2005-10-19  Simon Josefsson  <jas@extundo.com>
21819
21820         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
21821
21822 2005-10-19  Simon Josefsson  <jas@extundo.com>
21823
21824         * lib/gc-gnulib.c: Support ARCFOUR.
21825
21826 2005-10-19  Simon Josefsson  <jas@extundo.com>
21827
21828         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
21829         support.
21830
21831         * lib/gc.h: Add ECB enum type.
21832
21833         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
21834
21835 2005-10-18  Simon Josefsson  <jas@extundo.com>
21836
21837         * tests/test-md5.c: New file.
21838
21839         * modules/md5-tests: New file.
21840
21841 2005-10-18  Simon Josefsson  <jas@extundo.com>
21842
21843         * tests/test-md4.c: New file.
21844
21845         * modules/md4, modules/md4-tests: New files.
21846
21847 2005-10-18  Simon Josefsson  <jas@extundo.com>
21848
21849         * m4/md4.m4: New file.
21850
21851 2005-10-18  Simon Josefsson  <jas@extundo.com>
21852
21853         * lib/md4.h, lib/md4.c: New files, based on md5.?.
21854
21855 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
21856
21857         * gnulib-tool (func_create_testdir): Omit the second check whether
21858         BUILT_SOURCES in nonempty.
21859
21860 2005-10-17  Simon Josefsson  <jas@extundo.com>
21861
21862         * tests/test-rijndael.c: New file.
21863
21864 2005-10-17  Simon Josefsson  <jas@extundo.com>
21865
21866         * modules/sha1: Depend on stdint instead of md5.
21867
21868         * modules/md5: Depend on stdint, remove uint32_t.
21869
21870 2005-10-17  Simon Josefsson  <jas@extundo.com>
21871
21872         * modules/gc-sha1-tests: New file.
21873
21874         * tests/test-gc-sha1.c: New file.
21875
21876 2005-10-17  Simon Josefsson  <jas@extundo.com>
21877
21878         * m4/md5.m4: Remove call to uint32_t.m4.
21879
21880 2005-10-17  Simon Josefsson  <jas@extundo.com>
21881
21882         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
21883
21884         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
21885         md5.h.
21886
21887         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
21888
21889         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
21890
21891 2005-10-17  Simon Josefsson  <jas@extundo.com>
21892
21893         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
21894
21895 2005-10-17  Simon Josefsson  <jas@extundo.com>
21896
21897         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
21898
21899 2005-10-17  Simon Josefsson  <jas@extundo.com>
21900
21901         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
21902
21903         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
21904
21905 2005-10-17  Bruno Haible  <bruno@clisp.org>
21906
21907         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
21908         that it can also be used in a test.
21909
21910 2005-10-16  Bruno Haible  <bruno@clisp.org>
21911
21912         * gnulib-tool (func_emit_tests_Makefile_am): Also define
21913         TESTS_ENVIRONMENT, so that individual tests can augment it.
21914
21915         * gnulib-tool (func_create_testdir): Use an intermediate target for
21916         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
21917         macros, like $(ALLOCA_H), which cannot be passed through the command
21918         line.
21919
21920 2005-10-15  Simon Josefsson  <jas@extundo.com>
21921
21922         * modules/rijndael-tests: New file.
21923
21924         * modules/rijndael: New file.
21925
21926 2005-10-15  Simon Josefsson  <jas@extundo.com>
21927
21928         * m4/rijndael.m4: New file.
21929
21930 2005-10-15  Simon Josefsson  <jas@extundo.com>
21931
21932         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
21933
21934         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
21935
21936 2005-10-14  Simon Josefsson  <jas@extundo.com>
21937
21938         * tests/test-arcfour.c: New file.
21939
21940         * modules/arcfour, modules/arcfour-tests: New files.
21941
21942 2005-10-14  Simon Josefsson  <jas@extundo.com>
21943
21944         * m4/arcfour.m4: New file.
21945
21946 2005-10-14  Simon Josefsson  <jas@extundo.com>
21947
21948         * lib/arcfour.h, lib/arcfour.c: New files.
21949
21950 2005-10-14  Roland McGrath  <roland@redhat.com>
21951
21952         Import from libc.  [BZ #1331]
21953         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
21954         macro argument.
21955         Reported by Matej Vela <vela@debian.org>.
21956
21957 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
21958
21959         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
21960         include <wchar.h>; no longer needed.
21961
21962 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
21963
21964         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
21965
21966 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
21967         and  Ulrich Drepper  <drepper@redhat.com>
21968
21969         Import from libc.
21970         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
21971         instead of inline stream orientation test and two separate
21972         function calls.  Pay no attention to USE_IN_LIBIO.
21973
21974 2005-10-13  Simon Josefsson  <jas@extundo.com>
21975
21976         * modules/gc-hmac-md5-tests: New file.
21977
21978         * tests/test-gc-hmac-sha1.c: New file.
21979
21980         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
21981
21982         * modules/gc-hmac-md5-tests: New file.
21983
21984         * tests/test-gc-md5.c: New file.
21985
21986         * modules/gc-md5-tests: New file.
21987
21988 2005-10-13  Simon Josefsson  <jas@extundo.com>
21989
21990         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
21991         Move memory allocation outside of loop.
21992
21993 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
21994
21995         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
21996         intermediate directory is in a read-only file system.  Problem
21997         reported by Eric Blake.
21998
21999 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
22000
22001         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
22002
22003 2005-10-12  Simon Josefsson  <jas@extundo.com>
22004
22005         * tests/test-hmac-sha1.c: New file.
22006
22007         * modules/hmac-sha1-tests: New file.
22008
22009         * modules/hmac-sha1: New file.
22010
22011 2005-10-12  Simon Josefsson  <jas@extundo.com>
22012
22013         * modules/gc-sha1: New file.
22014
22015 2005-10-12  Simon Josefsson  <jas@extundo.com>
22016
22017         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
22018
22019         * tests/test-gc-pbkdf2-sha1.c: New file.
22020
22021 2005-10-12  Simon Josefsson  <jas@extundo.com>
22022
22023         * modules/gc-md5, modules/gc-hmac-md5: New files.
22024
22025         * modules/gc (Files): Remove md5, memxor and hmac files.
22026
22027 2005-10-12  Simon Josefsson  <jas@extundo.com>
22028
22029         * m4/gc-pbkdf2-sha1.m4: New file.
22030
22031         * m4/gc-hmac-sha1.m4: New file.
22032
22033         * m4/gc-sha1: New file.
22034
22035         * m4/hmac-sha1.m4: New file.
22036
22037 2005-10-12  Simon Josefsson  <jas@extundo.com>
22038
22039         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
22040
22041         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
22042
22043 2005-10-12  Simon Josefsson  <jas@extundo.com>
22044
22045         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
22046         suggested by Bruno Haible <bruno@clisp.org>.
22047
22048 2005-10-12  Simon Josefsson  <jas@extundo.com>
22049
22050         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
22051
22052 2005-10-12  Simon Josefsson  <jas@extundo.com>
22053
22054         * lib/gc-pbkdf2-sha1.c: New file.
22055
22056         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
22057
22058 2005-10-12  Simon Josefsson  <jas@extundo.com>
22059
22060         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
22061
22062         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
22063
22064 2005-10-12  Simon Josefsson  <jas@extundo.com>
22065
22066         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
22067         GC_USE_HMAC_MD5, respectively.
22068
22069         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
22070         (gc_md5): Fix typo.
22071
22072         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
22073
22074         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
22075
22076         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
22077
22078 2005-10-12  Bruno Haible  <bruno@clisp.org>
22079
22080         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
22081         Reported by Stepan Kasal <kasal@ucw.cz>.
22082
22083 2005-10-11  Simon Josefsson  <jas@extundo.com>
22084
22085         * tests/test-crc.c: New file.
22086
22087         * modules/crc, modules/crc-tests: New files.
22088
22089 2005-10-11  Simon Josefsson  <jas@extundo.com>
22090
22091         * m4/crc.m4: New file.
22092
22093 2005-10-11  Simon Josefsson  <jas@extundo.com>
22094
22095         * lib/gc.h: Add gc_hash and gc_hash_buffer.
22096
22097         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
22098
22099         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
22100
22101 2005-10-11  Simon Josefsson  <jas@extundo.com>
22102
22103         * lib/crc.h, lib/crc.c: New files.
22104
22105         * lib/gc.h (gc_hash_buffer): Add doc.
22106
22107 2005-10-11  Bruno Haible  <bruno@clisp.org>
22108
22109         * modules/c-strcasestr: New file.
22110         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
22111
22112 2005-10-11  Bruno Haible  <bruno@clisp.org>
22113
22114         * modules/c-strcase: New file.
22115         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
22116
22117 2005-10-11  Bruno Haible  <bruno@clisp.org>
22118
22119         * lib/strcasecmp.c: Include limits.h.
22120         (strcasecmp): Avoid integer overflow on exotic platforms.
22121         * lib/strncasecmp.c: Include limits.h.
22122         (strncasecmp): Avoid integer overflow on exotic platforms.
22123         Reported by Paul Eggert.
22124
22125 2005-10-11  Bruno Haible  <bruno@clisp.org>
22126
22127         * lib/c-strcasestr.h: New file, from GNU gettext.
22128         * lib/c-strcasestr.c: New file, from GNU gettext.
22129
22130 2005-10-11  Bruno Haible  <bruno@clisp.org>
22131
22132         * lib/c-strcase.h: New file, from GNU gettext.
22133         * lib/c-strcasecmp.c: New file, from GNU gettext.
22134         * lib/c-strncasecmp.c: New file, from GNU gettext.
22135
22136 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
22137
22138         * modules/mempcpy (License): GPL -> LGPL.
22139         * modules/strchrnul (License): Likewise.
22140         * modules/sysexits (License): Likewise.
22141
22142 2005-10-08  Simon Josefsson  <jas@extundo.com>
22143
22144         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
22145
22146 2005-10-07  Simon Josefsson  <jas@extundo.com>
22147
22148         * m4/memxor.m4: Remove gl_C_RESTRICT call.
22149
22150 2005-10-06  Simon Josefsson  <jas@extundo.com>
22151
22152         * tests/test-hmac-md5.c: New file.
22153
22154         * modules/hmac-md5-tests: New file.
22155
22156         * modules/hmac-md5: New file.
22157
22158 2005-10-06  Simon Josefsson  <jas@extundo.com>
22159
22160         * m4/hmac-md5.m4: New file.
22161
22162         * m4/memxor.m4: Require gl_C_RESTRICT.
22163
22164 2005-10-06  Simon Josefsson  <jas@extundo.com>
22165
22166         * lib/memxor.c (memxor): Avoid casts and warnings.
22167
22168 2005-10-06  Simon Josefsson  <jas@extundo.com>
22169
22170         * lib/hmac-md5.c: New file.
22171
22172         * lib/hmac.h: New file.
22173
22174 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
22175
22176         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
22177         promotes to int, not unsigned int, to catch the AIX 5.3
22178         compiler bug.
22179
22180 2005-10-05  Simon Josefsson  <jas@extundo.com>
22181
22182         * modules/memxor: New file.
22183
22184         * modules/iconv (Files): Move config.rpath to havelib, it is used
22185         there.
22186
22187         * modules/havelib (Files): Add config.rpath.
22188
22189 2005-10-05  Simon Josefsson  <jas@extundo.com>
22190
22191         * m4/memxor.m4: New file.
22192
22193 2005-10-05  Simon Josefsson  <jas@extundo.com>
22194
22195         * lib/memxor.c (memxor): Fix compiler error.
22196
22197         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
22198         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
22199
22200         * lib/memxor.h, lib/memxor.c: New files.
22201
22202         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
22203         we assume all systems have it, suggested by Jim Meyering
22204         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
22205         any systems lack sys/socket.h; mingw32 is known to lack it, but we
22206         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
22207         same reasons.
22208
22209 2005-10-05  Simon Josefsson  <jas@extundo.com>
22210
22211         * config/srclist.txt: Add glibc bug 1423 for md5.h.
22212
22213 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
22214
22215         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
22216         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
22217         needed, since the source code now assumes these .h files.
22218
22219 2005-10-05  Derek Price  <derek@ximbiot.com>
22220
22221         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
22222
22223 2005-10-05  Bruno Haible  <bruno@clisp.org>
22224
22225         * modules/stdint (License): Change to LGPL.
22226
22227 2005-10-04  Simon Josefsson  <jas@extundo.com>
22228
22229         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
22230         D. Baushke" <mdb@gnu.org>.
22231
22232 2005-10-04  Bruno Haible  <bruno@clisp.org>
22233
22234         * lib/verify.h (verify_true): Provide alternative definition for C++.
22235
22236 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
22237
22238         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
22239         (SSIZE_MAX): New macro, if not already defined.
22240         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
22241         than 2 GiB.
22242
22243 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
22244
22245         Sync from coreutils.
22246         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
22247         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
22248         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
22249         ULLONG_MAX doesn't work with 2.7.2.1.
22250
22251 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
22252
22253         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
22254         From Ben Pfaff.
22255
22256         * modules/exclude (Depends-on): Depend on verify.
22257         * modules/strtoimax (Depends-on): Likewise.
22258         * modules/utimecmp (Depends-on): Likewise.
22259
22260 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
22261
22262         * lib/exclude.c: Include verify.h.
22263         (verify): Remove.  All callers changed to use verify.h's version.
22264         * lib/strtoimax.c: Likewise.
22265         * lib/utimecmp.c: Likewis.e
22266
22267         Sync from coreutils.
22268         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
22269         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
22270         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
22271         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
22272         bother returning ENOSYS if settimeofday or stime fails; just let
22273         them return whatever errno they want to return.
22274         * lib/utimens.c: Include unistd.h, for dup2.
22275         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
22276         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
22277
22278 2005-10-02  Jim Meyering  <jim@meyering.net>
22279
22280         Sync from coreutils.
22281         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
22282         from glibc-2.2.5 that fails for read-only files.
22283
22284 2005-10-02  Jim Meyering  <jim@meyering.net>
22285
22286         Sync from coreutils.
22287         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
22288         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
22289         `#if HAVE_CONFIG_H'.
22290         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
22291         Remove AT_FDCWD test.
22292         Do not consume the fd unless successful.
22293         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
22294         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
22295         block, so that we don't even try to compile it if settimeofday is
22296         available.  This works around a compilation failure on OSF1 V5.1,
22297         due to stime requiring a `long int*' while tv_sec is `int'.
22298
22299 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
22300
22301         Sync from coreutils.
22302         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
22303         against `yes', rather than just testing for nonempty.
22304
22305 2005-10-01  Simon Josefsson  <jas@extundo.com>
22306
22307         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
22308         and Darwin.
22309
22310         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
22311         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
22312         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
22313         freeaddrinfo and gai_strerror are declared by the POSIX headers.
22314         Check if struct addrinfo is declared.
22315
22316 2005-10-01  Simon Josefsson  <jas@extundo.com>
22317
22318         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
22319         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
22320         AI_* and EAI_* definitions.  Protect function declarations.
22321
22322 2005-10-01  Jim Meyering  <jim@meyering.net>
22323
22324         Sync from coreutils.
22325
22326         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
22327         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
22328         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
22329         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
22330         in the inet and nsl libraries.  Required on Solaris 5.7.
22331
22332 2005-10-01  Jim Meyering  <jim@meyering.net>
22333
22334         Sync from coreutils.
22335         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
22336         in the inet and nsl libraries.  Required on Solaris 5.7.
22337
22338 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
22339
22340         * lib/getdelim.c (getdelim): Remove unused variables.
22341
22342 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
22343
22344         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
22345         so that the code works even with ancient cpp.  Portability problem
22346         with GCC 2.7.2.1 reported by Thomas M.Ott.
22347
22348 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
22349
22350         * modules/regex (Depends-on): Add strcase.
22351
22352         * modules/gethostname (Licence): Change from GPL to LGPL, since
22353         gethostname.c is a trivial implementation of a standard library
22354         function.
22355         * modules/poll (License): Change from GPL to LGPL, since it's
22356         derived from LGPL code.
22357
22358 2005-09-27  Jim Meyering  <jim@meyering.net>
22359
22360         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
22361         HAVE_CONFIG_H.
22362
22363         * lib/intprops.h (signed_type_or_expr__): Define.
22364         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
22365         for unsigned types.
22366
22367 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
22368
22369         * lib/verify.h (verify_expr): Remove, replacing with:
22370         (verify_true): New macro that returns true instead of void.
22371         (verify_type__): Remove.
22372         (verify): Use verify_true rather than verify_type__.
22373
22374 2005-09-26  Bruno Haible  <bruno@clisp.org>
22375
22376         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
22377         is necessary.
22378         (lib_SOURCES): Remove mbchar.c.
22379         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
22380         (Files): Add m4/mbrtowc.m4.
22381         * modules/mbiter: Likewise.
22382         * modules/mbuiter: Likewise.
22383
22384 2005-09-26  Bruno Haible  <bruno@clisp.org>
22385
22386         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
22387         compile mbchar.c if they are not both present.
22388         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
22389         * m4/mbiter.m4 (gl_MBITER): Likewise.
22390         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
22391         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
22392         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
22393
22394 2005-09-25  Jim Meyering  <jim@meyering.net>
22395
22396         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
22397         also uses socklen_t.
22398
22399 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
22400
22401         * lib/utimens.c (ENOSYS): Define if not already defined.
22402         (futimens): Support having a null PATH if the file descriptor
22403         is nonnegative.
22404
22405         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
22406         Remove.
22407         (__attribute): Define to empty unless GCC 3.1 or later.
22408         This works around a core dump on OpenBSD 3.4, which has GCC
22409         2.95.3, which dumps core when given __attribute__(()).  It also
22410         simplifies other tests, since we really don't want to bother with
22411         worrying about which ancient version of GCC supported what.
22412         Original problem reported by Yoann Vandoorselaere, with part of
22413         the fix suggested by Derek Price.
22414
22415 2005-09-24  Jim Meyering  <jim@meyering.net>
22416
22417         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
22418         so we can once again use a positive bitfield width of 1 -- now we
22419         don't have to explain why we were using a bitfield width of 2.
22420
22421 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
22422
22423         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
22424         and similarly for the other external symbols.  Problem reported
22425         by James Gallager.
22426
22427         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
22428         bug reported by Jim Meyering.
22429
22430         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
22431         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
22432         not needed, since socklen is a prerequisite module.
22433
22434 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
22435
22436         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
22437         Problem reported by Eric Blake.
22438         (getaddrinfo): Initialize se so that it's not garbage.
22439         Redo internal storage allocation so that it doesn't make unportable
22440         assumptions about alignment.
22441         Fix a memory leak.
22442
22443         * lib/utimens.c (futimens): Use futimesat if available.
22444         Prefer it to futimes since it doesn't have the futimes bug.
22445
22446         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
22447         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
22448         Instead, declare a function that returns a pointer to an array,
22449         and use verify_type__ to declare the size of the array.
22450         Problem and germ of a solution reported by Bruno Haible.
22451         (verify_type__): Use 2, not 1, for bitfield size, to avoid
22452         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
22453
22454 2005-09-23  Jim Meyering  <jim@meyering.net>
22455
22456         Sync from coreutils.
22457         Correct build failure (socklen_t not defined) on at least
22458         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
22459         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
22460
22461 2005-09-23  Jim Meyering  <jim@meyering.net>
22462
22463         * modules/getaddrinfo (Depends-on): Add socklen.
22464
22465 2005-09-23  Bruno Haible  <bruno@clisp.org>
22466
22467         * tests/test-verify.c: New file.
22468
22469 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
22470
22471         Sync from coreutils.
22472
22473         * modules/argmatch (Depends-on): Add verify.
22474         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
22475         unistd-safer.
22476         * modules/save-cwd (Depends-on): Likewise.
22477
22478         * modules/openat (Files): Add lib/openat-die.c.
22479         (Depends-on): Remove error, exitfail.
22480         Add dirname.
22481
22482         * modules/verify: New file.
22483         * MODULES.html.sh (Diagnostics <assert.h>): New section,
22484         with "verify" module.
22485
22486 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
22487
22488         Sync from coreutils.
22489
22490         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
22491         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
22492         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
22493         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
22494         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
22495         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
22496         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
22497         Don't bother checking for string.h, stdlib.h, unistd.h.
22498         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
22499         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
22500         module's job.
22501         * m4/jm-macros.m4 (gl_MACROS): Likewise.
22502         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
22503
22504         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
22505         (gl_GETDATE): Use it.
22506
22507         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
22508
22509 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
22510
22511         Sync from coreutils.
22512
22513         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
22514         stat-time.h.
22515         * lib/argmatch.h: Include verify.h
22516         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
22517         (ARGMATCH_ASSERT): Remove; unused.
22518         * lib/canonicalize.c: Assume STDC_HEADERS.
22519         * lib/exclude.c: Include "strcase.h".
22520         * lib/regex_internal.h [!defined _LIBC]: Likewise.
22521         * lib/getusershell.c: Include stdio--.h rather than stdio.h
22522         and stdio-safer.h.
22523         (getusershell): Call fopen, not fopen_safer.
22524         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
22525         Do not include unistd-safer.h.
22526         (save_cwd): Don't call fd_safer; no longer needed
22527         now that we include fcntl--.h.
22528
22529         * lib/getdate.y (relative_time): New type.
22530         (RELATIVE_TIME_0): New constant.
22531         (parser_control): Use relative_time instead of doing it ourselves.
22532         (%union): Add new relative_time rel member.
22533         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
22534         Now typeless.
22535         (relunit, relunit_snumber): Now of type rel.
22536         (zone, rel, relunit, get_date): Adjust to above changes.
22537
22538         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
22539         Do not include unistd-safer.h.
22540         (getloadavg): Don't call fd_safer; no longer needed
22541         now that we include fcntl--.h.
22542
22543         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
22544         (make_dir_parents): Treat ENOSYS like EEXIST.
22545
22546         Improve quality of diagnostics on restore_cwd failure.
22547         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
22548         (make_dir_parents): Last arg is now int * (for errno), not bool *.
22549         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
22550         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
22551         each time through the loop.  Do not diagnose restore_cwd failure;
22552         that is the caller's job (and perhaps the caller does not care).
22553
22554         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
22555         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
22556         If the file already exists but is not a directory, don't bother
22557         to try to make its parents.
22558         Close potential file descriptor leak if we can't chdir("/") (!).
22559         Don't always return true if chdir($PWD) fails; return true only
22560         if the requested action was done successfully (except for the
22561         chdir($PWD)).
22562         Don't log final directory unless we actually made it.
22563         Refactor to avoid duplicate code to fix up permissions.
22564         Don't attempt to fix up parent permissions if chdir($PWD) fails.
22565
22566         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
22567         to make it a bit faster and (I hope) clearer.
22568         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
22569         Fix bug in formats like %2N.
22570
22571         * lib/verify.h: New file.
22572
22573 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
22574
22575         Sync from coreutils.
22576         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
22577
22578 2005-09-22  Jim Meyering  <jim@meyering.net>
22579
22580         Sync from coreutils.
22581
22582         * m4/lstat.m4 (gl_FUNC_LSTAT):
22583         Use AC_LIBSOURCES to require lstat.c and lstat.h.
22584         Remove obsolete comment.
22585         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
22586         * m4/xstrtod.m4: Likewise.
22587
22588         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
22589
22590 2005-09-22  Jim Meyering  <jim@meyering.net>
22591
22592         Sync from coreutils.
22593
22594         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
22595
22596         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
22597         the .tm_year member, since otherwise gcc-4.0 would now warn about
22598         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
22599
22600         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
22601         order to avoid an unsuppressible warning from gcc on 64-bit systems.
22602
22603         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
22604         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
22605         when run in a time zone for which daylight savings time is in effect
22606         for the starting date.
22607
22608         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
22609         stop us from restricting permissions of just-created absolute-named
22610         directories.
22611         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
22612         to restore initial working directory.
22613         * lib/mkdir-p.c (make_dir_parents): New parameter:
22614         different_working_dir, to tell caller if/when we change the working
22615         directory and are unable to return to the initial one.
22616         * lib/mkdir-p.h (make_dir_parents): Update prototype.
22617         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
22618         `return false'.  This fixes a bug introduced on 2004-07-30.
22619
22620         * lib/openat.c (fdopendir): Be sure to close the supplied
22621         file descriptor before returning.  This makes our replacement
22622         implementation a little closer to Solaris's, where fdopendir
22623         ties the file descriptor to the returned DIR* pointer.
22624         * lib/openat.c (unlinkat): New function.
22625         * lib/openat.h (unlinkat): Add prototype.
22626         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
22627         (openat_restore_fail): Rename from openat_restore_die.
22628         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
22629
22630         Provide an alternative to exiting immediately upon save_cwd or
22631         restore_cwd failure.  Now, an application can arrange e.g.,
22632         to perform a longjump in that case.
22633         * lib/openat.c: Include dirname.h.
22634         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
22635         (rpl_openat, fdopendir, fstatat): Call openat_save_die
22636         and openat_restore_die rather than calling error directly.
22637         Don't include "error.h" or "exitfail.h"; they're no longer needed.
22638
22639         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
22640         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
22641         define.
22642
22643         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
22644         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
22645                             int utc, int nanoseconds);
22646         Background:
22647         date should not have to allocate a megabyte of virtual memory to
22648         handle a format argument like +%1048575T.  When implemented with
22649         strftime, it must allocate such a buffer, use strftime to fill it
22650         in, print it, then free it.
22651         With fprintftime, it simply prints everything and exits.
22652         With no need for memory allocation, that's one fewer way to fail.
22653         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
22654         optional field width, not before, so we accept %9:z, not %:9z.
22655         (my_strftime): Be sure to use L_('x') for literals.
22656
22657         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
22658         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
22659         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
22660         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
22661         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
22662         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
22663         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
22664         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
22665         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
22666         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
22667         * lib/xgethostname.c, lib/xreadlink.c:
22668         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
22669
22670         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
22671         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
22672         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
22673         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
22674         and don't include <sys/file.h>).
22675
22676 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
22677
22678         Sync from coreutils.
22679
22680         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
22681         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
22682         [!LDAV_DONE]: Avoid unused variable warning.
22683
22684 2005-09-21  Bruno Haible  <bruno@clisp.org>
22685
22686         * lib/unicodeio.h (unicode_to_mb): New declaration.
22687
22688 2005-09-20  Derek Price  <derek@ximbiot.com>
22689
22690         * lib/getaddrinfo.c: Don't include <netdb.h> included from
22691         getaddrinfo.h.
22692
22693 2005-09-20  Bruno Haible  <bruno@clisp.org>
22694
22695         * gnulib-tool: Remove trailing slashes from the values specified for
22696         --source-base, --m4-base, --tests-base, --aux-dir.
22697         Suggested by Simon Josefsson <jas@extundo.com>.
22698
22699 2005-09-20  Bruno Haible  <bruno@clisp.org>
22700
22701         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
22702         func_modules_to_filelist, func_import, func_create_testdir): Make all
22703         sorting results locale-independent, so that gnulib-cache.m4 doesn't
22704         change when gnulib-tool is invoked in a different locale.
22705
22706 2005-09-19  Simon Josefsson  <jas@extundo.com>
22707
22708         * m4/socklen.m4: Fix typo.
22709
22710 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22711
22712         Use a consistent style for including <config.h>.
22713         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
22714         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
22715         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
22716         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
22717         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
22718         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
22719         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
22720         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
22721         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
22722         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
22723         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
22724         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
22725         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
22726         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
22727         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
22728         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
22729         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
22730         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
22731         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
22732         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
22733         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
22734         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
22735         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
22736         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
22737         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
22738         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
22739         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
22740         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
22741         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
22742         lib/xstrtoumax.c, lib/yesno.c:
22743         Standardize inclusion of config.h.
22744         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
22745         lib/inttostr.h:  Removed inclusion of config.h from header files.
22746         * lib/inttostr.c:  Adjusted in-tree users.
22747         * lib/timespec.h: Remove superfluous warning to include config.h.
22748         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
22749         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
22750         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
22751         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
22752         config.h with HAVE_CONFIG_H.
22753
22754 2005-09-19  Jim Meyering  <jim@meyering.net>
22755
22756         * modules/pathmax (License): Change to LGPL.
22757
22758 2005-09-19  Derek Price  <derek@ximbiot.com>
22759
22760         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
22761
22762 2005-09-19  Bruno Haible  <bruno@clisp.org>
22763
22764         * gnulib-tool (import): Provide default for --tests-base.
22765
22766 2005-09-19  Bruno Haible  <bruno@clisp.org>
22767
22768         * doc/quote.texi: New file, extracted from gnulib.texi.
22769         * doc/ctime.texi: New file, extracted from gnulib.texi.
22770         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
22771         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
22772         * doc/gnulib.texi: Include them.
22773
22774 2005-09-18  Bruno Haible  <bruno@clisp.org>
22775
22776         Portability fix.
22777         * gnulib-tool (func_readlink): New function.
22778         (func_ln_if_changed): Use it.
22779
22780 2005-09-18  Bruno Haible  <bruno@clisp.org>
22781
22782         * gnulib-tool: Support --with-tests also with --import.
22783         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
22784         (func_import): Use variables $testsbase and $inctests. Emit a
22785         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
22786         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
22787         SUBDIRS += $testsdir.
22788         (func_create_testdir): Update.
22789
22790 2005-09-18  Bruno Haible  <bruno@clisp.org>
22791
22792         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
22793         instead of $dry_run.
22794         (func_cp_if_changed, func_mv_if_changed): Remove functions.
22795         (func_ln_if_changed): Don't handle dry-run here.
22796         (func_import): In dry-run mode, detect more precisely which actions
22797         would be performed, and don't use "...ing" verbs.
22798
22799 2005-09-18  Bruno Haible  <bruno@clisp.org>
22800
22801         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
22802         (func_import): Use join on two temporary files instead of three nested
22803         loops, in order to determine which files are new or old.
22804
22805 2005-09-18  Bruno Haible  <bruno@clisp.org>
22806
22807         * gnulib-tool (func_import): Comment out code that spits out the
22808         new files with --dry-run.
22809
22810 2005-09-18  Bruno Haible  <bruno@clisp.org>
22811
22812         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
22813
22814 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
22815
22816         * lib/stat-time.h: New file.
22817         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
22818         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
22819         in a different way.
22820         (timespec_cmp): New function.
22821         * lib/utimecmp.c: Include stat-time.h.
22822         (SYSCALL_RESOLUTION): Depend on whether various struct stat
22823         members exist, not on the obsolescent ST_MTIM_NSEC.
22824         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
22825
22826 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
22827
22828         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
22829
22830 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
22831
22832         * MODULES.html.sh (File system functions): Add stat-time.
22833         * modules/stat-time: New file.
22834         * modules/timespec (Files): Remove m4/st_mtim.m4; this
22835         is now done in a different way, by the stat-time module.
22836         * modules/utimecmp (Depends-on): Add stat-time.
22837
22838 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
22839
22840         * m4/st_mtim.m4: Remove.  Superseded by...
22841         * m4/stat-time.m4: New file.
22842         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
22843         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
22844
22845 2005-09-15  Derek Price  <derek@ximbiot.com>
22846
22847         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
22848
22849 2005-09-15  Derek Price  <derek@ximbiot.com>
22850
22851         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
22852         * lib/regex_internal.c: Ditto, using this...
22853         (__GNUC_PREREQ): ...new macro.
22854         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
22855         using...
22856         (__GNUC_PREREQ): ...this new macro.
22857
22858         * lib/strstr.h: Include string.h. Define strstr as a macro here.
22859
22860 2005-09-15  Derek Price  <derek@ximbiot.com>
22861             Paul Eggert  <eggert@cs.ucla.edu>
22862
22863         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
22864         changes, consolidating in...
22865         * lib/regex_internal.h: ...this file.
22866
22867 2005-09-13  Jim Meyering  <jim@meyering.net>
22868
22869         * lib/canon-host.c: Filter through gnu indent and reword comments
22870         slightly.
22871         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
22872
22873 2005-09-13  Derek Price  <derek@ximbiot.com>
22874
22875         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
22876         failure.
22877         Reported by Jim Meyering  <jim@meyering.net>.
22878
22879 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
22880
22881         * lib/base64.c: Typo.
22882         (base64_encode): Put b64str in initialized data section.
22883
22884 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
22885
22886         Merge glibc and coreutils changes into gnulib, plus a few
22887         extra fixes.
22888         * lib/md5.c: Use #error rather than a string.
22889         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
22890         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
22891         (__attribute__): Define to empty for non recent-GCC.
22892         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
22893         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
22894         Renamed from their non-__ counterparts, with new macros replacing
22895         them if not _LIBC.  Add __THROW attribute.
22896         (rol): Remove.
22897         (struct md5_ctx): Align buffer if using GCC.
22898         * lib/sha1.h (struct sha1_ctx): Likewise.
22899         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
22900         The old name was backwards.
22901         (NOTSWAP): Remove; not used.
22902         (rol): New macro, moved here from md5.h.
22903         (sha1_process_block): Remove a FIXME that doesn't make sense.
22904
22905 2005-09-12  Derek Price  <derek@ximbiot.com>
22906
22907         Return usable errors from canon-host.
22908         * lib/canon-host.h: New file.
22909         * lib/canon-host.c (canon_host): Wrap...
22910         (canon_host_r): ...this new function, which now relies exclusively on
22911         getaddrinfo.
22912         (ch_strerror): New function.
22913         (last_cherror): New global.
22914         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
22915         interface.
22916         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
22917         void *.
22918         (freeaddrinfo): Free ai->ai_canonname when set.
22919
22920 2005-09-12  Derek Price  <derek@ximbiot.com>
22921
22922         Make canon-host require getaddrinfo.
22923         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
22924         AC_LIBSOURCE canon-host.h.  Call...
22925         (gl_PREREQ_CANON_HOST): ...this new function, which requires
22926         gl_GETADDRINFO.
22927         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
22928
22929 2005-09-12  Derek Price  <derek@ximbiot.com>
22930
22931         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
22932         LGPL.
22933         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
22934
22935 2005-09-12  Derek Price  <derek@ximbiot.com>
22936
22937         * lib/gai_strerror.c: Include config.h when available.  Include
22938         getaddrinfo.h before other headers to test interface.
22939         Reported by Larry Jones <lawrence.jones@ugs.com>.
22940
22941 2005-09-12  Derek Price  <derek@ximbiot.com>
22942             Paul Eggert  <eggert@cs.ucla.edu>
22943
22944         * modules/glob (Files): Add glob-libc.h.
22945
22946 2005-09-12  Derek Price  <derek@ximbiot.com>
22947             Paul Eggert  <eggert@cs.ucla.edu>
22948
22949         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
22950         glob_.h, glob-libc.h.
22951         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
22952
22953 2005-09-12  Derek Price  <derek@ximbiot.com>
22954             Paul Eggert  <eggert@cs.ucla.edu>
22955
22956         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
22957         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
22958         protecting things that should be done only in gnulib contexts.
22959         * lib/glob_.h: New file, containing only the glob things needed for
22960         gnulib.
22961         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
22962         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
22963         (glob, globfree, glob_pattern_p): Now defined simply in terms of
22964         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
22965         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
22966         and to respect the namespace rules better.
22967
22968 2005-09-08  Simon Josefsson  <jas@extundo.com>
22969
22970         * modules/socklen: New file.
22971
22972 2005-09-08  Simon Josefsson  <jas@extundo.com>
22973
22974         * m4/socklen.m4: New file.
22975
22976 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
22977
22978         * modules/utimens (Files): Add m4/utimbuf.m4, since
22979         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
22980         Reported by Sergey Poznyakoff.
22981
22982 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
22983
22984         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
22985         definitions, since that's the preferred style in glibc.
22986         Fix a minor spacing issue, and update copyright notice to match
22987         glibc's.
22988
22989 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
22990
22991         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
22992
22993 2005-09-06  Simon Josefsson  <jas@extundo.com>
22994
22995         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
22996         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
22997
22998 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
22999
23000         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
23001         warning.
23002
23003 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
23004
23005         * config/srclist.txt: Add glibc bug 1302.
23006
23007 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
23008
23009         Change bitset word type from unsigned int to unsigned long int,
23010         as this has better performance on typical 64-bit hosts.
23011         Port bitset code to hosts with unusual word sizes.
23012         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
23013         (build_collating_symbol):
23014         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
23015         argument is a bitset.  This is merely a style issue, but it makes
23016         it clearer that an entire array is expected.
23017         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
23018         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
23019         Port to the case where bitset_word is not the same as unsigned int.
23020         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
23021         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
23022         Likewise.
23023         * lib/regexec.c (check_dst_limits_calc_pos_1,
23024         check_subexp_matching_top):
23025         (build_trtable, group_nodes_into_DFAstates):
23026         Likewise.
23027         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
23028         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
23029         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
23030         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
23031         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
23032         * lib/regcomp.c (optimize_subexps, lower_subexp):
23033         Work even if bitset_word has holes in its bitwise representation.
23034         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
23035         * lib/regexec.c (check_dst_limits_calc_pos_1,
23036         check_subexp_matching_top):
23037         Likewise.
23038         * lib/regex_internal.c (re_string_reconstruct):
23039         Don't assume UCHAR_MAX == 255.
23040         * lib/regex_internal.h (bitset_set_all): Likewise.
23041         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
23042         All uses changed.
23043         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
23044         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
23045         All uses changed.
23046         (BITSET_WORD_MAX): New macro.
23047         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
23048         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
23049         (bitset_empty, bitset_copy):
23050         Prefer sizeof (bitset) to multiplying it out ourselves.
23051         (bitset_not_merge): Remove; unused.
23052         (bitset_contain): Return bool, not unsigned int with one bit on.
23053         All callers changed.
23054         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
23055         alignment than re_node_set; do this by defining a new internal
23056         type struct dests_alloc and using it to allocate memory.
23057
23058 2005-09-05  Bruno Haible  <bruno@clisp.org>
23059
23060         * gnulib-tool (func_import): Fix comparison in handling of symbolic
23061         links.
23062
23063 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
23064
23065         * modules/size_max (Makefile.am): Add size_max.h
23066
23067 2005-09-04  Derek Price  <derek@ximbiot.com>
23068
23069         * gnulib-tool (func_import): Fix reversed $symbolic logic.
23070
23071 2005-09-03  Simon Josefsson  <jas@extundo.com>
23072
23073         * gnulib-tool: Fix typo.
23074
23075 2005-09-03  Simon Josefsson  <jas@extundo.com>
23076
23077         * config/srclist.txt: Add glibc bug 1293.
23078
23079 2005-09-03  Derek Price  <derek@ximbiot.com>
23080
23081         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
23082         From Larry Jones <lawrence.jones@ugs.com>.
23083
23084 2005-09-02  Simon Josefsson  <jas@extundo.com>
23085
23086         * modules/socklen: New file.
23087
23088 2005-09-02  Simon Josefsson  <jas@extundo.com>
23089
23090         * modules/havelib: New module.
23091
23092         * modules/gettext, modules/iconv, modules/lock, modules/readline:
23093         Use havelib.
23094
23095 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
23096
23097         Check for arithmetic overflow when calculating sizes, to prevent
23098         some buffer-overflow issues.  These patches are conservative, in the
23099         sense that when I couldn't determine whether an overflow was possible,
23100         I inserted a run-time check.
23101         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
23102         macros.
23103         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
23104         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
23105         (re_xnrealloc, re_x2nrealloc): New inline functions.
23106         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
23107         parse_bracket_exp):
23108         (build_equiv_class, build_charclass): Check for arithmetic overflow
23109         in size expression calculations.
23110         * lib/regex_internal.c (re_string_realloc_buffers):
23111         (build_wcs_upper_buffer, re_node_set_add_intersect):
23112         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
23113         (re_dfa_add_node, register_state): Likewise.
23114         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
23115         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
23116         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
23117         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
23118
23119 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
23120
23121         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
23122         m4/ulonglong.m4.  Problem reported by Martin Lambers.
23123
23124 2005-09-02  Bruno Haible  <bruno@clisp.org>
23125
23126         Support for lib vs. lib64 distinction on biarch platforms.
23127         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
23128         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
23129         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
23130
23131 2005-09-02  Bruno Haible  <bruno@clisp.org>
23132
23133         * gnulib-tool (import): In the other first-use case, provide defaults
23134         as well.
23135
23136 2005-09-02  Bruno Haible  <bruno@clisp.org>
23137
23138         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
23139         patches not yet found in the latest gettext release.
23140
23141 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23142
23143         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
23144         to avoid a collision with bits/local_lim.h in glibc.
23145         All uses changed.  Problem reported by Dmitry V. Levin in
23146         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
23147
23148         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
23149         bugs in int versus size_t comparisons.
23150         (re_string_context_at): Fix bug where the code assumed that
23151         Idx is signed.
23152
23153         Use bool where appropriate.
23154         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
23155         All callers changed.
23156         (calc_eclosure_iter): Likewise, for ROOT arg.
23157         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
23158         (build_charclass_op): Likewise, for NON_MATCH arg.
23159         * lib/regex_internal.c (re_string_allocate, re_string_construct):
23160         (re_string_construct_common): Likewise, for ICASE arg.
23161         * lib/regexec.c (re_search_2_stub, re_search_stub):
23162         Likewise, for RET_LEN arg.
23163         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
23164         (set_regs): Likewise, for FL_BACKTRACK arg.
23165         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
23166         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
23167         (calc_eclosure_iter, parse_bracket_exp):
23168         Use bool for internal variables that are booleans.
23169         * lib/regexec.c (re_search_internal, check_matching,
23170         proceed_next_node):
23171         (set_regs, build_sifted_states, sift_states_bkref):
23172         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
23173         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
23174         (find_collation_sequence_value):
23175         Likewise.
23176         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
23177         (re_node_set_compare):
23178         Return bool, not int. All callers changed.
23179         * lib/regexec.c (check_halt_node_context, check_dst_limits):
23180         (build_trtable, check_node_accept): Likewise.
23181         * lib/regex_internal.h: Include stdbool.h.
23182
23183         Fix bugs uncovered when converting to bool.
23184         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
23185         failure instead of charging ahead blindly.
23186         * lib/regex_internal.c (register_state): Likewise.
23187         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
23188         for freeing internal storage.
23189         (group_nodes_into_DFA_states): Use unsigned int, not int, for
23190         bitset pieces used as boolean, to avoid undefined behavior
23191         on hosts that do int overflow checking.
23192
23193 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23194
23195         * config/srclist.txt: Add glibc bugs 1285-1287.
23196
23197 2005-09-01  Jim Meyering  <jim@meyering.net>
23198
23199         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
23200         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
23201         Require gl_STAT_MACROS, too.
23202
23203 2005-09-01  Bruno Haible  <bruno@clisp.org>
23204
23205         * gnulib-tool (import): In the first-use case, provide defaults.
23206
23207 2005-09-01  Bruno Haible  <bruno@clisp.org>
23208
23209         * gnulib-tool (func_import): Remove the .tmp files.
23210
23211 2005-09-01  Bruno Haible  <bruno@clisp.org>
23212
23213         * gnulib-tool (func_import): Fix handling of symbolic links.
23214
23215 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
23216
23217         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
23218         old glibc regex code mishandles strings longer than 2**31 bytes.
23219         This patch fixes this when the regex code is used in gnulib
23220         (i.e., outside glibc).
23221
23222         This patch should not affect the use of the regex code inside
23223         glibc.  No doubt this problem also needs to be handled for glibc
23224         as well, but the result will be an incompatible change to the
23225         glibc ABI, and the old ABI will have to be supported too.  That
23226         can be the the subject for another patch.
23227
23228         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
23229         governing whether the rest of this patch is active.  By default,
23230         the macro is disabled and the patch has no effect.
23231         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
23232         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
23233         (struct re_pattern_buffer, re_search, re_search_2, re_match):
23234         (re_match_2, re_set_registers): Use the new types.
23235         * lib/regex_internal.h (Idx, re_hashval_t): New types.
23236         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
23237         New macros.
23238         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
23239         (re_string_context_at, bin_tree_t, re_dfastate_t):
23240         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
23241         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
23242         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
23243         (re_string_char_size_at, re_string_wchar_at):
23244         (re_string_elem_size_at):
23245         Use the new types and macros to port to 64-bit hosts.
23246         Use unsigned types for internal values, so that the code
23247         mostly works even for arrays larger than SSIZE_MAX.
23248         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
23249         (search_duplicated_node, calc_eclosure_iter, fetch_number):
23250         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
23251         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
23252         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
23253         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
23254         (calc_inveclosure, parse_dup_op, build_range_exp):
23255         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
23256         (fetch_number, create_token_tree, mark_opt_subexp):
23257         Likewise.
23258         * lib/regex_internal.c (re_string_construct_common,
23259         create_ci_newstate):
23260         (create_cd_newstate, re_string_allocate, re_string_construct):
23261         (re_string_realloc_buffers, build_wcs_upper_buffer):
23262         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
23263         (re_string_reconstruct, re_string_peek_byte_case):
23264         (re_string_fetch_byte_case, re_string_context_at):
23265         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
23266         (re_node_set_init_copy, re_node_set_add_intersect):
23267         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
23268         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
23269         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
23270         (re_acquire_state, re_acquire_state_context, register_state):
23271         Likewise.
23272         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
23273         search_cur_bkref_entry):
23274         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
23275         (re_search_internal, re_search_2_stub, re_search_stub)
23276         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
23277         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
23278         (update_cur_sifted_state, check_dst_limits):
23279         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
23280         (check_subexp_limits, sift_states_bkref, merge_state_array):
23281         (check_subexp_matching_top, get_subexp, get_subexp_sub):
23282         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
23283         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
23284         (expand_bkref_cache, check_node_accept_bytes):
23285         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
23286         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
23287         (acquire_init_state_context, check_halt_node_context):
23288         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
23289         (sift_states_backward, clean_state_log_if_needed):
23290         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
23291         (find_recover_state, transit_state_sb, transit_state_mb):
23292         (transit_state_bkref, build_trtable, match_ctx_clean):
23293         Likewise.
23294         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
23295         to work around an assumption that REG_MISSING is negative.
23296
23297         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
23298         (seek_collating_symbol_entry) [defined _LIBC]:
23299         (lookup_collation_sequence_value) [defined _LIBC]:
23300         (build_range_exp, build_collating_symbol) [defined _LIBC]:
23301         Use prototypes rather than old-style function definitions.
23302         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
23303         (transit_state_sb) [0]:
23304         (find_collation_sequence_value) [defined _LIBC]: Likewise.
23305
23306         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
23307         rm_eo.
23308
23309         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
23310         (optimize_subexps, lower_subexp):
23311         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
23312         since the signed shift might overflow.  Use 1u<<31 instead.
23313         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
23314         Likewise.
23315         * lib/regexec.c (check_dst_limits_calc_pos_1,
23316         check_subexp_matching_top): Likewise.
23317
23318         * lib/regcomp.c (optimize_subexps, lower_subexp):
23319         Use CHAR_BIT rather than 8, for clarity.
23320         * lib/regexec.c (check_dst_limits_calc_pos_1):
23321         (check_subexp_matching_top): Likewise.
23322         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
23323         have to worry about portability issues when shifting it left.
23324         Remove no-longer-needed test for table_size > 0.
23325         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
23326         in a word, as the resulting behavior is undefined.
23327         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
23328         in one case, a <= should have been an <, and in another case the
23329         whole test was missing.
23330         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
23331         the standard name CHAR_BIT.
23332         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
23333         this is not true on one's complement and signed-magnitude hosts.
23334
23335         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
23336         next_last_offset.
23337         (struct re_dfa_t): Remove unused member states_alloc.
23338         * lib/regcomp.c (init_dfa): Don't initialize unused members.
23339
23340 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
23341
23342         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
23343         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
23344         and large-file glibc and in 32-bit large-file Solaris.
23345
23346 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
23347
23348         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
23349         lengths fit in regoff_t; this isn't true if regoff_t is the same
23350         width as size_t.
23351         * lib/regex.c (re_search_internal): 5th arg is LAST_START
23352         (= START + RANGE) instead of RANGE.  This avoids overflow
23353         problems when regoff_t is the same width as size_t.
23354         All callers changed.
23355         (re_search_2_stub): Check for overflow when adding the
23356         sizes of the two strings.
23357         (re_search_stub): Check for overflow when adding START
23358         to RANGE; if it occurs, substitute the extreme value.
23359
23360 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
23361
23362         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
23363
23364 2005-08-31  Jim Meyering  <jim@meyering.net>
23365
23366         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
23367         a pointer-to-const.
23368         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
23369         (register_state): Likewise.
23370         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
23371         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
23372         (group_nodes_into_DFAstates): Likewise.
23373
23374 2005-08-31  Jim Meyering  <jim@meyering.net>
23375
23376         * check-module: Add a FIXME comment.
23377
23378 2005-08-31  Eric Blake  <ebb9@byu.net>
23379
23380         * modules/unistd-safer (Files): Add unistd--.h.
23381         * modules/stdio-safer (Files): Add stdio--.h.
23382
23383 2005-08-31  Derek Price  <derek@ximbiot.com>
23384
23385         * lib/getdelim.c (getdelim): Return EOF on EOF.
23386         Reported by Larry Jones <lawrence.jones@ugs.com>.
23387
23388 2005-08-31  Bruno Haible  <bruno@clisp.org>
23389
23390         Avoid unnecessary diffs in the generated lib/Makefile.am.
23391         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
23392         the generated files.
23393         (func_import): Don't set cmd.
23394
23395 2005-08-31  Bruno Haible  <bruno@clisp.org>
23396
23397         * lib/strstr.c: Include <stddef.h>, for NULL.
23398         * lib/strcasestr.c: Likewise.
23399         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
23400
23401 2005-08-31  Bruno Haible  <bruno@clisp.org>
23402
23403         * gnulib-tool: New option --macro-prefix.
23404         (func_import): Use macro_prefix.
23405         (import): Handle option --macro-prefix.
23406
23407 2005-08-31  Bruno Haible  <bruno@clisp.org>
23408
23409         * gnulib-tool (import): Rename most ac_* variables to cached_*.
23410         Also use new variables cached_lgpl, cached_libtool.
23411
23412 2005-08-31  Bruno Haible  <bruno@clisp.org>
23413
23414         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
23415         always instantiating them.
23416
23417 2005-08-31  Bruno Haible  <bruno@clisp.org>
23418
23419         * gnulib-tool (func_import): Read the previous cached settings
23420         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
23421         earlier added by gnulib but are now dropped. Warn when a gnulib file
23422         overwrites a non-gnulib file.
23423
23424 2005-08-31  Bruno Haible  <bruno@clisp.org>
23425
23426         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
23427         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
23428         projects that don't keep autogenerated files in CVS. Put into
23429         actioncmd only the specified modules, not the transitive closure.
23430
23431 2005-08-31  Bruno Haible  <bruno@clisp.org>
23432
23433         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
23434         Create directories that shall be filled.
23435         (import): Don't look for gl_* macros in configure.ac. Recurse across
23436         all directories containing a gnulib-cache.m4 files, if meaningful.
23437
23438 2005-08-31  Bruno Haible  <bruno@clisp.org>
23439
23440         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
23441         (import): Set seen_libtool when we see gl_LIBTOOL.
23442
23443 2005-08-31  Bruno Haible  <bruno@clisp.org>
23444
23445         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
23446         declaration macro definitions from generated gnulib.m4.
23447
23448 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
23449
23450         * lib/iconvme.h: Add prototype for iconv_alloc.
23451
23452 2005-08-29  Simon Josefsson  <jas@extundo.com>
23453
23454         * lib/iconvme.c: Fix errno.
23455
23456 2005-08-29  Bruno Haible  <bruno@clisp.org>
23457
23458         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
23459         that it works when the directory contains spaces.
23460
23461 2005-08-29  Bruno Haible  <bruno@clisp.org>
23462
23463         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
23464
23465 2005-08-29  Bruno Haible  <bruno@clisp.org>
23466
23467         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
23468         Emit more advice.
23469
23470 2005-08-29  Bruno Haible  <bruno@clisp.org>
23471         and Stepan Kasal  <kasal@ucw.cz>
23472
23473         * check-module: If more parameters are given, check each of them
23474         separately; add more exceptions, as noted by Jim Meyering.
23475         (check_module): New procedure.
23476         (%exempt_header): Now contains all exceptions.
23477
23478 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
23479
23480         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
23481
23482 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
23483
23484         * lib/iconvme.c: Split iconv_string into iconv_alloc.
23485
23486 2005-08-28  Bruno Haible  <bruno@clisp.org>
23487
23488         * m4/gnulib-tool.m4: New file.
23489
23490 2005-08-27  Jim Meyering  <jim@meyering.net>
23491
23492         * modules/unistd-safer (Files): Add pipe-safer.c.
23493         * modules/fcntl-safer (Files): Add creat-safer.c.
23494
23495 2005-08-27  Jim Meyering  <jim@meyering.net>
23496
23497         * m4/stdlib-safer.m4: New file.  From coreutils.
23498         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
23499         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
23500         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
23501         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
23502         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
23503
23504 2005-08-27  Jim Meyering  <jim@meyering.net>
23505
23506         * lib/fopen-safer.c: Merge minor changes from coreutils.
23507         * lib/dup-safer.c: Likewise.
23508         * lib/fd-safer.c: Likewise.
23509
23510         Merge from coreutils.
23511         * lib/stdio--.h: New file.
23512         * lib/stdlib--.h: New file.
23513         * lib/mkstemp-safer.c: New file.
23514
23515         GNU tar needs these.
23516         * lib/pipe-safer.c: New file.
23517         * lib/creat-safer.c: New file.
23518         * lib/fcntl--.h (creat): Define to creat_safer.
23519         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
23520         * lib/unistd--.h (pipe): Define to pipe_safer.
23521         * lib/unistd-safer.h: Declare pipe_safer.
23522
23523 2005-08-26  Simon Josefsson  <jas@extundo.com>
23524
23525         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
23526         Haible <bruno@clisp.org>.
23527
23528 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
23529
23530         * lib/regex_internal.h: Remove all references to
23531         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
23532         or better.
23533         (bitset_not, bitset_merge, bitset_not_merge):
23534         (bitset_mask, re_string_allocate, re_string_construct):
23535         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
23536         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
23537         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
23538         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
23539         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
23540         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
23541         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
23542         (re_acquire_state_context):
23543         Remove unnecessary forward decls.
23544         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
23545         Put __attribute at function definition,
23546         now that the function decl has been removed.
23547         * lib/regex_internal.c (re_string_peek_byte_case):
23548         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
23549         Likewise.
23550
23551 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
23552
23553         * m4/regex.m4: Add AC_PREREQ(2.50).
23554         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
23555
23556 2005-08-25  Simon Josefsson  <jas@extundo.com>
23557
23558         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
23559         __fsetlocking.
23560
23561 2005-08-25  Simon Josefsson  <jas@extundo.com>
23562
23563         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
23564         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
23565         GLIBC specific code.
23566
23567 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
23568
23569         Make regex safe for g++.  This fixes one real bug (an "err"
23570         that should have been "*err").  g++ problem reported by
23571         Sam Steingold.
23572         * lib/regex_internal.h (re_calloc): New macro, consistent with
23573         re_malloc etc.  All callers of calloc changed to use re_calloc.
23574         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
23575         not int.  All callers changed.
23576         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
23577         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
23578         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
23579         (find_recover_state): Change "err" to "*err"; this fixes what
23580         appears to be a real bug.
23581         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
23582         versus int.
23583
23584 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
23585
23586         * modules/regex (Depends-on): Add malloc, since the code
23587         assumes that !malloc(0) means failure.
23588
23589 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
23590
23591         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
23592
23593         alloca modernization/simplification for regex.
23594         * lib/regex.c: Remove portability cruft for alloca.  This no longer
23595         needs to be at the start of the file, and can be moved into
23596         regex_internal.h and simplified.
23597         * lib/regex_internal.h: Include <alloca.h>.
23598         (__libc_use_alloca) [!defined _LIBC]: New macro.
23599         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
23600         now works outside glibc.
23601
23602 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
23603
23604         * config/srclist.txt: Add glibc bugs 1241, 1245.
23605
23606 2005-08-25  Jim Meyering  <jim@meyering.net>
23607
23608         * lib/open-safer.c: Include <config.h>.
23609         Otherwise, we'd lose LARGEFILE support in any file using
23610         e.g. "fcntl--.h"
23611
23612 2005-08-25  Bruno Haible  <bruno@clisp.org>
23613
23614         * m4/minmax.m4: Require autoconf 2.52.
23615         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
23616         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
23617         alternatives of translit over the alphabet.
23618         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
23619
23620 2005-08-24  Simon Josefsson  <jas@extundo.com>
23621
23622         * tests/test-getpass.c: New file.
23623
23624 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23625
23626         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
23627         for GNU regex features.
23628
23629 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23630
23631         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
23632         * lib/regex.h (regerror): Likewise.
23633
23634         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
23635         requires this.  (The code never needed it.)
23636
23637         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
23638         All uses of recently-renamed identifiers changed to use the new,
23639         POSIX-compliant names.  The code will build and run just fine
23640         without these changes, but it's better to eat our own dog food
23641         and use the standard-conforming names.
23642
23643         * lib/regex.h: Fix a multitude of POSIX name space violations.
23644         These changes have an effect only for programs that define
23645         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
23646         do not change anything for programs compiled in the normal way.
23647         Also, there is no effect on the ABI.
23648
23649         (_REGEX_SOURCE): New macro.
23650         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
23651         defined and _GNU_SOURCE is not; this fixes a name space violation.
23652
23653         Rename the following macros to obey POSIX requirements.
23654         The old names are still visible as macros if _REGEX_SOURCE is defined.
23655         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
23656         RE_BACKSLASH_ESCAPE_IN_LISTS.
23657         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
23658         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
23659         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
23660         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
23661         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
23662         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
23663         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
23664         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
23665         (REG_INTERVALS): renamed from RE_INTERVALS.
23666         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
23667         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
23668         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
23669         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
23670         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
23671         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
23672         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
23673         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
23674         RE_UNMATCHED_RIGHT_PAREN_ORD.
23675         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
23676         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
23677         (REG_DEBUG): renamed from RE_DEBUG.
23678         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
23679         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
23680         unusual, since we can't clash with the POSIX REG_ICASE.
23681         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
23682         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
23683         (REG_NO_SUB): renamed from RE_NO_SUB.
23684         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
23685         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
23686         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
23687         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
23688         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
23689         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
23690         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
23691         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
23692         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
23693         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
23694         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
23695         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
23696         RE_SYNTAX_POSIX_MINIMAL_BASIC.
23697         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
23698         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
23699         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
23700         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
23701         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
23702         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
23703         (REG_FIXED): Renamed from REGS_FIXED.
23704         (REG_NREGS): Renamed from RE_NREGS.
23705
23706         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
23707         of other REG_* macros, since POSIX says the user is allowed to
23708         #undef these macros selectively.
23709
23710         (reg_errcode_t): Update comment stating what other tables need
23711         to be consistent.
23712
23713         Rename the following enum values to obey POSIX requirements.
23714         The old names are still visible as macros.
23715         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
23716         is not defined, since GNU is supposed to be a superset of POSIX as
23717         much as possible, and since we want reg_errcode_t to be a signed
23718         type for implementation consistency.
23719         (_REG_NOERROR): Renamed from REG_NOERROR.
23720         (_REG_NOMATCH): Renamed from REG_NOMATCH.
23721         (_REG_BADPAT): Renamed from REG_BADPAT.
23722         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
23723         (_REG_ECTYPE): Renamed from REG_ECTYPE.
23724         (_REG_EESCAPE): Renamed from REG_EESCAPE.
23725         (_REG_ESUBREG): Renamed from REG_ESUBREG.
23726         (_REG_EBRACK): Renamed from REG_EBRACK.
23727         (_REG_EPAREN): Renamed from REG_EPAREN.
23728         (_REG_EBRACE): Renamed from REG_EBRACE.
23729         (_REG_BADBR): Renamed from REG_BADBR.
23730         (_REG_ERANGE): Renamed from REG_ERANGE.
23731         (_REG_ESPACE): Renamed from REG_ESPACE.
23732         (_REG_BADRPT): Renamed from REG_BADRPT.
23733         (_REG_EEND): Renamed from REG_EEND.
23734         (_REG_ESIZE): Renamed from REG_ESIZE.
23735         (_REG_ERPAREN): Renamed from REG_ERPAREN.
23736         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
23737         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
23738         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
23739         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
23740
23741         (_REG_RE_NAME, _REG_RM_NAME): New macros.
23742         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
23743         changed.  But support the old name if the new one is not defined
23744         and if _REGEX_SOURCE.
23745
23746         Change the following member names in struct re_pattern_buffer.
23747         The old names are still supported if !_REGEX_SOURCE.
23748         The new names are always supported, regardless of _REGEX_SOURCE.
23749         (re_buffer): Renamed from buffer.
23750         (re_allocated): Renamed from allocated.
23751         (re_used): Renamed from used.
23752         (re_syntax): Renamed from syntax.
23753         (re_fastmap): Renamed from fastmap.
23754         (re_translate): Renamed from translate.
23755         (re_can_be_null): Renamed from can_be_null.
23756         (re_regs_allocated): Renamed from regs_allocated.
23757         (re_fastmap_accurate): Renamed from fastmap_accurate.
23758         (re_no_sub): Renamed from no_sub.
23759         (re_not_bol): Renamed from not_bol.
23760         (re_not_eol): Renamed from not_eol.
23761         (re_newline_anchor): Renamed from newline_anchor.
23762
23763         Change the following member names in struct re_registers.
23764         The old names are still supported if !_REGEX_SOURCE.
23765         The new names are always supported, regardless of _REGEX_SOURCE.
23766         (rm_num_regs): Renamed from num_regs.
23767         (rm_start): Renamed from start.
23768         (rm_end): Renamed from end.
23769
23770         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
23771         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
23772         Prepend __ to parameter names.
23773
23774         Undo yesterday's changes.
23775
23776 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23777
23778         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
23779         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
23780         lib/regex.c.
23781
23782 2005-08-24  Jim Meyering  <jim@meyering.net>
23783
23784         Sync from coreutils.
23785         * m4/fcntl-safer.m4: New file.
23786
23787         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
23788         and object files for this module.
23789
23790 2005-08-24  Jim Meyering  <jim@meyering.net>
23791
23792         Sync from coreutils.
23793         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
23794
23795 2005-08-24  Jim Meyering  <jim@meyering.net>
23796
23797         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
23798         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
23799
23800 2005-08-24  Jim Meyering  <jim@meyering.net>
23801
23802         * modules/fcntl-safer: New module.
23803         * modules/fts (Depends-on): Add fcntl-safer.
23804         * MODULES.html.sh (File descriptor based Input/Output):
23805         Add fcntl-safer.
23806
23807 2005-08-24  Bruno Haible  <bruno@clisp.org>
23808
23809         Support for unit test modules.
23810         * modules/README: Mention tests modules.
23811         * modules/TEMPLATE-TESTS: New file.
23812         * gnulib-tool: New options --extract-tests-module, --with-tests and
23813         --tests-base (unused for the moment).
23814         (testsbase, inctests): New variables.
23815         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
23816         (func_verify_module): Exclude TEMPLATE-TESTS.
23817         (func_verify_nontests_module, func_verify_tests_module): New functions.
23818         (func_get_dependencies): Add implicit dependency for tests modules.
23819         (func_get_tests_module): New function.
23820         (func_modules_transitive_closure): When --with-tests was specified,
23821         include the unit tests as well, unless explicitly avoided.
23822         (func_emit_lib_Makefile_am): Ignore the tests modules here.
23823         (func_emit_tests_Makefile_am): New function.
23824         (func_create_testdir): When --with-tests was specified, emit a
23825         tests/ directory.
23826         * MODULES.html.sh (Future developments): Update.
23827
23828 2005-08-24  Bruno Haible  <bruno@clisp.org>
23829
23830         * modules/tls-tests: New file.
23831         * tests/test-tls.c: New file, from GNU gettext.
23832
23833 2005-08-24  Bruno Haible  <bruno@clisp.org>
23834
23835         * modules/lock-tests: New file.
23836         * tests/test-lock.c: New file, from GNU gettext.
23837
23838 2005-08-24  Bruno Haible  <bruno@clisp.org>
23839
23840         * lib/lock.h: Add multiple inclusion guard.
23841         * lib/tls.h: Add multiple inclusion guard.
23842
23843 2005-08-24  Bruno Haible  <bruno@clisp.org>
23844
23845         * gnulib-tool: Add support for the --aux-dir option to
23846         --create-testdir, --create-megatestdir, --test, --megatest.
23847         (func_create_testdir, func_create_megatestdir): Optionally emit a
23848         AC_CONFIG_AUX_DIR directive.
23849         (create-testdir, create-megatestdir, test, megatest): Provide a
23850         default value for $auxdir.
23851
23852 2005-08-24  Bruno Haible  <bruno@clisp.org>
23853
23854         * gnulib-tool (import): Use compound statement instead of subshell
23855         where possible.
23856
23857 2005-08-24  Bruno Haible  <bruno@clisp.org>
23858
23859         * gnulib-tool (import): Change --aux-dir default to "build-aux".
23860
23861 2005-08-24  Bruno Haible  <bruno@clisp.org>
23862
23863         * gnulib-tool (func_version): Update.
23864
23865 2005-08-24  Bruno Haible  <bruno@clisp.org>
23866
23867         * gnulib-tool (func_import, func_create_testdir,
23868         func_create_megatestdir): Quote all autoconf macro arguments.
23869
23870 2005-08-24  Bruno Haible  <bruno@clisp.org>
23871
23872         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
23873         option --force, because --force causes the aclocal.m4 of each
23874         subdirectory to be newer than the corresponding config.h.in.
23875
23876 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
23877
23878         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
23879         All contents moved to gl_REGEX.
23880         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
23881         assume that it does.
23882
23883 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
23884
23885         * lib/regex.h (REG_NOSYS)
23886         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
23887         Define, since POSIX requires it as of 2001.
23888         (_REG_ENOSYS)
23889         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
23890         New private symbol, used to keep the enum signed in all cases.
23891         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
23892         Youngman in
23893         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
23894
23895         * lib/regex_internal.c (re_string_skip_chars, register_state):
23896         (calc_state_hash):
23897         Remove forward decls; no longer needed now that we use prototypes.
23898         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
23899         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
23900         (clean_state_log_if_needed): Likewise.
23901
23902 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
23903
23904         * config/srclist.txt: Add glibc bugs 1231-1233.
23905
23906 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
23907
23908         Fix problems reported by Sam Steingold in
23909         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
23910         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
23911         assumed that reg_errcode_t is a signed type, which is not
23912         necessarily true if _XOPEN_SOURCE is not defined.
23913         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
23914         since some compilers warn about it otherwise.
23915
23916 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
23917
23918         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
23919         (init_word_char, create_initial_state, duplicate_node_closure):
23920         (fetch_token, peek_token_bracket, build_range_exp):
23921         (build_collating_symbol): Remove forward decls; no longer needed
23922         now that we use prototypes.
23923
23924         * lib/regcomp.c:
23925         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
23926         (re_compile_fastmap_iter, regcomp, regerror, regfree):
23927         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
23928         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
23929         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
23930         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
23931         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
23932         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
23933         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
23934         (build_range_exp, build_collating_symbol, parse_bracket_exp):
23935         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
23936         (build_charclass, build_charclass_op, fetch_number, create_tree):
23937         (create_token_tree, mark_opt_subexp, duplicate_tree):
23938         Use prototypes rather than old-style definitions.
23939
23940         * lib/regex_internal.c:
23941         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
23942         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
23943         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
23944         (re_string_reconstruct, re_string_peek_byte_case):
23945         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
23946         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
23947         (re_node_set_init_copy, re_node_set_add_intersect):
23948         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
23949         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
23950         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
23951         (re_acquire_state, re_acquire_state_context, register_state):
23952         (create_ci_newstate, create_cd_newstate, free_state):
23953         Likewise.
23954         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
23955         re_search_2):
23956         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
23957         (re_search_internal, prune_impossible_nodes):
23958         (acquire_init_state_context, check_matching, static):
23959         (check_halt_node_context, check_halt_state_context, proceed_next_node):
23960         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
23961         (update_regs, sift_states_backward, build_sifted_states):
23962         (clean_state_log_if_needed, merge_state_array):
23963         (update_cur_sifted_state, add_epsilon_src_nodes):
23964         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
23965         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
23966         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
23967         (find_recover_state, check_subexp_matching_top, transit_state_mb):
23968         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
23969         (check_arrival, check_arrival_add_next_nodes):
23970         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
23971         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
23972         (check_node_accept_bytes, check_node_accept, extend_buffers):
23973         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
23974         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
23975         (sift_ctx_init):
23976         Likewise.
23977
23978         * lib/regex_internal.h:
23979         (re_string_allocate, re_string_construct, re_string_reconstruct):
23980         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
23981         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
23982         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
23983         (re_string_context_at, re_string_peek_byte_case):
23984         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
23985         is defined, since we now use prototypes always.
23986
23987         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
23988         C89 or better.  All uses removed.
23989
23990 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
23991
23992         * config/srclist.txt: Add glibc bugs 1220-1227.
23993
23994 2005-08-20  Jim Meyering  <jim@meyering.net>
23995
23996         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
23997         of unused local, dfa.
23998
23999 2005-08-20  Bruno Haible  <bruno@clisp.org>
24000
24001         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
24002
24003 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
24004
24005         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
24006         (re_node_set_insert_last, re_dfa_add_node):
24007         Rename local variables to avoid GCC shadowing warnings.
24008
24009 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
24010
24011         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
24012         [defined lint]: Suppress bogus uninitialized-variable warnings.
24013
24014         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
24015         and let the caller return REG_ESPACE if out of space.  This
24016         removes an uninitialied-variable warning with GCC 4.0.1, and also
24017         avoids taking the address of a local variable.  All callers
24018         changed.
24019
24020 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
24021
24022         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
24023         $LIBCSRC/posix/regexec.c.
24024         Add glibc bug 1217 for regcomp.c.
24025
24026 2005-08-19  Jim Meyering  <jim@meyering.net>
24027
24028         * lib/regexec.c (proceed_next_node): Redo local variables to
24029         avoid GCC shadowing warnings.
24030
24031 2005-08-18  Bruno Haible  <bruno@clisp.org>
24032
24033         * lib/strstr.c (strstr): Fix return value in multibyte case.
24034         * lib/strcasestr.c (strcasestr): Likewise.
24035
24036 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24037
24038         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
24039
24040 2005-08-17  Jim Meyering  <jim@meyering.net>
24041
24042         Make the %s format (seconds since the epoch) work for a negative
24043         number and when used with a zero-padded field width, e.g. %015s.
24044
24045         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
24046         label so that it precedes the code to set `digits'.  Otherwise,
24047         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
24048         print `00-22'.  Now, it prints `-0022', as it should.
24049
24050 2005-08-17  Bruno Haible  <bruno@clisp.org>
24051
24052         * modules/strstr (Files): Add m4/mbrtowc.m4.
24053         (Depends-on): Add mbuiter.
24054
24055 2005-08-17  Bruno Haible  <bruno@clisp.org>
24056
24057         * modules/strcasestr: New file.
24058         * MODULES.html.sh (String handling, based on ANSI C 89): Add
24059         strcasestr.
24060
24061 2005-08-17  Bruno Haible  <bruno@clisp.org>
24062
24063         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
24064
24065 2005-08-17  Bruno Haible  <bruno@clisp.org>
24066
24067         * modules/mbuiter: New file.
24068         * MODULES.html.sh (Extended multibyte and wide character utilities):
24069         Add mbuiter.
24070
24071 2005-08-17  Bruno Haible  <bruno@clisp.org>
24072
24073         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
24074         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
24075
24076 2005-08-17  Bruno Haible  <bruno@clisp.org>
24077
24078         * m4/strcasestr.m4: New file.
24079
24080 2005-08-17  Bruno Haible  <bruno@clisp.org>
24081
24082         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
24083         * lib/strstr.c: Completely rewritten, with multibyte locale support.
24084
24085 2005-08-17  Bruno Haible  <bruno@clisp.org>
24086
24087         * lib/strcasestr.h: New file.
24088         * lib/strcasestr.c: New file.
24089
24090 2005-08-17  Bruno Haible  <bruno@clisp.org>
24091
24092         * lib/strcasecmp.c: Use mbuiter.h.
24093
24094 2005-08-17  Bruno Haible  <bruno@clisp.org>
24095
24096         * lib/mbuiter.h: New file.
24097
24098 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
24099
24100         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
24101         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
24102         and gl_GETOPT are both invoked via different paths (as happens
24103         with GNU tar CVS because it uses both argp and getopt), the former
24104         wins.
24105
24106 2005-08-16  Bruno Haible  <bruno@clisp.org>
24107
24108         * modules/tls: New file.
24109         * MODULES.html.sh (Multithreading): Add tls.
24110
24111 2005-08-16  Bruno Haible  <bruno@clisp.org>
24112
24113         * modules/strnlen1: New file.
24114         * MODULES.html.sh (String handling): Add strnlen1.
24115
24116 2005-08-16  Bruno Haible  <bruno@clisp.org>
24117
24118         * modules/strcase (Files): Add m4/mbrtowc.m4.
24119         (Depends-on): Add strnlen1, mbchar.
24120
24121 2005-08-16  Bruno Haible  <bruno@clisp.org>
24122
24123         * modules/mbiter: New file.
24124         * MODULES.html.sh (Extended multibyte and wide character utilities):
24125         Add mbiter.
24126
24127 2005-08-16  Bruno Haible  <bruno@clisp.org>
24128
24129         * modules/mbfile: New file.
24130         * MODULES.html.sh (Extended multibyte and wide character utilities):
24131         Add mbfile.
24132
24133 2005-08-16  Bruno Haible  <bruno@clisp.org>
24134
24135         * modules/mbchar: New file.
24136         * MODULES.html.sh (Extended multibyte and wide character utilities):
24137         New section.
24138
24139 2005-08-16  Bruno Haible  <bruno@clisp.org>
24140
24141         * m4/tls.m4: New file, from GNU gettext.
24142
24143 2005-08-16  Bruno Haible  <bruno@clisp.org>
24144
24145         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
24146         always.
24147         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
24148
24149 2005-08-16  Bruno Haible  <bruno@clisp.org>
24150
24151         * m4/mbiter.m4: New file.
24152
24153 2005-08-16  Bruno Haible  <bruno@clisp.org>
24154
24155         * m4/mbfile.m4: New file.
24156
24157 2005-08-16  Bruno Haible  <bruno@clisp.org>
24158
24159         * m4/mbchar.m4: New file.
24160
24161 2005-08-16  Bruno Haible  <bruno@clisp.org>
24162
24163         * lib/tls.h: New file, from GNU gettext.
24164         * lib/tls.c: New file, from GNU gettext.
24165
24166 2005-08-16  Bruno Haible  <bruno@clisp.org>
24167
24168         * lib/strnlen1.h: New file.
24169         * lib/strnlen1.c: New file.
24170
24171 2005-08-16  Bruno Haible  <bruno@clisp.org>
24172
24173         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
24174         (mbi_init): Update.
24175         (mbi_avail, mbi_advance): Let the iteration end before the terminating
24176         NUL byte, not after it.
24177
24178 2005-08-16  Bruno Haible  <bruno@clisp.org>
24179
24180         * lib/strcase.h (strcasecmp): Add note in comments.
24181         * lib/strncasecmp.c: Use code from strcasecmp.c.
24182         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
24183         (strcasecmp): Work correctly in multibyte locales.
24184
24185 2005-08-16  Bruno Haible  <bruno@clisp.org>
24186
24187         * lib/mbiter.h: New file.
24188
24189 2005-08-16  Bruno Haible  <bruno@clisp.org>
24190
24191         * lib/mbfile.h: New file.
24192
24193 2005-08-16  Bruno Haible  <bruno@clisp.org>
24194
24195         * lib/mbchar.h: New file.
24196         * lib/mbchar.c: New file.
24197
24198 2005-08-16  Bruno Haible  <bruno@clisp.org>
24199
24200         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
24201         the valid ones. Makes the comparison operations transitive:
24202         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
24203         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
24204
24205 2005-08-15  Simon Josefsson  <jas@extundo.com>
24206
24207         * modules/ssize_t (License): Change to 'unlimited'.
24208
24209         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
24210
24211 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
24212
24213         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
24214         Add comments for each pending glibc patch.
24215
24216 2005-08-15  Bruno Haible  <bruno@clisp.org>
24217
24218         * lib/regex.h (__restrict_arr): Don't define to __restrict if
24219         __cplusplus is defined.
24220
24221 2005-08-14  Jim Meyering  <jim@meyering.net>
24222
24223         Sync from coreutils.
24224
24225         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
24226         Use the hash-table-based cycle-detection code not just when
24227         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
24228         Reported by James Youngman in
24229         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
24230         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
24231         FTS_TIGHT_CYCLE_CHECK.
24232         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
24233         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
24234         once again.
24235         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
24236         * lib/fts.c (fd_safer): Remove decl.
24237         Include fcntl--.h rather than unistd-safer.h
24238         (fts_safe_changedir): Don't call fd_safer; no longer needed
24239         now that we include fcntl--.h.
24240
24241 2005-08-12  Simon Josefsson  <jas@extundo.com>
24242
24243         * modules/getndelim2: Use ssize_t module.
24244         * modules/getnline: Likewise.
24245         * modules/safe-read: Likewise.
24246         * modules/xreadlink: Likewise.
24247
24248         * modules/ssize_t: New file.
24249
24250 2005-08-12  Simon Josefsson  <jas@extundo.com>
24251
24252         * m4/readline.m4: Look for termcap, curses or ncurses if required.
24253
24254 2005-08-12  Simon Josefsson  <jas@extundo.com>
24255
24256         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24257         ssize_t.
24258
24259 2005-08-12  Simon Josefsson  <jas@extundo.com>
24260
24261         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
24262         readline, getdelim and check_version.
24263         (Support for systems lacking ISO C 99: Sizes of integer types):
24264         Add size_max.
24265
24266 2005-08-12  Bruno Haible  <bruno@clisp.org>
24267
24268         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
24269
24270 2005-08-11  Simon Josefsson  <jas@extundo.com>
24271
24272         * modules/readline: New file.
24273
24274         * modules/strnlen (Files): Add strnlen.h.
24275
24276 2005-08-11  Simon Josefsson  <jas@extundo.com>
24277
24278         * m4/readline.m4: New file.
24279
24280 2005-08-11  Simon Josefsson  <jas@extundo.com>
24281
24282         * lib/readline.h, readline.c: New file.
24283
24284 2005-08-11  Simon Josefsson  <jas@extundo.com>
24285
24286         * doc/gnulib.texi (Initial import, Finishing touches): Mention
24287         gl_AVOID.
24288
24289 2005-08-11  Bruno Haible  <bruno@clisp.org>
24290
24291         * lib/strnlen.h (strnlen): Change parameter name to match comment.
24292
24293 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
24294
24295         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
24296
24297 2005-08-10  Simon Josefsson  <jas@extundo.com>
24298
24299         * tests/test-iconvme.c: New file.
24300
24301 2005-08-10  Simon Josefsson  <jas@extundo.com>
24302
24303         * m4/strnlen.m4: New file.
24304
24305         * m4/strndup.m4: Don't check for strnlen declaration, done in
24306         strnlen.m4.
24307
24308 2005-08-10  Simon Josefsson  <jas@extundo.com>
24309
24310         * lib/strndup.c: Use strnlen.h.
24311
24312         * lib/strnlen.h: New file.
24313
24314 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
24315
24316         * README: Typos.
24317
24318 2005-08-02  Simon Josefsson  <jas@extundo.com>
24319
24320         * modules/readline: New file.
24321
24322 2005-08-02  Simon Josefsson  <jas@extundo.com>
24323
24324         * modules/getdelim: New file.
24325
24326         * modules/getline: Rewrite, don't use getndelim2.
24327
24328 2005-08-02  Simon Josefsson  <jas@extundo.com>
24329
24330         * m4/getline.m4: Separate out getdelim stuff into separate module.
24331
24332         * m4/getdelim.m4: New file.
24333
24334 2005-08-02  Simon Josefsson  <jas@extundo.com>
24335
24336         * lib/getline.h, getline.c: Rewrite.
24337
24338         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
24339
24340 2005-07-31  Bruno Haible  <bruno@clisp.org>
24341
24342         * lib/lock.h (gl_lock_initializer): New macro.
24343         (gl_lock_define_initialized): Use it.
24344         (gl_rwlock_initializer): New macro.
24345         (gl_rwlock_define_initialized): Use it.
24346         (gl_recursive_lock_initializer): New macro.
24347         (gl_recursive_lock_define_initialized): Use it.
24348
24349 2005-07-30  Karl Berry  <karl@gnu.org>
24350
24351         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
24352         Report from Ben Pfaff, regarding getopt.
24353
24354 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
24355
24356         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
24357         normal way.
24358         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
24359         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
24360         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
24361         (gl_GETOPT): Use the new macros.  Most of the implementation
24362         is moved to the new macros.  This is for programs like Emacs
24363         that don't want all the functionality of gl_GETOPT.
24364
24365 2005-07-26  Bruno Haible  <bruno@clisp.org>
24366
24367         * m4/lock.m4: Update from GNU gettext.
24368
24369 2005-07-26  Bruno Haible  <bruno@clisp.org>
24370
24371         * lib/lock.h: Update from GNU gettext.
24372         * lib/lock.c: Update from GNU gettext.
24373
24374 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
24375
24376         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
24377         obsolescent AC_TRY_RUN.  Include the default includes files, for
24378         'exit'.
24379
24380 2005-07-24  Bruno Haible  <bruno@clisp.org>
24381
24382         * modules/visibility: New file.
24383         * MODULES.html.sh (Misc): Add visibility.
24384
24385 2005-07-24  Bruno Haible  <bruno@clisp.org>
24386
24387         * m4/visibility.m4: New file.
24388
24389 2005-07-24  Bruno Haible  <bruno@clisp.org>
24390
24391         * doc/visibility.texi: New file.
24392
24393 2005-07-22  Bruno Haible  <bruno@clisp.org>
24394
24395         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
24396         $(ALLOCA_H), redundant through BUILT_SOURCES.
24397         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
24398         redundant through BUILT_SOURCES.
24399         * modules/byteswap (Makefile.am): Remove explicit dependency on
24400         $(BYTESWAP_H), redundant through BUILT_SOURCES.
24401         * modules/fnmatch (Makefile.am): Remove explicit dependency on
24402         $(FNMATCH_H), redundant through BUILT_SOURCES.
24403         * modules/getopt (Makefile.am): Remove explicit dependency on
24404         $(GETOPT_H), redundant through BUILT_SOURCES.
24405         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
24406         redundant through BUILT_SOURCES.
24407         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
24408         redundant through BUILT_SOURCES.
24409         * modules/stdbool (Makefile.am): Remove explicit dependency on
24410         $(STDBOOL_H), redundant through BUILT_SOURCES.
24411         * modules/stdint (Makefile.am): Remove explicit dependency on
24412         $(STDINT_H), redundant through BUILT_SOURCES.
24413         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
24414         Remove explicit dependency on $(SYSEXITS_H).
24415         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
24416
24417 2005-07-18  Simon Josefsson  <jas@extundo.com>
24418
24419         * lib/check-version.c (check_version): Accept identical versions too.
24420
24421 2005-07-18  Bruno Haible  <bruno@clisp.org>
24422
24423         * modules/lock: New file.
24424         * MODULES.html.sh (Multithreading): New section.
24425
24426 2005-07-18  Bruno Haible  <bruno@clisp.org>
24427
24428         * m4/lock.m4: New file, from GNU gettext.
24429
24430 2005-07-18  Bruno Haible  <bruno@clisp.org>
24431
24432         * lib/lock.h: New file, from GNU gettext.
24433         * lib/lock.c: New file, from GNU gettext.
24434
24435 2005-07-18  Bruno Haible  <bruno@clisp.org>
24436
24437         * lib/lock.h (gl_once_t): New type.
24438         (gl_once_define, gl_once): New macros.
24439         * lib/lock.c (fresh_once): New variable.
24440         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
24441         functions.
24442
24443 2005-07-16  Simon Josefsson  <jas@extundo.com>
24444
24445         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
24446         workaround, suggested by Bruno.
24447
24448 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
24449
24450         * modules/xalloc (Depends-on): Add xalloc-die.
24451         * modules/xvasprintf (Depends-on): Add xalloc-die.
24452
24453 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
24454
24455         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
24456         with a minor change.
24457
24458 2005-07-15  Bruno Haible  <bruno@clisp.org>
24459
24460         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
24461         When using lib/poll.c, define poll as rpl_poll.
24462
24463 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
24464
24465         * modules/argp (Depends-on): Remove unlocked-io.
24466
24467 2005-07-14  Derek Price  <derek@ximbiot.com>
24468
24469         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
24470         for glob symlink bug.
24471
24472 2005-07-14  Bruno Haible  <bruno@clisp.org>
24473
24474         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
24475         Instead, test for *_unlocked function declarations directly.
24476
24477 2005-07-11  Simon Josefsson  <jas@extundo.com>
24478
24479         * modules/size_max: New file.
24480
24481         * modules/xsize: Depend on size_max module for size_max.m4.
24482
24483 2005-07-11  Simon Josefsson  <jas@extundo.com>
24484
24485         * lib/size_max.h: New file.
24486
24487 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
24488
24489         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
24490         copyright symbol and the year.
24491         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
24492         (version_etc_va): Use parameterized copyright notice.
24493         Reword to conform to the current GNU coding standards.
24494
24495 2005-07-11  Karl Berry  <karl@gnu.org>
24496
24497         * doc/gnulib.texi (Quoting): new node.
24498         (Initial import): more info, from Patrice.
24499
24500 2005-07-11  Bruno Haible  <bruno@clisp.org>
24501
24502         * gnulib-tool (func_usage): Document option --avoid.
24503         (Command line options): Handle --avoid.
24504         (func_acceptable): New function.
24505         (func_modules_transitive_closure): Use it.
24506
24507 2005-07-11  Bruno Haible  <bruno@clisp.org>
24508
24509         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
24510         Reported by Jim Meyering.
24511
24512 2005-07-10  Bruno Haible  <bruno@clisp.org>
24513
24514         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
24515         Needed when size_t is smaller than 'unsigned int'.
24516         Reported by Paul Eggert.
24517
24518 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
24519
24520         * modules/argp (Depends-on): Add unlocked-io
24521
24522 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
24523
24524         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
24525         block of defines.
24526
24527 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
24528
24529         * config/srclist.txt: Comment out regcomp.c, since we have a porting
24530         fix now.
24531
24532 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
24533         and Paul Eggert  <eggert@cs.ucla.edu>
24534
24535         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
24536         in wint_t, not wchar_t.  Remove now-unnecessary cast.
24537
24538 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
24539
24540         * modules/regex (Files): Add lib/regex_internal.c,
24541         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
24542         (Depends-on): Add extensions.
24543         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
24544
24545 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
24546
24547         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
24548         pathconf.
24549         * m4/same.m4 (gl_SAME): Likewise.
24550         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
24551
24552         * m4/regex.m4: Adjust to new libc regex implementation.
24553         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
24554         all the .c and .h parts of (the new) regex.
24555         Quote the m4 stuff better.
24556         Check for RE_ICASE bug of old gnulib.
24557         Check for REG_STARTEND of recent libc.
24558         Rename local variables from jm_* to gl_*.
24559         Quote operand of "test -f".
24560         Say "recent enough" version of libc, not "version 2".
24561         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
24562         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
24563         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
24564         Remove check for btowc, isascii.
24565         Require AM_LANGINFO_CODESET.
24566
24567 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
24568
24569         * lib/regex.c, regex.h: Sync from libc.
24570         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
24571         * lib/regexec.c:
24572         New files, synced from libc, except that regex_internal.h
24573         currently has a small porting fix.
24574
24575 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
24576
24577         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
24578         regex_internal.c, regexec.c.
24579         Add regex_internal.h too, but as a comment, since the libc version
24580         is currently broken in gnulib mode.
24581
24582 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
24583
24584         Support programs like Emacs that use gnulib but not gettext.
24585         * MODULES.html.sh (Internationalization functions): Add gettext-h.
24586         * modules/gettext-h: New file.
24587         * modules/gettext (Files): Remove lib/gettext.h.
24588         (Depends-on): Add gettext-h.
24589         (Makefile.am): Remove lib_SOURCES.
24590         * modules/argmatch, modules/c-stack, modules/closeout:
24591         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
24592         * modules/execute, modules/file-type, modules/getaddrinfo:
24593         * modules/getopt, modules/human, modules/javacomp:
24594         * modules/javaexec, modules/mkdir-p, modules/obstack:
24595         * modules/openat, modules/pagealign_alloc, modules/pipe:
24596         * modules/quotearg, modules/regex, modules/rpmatch:
24597         * modules/unicodeio, modules/userspec, modules/version-etc:
24598         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
24599         * modules/xsetenv:
24600         Depend on gettext-h, not gettext.
24601
24602 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
24603
24604         * gnulib-tool (func_import): Add support for 'public domain' license.
24605         * modules/alloca, modules/atexit, modules/memmove:
24606         Now public domain, not GPL.
24607         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
24608         * modules/realloc, modules/strerror, modules/strtod:
24609         Now LGPL, not GPL.
24610
24611 2005-07-05  Bruno Haible  <bruno@clisp.org>
24612
24613         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
24614         autoconf CVS. Needed for mingw.
24615
24616 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24617
24618         Remove the dependency of the strftime module on the tzset module.
24619         * modules/strftime (Depends-on): Remove dependency on tzset.
24620
24621 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24622
24623         Remove the dependency of the strftime module on the tzset module.
24624         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
24625         gl_FUNC_TZSET_CLOBBER.
24626
24627 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24628
24629         Remove the dependency of the strftime module on the tzset module.
24630         * lib/strftime.c (my_strftime)
24631         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
24632         Copy the input structure, to work around some of the bug with
24633         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
24634         Solaris releases, you should also use the tzset module, but we won't
24635         require it as a dependency any more since we don't want LGPLed code
24636         to depend on GPLed code.
24637
24638 2005-07-02  Jim Meyering  <jim@meyering.net>
24639
24640         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
24641         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
24642         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
24643         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
24644
24645 2005-07-02  Jim Meyering  <jim@meyering.net>
24646
24647         * lib/backupfile.c (backup_args): Change a `0' to NULL.
24648
24649 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
24650
24651         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
24652         declares only 'struct timespec;' (!).
24653
24654 2005-07-01  Jim Meyering  <jim@meyering.net>
24655
24656         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
24657         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
24658         * lib/save-cwd.c, tempname.c:
24659         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
24660         and don't include <sys/file.h>).
24661
24662 2005-06-29  Jim Meyering  <jim@meyering.net>
24663
24664         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
24665         type name.  Use the variable name instead.
24666         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
24667         Likewise.
24668
24669 2005-06-28  Simon Josefsson  <jas@extundo.com>
24670
24671         * modules/check-version (Files): Add check-version.m4.
24672
24673 2005-06-28  Simon Josefsson  <jas@extundo.com>
24674
24675         * m4/check-version.m4: New file, suggested by Jim Meyering
24676         <jim@meyering.net>.
24677
24678 2005-06-28  Simon Josefsson  <jas@extundo.com>
24679
24680         * lib/check-version.h, lib/check-version.c: New files.
24681
24682 2005-06-28  Simon Josefsson  <jas@extundo.com>
24683
24684         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
24685         collision with global variable.  Better indentation.  Don't
24686         increment buffer pointer beyond buffer end.  Based on comments
24687         from Paul Eggert <eggert@cs.ucla.edu>.
24688
24689         * lib/base64.h: Indent.
24690
24691 2005-06-28  Simon Josefsson  <jas@extundo.com>
24692
24693         * doc/gnulib.texi (Library version handling): New section.
24694
24695 2005-06-28  Jim Meyering  <jim@meyering.net>
24696
24697         * check-module (find_included_lib_files): Hard-code another
24698         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
24699         but modules/fts-lgpl (correctly) does not list those files.
24700
24701         * modules/canonicalize (Files): Add lib/pathmax.h.
24702
24703 2005-06-25  Simon Josefsson  <jas@extundo.com>
24704
24705         * modules/check-version: New file.
24706
24707 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
24708
24709         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
24710         initializer of struct addrinfo, as an indication that we don't
24711         care how many members the structure has.
24712
24713 2005-06-24  Derek Price  <derek@ximbiot.com>
24714         and Bruno Haible  <bruno@clisp.org>
24715
24716         Remove stat module & update lstat.
24717         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
24718         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
24719         * m4/stat.m4: Remove this file.
24720
24721 2005-06-24  Derek Price  <derek@ximbiot.com>
24722         and Bruno Haible  <bruno@clisp.org>
24723
24724         Remove stat module & update lstat.
24725         * lib/stat.c: Remove this file...
24726         (slash_aware_lstat): ...moving this content and its support...
24727         * lib/lstat.c (rpl_lstat): ...into here.
24728         * lib/lstat.h: New file.
24729
24730 2005-06-24  Derek Price  <derek@ximbiot.com>
24731         and Bruno Haible  <bruno@clisp.org>
24732
24733         Remove stat module & update lstat.
24734         * config/srclist.txt (libc sources): Remove stat.
24735
24736 2005-06-24  Derek Price  <derek@ximbiot.com>
24737         and Bruno Haible  <bruno@clisp.org>
24738
24739         Remove stat module & update lstat.
24740         * MODULES.html.sh (stat): Remove.
24741         * MODULES.html: Regenerated.
24742         * modules/lstat (Description): Correct function name.
24743         (Files): Add "lstat.h".
24744         (Depends-on): Remove stat, add xalloc, stat-macros.
24745         * modules/stat: Remove this file.
24746         (Include): Add "lstat.h", remove <sys/stat.h>.
24747
24748 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
24749
24750         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
24751         (ranged_convert): Don't save conversion in a temporary struct.
24752         This causes a warning with GCC 4.0.0, and anyway in the typical
24753         case it's not worth the extra 100 bytes or so of code.
24754         (ranged_convert, __mktime_internal): When calling a function via a
24755         pointer P, use P () rather than (*P) (), as we now assume C89 or
24756         better.
24757
24758 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
24759
24760         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
24761         "who -r" failed to give output.  Problem reported by Tim Waugh.
24762
24763         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
24764         (xcalloc): Use it to avoid needless tests.
24765         Problem reported by Jim Meyering.
24766
24767 2005-06-20  Derek Price  <derek@ximbiot.com>
24768
24769         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
24770         unnecessary for Autoconfs > 2.59c.
24771
24772 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
24773
24774         * lib/argp.h (__option_is_short): Check upper limit of
24775         __key. Isprint() requires its argument to have the value
24776         of an unsigned char or EOF.
24777
24778 2005-06-16  Jim Meyering  <jim@meyering.net>
24779
24780         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
24781         when either N or S is zero.
24782
24783 2005-06-16  Derek Price  <derek@ximbiot.com>
24784
24785         * m4/bison.m4: Declare YACC & YFLAGS precious.
24786
24787 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
24788
24789         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
24790         multibyte string or pattern, fall back on unibyte matching.
24791         Problem reported by James Youngman.
24792
24793 2005-06-08  Bruno Haible  <bruno@clisp.org>
24794
24795         * modules/csharpcomp: New file.
24796         * MODULES.html.sh (C#): Add csharpcomp.
24797
24798 2005-06-08  Bruno Haible  <bruno@clisp.org>
24799
24800         * m4/csharpcomp.m4: New file, from GNU gettext.
24801
24802 2005-06-08  Bruno Haible  <bruno@clisp.org>
24803
24804         * lib/csharpcomp.h: New file, from GNU gettext.
24805         * lib/csharpcomp.c: New file, from GNU gettext.
24806         * lib/csharpcomp.sh.in: New file, from GNU gettext.
24807
24808 2005-06-08  Bruno Haible  <bruno@clisp.org>
24809
24810         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
24811         warning on mingw.
24812
24813 2005-06-07  Derek Price  <derek@ximbiot.com>
24814
24815         Sync from CVS.
24816         * lib/glob_.h: Indent nested #ifdef.
24817
24818 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
24819
24820         Sync from coreutils.
24821         Use "file name" when talking about file names, instead of "filename"
24822         or "path", as per the GNU coding standards.
24823         * lib/mkdir-p.c: Renamed from makepath.c.
24824         (make_dir_parents): Renamed from make_path.  All callers changed.
24825         * lib/mkdir-p.h: Likewise.  All includers changed.
24826         * lib/filenamecat.c: Renamed from path-concat.c.
24827         (file_name_concat): Renamed from path_concat.  All callers changed.
24828         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
24829         * lib/filenamecat.h: Likewise.  All includers changed.
24830         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
24831         in comments or local variable names.
24832         * lib/basename.c: Likewise.
24833         * lib/canonicalize.c, canonicalize.h: Likewise.
24834         * lib/dirname.c, dirname.h: Likewise.
24835         * lib/euidaccess.c: Likewise.
24836         * lib/exclude.c: Likewise
24837         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
24838         * lib/fsusage.c, fsuage.h: Likewise.
24839         * lib/fts.c, fts_.h: Likewise.
24840         * lib/getcwd.c: Likewise.
24841         * lib/getloadavg.c: Likewise.
24842         * lib/mkstemp.c: Likewise.
24843         * lib/mountlist.c, mountlist.h: Likewise.
24844         * lib/openat.c, openat.h: Likewise.
24845         * lib/readlink-stub.c: Likewise.
24846         * lib/readutmp.c, readutmp.h: Likewise.
24847         * lib/rename.c: Likewise.
24848         * lib/rmdir.c: Likewise.
24849         * lib/same.c: Likewise.
24850         * lib/savedir.c: Likewise.
24851         * lib/stripslash.c: Likewise.
24852         * lib/tempname.c: Likewise.
24853         * lib/xreadlink.c: Likewise.
24854         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
24855         All uses changed.
24856         * lib/exclude.h: Likewise.
24857
24858         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
24859         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
24860         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
24861         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
24862         * lib/pathmax.h: Include <limits.h> unconditionally, since other
24863         files have been getting away with it for years (MORE/BSD 4.3
24864         is extinct now).
24865         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
24866         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
24867
24868         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
24869         Define to 256, not 255, as per modern POSIX.
24870
24871 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
24872
24873         Sync from coreutils.
24874         Use "file name" when talking about file names, instead of "filename"
24875         or "path", as per the GNU coding standards.
24876         * MODULES.html.sh: mkdir-p renamed from makepath.
24877         filenamecat renamed from path-concat.
24878         * modules/filenamecat: Renamed from modules/path-concat.
24879         (Files): filenamecat.h and filenamecat.c renamed from
24880         path-concat.h and path-concat.c.
24881         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
24882         (Include): filenamecat.h, not path-concat.h.
24883         * modules/mkdir-p: Renamed from modules/makepath.
24884         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
24885         makepath.c.
24886         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
24887         (Include): mkdir-p.h, not makepath.h.
24888
24889 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
24890
24891         Sync from coreutils.
24892         * m4/mkdir-p.m4: Renamed from makepath.m4.
24893         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
24894         Rename files from makepath.c to mkdir-p.c, and from
24895         makepath.h to mkdir-p.h.
24896         * m4/filenamecat.m4: Renamed from path-concat.m4.
24897         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
24898         Rename files from path-concat.c to filenamecat.c,
24899         and from path-concat.h to filenamecat.h.
24900         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
24901         "file name" in local variables or comments.
24902         * m4/rename.m4: Likewise.
24903
24904 2005-06-01  Bruno Haible  <bruno@clisp.org>
24905
24906         * modules/csharpexec: New file.
24907         * MODULES.html.sh (C#): New section.
24908
24909 2005-06-01  Bruno Haible  <bruno@clisp.org>
24910
24911         * m4/csharp.m4: New file, from GNU gettext.
24912         * m4/csharpexec.m4: New file, from GNU gettext.
24913
24914 2005-06-01  Bruno Haible  <bruno@clisp.org>
24915
24916         * lib/csharpexec.h: New file, from GNU gettext.
24917         * lib/csharpexec.c: New file, from GNU gettext.
24918         * lib/csharpexec.sh.in: New file, from GNU gettext.
24919
24920 2005-05-31  Derek Price  <derek@ximbiot.com>
24921             Paul Eggert  <eggert@cs.ucla.edu>
24922
24923         Sync from cvs.
24924         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
24925
24926 2005-05-31  Derek Price  <derek@ximbiot.com>
24927             Paul Eggert  <eggert@cs.ucla.edu>
24928
24929         Sync from cvs.
24930         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
24931
24932 2005-05-29  Derek Price  <derek@ximbiot.com>
24933
24934         * config/srclist.txt (glob_.h, glob.c): Add these files.
24935
24936 2005-05-29  Derek Price  <derek@ximbiot.com>
24937
24938         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
24939         * modules/glob: New file.
24940         * modules/getlogin_r: Add link to POSIX spec in description.
24941
24942 2005-05-29  Derek Price  <derek@ximbiot.com>
24943             Paul Eggert  <eggert@cs.ucla.edu>
24944
24945         * m4/glob.m4: New file.
24946
24947 2005-05-29  Derek Price  <derek@ximbiot.com>
24948             Paul Eggert  <eggert@cs.ucla.edu>
24949
24950         * lib/glob_.h, lib/glob.c: New files.
24951
24952 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
24953
24954         * modules/fts (Files): Remove m4/inttypes-pri.m4.
24955         * modules/fts-lgpl (Depends-on): Remove gettext.
24956
24957 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
24958
24959         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
24960         and don't require gt_INTTYPES_PRI.
24961
24962 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
24963
24964         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
24965
24966         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
24967         the configuration hassle isn't worth it.
24968         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
24969         (LONGEST_MODIFIER, PRIuMAX): Remove.
24970
24971 2005-05-27  Bruno Haible  <bruno@clisp.org>
24972
24973         * lib/getlogin_r.h: Remove second include of <stddef.h>.
24974
24975 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
24976
24977         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
24978         _POSIX_PTHREAD_SEMANTICS for Solaris.
24979
24980 2005-05-25  Derek Price  <derek@ximbiot.com>
24981
24982         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
24983
24984 2005-05-25  Derek Price  <derek@ximbiot.com>
24985             Paul Eggert  <eggert@cs.ucla.edu>
24986
24987         * modules/getlogin_r, m4/getlogin_r.m4: New files.
24988         * lib/getlogin_r.c, getlogin_r.h: New files.
24989
24990 2005-05-25  Bruno Haible  <bruno@clisp.org>
24991             Derek Price  <derek@ximbiot.com>
24992
24993         * lib/getlogin_r.h: Simplify API documentation.
24994
24995 2005-05-23  Derek Price  <derek@ximbiot.com>
24996
24997         * modules/minmax (Files): Add m4/minmax.m4.
24998         (configure.ac): Add gl_MINMAX.
24999
25000 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
25001
25002         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
25003         so that unistd-safer.h (GPL'ed code) need not be included.
25004
25005 2005-05-22  Bruno Haible  <bruno@clisp.org>
25006
25007         * m4/minmax.m4: New file.
25008         Based on a patch by Derek Price <derek@ximbiot.com>.
25009
25010 2005-05-22  Bruno Haible  <bruno@clisp.org>
25011
25012         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
25013         (INT64_MIN): Fix definition.
25014         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
25015
25016         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
25017         NEED_SIGNED_INT_TYPES.
25018
25019         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
25020         HAVE_SYSTEM_INTTYPES.
25021
25022 2005-05-22  Bruno Haible  <bruno@clisp.org>
25023
25024         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
25025         Also include <sys/param.h> if it defines MIN, MAX.
25026         Based on a patch by Derek Price <derek@ximbiot.com>.
25027
25028 2005-05-21  Jim Meyering  <jim@meyering.net>
25029
25030         * modules/fts (Files): Add m4/inttypes-pri.m4.
25031         (Depends-on): Add lstat and remove gettext.  Alphabetize.
25032
25033 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
25034
25035         New fts module.
25036         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
25037         (setup_dir, free_dir): New functions.
25038         (enter_dir, leave_dir): Define trivial
25039         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
25040         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
25041         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
25042         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
25043         Move to fts-cycle.c.
25044         (fts_open): Use setup_dir.
25045         (fts_close): Use free_dir.
25046         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
25047         This adds a label and some gotos, but the alternatives were messier.
25048         Check for memory allocation failure when entering a dir.
25049         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
25050         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
25051         (FTS): New member fts_cycle, that is a union that contains the
25052         old active_dir_ht and cycle_state.  All uses changed to mention
25053         fts_cycle.ht and fts_cycle.state.
25054         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
25055         fts.c, with the following changes:
25056         (setup_dir, free_dir): New functions.
25057         (enter_dir): Now returns bool.  Return true if successful, false
25058         if memory exhausted.  All callers changed.
25059         Do not bother partly cleaning up on
25060         memory allocation failure; that is free_dir's job.
25061         However, free ad if hash_insert fails, to avoid memory leak.
25062         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
25063         fts->fts_options to see which union member to use.
25064
25065 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
25066
25067         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
25068         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
25069
25070 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
25071
25072         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
25073
25074 2005-05-20  Jim Meyering  <jim@meyering.net>
25075
25076         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
25077         Now a macro, to pacify GCC.
25078
25079 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
25080
25081         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
25082         of -1.
25083
25084 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
25085
25086         * lib/chown.c (rpl_chown): Return -1 on failure.
25087
25088 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
25089
25090         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
25091         Don't check for stddef.h.
25092         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
25093         don't use its results.
25094         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
25095         since we include them unconditionally.  Don't require
25096         AM_STDBOOL_H, since stdbool is a prerequisite.
25097         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
25098         since we assume C89 or better.
25099         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
25100         as we don't use their results.
25101         Don't check for fchdir, memmove, memset, strrchr, as we use
25102         them unconditionally.
25103         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
25104         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
25105
25106 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
25107
25108         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
25109         Include <stddef.h> unconditionally, since we assume C89 now.
25110         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
25111         * lib/fts.c: Include fts_.h first, to check interface.
25112         Do not include intprops.h; no longer needed.
25113         Include cycle-check.h and hash.h, since fts_.h no longer does.
25114         Remove unnecessary casts of closedir to void.
25115         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
25116         decide whether to decrement nlinks.
25117         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
25118         (FTS): Use struct hash_table * instead of Hash_table, so that
25119         we no longer need to include hash.h here.
25120
25121 2005-05-18  Jim Meyering  <jim@meyering.net>
25122
25123         * modules/dirfd (License): Change to LGPL.  Most of the code
25124         is already in the public domain.
25125
25126 2005-05-18  Jim Meyering  <jim@meyering.net>
25127
25128         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
25129         Reported by Yoann Vandoorselaere.
25130
25131 2005-05-17  Jim Meyering  <jim@meyering.net>
25132
25133         * m4/fts.m4: New file, from coreutils.
25134
25135 2005-05-17  Jim Meyering  <jim@meyering.net>
25136
25137         * lib/fts.c, lib/fts_.h: New files, from coreutils.
25138
25139 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
25140
25141         Sync from coreutils.
25142         * m4/unlinkdir.m4: New file.
25143
25144 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
25145
25146         Sync from coreutils.
25147         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
25148         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
25149         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
25150         White space changes only.
25151         * lib/makepath.c (make_path): Port to hosts where leading "//" is
25152         special.
25153         * lib/yesno.c: Include getline.h, not ctype.h.
25154         (yesno): Don't remove leading white space; POSIX doesn't allow it.
25155         Use getline to remove arbitrary restriction on response length.
25156
25157 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
25158
25159         * config/srclist-update: Spell out "Street" in FSF postal
25160         mail address; this is the style the FSF seems to prefer.
25161
25162         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
25163         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
25164         this updates FSF postal mail address.
25165
25166         Sync from coreutils.
25167         * modules/unlinkdir: New file.
25168         * modules/yesno (Depends-on): Add getline.
25169         * MODULES.html.sh (File system functions): Add unlinkdir.
25170
25171 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
25172
25173         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
25174         lib/strsep.h:
25175         Change the initial comment to refer to GPL, not LGPL.
25176         gnulib-tool will change it to LGPL as needed.
25177
25178         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
25179         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
25180         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
25181         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
25182         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
25183         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
25184         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
25185         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
25186         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
25187         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
25188         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
25189         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
25190         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
25191         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
25192         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
25193         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
25194         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
25195         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
25196         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
25197         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
25198         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
25199         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
25200         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
25201         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
25202         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
25203         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
25204         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
25205         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
25206         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
25207         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
25208         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
25209         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
25210         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
25211         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
25212         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
25213         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
25214         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
25215         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
25216         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
25217         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
25218         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
25219         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
25220         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
25221         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
25222         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
25223         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
25224         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
25225         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
25226         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
25227         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
25228         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
25229         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
25230         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
25231         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
25232         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
25233         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
25234         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
25235         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
25236         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
25237         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
25238         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
25239         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
25240         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
25241         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
25242         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
25243         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
25244         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
25245         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
25246         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
25247         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
25248         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
25249         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
25250         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
25251         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
25252         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
25253         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
25254         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
25255         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
25256         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
25257         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
25258         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
25259         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
25260         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
25261         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
25262         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
25263         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
25264         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
25265         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
25266         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
25267         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
25268         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
25269         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
25270         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
25271         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
25272         lib/yesno.c, lib/yesno.h:
25273         Update FSF postal mail address.
25274
25275 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
25276
25277         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
25278         tests/test-memmem.c, tests/test-stpncpy.c:
25279         Update FSF postal mail address.
25280
25281 2005-05-13  Bruno Haible  <bruno@clisp.org>
25282
25283         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
25284         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
25285         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
25286         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
25287         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
25288         Add support for 64-bit integers in the MSVC compiler.
25289
25290 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
25291
25292         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
25293
25294 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
25295
25296         * gnulib-tool (func_import): Sort and uniquify recommended includes.
25297
25298 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
25299
25300         * doc/getdate.texi (General date syntax): Don't say that date
25301         date --iso-8601=ns generates acceptable dates; it doesn't yet.
25302         Problem reported by Nic Ferrier.
25303
25304 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25305
25306         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
25307         specified in ai_socktype. Fix invalid ai_protocol
25308         check. ai_protocol is usually set to 0 or depending on
25309         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
25310         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
25311         ai_socktype / ai_protocol in the returned addrinfo structure.
25312
25313 2005-05-10  Simon Josefsson  <jas@extundo.com>
25314
25315         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
25316         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25317
25318 2005-05-10  Karl Berry  <karl@gnu.org>
25319
25320         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
25321         (from http://www.gnu.org/licenses).
25322         * doc/COPYING.LIB: also rename to COPYING.LESSER.
25323         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
25324         fdl.texi suffices.
25325
25326 2005-05-10  Karl Berry  <karl@gnu.org>
25327
25328         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
25329         (COPYING.DOC): remove.
25330
25331         * config/srclist-update: new FSF address.
25332
25333 2005-05-10  Derek Price  <derek@ximbiot.com>
25334
25335         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
25336         possible.
25337
25338 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25339             Bruno Haible  <bruno@clisp.org>
25340
25341         * modules/inet_ntop: New file.
25342         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25343         inet_ntop.
25344
25345 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25346             Bruno Haible  <bruno@clisp.org>
25347
25348         * m4/inet_ntop.m4: New file.
25349
25350 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25351             Bruno Haible  <bruno@clisp.org>
25352
25353         * lib/inet_ntop.h: New file.
25354         * lib/inet_ntop.c: New file, from glibc with modifications.
25355
25356 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
25357
25358         * modules/time_r (License): Change to LGPL.
25359         * modules/extensions (License): Change to LGPL.  Actually,
25360         the license is more permissive than that, but currently gnulib-tool
25361         doesn't know how to handle more-permissive licenses.
25362
25363         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
25364         Problem reported by Dave Love.
25365
25366 2005-05-08  Jim Meyering  <jim@meyering.net>
25367
25368         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
25369         blank.
25370
25371 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
25372
25373         * modules/argmatch (Depends-on): Add stdbool.
25374         * modules/backupfile (Depends-on): Likewise.
25375         * modules/chdir-long (Depends-on): Likewise.
25376         * modules/closeout (Depends-on): Likewise.
25377         * modules/cycle-check (Depends-on): Likewise.
25378         * modules/dirname (Depends-on): Likewise.
25379         * modules/fnmatch (Depends-on): Likewise.
25380         * modules/fsusage (Depends-on): Likewise.
25381         * modules/fwriteerror (Depends-on): Likewise.
25382         * modules/getcwd (Depends-on): Likewise.
25383         * modules/getloadavg (Depends-on): Likewise.
25384         * modules/hard-locale (Depends-on): Likewise.
25385         * modules/makepath (Depends-on): Likewise.
25386         * modules/mountlist (Depends-on): Likewise.
25387         * modules/nanosleep (Depends-on): Likewise.
25388         * modules/posixtm (Depends-on): Likewise.
25389         * modules/quotearg (Depends-on): Likewise.
25390         * modules/readtokens (Depends-on): Likewise.
25391         * modules/readtokens0 (Depends-on): Likewise.
25392         * modules/readutmp (Depends-on): Likewise.
25393         * modules/save-cwd (Depends-on): Likewise.
25394         * modules/strftime (Depends-on): Likewise.
25395         * modules/userspec (Depends-on): Likewise.
25396         * modules/utimecmp (Depends-on): Likewise.
25397         * modules/xgetcwd (Depends-on): Likewise.
25398         * modules/xnanosleep (Depends-on): Likewise.
25399         * modules/xstrtod (Depends-on): Likewise.
25400         * modules/yesno (Depends-on): Likewise.
25401
25402 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
25403
25404         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
25405         needless checks.
25406
25407 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
25408
25409         Merge from coreutils.  Among other things,
25410         add bulletproofing for cases where stdin, stdout, or stderr are closed.
25411         * lib/fd-safer.c: New file.
25412         * lib/fcntl-safer.h, open-safer.c: Remove.
25413         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
25414         * lib/dup-safer.c: Include unistd-safer.h first.
25415         Don't include errno.h.
25416         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
25417         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
25418         * lib/file-type.c: Rely on file-type.h change.
25419         * lib/getloadavg.c: Include unistd-safer.h.
25420         (getloadavg): Use safer open.
25421         * lib/getusershell.c: Include "stdio-safer.h".
25422         (getusershell): Use safer fopen.
25423         * lib/long-options.c (long_options): Use NULL rather than 0.
25424         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
25425         'free'.
25426         * lib/modechange.c: Likewise.
25427         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
25428         (MODE_DONE): New constant.
25429         (struct mode_change): Remove 'next' member.
25430         (make_node_op_equals): New function; like the old one of the
25431         same name, except it allocates an array.
25432         (mode_compile, mode_create_from_ref): Use it.
25433         (mode_compile): Allocate result as an array, not a linked list.
25434         Parse octal string ourself, so that we catch mistakes like "+0".
25435         (mode_adjust): Arg is an array, not a linked list.
25436         * lib/modechange.c: Include stat-macros.h, xalloc.h.
25437         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
25438         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
25439         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
25440         Remove.  This is now stat-macros.h's job.
25441         (talloc): Remove.  All callers replaced by xalloc, so that
25442         our invokers don't have to worry about reporting memory failures.
25443         (make_node_op_equals): Remove.
25444         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
25445         New constants.
25446         (struct mode_change): Moved here from modechange.h.
25447         (mode_append_entry): Remove.
25448         (mode_compile): Remove MASKED_OPS arg, since it encouraged
25449         apps to have incorrect behavior.  Use simpler algorithm for head
25450         and tail.  Don't futz with umask; that's now the job of mode_adjust.
25451         Detect more invalid usages rather than having somewhat-random behavior.
25452         Don't insert an "a=" action, as that leads to incorrect behavior.
25453         (mode_compile, mode_create_from_ref): Return NULL on error instead
25454         of an enum, since now there's only one way to have an error.  All
25455         callers changed.
25456         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
25457         at the correct time.  Simplify calculation of "+u" and its ilk.
25458         Don't mishandle "+X".
25459         (mode_free): Remove "register" and localize decls.
25460         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
25461         (struct mode_change): Move to modechange.c; callers don't
25462         need to see this stuff.
25463         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
25464         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
25465         (mode_change, mode_adjust): Reflect the new signatures noted above.
25466         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
25467         that might redefine system include files.
25468         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
25469         (my_usleep): Use NULL rather than (void *) 0.
25470         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
25471         Use siginterrupt to specify that system calls should be interrupted.
25472         (rpl_nanosleep): Move initialization of suspended closer to call of
25473         my_usleep.
25474         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
25475         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
25476         (desirable_utmp_entry): New function.
25477         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
25478         using x2nrealloc, to simplify logic.
25479         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
25480         size calculation.  Do not assume utmp file is a regular file.
25481         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
25482         (READ_UTMP_CHECK_PIDS): New constant.
25483         * lib/save-cwd.c: Include unistd-safer.h.
25484         (save_cwd): Use fd_safer.
25485         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
25486         [!_LIBC] Include "stat-macros.h" instead.
25487         * lib/unistd-safer.h (fd_safer): New decl.
25488
25489 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
25490
25491         * modules/getloadavg (Depends-on): Add unistd-safer.
25492         * modules/getusershell (Depends-on): Add stdio-safer.
25493         * modules/lstat (Depends-on): Remove xalloc.
25494         * modules/mkstemp (Depends-on): Add stat-macros.
25495         * modules/modechange (Depends-on): Remove xstrtol.
25496         Add stat-macros, xalloc.
25497         * modules/save-cwd (Depends-on): Add unistd-safer.
25498         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
25499         * modules/unistd-safer (Files): Add lib/fd-safer.c
25500         (Makefile.am): Remove lib_SOURCES.
25501
25502         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
25503         Remove fcntl-safer; unistd-safer supersedes it.
25504
25505 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
25506
25507         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
25508         AC_HEADER_STAT.
25509         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
25510         (gl_PREREQ_CHOWN): Remove.
25511         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
25512         it.  Don't require AC_HEADER_STAT.
25513         (gl_PREREQ_LSTAT): Remove.
25514         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
25515         Don't require AC_HEADER_STAT.
25516         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
25517         (gl_PREREQ_RMDIR): Remove.
25518         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
25519         mention stat-macros.h or AC_HEADER_STAT, since we'll make
25520         the stat-macros module a prerequisite.
25521         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
25522         * m4/filemode.m4 (gl_FILEMODE): Likewise.
25523         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
25524         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
25525         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
25526         variable names.
25527         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
25528         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
25529         variable prefixes.
25530         * m4/fcntl-safer.m4: Remove.
25531         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
25532         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
25533         Invoke gl_PREREQ_FD_SAFER.
25534         (gl_PREREQ_FD_SAFER): New macro.
25535         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
25536         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
25537         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
25538         Remove duplicate call to AC_LIBOBJ(readutmp).
25539         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
25540
25541         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
25542         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
25543
25544 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
25545
25546         * MODULES.html.sh (Misc): Add byteswap.
25547
25548 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
25549
25550         * modules/getcwd (Depends-on): Add extensions.
25551         * modules/openat (Depends-on): Likewise.
25552
25553 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
25554
25555         * modules/byteswap: New file.
25556
25557 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
25558
25559         * m4/byteswap.m4: New file.
25560
25561 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
25562
25563         * lib/byteswap_.h: New file.
25564
25565 2005-04-25  Karl Berry  <karl@gnu.org>
25566
25567         * m4/gettext.m4: Update from GNU gettext 0.14.4.
25568
25569 2005-04-25  Albert Chin  <china@thewrittenword.com>
25570
25571         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
25572         Toolkit C bug.
25573
25574 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
25575
25576         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
25577         (func_ln_if_changed) Remove forcibly for no error message
25578         in case file does not exist.
25579
25580 2005-04-19  Simon Josefsson  <jas@extundo.com>
25581
25582         * gnulib-tool (Options): Make --symlink mean --symbolic.
25583
25584 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
25585
25586         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
25587
25588 2005-04-16  Simon Josefsson  <jas@extundo.com>
25589
25590         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
25591
25592 2005-04-15  Simon Josefsson  <jas@extundo.com>
25593
25594         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
25595
25596 2005-04-15  Simon Josefsson  <jas@extundo.com>
25597
25598         * gnulib-tool: Rename --symlink to --symbolic.
25599
25600 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
25601
25602         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
25603         symbolic links to files instead of copying/moving.  Add --aux-dir,
25604         specifying directory relative --dir where auxiliary build tools
25605         are placed.
25606
25607 2005-04-14  Bruno Haible  <bruno@clisp.org>
25608
25609         * modules/allocsa (License): Change to LGPL.
25610         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25611
25612 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
25613
25614         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
25615         that "UTC +1 second" continues to work.  Problem reported
25616         by Dmitry V. Levin.
25617         (relunit_snumber): New rule.
25618         (relunit): Use it.
25619
25620 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
25621
25622         * lib/getdate.y (universal_time_zone_table): New constant.
25623         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
25624         universal_time_zone_table.
25625         (lookup_zone): Prefer universal_time_zone_table to
25626         local_time_zone_table, so that "GMT" time stamps are allowed in
25627         London during the summer.  Problem reported by Ian Abbott.
25628
25629 2005-04-12  Jim Meyering  <jim@meyering.net>
25630
25631         * lib/human.c (humblock): Set *options even when returning due to
25632         xstrtoumax conversion failure.  Thanks to a used-uninitialized
25633         warning from gcc-4.
25634
25635 2005-04-09  Jim Meyering  <jim@meyering.net>
25636
25637         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
25638         -Wuninitialized: initialize tm0.tm_year.
25639
25640 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
25641
25642         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
25643         count, since there's no maximum.  All uses changed.
25644         Add member dsts_seen.
25645         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
25646         not being INT_MAX.
25647         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
25648         Use pc_rels_seen to decide whther a date is absolute.
25649
25650         * lib/getdate.y (number): Don't overwrite year.
25651         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
25652         check.
25653
25654 2005-04-02  Simon Josefsson  <jas@extundo.com>
25655
25656         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
25657         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
25658
25659 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
25660
25661         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
25662         where no absolute path name can be longer than PATH_MAX.
25663
25664 2005-03-27  Jim Meyering  <jim@meyering.net>
25665
25666         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
25667
25668 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
25669
25670         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
25671         "one's complement" -> "ones' complement" in comment, as per Knuth.
25672         "value of type" -> "type or expression" in comment.
25673         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
25674
25675 2005-03-26  Jim Meyering  <jim@meyering.net>
25676
25677         Comment nits.
25678         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
25679         Correct typos: s/or/of/.
25680
25681 2005-03-26  Jim Meyering  <jim@meyering.net>
25682
25683         * modules/check-include-files: Move to ../ and rename to...
25684         * check-module: ...this.
25685
25686 2005-03-25  Jim Meyering  <jim@meyering.net>
25687
25688         * modules/xvasprintf (Files): Add xalloc.h.
25689
25690 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
25691
25692         * modules/gettext (Files): config/config.rpath ->
25693         build-aux/config.rpath
25694         * modules/iconv (Files): Likewise.
25695         Problem reported by Oskar Liljeblad.
25696
25697 2005-03-23  Jim Meyering  <jim@meyering.net>
25698
25699         * modules/check-include-files: New script to check for
25700         missing dependencies, multiple includes, etc.
25701
25702         * modules/c-strtold (Depends-on): Add xalloc.
25703         * modules/c-strtod (Depends-on): Add xalloc.
25704         * modules/hash (Depends-on): Add xalloc.
25705         (Files): Remove lib/xalloc.h.
25706
25707         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
25708         * modules/userspec (Files): Add lib/inttostr.h.
25709
25710 2005-03-23  Jim Meyering  <jim@meyering.net>
25711
25712         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
25713
25714 2005-03-22  Jim Meyering  <jim@meyering.net>
25715
25716         * modules/stat-macros: New module.
25717         * modules/canonicalize, modules/euidaccess, modules/file-type,
25718         * modules/filemode, modules/lchown, modules/makepath,
25719         * modules/rmdir, modules/stat: Depend on new stat-macros module
25720         rather than listing lib/stat-macros.h manually.
25721         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
25722
25723 2005-03-22  Jim Meyering  <jim@meyering.net>
25724
25725         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
25726
25727 2005-03-22  Bruno Haible  <bruno@clisp.org>
25728
25729         * config/srclist.txt: Replace target directory 'config' with
25730         'build-aux'.
25731         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
25732         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
25733         ../build-aux/.
25734
25735 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
25736
25737         * modules/chdir-long (Depends-on): Add mempcpy.
25738
25739         * modules/acl, modules/backupfile, modules/c-strtod,
25740         modules/c-strtold, modules/canon-host, modules/canonicalize,
25741         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
25742         modules/exclude, modules/exitfail, modules/file-type,
25743         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
25744         modules/getdate, modules/getline, modules/getpagesize,
25745         modules/getpass, modules/getugroups, modules/group-member,
25746         modules/hard-locale, modules/hash, modules/human, modules/idcache,
25747         modules/inttostr, modules/long-options, modules/makepath,
25748         modules/md5, modules/memcasecmp, modules/memcoll,
25749         modules/modechange, modules/mountlist, modules/path-concat,
25750         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
25751         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
25752         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
25753         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
25754         modules/strftime, modules/strndup, modules/strverscmp,
25755         modules/timespec, modules/unlocked-io, modules/userspec,
25756         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
25757         modules/yesno:
25758         Remove lib_SOURCES line from Makefile.am section, as this is now
25759         done automatically by the corresponding Autoconf macro.
25760
25761 2005-03-21  Jim Meyering  <jim@meyering.net>
25762
25763         Changes imported from coreutils.
25764
25765         * lib/cycle-check.c: Don't include xalloc.h.
25766
25767         * lib/path-concat.c: Don't include assert.h.
25768         (path_concat): Remove assertion that would have triggered
25769         for ABASE starting with more than one slash.
25770         Reported by Andreas Schwab.
25771
25772         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
25773         properly when ABASE is an absolute file name.
25774         Correct the description of this function.
25775         Include <assert.h>.
25776         Add an assertion and a test driver.
25777         This fixes a bug introduced on 2004-07-02.
25778         Andreas Schwab reported the resulting failure of cp --parents:
25779         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
25780
25781 2005-03-21  Jim Meyering  <jim@meyering.net>
25782
25783         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
25784         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
25785
25786 2005-03-21  Jim Meyering  <jim@meyering.net>
25787         and  Paul Eggert  <eggert@cs.ucla.edu>
25788
25789         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
25790         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
25791         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
25792         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
25793         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
25794         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
25795         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
25796         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
25797         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
25798         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
25799         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
25800         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
25801         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
25802         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
25803         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
25804         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
25805         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
25806         for these modules.
25807
25808 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
25809
25810         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
25811         (which shouldn't happen), generate nothing instead of returning 0
25812         immediately, so that nstrftime (NULL, ...) doesn't return 0.
25813
25814 2005-03-16  Bruno Haible  <bruno@clisp.org>
25815
25816         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
25817         HAVE_LONGLONG_64BIT.
25818
25819 2005-03-16  Bruno Haible  <bruno@clisp.org>
25820
25821         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
25822         HAVE_LONGLONG_64BIT.
25823
25824 2005-03-16  Bruno Haible  <bruno@clisp.org>
25825
25826         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
25827         HAVE_LONGLONG_64BIT.
25828
25829 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
25830
25831         * lib/strftime.c (my_strftime): Prepend space to format so that we can
25832         reliably distinguish strftime failure from empty output on POSIX
25833         hosts.
25834
25835 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
25836
25837         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
25838         (iconv_string): Don't guess a size-zero buffer, as that might cause
25839         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
25840         result would be 'too large', where 'too large' is (heuristically)
25841         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
25842         overflow concerns.  This will prevent some unwanted malloc failures
25843         when the inputs are very large.
25844
25845 2005-03-15  Karl Berry  <karl@gnu.org>
25846
25847         * config/srclist.txt (config.rpath): from gettext.
25848         * config/config.rpath: update.
25849
25850 2005-03-15  Bruno Haible  <bruno@clisp.org>
25851
25852         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
25853         to 'negate'.
25854
25855         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
25856         variable.
25857
25858         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
25859         results.
25860
25861 2005-03-14  Simon Josefsson  <jas@extundo.com>
25862
25863         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
25864         <fx@gnu.org>.
25865
25866 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
25867
25868         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
25869         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
25870         intprops.h.
25871         * lib/strtol.c: Likewise.
25872
25873 2005-03-14  Jim Meyering  <jim@meyering.net>
25874
25875         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
25876         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
25877         to be nonzero so that we (and caller) can detect the difference
25878         between a valid zero-length expansion and an error return, even
25879         when the underlying strftime fails before writing anything into
25880         that location.
25881
25882 2005-03-14  Bruno Haible  <bruno@clisp.org>
25883
25884         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
25885         Update from GNU gettext 0.14.3.
25886
25887 2005-03-10  Jim Meyering  <jim@meyering.net>
25888
25889         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
25890
25891 2005-03-10  Jim Meyering  <jim@meyering.net>
25892
25893         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
25894         so that this module works on systems without fchdir.
25895
25896 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
25897
25898         Factor int-properties macros into a single file, except for
25899         glibc-related files.
25900         * lib/intprops.h: New file.
25901         * lib/getloadavg.c: Include it instead of limits.h.
25902         (INT_STRLEN_BOUND): Remove.
25903         * lib/human.c: Include intprops.h.
25904         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
25905         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
25906         302/1000.
25907         * lib/inttostr.h: Include intprops.h instead of limits.h.
25908         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
25909         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
25910         for consistency with intprops.h.
25911         (time_t_is_integer, twos_complement_arithmetic): Use them.
25912         * lib/sig2str.h: Include <signal.h>, intprops.h.
25913         (INT_STRLEN_BOUND): Remove.
25914         * lib/strftime.c (TYPE_SIGNED): Remove.
25915         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
25916         * lib/strtol.c: Adjust comments to match intprops.h.
25917         * lib/userspec.c: Include intprops.h.
25918         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
25919         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
25920         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
25921         instead of rolling our own expressions.
25922         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
25923
25924         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
25925         instead of int.
25926         (my_strftime): Do not mishandle years close to INT_MAX, by doing
25927         the right thing even if adding 1900 would overflow.  Similarly
25928         for tm_mon + 1 and tm_yday + 1.
25929         Make %Y always equivalent to %C%y, and similarly for %G and %g.
25930         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
25931         (DO_SIGNED_NUMBER): New macro.
25932         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
25933
25934 2005-03-07  Bruno Haible  <bruno@clisp.org>
25935
25936         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
25937
25938 2005-03-07  Bruno Haible  <bruno@clisp.org>
25939
25940         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
25941
25942 2005-03-04  Derek R. Price  <derek@ximbiot.com>
25943
25944         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
25945         (func_import): Only replace files via --import when they have actually
25946         changed.
25947
25948 2005-03-03  Derek R. Price  <derek@ximbiot.com>
25949
25950         * m4/mmap-anon.m4: New file.
25951         * m4/pagealign_alloc.m4: New file.
25952
25953 2005-03-03  Derek R. Price  <derek@ximbiot.com>
25954             Bruno Haible  <bruno@clisp.org>
25955
25956         * modules/pagealign_alloc: New file.
25957         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
25958
25959 2005-03-03  Derek R. Price  <derek@ximbiot.com>
25960             Bruno Haible  <bruno@clisp.org>
25961
25962         * lib/pagealign_alloc.h: New file.
25963         * lib/pagealign_alloc.c: New file.
25964
25965 2005-03-03  Bruno Haible  <bruno@clisp.org>
25966
25967         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
25968         Use an all-permissive copyright notice, recommended by RMS.
25969
25970 2005-03-02  Bruno Haible  <bruno@clisp.org>
25971
25972         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
25973         of AIX, the replacement has to be done only after <string.h> is
25974         included, therefore not in config.h. stpncpy.h does the replacement,
25975         and stpncpy.c uses it.
25976
25977 2005-03-02  Bruno Haible  <bruno@clisp.org>
25978
25979         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
25980         stpncpy.c uses it.
25981
25982 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
25983
25984         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
25985         The workaround isn't strictly needed for POSIX conformance, and
25986         it's too much of a pain to configure and maintain.  We'll ask
25987         people to fix their kernels instead.
25988         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
25989         (NANOSLEEP_BUG_WORKAROUND): Remove.
25990         (xnanosleep): Remove the workaround.
25991
25992 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
25993
25994         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
25995         Reported by Derek Price.
25996         (Include): Add "timespec.h".
25997
25998         * modules/xnanosleep (Depends-on): Remove gethrxtime.
25999
26000 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
26001
26002         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
26003         to detect nanosleep bug.
26004
26005 2005-03-01  Bruno Haible  <bruno@clisp.org>
26006
26007         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
26008
26009 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
26010
26011         * modules/gethrxtime: New file.
26012         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
26013         (Depends-on): Add gethrxtime.
26014         (configure.ac): Add gl_XNANOSLEEP.
26015         (Makefile.am): Remove lib_SOURCES line.
26016
26017 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
26018
26019         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
26020         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
26021
26022 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
26023
26024         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
26025         * lib/timespec.h (gettime): Return void, since it always
26026         succeeds now.  All uses changed.
26027         * lib/gettime.c (gettime) Likewise.
26028         [HAVE_NANOTIME]: Prefer nanotime.
26029         Assume gettimeofday succeeds, as POSIX requires.
26030         Assime time () succeeds, since other code already does.
26031         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
26032         (timespec_subtract): Remove.
26033         (NANOSLEEP_BUG_WORKAROUND): New constant.
26034         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
26035         things considerably.  Use it only on GNU/Linux hosts, since the
26036         workaround shouldn't be needed elsewhere.
26037
26038 2005-02-24  Bruno Haible  <bruno@clisp.org>
26039
26040         * modules/gettext (Files): Add m4/glibc2.m4.
26041
26042 2005-02-24  Bruno Haible  <bruno@clisp.org>
26043
26044         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
26045         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
26046         * m4/progtest.m4:
26047         Update from GNU gettext 0.14.2.
26048         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
26049
26050 2005-02-24  Bruno Haible  <bruno@clisp.org>
26051
26052         * lib/localcharset.c: Update from GNU gettext 0.14.2.
26053         * lib/config.charset: Update from GNU gettext 0.14.2.
26054
26055 2005-02-24  Bruno Haible  <bruno@clisp.org>
26056
26057         * lib/gettext.h: Update from GNU gettext 0.14.2.
26058
26059 2005-02-23  Simon Josefsson  <jas@extundo.com>
26060
26061         * m4/iconvme.m4: New file.
26062
26063 2005-02-23  Jim Meyering  <jim@meyering.net>
26064
26065         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
26066         change.
26067         Thanks to Bruno Haible for catching it.
26068
26069 2005-02-22  Simon Josefsson  <jas@extundo.com>
26070
26071         * modules/iconvme: New file.
26072
26073         * MODULES.html.sh: Add iconvme.
26074
26075 2005-02-22  Simon Josefsson  <jas@extundo.com>
26076
26077         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
26078
26079 2005-02-22  Simon Josefsson  <jas@extundo.com>
26080
26081         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
26082
26083 2005-02-22  Jim Meyering  <jim@meyering.net>
26084
26085         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
26086         s/ifndef/ifdef/.
26087
26088 2005-02-20  Neil Conway  <neilc@samurai.com>
26089
26090         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
26091         returned by OSX/Darwin if the specified buffer is not large
26092         enough for the hostname.
26093
26094 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
26095
26096         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
26097         pass it to _help, otherwise the latter coredumps trying to
26098         dereference state.root_argp.
26099
26100 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
26101
26102         * modules/chdir-long (Depends-on): Add memrchr.
26103         * modules/memrchr (Files): Add lib/memrchr.h.
26104         (Include): "memrchr.h".
26105
26106 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
26107
26108         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
26109
26110 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
26111
26112         * lib/memrchr.h: New file.
26113         * lib/chdir-long.c: Include it.
26114         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
26115         Don't bother including stddef.h.
26116
26117 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
26118
26119         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
26120         inclusion.
26121         Include <sys/types.h>, for dev_t.
26122         (ME_DUMMY, ME_REMOTE): Move from here....
26123         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
26124         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
26125         Dmitry V. Levin.
26126         Include mountlist.h first, to test the interface.
26127
26128 2005-01-29  Bruno Haible  <bruno@clisp.org>
26129
26130         * lib/progname.c (program_name): Initialize.
26131         Needed when linking statically on MacOS X.
26132
26133 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
26134
26135         Sync from coreutils.
26136         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
26137         (Depends-on): Add c-strtod.
26138         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
26139
26140 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
26141
26142         Sync from coreutils.
26143         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
26144
26145         Remove files that are specific to coreutils.
26146         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
26147
26148 2005-01-28  Bruno Haible  <bruno@clisp.org>
26149
26150         * modules/javacomp: New file.
26151         * MODULES.html.sh (Java): Add javacomp.
26152
26153 2005-01-28  Bruno Haible  <bruno@clisp.org>
26154
26155         * m4/javacomp.m4: New file, from GNU gettext.
26156
26157 2005-01-28  Bruno Haible  <bruno@clisp.org>
26158
26159         * lib/javacomp.sh.in: New file, from GNU gettext.
26160         * lib/javacomp.h: New file, from GNU gettext.
26161         * lib/javacomp.c: New file, from GNU gettext.
26162
26163 2005-01-26  Simon Josefsson  <jas@extundo.com>
26164
26165         * lib/gai_strerror.c: Use GPL in header.
26166
26167 2005-01-26  Bruno Haible  <bruno@clisp.org>
26168
26169         * modules/javaexec: New file.
26170         * MODULES.html.sh (Java): Add javaexec.
26171
26172 2005-01-26  Bruno Haible  <bruno@clisp.org>
26173
26174         * m4/javaexec.m4: New file, from GNU gettext.
26175
26176 2005-01-26  Bruno Haible  <bruno@clisp.org>
26177
26178         * lib/javaexec.sh.in: New file, from GNU gettext.
26179         * lib/javaexec.h: New file, from GNU gettext.
26180         * lib/javaexec.c: New file, from GNU gettext.
26181
26182 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
26183
26184         * modules/lchown (Depends-on): Remove lchown.h
26185
26186 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
26187
26188         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
26189         must be defined if the header file was not found, in order
26190         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
26191
26192 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
26193
26194         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
26195         initializers for struct pentry_state.
26196         (__argp_error): Check return value of __asprintf
26197         (__argp_failure): Translate error message
26198
26199         * lib/argp-parse.c: Removed braces around the expansion of N_()
26200
26201 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26202
26203         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
26204         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
26205         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
26206         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
26207         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
26208         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
26209         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
26210         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
26211         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
26212         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
26213         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
26214         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
26215         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
26216         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
26217         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
26218         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
26219         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
26220         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
26221         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
26222         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
26223         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
26224         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
26225         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
26226         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
26227         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
26228         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
26229         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
26230         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
26231         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
26232         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
26233         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
26234         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
26235         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
26236         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
26237         xstrtol.m4, xstrtoumax.m4, yesno.m4:
26238         Use an all-permissive copyright notice, recommended by RMS.
26239
26240 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
26241
26242         * modules/chdir-long (Depends-on): Remove mempcpy.
26243
26244 2005-01-21  Jim Meyering  <jim@meyering.net>
26245
26246         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
26247         same value as for Solaris 9.
26248
26249         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
26250         component length.  This included changing the parameter to be
26251         of type `char *' rather than `char const *'.
26252         * lib/chdir-long.h (chdir_long): Update prototype.
26253
26254         * lib/openat.c (fdopendir, fstatat): New functions.
26255         * lib/openat.h: Include headers required for use of DIR and struct
26256         stat.
26257         [AT_SYMLINK_NOFOLLOW]: Define.
26258         (fdopendir, fstatat): Add prototypes.
26259
26260 2005-01-21  Bruno Haible  <bruno@clisp.org>
26261
26262         * modules/classpath: New file.
26263         * MODULES.html.sh (Java): Add classpath.
26264
26265 2005-01-21  Bruno Haible  <bruno@clisp.org>
26266
26267         * lib/classpath.h: New file, from GNU gettext.
26268         * lib/classpath.c: New file, from GNU gettext.
26269
26270 2005-01-20  Simon Josefsson  <jas@extundo.com>
26271
26272         * modules/version-etc-fsf: New file.
26273
26274 2005-01-20  Simon Josefsson  <jas@extundo.com>
26275
26276         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
26277         * lib/version-etc.c: Remove version_etc_copyright.
26278         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
26279         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
26280
26281 2005-01-20  Simon Josefsson  <jas@extundo.com>
26282
26283         * lib/base64.h (isbase64): Add.
26284
26285         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
26286         using a unsigned prototype, don't inline.
26287         (base64_decode): Use it.
26288
26289 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
26290
26291         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
26292         it.
26293
26294 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
26295
26296         * lib/save-cwd.c (save_cwd): Remove code to support the case
26297         where fchdir is missing or flaky.
26298
26299 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
26300
26301         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
26302
26303 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
26304
26305         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
26306         AC_LIBSOURCES now does this.
26307         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
26308         with new ullong_max module.
26309
26310 2005-01-19  Bruno Haible  <bruno@clisp.org>
26311
26312         * modules/sh-quote: New file.
26313         * MODULES.html.sh (Executing programs): Add sh-quote.
26314
26315 2005-01-19  Bruno Haible  <bruno@clisp.org>
26316
26317         * lib/sh-quote.h: New file, from GNU gettext.
26318         * lib/sh-quote.c: New file, from GNU gettext.
26319
26320 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26321
26322         Merge from coreutils.
26323         * m4/ullong_max.m4: New file.
26324         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
26325         (gl_MACROS): Assume localeconv exists.
26326
26327 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26328
26329         Merge changes from coreutils, as described below in several
26330         changelogs dated today.
26331
26332         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
26333         (O_DIRECTORY): Remove; not needed here, since "." must be
26334         a directory.  All uses removed.
26335         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
26336         universal on Suns, and we also need to test for IRIX.
26337         Revamp code to use 'if' rather than '#if'.
26338         Avoid unnecessary comparison of cwd->desc to 0.
26339
26340         * lib/utimens.c (futimens): Robustify the previous patch, by checking
26341         for known valid error numbers rather than observed invalid ones.
26342
26343 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26344
26345         * modules/ullong_max: New file.
26346
26347         * modules/chdir-long, modules/openat: New files.
26348         * modules/save-cwd (Depends-on): Depend on chdir-long.
26349         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
26350
26351 2005-01-18  Jim Meyering  <jim@meyering.net>
26352
26353         Merge from coreutils.
26354         * m4/chdir-long.m4, m4/openat.m4: New files.
26355         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
26356         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
26357         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
26358         is sane and DOES follow symlinks.  Besides, testing 20 different
26359         systems found no broken chown implementations.
26360         Prompted by a change in rsync's copy of this macro.
26361         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
26362
26363         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
26364
26365         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
26366         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
26367         NULL-means-set-to-current-time semantics.
26368         Remove temporary file immediately, rather than waiting
26369         for configure's at-exit trap code to do it.
26370
26371 2005-01-18  Jim Meyering  <jim@meyering.net>
26372
26373         * lib/version-etc.c (version_etc_copyright): Update copyright date.
26374
26375         * lib/utimens.c (futimens): Account for the fact that futimes
26376         can also fail with errno == ENOSYS or errno == ENOENT.
26377         Patch from Dmitry V. Levin.
26378
26379         Change the name of the robust chdir function from chdir to chdir_long.
26380         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
26381         (restore_cwd): Use chdir_long, not chdir.
26382         * lib/chdir-long.c: Renamed from chdir.c.
26383         * lib/chdir-long.h: Renamed from chdir.h.
26384         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
26385         Hurd.
26386
26387 2005-01-18  Bruno Haible  <bruno@clisp.org>
26388
26389         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
26390         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
26391         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
26392         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
26393         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
26394         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
26395         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
26396         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
26397         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
26398         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
26399         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
26400         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
26401         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
26402         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
26403         Use an all-permissive copyright notice, recommended by RMS.
26404
26405 2005-01-18  Bob Proulx  <bob@proulx.com>
26406
26407         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
26408         simplify offsetof() macro construct to avoid compile failure with
26409         native HP-UX 11.0 ANSI C compiler.
26410
26411 2005-01-17  Bruno Haible  <bruno@clisp.org>
26412
26413         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
26414         redundant because stpncpy.m4 takes care of it.
26415
26416 2005-01-17  Bruno Haible  <bruno@clisp.org>
26417
26418         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
26419
26420 2005-01-17  Bruno Haible  <bruno@clisp.org>
26421
26422         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
26423         used.
26424
26425 2005-01-17  Bruno Haible  <bruno@clisp.org>
26426
26427         * lib/fwriteerror.h (fwriteerror): Change specification to include
26428         fclose.
26429         * lib/fwriteerror.c: Include <stdbool.h>.
26430         (fwriteerror): At the end, close the file stream. Record whether
26431         stdout was already closed.
26432
26433 2005-01-17  Bruno Haible  <bruno@clisp.org>
26434
26435         * lib/execute.c (environ): Declare if needed.
26436         * lib/pipe.c (environ): Likewise.
26437         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
26438
26439 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
26440
26441         * modules/argp: Depend on vsnprintf
26442
26443 2005-01-10  Jim Meyering  <jim@meyering.net>
26444
26445         * modules/closeout (Depends-on): Add atexit.
26446
26447 2005-01-06  Bruno Haible  <bruno@clisp.org>
26448
26449         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
26450
26451 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
26452
26453         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
26454         definitions to be after all include files, to avoid collisions.
26455         Problem reported by Bob Proulx.
26456
26457 2005-01-04  Jim Meyering  <jim@meyering.net>
26458
26459         Changes imported from coreutils.
26460         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
26461         as the mkstemp template, use a temporary directory and an
26462         8.3-friendly template to avoid trouble on systems like DJGPP.
26463         Reported by Juan M. Guerrero via Stepan Kasal.
26464         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
26465         close. Remove the temporary directory right away, rather than waiting
26466         for configure's at-exit trap code to do it.
26467         Suggestion from Stepan Kasal.
26468
26469 2005-01-01  Simon Josefsson  <jas@extundo.com>
26470
26471         * gnulib-tool: Print #include directives when --import'ing.
26472
26473 2004-12-28  Simon Josefsson  <jas@extundo.com>
26474
26475         * tests/test-base64.c: Include required header files.  Remove
26476         unused variables.
26477
26478 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
26479
26480         * modules/error (Depends-on): Remove gettext.
26481
26482 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
26483
26484         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
26485         not needed.  This removes a dependency on the gettext module.
26486         [defined _LIBC]: Do not include <libintl.h>; not needed.
26487
26488 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
26489
26490         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
26491         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
26492
26493 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
26494
26495         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
26496         HAVE_DECL_STRTOLD.
26497
26498 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26499
26500         * modules/getdate (Depends-on): Remove alloca-opt.
26501
26502 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26503
26504         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
26505
26506 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26507
26508         * lib/argp-parse.c: Include <stddef.h>.
26509         (alignof, alignto): New macros.
26510         (parser_init): Don't assume that void * is aligned sufficiently
26511         for struct option.
26512
26513         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
26514         need to extend the stack.
26515         (YYINITDEPTH): New macro, so that the initial stack isn't overly
26516         large.
26517
26518 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
26519
26520         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
26521
26522 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
26523
26524         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
26525         (2004-10-24) change.  Apparently this was a false alarm.
26526
26527         * modules/getdate: Depend on alloca-opt, not alloca.
26528
26529 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
26530
26531         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
26532         Remove now-obsolete comment about AIX.
26533         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
26534         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
26535         (YYMAXDEPTH): New macro.
26536
26537 2004-12-18  Simon Josefsson  <jas@extundo.com>
26538
26539         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
26540
26541 2004-12-18  Bruno Haible  <bruno@clisp.org>
26542
26543         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
26544
26545 2004-12-18  Bruno Haible  <bruno@clisp.org>
26546
26547         * lib/fatal-signal.c (fatal_signals): Make non-const.
26548         (init_fatal_signals): New function.
26549         (uninstall_handlers, install_handlers): Ignore signals that were set to
26550         SIG_IGN.
26551         (at_fatal_signal): Call init_fatal_signals.
26552         (init_fatal_signal_set): Likewise. Ignore signals that were set to
26553         SIG_IGN.
26554         Reported by Paul Eggert.
26555
26556 2004-12-18  Bruno Haible  <bruno@clisp.org>
26557
26558         * doc/alloca.texi: New file.
26559         * doc/alloca-opt.texi: New file.
26560
26561 2004-12-17  Jim Meyering  <jim@meyering.net>
26562
26563         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
26564         Otherwise, install-sh could exit with improper exit status when
26565         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
26566
26567 2004-12-16  Simon Josefsson  <jas@extundo.com>
26568
26569         * tests/test-base64.c: Add license.
26570
26571 2004-12-15  Stepan Kasal  <address@hidden>
26572
26573         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
26574
26575 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
26576
26577         * modules/getcwd (Files): Add m4/d-ino.m4.
26578         Suggested by Mark D. Baushke.
26579
26580 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
26581
26582         * lib/getdate.y (textint): New member "negative".
26583         (time_zone_hhmm): New function.
26584         Expect 14 shift-reduce conflicts, not 13.
26585         (o_colon_minutes): New rule.
26586         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
26587         (yylex): Set the "negative" member of signed numbers.
26588
26589 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
26590
26591         * doc/getdate.texi (Time of day items, Time zone items):
26592         Describe new formats +00:00, UTC+00:00.
26593
26594 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
26595
26596         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
26597         spurious "-l"s.  Problem reported by Stepan Kasal.
26598
26599 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
26600
26601         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
26602         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
26603
26604 2004-12-04  Simon Josefsson  <jas@extundo.com>
26605
26606         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
26607         Vandoorselaere <yoann@prelude-ids.org>.
26608
26609 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
26610
26611         Changes imported from coreutils.
26612         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
26613         exist.
26614         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
26615
26616 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
26617
26618         Changes imported from coreutils.
26619         * lib/hard-locale.c: Assume <locale.h> exists.
26620         Include "strdup.h".
26621         (GLIBC_VERSION): New macro.
26622         (hard_locale): Assume setlocale exists.
26623         Rewrite to avoid #ifdef.
26624         Use strdup rather than malloc + strcpy.
26625         * lib/human.c: Assume <locale.h> exists.
26626         (human_readable): Assume localeconv exists.
26627
26628 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
26629
26630         * modules/hard-locale (Depends-on): Add strdup.
26631
26632 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
26633
26634         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
26635         convert T2, not T.  (Imported from libc.)
26636
26637 2004-11-30  Simon Josefsson  <jas@extundo.com>
26638
26639         * modules/restrict (License): Change to LGPL.
26640
26641 2004-11-30  Simon Josefsson  <jas@extundo.com>
26642
26643         * m4/restrict.m4: Add copyright and copying conditions.
26644
26645 2004-11-30  Simon Josefsson  <jas@extundo.com>
26646
26647         * m4/base64.m4: New file.
26648
26649 2004-11-30  Simon Josefsson  <jas@extundo.com>
26650
26651         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
26652         base64.
26653
26654         * tests/test-base64.c: New file.
26655
26656         * modules/base64: New file.
26657
26658 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
26659
26660         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
26661         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
26662
26663         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
26664
26665 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
26666
26667         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
26668         (__getcwd.c): Don't restore errno; glibc doesn't.
26669         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
26670         first, falling back to our code only if its results look suspicious.
26671         Ensure that the resulting buffer is only as large as necessary.
26672
26673         * lib/readutmp.c: Include readutmp.h first.
26674         Include <errno.h>, since readutmp.h no longer does that.
26675         * lib/readutmp.h: Don't include <errno.h>,
26676         <sys/param.h>, <time.h>; not needed to establish interface.
26677         (errno): Remove decl.
26678         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
26679         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
26680         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
26681
26682 2004-11-28  Simon Josefsson  <jas@extundo.com>
26683
26684         * lib/base64.h, base64.c: New file.
26685
26686 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
26687
26688         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
26689
26690 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
26691
26692         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
26693         (Depends-on): Remove pathmax, same.  Add mempcpy.
26694         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
26695         (Makefile.am): Append getcwd.h to lib_SOURCES.
26696         (Include): Add getcwd.h.
26697         (Maintainer): Change from Jim Meyering to "all, glibc",
26698         since getdate now uses intended-for-glibc code.
26699         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
26700         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
26701
26702 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26703
26704         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
26705         HP's ANSI C compiler.
26706         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
26707         Declaring int functions causes warnings on some modern systems and
26708         shouldn't be needed to compile on ancient ones.
26709         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
26710         defined.
26711
26712         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
26713         with the following changes.
26714         (__set_errno): Parenthesize properly.
26715         Include <stdbool.h>.
26716         (MIN, MAX, MATCHING_INO): New macros.
26717         (__getcwd): Define with prototype, not K&R form.
26718         Use heuristics to allocate default buffer on stack if possible.
26719         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
26720         behavior, and to avoid the PATH_MAX limit when computing
26721         ../../../../...
26722         Use MATCHING_INO to compare inode number to file.
26723         Check for arithmetic overflow in size calculations.
26724         Fix bug in reallocation of dot array that caused getcwd to fail
26725         on directories nested deeper than 75.
26726         Be more careful about saving errno on error.
26727         Do not use realloc; use only free+malloc, as this is a bit
26728         more flexible and avoids a needless copy operation.
26729         Do not inspect st_dev and st_ino for symbolic links; POSIX
26730         doesn't specify the latter.
26731         Check for closedir errors.
26732         Avoid needless casts.
26733         Use "#ifdef weak_alias" around weak_alias, to be like other
26734         glibc code.
26735         The following changes to getcwd.c have effect only when used in
26736         gnulib; they have no effect inside glibc proper.
26737         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
26738         as alloca isn't used.
26739         (alloca, __alloca): Likewise.
26740         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
26741         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
26742         unconditionally, as gnulib assumes C89 or better.
26743         Do not include <sys/param.h>.
26744         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
26745         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
26746         better.
26747         (NULL) [!defined NULL]: Remove; we assume C89 or better.
26748         Include <dirent.h> in a way that is compatible with modern Autoconf.
26749         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
26750         New macros, if not already defined.
26751         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
26752         Use "_LIBC", not "defined _LIBC", for consistency.
26753         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
26754         a mempcpy module.
26755         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
26756         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
26757         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
26758         credit only to Jim Meyering and adjust the copyright dates.
26759         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
26760         <stdlib.h>, <unistd.h>, "pathmax.h".
26761         Instead, include "xgetcwd.h" (first) and "getcwd.h".
26762         (INITIAL_BUFFER_SIZE): Remove.
26763         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
26764
26765 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26766
26767         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
26768         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
26769         Use the _ONCE methods, for efficiency.
26770         Check for fcntl.h.  In test program, include <errno.h>
26771         and <fcntl.h> if available.  Remove old K&R cruft from
26772         test program.  Check for common errors in GNU/Linux,
26773         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
26774         don't do AC_LIBOBJ, as that's getcwd.m4's job.
26775         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
26776         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
26777         name accordingly.
26778         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
26779         accommodate new getcwd.c.
26780         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
26781         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
26782         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
26783         that's all we need now.
26784
26785 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
26786
26787         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
26788         argp-parse.c depends on getopt internals, that means we should
26789         always use our getopt, to be on the safe side.
26790         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
26791         order not to spoil the result of an eventual previous invocation
26792         of gl_GETOPT_SUBSTITUTE.
26793
26794 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
26795
26796         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
26797         redefinition warnings. To avoid them, include the defines
26798         in `#if !defined __need_getopt ... #endif'. The only place
26799         where __getopt_argv_const is used is in definitions
26800         of getopt_long and getopt_long_only below, which are as well
26801         protected by `#ifndef __need_getopt'.
26802         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
26803         __need_getopt after including <stdio.h> and <unistd.h> These
26804         headers might have defined it.
26805
26806 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
26807
26808         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
26809
26810 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
26811
26812         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
26813         (futimens): New function, which uses futimes if available.
26814         (futimens, utimens): Support timespec==NULL, with same semantics
26815         as utime and utimens.
26816         * lib/utimens.h (futimens): New decl.
26817
26818 2004-11-23  Jim Meyering  <jim@meyering.net>
26819
26820         * lib/getopt_.h: Remove trailing blanks.
26821
26822 2004-11-23  Jim Meyering  <jim@meyering.net>
26823
26824         * lib/__fpending.c: Add comment.
26825
26826 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
26827
26828         * modules/canonicalize (Depends-on): Add xreadlink.
26829         Problem reported by James Youngman.
26830
26831 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
26832
26833         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
26834         New macros.
26835         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
26836         optopt): Use them instead of invoking ## directly; otherwise, the
26837         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
26838
26839 2004-11-19  Bruno Haible  <bruno@clisp.org>
26840
26841         * lib/strtok_r.c: Move comments from here...
26842         * lib/strtok_r.h: ... to here.
26843
26844 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
26845
26846         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
26847         implementations that mishandle size_t overflow.
26848
26849 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
26850
26851         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
26852         might fail.  Problem reported by Yoann Vandoorselaere.
26853         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
26854         implementations that mishandle size_t overflow.
26855
26856 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
26857
26858         * modules/canon-host (Depends-on): Add strdup.
26859
26860 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
26861
26862         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
26863
26864 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
26865
26866         * lib/canon-host.c: Include "strdup.h".
26867         (canon_host): Use getaddrinfo if available, so that IPv6 works.
26868         Use strdup instead of malloc/strcpy to duplicate strings.
26869
26870         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
26871         (human_space_before_unit): New constant.
26872         * lib/human.c (human_readable): Support it.
26873
26874         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
26875         (xgetcwd): Set errno correctly when failing.
26876         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
26877         the failure is actually due to a PATH_MAX problem.
26878
26879         Further getopt changes to make it more likely that glibc will
26880         buy the changes back.
26881         * lib/getopt.c (POSIXLY_CORRECT): New constant.
26882         (getopt): Use it, so to preserve glibc semantic
26883         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
26884         when compiling for libc.
26885         * lib/getopt_.h (__getopt_argv_const): Bring it back.
26886         (getopt_long, getopt_long_only): Use it.
26887
26888         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
26889         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
26890         (getopt): Argv is now char * const *, as per standard.
26891         (_getopt_internal_r, _getopt_internal): Argv is now char **,
26892         not char *__getopt_argv_const *.
26893         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
26894         _getopt_long_only_r): Likewise.
26895         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
26896         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
26897         _getopt_long_r, _getopt_long_only_r): Likewise.
26898         * lib/getopt_.h (__getopt_argv_const): Remove.
26899         (getopt): Argv is now char * const *, as per standard.
26900
26901         * lib/getdate.y (tORDINAL): New token.
26902         (day, relunit): Allow it for relative times.
26903         (relative_time_table): Use tORDINAL for ordinals.
26904
26905 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
26906
26907         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
26908         Document that "second" isn't allowed as an ordinal number.
26909
26910 2004-11-16  Jim Meyering  <jim@meyering.net>
26911
26912         * modules/closeout (Depends-on): Add fpending.
26913
26914 2004-11-15  Jim Meyering  <jim@meyering.net>
26915
26916         * lib/closeout.c: Include "__fpending.h" once again.
26917         Include <stdbool.h>.
26918         (close_stdout): Don't fail just because stdout was closed initially,
26919         since some programs don't write to stdout in the normal course of
26920         operation (other than --version and --help), and we don't want this
26921         function to make e.g. `touch file >&-' fail.
26922         But do fail if it was closed and someone has tried to write to it.
26923         E.g., `printf foo >&-' must fail.
26924
26925 2004-11-13  Jim Meyering  <jim@meyering.net>
26926
26927         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
26928
26929 2004-11-12  Simon Josefsson  <jas@extundo.com>
26930
26931         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
26932         small doc fix is still pending.
26933
26934 2004-11-11  Simon Josefsson  <jas@extundo.com>
26935
26936         * modules/strtok_r: New file.
26937
26938         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26939         strtok_r.
26940
26941 2004-11-11  Simon Josefsson  <jas@extundo.com>
26942
26943         * m4/strtok_r.m4: New file.
26944
26945         * m4/getopt.m4: Replace opterr.
26946
26947 2004-11-11  Simon Josefsson  <jas@extundo.com>
26948
26949         * lib/strtok_r.h, strtok_r.c: New file.
26950
26951 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
26952
26953         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
26954         of replacing opterr, getopt, etc.  This should handle the
26955         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
26956
26957 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
26958
26959         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
26960         we can stop lying to compilers about the constness of argv when we
26961         are compiled outside glibc.
26962         (getopt, getopt_long, getopt_long_only): Use it.
26963         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
26964         _getopt_internal, getopt): Likewise.
26965         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
26966         _getopt_long_only_r): Likewise.
26967         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
26968         _getopt_long_r, _getopt_long_only_r): Likewise.
26969
26970         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
26971         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
26972         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
26973         the other external symbols.
26974         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
26975         declaration, since the above renaming now works around collisions.
26976
26977 2004-11-11  Jim Meyering  <jim@meyering.net>
26978
26979         * lib/linebreak.c: Remove trailing blanks.
26980         * lib/alloca_.h: Likewise.
26981         * lib/acosl.c: Likewise.
26982         * lib/euidaccess.c: Likewise.
26983         * lib/allocsa.h: Likewise.
26984
26985 2004-11-10  Simon Josefsson  <jas@extundo.com>
26986
26987         * m4/getaddrinfo.m4: New file.
26988
26989 2004-11-10  Simon Josefsson  <jas@extundo.com>
26990
26991         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
26992
26993 2004-11-10  Simon Josefsson  <jas@extundo.com>
26994
26995         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26996         getaddrinfo.
26997
26998         * modules/getaddrinfo: New file.
26999
27000 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
27001
27002         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
27003
27004 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
27005
27006         * lib/mktime.c (SHR): New macro, which is a portable
27007         substitute for >> that should work even on Crays.
27008         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
27009         Problem reported by Mark D. Baushke in
27010         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
27011         * lib/getdate.y (SHR): Likewise.
27012         (tm_diff): Use it.
27013         * lib/strftime.c (SHR): Likewise.
27014         (tm_diff): Use it.
27015         * lib/quotearg.c (struct quoting_options): Use unsigned int for
27016         quote_these_too, so that right shifts are well defined.  All uses
27017         changed.
27018
27019 2004-11-10  Jim Meyering  <jim@meyering.net>
27020
27021         Ensure that no close failure goes unreported.
27022         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
27023         return early when it seems there's nothing to flush.
27024         Don't include __fpending.h.
27025
27026 2004-11-10  Jim Meyering  <jim@meyering.net>
27027
27028         * modules/closeout (Depends-on): Remove fpending.
27029
27030 2004-11-10  Jim Meyering  <jim@meyering.net>
27031
27032         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
27033
27034 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
27035
27036         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
27037         gl_FUNC_STRFTIME.
27038         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
27039         and AC_REQUIRE when possible, to avoid duplicate checks.
27040         Check for <wchar.h>.
27041
27042 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
27043
27044         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
27045
27046 2004-11-09  Bruno Haible  <bruno@clisp.org>
27047
27048         * m4/sockpfaf.m4: New file.
27049
27050 2004-11-05  Bruno Haible  <bruno@clisp.org>
27051
27052         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
27053         Reported by Mark D. Baushke <mdb@cvshome.org>.
27054
27055 2004-11-04  Bruno Haible  <bruno@clisp.org>
27056
27057         2004-09-11  Bruno Haible  <bruno@clisp.org>
27058                 * allocsa.valgrind: New file.
27059         2004-02-06  Bruno Haible  <bruno@clisp.org>
27060                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
27061                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
27062                 Reported by Christopher Seip <chris.seip@hp.com>.
27063
27064 2004-11-04  Bruno Haible  <bruno@clisp.org>
27065
27066         * modules/allocsa (Files): Add lib/allocsa.valgrind.
27067         (Makefile.am): Distribute it.
27068
27069 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
27070
27071         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
27072         with errno == ERANGE if the buffer is too small.
27073         Problem reported by Mark D. Baushke.
27074
27075 2004-11-03  Albert Chin  <china@thewrittenword.com>
27076             Paul Eggert  <eggert@cs.ucla.edu>
27077
27078         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
27079         equivalent, substitute $ac_type for equivalent type rather than
27080         blindly using uint32_t *always* which won't work if uint32_t is not
27081         available.  Define _UINT32_T to work around typedef of uint32_t if
27082         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
27083         2.5.1.
27084
27085 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
27086
27087         * m4/jm-macros.m4: Sync from coreutils.
27088         (gl_MACROS): Check for mbrlen, for pathchk.
27089         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
27090
27091 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
27092
27093         * lib/xreadlink.c (MAXSIZE): New macro.
27094         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
27095         size does not exceed MAXSIZE.  Avoid cast.
27096         As suggested by Mark D. Baushke in
27097         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
27098         if readlink fails with buffer size just under MAXSIZE, try again
27099         with MAXSIZE.
27100
27101 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
27102
27103         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
27104
27105 2004-11-02  Derek R. Price  <derek@ximbiot.com>
27106         and  Paul Eggert  <eggert@cs.ucla.edu>
27107
27108         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
27109         (get_date): Overparenthesize to avoid GCC warning.
27110
27111 2004-11-02  Bruno Haible  <bruno@clisp.org>
27112
27113         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
27114         returns void.
27115
27116 2004-11-02  Bruno Haible  <bruno@clisp.org>
27117
27118         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
27119         function returns void.
27120
27121 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
27122
27123         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
27124         fflush_unlocked, flockfile, funlockfile, funlockfile,
27125         fputs_unlocked, putc_unlocked.
27126
27127 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
27128
27129         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
27130         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
27131         already declared.
27132
27133 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
27134
27135         * modules/getdate (Files): Add doc/getdate.texi.
27136         (Depends-on): Add setenv, xalloc.
27137
27138 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
27139
27140         * lib/getdate.y: Add support for TZ="foo" within a date string.
27141         Fix some bugs near time_t boundaries.  Reject dates with
27142         out-of-range components, e.g., "Sept 31".
27143         Include <stdlib.h>, "setenv.h", "xalloc.h".
27144         (ISDIGIT_LOCALE): Remove; unused.
27145         Note that the TZ and time functions used here are not reentrant.
27146         (mktime_ok, get_tz): New functions.
27147         (TZBUFSIZE): New constant.
27148         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
27149         This requires that we sometimes generate our own TZ="XXX..." setting.
27150
27151 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
27152
27153         * doc/getdate.texi: New file, from coreutils with modifications for
27154         the new TZ parsing.
27155
27156 2004-10-27  Derek R. Price  <derek@ximbiot.com>
27157
27158         * lib/mktime.c (not_equal_tm): Remove redundant check.
27159
27160 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
27161
27162         * modules/regex (lib_SOURCES): Add regex.c.
27163         Reported by James Youngman in
27164         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
27165
27166 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
27167
27168         * lib/getdate.y: Use Bison 1.875 features, and some minor
27169         code cleanups.  This change does not affect semantics.
27170         Don't include <stdlib.h>; no longer needed.
27171         Don't include unlocked-io.h; only the "#if TEST" code uses
27172         stdio, and performance isn't crucial there.
27173         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
27174         Bison 1.875 features as described below.
27175         All uses of "PC." replaced by "pc->".
27176         (YYSTYPE): Add a forward declaration.
27177         (yylex, yyerror): Use full prototypes in forward decls.
27178         Use "%pure-parser" rather than obsolescent "%pure_parser".
27179         Use %parse-param and %lex-param instead of obsolescent
27180         YYPARSE_PARAM and YYLEX_PARAM.
27181         (meridian_table, month_and_day_table, time_units_table,
27182         relative_time_table, time_zone_table, military_table,
27183         lookup_zone, lookup_word, get_date):
27184         Use NULL instead of 0 where appropriate.
27185         (to_hour): Avoid abort (), to avoid a dependency on
27186         stdlib.h.
27187         (yyerror, yylex): Now accepts parser_control * arg.
27188         (main) [TEST]: Use '\0' rather than 0 for char.
27189
27190 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
27191
27192         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
27193
27194 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
27195
27196         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
27197         It's now the caller's responsibility to handle the case where
27198         !HAVE_GETPAGESIZE && !defined getpagesize.
27199
27200         * lib/mktime.c (leapyear): Arg is long int, not int.
27201
27202 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
27203
27204         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
27205
27206 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
27207
27208         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
27209         missing.  Problem reported by James Youngman.
27210
27211 2004-10-16  Simon Josefsson  <jas@extundo.com>
27212
27213         * gnulib-tool: Fix comments.  Fix parse problem.
27214         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
27215
27216 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
27217
27218         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
27219         implementation of getopt_long.  Problem reported by Alexander Taler in:
27220         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
27221
27222 2004-10-15  Bruno Haible  <bruno@clisp.org>
27223
27224         * gnulib-tool: Untabify. Initialize supplied_libname.
27225         (func_usage): More homogenous output.
27226         (func_modules_transitive_closure, func_modules_to_filelist,
27227         func_emit_lib_Makefile_am): New functions.
27228         (func_import): New function, extracted from big case statement. Use
27229         func_get_license, func_modules_transitive_closure,
27230         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
27231         opt_lgpl. Don't use test -a, as it's not portable.
27232         (func_create_testdir): Use func_modules_transitive_closure,
27233         func_modules_to_filelist, func_emit_lib_Makefile_am.
27234
27235 2004-10-15  Bruno Haible  <bruno@clisp.org>
27236
27237         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
27238
27239 2004-10-15  Bruno Haible  <bruno@clisp.org>
27240
27241         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
27242         the portions belonging to each module.
27243         Suggested by Derek Robert Price <derek@ximbiot.com>.
27244
27245 2004-10-12  Simon Josefsson  <jas@extundo.com>
27246
27247         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
27248         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
27249         to real functions.
27250
27251 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27252
27253         * modules/vsnprintf: New file.
27254
27255 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27256
27257         * m4/vsnprintf.m4: New file.
27258
27259 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27260
27261         * lib/vsnprintf.h: New file.
27262         * lib/vsnprintf.c: New file.
27263
27264 2004-10-11  Bruno Haible  <bruno@clisp.org>
27265
27266         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
27267         vsnprintf.
27268
27269 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
27270
27271         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
27272
27273 2004-10-07  Bruno Haible  <bruno@clisp.org>
27274
27275         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
27276         fits into the provided buffer.
27277
27278 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
27279
27280         * lib/diacrit.c, diacrit.h: Add GPL notice.
27281
27282         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
27283         notice.
27284         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
27285         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
27286         This avoids a potential constant-folding bug.
27287
27288 2004-10-05  Bruno Haible  <bruno@clisp.org>
27289
27290         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
27291         for the declaration of strsep.
27292
27293 2004-10-05  Bruno Haible  <bruno@clisp.org>
27294
27295         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
27296
27297 2004-10-04  Simon Josefsson  <jas@extundo.com>
27298
27299         * modules/memmem: New file.
27300         * tests/test-memmem.c: New file.
27301         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
27302
27303 2004-10-04  Simon Josefsson  <jas@extundo.com>
27304
27305         * m4/memmem.m4: New file.
27306
27307 2004-10-04  Simon Josefsson  <jas@extundo.com>
27308
27309         * lib/memmem.h: New file.
27310         * lib/memmem.c: New file, taken from glibc.
27311
27312 2004-10-04  Simon Josefsson  <jas@extundo.com>
27313
27314         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
27315         '#ifdef USE_UNLOCKED_IO'.
27316
27317 2004-10-04  Simon Josefsson  <jas@extundo.com>
27318
27319         * config/srclist.txt: Add memmem from glibc.
27320
27321 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
27322
27323         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
27324
27325         * modules/argmatch, modules/argp, modules/closeout, modules/error,
27326         modules/exclude, modules/getdate, modules/getline,
27327         modules/getndelim2, modules/getpass, modules/getpass-gnu,
27328         modules/getusershell, modules/linebuffer, modules/md5,
27329         modules/mountlist, modules/posixtm, modules/readtokens,
27330         modules/readutmp, modules/regex, modules/sha1,
27331         modules/version-etc, modules/yesno:
27332         Remove dependency on unlocked-io.
27333
27334 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
27335
27336         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
27337
27338         * m4/unlocked-io.m4: Add copyright notice.
27339         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
27340
27341 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
27342
27343         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
27344         * lib/xmalloc.c (xmemdup): Likewise.
27345         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
27346         XFREE): Remove these long-obsolescent macros.
27347         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
27348         * lib/xstrdup.c: Remove.
27349
27350         * lib/regex.c (re_comp): Cast gettext return value to char *,
27351         Problem reported by Martin Neitzel via Mark D. Baushke.
27352
27353 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
27354
27355         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
27356         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
27357         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
27358         regex.c, sha1.c, version-etc.c, yesno.c:
27359         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
27360         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
27361         the includer's responsibility.
27362
27363         Sync from coreutils.
27364
27365         * lib/modechange.c (mode_compile): Don't decrement a pointer that
27366         points to the start of a string, as the C Standard says the
27367         resulting behavior is undefined.
27368
27369         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
27370         simple -> simple_backups, numbered_existing ->
27371         numbered_existing_backups, numbered -> numbered_backups
27372         to avoid shadowing problems.  All uses changed.
27373         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
27374         * lib/backupfile.c (check_extension, numbered_backup):
27375         Rename locals to avoid shadowing 'basename'.
27376         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
27377         once.
27378
27379         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
27380         * lib/.cvsignore: Add getopt.h.
27381
27382 2004-10-04  Bruno Haible  <bruno@clisp.org>
27383
27384         * modules/README: New file.
27385         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
27386         not a module.
27387
27388 2004-10-02  Jim Meyering  <jim@meyering.net>
27389
27390         * lib/dirfd.h, getpagesize.h: Add copyright notice.
27391
27392 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27393
27394         * modules/strsep: New file.
27395
27396 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27397
27398         * m4/strsep.m4: New file.
27399
27400 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27401
27402         * lib/strsep.h: New file.
27403         * lib/strsep.c: New file.
27404
27405 2004-10-01  Simon Josefsson  <jas@extundo.com>
27406
27407         * lib/snprintf.c (snprintf): Handle size==0.
27408
27409 2004-10-01  Simon Josefsson  <jas@extundo.com>
27410             Bruno Haible  <bruno@clisp.org>
27411
27412         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
27413         (snprintf): Declare 'args'.
27414
27415 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
27416
27417         * lib/snprintf.c: Remove comments as to why each header is needed.
27418
27419 2004-10-01  Bruno Haible  <bruno@clisp.org>
27420
27421         * MODULES.html.sh: Add strsep.
27422
27423 2004-09-30  Simon Josefsson  <jas@extundo.com>
27424
27425         * modules/snprintf: New file.
27426
27427 2004-09-30  Simon Josefsson  <jas@extundo.com>
27428
27429         * m4/snprintf.m4: New file.
27430
27431 2004-09-30  Simon Josefsson  <jas@extundo.com>
27432
27433         * lib/snprintf.h, lib/snprintf.c: New files.
27434
27435 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27436
27437         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
27438         (hol_entry_help): Never translate an empty string.
27439         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
27440         * lib/argp.h (OPTION_NO_TRANS): New option.
27441
27442 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
27443
27444         * modules/argp (Maintainer): Replace Simon Josefsson
27445         by Sergey Poznyakoff.
27446
27447 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
27448
27449         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
27450         changes merged back into glibc.
27451
27452 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
27453
27454         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
27455
27456 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
27457
27458         * lib/xvasprintf.c: Include xalloc.h.
27459         (xvasprintf): Use xalloc_die, not xmalloc_die.
27460
27461 2004-09-29  Bruno Haible  <bruno@clisp.org>
27462
27463         * modules/alloca-opt: New file, derived from modules/alloca.
27464         * modules/allocsa: Depend on alloca-opt instead of alloca.
27465         * modules/setenv: Likewise.
27466         * modules/vasnprintf: Likewise.
27467         * MODULES.html.sh: Add alloca-opt.
27468
27469 2004-09-28  Simon Josefsson  <jas@extundo.com>
27470
27471         * gnulib-tool: New parameter --lgpl, to asseert that modules are
27472         LGPL, and to replace license template from GPL to LGPL.
27473
27474 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
27475
27476         * modules/dummy: Change license to LGPL.
27477
27478 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
27479
27480         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
27481
27482 2004-09-24  Simon Josefsson  <jas@extundo.com>
27483
27484         * modules/minmax (License): Change from GPL to LGPL.
27485
27486 2004-09-23  Simon Josefsson  <jas@extundo.com>
27487
27488         * gnulib-tool (--import): Typo.
27489
27490 2004-09-23  Simon Josefsson  <jas@extundo.com>
27491
27492         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
27493
27494 2004-09-22  Bruno Haible  <bruno@clisp.org>
27495
27496         * modules/*: Add 'License' field.
27497         * gnulib-tool: Accept --extract-license option.
27498         (func_get_license): New function.
27499
27500 2004-09-21  Bruno Haible  <bruno@clisp.org>
27501
27502         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
27503         Reported by Simon Josefsson.
27504
27505 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
27506
27507         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
27508         gl_AC_TYPE_LONG_LONG.
27509
27510 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
27511
27512         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
27513
27514 2004-09-18  Simon Josefsson  <jas@extundo.com>
27515         and  Paul Eggert  <eggert@cs.ucla.edu>
27516
27517         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
27518         calls with autoreconf.  Define GL_LIB.
27519
27520 2004-09-14  Karl Berry  <karl@gnu.org>
27521
27522         * config/srclist.txt: unsync setenv.c, sigh.
27523
27524 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27525
27526         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
27527         Problem reported by Bruno Haible in:
27528         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
27529
27530 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27531
27532         * config/srclist.txt: Comment out argp-pvh.c.
27533
27534 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
27535
27536         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
27537         in case some system header has #define'd it.  Problem reported by
27538         Soeren D. Schulze in
27539         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
27540
27541 2004-09-09  Karl Berry  <karl@gnu.org>
27542
27543         * regex.[ch]: delete from the root.  These were supposed to be
27544                 synced with emacs cvs, but this has not happened for about
27545                 a year, and anyway nothing else uses emacs regex.[ch].
27546                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
27547                 lib/regex[.ch] is untouched.
27548
27549 2004-09-09  Bruno Haible  <bruno@clisp.org>
27550
27551         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
27552
27553 2004-09-09  Bruno Haible  <bruno@clisp.org>
27554
27555         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
27556         modifications.
27557         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
27558
27559 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
27560
27561         * modules/xvasprintf: New file.
27562         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
27563
27564 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
27565
27566         * lib/xvasprintf.h: New file.
27567         * lib/xvasprintf.c: New file.
27568         * lib/xasprintf.c: New file.
27569
27570 2004-09-08  Bruno Haible  <bruno@clisp.org>
27571
27572         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
27573
27574 2004-09-08  Bruno Haible  <bruno@clisp.org>
27575
27576         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
27577         length is > INT_MAX.
27578         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
27579         more.
27580
27581 2004-09-08  Bruno Haible  <bruno@clisp.org>
27582
27583         * lib/stdint_.h: New file, taken from GNU clisp.
27584
27585 2004-09-08  Bruno Haible  <bruno@clisp.org>
27586             Oskar Liljeblad  <oskar@osk.mine.nu>
27587
27588         * modules/stdint: New file.
27589         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
27590
27591 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
27592
27593         Import from coreutils.
27594         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
27595         strings on unbounded length.  alloca's performance benefits aren't
27596         that important here.
27597         (V_STRDUP): Remove.
27598         (parse_with_separator): New function, with most of the internals
27599         of the old parse_user_spec.  Allow user to omit both user and group,
27600         for compatibility with FreeBSD.
27601         Clone only the user name, not the entire spec.
27602         Do not set *uid, *gid unless entirely successful.
27603         Avoid memory leak in some failing cases.
27604         Fix regression for USER.GROUP reported by Dmitry V. Levin in
27605         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
27606         (parse_user_spec): Rewrite to use parse_with_separator.
27607
27608 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
27609
27610         * modules/userspec: Don't depend on alloca.
27611
27612 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
27613
27614         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
27615
27616 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
27617
27618         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
27619         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
27620         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
27621
27622 2004-08-16  Simon Josefsson  <jas@extundo.com>
27623
27624         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
27625         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
27626         Add --dry-run for --import.
27627         Let user provided command line parameters override configure.ac
27628         settings.
27629
27630 2004-08-12  Simon Josefsson  <jas@extundo.com>
27631
27632         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
27633         as discussed with Paul Eggert in threads rooted at
27634         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
27635         and
27636         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
27637         Before, the test was empty, and relied on ELIDE_CODE in source
27638         code.)
27639         (gl_PREREQ_GETOPT): New macro.
27640         (gl_GETOPT): Use them.
27641
27642 2004-08-12  Simon Josefsson  <jas@extundo.com>
27643
27644         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
27645         * lib/getopt_.h: Renamed from getopt.h.
27646
27647 2004-08-12  Simon Josefsson  <jas@extundo.com>
27648
27649         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
27650         Change default library name from libfoo to libgnu.
27651         Now, if you have a configure.ac that says:
27652                 gl_SOURCE_BASE(gl)
27653                 gl_M4_BASE(gl/m4)
27654                 gl_MODULES(error getopt etcetera)
27655                 gl_INIT
27656         you can import all you need by running:
27657                 ../gnulib/gnulib-tool --import
27658
27659         * modules/getopt (Files): Rename getopt.h to getopt_.h.
27660         (Makefile.am): Rewrite, use logic from argz.
27661         (Include): Use <getopt.h> instead of "getopt.h".
27662
27663 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
27664
27665         * modules/argp (Files): Add m4/unlocked-io.m4.
27666         (Depends-on): Add extensions.
27667
27668 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
27669
27670         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
27671         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
27672         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
27673         Check for program_invocation_name, program_invocation_short_name,
27674         flockfile, funlockfile, features.h, _getopt_long_only_r.
27675
27676 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
27677
27678         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
27679         its complicated substitute.
27680         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
27681         and program_invocation_name.
27682         (__argp_basename) [!_LIBC]: Remove; the only use was
27683         replaced by its body.
27684         (__argp_short_program_name): Change condition from
27685         !defined __argp_short_program_name to
27686         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
27687         to match argp-namefrob.h.
27688         (__argp_failure): Don't assume strerror_r returns char *.
27689         * lib/argp-parse.c (N_): Define unconditionally.
27690         (argp_default_options): Fill out initializers with 0 to avoid
27691         gcc warnings.
27692
27693 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
27694
27695         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
27696         getopt1.c.
27697
27698 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
27699
27700         Merge from coreutils.
27701
27702         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
27703
27704         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
27705         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
27706
27707 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
27708
27709         Merge from coreutils.
27710
27711         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
27712         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
27713         for Reliant Unix 5.43.
27714
27715         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
27716         (union fooround): Use uintmax_t, not long int.
27717         The rest is a merge from libc:
27718         [defined _LIBC]: Include <shlib-compat.h>.
27719         (_obstack) [defined _LIBC]: Remove after 2.3.4.
27720
27721         * lib/settime.c (settime): Recode to avoid warning with
27722         Sun Forte C 6U2.
27723
27724         * lib/strverscmp.c: Convert to UTF-8.
27725
27726 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
27727
27728         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
27729         m4/uintmax_t.m4.
27730
27731 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
27732
27733         * modules/xalloc-die: New file.
27734         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
27735
27736         * modules/md5 (Files): Add m4/uint32_t.m4.
27737         * modules/sha1: Renamed from modules/sha.
27738         (Files):
27739         Rename lib/sha.h to lib/sha1.h.
27740         Rename lib/sha.c to lib/sha1.c.
27741         Rename m4/sha.m4 to m4/sha1.m4.
27742         (lib_SOURCES): Likewise.
27743         (configure.ac): Rename gl_SHA to gl_SHA1.
27744         (Include): sha.h -> sha1.h.
27745
27746 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
27747
27748         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
27749         * m4/sha1.m4: Renamed from sha.m4.
27750         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
27751
27752 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
27753
27754         * lib/obstack.h (obstack_empty_p):
27755         Don't assume that chunk->contents is suitably aligned.
27756         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
27757         Likewise. Problem reported by Benno in
27758         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
27759
27760         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
27761         readable.  This could be improved further but it'd take some work.
27762
27763 2004-08-08  Simon Josefsson  <jas@extundo.com>
27764
27765         * modules/xgethostname (Depends-on): Remove exit and error (not
27766         used).
27767
27768         * modules/getpass-gnu: Add getpass.h.
27769         (Depends-on): Add stdbool.
27770         * modules/getpass: Add getpass.h.
27771
27772 2004-08-08  Simon Josefsson  <jas@extundo.com>
27773
27774         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
27775         Check getpass declaration.
27776
27777 2004-08-08  Simon Josefsson  <jas@extundo.com>
27778
27779         * lib/xgethostname.c: Don't include error.h (not used).
27780
27781         * lib/getpass.h: Add.
27782         * lib/getpass.c: Include getpass.h first.
27783
27784 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
27785
27786         * lib/xalloc-die.c: New file.
27787         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
27788         All uses removed.
27789         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
27790         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
27791         xalloc-die.c.
27792         (_, N_, xalloc_die): Move to xalloc-die.c.
27793         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
27794         so that we needn't mess with xalloc_msg_memory_exhausted.
27795
27796         * lib/sha1.h: Renamed from sha.h.
27797         (SHA1_H): Renamed from _SHA_H.
27798         (sha1_ctx): Renamed from sha_ctx.
27799         (sha1_init_ctx): Renamed from sha_init_ctx.
27800         (sha1_process_block): Renamed from sha_process_block.
27801         (sha1_process_bytes): Renamed from sha_process_bytes.
27802         (sha1_finish_ctx): Renamed from sha_finish_ctx.
27803         (sha1_read_ctx): Renamed from sha_read_ctx.
27804         (sha1_stream): Renamed from sha_stream.
27805         (sha1_buffer): Renamed from sha_buffer.
27806         * lib/sha1.c: Likewise; renamed from sha.c.
27807         Do not include <sys/types.h>.
27808         Include <stddef.h> rather than <stdlib.h>.
27809
27810 2004-08-08  Bruno Haible  <bruno@clisp.org>
27811
27812         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
27813         FILESYSTEM_PREFIX_LEN.
27814         * lib/progreloc.c: Likewise.
27815         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
27816
27817 2004-08-06  Simon Josefsson  <jas@extundo.com>
27818
27819         * modules/progname (Depends-on): Don't depend on stdbool.
27820
27821 2004-08-06  Simon Josefsson  <jas@extundo.com>
27822
27823         * modules/getsubopt: New file.
27824         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27825         getsubopt.
27826
27827 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
27828
27829         More merge from coreutils.
27830
27831         * m4/utimens.m4, m4/utimecmp.m4: New files.
27832         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
27833         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
27834         prereq.m4, sha.m4: Import changes from coreutils.
27835
27836 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
27837
27838         More merge from coreutils.
27839         * modules/raise, modules/readtokens0, modules/utimens:
27840         * modules/utimecmp, module/xnanosleep: New files.
27841         * modules/strftime: Add lib/strftime.h.
27842         Change include from <time.h> to "strftime.h".
27843         * modules/yesno: Add lib/yesno.h.
27844         * modules/backupfile: Remove lib/addext.c.
27845         * modules/euidaccess: Add stat-macros.h.
27846         * modules/canonicalize, modules/euidaccess,
27847         modules/filemode, modules/lchown, modules/makepath,
27848         modules/rmdir, modules/stat: Likewise.
27849
27850 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
27851
27852         Merge from tar.
27853         * lib/argp-help.c (make_hol, hol_append): Don't assume that
27854         SIZE_MAX is a valid preprocessor constant.
27855         (__argp_basename): Change from "#ifndef _LIBC"
27856         to "#ifndef __argp_short_program_name", so that
27857         we don't compile these functions for tar.
27858
27859         More merges from coreutils.
27860         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
27861         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
27862         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
27863         * lib/addext.c: Remove; no longer needed.
27864         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
27865         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
27866         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
27867         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
27868         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
27869         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
27870         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
27871         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
27872         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
27873         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
27874         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
27875         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
27876         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
27877         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
27878         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
27879         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
27880         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
27881         Import changes from coreutils.
27882
27883 2004-08-05  Simon Josefsson  <jas@extundo.com>
27884
27885         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
27886
27887 2004-08-05  Simon Josefsson  <jas@extundo.com>
27888
27889         * m4/getsubopt.m4: New file.
27890
27891 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
27892
27893         Merge from coreutils.
27894
27895         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
27896         * m4/getcwd-path-max.m4: New files.
27897
27898         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
27899         FILESYSTEM_PREFIX_LEN ->
27900         FILE_SYSTEM_PREFIX_LEN.
27901         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
27902         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
27903         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
27904         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
27905
27906         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
27907         prerequisite modules now handle the DOS stuff.
27908         Don't check for unistd.h.
27909
27910 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
27911
27912         Merge from coreutils.
27913
27914         * lib/.gdb-history: Remove; this doesn't belong here.
27915
27916         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
27917         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
27918         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
27919         * lib/getcwd.c: New files.
27920
27921         * lib/dirname.h: Include <stdbool.h>.
27922         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
27923         for consistency with POSIX terminology.  All uses changed.
27924         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
27925         (strip_trailing_slashes): Use bool for booleans.
27926         * lib/stripslash.c (strip_trailing_slashes): Likewise.
27927
27928         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
27929         sometimes returns a positive errno value even when it succeeds.
27930         (print_errno_message) [!LIBC]: Fall back on strerror if
27931         __strerror_r fails.
27932
27933         * lib/path-concat.c (mempcpy): Don't define if a system header defines
27934         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
27935         (longest_relative_suffix): New function.
27936         (path_concat): Use it.  Assume first argument is not NULL.
27937         Port to DOS.  Omit redundant separators.
27938         Report an error instead of returning NULL.
27939         Use mempcpy instead of memcpy.
27940         (xpath_concat): Remove: not declared or used.
27941
27942         * lib/same.h: Include <stdbool.h>
27943         (same_name): Return bool, not int.
27944         * lib/same.c (same_name): Likewise.
27945         (errno): Don't declare; we assume C89 or better now.
27946
27947         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
27948         if not already defined.
27949
27950         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
27951         * lib/dup-safer.c (errno): Likewise.
27952
27953 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
27954
27955         Merge from coreutils.
27956         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
27957         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
27958         * modules/path-concat: Don't depend on strdup.
27959
27960 2004-08-03  Simon Josefsson  <jas@extundo.com>
27961
27962         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
27963         * lib/progname.h: Don't include stdbool.h.
27964
27965 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
27966
27967         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
27968         * MODULES.html.sh (func_all_modules): Remove fatal.
27969
27970 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
27971
27972         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
27973
27974 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
27975
27976         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
27977         working.
27978
27979 2004-08-02  Simon Josefsson  <jas@extundo.com>
27980
27981         * lib/getsubopt.h: New file, with comments from Bruno Haible.
27982         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
27983         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
27984
27985 2004-08-01  Simon Josefsson  <jas@extundo.com>
27986
27987         * lib/xgetdomainname.c: Include stdlib.h, for free().
27988
27989 2004-07-19  Bruno Haible  <bruno@clisp.org>
27990
27991         * MODULES.html.sh (func_all_modules): Add dummy.
27992
27993 2004-07-16  Simon Josefsson  <jas@extundo.com>
27994
27995         * modules/dummy: New file.
27996
27997 2004-07-16  Simon Josefsson  <jas@extundo.com>
27998
27999         * lib/dummy.c: New file.
28000
28001 2004-07-16  Bruno Haible  <bruno@clisp.org>
28002
28003         * lib/backupfile.h: Add extern "C" for C++.
28004         * lib/closeout.h: Likewise.
28005         * lib/copy-file.h: Likewise.
28006         * lib/findprog.h: Likewise.
28007         * lib/full-write.h: Likewise.
28008         * lib/pathname.h: Likewise.
28009         * lib/progname.h: Likewise.
28010         * lib/stpcpy.h: Likewise.
28011         * lib/stpncpy.h: Likewise.
28012         * lib/strcase.h: Likewise.
28013         * lib/strstr.h: Likewise.
28014         * lib/xalloc.h: Likewise.
28015
28016         * lib/mbswidth.h: Add extern "C" for C++.
28017         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
28018
28019 2004-07-13  Robert Millan  <robertmh@gnu.org>
28020
28021         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
28022
28023 2004-07-09  Simon Josefsson  <jas@extundo.com>
28024
28025         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
28026         failed without this.)
28027
28028 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
28029
28030         * modules/chown (Files): Add lib/fchown-stub.c, since
28031         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
28032
28033 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
28034
28035         * lib/fchown-stub.c: New file.
28036
28037 2004-06-24  Jim Meyering  <jim@meyering.net>
28038
28039         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
28040
28041 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
28042
28043         * modules/argz: Omit "#include".
28044
28045         * MODULES.html.sh (func_all_modules): Add calloc, to match
28046         2004-06-01 addition of calloc module.
28047
28048 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
28049
28050         * m4/argz.m4: New file, which is autoupdated from libtool.
28051
28052 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
28053
28054         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
28055         libtool.
28056
28057 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
28058
28059         * config/srclist-update: Don't insist on "USA." before the
28060         close-comment, as libtool omits the period and puts the */ on a
28061         separate line.
28062         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
28063         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
28064
28065 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
28066
28067         * modules/argz: New file.
28068         * MODULES.html.sh (func_all_modules): Add argz.
28069
28070 2004-06-12  Jim Meyering  <jim@meyering.net>
28071         and  Paul Eggert  <eggert@cs.ucla.edu>
28072
28073         * modules/hash (Files): Add lib/xalloc.h.
28074         * modules/pipe (Depends-on): Add wait-process.
28075         * modules/stat (Depends-on): Add xalloc.
28076         * modules/userspec (Files): Add lib/userspec.h.
28077         * modules/xstrto
28078
28079         Upgrade from gettext-0.13.
28080         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
28081         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
28082         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
28083
28084 2004-06-10  Jim Meyering  <jim@meyering.net>
28085
28086         * lib/calloc.c: New file.
28087
28088 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
28089
28090         * lib/getdate.y (yylex): Allow space between sign and number.
28091         Problem reported by Dan Jacobson.
28092
28093 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
28094
28095         Merge from coreutils CVS.
28096
28097         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
28098         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
28099         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
28100         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
28101         xstrtol.m4: Fix copyright date and/or serial number.
28102
28103         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
28104         See if we need an fchown replacement.
28105         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
28106         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
28107         and use the replacement function if we detect either defect.
28108
28109         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
28110         gl_UTIMECMP.
28111
28112 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
28113         and  Jim Meyering  <jim@meyering.net>
28114
28115         Merge from coreutils CVS.
28116
28117         * lib/stat-macros.h: New file, with contents from file-type.h
28118         and coreutils' system.h.
28119         * lib/file-type.c: Include "stat-macros.h".
28120         * lib/file-type.h (file_type): Move all macro definitions to new file,
28121         stat-macros.h.
28122
28123         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
28124         Wrap old code with this conditional.
28125         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
28126         function that does not dereference symlinks.
28127         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
28128
28129         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
28130         dependency problems.
28131         (xreadlink): Accept new arg SIZE, for efficiency.
28132         All decls and uses changed.
28133         * lib/xreadlink.h: Include <stddef.h>, for size_t.
28134
28135         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
28136         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
28137
28138         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
28139         sysexits.h.
28140
28141 2004-06-01  Jim Meyering  <jim@meyering.net>
28142
28143         * m4/calloc.m4: New file.
28144
28145 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
28146
28147         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
28148         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
28149         Also, fix a typo in a diagnostic.
28150
28151 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
28152
28153         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
28154         or AC_FUNC_REALLOC.
28155
28156 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
28157
28158         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
28159         macros to be defined.
28160         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
28161         the allocator returns NULL because the requested size is zero.
28162
28163 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
28164
28165         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
28166         var.  Add comment explaining why libc still defines it.  This
28167         merges the following patch from glibc:
28168         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
28169
28170 2004-05-20  Andreas Schwab  <schwab@suse.de>
28171
28172         * m4/free.m4: Replace free if it not known to work, not the other
28173         way round.
28174
28175 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
28176
28177         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
28178         present in glibc since revision 1.1 of this file.
28179         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
28180         obstack_alignment_mask, obstack_alloc, obstack_base,
28181         obstack_blank, obstack_blank_fast, obstack_chunk_size,
28182         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
28183         obstack_grow0, obstack_init, obstack_int_grow,
28184         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
28185         obstack_next_free, obstack_object_size, obstack_ptr_grow,
28186         obstack_ptr_grow_fast, obstack_room): Remove declarations of
28187         nonexistent functions.
28188
28189 2004-05-18  Karl Berry  <karl@gnu.org>
28190
28191         * config/srclist.txt: break link for vasnprintf.c.
28192
28193 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
28194
28195         Port obstack to the AS/400, where pointers are 16 bytes wide and
28196         you cannot cast an integer to a valid pointer.  This patch is
28197         currently waiting to be integrated into glibc; see
28198         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
28199
28200         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
28201         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
28202         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
28203         (struct obstack): temp member is now a union of a pointer and
28204         an integer, instead of an integer.  All integer uses changed.
28205         This does not affect the physical layout of struct obstack,
28206         except on hosts (like the AS/400) where the size or alignment of
28207         void * is greater than that of ptrdiff_t.
28208         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
28209         __STDC__)]: Store temporary in pointer member of union, not
28210         integer member.
28211         * lib/obstack.c: Include <stddef.h>, for offsetof.
28212         (struct fooalign): Remove; it doesn't need a name.
28213         (union fooround): Change double to long double, and add void *.
28214         (DEFAULT_ALIGNMENT): Use offsetof to compute.
28215         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
28216         not a macro.  Hence the values are always int; so remove all
28217         casts-to-int in uses.
28218
28219 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
28220
28221         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
28222         we can get this patch merged into glibc.
28223
28224 2004-05-17  Derek R. Price  <derek@ximbiot.com>
28225             Paul Eggert  <eggert@cs.ucla.edu>
28226
28227         * m4/argp: Depend on alloca.
28228
28229 2004-05-17  Derek R. Price  <derek@ximbiot.com>
28230             Paul Eggert  <eggert@cs.ucla.edu>
28231
28232         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
28233         freecoding.
28234
28235 2004-05-17  Bruno Haible  <bruno@clisp.org>
28236
28237         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
28238         precision that consists of a '.' followed by an empty digit string.
28239         Patch by Tor Lillqvist <tml@iki.fi>.
28240
28241 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
28242
28243         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
28244         for backward compatibility with older code.  We need our own
28245         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
28246         it under some other name, and our alloca.h will define it.
28247
28248 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
28249             Derek Price  <derek@ximbiot.com>
28250
28251         * lib/alloca.c: Include <alloca.h>, to get our interface.
28252         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
28253         include <alloca.h> first.  Use C89 prototype for alloca; this
28254         requires including <stddef.h> for size_t.  Use extern "C" if C++.
28255         Use #elif for simplicity, since we can assume C89 now.
28256         Don't try to source the system alloca.h since it will not be found
28257         and to prevent recursively including its replacement.
28258         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
28259         * lib/regex.c: Likewise.
28260
28261 2004-05-16  Derek Price  <derek@ximbiot.com>
28262             Paul Eggert  <eggert@cs.ucla.edu>
28263
28264         getline cleanup.  This changes the getndelim2 API: both order of
28265         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
28266         no delimiter).
28267
28268         * lib/getline.c: Don't include stddef.h or stdio.h, since our
28269         interface does that.
28270         (getline): Always use getdelim, so that we don't have two
28271         copies of this code.
28272         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
28273         if available.
28274         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
28275         (GETNDELIM2_MAXIMUM): New macro.
28276         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
28277         instead of the old practice of delim2==0.  All callers changed.
28278         Return -1 on overflow, instead of returning junk.
28279         Do not set *linesize unless allocation succeeds.
28280         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
28281         that we include sys/types.h.
28282         * lib/getnline.h: Likewise.
28283         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
28284         (getndelim2): Reorder arguments.
28285         * lib/getnline.c (getnline, getndelim):
28286         Don't discard the NMAX argument.
28287         (getnline): Invoke getndelim, to avoid code duplication.
28288         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
28289         of (size_t) -1 by callers of the getnline family.
28290
28291 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
28292
28293         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
28294         Check for gettimeofday.
28295         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
28296         Check for settimeofday, stime.
28297
28298 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
28299
28300         * lib/nanosleep.c (suspended): Change its type from int to
28301         sig_atomic_t volatile.
28302         (first_call): Make it private to rpl_nanosleep, and have it
28303         be zero initially as that's a bit faster.
28304         (my_usleep): Round up fractional times instead of truncating them,
28305         as this is the usual meaning for 'sleep'.
28306
28307         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
28308         doesn't work.
28309         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
28310         (ENOSYS): Define if not defined.
28311         (settime): Fall back on stime if it exists and settimeofday fails.
28312         But don't bother with fallbacks if a method fails with errno == EPERM.
28313
28314 2004-05-11  Jim Meyering  <jim@meyering.net>
28315
28316         Prior to this change, the save_cwd caller required read access to the
28317         current directory on most systems (ones with the fchdir function).
28318
28319         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
28320         fails, try write-only, and finally, resort to using xgetcwd.
28321
28322 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
28323
28324         * lib/obstack.c, obstack.h: Import changes from libc.
28325
28326 2004-04-28  Bruno Haible  <bruno@clisp.org>
28327
28328         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
28329         also implicitly appends .exe to executables.
28330         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
28331         accepts Windows pathnames.
28332         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
28333         Treat Cygwin like Windows, since it now accepts Windows pathnames.
28334         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
28335         Treat Cygwin like Windows, since it now accepts Windows pathnames.
28336         Reported by Derek Robert Price <derek@ximbiot.com>.
28337
28338 2004-04-21  Karl Berry  <karl@gnu.org>
28339
28340         * config/srclist.txt (localcharset.c): break sync.
28341
28342 2004-04-20  Paul Eggert  <eggert@twinsun.com>
28343
28344         * m4/host-os.m4: Add a copyright notice.
28345
28346 2004-04-20  Jim Meyering  <jim@meyering.net>
28347
28348         Change UTILS_ to gl_ in AC_DEFINE'd names.
28349         Change utils_- and jm_-prefixed variables, too.
28350         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
28351         UTILS_FUNC_MKDIR_TRAILING_SLASH.
28352         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
28353
28354         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
28355         Don't emit trailing blanks.
28356         Also rename jm_-prefixed variables to have gl_ prefix.
28357
28358         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
28359         Also rename jm_-prefixed variables to have gl_ prefix.
28360
28361         * m4/jm-macros.m4: Reflect the renamings.
28362         * m4/prereq.m4: Likewise.
28363
28364 2004-04-20  Jim Meyering  <jim@meyering.net>
28365
28366         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
28367         memory.
28368
28369 2004-04-20  Jim Meyering  <jim@meyering.net>
28370             Bruno Haible  <bruno@clisp.org>
28371
28372         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
28373         memory when realloc fails.
28374
28375 2004-04-19  Jim Meyering  <jim@meyering.net>
28376
28377         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
28378         now that readutmp.c may call `free (0)'.
28379
28380 2004-04-19  Bruno Haible  <bruno@clisp.org>
28381
28382         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
28383         * m4/inttypes_h.m4: Likewise.
28384         * m4/stdint_h.m4: Likewise.
28385         * m4/intmax_t.m4: Likewise.
28386         * m4/uintmax_t.m4: Likewise.
28387
28388 2004-04-18  Jim Meyering  <jim@meyering.net>
28389
28390         * m4/prereq.m4: Don't forbid jm_ prefix.
28391
28392         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
28393         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
28394         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
28395         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
28396         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
28397         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
28398         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
28399         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
28400         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
28401         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
28402         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
28403         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
28404         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
28405         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
28406         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
28407         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
28408         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
28409         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
28410         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
28411
28412 2004-04-18  Jim Meyering  <jim@meyering.net>
28413
28414         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
28415         failure, don't leak memory and do call END_UTMP_ENT.
28416
28417 2004-04-16  Jim Meyering  <jim@meyering.net>
28418
28419         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
28420         coreutils' stat program.
28421         (gl_PREREQ): Don't require jm_PREREQ_STAT.
28422
28423 2004-04-11  Paul Eggert  <eggert@twinsun.com>
28424
28425         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
28426         C89.
28427         (CHAR_BIT): Remove, since we assume C89.
28428         Include <stdint.h> if available, as per current Autoconf CVS advice.
28429
28430 2004-03-31  Jim Meyering  <jim@meyering.net>
28431
28432         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
28433         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
28434         * m4/xalloc.m4: Likewise.
28435
28436 2004-03-30  Paul Eggert  <eggert@twinsun.com>
28437
28438         Merge from coreutils.
28439
28440         * m4/inttostr.m4: New file.
28441         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
28442         Require AM_STDBOOL_H and gl_TIMESPEC instead.
28443         Require gl_CLOCK_TIME.
28444         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
28445
28446 2004-03-30  Paul Eggert  <eggert@twinsun.com>
28447
28448         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
28449         not bool, to be more consistent with Unix conventions.
28450         Suggested by Bruno Haible.
28451
28452         Merge from coreutils.
28453
28454         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
28455         * lib/umaxtostr.c: New files.
28456
28457         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
28458         the usual <time.h> dance.
28459         (get_date): Change signature to support fractional time stamps.
28460         All callers changed.
28461         * lib/getdate.y: Include "getdate.h" first, as we can now
28462         assume C89 and don't need to worry about 'const'.
28463         Similarly, include "unlocked-io.h" near start, not in middle.
28464         Include <limits.h>.
28465         (textint.value): Use long int rather than int.
28466         (textint.digits): Use size_t rather than int.
28467         (BILLION, LOG10_BILLION): New constants.
28468         (parser_control): New member rel_ns.  Members day_ordinal,
28469         time_zone, month, day, hour, minutes, rel_year, rel_month,
28470         rel_day, rel_hour, rel_minutes, rel_seconds
28471         are now long int, not int.  Member seconds is now struct timespec,
28472         not int.  New member timespec_seen.  Members dates_seen, days_seen,
28473         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
28474         not int.
28475         (%union.intval): Now long int, not int.
28476         New member timespec.
28477         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
28478         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
28479         (spec): Now is a timespec or an item list.
28480         (timespec, items): New nonterminals.
28481         (time, rel, relunit, number, get_date):
28482         Add support for fractional seconds.
28483         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
28484         (gmtime, localtime, mktime): Remove decls; not needed with C89.
28485         (to_hour): First arg is now long int, not int.
28486         (to_year): Returns long int, not int.
28487         Don't treat year -70 like 70.
28488         (tm_diff): Returns long int, not int.
28489         (lookup_word): Use bool instead of int when appropriate.
28490         (yylex): Use size_t for count, not int.
28491         Detect overflow when parsing large integer constants.
28492         Add support for fractions.
28493         (get_date): Make pointers 'const' if possible.
28494         Use more-portable code to detect integer overflow.
28495         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
28496         Don't use ctime; it's not reliable if the year has >4 digits.
28497
28498         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
28499         This is for compatibility with BSD.
28500
28501         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
28502         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
28503         From coreutils' system.h.
28504
28505         * lib/userspec.c: Don't include "posixver.h".
28506         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
28507         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
28508         compatible extension.  Simplify code by removing a boolean int
28509         that was always nonzero if a string was nonnull.
28510
28511 2004-03-30  Jim Meyering  <jim@meyering.net>
28512
28513         Merge from coreutils.
28514
28515         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
28516         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
28517         on some systems one must include <grp.h> before it.
28518         Reported by Christian Krackowizer.
28519
28520 2004-03-30  Jim Meyering  <jim@meyering.net>
28521
28522         Merge from coreutils.
28523
28524         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
28525
28526         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
28527         an empty input stream.
28528
28529         * lib/readtokens.c: Include <stdbool.h>.
28530         (readtoken): Use `size_t' rather than int/long.
28531         All callers adjusted.
28532         Use `bool' rather than `int' where appropriate.
28533         Use memset rather than an explicit loop.
28534         Use x2nrealloc rather than xrealloc.
28535         Allow the use of `\0' as a delimiter.
28536         (readtokens): Likewise.
28537         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
28538
28539 2004-03-30  Jim Meyering  <jim@meyering.net>
28540
28541         * m4/realloc.m4: Remove file, since now it does no more than
28542         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
28543         the `configure.ac' section of module/realloc.
28544         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
28545
28546 2004-03-30  Bruno Haible  <bruno@clisp.org>
28547
28548         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
28549         nonnull.
28550
28551 2004-03-29  Paul Eggert  <eggert@twinsun.com>
28552
28553         Merge changes to getloadavg.c from coreutils and Emacs.
28554
28555         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
28556         Define to an expression, not to the empty string.
28557         Include cloexec.h and xalloc.h.
28558         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
28559         Use set_cloexec_flag rather than rolling our own.
28560         * lib/cloexec.c, lib/cloexec.h: New files.
28561
28562 2004-03-29  Paul Eggert  <eggert@twinsun.com>
28563
28564         * m4/cloexec.m4: New file.
28565
28566 2004-03-18  Paul Eggert  <eggert@twinsun.com>
28567
28568         * lib/getopt.h: Sync with libc CVS.
28569
28570 2004-03-18  Paul Eggert  <eggert@twinsun.com>
28571             Bruno Haible  <bruno@clisp.org>
28572
28573         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
28574         mbswidth.
28575
28576 2004-03-18  Paul Eggert  <eggert@twinsun.com>
28577             Bruno Haible  <bruno@clisp.org>
28578
28579         * lib/mbswidth.h: Include <wchar.h> only if
28580         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
28581         <wchar.h>.
28582         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
28583
28584 2004-03-09  Paul Eggert  <eggert@twinsun.com>
28585
28586         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
28587         Sync with libc CVS.
28588         * lib/getopt_int.h: New file, also synced from libc.
28589
28590 2004-03-09  Paul Eggert  <eggert@twinsun.com>
28591
28592         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
28593         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
28594         Bring back getopt.c, getopt.h, getopt1.c.
28595
28596 2004-03-07  Paul Eggert  <eggert@twinsun.com>
28597
28598         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
28599         All uses changed.  Check for sa_sigaction member; this fixes
28600         a bug first reported by Jason Andrade in
28601         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
28602
28603 2004-03-07  Paul Eggert  <eggert@twinsun.com>
28604
28605         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
28606         '#if' expressions.  Unlike the code it replaces, it does not
28607         depend on (defined _SC_PAGESIZE).  However, it does depend on
28608         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
28609         first reported by Jason Andrade in
28610         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
28611
28612 2004-02-25  Simon Josefsson  <jas@extundo.com>
28613
28614         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
28615
28616 2004-02-25  Simon Josefsson  <jas@extundo.com>
28617
28618         * lib/strdup.h: New file.
28619         * lib/strdup.c: Include it.
28620         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
28621         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
28622
28623 2004-02-23  Karl Berry  <karl@gnu.org>
28624
28625         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
28626         (from fencepost.gnu.org:/gd/gnuorg).
28627
28628 2004-02-23  Karl Berry  <karl@gnu.org>
28629
28630         * config/srclistvars.sh (GNUORG) [karl]: redefine.
28631         * config/srclist.txt: add maintain/standards documents.
28632
28633 2004-02-18  Bruno Haible  <bruno@clisp.org>
28634
28635         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
28636         Reported by Derek Robert Price <derek@ximbiot.com>.
28637
28638 2004-02-16  Karl Berry  <karl@gnu.org>
28639
28640         * config/mkinstalldirs, install-sh: update from automake.
28641
28642 2004-02-06  Karl Berry  <karl@gnu.org>
28643
28644         * m4/po.m4: update from gettext 0.14.1.
28645
28646 2004-02-06  Karl Berry  <karl@gnu.org>
28647
28648         * lib/config.charset: update from gettext 0.14.1.
28649
28650 2004-02-05  Paul Eggert  <eggert@twinsun.com>
28651
28652         Add comments and code, prompted by suggestions from Bruno Haible
28653         for sh-quote.
28654         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
28655         describing the enum quoting_style values.
28656         * lib/quotearg.c (quotearg_alloc): New function.
28657         (quotearg_buffer_restyled): Treat lone { and } as special.
28658         Treat = as special.  Work around bug with older shells
28659         that "see" a '\' that is really the 2nd byte of a multibyte char.
28660         Quote empty string with shell_quoting_style.
28661
28662 2004-02-03  Bruno Haible  <bruno@clisp.org>
28663
28664         * m4/pipe.m4: New file, from GNU gettext.
28665
28666 2004-02-03  Bruno Haible  <bruno@clisp.org>
28667
28668         * lib/pipe.h: New file, from GNU gettext.
28669         * lib/pipe.c: New file, from GNU gettext.
28670
28671 2004-01-27  Bruno Haible  <bruno@clisp.org>
28672
28673         * m4/execute.m4: New file, from GNU gettext.
28674
28675 2004-01-27  Bruno Haible  <bruno@clisp.org>
28676
28677         * lib/execute.h: New file, from GNU gettext.
28678         * lib/execute.c: New file, from GNU gettext.
28679         * lib/w32spawn.h: New file, from GNU gettext.
28680
28681 2004-01-24  Paul Eggert  <eggert@twinsun.com>
28682
28683         Merge from diffutils.
28684
28685         * lib/file-type.c (file_type): Add typed memory objects.
28686         * lib/file-type.h (S_TYPEISTMO): New macro.
28687
28688         * lib/c-stack.h (c_stack_action): Remove argv argument.
28689         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
28690         (die): Don't calculate message unless segv_action returns.
28691         (get_stack_location, min_address_from_argv, max_address_from_argv,
28692         volatile stack_base, volatile_stack_size): Remove.
28693         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
28694         that every segmentation violation is a stack overflow.  (Ouch!)
28695         See Debian bug 136249 (still outstanding) for more info about why
28696         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
28697
28698 2004-01-24  Paul Eggert  <eggert@twinsun.com>
28699
28700         Exit-status fix from coreutils.
28701
28702         Use exit_failure consistently in place of EXIT_FAILURE,
28703         so that program exit statuses are consistent on failure.
28704
28705         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
28706         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
28707         * lib/argmatch.h: Comment fix to match the above.
28708         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
28709         Now a macro referring to exit_failure, instead of a separate
28710         variable.  Include "exitfail.h" to get it.
28711         * lib/xstrtol.h: Include "exitfail.h".
28712         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
28713
28714         * lib/long-options.c (parse_long_options): Use prototype
28715         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
28716         for clarity.
28717
28718 2004-01-21  Jim Meyering  <jim@meyering.net>
28719
28720         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
28721         so as not to conflict with a different-sized __mktime_internal
28722         function in GNU libc.
28723         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
28724         Problem building statically-linked `ls' reported by Michael Brunnbauer.
28725
28726 2004-01-20  Karl Berry  <karl@gnu.org>
28727
28728         * config/config.guess: update from config.
28729
28730         * config/srclistvars.sh: GNUWWWLICENSES for karl.
28731
28732 2004-01-20  Bruno Haible  <bruno@clisp.org>
28733
28734         Safer stack allocation.
28735         * lib/setenv.c: Include allocsa.h.
28736         (alloca): Remove fallback definition.
28737         (freea): Remove macro.
28738         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
28739         instead of freea.
28740
28741 2004-01-20  Bruno Haible  <bruno@clisp.org>
28742
28743         * m4/eealloc.m4: New file, from GNU gettext.
28744
28745 2004-01-20  Bruno Haible  <bruno@clisp.org>
28746
28747         * m4/allocsa.m4: New file, from GNU gettext.
28748
28749 2004-01-20  Bruno Haible  <bruno@clisp.org>
28750
28751         * lib/xallocsa.h: New file, from GNU gettext.
28752         * lib/xallocsa.c: New file, from GNU gettext.
28753
28754 2004-01-20  Bruno Haible  <bruno@clisp.org>
28755
28756         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
28757
28758 2004-01-20  Bruno Haible  <bruno@clisp.org>
28759
28760         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
28761         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
28762         specially.
28763
28764 2004-01-20  Bruno Haible  <bruno@clisp.org>
28765
28766         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
28767         patch.
28768
28769 2004-01-20  Bruno Haible  <bruno@clisp.org>
28770
28771         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
28772
28773 2004-01-20  Bruno Haible  <bruno@clisp.org>
28774
28775         * lib/eealloc.h: New file.
28776
28777 2004-01-20  Bruno Haible  <bruno@clisp.org>
28778
28779         * lib/binary-io.h: Avoid warnings on Cygwin.
28780
28781 2004-01-20  Bruno Haible  <bruno@clisp.org>
28782
28783         * lib/allocsa.h: New file, from GNU gettext.
28784         * lib/allocsa.c: New file, from GNU gettext.
28785
28786 2004-01-18  Karl Berry  <karl@gnu.org>
28787
28788         * doc/gpl.texi, doc/lgpl.texi: new files.
28789
28790 2004-01-18  Karl Berry  <karl@gnu.org>
28791
28792         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
28793         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
28794
28795 2004-01-15  Paul Eggert  <eggert@twinsun.com>
28796
28797         Merge from coreutils.
28798
28799         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
28800         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
28801         (gl_DEFAULT_POSIX2_VERSION): Move
28802         the documentation from 'configure' into 'config.hin',
28803         so that 'configure --help' isn't burdened by it and
28804         we don't have to worry about its formatting there.
28805         Reword the documentation so that it's more succinct
28806         and can be run together into a single paragraph.
28807         * m4/same.m4 (gl_SAME): Check for pathconf.
28808
28809 2004-01-15  Paul Eggert  <eggert@twinsun.com>
28810
28811         Merge from coreutils.
28812
28813         * lib/posixver.c: Include posixver.h.
28814
28815         * lib/same.c: Include <stdbool.h>, <limits.h>.
28816         (_POSIX_NAME_MAX): Define if not defined.
28817         (MIN): New macro.
28818         (same_name): If file names are silently truncated, report
28819         that the file names are the same if they are the same after
28820         the silent truncation.
28821
28822         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
28823         conversion function.
28824         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
28825         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
28826         longer needed.
28827
28828 2004-01-15  Jim Meyering  <jim@meyering.net>
28829
28830         Merge from coreutils.
28831
28832         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
28833         if no library is required.
28834         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
28835         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
28836         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
28837         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
28838         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
28839         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
28840         value, $ac_cv_search_crypt, if it's "none required".
28841         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
28842         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
28843         not gl_FUNC_GETLOADAVG.
28844         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
28845         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
28846
28847 2004-01-15  Jim Meyering  <jim@meyering.net>
28848
28849         Merge from coreutils.
28850
28851         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
28852         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
28853         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
28854
28855         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
28856         optional configure-time default.
28857
28858         * lib/version-etc.c (version_etc_copyright): Update copyright date.
28859
28860         * lib/xreadlink.c (xreadlink): Correct outdated comment.
28861
28862 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
28863
28864         Merge from coreutils.
28865
28866         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
28867         value, $ac_cv_search_nanosleep, if it's "none required".
28868
28869 2004-01-14  Paul Eggert  <eggert@twinsun.com>
28870
28871         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
28872         with like-named macro in fnmatch.c.
28873         (EXT): Use an internal constant instead.
28874
28875         Merge fnmatch patches from glibc.
28876         * lib/fnmatch.c (mbsinit): Remove define.
28877         Add libc_hidden_ver (__fnmatch, fnmatch).
28878         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
28879         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
28880
28881 2004-01-14  Karl Berry  <karl@gnu.org>
28882
28883         * config/install-sh: update from automake.
28884
28885 2004-01-13  Karl Berry  <karl@gnu.org>
28886
28887         * config/install-sh: update from automake.
28888
28889 2004-01-09  Karl Berry  <karl@gnu.org>
28890
28891         * config/install-sh: update from automake.
28892
28893 2004-01-05  Karl Berry  <karl@gnu.org>
28894
28895         * config/config.{sub,guess}: update from config.
28896
28897 2003-12-31  Karl Berry  <karl@gnu.org>
28898
28899         * config/depcomp: update from automake.
28900
28901 2003-12-14  Karl Berry  <karl@gnu.org>
28902
28903         * lib/config.charset: update from gettext-runtime.
28904
28905 2003-12-03  Paul Eggert  <eggert@twinsun.com>
28906
28907         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
28908         Bug reported by Alfred M. Szmidt.
28909
28910 2003-12-03  Bruno Haible  <bruno@clisp.org>
28911
28912         * m4/gettext.m4: Upgrade from gettext-0.13.
28913         * m4/po.m4: Upgrade from gettext-0.13.
28914         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
28915         * m4/intmax.m4: New file, from gettext-0.13.
28916         * m4/printf-posix.m4: New file, from gettext-0.13.
28917
28918 2003-11-29  Karl Berry  <karl@gnu.org>
28919
28920         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
28921
28922 2003-11-25  Paul Eggert  <eggert@twinsun.com>
28923             Bruno Haible  <bruno@clisp.org>
28924
28925         * lib/printf-parse.h: Don't include sys/types.h.
28926         (ARG_NONE): New macro.
28927         (char_directive): Change type of *arg_index fields to size_t.
28928         * lib/printf-parse.c: Don't include sys/types.h.
28929         (SSIZE_MAX): Remove macro.
28930         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
28931         Remove unnecessary overflow check.
28932         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
28933         fields.
28934
28935 2003-11-25  Bruno Haible  <bruno@clisp.org>
28936
28937         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
28938
28939 2003-11-25  Bruno Haible  <bruno@clisp.org>
28940
28941         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
28942         gt_TYPE_SSIZE_T.
28943
28944 2003-11-24  Paul Eggert  <eggert@twinsun.com>
28945
28946         * modules/alloca: Remove dependency on xalloc.
28947
28948 2003-11-24  Paul Eggert  <eggert@twinsun.com>
28949
28950         * lib/alloca.c: Remove dependency on xalloc module.
28951         (xalloc_die): Remove.
28952         (memory_full) [!defined emacs]: New macro.
28953         [!defined emacs]: Don't include xalloc.h.
28954         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
28955         address arithmetic overflows.  Change datatypes a bit to avoid
28956         unnecessary casts.
28957
28958 2003-11-22  Jim Meyering  <jim@meyering.net>
28959
28960         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
28961         s/size/size_t/.
28962
28963 2003-11-21  Karl Berry  <karl@gnu.org>
28964
28965         * config/config.{sub,guess}: update from config.
28966
28967 2003-11-18  Karl Berry  <karl@gnu.org>
28968
28969         * config/config.{sub,guess}: update from config.
28970
28971         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
28972
28973 2003-11-17  Paul Eggert  <eggert@twinsun.com>
28974
28975         * README: Mention that S+T cannot overflow if S is the size of
28976         an existing object and T is sufficiently small.
28977
28978 2003-11-17  Jim Meyering  <jim@meyering.net>
28979
28980         On systems without utime and without a utimes function capable of
28981         dealing with a NULL struct utimbuf* argument, this utime replacement
28982         could -- in unusual circumstances -- leak a file descriptor.
28983         * lib/utime.c: Include <unistd.h> and <errno.h>.
28984         (utime_null): Be sure to close `fd' and to preserve errno.
28985         Reported by Geoff Collyer via Arnold Robbins.
28986
28987 2003-11-17  Bruno Haible  <bruno@clisp.org>
28988
28989         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
28990         (Depends-on): Add xsize.
28991
28992 2003-11-17  Bruno Haible  <bruno@clisp.org>
28993
28994         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
28995
28996 2003-11-17  Bruno Haible  <bruno@clisp.org>
28997
28998         * lib/vasnprintf.c (alloca): Remove fallback definition.
28999         (freea): Remove definition.
29000         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
29001         Reported by Paul Eggert.
29002
29003 2003-11-16  Paul Eggert  <eggert@twinsun.com>
29004             Bruno Haible  <bruno@clisp.org>
29005
29006         Protect against address arithmetic overflow.
29007         * lib/printf-args.h: Include stddef.h.
29008         (arguments): Change type of field 'count' to size_t.
29009         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
29010         'unsigned int' where appropriate.
29011         * lib/printf-parse.h: Include sys/types.h.
29012         (char_directive): Change type of *arg_index fields to ssize_t.
29013         (char_directives): Change type of fields 'count', max_*_length to
29014         size_t.
29015         * lib/printf-parse.c: Include sys/types.h and xsize.h.
29016         (SSIZE_MAX): Define fallback value.
29017         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
29018         instead of 'int' where appropriate. Check a_allocated, d_allocated
29019         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
29020         * lib/vasnprintf.c: Include xsize.h.
29021         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
29022         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
29023         overflow. Avoid wraparound when converting a width or precision from
29024         decimal to binary.
29025
29026 2003-11-16  Bruno Haible  <bruno@clisp.org>
29027
29028         Update from GNU gettext.
29029         * lib/printf-parse.c: Generalize to it can be compiled for wide
29030         strings.
29031         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
29032         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
29033         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
29034         SNPRINTF): New macros.
29035         Don't include <alloca.h> if the file is used inside libintl.
29036         (local_wcslen): New function, for Solaris 2.5.1.
29037         (VASNPRINTF): Use it instead of wcslen.
29038
29039 2003-11-16  Bruno Haible  <bruno@clisp.org>
29040
29041         * lib/xsize.h (xmax): New function.
29042         (xsum, xsum3, xsum4): Declare as "pure" functions.
29043
29044 2003-11-12  Paul Eggert  <eggert@twinsun.com>
29045
29046         * modules/xalloc (Files): Undo latest change, since xalloc.h
29047         no longer needs SIZE_MAX or PTRDIFF_MAX.
29048
29049 2003-11-12  Paul Eggert  <eggert@twinsun.com>
29050
29051         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
29052         gl_PTRDIFF_MAX.
29053
29054 2003-11-12  Paul Eggert  <eggert@twinsun.com>
29055
29056         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
29057         "return", to pacify some unknown compiler.  Problem reported
29058         by Joerg Schilling.
29059
29060 2003-11-12  Paul Eggert  <eggert@twinsun.com>
29061
29062         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
29063         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
29064         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
29065         heuristic is just as accurate as far as we know, and it removes a
29066         dependency on size_max.m4 and ptrdiff_max.m4.
29067
29068 2003-11-11  Bruno Haible  <bruno@clisp.org>
29069
29070         * modules/xsize (Files): Add m4/size_max.m4.
29071         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
29072
29073 2003-11-11  Bruno Haible  <bruno@clisp.org>
29074
29075         * m4/size_max.m4: New file.
29076         * m4/ptrdiff_max.m4: New file.
29077         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
29078         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
29079         (gl_XALLOC): Invoke it.
29080
29081 2003-11-11  Bruno Haible  <bruno@clisp.org>
29082
29083         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
29084         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
29085         defined.
29086
29087 2003-11-10  Paul Eggert  <eggert@twinsun.com>
29088
29089         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
29090         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
29091         rejected some allocations of exactly SIZE_MAX - 2 bytes.
29092         From Bruno Haible.
29093         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
29094         not (size_t) -1, since it's defined here.
29095
29096 2003-11-09  Karl Berry  <karl@gnu.org>
29097
29098         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
29099
29100 2003-11-06  Paul Eggert  <eggert@twinsun.com>
29101
29102         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
29103         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
29104         Reject sizes of exactly SIZE_MAX bytes.
29105         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
29106         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
29107
29108 2003-11-05  Bruno Haible  <bruno@clisp.org>
29109
29110         * lib/xsize.h: Include limits.h, to avoid a possible collision with
29111         SIZE_MAX defined in <limits.h> on Solaris.
29112
29113 2003-11-04  Jim Meyering  <jim@meyering.net>
29114
29115         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
29116         variable names, rather than @VAR@.
29117         * modules/poll: Likewise.
29118
29119 2003-11-04  Bruno Haible  <bruno@clisp.org>
29120
29121         * modules/xsize: New file.
29122         * modules/linebreak: Depend on xsize.
29123         * MODULES.html.sh (func_all_modules): Add xsize.
29124
29125 2003-11-04  Bruno Haible  <bruno@clisp.org>
29126
29127         * m4/xsize.m4: New file.
29128
29129 2003-11-04  Bruno Haible  <bruno@clisp.org>
29130
29131         * lib/xsize.h: New file.
29132         * lib/linebreak.c: Include xsize.h.
29133         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
29134         argument for overflow.
29135         Suggested by Paul Eggert.
29136
29137 2003-11-03  Karl Berry  <karl@gnu.org>
29138
29139         * config/config.{guess,sub}: update from config.
29140
29141 2003-11-03  Jim Meyering  <jim@meyering.net>
29142
29143         * modules/userspec (lib_SOURCES): Add userspec.h.
29144         (Include): Add "userspec.h".
29145         Improve description.
29146
29147 2003-11-03  Jim Meyering  <jim@meyering.net>
29148
29149         * lib/userspec.c: Include "userspec.h".
29150         * lib/userspec.h: New file.
29151
29152 2003-11-03  Bruno Haible  <bruno@clisp.org>
29153
29154         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
29155
29156 2003-11-03  Bruno Haible  <bruno@clisp.org>
29157
29158         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
29159         available, to avoid (extremely rare) race condition.
29160         Suggested by Paul Eggert.
29161
29162 2003-11-02  Karl Berry  <karl@gnu.org>
29163
29164         * config/srclist.txt (vasprintf.c): sync broken, sigh.
29165
29166 2003-10-31  Paul Eggert  <eggert@twinsun.com>
29167
29168         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
29169         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
29170         (read_filesystem_list): Set and use me_type_malloced.
29171         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
29172         whatever the type happens to be), for brevity and consistency.
29173         Check for size calculation overflow on Alphas running OSF/1.
29174
29175 2003-10-31  Jim Meyering  <jim@meyering.net>
29176
29177         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
29178
29179         * lib/linebuffer.c: Include <string.h> for declaration of memset.
29180
29181 2003-10-30  Paul Eggert  <eggert@twinsun.com>
29182             Bruno Haible  <bruno@clisp.org>
29183
29184         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
29185         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
29186
29187 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
29188
29189         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
29190         netbsd*-gnu*.  Suggested by Robert Millan.
29191
29192 2003-10-29  Paul Eggert  <eggert@twinsun.com>
29193
29194         * modules/group-member: Depend on stdbool.
29195
29196 2003-10-29  Paul Eggert  <eggert@twinsun.com>
29197
29198         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
29199
29200 2003-10-29  Paul Eggert  <eggert@twinsun.com>
29201
29202         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
29203         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
29204         after the 'gnu' in these cases.  This fixes some bugs in the
29205         previous change, and is based on suggestions by Robert Millan.
29206
29207 2003-10-29  Paul Eggert  <eggert@twinsun.com>
29208
29209         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
29210         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
29211         no longer needed.
29212         * lib/quotearg.c (quotearg_n_options): Use it.
29213         * lib/group-member.c: Include <stdbool.h>.
29214         (free_group_info): Arg is now const *; don't free arg.
29215         (get_group_info): Now returns bool and accepts struct group_info *,
29216         rather than returning a malloc'ed struct group_info *.
29217         All uses changed.  Check for overflow in internal size calculation.
29218
29219         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
29220         rather than xmalloc/xrealloc.
29221         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
29222         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
29223         conformance bug: the old code used a pointer after freeing the
29224         storage that it addressed.
29225         * lib/hash.c (hash_initialize): Simplify the code by using
29226         xalloc_oversized rather than doing it by hand.
29227         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
29228         the buffer preserved.  Use free and xmalloc instead.
29229         * lib/quotearg.c (quotearg_n_options): Likewise.
29230         Use a simpler test for size overflow.  Don't use xalloc_oversized
29231         because unsigned int might be wider than size_t (!); this suggests
29232         that we should switch from unsigned int to size_t for slot numbers.
29233
29234 2003-10-28  Paul Eggert  <eggert@twinsun.com>
29235
29236         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
29237         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
29238         NetBSD kernels.  Requested by Richard Stallman.
29239
29240 2003-10-27  Paul Eggert  <eggert@twinsun.com>
29241
29242         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
29243         to allocate the returned structure.  Do not allocate a subarray,
29244         as x2nrealloc will do that.
29245         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
29246         instead of xnrealloc.
29247         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
29248
29249 2003-10-27  Bruno Haible  <bruno@clisp.org>
29250
29251         * lib/stdbool_.h: Better support for BeOS.
29252
29253 2003-10-26  Paul Eggert  <eggert@twinsun.com>
29254
29255         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
29256         now uses inline.
29257
29258 2003-10-26  Paul Eggert  <eggert@twinsun.com>
29259
29260         * lib/xalloc.h (xalloc_oversized): New static inline function, for
29261         callers that want to do their own size-overflow checking.  Include
29262         <stdbool.h>, since xalloc_oversized returns bool.
29263         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
29264         to use xalloc_oversized.
29265
29266         Add two functions x2realloc, x2nrealloc, for programs that grow
29267         arrays dynamically by doubling their sizes.
29268         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
29269         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
29270         New functions.
29271
29272         Port to C99 semantics for 'inline' of external functions.
29273         Bug reported by Bruno Haible.
29274         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
29275         with the old contents of xnmalloc.
29276         (xnmalloc, xmalloc): Use it.
29277         (xnrealloc_inline): New static inline function,
29278         with the old contents of xnrealloc.
29279         (xnrealloc, xrealloc): Use it.
29280
29281         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
29282         that.
29283
29284 2003-10-26  Karl Berry  <karl@gnu.org>
29285
29286         * config/srclist.txt (COPYING.DOC): no longer available from
29287         /gd/gnuorg; don't know where the ultimate source is.
29288
29289 2003-10-25  Paul Eggert  <eggert@twinsun.com>
29290
29291         Fix several address-calculation bugs in the hash modules,
29292         plus some minor code cleanup.
29293
29294         * lib/hash.h: Include <stdbool.h>, for bool.
29295         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
29296         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
29297         hash_get_n_entries, hash_get_max_bucket_length,
29298         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
29299         hash_rehash): Use size_t rather than unsigned.
29300         * lib/hash.c (struct hash_table, hash_get_n_buckets,
29301         hash_get_n_buckets_used, hash_get_n_entries,
29302         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
29303         hash_get_entries, hash_do_for_each, hash_string, is_prime,
29304         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
29305         Likewise.
29306         (SIZE_MAX): Define if not defined.
29307         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
29308         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
29309         hash_print):
29310         Use const * when possible.
29311         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
29312         (check_tuning): Fix bug: if tuning parameters were very close to
29313         0 or 1, rounding errors could have caused subscript violations.
29314         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
29315         (hash_initialize): Add 'fail:' label
29316         to free table and return NULL, and use it to simplify code.
29317         Use calloc rather than clearing the storage ourself.
29318         (hash_initialize, hash_rehash): Check for arithmetic overflow in
29319         buffer size calculations.
29320         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
29321         Include <stddef.h>, for size_t.
29322         * lib/hash-pjw.c (hash_pjw): Likewise.
29323         Switch to method described by Bruno Haible.
29324         Include <limits.h>, for CHAR_BIT.
29325         (SIZE_BITS): New macro.
29326
29327 2003-10-23  Paul Eggert  <eggert@twinsun.com>
29328
29329         * m4/getline.m4 (AM_FUNC_GETLINE):
29330         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
29331         hosts.  Problem reported by Derek Robert Price in
29332         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
29333         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
29334         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
29335
29336 2003-10-21  Paul Eggert  <eggert@twinsun.com>
29337
29338         * lib/getndelim2.c (getndelim2): When size calculation overflows,
29339         ceiling the allocation at NMAX bytes rather than silently
29340         discarding input bytes before NMAX is reached.  This makes
29341         a difference only if NMAX exceeds SIZE_MAX / 2.
29342
29343         * lib/obstack.c: Merge from glibc.
29344         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
29345         Add libc_hidden_def (_obstack_newchunk).
29346         (_obstack_free) [! defined _LIBC]: Remove.
29347         [defined _LIBC]: Make a strong alias from obstack_free, rather than
29348         a clone of the function body.
29349         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
29350         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
29351
29352         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
29353         glibc.
29354         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
29355         arg to memcpy.
29356
29357         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
29358         (obstack_ptr_grow_fast, obstack_int_grow_fast):
29359         Don't use lvalue casts, as GCC plans to remove support for them
29360         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
29361         was also present in the non-GCC version, indicating that this
29362         code had always been buggy and had never been widely used.
29363         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
29364         Use the fast variant of each macro, rather than copying the
29365         definiens of the fast variant; that way, we'll be more likely to
29366         catch future bugs in the fast variants.
29367
29368 2003-10-20  Bruno Haible  <bruno@clisp.org>
29369
29370         * modules/wait-process: New file.
29371         * MODULES.html.sh (func_all_modules): Add wait-process.
29372
29373 2003-10-20  Bruno Haible  <bruno@clisp.org>
29374
29375         * m4/wait-process.m4: New file.
29376
29377 2003-10-20  Bruno Haible  <bruno@clisp.org>
29378
29379         * lib/wait-process.h: New file, from GNU gettext.
29380         * lib/wait-process.c: New file, from GNU gettext.
29381
29382 2003-10-19  Jim Meyering  <jim@meyering.net>
29383
29384         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
29385         HPUX 10.20.
29386
29387 2003-10-18  Karl Berry  <karl@gnu.org>
29388
29389         * config/config.guess: update from config.
29390
29391 2003-10-16  Paul Eggert  <eggert@twinsun.com>
29392
29393         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
29394         (getgroups): First arg is int, not size_t.
29395         Don't let 'free' mangle errno.
29396
29397 2003-10-16  Paul Eggert  <eggert@twinsun.com>
29398
29399         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
29400
29401 2003-10-16  Karl Berry  <karl@gnu.org>
29402
29403         * config/config.{guess,sub}: update from config.
29404
29405 2003-10-16  Jim Meyering  <jim@meyering.net>
29406
29407         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
29408         memcpy.
29409
29410 2003-10-15  Paul Eggert  <eggert@twinsun.com>
29411
29412         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
29413         (SIZE_MAX): Remove.
29414         (new_exclude, add_exclude_file): Initial size no longer needs to
29415         be a power of 2.
29416         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
29417         our own address arithmetic overflow checking.
29418
29419         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
29420         (fnmatch): Do not alloca more than 2000 wide characters;
29421         instead, use malloc for large buffers.
29422         Check for address arithmetic overflow, and return -1
29423         with errno set to ENOMEM in that case.
29424         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
29425         (NEW_PATTERN): Do not alloca more than 8000 bytes;
29426         instead, return -1.  Check for address arithmetic overflow.
29427
29428 2003-10-14  Paul Eggert  <eggert@twinsun.com>
29429
29430         Handle invalid suffixes and overflow independently, so that
29431         callers can treat them independently as needed.  Fix some bugs in
29432         suffix handling, e.g., "100k@" was not diagnosed as an invalid
29433         suffix for a human-readable blocksize.  The major caller-visible
29434         change is the addition of a new
29435         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
29436         that both overflow and suffix chars were found.
29437
29438         * lib/human.c (humblock): Don't check separately for invalid suffix
29439         char; that is xstrtoumax's job (now that its bug is fixed).
29440         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
29441         INTMAX_MAX]: New macros.
29442         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
29443         TYPE_MAXIMUM): New macros.
29444         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
29445         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
29446         if overflow occurs, as it's what __strtol does and it's more useful
29447         in practice.
29448         (__xstrtol): If __strtol reports some error other than ERANGE,
29449         reflect it to the caller as LONGINT_INVALID.  If it reports
29450         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
29451         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
29452         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
29453         value.
29454         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
29455         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
29456         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
29457         [defined UINTMAX_MAX]: New macros.
29458
29459 2003-10-14  Bruno Haible  <bruno@clisp.org>
29460
29461         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
29462
29463 2003-10-14  Bruno Haible  <bruno@clisp.org>
29464
29465         * m4/sig_atomic_t: New file, from GNU gettext.
29466         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
29467
29468 2003-10-14  Bruno Haible  <bruno@clisp.org>
29469
29470         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
29471         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
29472         Also use volatile where needed.
29473
29474 2003-10-12  Paul Eggert  <eggert@twinsun.com>
29475
29476         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
29477         Change maintainer from Bruno Haible to 'all'.
29478
29479 2003-10-12  Paul Eggert  <eggert@twinsun.com>
29480
29481         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
29482
29483 2003-10-12  Paul Eggert  <eggert@twinsun.com>
29484
29485         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
29486         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
29487         and define in terms of the other primitives.
29488         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
29489         (SIZE_MAX): Define if not already defined.
29490         (array_size_overflow): New function.
29491         (xalloc_die): Abort instead of exiting if 'error' returns.
29492         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
29493         (xmalloc, xrealloc): Use them.
29494         (xcalloc): Check for address arithmetic overflow.
29495         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
29496         a bit faster than strcpy.
29497
29498 2003-10-10  Simon Josefsson  <jas@extundo.com>
29499
29500         * modules/argp (Depends-on): Add restrict and strcase.
29501
29502 2003-10-10  Simon Josefsson  <jas@extundo.com>
29503
29504         * m4/argp.m4: Add AC_C_INLINE.
29505
29506 2003-10-08  Paul Eggert  <eggert@twinsun.com>
29507
29508         Merge getpass from libc, plus a few fixes.
29509
29510         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
29511         Include <stdbool.h>.
29512         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
29513         __fsetlocking to empty.
29514         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
29515         do include <bits/libc-lock.h>.
29516         Do not include <fcntl.h>; not needed.
29517         [_LIBC]: Include <wchar.h>.
29518         (NOTCANCEL_MODE): New macro.
29519         (flockfile, funlockfile) [_LIBC]: New macros.
29520         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
29521         [!_LIBC]: New macros.
29522         (call_fclose): New function.
29523         (getpass): Use it.  Save tty stream separately; this simplifies the
29524         code and makes it more reliable if stdin happens to equal stdout.
29525         Invoke __fsetlocking on tty.
29526         Handle thread cancellation if needed.
29527         Namespace cleanup (use __tcgetattr, __getline).
29528         Use bool for Booleans.
29529         [USE_IN_LIBIO]: Handle wide streams.
29530         [!_LIBC]: Unconditionally do the fseek, since we don't know what
29531         stream might go where.
29532
29533         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
29534         doesn't have to include <stdio.h> before us.
29535         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
29536         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
29537         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
29538         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
29539         if not declared, so that we can use getpass.c code from libc without
29540         rewriting it.
29541         (flockfile, ftrylockfile, funlockfile): New macros.
29542
29543 2003-10-08  Paul Eggert  <eggert@twinsun.com>
29544
29545         * modules/getpass: Depend on stdbool.
29546
29547 2003-10-08  Paul Eggert  <eggert@twinsun.com>
29548
29549         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
29550
29551 2003-10-07  Karl Berry  <karl@gnu.org>
29552
29553         * config/config.{guess,sub}: update from config.
29554
29555 2003-10-06  Jim Meyering  <jim@meyering.net>
29556             Bruno Haible  <bruno@clisp.org>
29557
29558         This lets translators provide better translations for the
29559         "Written by ..." part of --version output.
29560         * lib/version-etc.h: Include stdarg.h.
29561         (version_etc_copyright): Declare as readonly.
29562         (version_etc): Make this function variadic with a NULL-terminated list
29563         of author name strings.
29564         (version_etc_va): New declaration.
29565         * lib/version-etc.c: Include stdarg.h, stdlib.h.
29566         (version_etc_copyright): Declare as readonly.
29567         (version_etc_va): New function. Provide a different translatable string
29568         for each possible number of authors < 10. Abbreviate when there are 10
29569         authors or more.
29570         (version_etc): Make this function variadic. Call version_etc_va.
29571         Suggestion from Gary V. Vaughan.
29572
29573         * lib/long-options.h (parse_long_options): Change prototype: the
29574         authors string is moved to the end and becomes variadic.
29575         * lib/long-options.c: Include stdarg.h.
29576         (parse_long_options): Make this function variadic, too.
29577         Call version_etc_va, not version_etc.
29578
29579 2003-10-06  Bruno Haible  <bruno@clisp.org>
29580
29581         * modules/version-etc-2: Remove file.
29582         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
29583
29584 2003-10-06  Bruno Haible  <bruno@clisp.org>
29585
29586         * modules/fatal-signal: New file.
29587         * MODULES.html.sh (func_all_modules): Add fatal-signal.
29588
29589 2003-10-06  Bruno Haible  <bruno@clisp.org>
29590
29591         * m4/fatal-signal.m4: New file.
29592         * m4/signalblocking.m4: New file, from GNU gettext.
29593
29594 2003-10-06  Bruno Haible  <bruno@clisp.org>
29595
29596         * lib/version-etc-2.h: Remove file.
29597         * lib/version-etc-2.c: Remove file.
29598
29599 2003-10-06  Bruno Haible  <bruno@clisp.org>
29600
29601         * lib/fatal-signal.h: New file, from GNU gettext.
29602         * lib/fatal-signal.c: New file, from GNU gettext.
29603
29604 2003-10-05  Paul Eggert  <eggert@twinsun.com>
29605
29606         * README: Rework advice for preventing empty .o files.
29607         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
29608         not <sys/types.h>.
29609
29610 2003-10-04  Karl Berry  <karl@gnu.org>
29611
29612         * lib/argp*: update from libc.
29613
29614 2003-10-04  Karl Berry  <karl@gnu.org>
29615
29616         * config/config.{guess,sub}: update from config.
29617
29618 2003-10-02  Bruno Haible  <bruno@clisp.org>
29619
29620         * modules/lchown (Include): Add lchown.h.
29621         * modules/time_r (Include): Use "..." syntax.
29622         * modules/xgetdomainname (Include): Add xgetdomainname.h.
29623
29624 2003-10-01  Simon Josefsson  <jas@extundo.com>
29625
29626         * MODULES.html.sh (func_all_modules): Move gethostname from section
29627         'based on' to section 'lacking' POSIX:2001.
29628
29629 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
29630
29631         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
29632         to output mode on the same stream.
29633
29634 2003-09-29  Paul Eggert  <eggert@twinsun.com>
29635
29636         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
29637         Fix arg typo in previous patch.
29638
29639 2003-09-28  Jim Meyering  <jim@meyering.net>
29640
29641         * lib/error.c: Correct cpp indentation.
29642
29643 2003-09-27  Paul Eggert  <eggert@twinsun.com>
29644
29645         * modules/free: New file.
29646
29647 2003-09-27  Paul Eggert  <eggert@twinsun.com>
29648
29649         * m4/free.m4: New file.
29650
29651 2003-09-27  Paul Eggert  <eggert@twinsun.com>
29652
29653         * lib/minmax.h (MIN, MAX)
29654         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
29655         Omit the special code that used __typeof__, since we worry that
29656         it could be more trouble than it's worth.  See:
29657         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
29658         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
29659
29660         * lib/free.c: New file.
29661
29662 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
29663
29664         Trivial fixes to Makefile.am parts of module listings.
29665         * modules/strstr: Append strstr.h to lib_SOURCES.
29666         * modules/strcase: Likewise, for strcase.h.
29667
29668 2003-09-27  Karl Berry  <karl@gnu.org>
29669
29670         * config/mkinstalldirs: update from automake.
29671
29672 2003-09-26  Paul Eggert  <eggert@twinsun.com>
29673
29674         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
29675         (error_tail): Do not loop, reallocating temporary buffer, since
29676         the output cannot contain more wide characters than the input
29677         contains bytes, the size must be big enough already.  This avoids
29678         one potential size overflow calculation.  Check for size overflow
29679         when calculating temporary buffer size.  Free temporary buffer
29680         when done, if it was allocated with malloc; this plugs a memory
29681         leak.  Remove casts from void * to pointers, that are no longer
29682         needed now that we're assuming C89 or better.
29683
29684         Merge error changes from glibc.
29685
29686         * lib/error.c, error.h: Update copyright notice header to match glibc.
29687         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
29688         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
29689         Disable cancellation while printing error.
29690         * lib/error.h: Prepend __ to parameter names.
29691
29692 2003-09-26  Jim Meyering  <jim@meyering.net>
29693
29694         * lib/error.c (error_tail): Move some declarations
29695         into inner scope where the local variables are used.
29696
29697 2003-09-26  Bruno Haible  <bruno@clisp.org>
29698
29699         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
29700         stpncpy().
29701         Don't define stpncpy through config.h; it's now done through stpncpy.h.
29702
29703 2003-09-26  Bruno Haible  <bruno@clisp.org>
29704
29705         * lib/stpncpy.h (gnu_stpncpy): New declaration.
29706         (stpncpy): Define as alias for gnu_stpncpy.
29707         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
29708
29709 2003-09-25  Simon Josefsson  <jas@extundo.com>
29710
29711         * lib/xgetdomainname.h: New file.
29712         * lib/xgetdomainname.c: New file.
29713
29714 2003-09-25  Simon Josefsson  <jas@extundo.com>
29715             Bruno Haible  <bruno@clisp.org>
29716
29717         * modules/getdomainname: New file.
29718         * modules/xgetdomainname: New file.
29719         * MODULES.html.sh (func_all_modules): Add getdomainname,
29720         xgetdomainname.
29721
29722 2003-09-25  Simon Josefsson  <jas@extundo.com>
29723             Bruno Haible  <bruno@clisp.org>
29724
29725         * m4/getdomainname.m4: New file.
29726
29727 2003-09-25  Simon Josefsson  <jas@extundo.com>
29728             Bruno Haible  <bruno@clisp.org>
29729
29730         * lib/getdomainname.h: New file.
29731         * lib/getdomainname.c: New file.
29732
29733 2003-09-25  Karl Berry  <karl@gnu.org>
29734
29735         * lib/argp-fmtstream.c, argp-help.c: update from libc.
29736
29737 2003-09-25  Karl Berry  <karl@gnu.org>
29738
29739         * config/install-sh: update from automake.
29740
29741 2003-09-25  Bruno Haible  <bruno@clisp.org>
29742
29743         * modules/version-etc-2: New file, from modules/version-etc with
29744         modifications.
29745         * MODULES.html.sh (func_all_modules): Add version-etc-2.
29746
29747 2003-09-25  Bruno Haible  <bruno@clisp.org>
29748
29749         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
29750         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
29751
29752 2003-09-24  Simon Josefsson  <jas@extundo.com>
29753
29754         * modules/xgethostname: Add xgethostname.h.
29755
29756 2003-09-24  Paul Eggert  <eggert@twinsun.com>
29757
29758         * lib/linebuffer.c (freebuffer): Don't free the argument, just
29759         the buffer associated with the argument.  Bug reported by
29760         Simon Josefsson.
29761
29762 2003-09-24  Paul Eggert  <eggert@twinsun.com>
29763
29764         * README: Document assumptions that 'int' is at least 32 bits
29765         wide, that integer arithmetic is 2's complement without overflow,
29766         that there are no holes in integer values, that adding sizes of
29767         two nonoverlapping objects can't overflow, and that all-bits-zero
29768         yields scalar zero.  Fix spelling and capitalization typos.
29769
29770 2003-09-19  Karl Berry  <karl@gnu.org>
29771
29772         * lib/argp.h: update from libc.
29773
29774 2003-09-17  Paul Eggert  <eggert@twinsun.com>
29775
29776         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
29777         to avoid spurious warnings like "AC_RUN_IFELSE was called before
29778         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
29779
29780 2003-09-17  Paul Eggert  <eggert@twinsun.com>
29781
29782         * gnulib-tool: Use "test -h", not "test -L", for portability
29783         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
29784         (tags_regexp): Remove, since \| doesn't conform to POSIX.
29785         (sed_extract_prog): Issue s commands one-by-one, rather than
29786         using \| in one s command.
29787
29788 2003-09-16  Paul Eggert  <eggert@twinsun.com>
29789
29790         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
29791         input error, instead of returning NULL the next time we are called
29792         (and therefore losing track of errno).
29793
29794 2003-09-16  Bruno Haible  <bruno@clisp.org>
29795
29796         * gnulib-tool (func_create_testdir): Warn about duplicated
29797         dependencies.
29798
29799 2003-09-15  Paul Eggert  <eggert@twinsun.com>
29800
29801         * modules/argmatch, modules/fatal, modules/obstack,
29802         modules/xalloc, modules/xgethostname: Sort dependencies by
29803         importance, not alphabetically.
29804
29805 2003-09-15  Paul Eggert  <eggert@twinsun.com>
29806
29807         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
29808         fails, so that the caller gets the proper errno.
29809
29810         * lib/readutmp.c (read_utmp): Likewise.
29811         Check for fstat error.  Close stream and free storage
29812         when failing.
29813
29814 2003-09-14  Karl Berry  <karl@gnu.org>
29815
29816         * config/srclist.txt (strdup.c): disable for c89 changes.
29817
29818 2003-09-14  Jim Meyering  <jim@meyering.net>
29819
29820         * lib/getloadavg.c: Correct cpp indentation.
29821         * lib/strdup.c: Likewise.
29822         * lib/vasnprintf.c: Likewise.
29823
29824 2003-09-14  Bruno Haible  <bruno@clisp.org>
29825
29826         * modules/fwriteerror: New file.
29827         * MODULES.html.sh (func_all_modules): Add fwriteerror.
29828
29829 2003-09-14  Bruno Haible  <bruno@clisp.org>
29830
29831         * lib/fwriteerror.h: New file.
29832         * lib/fwriteerror.c: New file.
29833
29834 2003-09-12  Paul Eggert  <eggert@twinsun.com>
29835
29836         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
29837         modules/xgethostname, modules/xalloc: Depend on exit.
29838
29839 2003-09-12  Paul Eggert  <eggert@twinsun.com>
29840
29841         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
29842
29843         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
29844         and AC_MINIX, too, so that their extensions are available.
29845
29846         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
29847         This macro has been superseded by gl_BACKUPFILE.
29848
29849         More patches to assume C89 or better.
29850
29851         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
29852
29853         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
29854         unconditionally.
29855         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
29856         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
29857         Include <string.h>, <stdlib.h> unconditionally.
29858         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
29859         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
29860         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
29861         headers or for string.h.
29862         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
29863         or strtoul.
29864
29865         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
29866         headers.
29867         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
29868         * m4/userspec.m4 (gl_USERSPEC): Likewise.
29869         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
29870         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
29871         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
29872         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
29873         memcpy, memset.
29874         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
29875         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
29876         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
29877         strtol.
29878         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
29879         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
29880         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
29881         strtoul.
29882
29883 2003-09-12  Paul Eggert  <eggert@twinsun.com>
29884
29885         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
29886         * lib/obstack.c [!defined _LIBC]: Likewise.
29887         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
29888         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
29889         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
29890
29891         More changes to assume C89 or better.
29892
29893         * lib/error.c (error_tail): Assume vprintf.
29894
29895         * lib/argmatch.c (getenv): Remove decl.
29896         * lib/progreloc.c (get_full_program_name): Define via prototype.
29897         * lib/setenv.c (clearenv): Likewise.
29898         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
29899         needed.
29900         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
29901         (malloc, memcpy): Remove decls.
29902         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
29903         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
29904         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
29905         (memcpy): Remove macro.
29906         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
29907         (__P): Remove.  All uses removed.
29908         (PTR): Remove.  All uses changed to void *.
29909         (CHAR_BIT, NULL): Remove.
29910         (spaces, zeros, memset_space, memset_zero)
29911         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
29912         Remove.
29913         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
29914         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
29915         Define with prototype.
29916         Remove now-unnecessary prototype decl.
29917         (extra_args_spec): Assume ANSI C.  All uses changed.
29918         (extra_args_spec_iso): Remove.
29919         (my_strftime, emacs_strftimeu): Define via prototype.
29920         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
29921         unconditionally.
29922         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
29923         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
29924         (strtoul, strtol): Remove decls.
29925         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
29926         LONG_MAX): Remove.
29927         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
29928         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
29929         (LOCALE_PARAM_PROTO): New macro.
29930         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
29931         (INTERNAL (strtol), strtol): Define with a prototype.
29932         (PARAMS): Remove.  All uses removed.
29933         * lib/tempname.c: Include <string.h> unconditionally.
29934         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
29935         * lib/xgethostname.c (main): Define with a prototype.
29936         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
29937         Include <stdlib.h> unconditionally.
29938         (calloc, malloc, realloc, free): Remove decls.
29939         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
29940         Include <stdlib.h> unconditionally.  Sort include file names.
29941         (strtod): Remove.
29942         (xstrtod): Define with a prototype.
29943         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
29944         (strtol, strtoul): Remove decls.
29945
29946 2003-09-11  Paul Eggert  <eggert@twinsun.com>
29947
29948         More patches to assume C89 or better.
29949         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
29950         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
29951         string.h, memchr, STDC_HEADERS.
29952
29953 2003-09-11  Paul Eggert  <eggert@twinsun.com>
29954
29955         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
29956         Include <stdlib.h>, <string.h> unconditionally.
29957         Remove now-unnecessary cast to char *.
29958         * lib/strnlen.c: Include <string.h> unconditionally.
29959         * lib/yesno.c (yesno): Define with a prototype.
29960
29961 2003-09-11  Bruno Haible  <bruno@clisp.org>
29962
29963         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
29964
29965 2003-09-10  Jim Meyering  <jim@meyering.net>
29966
29967         * lib/error.c: Correct indentation of cpp directives.
29968
29969 2003-09-10  Bruno Haible  <bruno@clisp.org>
29970
29971         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
29972         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
29973         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
29974         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
29975         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
29976         <stdlib.h> and <string.h> checks.
29977         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
29978         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
29979
29980 2003-09-10  Bruno Haible  <bruno@clisp.org>
29981
29982         * lib/strcspn.c: Include <string.h> unconditionally.
29983         * lib/strpbrk.c: Include <string.h> unconditionally.
29984         * lib/strstr.c: Include <string.h> unconditionally.
29985         * lib/unicodeio.c: Include <string.h> unconditionally.
29986         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
29987         * lib/unsetenv.c: Likewise.
29988         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
29989         * lib/yesno.c: Include <stdlib.h> unconditionally.
29990         (rpmatch): Add prototype.
29991
29992 2003-09-09  Paul Eggert  <eggert@twinsun.com>
29993
29994         More patches to assume C89 or better.
29995         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
29996         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
29997         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
29998         or for string.h.
29999         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
30000         stdlib.h.
30001         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
30002         C headers.
30003         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
30004         string.h.
30005         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
30006         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
30007         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
30008         or for string.h.
30009         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
30010         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
30011         C headers.
30012         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
30013         memcpy.
30014         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
30015         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
30016         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
30017         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
30018         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
30019         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
30020         string.h, free.
30021         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
30022         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
30023         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
30024         C headers, or for string.h.
30025         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
30026         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
30027         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
30028         headers, memory.h, stdlib.h, string.h, strings.h.
30029         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
30030         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
30031         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
30032         strchr.
30033         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
30034         headers, memory.h, string.h.
30035         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
30036         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
30037         free.
30038         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
30039         headers.
30040         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
30041         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
30042         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
30043         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
30044         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
30045
30046 2003-09-09  Paul Eggert  <eggert@twinsun.com>
30047
30048         More K&R removal.
30049
30050         * lib/acosl.c (main): Use a prototype.
30051         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
30052         tanl.c: Likewise.
30053
30054         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
30055
30056         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
30057         (getopt, etopt_long, getopt_long_only, _getopt_internal)
30058         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
30059         with a prototype.
30060         * lib/getopt.c (const): Remove macro.
30061         Include <string.h> unconditionally.
30062         (my_index): Remove; all uses changed to strchr.
30063         (strlen): Remove decl.
30064         (exchange): Remove forward decl; no longer needed.
30065         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
30066         Define with prototype.
30067         * lib/getopt1.c (const): Remove macro.
30068         (getopt_long, getopt_long_only, main): Define with prototype.
30069
30070         * lib/getugroups.c: Include <string.h> unconditionally.
30071
30072         * lib/getusershell.c: Include <stdlib.h> unconditionally.
30073         (getusershell, setusershell, endusershell, readname, main):
30074         Define with prototypes.
30075
30076         * lib/group-member.c: Include group-member.h first.
30077         Include <stdlib.h> unconditionally.
30078
30079         * lib/hard-locale.c: Include hard-locale.h first.
30080         Include <stdlib.h>, <string.h> unconditionally.
30081
30082         * lib/hash.c (free, malloc): Remove decls.
30083         Include <stdlib.h> unconditionally.
30084
30085         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
30086         (getenv): Do not declare.
30087
30088         * lib/idcache.c: Include <string.h> unconditionally.
30089
30090         * lib/long-options.c: Include long-options.h first, to test interface.
30091         Include <stdlib.h> unconditionally.
30092
30093         * lib/makepath.c: Include makepath.h first, to test interface.
30094         Include <stdlib.h> and <string.h> unconditionally.
30095
30096         * lib/linebuffer.c: Include <stdlib.h>.
30097         (free): Remove decl.
30098
30099         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
30100         stddef.h. rpl_malloc returns void *, not char *.
30101         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
30102         prototype.
30103
30104         * lib/md5.h: Include <limits.h> unconditionally.
30105         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
30106         (__P): Remove; all uses removed.
30107         * lib/md5.c: Include "md5.h" first.
30108         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
30109         md5_buffer, md5_process_bytes, md5_process_block):
30110         Define with prototypes.
30111         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
30112         * lib/sha.c: Include "sha.h" first.
30113         Include <stdlib.h>, <string.h> unconditionally.
30114
30115         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
30116         * lib/memcmp.c (__ptr_t): Likewise.
30117         * lib/memrchr.c (__ptr_t): Likewise.
30118         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
30119         Include <string.h> unconditionally.
30120         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
30121         * lib/memchr.c: Include <stdlib.h> unconditionally.
30122         * lib/memchr.c (LONG_MAX): Remove.
30123         * lib/memrchr.c (LONG_MAX): Likewise.
30124         * lib/memchr.c (__memchr): Define via a prototype.
30125         * lib/memrchr.c (__memrchr): Likewise.
30126         * lib/memcmp.c (__P): Remove, and remove all uses.
30127         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
30128         Remove forward decls; no longer needed.
30129         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
30130         Use types required by C89 in prototype.
30131
30132         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
30133         * lib/savedir.c: Likewise.
30134         * lib/mkdir.c (free): Remove decl.
30135         * lib/rmdir.c (rmdir): Define with a prototype.
30136         * lib/savedir.c: Include savedir.h first, to test interface.
30137
30138         * lib/mktime.c (STDC_HEADERS): Remove.
30139         Include <stdlib.h>, <string.h> unconditionally.
30140
30141         * lib/modechange.c: Include <stdlib.h> unconditionally.
30142         (malloc): Remove decl.
30143
30144         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
30145         (free): Remove decl.
30146
30147         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
30148         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
30149         (This type really should be intptr_t, but that's a C99ism.)
30150         (_obstack_memcpy): Remove: all uses changed to memcpy.
30151         Include <string.h> unconditionally.
30152         (struct obstack): Assume __STDC__ for types of members
30153         chunkfun, freefun, extra_arg.
30154         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
30155         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
30156         obstack_begin, obstack_specify_allocation,
30157         obstack_specify_allocation_with_arg, obstack_chunkfun,
30158         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
30159         Remove unprototyped decls and the macros that use them.
30160         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
30161         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
30162         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
30163         (defined __STDC__ && __STDC__)]:
30164         Remove nonprototyped code.
30165         Include <stdlib.h> unconditionally.
30166         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
30167         _obstack_allocated_p, _obstack_free, obstack_free,
30168         _obstack_memory_used, print_and_abort):
30169         Define using prototypes.
30170         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
30171         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
30172         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
30173         obstack_next_free, obstack_object_size, obstack_room) [0]:
30174         Remove unused, unprototyped code.
30175
30176         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
30177
30178         * lib/physmem.c (physmem_total, physmem_available, main): Define
30179         with prototypes.
30180
30181         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
30182         (main): Define with a prototype.
30183
30184         * lib/posixver.c (getenv): Remove decl.
30185
30186         * lib/putenv.c (malloc): Returns void *, not char *.
30187         Include <string.h> unconditionally.
30188         (strchr, memcpy, NULL): Do not define.
30189
30190         * lib/readtokens.c: Include readtokens.h first, to test interface.
30191         Include <stdlib.h>, <string.h> unconditionally.
30192         (init_tokenbuffer): Define with a prototype.
30193
30194         * lib/regex.c (PARAMS): Remove.  All uses removed.
30195         All uses of _RE_ARGS removed, too.
30196         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
30197         unconditionally.
30198         (bzero): Assume memset exists.
30199         (memcmp, memcpy, NULL): Remove.
30200         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
30201         char, or assignments to local vars of type signed char.
30202         (init_syntax_once, PREFIX(extract_number_and_incr),
30203         PREFIX(print_partial_compiled_pattern),
30204         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
30205         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
30206         PREFIX(regex_grow_registers), PREFIX(regex_compile),
30207         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
30208         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
30209         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
30210         wcs_compile_range, byte_compile_range, truncate_wchar,
30211         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
30212         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
30213         count_mbs_length, wcs_re_match_2_internal,
30214         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
30215         PREFIX(alt_match_null_string_p),
30216         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
30217         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
30218         regfree, PREFIX(extract_number)): Define with prototype.  Remove
30219         now-unnecessary declaration, if any.
30220         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
30221         regcomp, regexec):
30222         Remove now-unnecessary casts among pointer types.
30223         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
30224
30225         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
30226         (free): Remove decl.
30227
30228         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
30229
30230         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
30231         (free): Remove decl.
30232
30233         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
30234         * lib/xgetcwd.c: Likewise.
30235
30236         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
30237         (free): Remove decl.
30238
30239         * lib/strchrnul.c (strchrnul): Define with a prototype.
30240         Fix bug: c_in was not converted to char before searching.
30241
30242         The following changes are not K&R related:
30243
30244         * lib/group-member.h: Include <sys/types.h>, so that this file is
30245         self-contained.
30246         * lib/makepath.h: Likewise.
30247
30248         * lib/getusershell.c (readname, default_index, line_size, readname):
30249         Use size_t, not int, for sizes.
30250         (readname): If the size overflows, report an error instead of
30251         looping forever.
30252
30253 2003-09-09  Paul Eggert  <eggert@twinsun.com>
30254
30255         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
30256         libc.
30257
30258 2003-09-09  Paul Eggert  <eggert@twinsun.com>
30259
30260         * README: New section: portability guidelines.
30261
30262 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
30263
30264         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
30265         C89 spec.
30266
30267 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
30268
30269         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
30270
30271 2003-09-08  Paul Eggert  <eggert@twinsun.com>
30272
30273         Assume C89 or better; remove K&R cruft.
30274         A few of these changes were first proposed by Derek Robert Price
30275         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
30276
30277         * lib/addext.c: Include <string.h> unconditionally.
30278         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
30279         Don't declare getenv or malloc.
30280
30281         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
30282         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
30283         (NULL): Remove.
30284         (find_stack_direction, alloca): Use prototypes.
30285
30286         * lib/atexit.c (atexit): Define using a prototype.
30287
30288         * lib/basename.c, dirname.c, stripslash.c:
30289         Include <string.h> unconditionally.
30290
30291         * lib/bcopy.c: Include <stddef.h>.
30292         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
30293
30294         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
30295
30296         * lib/error.h (error, error_at_line, error_print_progname)
30297         [! (defined (__STDC__) && __STDC__)]: Remove decls.
30298         * lib/error.c: Include error.h first, to check interface.
30299         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
30300         (VA_START): Remove; all uses changeed to va_start.
30301         (exit, strerror): Remove decls.
30302         (error_print_progname): Prototype uncondionally.
30303         Don't include <errno.h>; no longer needed.
30304         (private_strerror): Remove.
30305         (error_tail): Always define.
30306         (error, error_at_line): Assume C89 or better; always use prototypes.
30307         * lib/fatal.c: Include "fatal.h" first, to test interface.
30308         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
30309         (VA_START): Remove; all uses changed to va_start.
30310         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
30311         this case.
30312         (exit): Remove decl.
30313         (fatal): Prototype unconditionally.  Assume va_start works.
30314         Abort at end, to pacify gcc.
30315
30316         * lib/euidaccess.c (main): Define with a prototype.
30317
30318         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
30319
30320         * lib/exitfail.c: Include <stdlib.h> unconditionally.
30321
30322         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
30323         prototypes.
30324         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
30325         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
30326         (getenv): Remove decl.
30327         (fnmatch): Define using a prototype.
30328         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
30329         (FCT): Define using a prototype.
30330
30331         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
30332
30333         * lib/gethostname.c: Include <stddef.h>.
30334         (gethostname): Define with prototype.  Length is size_t, not int.
30335
30336 2003-09-08  Paul Eggert  <eggert@twinsun.com>
30337
30338         Assume C89 or better; remove K&R cruft.
30339         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
30340         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
30341         string.h, getenv, malloc.
30342         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
30343         headers.
30344         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
30345         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
30346         do not check for strerror.
30347         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
30348         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
30349         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
30350         do not check for doprnt or vprintf.
30351         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
30352         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
30353
30354 2003-09-08  Paul Eggert  <eggert@twinsun.com>
30355
30356         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
30357         getversion.c should have been removed then, but was accidentally
30358         preserved.
30359
30360         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
30361         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
30362
30363 2003-09-08  Karl Berry  <karl@gnu.org>
30364
30365         * config/config.sub, config.guess, srclistvars.sh: update from savannah
30366                 config, forget about prep.
30367
30368         * config/depcomp, missing: update from automake.
30369
30370 2003-09-07  Paul Eggert  <eggert@twinsun.com>
30371
30372         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
30373         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
30374
30375 2003-09-07  Paul Eggert  <eggert@twinsun.com>
30376
30377         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
30378         copy_tm_result.  Bug reported by Simon Josefsson in
30379         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
30380
30381 2003-09-06  Paul Eggert  <eggert@twinsun.com>
30382
30383         * m4/time_r.m4: New file.
30384         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
30385         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
30386         is. Check for timegm declaration.
30387         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
30388         Do not check for gmtime_r.
30389         Replace mktime if __mktime_internal does not exist and if mktime
30390         hasn't been replaced already.
30391
30392 2003-09-06  Paul Eggert  <eggert@twinsun.com>
30393
30394         * lib/time_r.c, lib/time_r.h: New files.
30395
30396         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
30397         __localtime_r.
30398         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
30399         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
30400
30401         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
30402         __gmtime_r.
30403         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
30404         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
30405         Include <time_r.h>.
30406
30407         * lib/timegm.c: Switch to glibc implementation, with the following
30408         changes:
30409         [defined HAVE_CONFIG_H]: Include <config.h>.
30410         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
30411         (__mktime_internal) [!defined _LIBC]: New decl.
30412         (__gmtime_r) [!defined _LIBC]: New macro and function.
30413         (timegm): Use a prototype, since gnulib assumes C89.
30414         Do not bother declaring tmp to be const, as it's not really usefu.
30415         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
30416         (timegm): Declare only if HAVE_DECL_TIMEGM.
30417
30418 2003-09-06  Paul Eggert  <eggert@twinsun.com>
30419
30420         * MODULES.html.sh (func_all_modules): Add time_r.
30421         * modules/time_r: New file.
30422         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
30423         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
30424
30425 2003-09-03  Paul Eggert  <eggert@twinsun.com>
30426
30427         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
30428         Bug reported by Lute Kamstra in
30429         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
30430
30431         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
30432         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
30433         course with correspondingly smaller numbers for tomorrow and
30434         yesterday.  From Tadayoshi Funaba.  Originally installed into
30435         sh-utils on 1999-08-07, but the patch got lost (I guess during the
30436         coreutils merge?).
30437
30438 2003-08-31  Simon Josefsson  <jas@extundo.com>
30439
30440         * modules/timegm: New file.
30441         * MODULES.html.sh (func_all_modules): Add timegm.
30442
30443 2003-08-31  Simon Josefsson  <jas@extundo.com>
30444
30445         * m4/timegm.m4: New file.
30446
30447 2003-08-31  Simon Josefsson  <jas@extundo.com>
30448
30449         * lib/timegm.h: New file.
30450         * lib/timegm.c: New file.  Based on
30451         wget-1.8.2/src/http.c:mktime_from_utc.
30452
30453 2003-08-31  Karl Berry  <karl@gnu.org>
30454
30455         * lib/argp.h: update from libc.
30456
30457 2003-08-28  Bruno Haible  <bruno@clisp.org>
30458
30459         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
30460         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
30461         followed by '#define fnmatch fnmatch_posix' gives an error.
30462
30463 2003-08-28  Bruno Haible  <bruno@clisp.org>
30464
30465         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
30466         warning on QNX, which defines O_BINARY to 000000.
30467
30468 2003-08-27  Jim Meyering  <jim@meyering.net>
30469
30470         * m4/mkstemp.m4: Require that the system mkstemp be able to create
30471         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
30472         would fail after 32.  Reported by Danny Levinson.  Details here:
30473         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
30474
30475 2003-08-24  Bruno Haible  <bruno@clisp.org>
30476
30477         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
30478         MSVC7 <stdio.h> is included later.
30479
30480 2003-08-22  Simon Josefsson  <jas@extundo.com>
30481
30482         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
30483
30484 2003-08-20  Karl Berry  <karl@gnu.org>
30485
30486         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
30487
30488 2003-08-20  Bruno Haible  <bruno@clisp.org>
30489
30490         * modules/progname: New file.
30491         * MODULES.html.sh (func_all_modules): Add progname.
30492
30493 2003-08-20  Bruno Haible  <bruno@clisp.org>
30494
30495         * lib/progname.h: New file, from GNU gettext.
30496         * lib/progname.c: New file, from GNU gettext.
30497         * lib/progreloc.c: New file, from GNU gettext.
30498
30499 2003-08-19  Jim Meyering  <jim@meyering.net>
30500
30501         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
30502         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
30503
30504 2003-08-19  Bruno Haible  <bruno@clisp.org>
30505
30506         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
30507         more.
30508
30509 2003-08-19  Bruno Haible  <bruno@clisp.org>
30510
30511         * lib/xstrdup.c: Assume <string.h> exists.
30512
30513 2003-08-18  Paul Eggert  <eggert@twinsun.com>
30514
30515         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
30516         in makefile rules.
30517
30518 2003-08-18  Jim Meyering  <jim@meyering.net>
30519
30520         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
30521         * m4/lib-ld.m4: Likewise.
30522
30523 2003-08-18  Jim Meyering  <jim@meyering.net>
30524
30525         * lib/setenv.h: Indent nested cpp directive.
30526         * lib/vasnprintf.c: Remove trailing blanks.
30527
30528 2003-08-17  Simon Josefsson  <jas@extundo.com>
30529
30530         * modules/xstrndup: New file.
30531         * MODULES.html.sh (func_all_modules): Add xstrndup.
30532
30533 2003-08-17  Simon Josefsson  <jas@extundo.com>
30534
30535         * modules/argp: Fix autoconf macro name. Add more dependencies.
30536
30537 2003-08-17  Simon Josefsson  <jas@extundo.com>
30538
30539         * m4/xstrndup.m4: New file.
30540
30541 2003-08-17  Simon Josefsson  <jas@extundo.com>
30542
30543         * m4/argp.m4: New file.
30544
30545 2003-08-17  Simon Josefsson  <jas@extundo.com>
30546             Bruno Haible  <bruno@clisp.org>
30547
30548         * lib/xstrndup.h: New file.
30549         * lib/xstrndup.c: New file.
30550
30551 2003-08-17  Bruno Haible  <bruno@clisp.org>
30552
30553         * modules/strndup (Files, Include): Add lib/strndup.h.
30554
30555 2003-08-17  Bruno Haible  <bruno@clisp.org>
30556
30557         * modules/euidaccess (Files): Add lib/euidaccess.h.
30558
30559 2003-08-17  Bruno Haible  <bruno@clisp.org>
30560
30561         * lib/strndup.h: New file.
30562
30563 2003-08-17  Bruno Haible  <bruno@clisp.org>
30564
30565         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
30566         like AC_GNU_SOURCE.
30567         * modules/extensions (configure.ac): Comment out the invocation of
30568         gl_USE_SYSTEM_EXTENSIONS.
30569
30570 2003-08-16  Paul Eggert  <eggert@twinsun.com>
30571
30572         Merges from coreutils, etc.
30573         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
30574         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
30575         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
30576         fixing a typo.
30577         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
30578         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
30579
30580 2003-08-16  Paul Eggert  <eggert@twinsun.com>
30581
30582         Document merge from coreutils.
30583         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
30584         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
30585         * modules/utime: Add m4/utimes-null.m4.
30586
30587 2003-08-16  Paul Eggert  <eggert@twinsun.com>
30588
30589         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
30590         space, undoing this 2003-08-12 change:
30591         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
30592
30593 2003-08-16  Paul Eggert  <eggert@twinsun.com>
30594
30595         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
30596         strtoul.c from libc, undoing this 2003-08-12 change:
30597         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
30598
30599 2003-08-16  Jim Meyering  <jim@meyering.net>
30600
30601         Merges from coreutils.
30602         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
30603         prefix.  Adjust cache variables similarly.  Create 500 rather than
30604         just 300 files, to exercise bug on Darwin6.5, too.
30605         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
30606         $missing_dir.
30607         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
30608         AM_SYS_POSIX_TERMIOS.
30609         Reported by mkc@mathdogs.com.
30610         Also change use of $am_cv_sys_posix_termios
30611         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
30612         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
30613         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
30614         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
30615         in /proc/mounts until it finds one with matching device number.  This
30616         is unnecessary when the FILE argument *is* a mount point.  No stat call
30617         is necessary in that case.  So, disable the statvfs-testing code on
30618         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
30619         as RedHat bug# 84846.
30620         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
30621         to 1MB, so as not to render systems with no stack size limit (e.g.,
30622         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
30623         Include <unistd.h>.  On some systems,
30624         it is required for the definition of _SC_PAGESIZE.
30625
30626 2003-08-16  Jim Meyering  <jim@meyering.net>
30627
30628         Merge from coreutils.
30629         * lib/xstrtoimax.c: #else #if -> #elif.
30630         * lib/xstrtoumax.c: Likewise.
30631
30632 2003-08-16  Jim Meyering  <jim@meyering.net>
30633
30634         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
30635         * m4/utimes.m4: Removed.
30636         * m4/utimes-null.m4: Renamed from utimes.m4.
30637
30638         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
30639         to 1MB, so as not to render systems with no stack size limit (e.g.,
30640         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
30641         Include <unistd.h>.  On some systems,
30642         it is required for the definition of _SC_PAGESIZE.
30643
30644 2003-08-16  Jim Meyering  <jim@meyering.net>
30645         and Paul Eggert  <eggert@cs.ucla.edu>
30646
30647         Merges from coreutils, etc.
30648
30649         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
30650         using the latest version from cvs.  This avoids problems with #line
30651         directives using a vendor (Sun) compiler.
30652         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
30653         Don't set GETGROUPS_LIB here; now it's
30654         done via getgroups.m4's wrapper function.
30655         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
30656         rather than just in sh-util/configure.in, so that the
30657         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
30658         same.
30659         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
30660         AC_FUNC_GETLOADAVG where to find getloadavg.c.
30661         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
30662         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
30663         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
30664         Remove code that is now done by the newly-required macros.
30665         Append $(EXEEXT) to DF_PROG.
30666         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
30667         Do not invoke or require the following here,
30668         since prereq.m4 or some gnulib .m4 now does this for us:
30669         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
30670         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
30671         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
30672         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
30673         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
30674         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
30675         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
30676         AC_FUNC_OBSTACK.
30677         Do not replace the following functions, as this is now the job
30678         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
30679         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
30680         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
30681         atexit getpass, strdup, getpagesize.
30682         Replace 'raise'.
30683         Do not check for the following functions, as this is now the job
30684         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
30685         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
30686         setregid.
30687         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
30688         Check for sys/sysctl.h.
30689         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
30690         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
30691         of checking for ssize_t ourselves.
30692
30693         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
30694         Require every macro that gnulib/modules/* suggests for us.
30695         (jm_PREREQ_ADDEXT): New macro.
30696         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
30697         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
30698
30699         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
30700         (gl_PHYSMEM): Use it.
30701         Also check for `table' function.
30702         Check for new headers and functions.
30703         Add check for sys/sysmp.h.
30704         With suggestions from Kaveh Ghazi.
30705         Ignore headers that are present but cannot be compiled.  This
30706         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
30707         C 5.4.
30708
30709 2003-08-15  Paul Eggert  <eggert@twinsun.com>
30710
30711         Document merge from coreutils.
30712         * modules/userspec: Depend on posixver.
30713         * modules/strftime: Depend on tzset.
30714
30715 2003-08-15  Paul Eggert  <eggert@twinsun.com>
30716
30717         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
30718         rather than tab, after '#' in shell-script copyright notices.
30719         Suggested by Bruno Haible.
30720
30721 2003-08-15  Paul Eggert  <eggert@twinsun.com>
30722
30723         * config/srclist-update: Use three spaces, rather than tab, after '#'
30724         in shell-script copyright notices.  Suggested by Bruno Haible.
30725         Remove unnecessary parenthesization in regular expression.
30726
30727 2003-08-15  Jim Meyering  <jim@meyering.net>
30728
30729         Merge from coreutils.
30730         * lib/xgethostname.c: Include <stdlib.h>.
30731         (xghostname): Don't exit for anything other than memory-related
30732         failure; just return NULL.
30733         * lib/userspec.c: Include "posixver.h".
30734         (parse_user_spec): Accept `.' as a separator only
30735         in pre-POSIX-200112 mode.
30736         * lib/strtoimax.c: Use #elif rather than #else #if.
30737         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
30738         Remove function, now that we can rely on a working tzset function.
30739         [!_LIBC]: Ensure that the required autoconf test has been run.
30740         [!defined _NL_CURRENT && HAVE_STRFTIME]:
30741         Use underlying_strftime for %r.
30742         * lib/sha.c: Merge in some clean-up and optimization changes from
30743         glibc.
30744         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
30745         Ensure that it is a multiple of 64.
30746         Rearrange loop exit tests so as to avoid performing an
30747         additional fread after encountering an error or EOF.
30748         * lib/realloc.c: Update copyright date.
30749
30750 2003-08-15  Jim Meyering  <jim@meyering.net>
30751         and Paul Eggert  <eggert@twinsun.com>
30752
30753         Merge from coreutils.
30754         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
30755         member but strut utmpx does not.  Needed for AIX 4.3.3.
30756         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
30757
30758 2003-08-15  Jim Meyering  <jim@meyering.net>
30759         and Paul Eggert  <eggert@cs.ucla.edu>
30760
30761         Merges from coreutils, etc.
30762         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
30763         Require gl_FUNC_TZSET_CLOBBER.
30764         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
30765         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
30766         members.
30767
30768 2003-08-14  Paul Eggert  <eggert@twinsun.com>
30769
30770         Help the merge from coreutils.
30771         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
30772         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
30773         * m4/tzset.m4: Use it too.
30774
30775 2003-08-14  Paul Eggert  <eggert@twinsun.com>
30776
30777         * modules/tzset: New file.
30778
30779 2003-08-14  Jim Meyering  <jim@meyering.net>
30780
30781         Merges from coreutils.
30782         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
30783         variable names, rather than @FNMATCH_H@.
30784         * modules/alloca: Likewise for $(ALLOCA_H).
30785
30786         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
30787         the three copies of the literal target, `fnmatch.h'.
30788         * modules/alloca (alloca.h): Likewise.
30789
30790 2003-08-14  Jim Meyering  <jim@meyering.net>
30791
30792         Merge from coreutils.
30793         * m4/tzset.m4: New file.
30794         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
30795         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
30796         otherwise, AIX 5.1 systems would end up using the latter.
30797         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
30798         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
30799         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
30800         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
30801
30802 2003-08-14  Jim Meyering  <jim@meyering.net>
30803
30804         Merge from coreutils.
30805         * lib/obstack.h: Whitespace changes.
30806         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
30807         and xcalloc return values.
30808         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
30809         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
30810         hang on OSF/1 5.1 for DIR on both local and remote file systems.
30811         Reported by (and fix confirmed by) Nelson H. F. Beebe.
30812         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
30813         error from mntctl.
30814         Use mntctl's return value to drive the entry-processing loop, since
30815         we can't rely on the value of the vmt_length member in the last
30816         entry.  On some systems doing so could result in exhausting
30817         virtual memory.  Based in part on a patch from Mike Jetzer.
30818
30819 2003-08-14  Jim Meyering  <jim@meyering.net>
30820         and Paul Eggert  <eggert@twinsun.com>
30821
30822         Merges from coreutils, plus other fixes.
30823         * lib/physmem.c: Merge in portability changes from gcc/libiberty
30824         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
30825         for credits and details.  Thanks to Kaveh Ghazi for helping
30826         to keep these files in sync.
30827         (ARRAY_SIZE): Define it.
30828         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
30829         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
30830         (memcasecmp): Don't assume size_t fits in unsigned int.
30831         Remove casts and duplicate code.
30832         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
30833         (memcpy): Remove definition.
30834         Merge in some clean-up and optimization changes from glibc.
30835         [BLOCKSIZE]: Move definition to top of file.
30836         Ensure that it is a multiple of 64.
30837         Rearrange loop exit tests so as to avoid performing an
30838         additional fread after encountering an error or EOF.
30839         * lib/md5.h (md5_uintptr): Define.
30840         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
30841         return to the initial working directory.  Preserve errno
30842         for caller.
30843         * lib/idcache.c: Include "xalloc.h".
30844         (xmalloc, xrealloc): Remove decls.
30845         (getuser): Remove casts no longer required in C89.
30846         * lib/human.c: Include stdio.h, for sprintf.
30847         * lib/group-member.c: Include "xalloc.h".
30848         (xmalloc, xrealloc): Remove decls.
30849         (get_group_info): Remove casts no longer required in C89.
30850         * lib/getusershell.c (readname): Remove casts no longer required in
30851         C89.
30852         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
30853         * lib/getline.c: Whitespace fix, from coreutils.
30854
30855 2003-08-13  Paul Eggert  <eggert@twinsun.com>
30856
30857         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
30858         Check for isascii.
30859
30860         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
30861         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
30862         Undo previous (whitespace-only) change.
30863
30864 2003-08-13  Paul Eggert  <eggert@twinsun.com>
30865
30866         * lib/exclude.c: Include <ctype.h>
30867         (IN_CTYPE_DOMAIN): New macro.
30868         (is_space): New fn.
30869         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
30870         and empty lines.
30871
30872         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
30873         Undo previous (whitespace-only) change.
30874
30875 2003-08-13  Paul Eggert  <eggert@twinsun.com>
30876
30877         * config/srclist-update: Change update back to the old behavior,
30878         leaving whitespace alone.  Use one 'sed' command rather than a
30879         pipeline.
30880         (fixlicense): Now a variable, not a function.
30881         (remove_trailing_blanks): Remove.
30882         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
30883         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
30884         Undo previous (whitespace-only) change.
30885
30886 2003-08-12  Paul Eggert  <eggert@twinsun.com>
30887
30888         Merge from coreutils.
30889         * modules/euidaccess: Add lib_SOURCES, include for new
30890         file euidaccess.h
30891
30892 2003-08-12  Paul Eggert  <eggert@twinsun.com>
30893
30894         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
30895         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
30896         Normalize leading white space and remove trailing white space.
30897
30898         Merge from coreutils
30899         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
30900
30901         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
30902         0.12.1.  These files are now being upgraded automatically by
30903         ../config/srclist-update.
30904
30905 2003-08-12  Paul Eggert  <eggert@twinsun.com>
30906
30907         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
30908         Normalize leading white space and remove trailing white space.
30909         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
30910         notice, as per ../config/srclist-update.
30911
30912         Merge from coreutils.
30913         * lib/euidaccess.h: New file.
30914         * lib/euidaccess.c: Include it.
30915         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
30916         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
30917         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
30918
30919 2003-08-12  Paul Eggert  <eggert@twinsun.com>
30920
30921         * config/srclist-update: Add copyright notice.
30922         (remove_id_lines, remove_trailing_blanks): New constants.
30923         (fixfile): Use them to normalize spacing a bit in copied files.
30924         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
30925         Normalize leading white space and remove trailing white space.
30926
30927         * config/texinfo.tex: Sync with texinfo.
30928
30929         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
30930         strtoul.c from libc, to merge coreutils whitespace changes.
30931
30932         * config/srclist.txt: Get the following m4 files from gettext:
30933         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
30934         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
30935         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
30936         wint_t.m4.
30937
30938 2003-08-12  Karl Berry  <karl@gnu.org>
30939
30940         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
30941         been made.
30942
30943 2003-08-11  Paul Eggert  <eggert@twinsun.com>
30944
30945         * modules/gnu-source, m4/gnu-source.m4:
30946         Remove; we're assuming Autoconf 2.54 or later now.
30947         Suggested by Bruno Haible.
30948         * MODULES.html.sh (func_all_modules): Remove gnu-source.
30949
30950 2003-08-11  Bruno Haible  <bruno@clisp.org>
30951
30952         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
30953
30954 2003-08-11  Bruno Haible  <bruno@clisp.org>
30955
30956         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
30957         (vasnprintf): Use it instead of wcslen.
30958
30959 2003-08-11  Bruno Haible  <bruno@clisp.org>
30960
30961         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
30962         value to ensure that _Bool promotes to int. Use #define for _Bool when
30963         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
30964
30965 2003-08-10  Karl Berry  <karl@gnu.org>
30966
30967         * lib/regex.h: update from libc (whitespace fix).
30968
30969 2003-08-09  Paul Eggert  <eggert@twinsun.com>
30970
30971         Merge some files from coreutils.  These changes were
30972         originally made by Jim Meyering.
30973         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
30974         many older Unixes require this.
30975         * lib/alloca.c (alloca): Remove cast to argument of free;
30976         no longer needed in C89.
30977         * lib/alloca_.h, regex.h: Fix white space to match
30978         what GNU indent does.
30979
30980 2003-08-09  Paul Eggert  <eggert@twinsun.com>
30981
30982         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
30983         apparently Emacs's Unicode mode got confused before my 2003-08-05
30984         checkin.
30985
30986 2003-08-08  Paul Eggert  <eggert@twinsun.com>
30987
30988         * m4/extensions.m4: New file.
30989         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
30990         Require gl_USE_SYSTEM_EXTENSIONS.
30991         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
30992         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
30993
30994 2003-08-08  Paul Eggert  <eggert@twinsun.com>
30995
30996         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
30997         * modules/extensions, modules/gnu-source: New files.
30998         * modules/timespec, modules/unlocked-io: Depend on extensions.
30999
31000 2003-08-07  Paul Eggert  <eggert@twinsun.com>
31001
31002         * modules/restrict: New file.
31003         * MODULES.html.sh (func_all_modules): Add restrict.
31004         * modules/regex: Depend on restrict.
31005
31006 2003-08-07  Paul Eggert  <eggert@twinsun.com>
31007
31008         * m4/restrict.m4: New file.
31009         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
31010
31011 2003-08-07  Bruno Haible  <bruno@clisp.org>
31012
31013         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
31014         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
31015
31016 2003-08-07  Bruno Haible  <bruno@clisp.org>
31017
31018         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
31019         makes the module 'getndelim2' compatible with the module 'getline'.
31020
31021 2003-08-05  Paul Eggert  <eggert@twinsun.com>
31022
31023         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
31024         byte with "\201" to avoid glitches when editing that source file
31025         with multi-gnome-terminal.
31026
31027 2003-08-05  Paul Eggert  <eggert@twinsun.com>
31028
31029         * lib/bumpalloc.h: Remove.
31030
31031 2003-08-05  Paul Eggert  <eggert@twinsun.com>
31032
31033         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
31034         * modules/bumpalloc: Remove.
31035
31036 2003-08-04  Paul Eggert  <eggert@twinsun.com>
31037
31038         * lib/getloadavg.c: Change copyright notice and spacing to conform to
31039         GNU coding style.
31040
31041         Merge from coreutils.
31042         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
31043         1. From glibc.
31044         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
31045         from Karl Berry, implemented by Jim Meyering.
31046         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
31047         from Dmitry V. Levin.
31048         Remove anachronistic cast of xrealloc.
31049         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
31050         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
31051         type. Otherwise, it wouldn't compile with at least /bin/cc on
31052         ymp-cray-unicos9.0.2.X.
31053         Combine two mostly-identical uses of alloca into one.
31054         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
31055
31056 2003-08-04  Dave Love  <d.love@dl.ac.uk>
31057
31058         [From Emacs.]
31059
31060         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
31061         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
31062         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
31063         obsolete NLIST_NAME_UNION.
31064         [__GNU__]: Undef BSD and FSCALE.
31065         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
31066
31067 2003-08-03  Paul Eggert  <eggert@twinsun.com>
31068
31069         * lib/stdbool_.h (_Bool): Make it signed char, instead of
31070         an enum type, so that it's guaranteed to promote to int.  See:
31071         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
31072
31073 2003-08-03  Karl Berry  <karl@gnu.org>
31074
31075         * config/depcomp: update from automake.
31076
31077 2003-07-31  Paul Eggert  <eggert@twinsun.com>
31078
31079         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
31080         (strerror): Don't assume that a printable int fits in 14 bytes.
31081
31082 2003-07-31  Bruno Haible  <bruno@clisp.org>
31083
31084         * modules/getpass-gnu: New file.
31085         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
31086
31087 2003-07-31  Bruno Haible  <bruno@clisp.org>
31088
31089         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
31090
31091 2003-07-24  Karl Berry  <karl@gnu.org>
31092
31093         * config/missing: update from automake.
31094
31095 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
31096             Bruno Haible  <bruno@clisp.org>
31097
31098         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
31099         * lib/getline.c (getline, getdelim): Likewise.
31100         Remove _GNU_SOURCE define; now it's defined in config.h through
31101         m4/getline.m4.
31102
31103 2003-07-23  Karl Berry  <karl@gnu.org>
31104
31105         * config/config.sub: update from prep.
31106
31107 2003-07-22  Paul Eggert  <eggert@twinsun.com>
31108
31109         * modules/xalloc (Depends-on): Add exitfail.
31110         * modules/xmemcoll: Likewise.
31111
31112 2003-07-22  Paul Eggert  <eggert@twinsun.com>
31113
31114         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
31115         over-parenthesization in macros.
31116
31117         Sync with coreutils.
31118
31119         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
31120         required by C99.
31121
31122         Use `exit_failure' for xalloc and xmemcoll instead of their own
31123         private exit-failure variables.
31124         * lib/xalloc.h (xalloc_exit_failure): Remove.
31125         * lib/xmalloc.c: Likewise.  Include exitfail.h.
31126         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
31127         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
31128         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
31129         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
31130
31131 2003-07-20  Jim Meyering  <jim@meyering.net>
31132
31133         * modules/closeout (Depends-on): Add exitfail.
31134         Suggestion from Bruno Haible.
31135
31136 2003-07-19  Karl Berry  <karl@gnu.org>
31137
31138         * config/config.sub: update from prep.
31139
31140 2003-07-18  Paul Eggert  <eggert@twinsun.com>
31141
31142         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
31143         Remove.
31144         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
31145         to test that it can stand by itself.  Include "exitfail.h".
31146         Clients should set exit_failure instead.
31147         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
31148
31149 2003-07-18  Bruno Haible  <bruno@clisp.org>
31150
31151         * modules/getndelim2: New file.
31152         * modules/getline: Share files with module getndelim2.
31153         * modules/getnline: Depend on getndelim2 instead of sharing files with
31154         it. Add getnline.c to lib_SOURCES.
31155         * MODULES.html.sh (func_all_modules): Add getndelim2.
31156
31157 2003-07-18  Bruno Haible  <bruno@clisp.org>
31158
31159         * m4/getndelim2.m4: New file.
31160         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
31161         invoke gl_PREREQ_GETNDELIM2.
31162         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
31163         gl_PREREQ_GETNDELIM2.
31164         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
31165         gl_GETNDELIM2.
31166
31167 2003-07-18  Bruno Haible  <bruno@clisp.org>
31168
31169         * lib/getndelim2.h: New file.
31170         * lib/getndelim2.c: Make into a module of its own. Include config.h,
31171         getndelim2.h.
31172         (getndelim2): Make non-static. Change return type to ssize_t.
31173         * lib/getline.h: Change argument names.
31174         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
31175         * lib/getnline.c: Include getndelim2.h.
31176
31177 2003-07-18  Andreas Schwab  <schwab@suse.de>
31178
31179         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
31180
31181 2003-07-17  Karl Berry  <karl@gnu.org>
31182
31183         * config/config.sub: update from prep.
31184
31185 2003-07-17  Bruno Haible  <bruno@clisp.org>
31186
31187         * modules/getnline: New file.
31188         * modules/getline: Add lib/getndelim2.c to source file list.
31189         * MODULES.html.sh (func_all_modules): Add getnline.
31190
31191 2003-07-17  Bruno Haible  <bruno@clisp.org>
31192
31193         * m4/getnline.m4: New file.
31194
31195 2003-07-17  Bruno Haible  <bruno@clisp.org>
31196
31197         * m4/Makefile.am.in: Remove file.
31198         * m4/Makefile.am: Remove file.
31199         * m4/Makefile.in: Remove file.
31200
31201 2003-07-17  Bruno Haible  <bruno@clisp.org>
31202
31203         * lib/getnline.h: New file.
31204         * lib/getnline.c: New file.
31205         * lib/getndelim2.c: New file, extracted from getline.c.
31206         (getndelim2): Renamed from getdelim2, with added nmax argument.
31207         * lib/getline.c: Include getndelim2.c.
31208         (getdelim2): Moved out to getndelim2.c.
31209         (getline, getdelim): Update.
31210
31211 2003-07-17  Bruno Haible  <bruno@clisp.org>
31212
31213         * lib/Makefile.am: Remove file.
31214         * lib/Makefile.in: Remove file.
31215
31216 2003-07-17  Bruno Haible  <bruno@clisp.org>
31217
31218         * configure.in: Remove file.
31219         * Makefile.in: Remove file.
31220
31221 2003-07-17  Bruno Haible  <bruno@clisp.org>
31222
31223         * MODULES.html.sh: Put the </BODY> right before </HTML>.
31224
31225 2003-07-16  Karl Berry  <karl@gnu.org>
31226
31227         * config/srclist-update: was running fixlicense twice, which caused
31228                 texinfo.tex to be nullified for some reason.  Simplify,
31229                 $gplsrc is no longer needed as far as I can see?
31230
31231 2003-07-16  Jim Meyering  <jim@meyering.net>
31232
31233         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
31234
31235 2003-07-15  Paul Eggert  <eggert@twinsun.com>
31236
31237         * config/srclist.txt: Get the following files from gettext-runtime/intl
31238         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
31239         ref-del.sin.  From Bruno Haible.
31240         * config/srclist-update (fixfile): Change grep pattern again, since the
31241         previous fix didn't work (there was another trailing $).  Use
31242         '[$]' to escape the $s.
31243
31244 2003-07-15  Karl Berry  <karl@gnu.org>
31245
31246         * lib/vasnprintf.c: update from gettext.
31247
31248 2003-07-15  Karl Berry  <karl@gnu.org>
31249
31250         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
31251         gets expanded when surrounded by '$'.
31252
31253 2003-07-15  Jim Meyering  <jim@meyering.net>
31254
31255         * modules/save-cwd: Don't depend on error.  From Derek Price.
31256
31257 2003-07-15  Jim Meyering  <jim@meyering.net>
31258
31259         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
31260
31261 2003-07-14  Simon Josefsson  <jas@extundo.com>
31262
31263         * modules/mempcpy: New file.
31264         * MODULES.html.sh (func_all_modules): Add mempcpy.
31265
31266 2003-07-14  Simon Josefsson  <jas@extundo.com>
31267
31268         * m4/mempcpy.m4: New file.
31269
31270 2003-07-14  Simon Josefsson  <jas@extundo.com>
31271
31272         * lib/mempcpy.h: New file.
31273         * lib/mempcpy.c: New file.
31274
31275 2003-07-14  Paul Eggert  <eggert@twinsun.com>
31276
31277         * modules/getdate, modules/posixtm: Depend on mktime.
31278
31279 2003-07-14  Paul Eggert  <eggert@twinsun.com>
31280
31281         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
31282         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
31283         unicodeio.c, unicodeio.h, unlocked-io.h:
31284         Switch from LGPL to GPL.
31285
31286 2003-07-14  Paul Eggert  <eggert@twinsun.com>
31287
31288         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
31289         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
31290         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
31291         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
31292         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
31293         updated automatically by ../config/srclist-update.  This changes
31294         their license from LPGL to GPL.
31295
31296 2003-07-14  Paul Eggert  <eggert@twinsun.com>
31297
31298         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
31299         assumed to refer to the root of the most recent stable gettext version.
31300         * config/srclistvars.sh: Add defaults for eggert.
31301         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
31302         Match "This program" as well as "The program".  This is needed
31303         for gettext.
31304
31305 2003-07-14  Jim Meyering  <jim@meyering.net>
31306
31307         Don't emit diagnostics.  Let callers do that.
31308         * lib/save-cwd.c: Don't include "error.h".
31309         (save_cwd): Don't call error.  Ensure that errno is valid
31310         when returning nonzero.
31311
31312         * lib/save-cwd.h (restore_cwd): Update prototype.
31313         * lib/save-cwd.c (restore_cwd): Remove two parameters.
31314         Simplify.  Don't call error upon failure.  Let callers do that.
31315         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
31316         when auditing is enabled.  But don't bother updating the #if.
31317
31318 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
31319
31320         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
31321         it breaks C++ compilation.
31322         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
31323
31324 2003-07-10  Simon Josefsson  <jas@extundo.com>
31325
31326         * modules/strchrnul (Makefile.am): Add strchrnul.h.
31327
31328 2003-07-10  Jim Meyering  <jim@meyering.net>
31329
31330         * m4/clock_time.m4: Remove trailing blank.
31331         * m4/intmax_t.m4: Likewise.
31332
31333 2003-07-10  Jim Meyering  <jim@meyering.net>
31334
31335         * lib/vasnprintf.c: Remove trailing blanks.
31336         Make cpp indentation consistent.
31337
31338 2003-07-09  Paul Eggert  <eggert@twinsun.com>
31339
31340         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
31341         posixver.c, strftime.c, strnlen.c, strverscmp.c:
31342         Switch from LGPL to GPL.
31343
31344 2003-07-09  Paul Eggert  <eggert@twinsun.com>
31345
31346         * config/srclist.txt: Sort sublists.  Add
31347         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
31348         that differ from gnulib for one reason or another; we'd like this list
31349         to be smaller but for now let's document what we have.
31350
31351 2003-07-08  Paul Eggert  <eggert@twinsun.com>
31352
31353         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
31354         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
31355         and sweeter "eval x=$x".
31356         * config/srclist.txt: Get lib/argp* from glibc.
31357
31358 2003-07-07  Paul Eggert  <eggert@twinsun.com>
31359
31360         * lib/mktime.c: Fix some boundary cases and remove need for floating
31361         point.
31362
31363         Issue a compile-time diagnostic if time_t is floating point, or if
31364         two's complement arithmetic is not in effect, or if arithmetic
31365         right shift does not propagate the sign.  These assumptions were
31366         all in the original code but they weren't checked.
31367
31368         (TIME_T_MIDPOINT, verify): New macros.
31369         (__isleap): Remove; it has integer overflow problems.
31370         (leapyear): New function, without those problems.
31371         (ydhms_tm_diff): Remove; splitting into two parts.
31372         (ydhms_diff): New function, containing the arithmetic part of
31373         the old ydhms_tm_diff function.  Issue a compile-time
31374         diagnostic if we are not using C99 integer division.
31375         Avoid casts when possible.
31376         (guess_time_tm): New function, containing the checking part of
31377         the old ydhms_tm_diff function.  Return the new value, rather than
31378         the difference between it and the old.  Accept a new argument T
31379         so that *T specifies the old value.  Check for overflow in the result.
31380
31381         (__mktime_internal): Use a time_t offset, not a long int offset.
31382         This undoes the 2003-06-04 change, which is no longer needed now
31383         that we have better overflow checking.
31384         (localtime_offset): Likewise.
31385
31386         (__mktime_internal): Avoid harmful overflow on hosts where time_t
31387         and long are 64-bit but int is only 32-bit.
31388         (ydhms_diff): Use long int to store year1 and yday1.
31389         Issue a compile-time diagnostic if long int is not wide enough.
31390
31391         (__mktime_internal): Use long int to store adjusted year and yday.
31392         Use plain C rather than preprocessor commands, if that doesn't
31393         affect efficiency.
31394         Check for overflow (and try to repair) after each probe
31395         rather than checking only at the very end.  This avoids some bugs
31396         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
31397         does not equal GMT offset at maximum time).
31398         Use integer to check for overflow rather than floating point; this
31399         is more portable to non-IEEE hosts, and is a tad faster.
31400         When we detect that we are oscillating between two values,
31401         don't check whether tm_isdst has the requested value, since
31402         we already know the answer.  When tm_isdst has the wrong value,
31403         use a different heuristic to find the right one, based on the
31404         extreme values actually observed in practice in tz2003a,
31405         rather than the (overly optimistic) "previous 3 calendar quarters".
31406
31407         (not_equal_tm, print_tm, check_result): Use "const T" rather than
31408         "T const" to accommodate glibc style.
31409         (check_result): Use less-confusing report format.  "long" -> "long int.
31410         (main): Likewise.
31411         Don't loop if the iteration overflows time_t.
31412         Allow a negative step in the iteration.
31413
31414 2003-07-06  Karl Berry  <karl@gnu.org>
31415
31416         * config/depcomp: update from automake.
31417         * config/config.sub: update from prep.
31418
31419 2003-07-03  Karl Berry  <karl@gnu.org>
31420
31421         * config/config.guess: update from prep.
31422
31423 2003-07-01  Paul Eggert  <eggert@twinsun.com>
31424
31425         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
31426         xreadlink.c now includes it unconditionally.
31427
31428 2003-07-01  Paul Eggert  <eggert@twinsun.com>
31429
31430         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
31431         having it depend on HAVE_SYS_TYPES_H.
31432
31433 2003-07-01  Bruno Haible  <bruno@clisp.org>
31434
31435         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
31436         <sys/types.h> should be sufficient.
31437         Reported by Paul Eggert.
31438
31439 2003-06-26  Karl Berry  <karl@gnu.org>
31440
31441         * config/depcomp: update from automake.
31442
31443 2003-06-26  Bruno Haible  <bruno@clisp.org>
31444
31445         * modules/human: Depend on module stdbool.
31446
31447 2003-06-25  Bruno Haible  <bruno@clisp.org>
31448
31449         * modules/readlink: New file.
31450         * modules/xreadlink: Depend on it.
31451         * MODULES.html.sh (func_all_modules): Add readlink.
31452
31453 2003-06-25  Bruno Haible  <bruno@clisp.org>
31454
31455         * m4/readlink.m4: New file.
31456
31457 2003-06-25  Bruno Haible  <bruno@clisp.org>
31458
31459         * lib/readlink.c: New file.
31460
31461 2003-06-22  Karl Berry  <karl@gnu.org>
31462
31463         * config/srclist.txt: update mkinstalldirs from automake.
31464         * config/mkinstalldirs: update.
31465
31466 2003-06-22  Bruno Haible  <bruno@clisp.org>
31467
31468         Portability to mingw32.
31469         * m4/ssize_t.m4: New file, from GNU gettext.
31470         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
31471         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
31472
31473 2003-06-22  Bruno Haible  <bruno@clisp.org>
31474
31475         * modules/safe-read: Add m4/ssize_t.m4.
31476         * modules/xreadlink: Add m4/ssize_t.m4.
31477
31478 2003-06-20  Bruno Haible  <bruno@clisp.org>
31479
31480         Assume C89, so PARAMS isn't needed.
31481         * lib/unicodeio.h (PARAMS): Remove.
31482         * lib/unicodeio.c: Don't use PARAMS.
31483
31484 2003-06-18  Karl Berry  <karl@gnu.org>
31485
31486         * config/config.{guess,sub}: update from prep.
31487
31488 2003-06-18  Jim Meyering  <jim@meyering.net>
31489
31490         Merge changes from coreutils.
31491         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
31492         Remove explicit declarations of xmalloc and realloc.
31493         Include xalloc.h.
31494         (read_utmp): Remove anachronistic cast of xmalloc.
31495
31496 2003-06-17  Paul Eggert  <eggert@twinsun.com>
31497
31498         Assume C89, so PARAMS isn't needed.
31499         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
31500         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
31501         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
31502         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
31503         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
31504         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
31505         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
31506         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
31507         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
31508         lib/xstrtod.h, lib/xstrtol.h: Likewise.
31509         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
31510         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
31511         no longer needed. Anyway, config.h should always be included before any
31512         other file.
31513
31514 2003-06-11  Simon Josefsson  <jas@extundo.com>
31515
31516         * modules/sysexits: New file.
31517         * MODULES.html.sh (func_all_modules): Add sysexits.
31518
31519 2003-06-11  Simon Josefsson  <jas@extundo.com>
31520
31521         * lib/sysexit_.h: New file.
31522
31523 2003-06-11  Derek Price  <derek@ximbiot.com>
31524
31525         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
31526         necessary.
31527
31528 2003-06-11  Bruno Haible  <bruno@clisp.org>
31529
31530         * m4/sysexits.m4: New file.
31531
31532 2003-06-10  Simon Josefsson  <jas@extundo.com>
31533
31534         * lib/argp.h: New file, from glibc.
31535         * lib/argp-ba.c: New file, from glibc.
31536         * lib/argp-eexst.c: New file, from glibc.
31537         * lib/argp-fmtstream.c: New file, from glibc.
31538         * lib/argp-fmtstream.h: New file, from glibc.
31539         * lib/argp-fs-xinl.c: New file, from glibc.
31540         * lib/argp-help.c: New file, from glibc.
31541         * lib/argp-namefrob.h: New file, from glibc.
31542         * lib/argp-parse.c: New file, from glibc.
31543         * lib/argp-pv.c: New file, from glibc.
31544         * lib/argp-pvh.c: New file, from glibc.
31545         * lib/argp-xinl.c: New file, from glibc.
31546
31547 2003-06-10  Simon Josefsson  <jas@extundo.com>
31548
31549         * modules/strchrnul: New file.
31550
31551 2003-06-10  Simon Josefsson  <jas@extundo.com>
31552
31553         * modules/argp: New file.
31554
31555 2003-06-10  Simon Josefsson  <jas@extundo.com>
31556
31557         * m4/strchrnul.m4: New file.
31558
31559 2003-06-10  Simon Josefsson  <jas@extundo.com>
31560
31561         * lib/strchrnul.h: New file.
31562         * lib/strchrnul.c: New file.
31563
31564 2003-06-10  Bruno Haible  <bruno@clisp.org>
31565
31566         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
31567
31568 2003-06-07  Karl Berry  <karl@gnu.org>
31569
31570         * config/config.{guess,sub}: update from prep.
31571
31572 2003-06-07  Jim Meyering  <jim@meyering.net>
31573
31574         * modules/strtod: Use $(...) notation, not @...@ for
31575         AC_REPLACE'd variables.
31576         * modules/localcharset: Likewise.
31577
31578 2003-06-07  Jim Meyering  <jim@meyering.net>
31579
31580         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
31581         in place of my name in the copyright comment.
31582         Remove definition and uses of __P.
31583
31584         From coreutils.
31585         * lib/stat.c: Don't declare xmalloc explicitly.
31586         Instead, include "xalloc.h".
31587         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
31588         xrealloc, and xcalloc return values.
31589         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
31590         Improve comment.
31591         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
31592
31593 2003-06-07  Bruno Haible  <bruno@clisp.org>
31594
31595         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
31596         avoid AC_CONFIG_LINKS.
31597         * modules/fnmatch (Makefile.am): Use explicit creation rule for
31598         fnmatch.h, to avoid AC_CONFIG_LINKS.
31599         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
31600
31601 2003-06-07  Bruno Haible  <bruno@clisp.org>
31602
31603         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
31604         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
31605         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
31606         directory.
31607         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
31608         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
31609         directory.
31610
31611 2003-06-06  Jim Meyering  <jim@meyering.net>
31612
31613         Merge from coreutils.
31614         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
31615         Consolidate declarations and initializations of *_base* locals.
31616
31617         Merge from coreutils.
31618         This avoids a core dump on systems without GNU putenv,
31619         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
31620         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
31621         (unsetenv): New static function, from GNU libc.
31622         (rpl_putenv): Use it.
31623
31624         * lib/modechange.c: Remove trailing blanks.
31625
31626         Merge from coreutils.
31627         * lib/fsusage.c: Remove declaration of statfs.
31628         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
31629
31630         * lib/posixtm.c: Include <stdbool.h> unconditionally.
31631
31632 2003-06-06  Jim Meyering  <jim@meyering.net>
31633
31634         * lib/stdbool_.h: Renamed from stdbool.h.in.
31635
31636 2003-06-06  Jim Meyering  <jim@meyering.net>
31637             Bruno Haible  <bruno@clisp.org>
31638
31639         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
31640         Adjust Makefile.am snippet not to redirect directly to target.
31641         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
31642
31643 2003-06-05  Paul Eggert  <eggert@twinsun.com>
31644
31645         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
31646         mismatch, look in future quarters as well as past.  This fixes a
31647         bug when processing fall-backwards gaps immediately after a long
31648         period of daylight-saving time.
31649
31650         * lib/mktime.c: Assume freestanding C89 or better.
31651         (HAVE_LIMITS_H): Remove.  Assume it's 1.
31652         (__P): Remove; not used.
31653         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
31654         (mktime, not_equal_tm, print_tm, check_result,
31655         main): Use prototypes.  Use const * where appropriate.
31656         (main): Fix typo in testing code that uncovered by above changes.
31657         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
31658
31659 2003-06-04  Paul Eggert  <eggert@twinsun.com>
31660
31661         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
31662         locale.h, localeconv.  This merges changes from coreutils.
31663
31664         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
31665         It can be removed after the next Autoconf is released.
31666         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
31667         needed.
31668
31669 2003-06-04  Paul Eggert  <eggert@twinsun.com>
31670
31671         * lib/mktime.c: Fix Debian bug 177940
31672         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
31673         (localtime_offset): Now long int, not time_t, because we want it
31674         to be guaranteed to be signed.  All uses changed.
31675         (__mktime_internal): If overflow would occur when adding offset,
31676         don't add it.
31677
31678         Merge 'human' changes from coreutils.  Rewrite to support
31679         locale-specific notations like thousands separators.
31680         * lib/human.c: Simplify authorship notice.
31681         Include human.h immediately after config.h.
31682         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
31683         <limits.h>: Do not include, since human.h does.
31684         (SIZE_MAX, UINTMAX_MAX): New macros.
31685         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
31686         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
31687         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
31688         (power_letter): Renamed from suffixes.
31689         (generate_suffix_backwards): Remove.
31690         (adjust_value): Now takes int style (because of human.h changes)
31691         and long double value (for greater precision on some platforms).
31692         (group_number): New function.
31693         (human_readable): Use it.  Use integer options, not enum.
31694         Put the options before the sizes in the arg list.
31695         Support all the new options.
31696         The old human_readable function has been removed;
31697         use inttostr.h instead.
31698         (human_readable, default_block_size, humblock):
31699         Use uintmax_t, not int, for block sizes.
31700         (human_readable_inexact, block_size_types): Remove.
31701         (block_size_opts): New constant.
31702         (human_options): Renamed from human_block_size, with new signature
31703         that allows block sizes up to UINTMAX_MAX.  All callers changed.
31704         * lib/human.h: Add copyright and authorship notice.
31705         Include <limits.h> and <stdbool.h> unconditionally.
31706         (PARAMS): Remove.  All uses removed.
31707         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
31708         (enum human_inexact_style): Remove tag; now a nameless enum.
31709         (human_floor, human_ceiling, human_round_to_even): Now have
31710         values 2, 0, 1 rather than -1, 1, 0.
31711         (human_group_digits, human_suppress_point_zero, human_autoscale,
31712         human_base_1024, human_SI, human_B): New constants.
31713         (human_readable_inexact, human_block_size): Remove.
31714         (human_readable): Size args are now uintmax_t, not int.
31715         (human_options): New decl.
31716
31717         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
31718         unnecessary now that we assume C89 or better.  This change
31719         imported from coreutils.
31720
31721         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
31722         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
31723         in the 2003-05-30 sync from glibc.
31724
31725         .h files should stand alone, but we shouldn't include <sys/types.h>
31726         if we can get away with just <stddef.h>.
31727
31728         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
31729         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
31730         rather than <sys/types.h>, as we merely need size_t.
31731         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
31732         to get size_t.
31733         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
31734         Include <stdio.h>, to get FILE.
31735         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
31736         memcasecmp.h has included <stddef.h> and all we need is size_t.
31737         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
31738         our interface, instead of including <sys/types.h>
31739
31740 2003-06-04  Paul Eggert  <eggert@twinsun.com>
31741
31742         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
31743         now, as glibc mktime is buggy on non-glibc systems.
31744
31745 2003-06-03  Karl Berry  <karl@gnu.org>
31746
31747         * config/config.sub: update from prep.
31748
31749 2003-06-02  Paul Eggert  <eggert@twinsun.com>
31750
31751         [from coreutils]
31752         Fix some minor time-related bugs with POSIX time arguments.
31753         Some valid time stamps were being rejected (notably -1, and
31754         time stamps before 1900 on 64-bit hosts).  And some invalid
31755         time stamps were being accepted, e.g. September 31.
31756
31757         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
31758         that we can return (time_t) -1 successfully.
31759         * lib/posixtm.c: Likewise.
31760         [HAVE_STDBOOL_H]: Include <stdbool.h>.
31761         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
31762         (t): Remove static var.
31763         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
31764         of static var.  All uses changed.
31765         (year): Do not reject years before 1900; they can occur with
31766         64-bit time_t.
31767         (posix_time_parse): Do not check for out-of-range components;
31768         that is now the caller's responsibility, since our checks were
31769         only approximations.
31770         (posixtime): Use mktime to check for out-of-range components,
31771         since it knows them exactly.
31772         If mktime returns (time_t) -1, check whether an error actually occurred
31773         by invoking localtime on -1.
31774         (main) [TEST_POSIXTIME]: Check for input data errors, and report
31775         posixtime failures better.
31776         Improve the test data (in comments only).
31777
31778 2003-06-02  Karl Berry  <karl@gnu.org>
31779
31780         * config/mkinstalldirs (version): new variable.
31781         (--version): new option.
31782         (usage): improve message.
31783
31784 2003-05-30  Karl Berry  <karl@gnu.org>
31785
31786         * lib/mktime.c: update from libc.
31787
31788 2003-05-30  Bruno Haible  <bruno@clisp.org>
31789
31790         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
31791         * config/config.rpath: Upgrade to gettext-0.12.1.
31792
31793 2003-05-30  Bruno Haible  <bruno@clisp.org>
31794
31795         * m4/gettext.m4: Upgrade to gettext-0.12.1.
31796         * m4/nls.m4: New file, from gettext-0.12.1.
31797         * m4/po.m4: New file, from gettext-0.12.1.
31798         * m4/progtest.m4: Upgrade to gettext-0.12.1.
31799
31800 2003-05-30  Bruno Haible  <bruno@clisp.org>
31801
31802         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
31803         * lib/localcharset.h: Likewise.
31804         * lib/localcharset.c: Likewise.
31805
31806 2003-05-29  Karl Berry  <karl@gnu.org>
31807
31808         * config/config.rpath: update from gettext.
31809
31810 2003-05-28  Paul Eggert  <eggert@twinsun.com>
31811
31812         Assume the headers required for C89 freestanding compilers.
31813         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
31814         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
31815         * m4/human.m4 (gl_HUMAN): Likewise.
31816         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
31817         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
31818         * m4/userspec.m4 (gl_USERSPEC): Likewise.
31819         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
31820         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
31821         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
31822
31823 2003-05-28  Paul Eggert  <eggert@twinsun.com>
31824
31825         Assume the headers required for C89 freestanding compilers.
31826         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
31827         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
31828         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
31829         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
31830         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
31831         define, since <limits.h> is guaranteed to do that.
31832         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
31833         * lib/exclude.c: Include <stdbool.h> unconditionally.
31834         * lib/tempname.c: Include <stddef.h> unconditionally.
31835         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
31836         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
31837         <stddef.h> does that.
31838         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
31839         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
31840         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
31841         needed.
31842         * lib/xstrtol.c: Likewise.
31843         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
31844         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
31845
31846         * lib/addext.c (addext): Use assignment rather than cast, to avoid
31847         warnings on some platforms.
31848
31849         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
31850         arbitrarily.
31851
31852 2003-05-26  Jim Meyering  <jim@meyering.net>
31853
31854         Merge in a change from coreutils:
31855         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
31856         that is guaranteed to be `no'.  Use `no_such_member' to indicate
31857         that condition, rather than `-1' which is slightly misleading.
31858         Change the name of the cache variable to have the gl_ prefix.
31859         Prompted by a patch from Richard Dawe for DJGPP.
31860
31861 2003-05-24  Karl Berry  <karl@gnu.org>
31862
31863         * config/config.guess: update from prep.
31864
31865 2003-05-22  Karl Berry  <karl@gnu.org>
31866
31867         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
31868
31869 2003-05-20  Karl Berry  <karl@gnu.org>
31870
31871         * config/config.guess: update from prep.
31872
31873 2003-05-18  Karl Berry  <karl@gnu.org>
31874
31875         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
31876         might actually be set by the user.
31877
31878         * config/depcomp, install-sh, mdate-sh: update from automake.
31879
31880 2003-05-17  Bruno Haible  <bruno@clisp.org>
31881
31882         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
31883         invalid expansion for AC_EGREP_CPP.
31884         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
31885         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
31886         Suggested by Akim Demaille <akim@epita.fr> in
31887         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
31888
31889 2003-05-12  Jim Meyering  <jim@meyering.net>
31890
31891         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
31892         the space-padded-by-default conversion specifiers, %e, %k, %l.
31893
31894 2003-05-12  Bruno Haible  <bruno@clisp.org>
31895
31896         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
31897         the string is longer than 4 KB.
31898
31899 2003-05-11  Karl Berry  <karl@gnu.org>
31900
31901         * config/config.{guess,sub}: update from prep.
31902
31903 2003-05-09  Bruno Haible  <bruno@clisp.org>
31904
31905         * modules/error: Add m4/strerror_r.m4 to file list.
31906
31907 2003-05-03  Bruno Haible  <bruno@clisp.org>
31908
31909         Upgrade to Unicode-4.0.
31910         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
31911         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
31912         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
31913         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
31914         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
31915         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
31916         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
31917         Change width of U+E0100..U+E01EF from 1 to 0.
31918
31919 2003-04-25  Jim Meyering  <jim@meyering.net>
31920
31921         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
31922         of type size_t, not int.
31923
31924 2003-04-25  Bruno Haible  <bruno@clisp.org>
31925
31926         * lib/copy-file.c: Include <stddef.h>, for size_t.
31927
31928 2003-04-21  Paul Eggert  <eggert@twinsun.com>
31929
31930         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
31931         code which expansion is under static control.  Patch imported from
31932         Akim Demaille's patch to Bison; see
31933         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
31934
31935 2003-04-14  Bruno Haible  <bruno@clisp.org>
31936
31937         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
31938
31939 2003-04-11  Jim Meyering  <jim@meyering.net>
31940
31941         Merge changes from Coreutils.
31942
31943         2003-03-22  Jim Meyering  <jim@meyering.net>
31944
31945         * lib/strftime.c (widen): Cast alloca return value to proper type.
31946
31947         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
31948
31949         From GNU libc.
31950         * lib/strftime.c (my_strftime): Handle very large width
31951         specifications for numeric values correctly.  Improve checks for
31952         overflow.
31953
31954         2003-01-19  Jim Meyering  <jim@meyering.net>
31955
31956         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
31957         definitions.
31958         (nl_get_alt_digit) [! defined my_strftime]: Define.
31959         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
31960         _nl_get_alt_digit and _nl_get_walt_digit.
31961
31962         * lib/strftime.c (my_strftime): Merge in locale-related changes from
31963         libc. These changes have no effect outside of _LIBC.
31964
31965 2003-04-10  Bruno Haible  <bruno@clisp.org>
31966
31967         * modules/findprog: New file.
31968         * MODULES.html.sh (func_all_modules): Add it.
31969
31970 2003-04-10  Bruno Haible  <bruno@clisp.org>
31971
31972         * m4/findprog.m4: New file.
31973         * m4/eaccess.m4: New file.
31974
31975 2003-04-10  Bruno Haible  <bruno@clisp.org>
31976
31977         * lib/findprog.h: New file, from GNU gettext.
31978         * lib/findprog.c: New file, from GNU gettext.
31979
31980 2003-04-05  Jim Meyering  <jim@meyering.net>
31981
31982         Merge changes from Coreutils.
31983
31984         * lib/exclude.h (PARAMS): Remove definition and uses.
31985         * lib/exclude.c: Remove uses of `PARAMS'.
31986
31987         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
31988         Add test-cases for DOS filenames. Declare program_name.
31989         (main): Set up program_name.  Patch by Rich Dawe.
31990
31991         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
31992         error from mntctl.
31993         Use mntctl's return value to drive the entry-processing loop, since
31994         we can't rely on the value of the vmt_length member in the last
31995         entry.  On some systems doing so could result in exhausting
31996         virtual memory.  Based in part on a patch from Mike Jetzer.
31997
31998 2003-04-04  Bruno Haible  <bruno@clisp.org>
31999
32000         * modules/linebreak: New file.
32001         * MODULES.html.sh (func_all_modules): Add it.
32002
32003 2003-04-04  Bruno Haible  <bruno@clisp.org>
32004
32005         * m4/linebreak.m4: New file.
32006
32007 2003-04-04  Bruno Haible  <bruno@clisp.org>
32008
32009         * lib/linebreak.h: New file, from GNU gettext.
32010         * lib/linebreak.c: New file, from GNU gettext with slight
32011         modifications.
32012         * lib/lbrkprop.h: New file, from GNU gettext.
32013
32014 2003-04-03  Bruno Haible  <bruno@clisp.org>
32015
32016         * modules/utf8-ucs4: New file.
32017         * modules/utf16-ucs4: New file.
32018         * modules/ucs4-utf8: New file.
32019         * modules/ucs4-utf16: New file.
32020         * MODULES.html.sh (func_all_modules): Add them.
32021
32022 2003-04-03  Bruno Haible  <bruno@clisp.org>
32023
32024         * m4/utf-ucs4.m4: New file.
32025         * m4/ucs4-utf.m4: New file.
32026
32027 2003-04-03  Bruno Haible  <bruno@clisp.org>
32028
32029         * lib/utf8-ucs4.h: New file, from GNU gettext.
32030         * lib/utf16-ucs4.h: New file, from GNU gettext.
32031         * lib/ucs4-utf8.h: New file, from GNU gettext.
32032         * lib/ucs4-utf16.h: New file, from GNU gettext.
32033
32034 2003-04-02  Bruno Haible  <bruno@clisp.org>
32035
32036         * modules/binary-io: New file.
32037         * MODULES.html.sh (func_all_modules): Add it.
32038
32039 2003-04-02  Bruno Haible  <bruno@clisp.org>
32040
32041         * lib/binary-io.h: New file, from GNU gettext.
32042
32043 2003-04-01  Bruno Haible  <bruno@clisp.org>
32044
32045         * modules/pathname: New file.
32046         * MODULES.html.sh (func_all_modules): Add it.
32047
32048 2003-04-01  Bruno Haible  <bruno@clisp.org>
32049
32050         * lib/pathname.h: New file, from GNU gettext.
32051         * lib/concatpath.c: New file, from GNU gettext.
32052
32053 2003-03-30  Bruno Haible  <bruno@clisp.org>
32054
32055         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
32056
32057 2003-03-30  Bruno Haible  <bruno@clisp.org>
32058
32059         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
32060         function chown() doesn't exist.
32061
32062 2003-03-28  Bruno Haible  <bruno@clisp.org>
32063
32064         * modules/copy-file: New file.
32065         * MODULES.html.sh (func_all_modules): Add it.
32066
32067 2003-03-28  Bruno Haible  <bruno@clisp.org>
32068
32069         * m4/copy-file.m4: New file.
32070
32071 2003-03-28  Bruno Haible  <bruno@clisp.org>
32072
32073         * lib/copy-file.h: New file, from GNU gettext.
32074         * lib/copy-file.c: New file, from GNU gettext.
32075
32076 2003-03-18  Jim Meyering  <jim@meyering.net>
32077
32078         * lib/quote.c (quote_n): Fix typo in comment.
32079
32080 2003-03-18  Bruno Haible  <bruno@clisp.org>
32081
32082         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
32083         checking.
32084         * m4/onceonly_2_57.m4: Likewise.
32085
32086 2003-03-17  Bruno Haible  <bruno@clisp.org>
32087
32088         * m4/onceonly.m4: Require autoconf 2.54 or newer.
32089         (m4_quote): Remove macro.
32090         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
32091
32092 2003-03-14  Jim Meyering  <jim@meyering.net>
32093
32094         Merge changes from Coreutils.
32095         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
32096         to be const, in order to avoid warnings.
32097         (obstack_room): Likewise.
32098         (obstack_empty_p): Likewise.
32099
32100 2003-03-14  Bruno Haible  <bruno@clisp.org>
32101
32102         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
32103         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
32104
32105 2003-03-13  Paul Eggert  <eggert@twinsun.com>
32106
32107         Merge changes from Bison.
32108         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
32109         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
32110         when compiling Bison 1.875's `bitset bset = obstack_alloc
32111         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
32112         * lib/hash.c: Include <stdbool.h> unconditionally.
32113
32114 2003-03-13  Paul Eggert  <eggert@twinsun.com>
32115
32116         * m4/onceonly.m4 (m4_quote): New macro.
32117         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
32118         Quote AC_FOREACH variable-expansions properly.
32119
32120 2003-03-13  Paul Eggert  <eggert@twinsun.com>
32121
32122         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
32123
32124 2003-03-09  Paul Eggert  <eggert@twinsun.com>
32125
32126         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
32127         Reported by Bruce Becker; see:
32128         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
32129
32130 2003-03-03  Paul Eggert  <eggert@twinsun.com>
32131             Bruno Haible  <bruno@clisp.org>
32132
32133         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
32134         Reported by John Hughes, see
32135         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
32136
32137 2003-02-20  Bruno Haible  <bruno@clisp.org>
32138
32139         * MODULES.html.sh (func_all_modules): Add poll.
32140
32141 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
32142
32143         * modules/poll: New file.
32144
32145 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
32146
32147         * lib/poll_.h: New file.
32148         * lib/poll.c: New file.
32149
32150 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
32151
32152         * m4/poll.m4: New file.
32153
32154 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
32155
32156         * modules/mathl: New file.
32157
32158 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
32159
32160         * lib/mathl.h: New file.
32161         * lib/acosl.c: New file.
32162         * lib/asinl.c: New file.
32163         * lib/atanl.c: New file.
32164         * lib/ceill.c: New file.
32165         * lib/cosl.c: New file.
32166         * lib/expl.c: New file.
32167         * lib/floorl.c: New file.
32168         * lib/frexpl.c: New file.
32169         * lib/ldexpl.c: New file.
32170         * lib/logl.c: New file.
32171         * lib/sincosl.c: New file.
32172         * lib/sinl.c: New file.
32173         * lib/sqrtl.c: New file.
32174         * lib/tanl.c: New file.
32175         * lib/trigl.c: New file.
32176         * lib/trigl.h: New file.
32177
32178 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
32179
32180         * m4/mathl.m4: New file.
32181
32182 2003-02-18  Bruno Haible  <bruno@clisp.org>
32183
32184         * MODULES.html.sh (func_all_modules): Add mathl.
32185
32186 2003-02-17  Bruno Haible  <bruno@clisp.org>
32187
32188         * modules/mkdtemp: New module.
32189         * MODULES.html.sh (func_all_modules): Add it.
32190
32191 2003-02-17  Bruno Haible  <bruno@clisp.org>
32192
32193         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
32194
32195 2003-02-17  Bruno Haible  <bruno@clisp.org>
32196
32197         * lib/mkdtemp.h: New file, from GNU gettext.
32198         * lib/mkdtemp.c: New file, from GNU gettext.
32199
32200 2003-02-02  Jim Meyering  <jim@meyering.net>
32201
32202         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
32203         e.g. glibc-2.2.93.
32204
32205 2003-01-31  Bruno Haible  <bruno@clisp.org>
32206
32207         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
32208         'rpl_rename'.
32209         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
32210         'rpl_strnlen'.
32211         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
32212         'rpl_strtod'.
32213         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
32214         'rpl_utime'.
32215
32216 2003-01-31  Bruno Haible  <bruno@clisp.org>
32217
32218         * lib/rename.c: #undef rename before defining rpl_rename.
32219         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
32220
32221 2003-01-30  Bruno Haible  <bruno@clisp.org>
32222
32223         * modules/vasnprintf, modules/vasprintf: New modules.
32224         * MODULES.html.sh (func_all_modules): Add them.
32225
32226 2003-01-30  Bruno Haible  <bruno@clisp.org>
32227
32228         * m4/signed.m4: New file, from GNU gettext.
32229         * m4/longdouble.m4: New file, from GNU gettext.
32230         * m4/wchar_t.m4: New file, from GNU gettext.
32231         * m4/wint_t.m4: New file, from GNU gettext.
32232         * m4/vasnprintf.m4: New file.
32233         * m4/vasprintf.m4: New file.
32234
32235 2003-01-30  Bruno Haible  <bruno@clisp.org>
32236
32237         * lib/printf-args.h: New file, from GNU gettext.
32238         * lib/printf-args.c: New file, from GNU gettext.
32239         * lib/printf-parse.h: New file, from GNU gettext.
32240         * lib/printf-parse.c: New file, from GNU gettext.
32241         * lib/vasnprintf.h: New file, from GNU gettext.
32242         * lib/vasnprintf.c: New file, from GNU gettext.
32243         * lib/asnprintf.c: New file, from GNU gettext.
32244         * lib/vasprintf.h: New file, from GNU gettext with modifications.
32245         * lib/vasprintf.c: New file, from GNU gettext.
32246         * lib/asprintf.c: New file, from GNU gettext.
32247
32248 2003-01-29  Bruno Haible  <bruno@clisp.org>
32249
32250         * modules/stpncpy: New module.
32251         * MODULES.html.sh (func_all_modules): Add it.
32252
32253 2003-01-29  Bruno Haible  <bruno@clisp.org>
32254
32255         * m4/stpncpy.m4: New file.
32256
32257 2003-01-29  Bruno Haible  <bruno@clisp.org>
32258
32259         * lib/stpncpy.h: New file, from GNU gettext with modifications.
32260         * lib/stpncpy.c: New file, from GNU gettext with modifications.
32261
32262 2003-01-28  Bruno Haible  <bruno@clisp.org>
32263
32264         * modules/c-ctype: New module.
32265         * MODULES.html.sh (func_all_modules): Add it.
32266
32267 2003-01-28  Bruno Haible  <bruno@clisp.org>
32268
32269         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
32270         Paul Eggert.
32271         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
32272         Paul Eggert.
32273
32274 2003-01-27  Bruno Haible  <bruno@clisp.org>
32275
32276         * modules/xsetenv: New module.
32277         * MODULES.html.sh (func_all_modules): Add it.
32278
32279 2003-01-27  Bruno Haible  <bruno@clisp.org>
32280
32281         * lib/xsetenv.h: New file, from GNU gettext.
32282         * lib/xsetenv.c: New file, from GNU gettext.
32283
32284 2003-01-23  Jim Meyering  <jim@meyering.net>
32285
32286         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
32287         from working on systems without dirfd (at least Irix and OSF1/Tru64).
32288
32289 2003-01-23  Bruno Haible  <bruno@clisp.org>
32290
32291         * modules/minmax: New module.
32292         * MODULES.html.sh (func_all_modules): Add it.
32293
32294 2003-01-23  Bruno Haible  <bruno@clisp.org>
32295
32296         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
32297         Eggert.
32298
32299 2003-01-22  Bruno Haible  <bruno@clisp.org>
32300
32301         * modules/exit: New module.
32302         * MODULES.html.sh (func_all_modules): Add it.
32303
32304 2003-01-22  Bruno Haible  <bruno@clisp.org>
32305
32306         * lib/exit.h: New file, from GNU gettext.
32307
32308 2003-01-19  Bruno Haible  <bruno@clisp.org>
32309
32310         * gnulib-tool: Recognize option --extract-maintainer.
32311         (func_get_maintainer): New function.
32312         * modules/*: Add Maintainer entry.
32313
32314 2003-01-16  Jim Meyering  <jim@meyering.net>
32315
32316         * m4/regex.m4: The `regex' struct is both input and output.
32317         Initialize it before each use.  Patch by Tim Waugh.
32318
32319 2003-01-16  Bruno Haible  <bruno@clisp.org>
32320
32321         * MODULES.html.sh: Add a table of contents. Add the module name as
32322         leftmost column. Add hyperlinks.
32323
32324 2003-01-15  Bruno Haible  <bruno@clisp.org>
32325
32326         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
32327
32328 2003-01-15  Bruno Haible  <bruno@clisp.org>
32329
32330         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
32331         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
32332         suffix.
32333
32334 2003-01-15  Bruno Haible  <bruno@clisp.org>
32335
32336         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
32337
32338 2003-01-15  Bruno Haible  <bruno@clisp.org>
32339
32340         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
32341         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
32342
32343 2003-01-14  Jim Meyering  <jim@meyering.net>
32344
32345         * lib/same.c (same_name): Tweak a comment.
32346
32347 2003-01-14  Bruno Haible  <bruno@clisp.org>
32348
32349         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
32350         when a string comparison is sufficient.
32351
32352 2003-01-14  Bruno Haible  <bruno@clisp.org>
32353
32354         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
32355         'unsigned int'.
32356
32357 2003-01-14  Bruno Haible  <bruno@clisp.org>
32358
32359         * lib/hash-pjw.c: Add comment about low quality of this function.
32360
32361 2003-01-13  Bruno Haible  <bruno@clisp.org>
32362
32363         * modules/stpcpy: Distribute lib/stpcpy.h.
32364         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
32365
32366 2003-01-13  Bruno Haible  <bruno@clisp.org>
32367
32368         * modules/*: Add a description.
32369         * modules/strpbrk: Fix Makefile.am snippet.
32370         * modules/strtoimax: Fix dependencies.
32371         * modules/strtoumax: Likewise.
32372
32373 2003-01-13  Bruno Haible  <bruno@clisp.org>
32374
32375         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
32376         * modules/alloca (Makefile.am): All object files depend on alloca.h.
32377         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
32378
32379 2003-01-13  Bruno Haible  <bruno@clisp.org>
32380
32381         * gnulib-tool (func_create_testdir): Store config/* files in the main
32382         directory.
32383         * config.rpath: Move to ...
32384         * config/config.rpath: ... here.
32385         * modules/gettext: Contains config/config.rpath, not config.rpath.
32386         * modules/iconv: Likewise.
32387
32388 2003-01-12  Paul Eggert  <eggert@twinsun.com>
32389
32390         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
32391         to avoid collisions with libcurses and libreadline.
32392
32393         * m4/getstr.m4: Remove.
32394         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
32395
32396 2003-01-12  Paul Eggert  <eggert@twinsun.com>
32397
32398         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
32399         to avoid collisions with libcurses and libreadline.
32400
32401         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
32402         * lib/getstr.h, getstr.c: Remove.
32403         * lib/getline.c: Include "getline.h", to check interface.
32404         Move body of old getstr.c here: this defines MIN_CHUNK and
32405         declares getdelim2, which is renamed from getstr.
32406         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
32407
32408         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
32409         All uses changed.
32410         * lib/linebuffer.h: Likewise.
32411         (readline): Remove backward-compatibility macro.
32412
32413 2003-01-12  Paul Eggert  <eggert@twinsun.com>
32414
32415         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
32416         to avoid collisions with libcurses and libreadline.
32417         * getstr: Remove.
32418         * MODULES.html.sh: Remove getstr.
32419         * modules/getline: Depend on unlocked-io, not getstr.
32420
32421 2003-01-12  Jim Meyering  <jim@meyering.net>
32422
32423         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
32424
32425 2003-01-10  Bruno Haible  <bruno@clisp.org>
32426
32427         * modules/alloca: Change Makefile.am requirements. Simplify Include
32428         requirements. Add lib/alloca_.h to file list.
32429
32430 2003-01-10  Bruno Haible  <bruno@clisp.org>
32431
32432         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
32433
32434 2003-01-10  Bruno Haible  <bruno@clisp.org>
32435
32436         * lib/alloca_.h: New file.
32437         * lib/getdate.y: Unconditionally include alloca.h.
32438         * lib/makepath.c: Likewise.
32439         * lib/setenv.c: Likewise.
32440         * lib/userspec.c: Likewise.
32441
32442 2003-01-09  Karl Berry  <karl@gnu.org>
32443
32444         * MODULES.html.sh: include `dirname $0` in PATH, to find
32445         gnulib-tool.
32446
32447 2003-01-09  Bruno Haible  <bruno@clisp.org>
32448
32449         * modules/stdbool: Change configure.ac, Makefile.am requirements.
32450         Simplify Include requirements. Add lib/stdbool.h.in to file list.
32451
32452 2003-01-09  Bruno Haible  <bruno@clisp.org>
32453
32454         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
32455
32456 2003-01-09  Bruno Haible  <bruno@clisp.org>
32457
32458         * lib/stdbool.h.in: New file.
32459
32460 2003-01-09  Bruno Haible  <bruno@clisp.org>
32461
32462         * gnulib-tool (func_all_modules): Ignore files ending in ~.
32463         * MODULES.html.sh: Likewise.
32464
32465 2003-01-08  Jim Meyering  <jim@meyering.net>
32466
32467         * lib/full-write.c: Undefine and define-away `const' after inclusion
32468         of errno.h, not before.  Suggestion from Bruno Haible.
32469
32470 2003-01-08  Bruno Haible  <bruno@clisp.org>
32471
32472         * modules/full-read: Depend on full-write.
32473
32474 2003-01-08  Bruno Haible  <bruno@clisp.org>
32475
32476         * lib/safe-read.c: Include specification header first, to ensure its
32477         selfcontainedness.
32478         * lib/full-write.c: Likewise.
32479
32480 2003-01-07  Jim Meyering  <jim@meyering.net>
32481
32482         * lib/full-write.c: Rework so that it may serve to define full_read,
32483         too.
32484         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
32485
32486 2003-01-07  Bruno Haible  <bruno@clisp.org>
32487
32488         * lib/strtoimax.c: Include <stdint.h> as an alternative to
32489         <inttypes.h>.
32490         * lib/xstrtol.h: Likewise.
32491         * lib/xstrtoimax.c: Likewise.
32492         * lib/xstrtoumax.c: Likewise.
32493         * lib/human.h: Likewise.
32494
32495         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
32496         on systems that have <inttypes.h> but not <stdint.h>.
32497
32498 2003-01-07  Bruno Haible  <bruno@clisp.org>
32499
32500         * MODULES.html.sh: Add copyright notice.
32501         (missed_files): Omit CVS directory entries.
32502         (func_module): Make it work with sed-3.02.
32503         * MODULES.txt: Remove file.
32504
32505 2003-01-06  Jim Meyering  <jim@meyering.net>
32506
32507         * lib/version-etc.c: Update year in translatable copyright string.
32508
32509 2003-01-03  Karl Berry  <karl@gnu.org>
32510
32511         * config/config.{guess,sub}: update from prep.
32512
32513 2003-01-02  Karl Berry  <karl@gnu.org>
32514
32515         * doc/COPYING.DOC: belatedly updated to 1.2.
32516
32517 2003-01-01  Karl Berry  <karl@gnu.org>
32518
32519         * gnulib-tool (func_verify_module): report module name $module in
32520         error message, not $1.
32521         * gnulib-tool (create-testdir): don't complain if destdir couldn't
32522         be created, only if it doesn't exist.
32523         * gnulib-tool (last_checkin_date): don't expand the $Date here.
32524
32525 2002-12-31  Paul Eggert  <eggert@twinsun.com>
32526
32527         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
32528
32529 2002-12-31  Paul Eggert  <eggert@twinsun.com>
32530
32531         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
32532         memcmp if strcoll doesn't work.
32533
32534 2002-12-31  Bruno Haible  <bruno@clisp.org>
32535
32536         * lib/utime.c (utime_null): No need to call ftruncate if the file was
32537         nonempty.
32538
32539 2002-12-31  Bruno Haible  <bruno@clisp.org>
32540
32541         * lib/memcoll.c (STRCOLL): New macro.
32542         (memcoll): Use it.
32543
32544 2002-12-31  Bruno Haible  <bruno@clisp.org>
32545
32546         * lib/localcharset.h: New file.
32547         * lib/localcharset.c: Include it.
32548         * lib/unicodeio.c: Likewise.
32549
32550 2002-12-31  Bruno Haible  <bruno@clisp.org>
32551
32552         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
32553         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
32554
32555 2002-12-31  Bruno Haible  <bruno@clisp.org>
32556
32557         * lib/getline.h: Include <stddef.h>, for size_t.
32558
32559         * lib/unicodeio.h: Include <stddef.h>, for size_t.
32560         * lib/unicodeio.c: Don't include <stddef.h>.
32561
32562 2002-12-31  Bruno Haible  <bruno@clisp.org>
32563
32564         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
32565         HAVE_TM_ZONE.
32566
32567 2002-12-24  Karl Berry  <karl@gnu.org>
32568
32569         * config/config.guess: update from prep.
32570
32571 2002-12-24  Bruno Haible  <bruno@clisp.org>
32572
32573         General infrasructure.
32574         * m4/README: Rewritten.
32575         * m4/onceonly.m4: New file.
32576         * m4/onceonly_2_57.m4: New file.
32577
32578         Module atexit.
32579         * m4/atexit.m4: New file.
32580
32581         Module strtod.
32582         * m4/strtod.m4: New file.
32583
32584         Module strtol.
32585         * m4/strtol.m4: New file.
32586
32587         Module strtoul.
32588         * m4/strtoul.m4: New file.
32589
32590         Module memchr.
32591         * m4/memchr.m4: New file.
32592
32593         Module memcmp.
32594         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
32595         (jm_FUNC_MEMCMP): Invoke it.
32596
32597         Module memcpy.
32598         * m4/memcpy.m4: New file.
32599
32600         Module memmove.
32601         * m4/memmove.m4: New file.
32602
32603         Module memset.
32604         * m4/memset.m4: New file.
32605
32606         Module strcspn.
32607         * m4/strcspn.m4: New file.
32608
32609         Module strpbrk.
32610         * m4/strpbrk.m4: New file.
32611
32612         Module strstr.
32613         * m4/strstr.m4: New file.
32614
32615         Module strerror.
32616         * m4/strerror.m4: New file.
32617
32618         Module mktime.
32619         * m4/mktime.m4: Renamed from jm-mktime.m4.
32620         (gl_PREREQ_MKTIME): New macro.
32621         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
32622
32623         Module malloc.
32624         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
32625         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
32626         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
32627
32628         Module realloc.
32629         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
32630         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
32631         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
32632
32633         Module strftime.
32634         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
32635         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
32636         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
32637         gl_TM_GMTOFF.
32638         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
32639
32640         Module xalloc.
32641         * m4/xalloc.m4: New file.
32642
32643         Module alloca.
32644         * m4/alloca.m4: New file.
32645
32646         Module putenv.
32647         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
32648         (jm_FUNC_PUTENV): Invoke it.
32649
32650         Module setenv.
32651         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
32652         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
32653         when invoked twice.
32654         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
32655         gt_FUNC_SETENV.
32656
32657         Module memrchr.
32658         * m4/memrchr.m4: New file.
32659
32660         Module stpcpy.
32661         * m4/stpcpy.m4: New file.
32662
32663         Module strcase.
32664         * m4/strcase.m4: New file.
32665
32666         Module strdup.
32667         * m4/strdup.m4: New file.
32668
32669         Module strnlen.
32670         * m4/strnlen.m4: New file.
32671
32672         Module strndup.
32673         * m4/strndup.m4: New file.
32674
32675         Module xstrtod.
32676         * m4/xstrtod.m4: New file.
32677
32678         Module xstrtol.
32679         * m4/xstrtol.m4: New file.
32680
32681         Module getdate.
32682         * m4/getdate.m4: New file.
32683
32684         Module unlocked-io.
32685         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
32686         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
32687         * m4/jm-glibc-io.m4n: Remove file.
32688
32689         Module long-options.
32690         * m4/long-options.m4: New file.
32691
32692         Module md5.
32693         * m4/md5.m4: New file.
32694
32695         Module sha.
32696         * m4/sha.m4: New file.
32697
32698         Module getstr.
32699         * m4/getstr.m4: New file.
32700
32701         Module getline.
32702         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
32703         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
32704         <sys/types.h>, for size_t. Use the function name gnu_getline, not
32705         simply getline. Infoke gl_PREREQ_GETLINE.
32706
32707         Module obstack.
32708         * m4/obstack.m4: New file.
32709
32710         Module hash.
32711         * m4/hash.m4: New file.
32712
32713         Module readtokens.
32714         * m4/readtokens.m4: New file.
32715
32716         Module strverscmp.
32717         * m4/strverscmp.m4: New file.
32718
32719         Module stdbool.
32720         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
32721         OSF/1.
32722
32723         Module strtoll.
32724         * m4/strtoll.m4: New file.
32725
32726         Module strtoull.
32727         * m4/strtoull.m4: New file.
32728
32729         Module strtoimax.
32730         * m4/strtoimax.m4: New file.
32731
32732         Module strtoumax.
32733         * m4/strtoumax.m4: New file.
32734
32735         Module xstrtoimax.
32736         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
32737         jm_AC_PREREQ_XSTRTOIMAX.
32738         Moved the strtol prerequisites to strtol.m4.
32739         Moved the strtoll prerequisites to strtoll.m4.
32740         Moved the strtoimax prerequisites to strtoimax.m4.
32741
32742         Module xstrtoumax.
32743         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
32744         jm_AC_PREREQ_XSTRTOUMAX.
32745         Moved the strtoul prerequisites to strtoul.m4.
32746         Moved the strtoull prerequisites to strtoull.m4.
32747         Moved the strtoumax prerequisites to strtoumax.m4.
32748
32749         Module chown.
32750         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
32751         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
32752
32753         Module dup2.
32754         * m4/dup2.m4: New file.
32755
32756         Module ftruncate.
32757         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
32758         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
32759
32760         Module getgroups.
32761         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
32762         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
32763
32764         Module gettimeofday.
32765         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
32766         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
32767         gl_PREREQ_GETTIMEOFDAY.
32768
32769         Module mkdir.
32770         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
32771         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
32772
32773         Module mkstemp.
32774         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
32775         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
32776         jm_AC_TYPE_UINTMAX_T.
32777         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
32778
32779         Module stat.
32780         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
32781         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
32782
32783         Module lstat.
32784         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
32785         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
32786
32787         Module timespec.
32788         * m4/timespec.m4 (gl_TIMESPEC): New macro.
32789         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
32790         * m4/st_mtim.m4: Indentation.
32791
32792         Module nanosleep.
32793         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
32794         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
32795         gl_PREREQ_NANOSLEEP.
32796
32797         Module regex.
32798         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
32799         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
32800         (gl_REGEX): New macro.
32801
32802         Module rename.
32803         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
32804         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
32805
32806         Module rmdir.
32807         * m4/rmdir.m4: New file.
32808
32809         Module utime.
32810         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
32811         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
32812         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
32813
32814         Module dirname.
32815         * m4/dirname.m4: New file.
32816
32817         Module getopt.
32818         * m4/getopt.m4: New file.
32819
32820         Module unistd-safer.
32821         * m4/unistd-safer.m4: New file.
32822
32823         Module fnmatch.
32824         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
32825         declaration.
32826         (gl_PREREQ_FNMATCH_EXTRA): New macro.
32827         (gl_FUNC_FNMATCH_POSIX): New macro.
32828         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
32829         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
32830         simply fnmatch.
32831
32832         Module exclude.
32833         * m4/exclude.m4: New file.
32834
32835         Module human.
32836         * m4/human.m4: New file.
32837
32838         Module acl.
32839         * m4/acl.m4: Nop.
32840
32841         Module backupfile.
32842         * m4/backupfile.m4: New file.
32843         * m4/d-ino.m4: Indentation.
32844
32845         Module fsusage.
32846         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
32847         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
32848         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
32849
32850         Module dirfd.
32851         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
32852         requirements.
32853
32854         Module euidaccess.
32855         * m4/euidaccess.m4: New file.
32856
32857         Module file-type.
32858         * m4/file-type.m4: New file.
32859
32860         Module fileblocks.
32861         * m4/fileblocks.m4: New file.
32862
32863         Module filemode.
32864         * m4/filemode.m4: New file.
32865
32866         Module isdir.
32867         * m4/isdir.m4: New file.
32868
32869         Module lchown.
32870         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
32871         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
32872
32873         Module makepath.
32874         * m4/makepath.m4: New file.
32875
32876         Module modechange.
32877         * m4/modechange.m4: New file.
32878
32879         Module mountlist.
32880         * m4/mountlist.m4: New file.
32881         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
32882         Indentation.
32883
32884         Module path-concat.
32885         * m4/path-concat.m4: New file.
32886
32887         Module pathmax.
32888         * m4/pathmax.m4: New file.
32889
32890         Module same.
32891         * m4/same.m4: New file.
32892
32893         Module save-cwd.
32894         * m4/save-cwd.m4: New file.
32895
32896         Module savedir.
32897         * m4/savedir.m4: New file.
32898
32899         Module xgetcwd.
32900         * m4/xgetcwd.m4: New file.
32901         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
32902
32903         Module xreadlink.
32904         * m4/xreadlink.m4: New file.
32905
32906         Module safe-read.
32907         * m4/safe-read.m4: New file.
32908
32909         Module safe-write.
32910         * m4/safe-write.m4: New file.
32911
32912         Module closeout.
32913         * m4/closeout.m4: New file.
32914
32915         Module stdio-safer.
32916         * m4/stdio-safer.m4: New file.
32917
32918         Module getpass.
32919         * m4/getpass.m4: New file.
32920
32921         Module getugroups.
32922         * m4/getugroups.m4: New file.
32923
32924         Module group-member.
32925         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
32926         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
32927
32928         Module idcache.
32929         * m4/idcache.m4: New file.
32930
32931         Module userspec.
32932         * m4/userspec.m4: New file.
32933
32934         Module gettime.
32935         * m4/clock_time.m4: New file.
32936         * m4/gettime.m4: New file.
32937
32938         Module settime.
32939         * m4/settime.m4: New file.
32940
32941         Module posixtm.
32942         * m4/posixtm.m4: New file.
32943
32944         Module gethostname.
32945         * m4/gethostname.m4: New file.
32946
32947         Module canon-host.
32948         * m4/canon-host.m4: New file.
32949
32950         Module gettext.
32951         * m4/codeset.m4: New file, from gettext-0.11.5.
32952         * m4/gettext.m4: New file, from gettext-0.11.5.
32953         * m4/glibc21.m4: New file, from gettext-0.11.5.
32954         * m4/iconv.m4: New file, from gettext-0.11.5.
32955         * m4/intdiv0.m4: New file, from gettext-0.11.5.
32956         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
32957         * m4/inttypes.m4: New file, from gettext-0.11.5.
32958         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
32959         * m4/isc-posix.m4: New file, from gettext-0.11.5.
32960         * m4/lcmessage.m4: New file, from gettext-0.11.5.
32961         * m4/lib-ld.m4: New file, from gettext-0.11.5.
32962         * m4/lib-link.m4: New file, from gettext-0.11.5.
32963         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
32964         * m4/progtest.m4: New file, from gettext-0.11.5.
32965         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
32966         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
32967         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
32968
32969         Module localcharset.
32970         * m4/localcharset.m4: New file.
32971
32972         Module hard-locale.
32973         * m4/hard-locale.m4: New file.
32974
32975         Module mbswidth.
32976         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
32977         onceonly macros.
32978         * m4/mbrtowc.m4: Add comment.
32979
32980         Module memcasecmp.
32981         * m4/memcasecmp.m4: New file.
32982
32983         Module memcoll.
32984         * m4/memcoll.m4: New file.
32985
32986         Module unicodeio.
32987         * m4/unicodeio.m4: New file.
32988
32989         Module rpmatch.
32990         * m4/rpmatch.m4: New file.
32991
32992         Module yesno.
32993         * m4/yesno.m4: New file.
32994
32995         Module exitfail.
32996         * m4/exitfail.m4: New file.
32997
32998         Module c-stack.
32999         * m4/c-stack.m4 (gl_C_STACK): New macro.
33000         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
33001
33002         Module error.
33003         * m4/error.m4 (gl_ERROR): New macro.
33004         (jm_PREREQ_ERROR): Use onceonly macros.
33005
33006         Module fatal.
33007         * m4/fatal.m4: New file.
33008
33009         Module getloadavg.
33010         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
33011         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
33012
33013         Module getpagesize.
33014         * m4/getpagesize.m4: New file.
33015
33016         Module getusershell.
33017         * m4/getusershell.m4: New file.
33018
33019         Module physmem.
33020         * m4/physmem.m4: New file.
33021
33022         Module posixver.
33023         * m4/posixver.m4: New file.
33024
33025         Module quotearg.
33026         * m4/quotearg.m4: New file.
33027
33028         Module quote.
33029         * m4/quote.m4: New file.
33030
33031         Module readutmp.
33032         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
33033
33034         Module sig2str.
33035         * m4/sig2str.m4: New file.
33036
33037         Other.
33038         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
33039         ulonglong.m4.
33040         * m4/intmax_t.m4: New file.
33041         * m4/d-type.m4: Indentation.
33042         * m4/jm-macros.m4: Update.
33043         * m4/prereq.m4 (jm_PREREQ): Update.
33044         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
33045         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
33046         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
33047         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
33048         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
33049         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
33050         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
33051         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
33052         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
33053         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
33054         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
33055         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
33056         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
33057         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
33058         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
33059         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
33060         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
33061         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
33062         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
33063
33064 2002-12-24  Bruno Haible  <bruno@clisp.org>
33065
33066         * MODULES.txt: Update according to m4/ changes.
33067
33068         Module gettext.
33069         * config.rpath: New file, from gettext-0.11.5.
33070
33071         * modules/*: New module descriptions.
33072         * gnulib-tool: New file.
33073         * MODULES.html.sh: New file.
33074
33075 2002-12-21  Karl Berry  <karl@gnu.org>
33076
33077         * doc/fdl.texi: update to version 1.2.
33078
33079 2002-12-19  Karl Berry  <karl@gnu.org>
33080
33081         * config/config.guess: update from prep.
33082
33083 2002-12-18  Bruno Haible  <bruno@clisp.org>
33084
33085         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
33086         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
33087
33088 2002-12-17  Bruno Haible  <bruno@clisp.org>
33089
33090         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
33091         stdlib.h, string.h.
33092
33093 2002-12-17  Bruno Haible  <bruno@clisp.org>
33094
33095         * lib/canon-host.c (strdup): Remove unused declaration.
33096
33097         * lib/fsusage.c: Include full_read.h.
33098         (get_fs_usage): Use full_read instead of safe_read.
33099
33100         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
33101
33102 2002-12-12  Karl Berry  <karl@gnu.org>
33103
33104         * config/config.guess: update from prep.
33105
33106 2002-12-11  Bruno Haible  <bruno@clisp.org>
33107
33108         * m4/setenv.m4: New file, from gettext-0.11.5.
33109
33110 2002-12-11  Bruno Haible  <bruno@clisp.org>
33111
33112         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
33113         not unsetenv().
33114         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
33115         modifications:
33116
33117         2002-12-11  Bruno Haible  <bruno@clisp.org>
33118
33119                 * setenv.c (alloca): Fall back to malloc.
33120                 (freea): New macro.
33121                 (setenv): Use freea() to free memory allocated with alloca().
33122
33123         2002-11-13  Bruno Haible  <bruno@clisp.org>
33124
33125                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
33126                 function declarations.
33127                 * unsetenv.c (unsetenv): Likewise.
33128
33129         2002-03-04  Bruno Haible  <bruno@clisp.org>
33130
33131                 Portability to AIX 4.3.3.
33132                 * unsetenv.c: New file, extracted from setenv.c.
33133                 * setenv.c: Move the unsetenv() function to unsetenv.c.
33134
33135         2001-12-20  Bruno Haible  <bruno@clisp.org>
33136
33137                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
33138                 use malloc instead. For SunOS 4.
33139
33140         2001-12-11  Bruno Haible  <bruno@clisp.org>
33141
33142                 * setenv.c: Declare alloca.
33143                 (compar_fn_t): New typedef.
33144                 (KNOWN_VALUE, STORE_VALUE): Use it.
33145
33146         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
33147         setenv.h.
33148
33149 2002-12-10  Paul Eggert  <eggert@twinsun.com>
33150
33151         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
33152         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
33153         Choose values that are less likely to collide with system fnmatch
33154         options.
33155         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
33156         defined (e.g., a pure POSIX system).
33157         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
33158         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
33159
33160 2002-12-06  Paul Eggert  <eggert@twinsun.com>
33161
33162         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
33163         a pain in practice to deal with generated m4 files.  This change
33164         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
33165
33166         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
33167         and jm-glibc-io.m4, as they are no longer a special case.
33168         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
33169         kludge and the auto-generation stuff.  Check only whether the
33170         functions are declared, not whether they exist, since older hosts
33171         that don't declare the functions can't use the optimization anyway.
33172
33173 2002-12-06  Jim Meyering  <jim@meyering.net>
33174
33175         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
33176
33177         Merge in changes from libc's misc/error.c, in preparation
33178         for the merge of gnulib's changes back into libc.
33179
33180         * lib/error.c (_): Define only if not already defined.
33181         Move definition to follow all #include directives.
33182         Include unlocked-io.h only if !_LIBC.
33183         [_LIBC]: Include <libio/libioP.h>.
33184         [USE_IN_LIBIO]: Include <libio/iolibio.h>
33185         (fflush): Tweak definition to use INTUSE.
33186         (putc): Define.
33187
33188 2002-12-05  Paul Eggert  <eggert@twinsun.com>
33189
33190         * lib/alloca.c [defined emacs]: Include "lisp.h".
33191         (xalloc_die) [defined emacs]: New macro.
33192         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
33193         [! defined emacs]: Include <xalloc.h>.
33194         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
33195         (pointer): Typedef to POINTER_TYPE *.
33196         (malloc): Remove decl; we now always use xmalloc.
33197         (alloca): Use old-style definition, since Emacs needs this.
33198         Check for arithmetic overflow when computing combined size.
33199
33200 2002-12-04  Paul Eggert  <eggert@twinsun.com>
33201
33202         Do not generate unlocked-io.h automatically, since it's easier to
33203         maintain it by hand.
33204
33205         * lib/unlocked-io.h: New file, from GNU diffutils,
33206         but with proper copyright notice and attribution.
33207         * lib/gen-uio: Remove.
33208         * lib/Makefile.am: Add copyright notice.
33209         (libfetish_a_SOURCES): Add unlocked-io.h.
33210         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
33211         (DISTCLEANFILES, io_functions): Remove macros.
33212         (EXTRA_DIST): Remove gen_uio.
33213         (unlocked-io.h): Remove rule.
33214
33215 2002-12-04  Jim Meyering  <jim@meyering.net>
33216
33217         Reflect the fact that stat.c and lstat.c are no longer generated.
33218         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
33219         (DISTCLEANFILES): Likewise.
33220         (EXTRA_DIST): Likewise.
33221         (all_local): Don't depend on stat.c or lstat.c.
33222         (stat.c, lstat.c): Remove rules.
33223         (EXTRA_DIST): Remove xstat.in.
33224
33225         * lib/xstat.in: Remove file.  Contents moved into stat.c.
33226         * lib/stat.c: New file.  Contents mostly from xstat.in.
33227         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
33228         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
33229
33230         * lib/safe-read.c: Rework so that it may serve to define safe_write,
33231         too.
33232         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
33233
33234 2002-12-03  Jim Meyering  <jim@meyering.net>
33235
33236         * lib/safe-read.c, safe-write.c: Change variable names and comments,
33237         but not semantics, to minimize the differences between these two files.
33238         (safe_read): Change comment to mention SAFE_READ_ERROR.
33239
33240         * lib/safe-read.c (IS_EINTR): Define.
33241         (safe_read): Use IS_EINTR in place of in-function cpp directives.
33242
33243 2002-12-02  Jim Meyering  <jim@meyering.net>
33244
33245         * lib/safe-read.c (EINTR): Define.
33246         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
33247         (INT_MAX): Provide fallback.
33248         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
33249
33250         * lib/safe-read.h (SAFE_READ_ERROR): Define.
33251
33252 2002-12-02  Bruno Haible  <bruno@clisp.org>
33253
33254         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
33255         Define, taken from safe-read.c.
33256         (INT_MAX): Provide fallback.
33257         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
33258         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
33259
33260         * lib/safe-read.c (EINTR): Remove definition.
33261         (safe_read): Don't use EINTR if it is absent.
33262
33263 2002-12-01  Jim Meyering  <jim@meyering.net>
33264
33265         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
33266         zero.
33267         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
33268
33269 2002-11-27  Paul Eggert  <eggert@twinsun.com>
33270
33271         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
33272         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
33273         with `if (! (value < limit)) abort ();', for readability.
33274
33275 2002-11-26  Karl Berry  <karl@gnu.org>
33276
33277         * lib/strdup.c: copy from libc again, with jim's ok.
33278         * lib/.cppi-disable: re-add strdup.c
33279
33280 2002-11-25  Karl Berry  <karl@gnu.org>
33281
33282         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
33283         instead of "strtol.c".
33284
33285 2002-11-25  Karl Berry  <karl@gnu.org>
33286
33287         * config/install-sh: update from automake for variable quoting, $0 in
33288         error msgs, etc.
33289
33290         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
33291         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
33292         entry.
33293
33294 2002-11-25  Jim Meyering  <jim@meyering.net>
33295
33296         * lib/mktime.c: Sync from libc, now that it has the latest fix.
33297
33298 2002-11-24  Karl Berry  <karl@gnu.org>
33299
33300         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
33301         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
33302
33303 2002-11-24  Jim Meyering  <jim@meyering.net>
33304
33305         Update from coreutils:
33306
33307         * lib/mktime.c: Merge in changes from libc.
33308
33309         Avoid a link-time failure on some Linux systems.
33310         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
33311         (otherwise).
33312         (__mon_yday): Declare with the STATIC attribute.
33313         (__mktime_internal): Likewise.
33314         Based on a report from Greg Schafer.
33315
33316 2002-11-23  Jim Meyering  <jim@meyering.net>
33317
33318         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
33319         Use `unsigned', not `int', as type of index.
33320
33321         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
33322
33323         * lib/fsusage.c: Remove unneeded parentheses around operands of
33324         `defined'.
33325
33326 2002-11-22  Paul Eggert  <eggert@twinsun.com>
33327
33328         * lib/quotearg.h: Allow multiple inclusion by surrounding with
33329         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
33330         so that we can be included first.
33331         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
33332         * lib/quotearg.c: Include quotearg.h immediately after config.h.
33333         No need to include stddef.h or sys/types.h any more.
33334         Surround local include files with "", not "<>".
33335         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
33336         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
33337         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
33338         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
33339         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
33340         (ISPRINT): Remove; no longer needed now that we assume C89.
33341
33342         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
33343         Preserve errno.
33344
33345         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
33346         quotearg_char): Use SIZE_MAX rather than
33347         (size_t) -1 when we are talking about "infinity".
33348
33349         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
33350
33351 2002-11-22  Paul Eggert  <eggert@twinsun.com>
33352
33353         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
33354         hint that one should use `if (! x) abort ();' rather than `assert
33355         (x);', and anyway it's one less thing to worry about configuring.
33356         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
33357         hash_rehash, hash_insert): Use abort rather than assert.
33358
33359 2002-11-22  Bruno Haible  <bruno@clisp.org>
33360
33361         * lib/safe-read.h: Assume C89. Add comments.
33362         (safe_read): Change return type to size_t.
33363         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
33364         byte counts > SSIZE_MAX correctly.
33365         * lib/safe-write.h: New file.
33366         * lib/safe-write.c: New file.
33367         * lib/full-read.h: New file.
33368         * lib/full-read.c: New file.
33369         * lib/full-write.h: Assume C89. Add comments.
33370         * lib/full-write.c: Include safe-write.h.
33371         (full_write): Rewritten to use safe_write.
33372         Suggested by Jim Meyering and Paul Eggert.
33373
33374 2002-11-21  Jim Meyering  <jim@meyering.net>
33375
33376         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
33377
33378         Merge in changes from the coreutils.
33379
33380         2002-09-25  Paul Eggert  <eggert@twinsun.com>
33381         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
33382         <stdint.h>.
33383         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
33384         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
33385         int.  Work more efficiently if X is the same width as uintmax_t.
33386         Do not compare X to -1, to avoid bogus compiler warning.
33387         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
33388         Don't assume that f_frsize and f_bsize are the same type.
33389
33390         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
33391         warning on FreeBSD.
33392
33393         * lib/makepath.c (make_path): Restore umask *before* creating the final
33394         component.
33395         (make_path): Minor reformatting.
33396
33397         * lib/xmalloc.c: Adjust to work with new autoconf macros,
33398         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
33399         HAVE_MALLOC/HAVE_REALLOC.
33400
33401         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
33402         dummy ones.  At least on GNU/Linux systems, `auto' means something
33403         else.
33404         From Michael Stone.
33405
33406 2002-11-21  Bruno Haible  <bruno@clisp.org>
33407
33408         Remove case insensitive option matching.
33409         * lib/argmatch.h (argcasematch): Remove declaration.
33410         (ARGCASEMATCH): Remove macro.
33411         (__xargmatch_internal): Remove case_sensitive argument.
33412         (XARGMATCH): Update.
33413         (XARGCASEMATCH): Remove macro.
33414         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
33415         case_sensitive argument.
33416         (argcasematch): Remove function.
33417         (__xargmatch_internal): Remove case_sensitive argument.
33418         (main): Use XARGMATCH instead of XARGCASEMATCH.
33419
33420         * lib/xmalloc.c: Change compile-time error message. Add comment about
33421         required autoconf version.
33422
33423 2002-11-20  Paul Eggert  <eggert@twinsun.com>
33424
33425         Merge argmatch cleanups from Bison.  Assume C89.
33426
33427         * lib/argmatch.c: Include config.h here, not in argmatch.h.
33428         Include stdlib.h, for EXIT_FAILURE.
33429         Always include <string.h>, since we assume C89.
33430         (EXIT_FAILURE): Remove pre-C89 bug workaround.
33431         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
33432         Include <stddef.h> instead, since it's all we need for size_t.
33433         (PARAMS): Remove.  All uses removed.
33434         (ARRAY_CARDINALITY): Do not bother to #undef.
33435         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
33436         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
33437         Remove unnecessary parentheses.
33438         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
33439         Insert necessary parentheses.
33440         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
33441         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
33442
33443 2002-11-19  Bruno Haible  <bruno@clisp.org>
33444
33445         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
33446         * lib/mbswidth.h: Include <stddef.h>, for size_t.
33447
33448         * lib/mbswidth.h (PARAMS): Remove macro.
33449         (mbswidth, mbsnwidth): Use ANSI C function declarations.
33450         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
33451
33452         * lib/gcd.h (PARAMS): Remove macro.
33453         (gcd): Use ANSI C function declarations.
33454         * lib/gcd.c (gcd): Likewise.
33455
33456 2002-11-15  Bruno Haible  <bruno@clisp.org>
33457
33458         * lib/strcspn.c: Include <stddef.h>.
33459         (strcspn): Use ANSI C function declaration. Change return type to
33460         size_t. Use NULL.
33461         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
33462         (strpbrk): Use NULL.
33463         * lib/strpbrk.h (PARAMS): Remove macro.
33464         (strpbrk): Use ANSI C function declaration.
33465         * lib/strstr.c: Don't include <sys/types.h>.
33466         * lib/strstr.h (PARAMS): Remove macro.
33467         (strstr): Use ANSI C function declarations.
33468
33469 2002-11-14  Karl Berry  <karl@gnu.org>
33470
33471         * config/mkinstalldirs: `do' on separate line, instead of
33472         `for var; do'.
33473
33474 2002-11-06  Bruno Haible  <bruno@clisp.org>
33475
33476         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
33477         * lib/gcd.c (gcd): Likewise.
33478
33479 2002-11-05  Bruno Haible  <bruno@clisp.org>
33480
33481         * lib/gcd.h: New file, from gettext-0.11.5.
33482         * lib/gcd.c: New file, from gettext-0.11.5.
33483
33484 2002-11-05  Bruno Haible  <bruno@clisp.org>
33485
33486         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
33487         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
33488         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
33489         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
33490
33491         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
33492         <libintl.h>.
33493         * lib/makepath.c: Include gettext.h instead of <locale.h> and
33494         <libintl.h>.
33495
33496         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
33497         * lib/human.c: Include gettext.h instead of <libintl.h>.
33498         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
33499         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
33500         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
33501         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
33502         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
33503         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
33504         (textdomain): Remove definition.
33505         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
33506
33507         * lib/long-options.c: Remove include of <libintl.h> and definition of
33508         _.
33509         * lib/same.c: Remove include of <libintl.h> and definition of _.
33510
33511 2002-11-04  Owen Taylor  <otaylor@redhat.com>
33512
33513         * lib/config.charset: A few additions for Solaris.
33514
33515 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
33516
33517         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
33518         * lib/localcharset.c (locale_charset): Declare as extern "C".
33519
33520 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
33521
33522         * lib/config.charset: msdos in uk_UA uses CP1125.
33523
33524 2002-11-04  Bruno Haible  <bruno@clisp.org>
33525
33526         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
33527         * lib/strcase.h: New file, from GNU gettext-0.11.5.
33528         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
33529         * lib/strstr.h: New file, from GNU gettext-0.11.5.
33530         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
33531
33532 2002-11-04  Bruno Haible  <bruno@clisp.org>
33533
33534         * lib/localcharset.c (locale_charset): Don't return an empty string.
33535
33536 2002-11-04  Bruno Haible  <bruno@clisp.org>
33537
33538         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
33539         aliases.
33540
33541 2002-11-04  Bruno Haible  <bruno@clisp.org>
33542
33543         * lib/config.charset: Update for newest glibc. Add canonical names
33544         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
33545
33546 2002-11-04  Bruno Haible  <bruno@clisp.org>
33547
33548         * lib/config.charset: Add support for NetBSD.
33549
33550 2002-11-04  Bruno Haible  <bruno@clisp.org>
33551
33552         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
33553
33554 2002-11-01  Bruno Haible  <bruno@clisp.org>
33555
33556         * configure.in: Add AC_CONFIG_AUX_DIR call.
33557         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
33558         test/Makefile.
33559         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
33560
33561 2002-09-28  Karl Berry  <karl@gnu.org>
33562
33563         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
33564         installed automake until the next release, since changes have been
33565         made.
33566
33567 2002-09-25  Karl Berry  <karl@gnu.org>
33568
33569         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
33570         * lib/getopt*: copy from libc/posix.
33571         * lib/gettext.h: copy from gettext.
33572         * lib/.cppi-disable: add strdup.c, gettext.h.
33573
33574 2002-09-25  Karl Berry  <karl@gnu.org>
33575
33576         * config/srclist.txt: enable gettext.h check.
33577         * config/config.{guess,sub}: update from prep.
33578         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
33579                 from automake 1.6.3.
33580         See srclist*.
33581
33582 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
33583
33584         * regex.c (PATFETCH): Remove the translating fetch.
33585         (PATFETCH_RAW): Rename to PATFETCH.
33586         (set_image_of_range): New fun.
33587         (SET_RANGE_TABLE_WORK_AREA): Use it.
33588         (regex_compile): Don't translate the pattern chars so eagerly.
33589         Only do it when inserting an `exactn' bytecode or when handling
33590         a char-range.
33591         (mutually_exclusive_p): Avoid empty statement.
33592
33593 2002-07-06  Jim Meyering  <meyering@lucent.com>
33594
33595         * m4/README: Don't mention Makefile.am.in.
33596         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
33597
33598 2002-07-01  Jim Meyering  <meyering@lucent.com>
33599
33600         * lib/c-stack.c: Include sys/time.h.
33601         From Volker Borchert.
33602
33603 2002-06-26  Paul Eggert  <eggert@twinsun.com>
33604
33605         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
33606
33607 2002-06-26  Paul Eggert  <eggert@twinsun.com>
33608
33609         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
33610         New macro.  Use it uniformly instead of
33611         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
33612         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
33613         reported by Vin Shelton.
33614
33615 2002-06-22  Paul Eggert  <eggert@twinsun.com>
33616
33617         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
33618         Do not assume SA_SIGINFO behavior.
33619         Bug reported by Jim Meyering on NetBSD 1.5.2.
33620
33621 2002-06-22  Jim Meyering  <meyering@lucent.com>
33622
33623         * m4/c-stack.m4: New file, from diffutils-2.8.2.
33624         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
33625
33626         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
33627         now that configure.ac uses AC_GNU_SOURCE.
33628         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
33629         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
33630
33631         Update to latest tools.  Suggestions from Paul Eggert.
33632         * m4/stdbool.m4: New file, from diffutils-2.8.2.
33633         * m4/gnu-source.m4: Update from diffutils-2.8.2.
33634         * m4/fnmatch.m4: Likewise.
33635         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
33636         to AC_HEADER_STDBOOL
33637
33638 2002-06-22  Jim Meyering  <meyering@lucent.com>
33639
33640         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
33641         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
33642
33643 2002-06-22  Jim Meyering  <meyering@lucent.com>
33644
33645         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
33646
33647         * lib/exitfail.c, exitfail.h: Likewise.
33648         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
33649
33650         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
33651         of fnmatch.h.
33652         (EXTRA_DIST): Add fnmatch_loop.c.
33653         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
33654
33655         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
33656         * lib/fnmatch.c: Update from diffutils-2.8.2.
33657         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
33658         * lib/fnmatch.h: Remove file.
33659
33660 2002-06-21  Jim Meyering  <meyering@lucent.com>
33661
33662         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
33663         * m4/mbrtowc.m4: Likewise.
33664
33665         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
33666         * m4/mbswidth.m4: Reflect name change:
33667         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
33668         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
33669
33670         * m4/lib-link.m4: Update from gettext-0.11.2.
33671         * m4/gettext.m4: Likewise.
33672
33673         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
33674         From Alfred M. Szmidt.
33675
33676 2002-06-18  Paul Eggert  <eggert@twinsun.com>
33677
33678         * lib/file-type.h: Report an error if neither S_ISREG nor
33679         S_IFREG is defined, instead of using a test specific to glibc
33680         2.2.  This should be safe, since POSIX requires S_ISREG and
33681         Unix Version 7 had S_IFREG.  We don't need to check for
33682         <sys/types.h> since we don't use any symbols that it defines.
33683
33684 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
33685
33686         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
33687         $@-t, so that each temporary file name is unique and valid in the first
33688         8 characters, for operation under DOS.
33689
33690 2002-06-15  Paul Eggert  <eggert@twinsun.com>
33691
33692         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
33693
33694 2002-06-15  Jim Meyering  <meyering@lucent.com>
33695
33696         Work even with DJGPP 2.03, which lacks support for symlinks.
33697         From Richard Dawe.
33698         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
33699         is defined.
33700         * lib/lchown.c (S_ISLNK): Likewise.
33701
33702 2002-06-15  Jim Meyering  <meyering@lucent.com>
33703
33704         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
33705         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
33706         have been included before this file.
33707
33708 2002-06-14  Jim Meyering  <meyering@lucent.com>
33709
33710         * lib/file-type.h: Use the version from diffutils-2.8.2.
33711         * lib/file-type.c: Likewise.
33712
33713 2002-06-07  Jim Meyering  <meyering@lucent.com>
33714
33715         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
33716         They're needed at least for NetBSD 1.5.2.
33717         ($statxfs_includes): Include those same headers.
33718         ($statxfs_includes): Include sys/vfs.h if available.
33719         ($statxfs_includes): Likewise for sys/statvfs.h.
33720         Check for the following members in both structs statfs and statvfs:
33721         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
33722
33723 2002-06-01  Jim Meyering  <meyering@lucent.com>
33724
33725         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
33726         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
33727
33728 2002-05-28  Jim Meyering  <meyering@lucent.com>
33729
33730         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
33731         Reported by Volker Borchert.
33732
33733 2002-05-27  Jim Meyering  <meyering@lucent.com>
33734
33735         Fix a problem seen only on nonconforming systems whereby ls.c's
33736         use of localtime, and then of gettimeofday would cause trouble:
33737         the localtime call used to initialize rpl_gettimeofday's save
33738         mechanism would clobber ls's current local time information so
33739         that in any long listing the first file would always be listed
33740         with date 1970-01-01.  Analysis by Volker Borchert.
33741
33742         * lib/gettimeofday.c (localtime): Undefine.
33743         (rpl_localtime): New function.
33744
33745 2002-05-27  Jim Meyering  <meyering@lucent.com>
33746
33747         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
33748         localtime.
33749
33750         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
33751         use the replacement function; it wouldn't resolve at link time.
33752         Reported by Volker Borchert.
33753
33754 2002-05-22  Jim Meyering  <meyering@lucent.com>
33755
33756         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
33757         file-type.h.
33758         * lib/file-type.h: New file.
33759         * lib/file-type.c (file_type): New file/function.  Extracted from
33760         diffutils.
33761
33762 2002-04-30  Jim Meyering  <meyering@lucent.com>
33763
33764         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
33765
33766 2002-04-29  Paul Eggert  <eggert@twinsun.com>
33767
33768         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
33769
33770 2002-04-29  Paul Eggert  <eggert@twinsun.com>
33771
33772         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
33773         Do not check for alloca.h (no longer used) or stdbool.h (was never
33774         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
33775
33776 2002-04-29  Paul Eggert  <eggert@twinsun.com>
33777
33778         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
33779
33780 2002-04-29  Jim Meyering  <meyering@lucent.com>
33781
33782         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
33783         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
33784         Use AC_FUNC_STRNLEN here instead.
33785
33786         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
33787         With autoconf-2.53a, it's part of AC_PROG_CC.
33788
33789 2002-04-28  Paul Eggert  <eggert@twinsun.com>
33790
33791         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
33792         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
33793
33794 2002-04-28  Paul Eggert  <eggert@twinsun.com>
33795
33796         * lib/sig2str.h, lib/sig2str.c: New files.
33797         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
33798
33799 2002-04-28  Paul Eggert  <eggert@twinsun.com>
33800
33801         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
33802         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
33803         of 127, since 64 is the largest conceivable number for ancient
33804         nonstandard hosts.
33805         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
33806
33807 2002-04-28  Jim Meyering  <meyering@lucent.com>
33808
33809         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
33810
33811 2002-04-24  Jim Meyering  <meyering@lucent.com>
33812
33813         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
33814         (jm_PREREQ): Use it.
33815
33816         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
33817         mach/mach.h fcntl.h.
33818         Check for this function: setlocale.
33819
33820 2002-04-24  Jim Meyering  <meyering@lucent.com>
33821
33822         * lib/gettext.h: New file, from Gettext.
33823         * lib/Makefile.am (INCLUDES): Remove -I../intl.
33824         (libfetish_a_SOURCES): Add gettext.h.
33825
33826 2002-04-16  Jim Meyering  <meyering@lucent.com>
33827
33828         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
33829         ut_pid, ut_id, ut_exit.
33830
33831 2002-04-16  Jim Meyering  <meyering@lucent.com>
33832
33833         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
33834         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
33835         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
33836
33837 2002-04-12  Jim Meyering  <meyering@lucent.com>
33838
33839         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
33840         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
33841         existence of the getmntinfo function.  Needed for Darwin 5.3.
33842
33843         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
33844         This is necessary at least on Darwin 5.3.
33845
33846         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
33847         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
33848         strnlen.o in the library, and that makes some versions of ranlib
33849         object.
33850
33851 2002-04-12  Jim Meyering  <meyering@lucent.com>
33852
33853         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
33854
33855 2002-04-09  Jim Meyering  <meyering@lucent.com>
33856
33857         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
33858         to be more precise.  Rather than saying we're checking whether the
33859         function `works', say what we're testing.
33860         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
33861         Reported by Bruno Haible.
33862
33863 2002-03-10  Jim Meyering  <meyering@lucent.com>
33864
33865         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
33866         Suggestion from Santiago Vila.
33867
33868 2002-03-08  Jim Meyering  <meyering@lucent.com>
33869
33870         * lib/rename.c: Mention that this wrapper is needed also on
33871         mips-dec-ultrix4.4 systems.
33872
33873 2002-03-02  Jim Meyering  <meyering@lucent.com>
33874
33875         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
33876         not HAVE_CLOCK_SETTIME.
33877
33878 2002-02-27  Paul Eggert  <eggert@twinsun.com>
33879
33880         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
33881         Check for clock_settime.
33882
33883 2002-02-27  Paul Eggert  <eggert@twinsun.com>
33884
33885         * lib/nanosleep.h: Rename to....
33886         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
33887
33888         * lib/gettime.c: New file.
33889         * lib/settime.c: New file.
33890         * lib/stime.c: Remove.
33891
33892         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
33893         timespec.h.  Remove nanosleep.h.
33894
33895 2002-02-25  Paul Eggert  <eggert@twinsun.com>
33896
33897         * m4/acl.m4: New file.
33898         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
33899         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
33900
33901 2002-02-25  Paul Eggert  <eggert@twinsun.com>
33902
33903         * lib/acl.c, lib/acl.h: New files.
33904         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
33905
33906 2002-02-24  Jim Meyering  <meyering@lucent.com>
33907
33908         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
33909         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
33910         cause trouble.  Reported by Nelson Beebe.
33911
33912 2002-02-23  Paul Eggert  <eggert@twinsun.com>
33913
33914         * lib/path-concat.c (xpath_concat): Reorder code to pacify
33915         compilers that don't know that xalloc_die never returns.
33916
33917 2002-02-20  Jim Meyering  <meyering@lucent.com>
33918
33919         * lib/getdate.c: Regenerate using bison-1.33.
33920
33921 2002-02-17  Jim Meyering  <meyering@lucent.com>
33922
33923         * config/config.guess (main): Don't use `head -1'; it's no longer
33924         portable. Use `sed 1q' instead.
33925
33926 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
33927
33928         * m4/codeset.m4: Upgrade to gettext-0.11.
33929         * m4/gettext.m4: Upgrade to gettext-0.11.
33930         * m4/glibc21.m4: Upgrade to gettext-0.11.
33931         * m4/iconv.m4: Upgrade to gettext-0.11.
33932         * m4/isc-posix.m4: Upgrade to gettext-0.11.
33933         * m4/lcmessage.m4: Upgrade to gettext-0.11.
33934         * m4/lib-ld.m4: New file, from gettext-0.11.
33935         * m4/lib-link.m4: New file, from gettext-0.11.
33936         * m4/lib-prefix.m4: New file, from gettext-0.11.
33937         * m4/progtest.m4: Upgrade to gettext-0.11.
33938
33939 2002-02-15  Paul Eggert  <eggert@twinsun.com>
33940
33941         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
33942         (jm_PREREQ): Use it.
33943
33944 2002-02-15  Paul Eggert  <eggert@twinsun.com>
33945
33946         * lib/posixver.c, lib/posixver.h: New files.
33947         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
33948
33949 2002-02-02  Paul Eggert  <eggert@twinsun.com>
33950             Bruno Haible  <bruno@clisp.org>
33951
33952         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
33953         (fwrite_success_callback): New declaration.
33954         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
33955         print_unicode_char. Call failure callback instead of error.
33956         (fwrite_success_callback): New function.
33957         (exit_failure_callback): New function.
33958         (fallback_failure_callback): New function.
33959         (print_unicode_char): Call unicode_to_mb.
33960
33961 2002-01-26  Jim Meyering  <meyering@lucent.com>
33962
33963         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
33964         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
33965
33966 2002-01-26  Jim Meyering  <meyering@lucent.com>
33967
33968         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
33969
33970 2002-01-22  Paul Eggert  <eggert@twinsun.com>
33971
33972         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
33973
33974 2002-01-22  Jim Meyering  <meyering@lucent.com>
33975
33976         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
33977         Otherwise, some versions of automake would omit the rule that makes
33978         Makefile from Makefile.in.
33979
33980 2002-01-21  Paul Eggert  <eggert@twinsun.com>
33981
33982         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
33983         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
33984         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
33985         (memcoll): Set errno to zero if there is no error.
33986
33987         * lib/quotearg.c (quotearg_buffer_restyled):
33988         Fix bug with quoting buffers containing NUL when backslashing escapes.
33989         This bug was exposed by the other changes in this patch.
33990         (quotearg_n_options): New arg ARGSIZE.
33991         All callers changed.
33992         (quoting_options_from_style): New function.
33993         (quotearg_n_style): Use it.
33994         (quotearg_n_style_mem): New function.
33995
33996         * lib/quotearg.h (quotearg_n_style_mem): New function.
33997
33998 2002-01-19  Jim Meyering  <meyering@lucent.com>
33999
34000         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
34001         Remove useless quotes: DF_PROG="df".
34002         * m4/strnlen.m4: New file.
34003
34004 2002-01-16  Paul Eggert  <eggert@twinsun.com>
34005
34006         * lib/backupfile.c (ISDIGIT): Comment fix.
34007         * lib/getdate.y (ISDIGIT): Likewise.
34008         * lib/posixtm.c (ISDIGIT, year): Likewise.
34009         * lib/strverscmp.c (ISDIGIT): Likewise.
34010         * lib/userspec.c (ISDIGIT): Likewise.
34011
34012 2002-01-16  Jim Meyering  <meyering@lucent.com>
34013
34014         * lib/getdate.y: Add three semicolons, each just before a closing
34015         brace. Bison (as of version 1.31) no longer papers over that mistake.
34016
34017 2002-01-05  Jim Meyering  <meyering@lucent.com>
34018
34019         * lib/version-etc.c (version_etc_copyright): Update copyright year.
34020
34021 2001-12-19  Paul Eggert  <eggert@twinsun.com>
34022
34023         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
34024         not silently exit merely because the output buffer happens to
34025         have nothing pending.
34026
34027 2001-12-18  Paul Eggert  <eggert@twinsun.com>
34028
34029         See the big note in ../ChangeLog.
34030         * lib/human.c (suffixes): Prefer K to k for 1024.
34031         (generate_suffix_backwards): New function.
34032         (human_readable_inexact): Use it.
34033         * lib/xstrtol.c (__xstrtol): If there is no number but there
34034         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
34035         Accept 'K' as well as 'k'.
34036
34037 2001-12-15  Jim Meyering  <meyering@lucent.com>
34038
34039         * lib/regex.h (__restrict_arr): Update from libc.
34040
34041         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
34042         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
34043         (STREQ): Define.
34044
34045 2001-12-14  Jim Meyering  <meyering@lucent.com>
34046
34047         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
34048         Suggestion from Bruno Haible.
34049
34050 2001-12-10  Jim Meyering  <meyering@lucent.com>
34051
34052         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
34053         xrealloc, Instead, include "xalloc.h".
34054         (initbuffer): Don't cast xmalloc return value to char*.
34055         (readline): Reword comment.
34056         Don't cast xrealloc return value to char*
34057         Return NULL, not 0.
34058
34059 2001-12-09  Jim Meyering  <meyering@lucent.com>
34060
34061         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
34062         about `signed and unsigned type in conditional expression'.
34063         * lib/posixtm.c (posix_time_parse): Likewise.
34064
34065         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
34066
34067         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
34068         to avoid a pedantic warning.
34069
34070         * lib/getstr.c: Don't include assert.h.
34071         (getstr): Remove warning-evoking assertions.
34072         Return -1 if offset parameter is out of bounds.
34073         Change the type of a local from int to size_t.
34074
34075         * lib/strftime.c (my_strftime_localtime_r): Include this function
34076         definition in the `#if ! HAVE_TM_GMTOFF' block.
34077
34078         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
34079         Include xalloc.h instead.
34080
34081 2001-12-02  Jim Meyering  <meyering@lucent.com>
34082
34083         * lib/tempname.c: Don't declare getenv, thus reverting the change of
34084         2001-11-18.  It's no longer necessary, now that stdlib.h is always
34085         included.
34086
34087         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
34088         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
34089
34090 2001-11-30  Akim Demaille  <akim@epita.fr>
34091
34092         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
34093         before being defined.
34094
34095 2001-11-27  Paul Eggert  <eggert@twinsun.com>
34096
34097         * lib/quotearg.h (quotearg_n, quotearg_n_style):
34098         First arg is int, not unsigned.
34099         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
34100         (SIZE_MAX, UINT_MAX): New macros.
34101         (quotearg_n_options): Abort if N is negative.
34102         Avoid overflow check on hosts where size_t is 64 bits and int
34103         is 32 bits, as overflow is impossible there.
34104         Fix off-by-one typo that caused unnecessary reallocation.
34105
34106 2001-11-27  Jim Meyering  <meyering@lucent.com>
34107
34108         * lib/tempname.c: Merge with version from libc.
34109         * lib/regex.c: Likewise.
34110
34111         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
34112         systems for which STDC_HEADERS is 0, it was not included, resulting in
34113         a warning about an integer-to-pointer conversion problem with getenv.
34114         Reported by Volker Borchert.
34115
34116 2001-11-26  Jim Meyering  <meyering@lucent.com>
34117
34118         * lib/gtod.h: Remove file.
34119         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
34120         * lib/gettimeofday.c: Don't include gtod.h.
34121         (GTOD_init): Remove function.
34122         (rpl_gettimeofday): Do its job here instead, rather than aborting.
34123         Suggestion from Volker Borchert.
34124
34125 2001-11-23  Jim Meyering  <meyering@lucent.com>
34126
34127         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
34128         it.
34129         * lib/hash.c (struct hash_table): Define it here instead.
34130
34131 2001-11-22  Jim Meyering  <meyering@lucent.com>
34132
34133         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
34134
34135 2001-11-20  Jim Meyering  <meyering@lucent.com>
34136
34137         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
34138         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
34139
34140 2001-11-19  Jim Meyering  <meyering@lucent.com>
34141
34142         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
34143         directory.  Use "conftestXXXXXX" as the template.
34144         Suggestion from Paul Eggert.
34145
34146         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
34147         immediately, so the test doesn't mistakenly hit the max-open-files
34148         limit.
34149
34150 2001-11-18  Paul Eggert  <eggert@twinsun.com>
34151
34152         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
34153         (TEMPORARIES): New macro.
34154         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
34155         removes an artificial limitation (e.g. HP-UX 10.20, where
34156         TMP_MAX is 17576).
34157
34158 2001-11-18  Jim Meyering  <meyering@lucent.com>
34159
34160         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
34161
34162 2001-11-18  Jim Meyering  <meyering@lucent.com>
34163
34164         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
34165         on SunOS 4.
34166
34167         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
34168         files will be created before anything else.
34169
34170 2001-11-17  Paul Eggert  <eggert@twinsun.com>
34171
34172         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
34173         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
34174
34175 2001-11-17  Jim Meyering  <meyering@lucent.com>
34176
34177         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
34178         Prompted by a report from Bob Proulx.
34179
34180         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
34181         Instead, require UTILS_FUNC_MKSTEMP.
34182
34183 2001-11-17  Jim Meyering  <meyering@lucent.com>
34184
34185         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
34186         Now, that's done as part of AC_FUNC_STRTOD.
34187
34188 2001-11-17  Jim Meyering  <meyering@lucent.com>
34189
34190         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
34191         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
34192         rather than group writable.  Patch by Juan F. Codagnone.
34193
34194         * lib/readtokens.c: Remove explicit declarations of xmalloc and
34195         xrealloc, Instead, include "xalloc.h".
34196
34197         * lib/mountlist.c: Include unlocked-io.h after all system headers.
34198         Remove explicit declarations of xmalloc, xrealloc,
34199         and xstrdup.  Instead, include "xalloc.h".
34200
34201         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
34202         unlocked-io.h.
34203         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
34204         Likewise.
34205         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
34206
34207         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
34208         Reported by Padraig Brady.
34209
34210         * lib/mkstemp.c: #undef mkstemp.
34211         Include config.h.
34212         (rpl_mkstemp): Rename from mkstemp.
34213         Protoize.
34214
34215 2001-11-16  Jim Meyering  <meyering@lucent.com>
34216
34217         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
34218         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
34219         determine the amount of total physical memory, use pstat_getstatic.
34220         HPUX-11 doesn't define _SC_PHYS_PAGES.
34221         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
34222         If sysconf couldn't be used to determine the amount of available
34223         physical memory, use both pstat_getstatic and pstat_getdynamic.
34224         Based on a patch from Bob Proulx.
34225
34226 2001-11-10  Jim Meyering  <meyering@lucent.com>
34227
34228         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
34229         (jm_PREREQ): Use it.
34230
34231 2001-11-09  Jim Meyering  <meyering@lucent.com>
34232
34233         * m4/jm-macros.m4: Require autoconf-2.52f.
34234         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
34235         Use these AC_-prefixed names, not the AM_-prefixed ones.
34236
34237         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
34238
34239 2001-11-05  Jim Meyering  <meyering@lucent.com>
34240
34241         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
34242
34243 2001-11-04  Jim Meyering  <meyering@lucent.com>
34244
34245         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
34246         $DEFS.
34247
34248 2001-11-03  Jim Meyering  <meyering@lucent.com>
34249
34250         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
34251         of AC_DEFUN.
34252
34253         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
34254         know the name of the variable in the macro definition.
34255
34256 2001-11-03  Jim Meyering  <meyering@lucent.com>
34257
34258         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
34259         in argmatch_to_argument call.
34260
34261         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
34262         argument.
34263
34264         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
34265         e.g., a fault due to an attempt to free a NULL pointer.
34266
34267 2001-11-01  Jim Meyering  <meyering@lucent.com>
34268
34269         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
34270         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
34271
34272 2001-11-01  Jim Meyering  <meyering@lucent.com>
34273
34274         * lib/dirfd.c, lib/dirfd.h: New files.
34275         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
34276
34277         * lib/hash.c (hash_print) [TESTING]: Clean up.
34278
34279 2001-10-22  Paul Eggert  <eggert@twinsun.com>
34280
34281         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
34282         to avoid a warning if -Wall.
34283
34284 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
34285
34286         * README: New file
34287         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
34288         (per RMS's instructions, this is now the canonical source)
34289         * lgpl/, gpl/: New directories.
34290
34291 2001-10-21  Paul Eggert  <eggert@twinsun.com>
34292
34293         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
34294
34295 2001-10-21  Jim Meyering  <meyering@lucent.com>
34296
34297         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
34298         this code would end up calling gettext even in packages built
34299         with --disable-nls.
34300         * lib/getopt.c (_): Likewise.
34301         * lib/regex.c (_): Likewise.
34302
34303 2001-10-20  Paul Eggert  <eggert@twinsun.com>
34304
34305         * m4/error.m4 (jm_PREREQ_ERROR):
34306         Do not invoke AC_CHECK_FUNCS with strerror_r, as
34307         AC_FUNC_STRERROR_R does that.
34308         Check for strerror declaration.
34309
34310         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
34311         are supposed to have them these days.
34312         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
34313         Merge changes from latest Autoconf CVS.
34314         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
34315         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
34316         POSIX decided to standardize on the int flavor of strerror_r.
34317
34318 2001-10-20  Paul Eggert  <eggert@twinsun.com>
34319
34320         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
34321         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
34322         Use strerror_r that is only a macro, even if it is not a function.
34323         (strerror): Check for HAVE_DECL_STRERROR before declaring.
34324         (private_strerror): Use prototypes, not old-style function definition.
34325         (print_errno_message): New function.
34326         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
34327         char*-flavored one.
34328         (error_tail, error, error_at_line): Use it.
34329
34330 2001-10-11  Jim Meyering  <meyering@lucent.com>
34331
34332         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
34333         and quote_n (1, ... to avoid clobbering a buffer.
34334
34335 2001-10-05  Jim Meyering  <meyering@lucent.com>
34336
34337         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
34338         hash-pjw.h.
34339         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
34340         * lib/hash-pjw.h: New file.
34341
34342 2001-09-30  Jim Meyering  <meyering@lucent.com>
34343
34344         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
34345         `struct fsstat' has the `f_fstypename' member.
34346         Use that to define FS_TYPE, which is now used to make
34347         the getfsstat link test tighter.
34348
34349 2001-09-30  Jim Meyering  <meyering@lucent.com>
34350
34351         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
34352         Include <sys/ucred.h>, for Apple Darwin.
34353         Include sys/mount.h and sys/fs_types.h only if available.
34354         (FS_TYPE): Define.
34355         (read_filesystem_list): Use FS_TYPE.
34356
34357 2001-09-29  Paul Eggert  <eggert@twinsun.com>
34358
34359         * lib/exclude.c (excluded_filename): 0 -> false, since it's
34360         a boolean context.
34361
34362 2001-09-29  Jim Meyering  <meyering@lucent.com>
34363
34364         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
34365         [one-argument getmntent function]): Include stdio.h before mntent.h.
34366         SunOS 4.1.x needs it for the declaration of `FILE'.
34367         Patch by Volker Borchert.
34368
34369         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
34370         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
34371         sys/fs_types.h, and make the link-test for getfsstat guard #include
34372         directives with appropriate #if HAVE_*_H tests so that we can
34373         detect getfsstat on Apple Darwin1.3.7 systems.
34374         Reported by Nelson Beebe.
34375         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
34376
34377 2001-09-28  Paul Eggert  <eggert@twinsun.com>
34378
34379         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
34380         #defines strtoimax.  Also treat the other strto* functions
34381         like strtoimax.
34382
34383         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
34384         Check for strtoul and strtoumax,
34385         as those declarations are made even in the signed case.
34386         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
34387         Likewise, for strtol and strtoimax.
34388
34389 2001-09-28  Paul Eggert  <eggert@twinsun.com>
34390
34391         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
34392         #defines strtoimax.  Also treat the other strto* functions
34393         like strtoimax.
34394
34395         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
34396         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
34397         (strtoimax, strtoumax): Do not declare if already defined as a macro.
34398
34399 2001-09-26  Jim Meyering  <meyering@lucent.com>
34400
34401         Most macros in unlocked-io.h had the wrong number of arguments.
34402         * lib/gen-uio: New script.
34403         (USE_UNLOCKED_IO): Define to 1 if not already defined.
34404         * lib/unlocked-io.hin: Remove file.
34405         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
34406         rather than trying to embed it here.
34407         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
34408         Reported by Padraig Brady.
34409
34410 2001-09-25  Volker Borchert  <bt@teknon.de>
34411
34412         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
34413         `result'.
34414
34415 2001-09-24  Jim Meyering  <meyering@lucent.com>
34416
34417         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
34418
34419 2001-09-23  Jim Meyering  <meyering@lucent.com>
34420
34421         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
34422         instead of the mere test for existence of mntent.h.  The latter
34423         would get a false-positive on AIX 3.4 systems.
34424         In the outer getmntent if-block, don't die if neither of the getmntent
34425         tests succeeds.  Instead, just fall through and continue with the
34426         remaining tests.
34427
34428 2001-09-23  Jim Meyering  <meyering@lucent.com>
34429
34430         * lib/mountlist.c: Remove useless parentheses in #if directives.
34431         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
34432         the deprecated MOUNTED symbol is no longer defined in mntent.h.
34433
34434 2001-09-22  Jim Meyering  <meyering@lucent.com>
34435
34436         * m4/gettext.m4: New file.  From gettext.
34437         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
34438         * m4/progtest.m4: Likewise
34439         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
34440         * m4/glibc21.m4: Likewise.
34441
34442         * m4/libintl.m4: Remove.  No longer used.
34443
34444 2001-09-22  Jim Meyering  <meyering@lucent.com>
34445
34446         * lib/localcharset.c: Update from latest gettext.
34447         * lib/config.charset: Likewise.
34448
34449 2001-09-20  Jim Meyering  <meyering@lucent.com>
34450
34451         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
34452         strtoimax.
34453         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
34454         strtoumax.
34455
34456 2001-09-20  Jim Meyering  <meyering@lucent.com>
34457
34458         * lib/xstrtol.c (strtoimax): Guard declaration with
34459         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
34460         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
34461         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
34462         (strtoumax): Likewise, for completeness (it wasn't necessary).
34463
34464 2001-09-17  Paul Eggert  <eggert@twinsun.com>
34465
34466         * lib/strtoimax.c (HAVE_LONG_LONG):
34467         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
34468         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
34469         to work around bug in IBM C compiler.
34470
34471 2001-09-17  Jim Meyering  <meyering@lucent.com>
34472
34473         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
34474         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
34475         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
34476         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
34477         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
34478         whenever the right hand side need not be expanded by the shell.
34479
34480 2001-09-16  Paul Eggert  <eggert@twinsun.com>
34481
34482         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
34483         library.  It's not correct, as some older glibcs are buggy.
34484         fnmatch wasn't fixed until glibc 2.2.
34485
34486         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
34487         special shell magic here.
34488
34489 2001-09-16  Jim Meyering  <meyering@lucent.com>
34490
34491         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
34492         * m4/jm-macros.m4: Require it.
34493
34494 2001-09-16  Jim Meyering  <meyering@lucent.com>
34495
34496         * lib/mkdir.c: New file.
34497
34498 2001-09-15  Jim Meyering  <meyering@lucent.com>
34499
34500         * m4/jm-macros.m4: Check for help2man.
34501
34502 2001-09-11  Jim Meyering  <meyering@lucent.com>
34503
34504         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
34505         The body, by Paul Eggert, was moved here from configure.in.
34506         * m4/jm-macros.m4: Require UTILS_HOST_OS.
34507
34508 2001-09-04  Paul Eggert  <eggert@twinsun.com>
34509
34510         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
34511         (jm_PREREQ): Use it.
34512
34513 2001-09-04  Paul Eggert  <eggert@twinsun.com>
34514
34515         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
34516         Use ssize_t, not int, to store result of readlink.
34517         Check for ssize_t overflow as well as size_t overflow,
34518         as POSIX says the result of readlink is implementation-defined
34519         when ssize_t overflows.
34520         Remove unnecessary cast to char*.
34521         Use free+malloc instead of realloc, as the storage doesn't need
34522         to be preserved and it's clearer and can be more efficient that way.
34523         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
34524         * lib/xreadlink.h (xreadlink): Update prototype.
34525
34526 2001-09-04  Paul Eggert  <eggert@twinsun.com>
34527
34528         * lib/xgetcwd.c: Revert some of the previous change; intead,
34529         fix the HAVE_GETCWD_NULL code to behave more like the
34530         !HAVE_GETCWD_NULL code used to.
34531
34532         Include "xalloc.h".
34533         (xgetcwd): Do not return NULL when memory is exhausted; instead,
34534         invoke xalloc_die.
34535
34536 2001-09-03  Paul Eggert  <eggert@twinsun.com>
34537
34538         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
34539         sys/param.h, as pathmax.h includes them.
34540
34541 2001-09-03  Paul Eggert  <eggert@twinsun.com>
34542
34543         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
34544         (jm_PREREQ_XGETCWD): New macro.
34545
34546         * m4/getcwd.m4: New file.
34547
34548 2001-09-03  Paul Eggert  <eggert@twinsun.com>
34549
34550         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
34551         like the HAVE_GETCWD_NULL code.
34552         Include pathmax.h if not HAVE_GETCWD.
34553         Do not include xalloc.h.
34554         (INITIAL_BUFFER_SIZE): New symbol.
34555         Do not use xmalloc / xrealloc, since the caller is responsible for
34556         handling errors.  Preserve errno around `free' during failure.
34557         Do not overrun buffer when using getwd.
34558
34559 2001-09-03  Paul Eggert  <eggert@twinsun.com>
34560
34561         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
34562         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
34563         getcwd (NULL, 0).
34564
34565 2001-09-03  Paul Eggert  <eggert@twinsun.com>
34566
34567         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
34568         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
34569         spotted by Jim Meyering.
34570
34571 2001-09-03  Jim Meyering  <meyering@lucent.com>
34572
34573         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
34574         failure.
34575
34576 2001-09-02  Jim Meyering  <meyering@lucent.com>
34577
34578         * lib/error.c: Update from GNU libc.
34579
34580 2001-09-01  Jim Meyering  <meyering@lucent.com>
34581
34582         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
34583         Used by df.
34584
34585 2001-09-01  Jim Meyering  <meyering@lucent.com>
34586
34587         * lib/xreadlink.c: New file.
34588         * lib/xreadlink.h: New file.
34589         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
34590         xreadlink.h.
34591
34592         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
34593         doesn't conflict with sparc Solaris 7's definition in
34594         /usr/include/sys/int_types.h.
34595
34596         * lib/exclude.c: Use `""', not `<>' to #include non-system header
34597         files.
34598         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
34599         and strncasecmp as r-values.  Unixware didn't have declarations.
34600
34601 2001-08-31  Paul Eggert  <eggert@twinsun.com>
34602
34603         * lib/xstrtol.h: Add copyright notice.
34604         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
34605         LONGINT_INVALID_SUFFIX_CHAR.
34606
34607 2001-08-31  Paul Eggert  <eggert@twinsun.com>
34608
34609         * lib/xstrtol.c (strtoimax): New decl.
34610
34611 2001-08-31  Paul Eggert  <eggert@twinsun.com>
34612
34613         * lib/xgetcwd.c: Don't include pathmax.h.
34614         Include stdlib.h and unistd.h if available.
34615         Include xalloc.h.
34616         (xmalloc, xstrdup, free): Remove decls.
34617         (xgetcwd): Don't assume sizes fit in unsigned.
34618         Check for overflow when computing sizes.
34619         Simplify reallocation code.
34620
34621 2001-08-31  Paul Eggert  <eggert@twinsun.com>
34622
34623         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
34624         a directory's st_size can have an arbitrary value, so the old
34625         usage could waste an arbitrary amount of memory.  All uses
34626         changed.
34627         * lib/savedir.h: Update prototype.
34628
34629 2001-08-31  Paul Eggert  <eggert@twinsun.com>
34630
34631         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
34632
34633         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
34634         old strtoimax.c.
34635
34636         Also, make the following further changes to make this file's
34637         configuration more similar to that of strtol.c:
34638         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
34639         (strtoumax, uintmax_t, strtoull, strtol): Remove.
34640         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
34641         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
34642         changed to signed values.
34643
34644         And make the following changes as well:
34645         Fix copyright notice, as 1999 was missing.
34646         (verify): New macro.
34647         (strtoimax): Check sizes at compile-time, not run-time.
34648         Prefer strtol to strtoll if both work.
34649         (main): Remove; it was not that useful and was a pain to maintain.
34650
34651         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
34652
34653 2001-08-31  Jim Meyering  <meyering@lucent.com>
34654
34655         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
34656         Use an initial, malloc'd, buffer of length 128 rather than
34657         a statically allocated one of length 1024.
34658
34659 2001-08-30  Paul Eggert  <eggert@twinsun.com>
34660
34661         Simplify code, partly by assuming autoconf 2.52 semantics.
34662
34663         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
34664
34665         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
34666         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
34667         All uses removed.
34668         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
34669         Move AC_REQUIRE to next-to-top level, to avoid confusion.
34670         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
34671         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
34672         jm_AC_HEADER_INTTYPES_H.
34673         * m4/jm-macros.m4 (jm_MACROS): Likewise.
34674
34675         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
34676
34677         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
34678         Quote first arg of AC_DEFUN.
34679         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
34680         since they are needed to parse the include file even if we need
34681         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
34682         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
34683         but with opposite signedness.
34684
34685 2001-08-30  Paul Eggert  <eggert@twinsun.com>
34686
34687         Merge 'exclude' changes from tar 1.13.22.
34688         This fixes one or two unlikely storage allocation overflow bugs,
34689         but doesn't change user-visible behavior otherwise.
34690
34691 2001-08-30  Paul Eggert  <eggert@twinsun.com>
34692
34693         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
34694         (jm_PREREQ_EXCLUDE): New macro.
34695
34696 2001-08-30  Paul Eggert  <eggert@twinsun.com>
34697
34698         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
34699         tm to be declared.
34700
34701 2001-08-30  Paul Eggert  <eggert@twinsun.com>
34702
34703         * lib/hash.c: Remove '2001' from copyright notice.
34704
34705 2001-08-30  Paul Eggert  <eggert@twinsun.com>
34706
34707         * lib/full-write.h: New file.
34708         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
34709         * lib/full-write.c: Correct credits, as cccp.c no longer
34710         exists and anyway it was so heavily changed from the old cccp
34711         code as to be unrecognizable.  Include full-write.h.
34712         (full_write) Return size_t, with short writes meaning failure.
34713         All callers changed.  This fixes a bug with large buffers
34714         on 64-bit hosts.
34715         * lib/utime.c: Include full-write.h.
34716
34717 2001-08-30  Paul Eggert  <eggert@twinsun.com>
34718
34719         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
34720         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
34721         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
34722         Include if available.
34723         (<xalloc.h>): Include
34724         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
34725         (verify): New macro.  Use it to verify that EXCLUDE macros do not
34726         collide with FNM macros.
34727         (struct patopts): New struct.
34728         (struct exclude): Use it, as exclude patterns now come with options.
34729         (new_exclude): Support above changes.
34730         (new_exclude, add_exclude_file):
34731         Initial size must now be a power of two to simplify overflow checking.
34732         (free_exclude, fnmatch_no_wildcards): New function.
34733         (excluded_filename): No longer requires options arg, as the options
34734         are determined by add_exclude.  Now returns bool, not int.
34735         (excluded_filename, add_exclude):
34736         Add support for the fancy new exclusion options.
34737         (add_exclude, add_exclude_file): Now takes int options arg.
34738         Check for arithmetic overflow when computing sizes.
34739         (add_exclude_file): xrealloc might modify errno, so don't
34740         realloc until after errno might be used.
34741
34742         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
34743         New macros.
34744         (free_exclude): New decl.
34745         (add_exclude, add_exclude_file): Now takes int options arg.
34746         (excluded_filename): No longer requires options arg, as the options
34747         are determined by add_exclude.  Now returns bool, not int.
34748
34749 2001-08-30  Paul Eggert  <eggert@twinsun.com>
34750
34751         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
34752
34753 2001-08-27  Jim Meyering  <meyering@lucent.com>
34754
34755         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
34756
34757         * lib/version-etc.c (N_): Remove definition.
34758         Revert most of last change.
34759         Instead, simply don't mark the `Copyright...' string for translation.
34760         Based on advice from Paul Eggert.
34761
34762         * lib/strtoxmax.c: Tweak comment.
34763
34764 2001-08-26  Jim Meyering  <meyering@lucent.com>
34765
34766         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
34767
34768         * m4/xstrtoimax.m4: New file.
34769         * m4/xstrtoumax.m4: Add comments explaining why we
34770         AC_REPLACE_FUNCS(strtol).
34771
34772 2001-08-26  Jim Meyering  <meyering@lucent.com>
34773
34774         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
34775         of copyright with `%s' so translators don't get an untranslated
34776         message in 2002.
34777         (COPYRIGHT_YEAR): Define.
34778         (version_etc): Use fprintf rather than fputs.
34779         Suggestion from Ulrich Drepper.
34780
34781         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
34782
34783         * lib/strtoll.c: New file, from GNU libc.
34784         * lib/xstrtoimax.c: New file.
34785
34786         * lib/xstrtol.h: Add xstrtoimax.
34787         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
34788         * lib/strtoimax.c: New file.  Likewise, but first define
34789         STRTOUXMAX_SIGNED.
34790
34791         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
34792         ...
34793         * lib/strtoxmax.c: ... then renamed to this.
34794
34795 2001-08-18  Paul Eggert  <eggert@twinsun.com>
34796
34797         * m4/inttypes.m4: Add AC_PREREQ(2.13).
34798         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
34799         (jm_AC_TYPE_INTMAX_T): New macro.
34800         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
34801
34802         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
34803
34804         * m4/longlong.m4: Renamed from ulonglong.m4.
34805         * m4/inttypes.m4: Renamed from inttypes_h.m4.
34806         * m4/uintmax_t.m4: Removed.
34807
34808 2001-08-13  Paul Eggert  <eggert@twinsun.com>
34809
34810         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
34811         Port to Solaris 8, where 'sed' requires a space after the 'r'
34812         command, and where sh dislikes "$/".  Clean up the spacing a bit.
34813         Redirect output to $tmp just once.
34814
34815 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
34816
34817         * lib/addext.c (<errno.h>): Include.
34818         (errno): Declare if not defined.
34819         (addext): Work correctly when pathconf returns -1 and leaves
34820         errno alone because there is no limit.  Also, work even if
34821         pathconf returns a value greater than SIZE_MAX.
34822
34823 2001-08-12  Jim Meyering  <meyering@lucent.com>
34824
34825         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
34826         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
34827         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
34828         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
34829         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
34830         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
34831         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
34832         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
34833         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
34834         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
34835         utime.m4, utimes.m4, xstrtoumax.m4:
34836         Quote the first argument in each use of AC_DEFUN.
34837
34838 2001-08-12  Jim Meyering  <meyering@lucent.com>
34839
34840         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
34841         Simply `return getcwd (NULL, 0);'.
34842         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
34843         Use 1300 as initial value for length, not PATH_MAX.
34844
34845         * lib/pathmax.h: Clean up cpp syntax.
34846
34847 2001-08-12  Jim Meyering  <meyering@lucent.com>
34848
34849         * lib/gettimeofday.c: New file.
34850         * lib/gtod.h: New file.
34851         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
34852
34853 2001-08-05  Jim Meyering  <meyering@lucent.com>
34854
34855         * m4/jm-macros.m4: Require autoconf-2.52.
34856
34857 2001-08-04  Jim Meyering  <meyering@lucent.com>
34858
34859         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
34860         stmt, to get in sync with glibc.
34861
34862 2001-08-03  Paul Eggert  <eggert@twinsun.com>
34863
34864         The following changes are from gettext 0.10.39 as maintained by
34865         Bruno Haible.
34866
34867         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
34868         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
34869         with inverted sense.  All uses changed.
34870
34871         * lib/mbswidth.c: Don't include <limits.h>.
34872         Include <stdlib.h> and <string.h> unconditionally.
34873         (iswcntrl, mbsinit, ISCNTRL): New macros.
34874         (mbsnwidth): Use K&R style function declarations.
34875         Don't bother checking for MB_LEN_MAX == 1, since the compiler
34876         can optimize it when MB_CUR_MAX == 1.
34877         The width of control characters is zero, not 1.
34878
34879 2001-08-03  Paul Eggert  <eggert@twinsun.com>
34880
34881         The following changes are from gettext 0.10.39 as maintained by
34882         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
34883
34884         * m4/codeset.m4: Upgrade to serial AM1.
34885         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
34886         all uses changed.  Quote first arg of AC_DEFUN.
34887         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
34888
34889         * m4/iconv.m4: Upgrade to serial AM2.
34890         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
34891         Add --with-libconv-prefix.
34892         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
34893         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
34894         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
34895         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
34896         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
34897
34898         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
34899         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
34900         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
34901         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
34902         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
34903         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
34904         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
34905         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
34906         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
34907
34908         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
34909         string.h any more.
34910
34911         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
34912         not the default value.
34913
34914         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
34915         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
34916         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
34917         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
34918         Also check for iswcntrl, used for wcwidth fallback.
34919         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
34920         to Autoconf 2.13.
34921
34922 2001-08-03  Jim Meyering  <meyering@lucent.com>
34923
34924         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
34925         as it was in the original.  Reported by Paul Eggert.
34926
34927 2001-07-16  Jim Meyering  <meyering@lucent.com>
34928
34929         * m4/gettimeofday.m4: New file.
34930         Prompted by a report from Bernhard Baehr.
34931
34932 2001-07-15  Jim Meyering  <meyering@lucent.com>
34933
34934         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
34935         stuff. Now it's in ../Makefile.cfg.
34936
34937 2001-07-15  Jim Meyering  <meyering@lucent.com>
34938
34939         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
34940         (BUILT_SOURCES): Add unlocked-io.h.
34941         (io_functions): Define.
34942         (unlocked-io.h): New rule.
34943         (DISTCLEANFILES): Add unlocked-io.h.
34944         (all-local): Depend on unlocked-io.h, to ensure it is created.
34945
34946         * lib/unlocked-io.hin: New file
34947
34948         * lib/regex.c: Update from glibc.
34949
34950 2001-07-05  Jim Meyering  <meyering@lucent.com>
34951
34952         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
34953         recommendation.
34954         (libfetish_a_SOURCES): Put all .h files here instead.
34955         Remove a thus-exposed (better checks in automake) duplicate and
34956         two unnecessary .h files.
34957
34958 2001-07-04  Jim Meyering  <meyering@lucent.com>
34959
34960         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
34961         that generates jm-glibc-io.m4 so that it doesn't trigger any make
34962         distcheck failure.
34963
34964 2001-07-02  Jim Meyering  <meyering@lucent.com>
34965
34966         The following changes were prompted by suggestions from Bruno Haible.
34967
34968         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
34969         is now generated.
34970         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
34971         definition of EXTRA_DIST.
34972         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
34973         ensure that the generated file is created/updated whenever the list
34974         of $(unlocked_functions) is changed.
34975         (jm-glibc-io.m4): New rule.
34976         (unlocked-io.h): New rule -- currently unused.
34977
34978 2001-06-24  Jim Meyering  <meyering@lucent.com>
34979
34980         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
34981         unmatched right bracket, rather than kludging it with an extra,
34982         falsely-matching quote in a comment.  Patch by Akim Demaille.
34983
34984 2001-06-11  Jim Meyering  <meyering@lucent.com>
34985
34986         * lib/regex.c: Update from GNU libc.
34987
34988 2001-05-27  Jim Meyering  <meyering@lucent.com>
34989
34990         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
34991         Check for ut_type in struct utmp.
34992
34993 2001-05-27  Jim Meyering  <meyering@lucent.com>
34994
34995         * lib/readutmp.h (UT_TYPE): Define.
34996
34997 2001-05-24  Jim Meyering  <meyering@lucent.com>
34998
34999         * lib/argmatch.c: Include "quote.h".
35000         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
35001         quote function.  Reported by Göran Uddeborg.
35002
35003 2001-05-22  Jim Meyering  <meyering@lucent.com>
35004
35005         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
35006         now that we use the package-supplied version unconditionally.
35007         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
35008
35009 2001-05-21  Jim Meyering  <meyering@lucent.com>
35010
35011         * m4/regex.m4: Change a couple backticks to single quotes to avoid
35012         shell syntax errors.
35013
35014 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
35015
35016         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
35017
35018 2001-05-20  Paul Eggert  <eggert@twinsun.com>
35019
35020         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
35021         Don't bother to check library strftime, since
35022         we'll be using our own my_strftime function anyway.
35023         Define my_strftime instead of strftime.
35024
35025 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
35026
35027         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
35028         which is not yet declared.
35029
35030 2001-05-15  Jim Meyering  <meyering@lucent.com>
35031
35032         * m4/regex.m4: Use proper quoting so brackets appear in the test
35033         program.
35034         Reported by, and with help from, Bruno Haible.
35035
35036 2001-05-13  Jim Meyering  <meyering@lucent.com>
35037
35038         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
35039         undefined.
35040
35041 2001-05-11  Paul Eggert  <eggert@twinsun.com>
35042
35043         dirname code cleanup.  base_name now behaves more compatibly
35044         with POSIX basename when given file names that have trailing
35045         slashes, and similarly for dir_name.  Add new primitives
35046         base_len and dir_len.  Put the directory-name-related decls
35047         into dirname.h.
35048
35049         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
35050         * lib/backupfile.c (base_name): Likewise.
35051         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
35052         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
35053         * lib/makepath.c (strip_trailing_slashes): Likewise.
35054         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
35055         ISSLASH): Likewise.
35056         * lib/rename.c (strip_trailing_slashes): Likewise.
35057         * lib/same.c (base_name): Likewise.
35058         * lib/stripslash.c (ISSLASH): Likewise.
35059
35060         * lib/addext.c: Include <dirname.h> after size_t is defined.
35061         * lib/backupfile.c: Likewise.
35062
35063         * lib/addext.c (addext): Use base_len to trim redundant
35064         trailing slashes instead of doing it ourselves.
35065         But do not trim the last slash if it is not redundant.
35066
35067         * lib/backupfile.c (find_backup_file_name,
35068         max_backup_version): Use base_len instead of rolling it ourselves.
35069         Handle the case of "" and (on DOS) "C:" correctly.
35070
35071         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
35072         needed. Include <string.h>, <dirname.h>.
35073         (base_name): Allow file names ending in slashes, other than names
35074         that are all slashes.  In this case, return the basename followed
35075         by the slashes.  This is more general, and can be used in places
35076         where the original base_name purposely had an assertion failure.
35077         (base_len): New function.
35078
35079         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
35080         Do not include <assert.h>; no longer needed.
35081         Include xalloc.h.
35082         (memrchr): Remove decl.
35083         (dir_name_r): Remove.
35084         (dir_len): Renamed from dirlen.  All callers changed.
35085         Rewrite in terms of base_name, for simplicity and consistency.
35086         (dir_name): Never return NULL.  All callers changed.
35087         Do not include <stdlib.h> in test program; no longer needed.
35088         return 0; is fine for test program.
35089
35090         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
35091         New macros.
35092         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
35093
35094         * lib/path-concat.c (path_concat): Use base_len to compute
35095         base length, not strlen; this means we cannot rely on memcpy
35096         to null-terminate.
35097
35098         * lib/same.c (STREQ): Remove.
35099         (same_name): Handle the case where the basename ends in trailing '/'.
35100
35101         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
35102         a slash was stripped.  Do not strip the last slash after a
35103         file system prefix.
35104
35105 2001-05-11  Paul Eggert  <eggert@twinsun.com>
35106
35107         * lib/Makefile.am (libfetish_a_SOURCES):
35108         Add strftime.c, since we now compile it on all hosts.
35109
35110         * lib/strftime.c (my_strftime):
35111         Define to nstrftime if emacs, but only if my_strftime is not defined.
35112         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
35113         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
35114         Add one more extra argument: a nanoseconds value.
35115         All uses changed.
35116         (ns): New macro.
35117         (my_strftime function): Add %N format.
35118         (emacs_strftimeu): Renamed from emacs_strftime,
35119         with extra ut argument.
35120
35121 2001-05-09  Paul Eggert  <eggert@twinsun.com>
35122
35123         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
35124
35125 2001-04-21  Jim Meyering  <meyering@lucent.com>
35126
35127         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
35128         doesn't interfere.
35129
35130 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
35131
35132         * m4/ftruncate.m4: Check for chsize.
35133         Link with ftruncate.o unconditionally if ftruncate is missing.
35134         This was required when cross-compiling to i586-mingw32msvc.
35135
35136 2001-04-08  Jim Meyering  <meyering@lucent.com>
35137
35138         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
35139         recomputed; that's necessary when the offset spans a DST transition.
35140         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
35141
35142 2001-04-02  Jim Meyering  <meyering@lucent.com>
35143
35144         * lib/regex.h, regex.c: Update from GNU libc.
35145
35146 2001-03-24  Jim Meyering  <meyering@lucent.com>
35147
35148         * m4/jm-macros.m4: Require autoconf-2.49d.
35149
35150 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
35151
35152         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
35153
35154 2001-03-19  Paul Eggert  <eggert@twinsun.com>
35155
35156         * lib/version-etc.c (version_etc_copyright): Update to 2001.
35157
35158 2001-03-17  Jim Meyering  <meyering@lucent.com>
35159
35160         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
35161         now that the version in autoconf is equivalent.
35162         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
35163
35164         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
35165         Suggestion from Akim Demaille.
35166
35167         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
35168         (jm_PREREQ_TEMPNAME): New function.
35169
35170 2001-03-16  Paul Eggert  <eggert@twinsun.com>
35171
35172         * lib/tempname.c (uint64_t): Define to uintmax_t if
35173         not defined, and if UINT64_MAX is not defined.
35174         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
35175         Reported by John David Anglin.
35176
35177 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
35178
35179         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
35180         resolve alias if codeset is empty.
35181         * lib/config.charset (BeOS): Use wildcard syntax.
35182
35183 2001-03-13  Jim Meyering  <meyering@lucent.com>
35184
35185         * lib/path-concat.c (path_concat)
35186         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
35187         concatenating e.g., `C:' and `foo'.
35188         From Bruno Haible.
35189
35190 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
35191
35192         * lib/localcharset.c (locale_charset): Don't use
35193         setlocale(LC_CTYPE,NULL). Don't return NULL.
35194         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
35195
35196 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
35197
35198         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
35199         support for DOS/DJGPP.
35200
35201 2001-03-01  Paul Eggert  <eggert@twinsun.com>
35202
35203         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
35204         lacks mkstemp.  Compile our own tempname.c if we compile our own
35205         mkstemp.c, as mkstemp relies on tempname.
35206
35207 2001-03-01  Jim Meyering  <meyering@lucent.com>
35208
35209         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
35210         AH_VERBATIM really does output its argument verbatim.
35211
35212 2001-02-28  Paul Eggert  <eggert@twinsun.com>
35213
35214         * lib/Makefile.am (libfetish_a_SOURCES):
35215         Add dup-safer.c, fopen-safer.c.
35216         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
35217
35218         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
35219         * lib/unistd-safer.h: New files.
35220
35221 2001-02-25  Paul Eggert  <eggert@twinsun.com>
35222
35223         The mkstemp replacement is taken from glibc 2.2.2, with some
35224         portability fixes for use outside glibc, as follows:
35225
35226         * lib/tempname.c (struct_stat64): New macro.
35227         (direxists, __gen_tempname): Use it.
35228         This avoids a portability problem with Solaris 8.
35229
35230         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
35231         (<stddef.h>, <stdint.h>, <string.h>):
35232         Include only if STDC_HEADERS || _LIBC.
35233         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
35234         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
35235         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
35236         (__set_errno): Define this macro if <errno.h> doesn't.
35237         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
35238         Define these macros if <stdio.h> doesn't.
35239         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
35240         Define these macros if <sys/stat.h>
35241         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
35242         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
35243         __xstat64): Define if not _LIBC.
35244         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
35245         (__gen_tempname): Invoke gettimeofday only if
35246         HAVE_GETTIMEOFDAY || _LIBC;
35247         otherwise, fall back on plain "time".
35248         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
35249
35250         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
35251
35252         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
35253
35254 2001-02-18  Paul Eggert  <eggert@twinsun.com>
35255
35256         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
35257
35258 2001-02-17  Paul Eggert  <eggert@twinsun.com>
35259
35260         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
35261         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
35262         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
35263         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
35264
35265 2001-02-17  Paul Eggert  <eggert@twinsun.com>
35266
35267         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
35268         Remove workaround macros for hosts that have mbrtowc but not
35269         mbstate_t, as we now insist on proper declarations for both
35270         before using mbrtowc.
35271
35272 2001-02-17  Jim Meyering  <meyering@lucent.com>
35273
35274         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
35275         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
35276         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
35277         UnixWare 7.1.1.
35278
35279         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
35280         rather than AC_CACHE_VAL.
35281
35282 2001-02-17  Jim Meyering  <meyering@lucent.com>
35283
35284         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
35285         around included file name.
35286
35287         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
35288
35289         * lib/strftime.c: Update from GNU libc (the only changes were to
35290         comments).
35291
35292 2001-02-17  Jim Meyering  <meyering@lucent.com>
35293
35294         * lib/regex.c: Update from libc.
35295
35296 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
35297
35298         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
35299         clash.
35300
35301 2001-02-16  Paul Eggert  <eggert@twinsun.com>
35302
35303         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
35304         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
35305         Reported by Mark Hounschell via Paul Eggert.
35306
35307 2001-02-07  Jim Meyering  <meyering@lucent.com>
35308
35309         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
35310
35311 2001-02-05  Jim Meyering  <meyering@lucent.com>
35312
35313         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
35314         it includes the patch required for `large file' support with at least
35315         HP-UX's 10.20 /bin/cc.
35316
35317 2001-02-03  Jim Meyering  <meyering@lucent.com>
35318
35319         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
35320         AS_IF, now that it works once again (mysteriously).
35321         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
35322
35323 2001-01-30  Jim Meyering  <meyering@lucent.com>
35324
35325         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
35326         * m4/chown.m4: Rename conftestchown to conftest.chown.
35327         * m4/rename.m4: s/conftestdir/conftest.d1/ and
35328         s/conftestdir2/conftest.d2/.
35329         * m4/utimes.m4: s/conftestdata/conftest.data/
35330         Inspired by Pavel Roskin's change in autoconf.
35331
35332 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
35333
35334         * lib/config.charset: Update for FreeBSD 4.2.
35335
35336 2001-01-27  Jim Meyering  <meyering@lucent.com>
35337
35338         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
35339         a use of AS_IF.
35340         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
35341
35342 2001-01-26  Jim Meyering  <meyering@lucent.com>
35343
35344         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
35345         quotearg.c includes it.
35346
35347 2001-01-26  Jim Meyering  <meyering@lucent.com>
35348
35349         * lib/quotearg.c: Include stddef.h.
35350         * lib/quote.c: Include stddef.h.
35351         Reported by Axel Kittenberger.
35352
35353         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
35354         line in double quotes so that it evokes a better diagnostic.
35355         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
35356         Reported by Axel Kittenberger.
35357
35358 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
35359
35360         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
35361         as if it was a `charset'.
35362
35363 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
35364
35365         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
35366         has const.
35367
35368 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
35369
35370         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
35371         to avoid a warning.  Add back 'const' to inptr.
35372
35373 2001-01-20  Jim Meyering  <meyering@lucent.com>
35374
35375         Be sure that headers are checked before used in code compiled
35376         for the type checks.
35377         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
35378         In place of that, invoke jm_CHECK_ALL_TYPES.
35379         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
35380         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
35381         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
35382         The check for ssize_t was mistakenly run before the test for unistd.h.
35383
35384         The configure-time check for stdbool.h was missing.
35385         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
35386         (jm_PREREQ_HASH): New function.
35387
35388 2001-01-17  Jim Meyering  <meyering@lucent.com>
35389
35390         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
35391         for autoconf-2.49c.
35392         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
35393
35394 2001-01-16  Jim Meyering  <meyering@lucent.com>
35395
35396         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
35397         From Bruno Haible.
35398
35399 2001-01-14  Jim Meyering  <meyering@lucent.com>
35400
35401         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
35402         foo and bar.  Create conftestdir/ in the script, not in the C code.
35403         Remove directories in the script, not in the C code.
35404         Remove conftestdir{,2} before trying to create the directory.
35405         Make the entire configure script fail if the mkdir fails.
35406
35407 2001-01-14  Jim Meyering  <meyering@lucent.com>
35408
35409         * lib/rename.c: New file.  From Volker Borchert.
35410         Include stdlib.h, string.h or strings.h, and xalloc.h.
35411         Use strip_trailing_slashes rather than open-coding it.
35412
35413 2001-01-03  Paul Eggert  <eggert@twinsun.com>
35414
35415         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
35416
35417 2001-01-03  Jim Meyering  <meyering@lucent.com>
35418
35419         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
35420         of local `inptr' to avoid warning with some system declarations of
35421         iconv.
35422
35423 2001-01-02  Volker Borchert  <bt@teknon.de>
35424
35425         * m4/rename.m4: New file.
35426         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
35427
35428 2001-01-01  Jim Meyering  <meyering@lucent.com>
35429
35430         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
35431         even on systems with utmpx.h.  It's necessary for the declaration of
35432         utmp's ut_user member.  Reported by Andreas Jaeger.
35433
35434         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
35435         available. They are required for the declarations of getgrgid and
35436         getpwuid resp.
35437         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
35438         Reported by Andreas Jaeger.
35439
35440 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
35441
35442         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
35443         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
35444         so `make install' also works in VPATH builds.
35445
35446 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
35447
35448         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
35449         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
35450         can be used in subdirectories.
35451
35452 2000-12-29  Paul Eggert  <eggert@twinsun.com>
35453
35454         * lib/modechange.c: Do not assume that mode_t uses the
35455         traditional octal encoding.  E.g. "chmod 1 FOO" should set
35456         the other-execute bit of FOO even if S_IXOTH != 1.
35457
35458         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
35459         WOTH, XOTH, ALLM): New macros.
35460         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
35461          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
35462         Use them.
35463         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
35464         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
35465         (mode_compile):
35466         No need to use uintmax_t; unsigned long is long enough.
35467         Don't bother to get suffix since we don't use it.
35468
35469 2000-12-26  Jim Meyering  <meyering@lucent.com>
35470
35471         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
35472         better with autoheader.
35473
35474 2000-12-24  Jim Meyering  <meyering@lucent.com>
35475
35476         * lib/hash.c (is_prime): Return explicit boolean values.
35477         (hash_get_first): Return NULL to appease Irix5.6's 89.
35478         Reported by Nelson Beebe.
35479
35480 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
35481
35482         * lib/localcharset.c (locale_charset): Add support for Win32.
35483
35484 2000-12-18  Paul Eggert  <eggert@twinsun.com>
35485
35486         * lib/physmem.h, lib/physmem.c: New files.
35487
35488         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
35489         (noinst_HEADERS): Add physmem.h.
35490
35491         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
35492         't' for compatibility with Solaris 8 sort.
35493
35494 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
35495
35496         * lib/config.charset: Add support for BeOS.
35497
35498 2000-12-17  Jim Meyering  <meyering@lucent.com>
35499
35500         * m4/dos.m4 (jm_AC_DOS): New file and macro.
35501         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
35502
35503 2000-12-16  Jim Meyering  <meyering@lucent.com>
35504
35505         This bug had a serious impact on chown: `chown N:M FILE' (for integer
35506         N and M) would have treated it like `chown N:N FILE'.
35507
35508         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
35509
35510 2000-12-16  Jim Meyering  <meyering@lucent.com>
35511
35512         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
35513         SHELLS_FILE to a file name that's useful on djgpp systems.
35514         Include stdlib.h.
35515         (ADDITIONAL_DEFAULT_SHELLS): Define.
35516         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
35517         Based mostly on a patch from Prashant TR.
35518
35519 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
35520
35521         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
35522         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
35523         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
35524
35525 2000-12-08  Andreas Schwab  <schwab@suse.de>
35526
35527         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
35528         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
35529
35530 2000-12-07  Jim Meyering  <meyering@lucent.com>
35531
35532         * lib/stripslash.c (ISSLASH): Define.
35533         (strip_trailing_slashes): Use ISSLASH rather than comparing against
35534         `/'.
35535         From Prashant TR.
35536
35537         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
35538         (dir_name_r): Declare this function as static.
35539         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
35540         manifest itself on a name containing a mix of slashes and
35541         backslashes.
35542         Make this function work with names starting with a DOS-style
35543         drive letter and colon prefix.
35544         (dir_name): Append `.' if necessary.
35545         Based mostly on patches from Prashant TR and Eli Zaretskii.
35546
35547         * lib/dirname.h (dir_name_r): Remove prototype.
35548
35549 2000-12-06  Paul Eggert  <eggert@twinsun.com>
35550
35551         * m4/off_t-format.m4: Remove this file.
35552         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
35553
35554 2000-12-06  Jim Meyering  <meyering@lucent.com>
35555
35556         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
35557         replacement strtoull, we may well need the replacement strtoul, too.
35558         Check for declarations of strtoul and strtoull.
35559         Check for strtol.  Mainly as a cue to cause automake to include
35560         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
35561         Check for limits.h -- strtol.c needs it.
35562
35563 2000-12-05  Jim Meyering  <meyering@lucent.com>
35564
35565         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
35566
35567 2000-12-04  Jim Meyering  <meyering@lucent.com>
35568
35569         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
35570         Also include memory.h, stdlib.h, unistd.h if appropriate.
35571         Reported by Andreas Jaeger (conflicting declaration of malloc).
35572
35573 2000-12-02  Jim Meyering  <meyering@lucent.com>
35574
35575         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
35576         * m4/jm-macros.m4 (jm_MACROS): require it.
35577
35578 2000-12-02  Jim Meyering  <meyering@lucent.com>
35579
35580         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
35581
35582 2000-12-01  Paul Eggert  <eggert@twinsun.com>
35583
35584         * lib/memrchr.c: Include <config.h> before any system include file.
35585
35586 2000-11-30  Jim Meyering  <meyering@lucent.com>
35587
35588         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
35589
35590 2000-11-30  Jim Meyering  <meyering@lucent.com>
35591
35592         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
35593
35594 2000-11-29  Paul Eggert  <eggert@twinsun.com>
35595
35596         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
35597
35598 2000-11-26  Jim Meyering  <meyering@lucent.com>
35599
35600         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
35601
35602 2000-11-22  Paul Eggert  <eggert@twinsun.com>
35603
35604         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
35605         size of (size_t) -1; it's not portable.
35606
35607 2000-11-17  Jim Meyering  <meyering@lucent.com>
35608
35609         * lib/strstr.c: Update from GNU libc.
35610
35611 2000-11-17  Akim Demaille  <akim@epita.fr>
35612
35613         * lib/obstack.h: Formatting changes.
35614         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
35615         prevent type checking.
35616         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
35617         cast the value to (void *): assigning a `foo *' to a `void *'
35618         variable is valid.
35619         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
35620
35621 2000-11-16  Jim Meyering  <meyering@lucent.com>
35622
35623         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
35624
35625 2000-11-11  Jim Meyering  <meyering@lucent.com>
35626
35627         * lib/error.c: Add a couple #includes, merging from GNU libc version.
35628
35629 2000-11-10  Jim Meyering  <meyering@lucent.com>
35630
35631         * lib/obstack.h: Update from GNU libc.
35632         * lib/obstack.c: Likewise.
35633
35634 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
35635
35636         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
35637
35638 2000-11-06  Paul Eggert  <eggert@twinsun.com>
35639
35640         * lib/getusershell.c (setusershell): Use rewind rather than
35641         fseek/fseeko, to avoid configuration hassles with fseeko.
35642         Don't bother opening SHELLS_FILE if shellstream is NULL;
35643         it's not necessary.
35644
35645 2000-11-05  Jim Meyering  <meyering@lucent.com>
35646
35647         * lib/makepath.h (make_dir): Declare.
35648         * lib/makepath.c (make_dir): Remove `static' attribute.
35649         Tweak a comment.
35650
35651 2000-11-04  Jim Meyering  <meyering@lucent.com>
35652
35653         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
35654
35655 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
35656
35657         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
35658         last one in a bucket, advance to the next bucket.
35659
35660 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
35661
35662         * lib/fnmatch.c: Do not comment out all the code if we are using
35663         the GNU C library, because in some cases we are replacing buggy
35664         code in the GNU C library itself.
35665
35666 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
35667
35668         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
35669         (regex_compile): Catch bogus \(\1\).
35670
35671 2000-10-30  Paul Eggert  <eggert@twinsun.com>
35672
35673         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
35674         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
35675         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
35676
35677 2000-10-30  Paul Eggert  <eggert@twinsun.com>
35678
35679         * lib/error.h, getline.h, modechange.h:
35680         Remove "2000" from Copyright line, as the file hasn't been
35681         changed this year other than in the copyright notice.
35682
35683         * lib/xalloc.h: Add "2000" to Copyright line, as this file
35684         was changed this year.
35685
35686 2000-10-29  Jim Meyering  <meyering@lucent.com>
35687
35688         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
35689         renaming.
35690         * m4/ls-mntd-fs.m4: Likewise
35691
35692 2000-10-29  Jim Meyering  <meyering@lucent.com>
35693
35694         * lib/xstat.in: Fix grammar in comment.
35695
35696 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
35697
35698         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
35699         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
35700         doesn't define __restrict_arr.
35701
35702 2000-10-28  Jim Meyering  <meyering@lucent.com>
35703
35704         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
35705         (jm_PREREQ_MEMCHR): New function.
35706
35707 2000-10-28  Jim Meyering  <meyering@lucent.com>
35708
35709         * lib/memchr.c: Update from libc.
35710         Adjust for portability:
35711         [HAVE_STDLIB_H]: Include stdlib.h.
35712         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
35713         Undef __memchr, too.
35714         [!weak_alias]: Define __memchr to memchr.
35715
35716         * lib/regex.c: Update from libc.
35717         * lib/regex.h: Likewise.
35718         * lib/getopt1.c: Likewise.
35719         * lib/memcmp.c: Likewise.
35720
35721         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
35722         Avoid using fseek, when possible -- it's broken by design.
35723         Patch by Ulrich Drepper.
35724
35725 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
35726
35727         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
35728         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
35729         Giving in to popular pressure to shut up the compiler with casts.
35730
35731 2000-10-26  Jim Meyering  <meyering@lucent.com>
35732
35733         * lib/strftime.c: Update from libc.
35734
35735 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
35736
35737         * regex.c: More `unsigned char' -> `re_char' changes.
35738         Also change several `int' into `re_wchar_t'.
35739         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
35740         (PUSH_FAILURE_POINTER): Don't cast any more.
35741         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
35742         We want GCC to complain, since this piece of code makes
35743         re_match non-reentrant, which *should* be fixed.
35744         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
35745         (EXTEND_BUFFER): Use RETALLOC.
35746         (SET_LIST_BIT): Don't cast.
35747         (re_wchar_t): New type.
35748         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
35749         that those two functions will always properly return.
35750         (IMMEDIATE_QUIT_CHECK): Cast to void.
35751         (analyse_first): Use recursion rather than an explicit stack.
35752         (re_compile_fastmap): Can't fail anymore.
35753         (re_search_2): Don't check re_compile_fastmap for failure.
35754         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
35755         Now also sets the new value (passed in a new argument).
35756         (re_match_2_internal): Use it.
35757         Also, use a new var `reg' of type size_t when looping through regs
35758         rather than reuse the inappropriate `mcnt'.
35759
35760 2000-10-25  Jim Meyering  <meyering@lucent.com>
35761
35762         * lib/obstack.c: Update from libc.
35763
35764 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
35765
35766         * regex.c (regex_compile): Change the way of handling a range from
35767         a char less than 256 to a char not less than 256.
35768
35769 2000-10-24  Andrew Innes  <andrewi@gnu.org>
35770
35771         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
35772         NT-Emacs only.
35773         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
35774         so that re_search functions only quit when callers expect them to.
35775
35776 2000-10-23  Jim Meyering  <meyering@lucent.com>
35777
35778         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
35779         wrong.  That set_locale call must not have any side effects.
35780         From Paul Eggert.
35781
35782 2000-10-22  Jim Meyering  <meyering@lucent.com>
35783
35784         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
35785         [CYCLIC]: Remove now-unused definition.
35786
35787         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
35788         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
35789         Suggestion from Ulrich Drepper.
35790
35791 2000-10-21  Jim Meyering  <meyering@lucent.com>
35792
35793         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
35794         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
35795         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
35796
35797 2000-10-21  Jim Meyering  <meyering@lucent.com>
35798
35799         * lib/dirname.c (memrchr): Declare if necessary.
35800         (dir_name): Remove the restriction that there be no
35801         trailing slashes.  Now, this code skips past them, effectively
35802         ignoring them.
35803         [TEST_DIRNAME] (main): New unit tests.
35804
35805         * lib/memrchr.c: New file from GNU libc.
35806         Undef __memrchr, too.
35807         [!weak_alias]: Define __memrchr to memrchr.
35808         Guard weak_alias use with `#ifdef weak_alias'.
35809
35810 2000-10-21  Jim Meyering  <meyering@lucent.com>
35811
35812         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
35813         (dir_name): Use dir_name_r.
35814         * lib/dirname.h (dir_name_r): Declare it.
35815
35816 2000-10-17  Jim Meyering  <meyering@lucent.com>
35817
35818         * lib/quote.h (PARAMS): Define and use.
35819         Reported by Akim Demaille.
35820
35821         * lib/getopt.c: Update from libc.
35822
35823 2000-10-16  Jim Meyering  <meyering@lucent.com>
35824
35825         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
35826         setlocale.
35827         From Jan Fedak.
35828
35829 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
35830
35831         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
35832
35833 2000-09-25  Jim Meyering  <meyering@lucent.com>
35834
35835         * lib/md5.h (rol): Define (from GnuPG).
35836
35837         * lib/sha.c: Give credit (GnuPG) where due.
35838         (M): Use rol rather than open-coding it.
35839         Add a FIXME comment.
35840
35841 2000-09-21  Jim Meyering  <meyering@lucent.com>
35842
35843         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
35844         Reported by Michael Stone.
35845
35846 2000-09-20  Jim Meyering  <meyering@lucent.com>
35847
35848         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
35849         (noinst_HEADERS): Add sha.h.
35850         Based on code from Scott G. Miller and from GnuPG.
35851
35852 2000-09-18  Jim Meyering  <meyering@lucent.com>
35853
35854         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
35855         LIBS. Otherwise, everyone ends up linking with -lelf for some
35856         configurations.
35857         Reported by Mike Stone.
35858
35859 2000-09-15  Jim Meyering  <meyering@lucent.com>
35860
35861         * lib/regex.c: Update from libc.
35862
35863 2000-09-10  Jim Meyering  <meyering@lucent.com>
35864
35865         * lib/getopt.c (_getopt_internal): Update from glibc.
35866
35867 2000-09-09  Jim Meyering  <meyering@lucent.com>
35868
35869         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
35870         think it should be used as a general replacement for isascii.
35871         * lib/fnmatch.c: Likewise.
35872         * lib/mbswidth.c: Likewise
35873         * lib/regex.c: Likewise.
35874
35875         Don't use atoi.
35876         * lib/userspec.c: Include sys/param.h and limits.h.
35877         Include xstrtol.h.
35878         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
35879         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
35880         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
35881         UID, GID.  Check range.
35882
35883 2000-09-06  Jim Meyering  <meyering@lucent.com>
35884
35885         * lib/getopt.c (_getopt_internal): Update from glibc.
35886
35887 2000-08-30  Jim Meyering  <meyering@lucent.com>
35888
35889         * lib/strftime.c: Merge in changes from GNU libc.
35890
35891 2000-08-26  Jim Meyering  <meyering@lucent.com>
35892
35893         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
35894         * m4/fpending.m4: New file.
35895
35896 2000-08-26  Jim Meyering  <meyering@lucent.com>
35897
35898         * lib/closeout.c: Include "__fpending.h".
35899         (close_stdout_status): Return right away if there's nothing to flush.
35900
35901         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
35902         * lib/__fpending.c: New file.
35903         * lib/__fpending.h: New file.
35904
35905 2000-08-20  Jim Meyering  <meyering@lucent.com>
35906
35907         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
35908         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
35909         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
35910
35911 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
35912
35913         Improve fileutils installation on systems where running
35914         programs (like install) can't be unlinked.
35915         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
35916         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
35917
35918 2000-08-07  Paul Eggert  <eggert@twinsun.com>
35919
35920         Standardize on "memory exhausted" instead of "Memory exhausted"
35921         or "virtual memory exhausted".
35922         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
35923         "virtual memory exhausted".
35924         * lib/same.c (same_name): Invoke xalloc_die instead of printing
35925         our own message.
35926         * lib/userspec.c (parse_user_spec): Likewise.
35927         * lib/bumpalloc.h: comment fix
35928         * lib/same.c, userspec.c: Include xalloc.h.
35929
35930         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
35931         not char *const and pointing to a constant array.
35932         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
35933         (xrealloc): Comment fix.
35934
35935         * lib/userspec.c (parse_user_spec):
35936         Don't translate a message until just before returning,
35937         to avoid unnecessary translation.
35938
35939 2000-08-07  Jim Meyering  <meyering@lucent.com>
35940
35941         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
35942         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
35943         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
35944         getgroups.c, gethostname.c, getopt.h, group-member.c,
35945         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
35946         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
35947         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
35948         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
35949         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
35950         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
35951         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
35952         yesno.c: Back out Copyright date changes for each file with no change
35953         this year.  This eases coordination with other programs using the same
35954         source code modules.  From Paul Eggert.
35955
35956 2000-08-06  Paul Eggert  <eggert@twinsun.com>
35957
35958         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
35959         not char, for compatibility with glibc 2.1.3 strftime.c.
35960
35961 2000-08-03  Greg McGary  <greg@mcgary.org>
35962
35963         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
35964         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
35965         (EXTEND_BUFFER): Use them.
35966
35967 2000-08-01  Jim Meyering  <meyering@lucent.com>
35968
35969         * lib/dirname.c (ISSLASH): Define.
35970         (BACKSLASH_IS_PATH_SEPARATOR): Define.
35971         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
35972         both `\' and `/' may be use as path separators.
35973         Based on a patch from Prashant TR.
35974
35975 2000-07-31  Paul Eggert  <eggert@twinsun.com>
35976
35977         * lib/quotearg.c (quotearg_n_options): Don't make the initial
35978         slot vector a constant, since it might get modified.
35979
35980 2000-07-31  Jim Meyering  <meyering@lucent.com>
35981
35982         * lib/xmalloc.c: Use `virtual memory exhausted', not
35983         `Memory exhausted'.
35984         * lib/obstack.c (print_and_abort): Likewise.
35985
35986 2000-07-30  Paul Eggert  <eggert@twinsun.com>
35987
35988         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
35989         buffer, so that the caller can always quote one small
35990         component of a "memory exhausted" message in slot 0.
35991         From a suggestion by Jim Meyering.
35992
35993 2000-07-30  Jim Meyering  <meyering@lucent.com>
35994
35995         * lib/makepath.c (make_path): Quote the other instance, too.
35996
35997         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
35998         (STATIC_BUF_SIZE): Define.
35999         (quotearg_n_options): Use only statically allocated storage when
36000         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
36001         than STATIC_BUF_SIZE.
36002
36003 2000-07-29  Jim Meyering  <meyering@lucent.com>
36004
36005         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
36006         * lib/dirname.c (dir_name): Likewise.
36007
36008         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
36009         `/'.
36010
36011         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
36012         (dir_name): Assert that there are no trailing slashes.
36013
36014 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
36015
36016         * lib/mbswidth.h (mbswidth): Add a flags argument.
36017         (mbswidth): New declaration.
36018         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
36019         * lib/mbswidth.c (mbswidth): Add a flags argument.
36020         (mbsnwidth): New function.
36021
36022 2000-07-24  Jim Meyering  <meyering@lucent.com>
36023
36024         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
36025
36026 2000-07-23  Paul Eggert  <eggert@twinsun.com>
36027
36028         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
36029
36030 2000-07-23  Paul Eggert  <eggert@twinsun.com>
36031
36032         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
36033         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
36034         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
36035         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
36036         invoke multibyte primitives.
36037
36038 2000-07-23  Paul Eggert  <eggert@twinsun.com>
36039
36040         * lib/quotearg.c:
36041         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
36042         so that mbstate_t is always defined.
36043
36044         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
36045         be 1 in at least one GCC installation, and this configuration
36046         error is likely to be common.  Ignoring MB_LEN_MAX hurts
36047         performance on hosts that have mbrtowc but have only unibyte
36048         locales, but I assume these hosts are rare.
36049
36050 2000-07-23  Paul Eggert  <eggert@twinsun.com>
36051
36052         * lib/mbswidth.c (_XOPEN_SOURCE):
36053         Don't define; this causes problems on Solaris 7.
36054         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
36055
36056 2000-07-23  Jim Meyering  <meyering@lucent.com>
36057
36058         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
36059         too: getgrgid, getpwuid, getuid.
36060
36061 2000-07-23  Jim Meyering  <meyering@lucent.com>
36062
36063         * lib/basename.c (base_name): Add an assertion.
36064
36065 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
36066
36067         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
36068         shadow its mbsinit function.
36069
36070 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
36071
36072         * lib/mbswidth.h: New file.
36073         * lib/mbswidth.c: New file.
36074         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
36075         (noinst_HEADERS): Add mbswidth.h.
36076
36077 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
36078
36079         * lib/config.charset: Add support for FreeBSD. Improve support for
36080         HP-UX and IRIX 6.
36081
36082 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
36083
36084         * m4/mbswidth.m4: New file.
36085         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
36086
36087 2000-07-15  Jim Meyering  <meyering@lucent.com>
36088
36089         * lib/makepath.c: Include quote.h.
36090         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
36091         corresponding argument in a `quote (...)' call.
36092         Give better diagnostics.
36093
36094         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
36095         (noinst_HEADERS): Add quote.h.
36096
36097         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
36098         from tar's src/misc.c.
36099         * lib/quote.h: New file.  Prototypes for same.
36100
36101 2000-07-14  Paul Eggert  <eggert@twinsun.com>
36102
36103         From a suggestion by Bruno Haible.
36104         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
36105         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
36106         to decide whether to define the BeOS workaround macro;
36107         this adjusts to the change to AC_MBSTATE_T.
36108
36109 2000-07-14  Jim Meyering  <meyering@lucent.com>
36110
36111         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
36112         jm_AC_TYPE_UINTMAX_T.
36113
36114 2000-07-13  Paul Eggert  <eggert@twinsun.com>
36115
36116         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
36117
36118         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
36119         quotearg_buffer_restyled): Add support for
36120         clocale_quoting_style.  Undo previous change to
36121         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
36122         and "{RIGHT QUOTATION MARK}" msgids.
36123
36124 2000-07-10  Paul Eggert  <eggert@twinsun.com>
36125
36126         From a suggestion by Bruno Haible.
36127         * m4/mbstate_t.m4 (AC_MBSTATE_T):
36128         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
36129         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
36130         and mbstate_t, to a single-part test that simply defines mbstate_t.
36131         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
36132         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
36133
36134 2000-07-10  Jim Meyering  <meyering@lucent.com>
36135
36136         * m4/strerror_r.m4: Mirror the correction made in autoconf.
36137
36138         * m4/gnu-source.m4: Output to confdefs.h directly.
36139         Suggestion from Akim Demaille.
36140
36141 2000-07-09  Paul Eggert  <eggert@twinsun.com>
36142
36143         The old behavior of quoting `like this' doesn't look good with
36144         newer, ISO-style fonts.  See:
36145         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
36146
36147         Instead, quote "like this" by default.  Let the translator
36148         tailor the locale-specific quoting behavior by providing
36149         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
36150
36151         * lib/quotearg.c (N_): New macro.
36152         (gettext_default): New function.
36153         (quotearg_buffer_restyled): Use
36154         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
36155         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
36156
36157 2000-07-09  Jim Meyering  <meyering@lucent.com>
36158
36159         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
36160         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
36161
36162         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
36163         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
36164
36165 2000-07-09  Jim Meyering  <meyering@lucent.com>
36166
36167         * lib/Most files: Update copyright dates to include 2000.
36168
36169 2000-07-08  Jim Meyering  <meyering@lucent.com>
36170
36171         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
36172         if not defined.
36173         (xgethostname): Remove now-unnecessary #ifdef.
36174         Move declaration of `err' into loop where it's used.
36175
36176 2000-07-05  Paul Eggert  <eggert@twinsun.com>
36177         and Bruno Haible  <haible@clisp.cons.org>
36178
36179         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
36180         only if the test for an object-type mbstate_t fails.  This
36181         prevents us from mistakenly reporting that mbstate_t is a
36182         system object type after we "#define mbstate_t int" to work
36183         around its lack.
36184
36185 2000-07-05  Paul Eggert  <eggert@twinsun.com>
36186         and Bruno Haible  <haible@clisp.cons.org>
36187
36188         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
36189
36190 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
36191
36192         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
36193         to strerror_r.
36194         Include <ctype.h> for use of isalpha.
36195
36196 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
36197
36198         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
36199         by allocating a larger buffer. Test the gethostname return value for
36200         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
36201         returns an error and ENAMETOOLONG isn't defined.
36202
36203 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
36204
36205         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
36206         dimension.
36207
36208 2000-07-04  Jim Meyering  <meyering@lucent.com>
36209
36210         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
36211         of the deprecated AC_CHECKING.
36212
36213 2000-07-04  Jim Meyering  <meyering@lucent.com>
36214
36215         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
36216         Reported by Bruno Haible.
36217
36218 2000-07-04  Jim Meyering  <meyering@lucent.com>
36219
36220         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
36221         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
36222         lacks mbrtowc.
36223
36224 2000-07-03  Paul Eggert  <eggert@twinsun.com>
36225
36226         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
36227         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
36228
36229 2000-07-03  Paul Eggert  <eggert@twinsun.com>
36230         and Bruno Haible  <haible@clisp.cons.org>
36231
36232         * lib/quotearg.c (mbrtowc):
36233         Assign to *pwc, and return 1 only if result is nonzero.
36234         (iswprint): Use ISPRINT when substituting our own mbrtowc.
36235
36236 2000-07-03  Jim Meyering  <meyering@lucent.com>
36237
36238         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
36239
36240 2000-07-03  Jim Meyering  <meyering@lucent.com>
36241
36242         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
36243         This is necessary to get a definition of e.g., UTMP_FILE on
36244         HP-UX 10.20.
36245         From Bob Proulx.
36246
36247 2000-07-02  Jim Meyering  <meyering@lucent.com>
36248
36249         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
36250
36251         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
36252         AC_LIBOBJ(function_name).
36253         * m4/chown.m4: Likewise.
36254         * m4/fnmatch.m4: Likewise.
36255         * m4/ftruncate.m4: Likewise.
36256         * m4/getgroups.m4: Likewise.
36257         * m4/getline.m4: Likewise.
36258         * m4/group-member.m4: Likewise.
36259         * m4/jm-macros.m4: Likewise.
36260         * m4/lstat.m4: Likewise.
36261         * m4/malloc.m4: Likewise.
36262         * m4/memcmp.m4: Likewise.
36263         * m4/nanosleep.m4: Likewise.
36264         * m4/putenv.m4: Likewise.
36265         * m4/realloc.m4: Likewise.
36266         * m4/regex.m4: Likewise.
36267         * m4/stat.m4: Likewise.
36268         * m4/strftime.m4: Likewise.
36269
36270 2000-07-02  Jim Meyering  <meyering@lucent.com>
36271
36272         * lib/quotearg.c (mbstate_t): Don't define here.
36273
36274 2000-07-02  Jim Meyering  <meyering@lucent.com>
36275
36276         * lib/nanosleep.c (SIGCONT): Define if not already defined.
36277
36278 2000-07-01  Jim Meyering  <meyering@lucent.com>
36279
36280         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
36281
36282 2000-07-01  Jim Meyering  <meyering@lucent.com>
36283
36284         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
36285         problem.
36286
36287 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
36288
36289         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
36290         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
36291
36292 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
36293
36294         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
36295         per change in ../m4/ls-mntd-fs.m4.
36296         (read_filesystem_list): Ignore symbolic links.
36297
36298 2000-06-29  Jim Meyering  <meyering@lucent.com>
36299
36300         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
36301         for declaration of strcmp.
36302
36303         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
36304
36305         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
36306         Avoid warning by casting result to `char *' to remove `const'.
36307
36308 2000-06-28  Jim Meyering  <meyering@lucent.com>
36309
36310         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
36311         included by quotearg.c, for which we perform this test.  From
36312         Bruno Haible.
36313
36314 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
36315
36316         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
36317         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
36318         <utmpx.h> exists, put readutmp.o into LIBOBJS.
36319
36320 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
36321
36322         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
36323
36324 2000-06-26  Paul Eggert  <eggert@twinsun.com>
36325
36326         savedir now sets errno on failure and invokes xmalloc to get memory.
36327         Fix a couple of other minor bugs while we're at it.
36328
36329         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
36330         (NAMLEN): Remove macro.
36331         (malloc, realloc): Remove decls.
36332         (stpcpy): Likewise.
36333         ("xalloc.h"): Include.
36334         (NAME_SIZE_DEFAULT): New macro.
36335         (savedir): Use xmalloc / xrealloc to allocate memory.
36336         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
36337         Skip "" directory entries.
36338         Use strlen to calculate directory entry length, since the old method
36339         is rarely used these days and isn't worth supporting.
36340         Don't use a pointer after freeing it.
36341         Check for integer overflow when calculating allocation size.
36342         Use memcpy to copy entries, instead of stpcpy.
36343         Set errno properly when returning NULL.
36344         Check for readdir error.
36345
36346 2000-06-26  Jim Meyering  <meyering@lucent.com>
36347
36348         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
36349
36350 2000-06-25  Jim Meyering  <meyering@lucent.com>
36351
36352         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
36353         Linux header bug when _XOPEN_SOURCE is defined to 500.
36354
36355 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
36356
36357         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
36358         deficiency.
36359
36360 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
36361
36362         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
36363         Include xalloc.h.
36364         Don't include <stdlib.h>.  Don't declare malloc, realloc.
36365
36366 2000-06-24  Jim Meyering  <meyering@lucent.com>
36367
36368         * m4/strerror_r.m4: Revive this file -- to try out an experimental
36369         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
36370         for which strerror does return char*, but which lacks a conveniently
36371         accessible declaration of the function.  If the compile-test says
36372         strerror_r doesn't work, then resort to a `run'-test that works on
36373         BeOS and segfaults on DEC Unix.
36374
36375 2000-06-24  Jim Meyering  <meyering@lucent.com>
36376
36377         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
36378
36379 2000-06-23  Paul Eggert  <eggert@twinsun.com>
36380
36381         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
36382         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
36383
36384 2000-06-23  Paul Eggert  <eggert@twinsun.com>
36385
36386         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
36387         (mbrtowc, mbstate_t): Define substitutes if
36388         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
36389         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
36390         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
36391
36392 2000-06-23  Jim Meyering  <meyering@lucent.com>
36393
36394         * m4/afs.m4: Add missing AC_MSG_RESULT.
36395         Reported by Bruno Haible.
36396
36397         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
36398         Suggestion from Bruno Haible.
36399
36400 2000-06-23  Jim Meyering  <meyering@lucent.com>
36401
36402         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
36403
36404 2000-06-21  Jim Meyering  <meyering@lucent.com>
36405
36406         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
36407
36408 2000-06-21  Jim Meyering  <meyering@lucent.com>
36409
36410         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
36411         (noinst_HEADERS): Add getstr.h.
36412
36413         * lib/getline.c (getstr): Move into a separate file.
36414         * lib/getstr.c (getstr): New file, extracted from getline.c, with
36415         the following changes: new parameter, delim2; both delim[12]
36416         parameters have type `int', not `char'.  The latter would lose
36417         with 8-bit delimiters.
36418         * lib/getstr.h: New file.
36419
36420 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
36421
36422         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
36423         than 1024, return a memory chunk of least possible size, instead
36424         of size PATH_MAX + 2. In the loop, increment the size proportionally.
36425         Use free/xmalloc instead of xrealloc to avoid copying for very long
36426         paths.
36427
36428 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
36429
36430         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
36431         the empty string.
36432
36433 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
36434
36435         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
36436         address, not strdup.  Include <stdlib.h> and don't declare free().
36437
36438 2000-06-19  Jim Meyering  <meyering@lucent.com>
36439
36440         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
36441
36442 2000-06-18  Jim Meyering  <meyering@lucent.com>
36443
36444         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
36445
36446         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
36447         `checking whether...' message to be consistent with that of the
36448         lstat test.
36449
36450 2000-06-18  Jim Meyering  <meyering@lucent.com>
36451
36452         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
36453         Besides, these days every porting target provides a mkdir function.
36454
36455         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
36456         needed. (this snippet comes from src/system.h).
36457
36458 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
36459
36460         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
36461
36462 2000-06-15  Paul Eggert  <eggert@twinsun.com>
36463
36464         * lib/human.c (adjust_value): New function.
36465         (human_readable_inexact): Apply rounding style even when
36466         printing approximate values.
36467
36468 2000-06-14  Paul Eggert  <eggert@twinsun.com>
36469
36470         * lib/human.c (human_readable_inexact): Allow an input block
36471         size that is not a multiple of the output block size, and vice versa.
36472         Reported by Piergiorgio Sartor.
36473
36474 2000-06-14  Paul Eggert  <eggert@twinsun.com>
36475
36476         * lib/getdate.y (get_date): Apply relative times after time
36477         zone indicator, not before.  Reported by Todd A. Jacobs.
36478
36479 2000-06-13  Jim Meyering  <meyering@lucent.com>
36480
36481         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
36482
36483         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
36484
36485 2000-06-12  Paul Eggert  <eggert@twinsun.com>
36486
36487         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
36488
36489 2000-06-12  Jim Meyering  <meyering@lucent.com>
36490
36491         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
36492         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
36493         optional argument.
36494         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
36495         the optional argument, `lib'.
36496
36497 2000-06-08  Jim Meyering  <meyering@lucent.com>
36498
36499         * m4/largefile.m4: Remove file (now that it's part of autoconf).
36500
36501 2000-06-04  Paul Eggert  <eggert@twinsun.com>
36502
36503         Rewrite largefile configuration so that we don't need to run
36504         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
36505         AC_CANONICAL_HOST in configure.in -- jmm]
36506
36507         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
36508         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
36509         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
36510         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
36511         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
36512         All uses changed.
36513         Instead of inspecting the output of getconf, try to compile the
36514         test program without and with the macro definition.
36515         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
36516         for getconf.  Instead, check for the needed flags by compiling
36517         test programs.
36518
36519 2000-06-04  Paul Eggert  <eggert@twinsun.com>
36520
36521         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
36522
36523 2000-06-04  Jim Meyering  <meyering@lucent.com>
36524
36525         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
36526         SunOS 4.1.4 for which gid_t is an unsigned type.
36527
36528 2000-06-03  Jim Meyering  <meyering@lucent.com>
36529
36530         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
36531         now that autoconf requires that.
36532
36533         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
36534         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
36535         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
36536
36537 2000-06-03  Jim Meyering  <meyering@lucent.com>
36538
36539         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
36540
36541 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
36542
36543         * m4/glibc21.m4: New file.
36544         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
36545
36546 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
36547
36548         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
36549         newer, don't install charset.alias.
36550         * lib/config.charset: Change the Linux/glibc rules so they become empty
36551         on glibc-2.1 or newer.
36552
36553 2000-06-02  Jim Meyering  <meyering@lucent.com>
36554
36555         * lib/mountlist.c: Back out last change.  Instead, do this...
36556         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
36557         me_dummy member using the same `ignore'-testing code.
36558         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
36559         fs_type strings.
36560         From Mark D. Roth.
36561
36562 2000-05-29  Jim Meyering  <meyering@lucent.com>
36563
36564         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
36565         mounts with the `ignore' attribute.  Based on a patch from
36566         Mark D. Roth.
36567
36568 2000-05-28  Jim Meyering  <meyering@lucent.com>
36569
36570         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
36571         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
36572         * m4/stat.m4: Likewise.
36573         * m4/lstat.m4: Likewise.
36574         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
36575
36576         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
36577         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
36578
36579 2000-05-26  Jim Meyering  <meyering@lucent.com>
36580
36581         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
36582
36583 2000-05-24  Jim Meyering  <meyering@lucent.com>
36584
36585         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
36586         autoconf requires that.
36587         * m4/lib-check.m4: Likewise.
36588         * m4/jm-macros.m4: Likewise.
36589         * m4/strftime.m4: Likewise.
36590
36591         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
36592         AC_CHECK_DECLS, now that autoconf requires that.
36593
36594 2000-05-22  Jim Meyering  <meyering@lucent.com>
36595
36596         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
36597         * m4/lstat.m4: Likewise.
36598
36599 2000-05-22  Jim Meyering  <meyering@lucent.com>
36600
36601         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
36602
36603 2000-05-20  Jim Meyering  <meyering@lucent.com>
36604
36605         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
36606         (jm_PREREQ): Use it.
36607
36608 2000-05-18  Jim Meyering  <meyering@lucent.com>
36609
36610         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
36611         back, too, since it may have been modified by allocate_entry.
36612         (hash_delete): Rewrite to use neither the assignment operator
36613         nor the comma operator in an if-expression.
36614
36615 2000-05-15  Paul Eggert  <eggert@twinsun.com>
36616
36617         * lib/closeout.c:
36618         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
36619         Remove; no longer needed.
36620         "quotearg.h": Add include.
36621         (file_name): Do not bother to explicitly initialize to NULL; it's less
36622         efficient on some hosts.
36623         (close_stdout_status): Remove test as to whether stdout was already
36624         closed; it breaks for the case "echo x | sort >&-".
36625         Quote file name colons.
36626         Do not assume that _("write error") lacks format strings.
36627
36628 2000-05-15  Jim Meyering  <meyering@lucent.com>
36629
36630         * lib/version-etc.c (version_etc_copyright): Update the copyright
36631         string used in all --version output.
36632
36633 2000-05-14  Jim Meyering  <meyering@lucent.com>
36634
36635         * lib/closeout.c (close_stdout_set_file_name): New function.
36636         (close_stdout_status): Use new file-scoped global.
36637         Return right away if fstat says the stdout file descriptor is invalid.
36638         * lib/closeout.h (close_stdout_set_file_name): Declare.
36639
36640 2000-05-10  Jim Meyering  <meyering@lucent.com>
36641
36642         * lib/closeout.c [default_exit_status]: New file-scoped variable.
36643         (close_stdout_set_status): New function.
36644         * lib/closeout.h (close_stdout_set_status): Declare.
36645
36646 2000-05-09  Jim Meyering  <meyering@lucent.com>
36647
36648         * m4/gettext.m4: Rename this...
36649         * m4/libintl.m4: ...to this.
36650
36651 2000-05-08  Jim Meyering  <meyering@lucent.com>
36652
36653         * lib/long-options.c: Don't include closeout.h.
36654         (parse_long_options): Don't call close_stdout for --version.
36655
36656 2000-05-06  Paul Eggert  <eggert@twinsun.com>
36657
36658         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
36659         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
36660         2.1.3 bug.  This avoids a clash when files like regex.c define
36661         _GNU_SOURCE.
36662
36663 2000-05-06  Jim Meyering  <meyering@lucent.com>
36664
36665         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
36666         (AC_REPLACE_FUNCS): Add strnlen.
36667
36668         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
36669         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
36670
36671         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
36672         AC_SEARCH_LIBS call for nanosleep.
36673         (LIB_NANOSLEEP): Set and AC_SUBST.
36674
36675 2000-05-06  Jim Meyering  <meyering@lucent.com>
36676
36677         * lib/strnlen.c: Undefine __strnlen and strnlen.
36678         [!weak_alias]: Define __strnlen to strnlen.
36679
36680         * lib/atexit.c: New file, from libiberty.
36681
36682 2000-05-06  Jim Meyering  <meyering@lucent.com>
36683
36684         * lib/closeout.c (close_stdout_status): Also check for errors on the
36685         stderr stream.
36686
36687 2000-05-05  Jim Meyering  <meyering@lucent.com>
36688
36689         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
36690         AC_SEARCH_LIBS call for clock_gettime.
36691         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
36692
36693         * m4/search-libs.m4: Update from autoconf.
36694
36695         su doesn't work on Solaris 2.6.
36696         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
36697         <shadow.h>.  Reported by Dragos Harabor.
36698
36699 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
36700
36701         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
36702         memcpy instead of xmalloc, xrealloc, path_concat.
36703         (locale_charset): Treat empty environment variables as absent.
36704         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
36705
36706 2000-05-04  Jim Meyering  <meyering@lucent.com>
36707
36708         * lib/getopt.c: Update from glibc.
36709         * lib/obstack.c: Likewise.
36710         * lib/obstack.h: Likewise.
36711         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
36712         file
36713
36714         * lib/regex.h: Likewise.
36715         * lib/strndup.c: Likewise.
36716         * lib/strnlen.c: New file, from glibc.
36717
36718 2000-05-03  Jim Meyering  <meyering@lucent.com>
36719
36720         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
36721
36722 2000-05-02  Paul Eggert  <eggert@twinsun.com>
36723
36724         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
36725         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
36726         compile-time test, rather than inspecting host and OS, to
36727         decide whether to define _LARGEFILE_SOURCE.
36728
36729 2000-05-01  Jim Meyering  <meyering@lucent.com>
36730
36731         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
36732
36733         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
36734         Based on a patch from Bruno Haible.
36735
36736 2000-05-01  Jim Meyering  <meyering@lucent.com>
36737
36738         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
36739
36740 2000-04-29  Jim Meyering  <meyering@lucent.com>
36741
36742         * lib/path-concat.c: Declare strdup only if it's not defined.
36743         * lib/canon-host.c: Likewise.
36744
36745 2000-04-28  Jim Meyering  <meyering@lucent.com>
36746
36747         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
36748         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
36749         is included first, then limits.h is included by locale.h by libintl.h.
36750         From John David Anglin.
36751
36752 2000-04-25  Jim Meyering  <meyering@lucent.com>
36753
36754         * lib/makepath.c (S_IRWXUGO): Define.
36755         (make_path): Always perform explicit chmod if MODE specifies any
36756         of the `special' permission bits.  Prompted by a bug report against
36757         install from Mate Wierdl and Joost van Baal.
36758
36759 2000-04-18  Jim Meyering  <meyering@lucent.com>
36760
36761         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
36762         (jm_PREREQ): Use it.
36763
36764 2000-04-18  Jim Meyering  <meyering@lucent.com>
36765
36766         * lib/README: New file.
36767
36768         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
36769         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
36770
36771 2000-04-17  Jim Meyering  <meyering@lucent.com>
36772
36773         Get it right :-)
36774         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
36775         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
36776         Suggestion from Akim Demaille.
36777
36778 2000-04-17  Jim Meyering  <meyering@lucent.com>
36779
36780         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
36781         the definition of it to rpl_strftime also defined-away the system's
36782         declaration.
36783
36784 2000-04-15  Jim Meyering  <meyering@lucent.com>
36785
36786         Use `C' to denote so-called `contiguous' files, the same way
36787         that tar does.
36788         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
36789         (ftypelet): Use S_ISCTG.
36790         From Michael Deutschmann.
36791
36792 2000-04-14  Jim Meyering  <meyering@lucent.com>
36793
36794         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
36795         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
36796         clobbered.
36797
36798 2000-04-14  Jim Meyering  <meyering@lucent.com>
36799
36800         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
36801
36802 2000-04-13  Jim Meyering  <meyering@lucent.com>
36803
36804         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
36805         AH_VERBATIM to insert required #ifndef into config.h.in.
36806         Suggestion from Akim Demaille.
36807
36808 2000-04-12  Jim Meyering  <meyering@lucent.com>
36809
36810         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
36811         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
36812         Christian Krackowizer.
36813
36814         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
36815         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
36816         (AC_SYS_LARGEFILE): Require.
36817         (AM_C_PROTOTYPES): Require.
36818
36819 2000-04-08  Jim Meyering  <meyering@lucent.com>
36820
36821         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
36822         names don't conflict.  Reported by Eli Zaretskii.
36823
36824 2000-04-07  Jim Meyering  <meyering@lucent.com>
36825
36826         * lib/putenv.c: Move inclusion of errno.h so it follows that of
36827         sys/types.h, to work around system header problems on AIX 3.2.5.
36828         From Bruno Haible.
36829
36830 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
36831
36832         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
36833         bug.  Deal with the different error behavior of Irix iconv.
36834
36835 2000-04-05  Paul Eggert  <eggert@twinsun.com>
36836
36837         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
36838         IRIX if the installer said otherwise.
36839
36840 2000-04-05  Jim Meyering  <meyering@lucent.com>
36841
36842         Portability tweaks required for ultrix4.3.
36843         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
36844         (jm_CHECK_DECLS): Add getutent to the list of functions.
36845         (_jm_DECL_HEADERS): Add utmpx.h.
36846         From John David Anglin.
36847
36848         * m4/strftime.m4: Back out the 2000-04-02 change.
36849         Instead of that change, simply undefine putenv in the test program.
36850
36851 2000-04-05  Jim Meyering  <meyering@lucent.com>
36852
36853         Portability tweaks required for ultrix4.3.
36854         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
36855         getutent.
36856         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
36857         * lib/canon-host.c: Declare strdup.
36858         * lib/path-concat.c: Likewise.
36859         From John David Anglin.
36860
36861 2000-04-04  Jim Meyering  <meyering@lucent.com>
36862
36863         Be more DOS 8.3-friendly.
36864         * lib/ref-add.sin: Renamed from ref-add.sed.in.
36865         * lib/ref-del.sin: Renamed from ref-del.sed.in.
36866         * lib/Makefile.am: Reflect renaming.
36867         Reported by Eli Zaretskii.
36868
36869         Use a temporary file name that won't clash with `charset.alias'
36870         in the DOS 8.3 name space.
36871         * lib/Makefile.am (charset_tmp): Define.
36872         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
36873         (uninstall-local): Likewise.
36874         Reported by Eli Zaretskii.
36875
36876 2000-04-03  Jim Meyering  <meyering@lucent.com>
36877
36878         * m4/gettext.m4: Fix typo in comment.
36879
36880         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
36881         textutils/configure.in).  Suggestion from Paul Eggert.
36882         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
36883
36884 2000-04-02  Paul Eggert  <eggert@twinsun.com>
36885
36886         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
36887         variable in the shell rather than using putenv, which isn't
36888         portable.  This avoids the configure-time inter-test dependency
36889         on the potentially-renamed putenv function.
36890
36891 2000-03-30  Paul Eggert  <eggert@twinsun.com>
36892
36893         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
36894         before checking struct stat.st_blksize, so that
36895         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
36896
36897 2000-03-29  Paul Eggert  <eggert@twinsun.com>
36898
36899         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
36900         since strftime.c uses HAVE_STRFTIME to decide whether to use
36901         the underlying strftime.
36902
36903 2000-03-29  Paul Eggert  <eggert@twinsun.com>
36904
36905         * lib/time/strftime.c (my_strftime): Make sure we call the system
36906         strftime, not ourselves, when invoking the underlying strftime.
36907
36908 2000-03-24  Jim Meyering  <meyering@lucent.com>
36909
36910         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
36911         (charset_alias): Define.
36912         (install-exec-local): Factor out common code.
36913         (uninstall-local): Split lines longer than 80.
36914         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
36915         (SUFFIXES): Define.
36916         (.sed.in.sed): New rule.  Don't redirect directly to $@.
36917         (CLEANFILES): Add ref-add.sed and ref-del.sed.
36918
36919 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
36920
36921         * lib/config.charset: Output a line containing "Packages using this
36922         file".
36923         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
36924         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
36925         ref-del.sed): New rules.
36926
36927 2000-03-17  Jim Meyering  <meyering@lucent.com>
36928
36929         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
36930         Otherwise, include <strings.h>
36931
36932 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
36933
36934         * lib/unicodeio.c (utf8_wctomb): New function.
36935         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
36936         format instead of in UCS-4 with platform dependent endianness.
36937
36938 2000-03-10  Jim Meyering  <meyering@lucent.com>
36939
36940         * m4/lib-check.m4: Look for getspnam in -lgen, too.
36941         From Marco Franzen.
36942
36943 2000-03-07  Paul Eggert  <eggert@twinsun.com>
36944
36945         * lib/savedir.c (savedir): Work even if directory size is
36946         negative; this can happen with some screwy NFS configurations.
36947
36948 2000-03-06  Jim Meyering  <meyering@lucent.com>
36949
36950         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
36951         if it's NULL (because we ran out of memory).  From Bruno Haible.
36952
36953 2000-03-05  Jim Meyering  <meyering@lucent.com>
36954
36955         * lib/localcharset.c ("path-concat.h"): Include.
36956         (get_charset_aliases): Use path_concat instead of ANSI string
36957         concatenation.
36958
36959         * lib/unicodeio.h (PARAMS): Define.
36960         Use it to guard prototype.
36961
36962 2000-03-04  Jim Meyering  <meyering@lucent.com>
36963
36964         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
36965         for lib/localcharset.c.
36966
36967 2000-03-04  Jim Meyering  <meyering@lucent.com>
36968
36969         * lib/Makefile.am (install-exec-local): Create $(libdir) before
36970         installing into it.
36971         (uninstall-local): Uncomment this rule so `make distcheck' works
36972         once again.
36973
36974         * lib/unicodeio.c (<errno.h>): Include it.
36975         (errno): Declare if not defined.
36976
36977         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
36978
36979         * lib/config.charset: New version, incorporating remarks from a linux
36980         i18n mailing list.  From Bruno Haible.
36981
36982 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
36983
36984         * m4/codeset.m4: New file.
36985         * m4/iconv.m4: New file.
36986         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
36987
36988 2000-03-03  Jim Meyering  <meyering@lucent.com>
36989
36990         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
36991
36992 2000-03-02  Jim Meyering  <meyering@lucent.com>
36993
36994         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
36995         the messages come out on separate lines.
36996
36997         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
36998         rather than jm_CHECK_DECLARATIONS.
36999         * m4/decl.m4: Remove now-unused file.
37000
37001         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
37002         geteuid.
37003
37004 2000-03-02  Jim Meyering  <meyering@lucent.com>
37005
37006         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
37007
37008 2000-03-01  Jim Meyering  <meyering@lucent.com>
37009
37010         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
37011         * lib/unicodeio.c: Likewise.
37012
37013 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
37014
37015         * lib/config.charset: New file.
37016         * lib/localcharset.c: New file.
37017         * lib/unicodeio.h, lib/unicodeio.c: New files.
37018         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
37019         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
37020         (noinst_HEADERS): Add unicodeio.h.
37021         (all-local, install-exec-local, charset.alias): New targets.
37022
37023 2000-02-28  Paul Eggert  <eggert@twinsun.com>
37024
37025         * lib/quotearg.c (ALERT_CHAR): New macro.
37026         (quotearg_buffer_restyled): Use it.
37027
37028 2000-02-27  Jim Meyering  <meyering@lucent.com>
37029
37030         * m4/check-decl.m4: Add getenv to the list.
37031
37032 2000-02-27  Jim Meyering  <meyering@lucent.com>
37033
37034         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
37035         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
37036
37037         * lib/backupfile.c: Guard inclusion of stdlib.h with
37038         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
37039         Declare malloc if needed.
37040
37041         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
37042         `#ifndef HAVE_DECL..'
37043         now that autoconf always defines the HAVE_DECL_ symbols.
37044         * lib/human.c: Likewise.
37045         * lib/same.c: Likewise.
37046         * lib/strtoumax.c: Likewise.
37047
37048         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
37049         declaration check was not run.
37050         * lib/hash.c: Likewise.
37051         * lib/human.c: Likewise.
37052         * lib/same.c: Likewise.
37053         * lib/strtoumax.c: Likewise.
37054
37055         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
37056         `.', then first look up the entire `.'-containing string as a login
37057         name.
37058
37059 2000-02-23  Jim Meyering  <meyering@lucent.com>
37060
37061         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
37062         in place of my hack.
37063
37064 2000-02-18  Paul Eggert  <eggert@twinsun.com>
37065
37066         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
37067         (textint): New typedef.
37068         (parser_control): Member year changed from int to textint.
37069         All uses changed.
37070         (YYSTYPE): Removed; replaced by %union with int and textint members.
37071         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
37072         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
37073         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
37074         (tSNUMBER, tUNUMBER): Now of type <textintval>.
37075         (date, number, to_year): Use width of number in digits, not its value,
37076         to determine whether it's a 2-digit year, or a 2-digit time.
37077         (yylex): Store number of digits of numeric tokens.
37078         Reported by John Kendall.
37079
37080         (parser_control): Changed from struct parser_control to typedef (for
37081         consistency).  All uses changed.
37082
37083         (tID): Removed; not used.
37084         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
37085
37086 2000-02-14  Paul Eggert  <eggert@twinsun.com>
37087
37088         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
37089         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
37090
37091 2000-02-12  Jim Meyering  <meyering@lucent.com>
37092
37093         * lib/userspec.c (ISDIGIT): Define it.
37094         (isdigit): Remove definition.
37095         (is_number): Use ISDIGIT, not isdigit.
37096         <libintl.h>: Include.
37097         (_ and N_): Define.
37098         (parse_user_spec): Mark translatable strings.
37099
37100 2000-02-10  Jim Meyering  <meyering@lucent.com>
37101
37102         With these changes, nanosleep.[ch] are finally enough like the other
37103         lib/* replacement files to compile on a few more losing systems.
37104
37105         * lib/nanosleep.h: Don't include config.h.
37106         Remove prototype from declaration of nanosleep.
37107         (PARAMS): Remove now-unneeded definition.
37108         * lib/nanosleep.c: #undef nanosleep.
37109         (rpl_nanosleep): Rename from nanosleep.
37110
37111 2000-02-10  Jim Meyering  <meyering@lucent.com>
37112
37113         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
37114         gnu_nanosleep to rpl_nanosleep.
37115
37116 2000-02-09  Jim Meyering  <meyering@lucent.com>
37117
37118         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
37119         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
37120
37121 2000-02-08  Akim Demaille  <akim@epita.fr>
37122
37123         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
37124         `[' and `]' and remove uses of `changequote'.
37125         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
37126         (AC_SYS_LARGEFILE): Likewise.
37127         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
37128         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
37129         of changequote.
37130         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
37131         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
37132         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
37133         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
37134
37135 2000-02-05  Jim Meyering  <meyering@lucent.com>
37136
37137         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
37138         Remove explicit use of AC_HEADER_TIME.  It is required by
37139         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
37140         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
37141         in autoconf whereby the expansion of the latter ended up preceding
37142         the expansion of its prerequisite, AC_HEADER_TIME.
37143         Reported by Volker Borchert.
37144
37145 2000-02-03  Jim Meyering  <meyering@lucent.com>
37146
37147         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
37148
37149 2000-02-03  Jim Meyering  <meyering@lucent.com>
37150
37151         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
37152         rather than with `#if HAVE_UTMPNAME'.
37153
37154 2000-02-02  Jim Meyering  <meyering@lucent.com>
37155
37156         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
37157         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
37158         Reported by Eli Zaretskii.
37159
37160 2000-02-01  Jim Meyering  <meyering@lucent.com>
37161
37162         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
37163
37164 2000-01-31  Jim Meyering  <meyering@lucent.com>
37165
37166         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
37167         functions.  Add the time.h and sys/time.h headers along with the
37168         AC_REQUIRE'ment of AC_HEADER_TIME.
37169
37170 2000-01-31  Jim Meyering  <meyering@lucent.com>
37171
37172         * lib/nanosleep.h (nanosleep): Guard declaration with
37173         `#if ! HAVE_DECL_NANOSLEEP'.
37174         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
37175         the declaration in that vendor's sys/timers.h.
37176         Reported by Christian Krackowizer.
37177
37178         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
37179         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
37180         (ISPRINT): Likewise.
37181         Reported by Tom Tromey.
37182
37183 2000-01-30  Jim Meyering  <meyering@lucent.com>
37184
37185         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
37186
37187         * m4/prereq.m4 (utmp_includes): Define.
37188         Check for ut_user and ut_name members in both struct utmpx
37189         and struct utmp.
37190
37191 2000-01-30  Jim Meyering  <meyering@lucent.com>
37192
37193         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
37194         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
37195         header files where only utmpx.ut_user is declared.
37196
37197         * lib/readutmp.h (UT_USER): Define.
37198
37199 2000-01-29  Jim Meyering  <meyering@lucent.com>
37200
37201         * m4/lib-check.m4: New file containing library-related checks from
37202         fileutils and sh-utils (textutils had none).
37203
37204 2000-01-28  Jim Meyering  <meyering@lucent.com>
37205
37206         * m4/perl.m4: Change format of warning message to look more like that
37207         from the missing script.  Suggestion from François Pinard.
37208
37209 2000-01-25  Jim Meyering  <meyering@lucent.com>
37210
37211         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
37212         well as time.h in the compile check.
37213         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
37214         Fix typo in cross-compiling case: s/yes/no/.
37215
37216 2000-01-23  Jim Meyering  <meyering@lucent.com>
37217
37218         * m4/jm-macros.m4: Move df-related tests here from
37219         fileutils/configure.in
37220
37221         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
37222         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
37223
37224         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
37225         s/space/ac_fsusage_space/.
37226         (jm_FILE_SYSTEM_USAGE): Take two parameters.
37227
37228         * m4/ftruncate.m4: New file (derived from part of
37229         fileutils/configure.in).
37230         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
37231         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
37232
37233         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
37234         AC_SUBST these here, rather than just in sh-util/configure.in, so
37235         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
37236         all the same.
37237         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
37238         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
37239         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
37240         (AC_SUBST(POW_LIBM)): Likewise.
37241         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
37242
37243 2000-01-23  Jim Meyering  <meyering@lucent.com>
37244
37245         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
37246         obstack.c.
37247
37248 2000-01-22  Jim Meyering  <meyering@lucent.com>
37249
37250         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
37251
37252         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
37253
37254         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
37255         configure.in
37256         (AC_CHECK_HEADERS): Likewise for sh-utils.
37257         (AC_CHECK_HEADERS): Likewise for textutils.
37258         Merge the three lists of headers.
37259
37260         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
37261         from fileutils' configure.in.
37262
37263         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
37264         code. Moved tests into their own function (_jm_DECL_HEADERS) in
37265         check-decl.m4.
37266
37267         * m4/check-decl.m4: Use #if rather than #ifdef.
37268         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
37269         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
37270         (_jm_DECL_HEADERS): Define new function.
37271         (jm_CHECK_DECLARATIONS): Require it.
37272
37273 2000-01-22  Jim Meyering  <meyering@lucent.com>
37274
37275         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
37276         [! HAVE_DECL_STRTOULL]: Declare strtoull.
37277         Required for some AIX systems.  Reported by Christian Krackowizer.
37278         [TESTING] (main): New function.
37279
37280         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
37281         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
37282         letters.
37283
37284         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
37285         iswprint.
37286
37287         * lib/strverscmp.c (ISDIGIT): Define.
37288         (strverscmp): Use ISDIGIT, not isdigit.
37289
37290 2000-01-19  Jim Meyering  <meyering@lucent.com>
37291
37292         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
37293         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
37294         defines `struct timespec' in <sys/time.h>
37295
37296         * m4/c-bs-a.m4: Remove uses of changequote altogether.
37297         Thanks to Akim for explaining.
37298
37299 2000-01-17  Paul Eggert  <eggert@twinsun.com>
37300
37301         * lib/nanosleep.c (nanosleep):
37302         Don't use SA_INTERRUPT to decide whether to call sigaction, as
37303         POSIX.1 doesn't require SA_INTERRUPT and some systems
37304         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
37305         it's been part of POSIX.1 since day 1 (in 1988).
37306
37307 2000-01-17  Jim Meyering  <meyering@lucent.com>
37308
37309         * lib/interlock: Remove unused file.  Reported by François Pinard.
37310
37311 2000-01-16  Paul Eggert  <eggert@twinsun.com>
37312
37313         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
37314         alert, backslash, formfeed, and vertical tab unnecessarily in
37315         shell quoting style.
37316
37317 2000-01-16  Jim Meyering  <meyering@lucent.com>
37318
37319         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
37320         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
37321         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
37322         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
37323
37324 2000-01-16  Jim Meyering  <meyering@lucent.com>
37325
37326         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
37327         because the latter didn't work.
37328
37329 2000-01-15  Jim Meyering  <meyering@lucent.com>
37330
37331         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
37332         (AC_REPLACE_FUNCS): Add memcpy and memset.
37333         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
37334         Add strpbrk.
37335         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
37336
37337 2000-01-12  Jim Meyering  <meyering@lucent.com>
37338
37339         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
37340         (jm_PREREQ): Use it.
37341         (jm_PREREQ_READUTMP): New macro.
37342         (jm_PREREQ): Use it.
37343
37344 2000-01-11  Paul Eggert  <eggert@twinsun.com>
37345
37346         Quote multibyte characters correctly.
37347         * m4/c-bs-a.m4: New file.
37348         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
37349         (jm_PREREQ): Use it.
37350
37351 2000-01-11  Paul Eggert  <eggert@twinsun.com>
37352
37353         * m4/uintmax_t.m4: Port to autoconf 2.13.
37354
37355 2000-01-08  Jim Meyering  <meyering@ascend.com>
37356
37357         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
37358         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
37359
37360 2000-01-04  Jim Meyering  <meyering@ascend.com>
37361
37362         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
37363         jm_STRUCT_DIRENT_D_TYPE.
37364         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
37365         jm_STRUCT_DIRENT_D_INO.
37366         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
37367         jm_STRUCT_UTIMBUF.
37368         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
37369         renamings.
37370         * m4/utime.m4: Likewise.
37371
37372         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
37373         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
37374
37375 2000-01-03  Paul Eggert  <eggert@twinsun.com>
37376
37377         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
37378         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
37379
37380 2000-01-02  Jim Meyering  <meyering@ascend.com>
37381
37382         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
37383         remember if this is necessary.
37384
37385 1999-12-26  Jim Meyering  <meyering@ascend.com>
37386
37387         * m4/jm-macros.m4: Use it here.
37388         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
37389
37390 1999-12-23  Jim Meyering  <meyering@ascend.com>
37391
37392         * m4/jm-macros.m4: Check for clock_gettime (moved from
37393         fileutils/configure.in)
37394         Check for gettimeofday.
37395
37396 1999-12-20  Jim Meyering  <meyering@ascend.com>
37397
37398         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
37399         autoconf-2.14a-1999-12-20.
37400
37401 1999-12-19  Jim Meyering  <meyering@ascend.com>
37402
37403         * m4/lstat-slash.m4: New file.
37404         * m4/jm-macros.m4: Use the new macro:
37405         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
37406
37407 1999-12-07  Jim Meyering  <meyering@ascend.com>
37408
37409         * m4/perl.m4: Require that File::Compare be available, too.
37410         Too many systems seem to lack it.
37411
37412         * m4/strftime.m4: Add checks for most of the cpp macros tested in
37413         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
37414
37415 1999-11-18  Paul Eggert  <eggert@twinsun.com>
37416
37417         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
37418         problem with the QNX 4.25 shell, which doesn't propagate exit
37419         status of failed commands inside shell assignments.
37420
37421 1999-11-17  Jim Meyering  <meyering@ascend.com>
37422
37423         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
37424
37425 1999-11-07  Jim Meyering  <meyering@ascend.com>
37426
37427         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
37428
37429 1999-11-06  Jim Meyering  <meyering@ascend.com>
37430
37431         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
37432         * m4/jm-macros.m4 (jm_MACROS): Use it here.
37433
37434 1999-11-05  Jim Meyering  <meyering@ascend.com>
37435
37436         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
37437         configure.in of textutils, fileutils, and sh-utils into this one
37438         (shared between those packages) file.
37439         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
37440         AC_STRUCT_ST_BLKSIZE.
37441
37442 1999-11-03  Jim Meyering  <meyering@ascend.com>
37443
37444         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
37445         of AC_CHECK_TYPE checks includes unistd.h.
37446         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
37447         Suggestion from Akim Demaille.
37448
37449 1999-10-30  Jim Meyering  <meyering@ascend.com>
37450
37451         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
37452         m4-quoted string.
37453         * m4/ls-mntd-fs.m4: Likewise.
37454         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
37455         * m4/jm-winsz1.m4: Likewise.
37456
37457         * m4/const.m4: Remove file, since the fix made it into the experimental
37458         version of autoconf.
37459         * m4/mktime.m4: Likewise.
37460
37461         * m4/check-type.m4: Remove file, now that the latest version of
37462         AC_CHECK_TYPE takes a third arg to specify additional #includes.
37463
37464         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
37465         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
37466         AC_CHECK_TYPE.
37467
37468 1999-10-04  Jim Meyering  <meyering@ascend.com>
37469
37470         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
37471
37472 1999-09-22  Paul Eggert  <eggert@twinsun.com>
37473
37474         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
37475         2.95.1 bug with HP-UX 10.20.
37476
37477 1999-09-17  Jim Meyering  <meyering@ascend.com>
37478
37479         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
37480         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
37481         due to missing strdup (against sh-utils-2.0).
37482
37483 1999-08-29  Jim Meyering  <meyering@ascend.com>
37484
37485         * m4/jm-macros.m4: Require jm_BISON.
37486         * m4/bison.m4: New file.
37487
37488 1999-08-17  Paul Eggert  <eggert@twinsun.com>
37489
37490         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
37491         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
37492
37493 1999-08-05  Jim Meyering  <meyering@ascend.com>
37494
37495         * m4/getline.m4: Rename test file from conftestdata to conftest.data
37496         to avoid conflicts with `conftest' on 8+3 filesystems.
37497         Suggestion from Eli Zaretskii.
37498
37499 1999-08-04  Jim Meyering  <meyering@ascend.com>
37500
37501         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
37502         fileutils and sh-utils (textutils's getline test was inadequate).
37503         (AM_FUNC_GETLINE): Run this test.
37504         (AC_CHECK_FUNCS): Check for getdelim.
37505         Reported by Bob Proulx.
37506
37507 1999-08-02  Jim Meyering  <meyering@ascend.com>
37508
37509         * m4/jm-macros.m4: Add a comment.
37510
37511 1999-08-01  Paul Eggert  <eggert@twinsun.com>
37512
37513         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
37514         <inttypes.h> defines strtoumax as a macro (and not as a
37515         function).
37516
37517 1999-08-01  Paul Eggert  <eggert@twinsun.com>
37518
37519         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
37520         that we can shift, multiply and divide unsigned long long
37521         values; Ultrix cc can't do it.
37522
37523 1999-08-01  Paul Eggert  <eggert@twinsun.com>
37524
37525         * m4/mktime.m4: New file, which is a preview of what should appear
37526         in the next public autoconf release.
37527
37528 1999-08-01  Paul Eggert  <eggert@twinsun.com>
37529
37530         * m4/lfs.m4: Remove this file.
37531         * m4/largefile.m4: New file.  It contains the old contents of
37532         lfs.m4, except that all names with prefix AC_LFS have been
37533         changed to use the prefix AC_SYS_LARGEFILE instead, to be
37534         compatible with future autoconf versions.  Also, some minor m4
37535         quoting problems have been fixed.
37536
37537 1999-08-01  Paul Eggert  <eggert@twinsun.com>
37538
37539         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
37540         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
37541         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
37542         and simplify the shell code.
37543
37544 1999-08-01  Jim Meyering  <meyering@ascend.com>
37545
37546         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
37547         m4.
37548
37549 1999-07-20  Jim Meyering  <meyering@ascend.com>
37550
37551         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
37552
37553 1999-07-15  Jim Meyering  <meyering@ascend.com>
37554
37555         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
37556
37557 1999-05-22  Jim Meyering  <meyering@ascend.com>
37558
37559         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
37560
37561 1999-05-20  Jim Meyering  <meyering@ascend.com>
37562
37563         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
37564         Add a colon after each `then' in case $4 is empty.
37565
37566 1999-05-16  Jim Meyering  <meyering@ascend.com>
37567
37568         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
37569
37570 1999-05-10  Jim Meyering  <meyering@ascend.com>
37571
37572         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
37573
37574         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
37575         AC_FUNC_MKTIME.
37576
37577 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
37578
37579         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
37580
37581 1999-05-04  Paul Eggert  <eggert@twinsun.com>
37582
37583         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
37584         not CPPFLAGS, so that linking works correctly in IRIX.
37585
37586 1999-04-30  Paul Eggert  <eggert@twinsun.com>
37587
37588         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
37589
37590 1999-04-20  Paul Eggert  <eggert@twinsun.com>
37591
37592         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
37593         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
37594         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
37595         jm_AC_TYPE_UNSIGNED_LONG_LONG.
37596         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
37597
37598         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
37599
37600 1999-04-20  Jim Meyering  <meyering@ascend.com>
37601
37602         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
37603         AC_REPLACE xstroull if necessary.  From Paul Eggert.
37604         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
37605
37606 1999-04-18  Jim Meyering  <meyering@ascend.com>
37607
37608         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
37609         * m4/jm-macros.m4: Use it.
37610
37611 1999-04-06  Jim Meyering  <meyering@ascend.com>
37612
37613         * m4/strftime.m4: Remove test for %f.
37614
37615 1999-03-29  Jim Meyering  <meyering@ascend.com>
37616
37617         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
37618         superset of the AC_TYPE_* checks in the textutils, fileutils,
37619         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
37620         AC_TYPE_PID_T.
37621
37622 1999-03-28  Jim Meyering  <meyering@ascend.com>
37623
37624         * m4/jm-macros.m4: Define GNU_PACKAGE here.
37625         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
37626         replaced e.g., in the *.sh files of the sh-utils.
37627
37628 1999-03-20  Jim Meyering  <meyering@ascend.com>
37629
37630         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
37631         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
37632         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
37633
37634 1999-03-19  Jim Meyering  <meyering@ascend.com>
37635
37636         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
37637
37638 1999-03-12  Jim Meyering  <meyering@ascend.com>
37639
37640         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
37641
37642 1999-03-07  Jim Meyering  <meyering@ascend.com>
37643
37644         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
37645         declared.
37646
37647 1999-02-17  Jim Meyering  <meyering@ascend.com>
37648
37649         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
37650         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
37651
37652 1999-02-07  Jim Meyering  <meyering@ascend.com>
37653
37654         * m4/group-member.m4: New file -- extracted from sh-utils'
37655         configure.in.
37656
37657         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
37658         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
37659
37660 1999-02-06  Jim Meyering  <meyering@ascend.com>
37661
37662         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
37663         * m4/fnmatch.m4: Likewise.
37664         * m4/getgroups.m4: Likewise.
37665         * m4/lstat.m4: Likewise.
37666         * m4/malloc.m4: Likewise.
37667         * m4/putenv.m4: Likewise.
37668         * m4/realloc.m4: Likewise.
37669         * m4/regex.m4: Likewise.
37670         * m4/stat.m4: Likewise.
37671         * m4/strftime.m4: Likewise.
37672         Suggestion from Alain Magloire.
37673
37674         * m4/chown.m4: Use `.$ac_objext', not `.o'.
37675         * m4/fnmatch.m4: Likewise.
37676         * m4/getgroups.m4: Likewise.
37677         * m4/getline.m4: Likewise.
37678         * m4/lstat.m4: Likewise.
37679         * m4/malloc.m4: Likewise.
37680         * m4/memcmp.m4: Likewise.
37681         * m4/putenv.m4: Likewise.
37682         * m4/realloc.m4: Likewise.
37683         * m4/regex.m4: Likewise.
37684         * m4/stat.m4: Likewise.
37685         * m4/strftime.m4: Likewise.
37686         Suggestion from Alain Magloire.
37687
37688         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
37689         an argument.
37690
37691         * m4/regex.m4: Add a run-time Test for proper operation of
37692         re_compile_pattern.
37693
37694 1999-01-31  Jim Meyering  <meyering@ascend.com>
37695
37696         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
37697
37698 1999-01-30  Jim Meyering  <meyering@ascend.com>
37699
37700         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
37701
37702         * m4/jm-mktime.m4: Make this a wrapper around the official
37703         AM_FUNC_MKTIME rather than my private copy, now that the official one
37704         is up to date.
37705         * m4/mktime.m4: Remove file.
37706
37707         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
37708         * m4/uptime.m4: Likewise.
37709         * m4/uintmax_t.m4: Likewise.
37710
37711 1999-01-28  Jim Meyering  <meyering@ascend.com>
37712
37713         * m4/jm-macros.m4: Use jm_AFS.
37714         * m4/afs.m4: New file (from fileutils' configure.in).
37715
37716         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
37717         * m4/chown.m4: Likewise.
37718         * m4/d-ino.m4: Likewise.
37719         * m4/d-type.m4: Likewise.
37720         * m4/fnmatch.m4: Likewise.
37721         * m4/getgroups.m4: Likewise.
37722         * m4/gettext.m4: Likewise.
37723         * m4/jm-mktime.m4: Likewise.
37724         * m4/jm-winsz2.m4: Likewise.
37725         * m4/lcmessage.m4: Likewise.
37726         * m4/ls-mntd-fs.m4: Likewise.
37727         * m4/malloc.m4: Likewise.
37728         * m4/memcmp.m4: Likewise.
37729         * m4/putenv.m4: Likewise.
37730         * m4/realloc.m4: Likewise.
37731         * m4/st_mtim.m4: Likewise.
37732         * m4/strftime.m4: Likewise.
37733
37734 1999-01-16  Jim Meyering  <meyering@ascend.com>
37735
37736         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
37737         (ARGMATCH_DIE_DECL): Define.
37738
37739 1999-01-12  Jim Meyering  <meyering@ascend.com>
37740
37741         * m4/Makefile.am.in: Rewrite to avoid using fmt.
37742         Reported by Lars Hecking.
37743
37744 1999-01-10  Jim Meyering  <meyering@ascend.com>
37745
37746         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
37747         gross kludge.
37748         * m4/inttypes_h.m4: Likewise.
37749         * m4/lstat.m4: Likewise.
37750         * m4/malloc.m4: Likewise.
37751         * m4/readdir.m4: Likewise.
37752         * m4/realloc.m4: Likewise.
37753         * m4/st_dm_mode.m4: Likewise.
37754         * m4/stat.m4: Likewise.
37755         * m4/utimbuf.m4: Likewise.
37756         * m4/utimes.m4: Likewise.
37757
37758         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
37759         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
37760         comments in config.h.in are meaningful.
37761
37762         * m4/jm-macros.m4: Require autoconf-2.13 here.
37763
37764         * m4/regex.m4: By default, don't use the included regex.c on systems
37765         with glibc 2.  Suggestion from Uli Drepper.
37766
37767 1999-01-02  Jim Meyering  <meyering@ascend.com>
37768
37769         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
37770
37771 1998-12-18  Jim Meyering  <meyering@ascend.com>
37772
37773         * m4/Makefile.am.in (Makefile.am): Simplify rule.
37774         Based on a suggestion from Lars Hecking.
37775
37776 1998-11-16  Paul Eggert  <eggert@twinsun.com>
37777
37778         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
37779
37780 1998-11-16  Jim Meyering  <meyering@ascend.com>
37781
37782         * m4/lfs.m4: Double-quote the `uname...` expression.
37783
37784 1998-11-14  Jim Meyering  <meyering@ascend.com>
37785
37786         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
37787         * m4/stat.m4: Likewise.
37788
37789 1998-11-03  Jim Meyering  <meyering@ascend.com>
37790
37791         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
37792         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
37793
37794 1998-10-18  Jim Meyering  <meyering@ascend.com>
37795
37796         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
37797
37798 1998-10-17  Jim Meyering  <meyering@ascend.com>
37799
37800         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
37801         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
37802         calls for those previously hard-coded headers.  Instead, take a new
37803         parameter.
37804         (jm_CHECK_DECLARATIONS): Reflect interface change.
37805         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
37806         (jm_CHECK_DECL_LOCALTIME_R): New macro.
37807
37808         * m4/mktime.m4: Test for spring-forward gap before long-running test.
37809
37810 1998-10-14  Jim Meyering  <meyering@ascend.com>
37811
37812         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
37813         instead of "TZ=America/Vancouver".  From Paul Eggert.
37814
37815 1998-10-11  Jim Meyering  <meyering@ascend.com>
37816
37817         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
37818         This adds a test for a recently added compatibility fix for mktime.c.
37819         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
37820
37821 1998-09-27  Jim Meyering  <meyering@ascend.com>
37822
37823         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
37824
37825         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
37826         ../configure.in, including a change from Gordon Matzigkeit to allow
37827         cross-compiling for the Hurd.
37828
37829         * m4/glibc.m4: New file/macro to test for the GNU C Library
37830         versions 1 and 2.  From Gordon Matzigkeit.
37831         Indent.
37832
37833 1998-09-21  Jim Meyering  <meyering@ascend.com>
37834
37835         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
37836
37837 1998-08-18  Paul Eggert  <eggert@twinsun.com>
37838
37839         Port nanosecond-resolution times to UnixWare 2.1.2 and
37840         pedantic Solaris 2.6.
37841
37842         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
37843         AC_STRUCT_ST_MTIM.
37844         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
37845         Generate name of ns member, instead of just 1 or undef.
37846         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
37847
37848 1998-08-15  Jim Meyering  <meyering@ascend.com>
37849
37850         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
37851         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
37852         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
37853         instead of jm_TYPE_SSIZE_T.
37854
37855 1998-08-12  Jim Meyering  <meyering@ascend.com>
37856
37857         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
37858
37859 1998-08-02  Jim Meyering  <meyering@ascend.com>
37860
37861         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
37862         in acconfig.h manually.
37863
37864 1998-07-31  Paul Eggert  <eggert@twinsun.com>
37865
37866         * m4/st_mtim.m4: New file.
37867
37868 1998-07-28  Jim Meyering  <meyering@ascend.com>
37869
37870         * m4/utimes.m4: Undef stat.
37871
37872 1998-07-25  Jim Meyering  <meyering@ascend.com>
37873
37874         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
37875         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
37876
37877 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
37878
37879         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
37880         uid and gid actually remain unchanged.
37881
37882 1998-07-07  Jim Meyering  <meyering@ascend.com>
37883
37884         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
37885
37886 1998-07-04  Jim Meyering  <meyering@ascend.com>
37887
37888         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
37889         to prove that this macro can be used in packages without regex.c.
37890
37891 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
37892
37893         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
37894         is to be used.
37895
37896 1998-07-03  Jim Meyering  <meyering@ascend.com>
37897
37898         * m4/gettext.m4: Add -lintl if it's found to be necessary.
37899
37900         * m4/gettext.m4: New file -- from gettext-0.10.35.
37901         * m4/lcmessage.m4: Likewise.
37902         * m4/progtest.m4: Likewise.
37903
37904         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
37905         * m4/jm-macros.m4: Require the new macro.
37906
37907 1998-06-29  Jim Meyering  <meyering@ascend.com>
37908
37909         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
37910         for the definition of NGROUPS (used in a system header included
37911         by sys/mount.h).
37912
37913 1998-06-28  Jim Meyering  <meyering@ascend.com>
37914
37915         * m4/ls-mntd-fs.m4: New file.
37916         * m4/fstypename.m4: New file.
37917
37918         * m4/jm-macros.m4: Require the new macro.
37919         * m4/jm-glibc-io.m4: New file.
37920
37921 1998-05-19  Jim Meyering  <meyering@ascend.com>
37922
37923         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
37924         * m4/lchown.m4: New file.
37925
37926         * m4/Makefile.am.in: New file.
37927         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
37928
37929 1998-05-14  Jim Meyering  <meyering@ascend.com>
37930
37931         * m4/Makefile.am (EXTRA_DIST): Add them.
37932         * m4/jm-macros.m4: New file.
37933         * m4/utimbuf.m4: New file.
37934
37935 1998-05-12  Jim Meyering  <meyering@ascend.com>
37936
37937         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
37938
37939 1998-05-11  Jim Meyering  <meyering@ascend.com>
37940
37941         * m4/isc-posix.m4: New file.
37942
37943 1998-05-10  Jim Meyering  <meyering@ascend.com>
37944
37945         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
37946
37947 1998-05-09  Jim Meyering  <meyering@ascend.com>
37948
37949         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
37950         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
37951         with automake.
37952
37953         * m4/ssize_t.m4: New file.
37954         * m4/mktime.m4: Remove file -- the new automake has this now.
37955
37956 1998-04-26  Jim Meyering  <meyering@ascend.com>
37957
37958         * m4/assert.m4: New file.
37959         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
37960
37961 1998-04-05  Jim Meyering  <meyering@ascend.com>
37962
37963         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
37964         (jm_PREREQ): Use it here.
37965
37966 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
37967
37968         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
37969         in acconfig.h.
37970
37971 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
37972
37973         * m4/prereq.m4: New file.
37974         * m4/error.m4: New file.
37975         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
37976
37977 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
37978
37979         * m4/getline.m4: Don't set am_cv_func_working_getline before the
37980         cache-check for the same variable -- that defeated the purpose of
37981         the test; the test program was never run.  This was a problem only
37982         on systems with losing getline functions -- HP-UX 10.20 is one.
37983         Reported by Bjorn Helgaas.
37984
37985 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
37986
37987         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
37988
37989 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
37990
37991         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
37992
37993         * m4/const.m4: New file.  Use an initializer in this declaration
37994         typedef int charset[2]; const charset x;
37995         Reported by Bob Glickstein.
37996
37997 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
37998
37999         * m4/chown.m4: Fix reversed types on -1 args to chown.
38000         From Kaveh Ghazi.
38001
38002 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
38003
38004         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
38005         Add lseek and memchr.
38006
38007         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
38008         T.E.Dickey <dickey@clark.net> said that some older preprocessors
38009         have a 20-character limit on names.
38010
38011 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
38012
38013         * m4/inttypes_h.m4: New file.
38014         * m4/uintmax_t.m4: New file.
38015         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
38016
38017 Copyright (C) 1997-2008 Free Software Foundation, Inc.
38018 Copying and distribution of this file, with or without modification,
38019 are permitted provided the copyright notice and this notice are preserved.