77b5eda30ceb26c88aaa6fe8382417676b9db4c9
[gnulib.git] / ChangeLog
1 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
2
3         Fix problem with getdate on mingw32 reported by Simon Josefsson
4         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
5         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
6         tzname", when deciding whether to declare tzname.
7         * lib/strftime.c (tzname): Likewise.
8
9 2008-01-15  Bruno Haible  <bruno@clisp.org>
10
11         Work around a MacOS X 10.5 bug in frexpl().
12         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
13         * doc/functions/frexpl.texi: Document the bug.
14         Reported by Elias Pipping <pipping@gentoo.org>.
15
16 2008-01-14  Eric Blake  <ebb9@byu.net>
17
18         Touch up previous patch.
19         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
20         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
21
22         Convert strcasestr module to use Two-Way algorithm.
23         * modules/strcasestr-simple: New module, based on the old
24         strcasestr, but with Two-Way rather than KMP.
25         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
26         * lib/string.in.h (rpl_strcasestr): Declare.
27         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
28         performance.
29         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
30         * modules/string (Makefile.am): Support strcasestr.
31         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
32         * modules/strcasestr-tests (Depends-on): Check for alarm.
33         * tests/test-strcasestr.c: Augment test.
34         * lib/str-two-way.h: Clean up stray macro.
35         * NEWS: Document new module.
36         * MODULES.html.sh (string handling): Likewise.
37         * doc/functions/strcasestr.texi: New file.
38         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
39         here, since it is not a POSIX function.
40
41 2008-01-14  Colin Watson  <cjwatson@debian.org>
42             Bruno Haible  <bruno@clisp.org>
43
44         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
45         works fine; if not, set REPLACE_STRSIGNAL.
46         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
47         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48         REPLACE_STRSIGNAL.
49         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
50         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
51         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
52
53 2008-01-14  Bruno Haible  <bruno@clisp.org>
54
55         * modules/strsignal (Include): Change to <string.h>.
56
57 2008-01-14  Colin Watson  <cjwatson@debian.org>
58
59         * modules/argp (Notice): Add a notice recommending to change
60         XGETTEXT_OPTIONS.
61         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
62
63 2008-01-13  Colin Watson  <cjwatson@debian.org>
64
65         * modules/strsignal-tests: New file.
66         * tests/test-strsignal.c: New file.
67
68         * lib/strsignal.c: New file, from glibc with modifications.
69         * lib/siglist.h: New file, from glibc with modifications.
70         * lib/string.in.h (strsignal): New declaration.
71         * m4/strsignal.m4: New file.
72         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
74         * modules/strsignal: New file.
75         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
76         HAVE_DECL_STRSIGNAL.
77
78 2008-01-13  Bruno Haible  <bruno@clisp.org>
79
80         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
81         locale encoding is not ASCII. Needed for OpenBSD 4.0.
82         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
83         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
84
85 2008-01-13  Bruno Haible  <bruno@clisp.org>
86
87         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
88         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
89         * lib/argp.h (__attribute__): Likewise.
90         * lib/c-stack.c (__attribute__): Likewise.
91         * lib/error.h (__attribute__): Likewise.
92         * lib/fts.c (__attribute__): Likewise.
93         * lib/openat.h (__attribute__): Likewise.
94         * lib/stdio.in.h (__attribute__): Likewise.
95         * lib/string.in.h (__attribute__): Likewise.
96         * lib/utimens.c (__attribute__): Likewise.
97         * lib/vasnprintf.h (__attribute__): Likewise.
98         * lib/xalloc.h (__attribute__): Likewise.
99         * lib/xprintf.h (__attribute__): Likewise.
100         * lib/xstrtol.h (__attribute__): Likewise.
101         * lib/xvasprintf.h (__attribute__): Likewise.
102
103 2008-01-12  Bruno Haible  <bruno@clisp.org>
104
105         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
106         * doc/glibc-headers/a.out.texi: New file.
107         * doc/glibc-headers/aliases.texi: New file.
108         * doc/glibc-headers/alloca.texi: New file.
109         * doc/glibc-headers/ar.texi: New file.
110         * doc/glibc-headers/argp.texi: New file.
111         * doc/glibc-headers/argz.texi: New file.
112         * doc/glibc-headers/byteswap.texi: New file.
113         * doc/glibc-headers/crypt.texi: New file.
114         * doc/glibc-headers/endian.texi: New file.
115         * doc/glibc-headers/envz.texi: New file.
116         * doc/glibc-headers/err.texi: New file.
117         * doc/glibc-headers/error.texi: New file.
118         * doc/glibc-headers/execinfo.texi: New file.
119         * doc/glibc-headers/fpu_control.texi: New file.
120         * doc/glibc-headers/fstab.texi: New file.
121         * doc/glibc-headers/fts.texi: New file.
122         * doc/glibc-headers/getopt.texi: New file.
123         * doc/glibc-headers/ieee754.texi: New file.
124         * doc/glibc-headers/ifaddrs.texi: New file.
125         * doc/glibc-headers/libintl.texi: New file.
126         * doc/glibc-headers/mcheck.texi: New file.
127         * doc/glibc-headers/mntent.texi: New file.
128         * doc/glibc-headers/obstack.texi: New file.
129         * doc/glibc-headers/paths.texi: New file.
130         * doc/glibc-headers/printf.texi: New file.
131         * doc/glibc-headers/pty.texi: New file.
132         * doc/glibc-headers/resolv.texi: New file.
133         * doc/glibc-headers/shadow.texi: New file.
134         * doc/glibc-headers/sysexits.texi: New file.
135         * doc/glibc-headers/ttyent.texi: New file.
136
137 2008-01-12  Jim Meyering  <meyering@redhat.com>
138
139         announce-gen: emit Gnulib's git-based version string.
140         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
141         New option --gnulib-version=V, where V is expected to be
142         the output of running git describe in the gnulib directory.
143         (get_tool_versions): Request feedback on xdelta.  I suspect it's
144         not useful, and plan to stop publishing an xdelta file with each
145         coreutils release.
146
147         * build-aux/announce-gen: Also check for lzma-compressed files.
148
149 2008-01-11  Bruno Haible  <bruno@clisp.org>
150
151         * tests/test-memmem.c (main): Increase maximum allowed time.
152         * tests/test-strstr.c (main): Likewise.
153
154 2008-01-11  Bruno Haible  <bruno@clisp.org>
155
156         * doc/functions/memmem.texi: Add more precisions about platforms.
157         * doc/functions/strstr.texi: Likewise.
158
159 2008-01-10  Eric Blake  <ebb9@byu.net>
160
161         * m4/strstr.m4: Delete cruft from copy-n-paste.
162         Reported by Bruno Haible.
163
164 2008-01-10  Bruno Haible  <bruno@clisp.org>
165
166         Make c-strstr rely on strstr.
167         * lib/c-strstr.c: Don't include str-kmp.h.
168         (c_strstr): Define in terms of strstr.
169         * modules/c-strstr (Files): Remove lib/str-kmp.h.
170         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
171
172 2008-01-10  Bruno Haible  <bruno@clisp.org>
173
174         * doc/gnulib.texi (String Functions in C Locale): New section.
175         * doc/c-ctype.texi: New file.
176         * doc/c-strcase.texi: New file.
177         * doc/c-strcaseeq.texi: New file.
178         * doc/c-strcasestr.texi: New file.
179         * doc/c-strstr.texi: New file.
180         * doc/c-strtod.texi: New file.
181         * doc/c-strtold.texi: New file.
182
183 2008-01-10  Eric Blake  <ebb9@byu.net>
184
185         * lib/relocatable.h: Fix a comment.
186
187 2008-01-10  Eric Blake  <ebb9@byu.net>
188
189         Share two-way algorithm.
190         * lib/str-two-way.h: New file, merged from...
191         * lib/memmem.c: ...here...
192         * lib/strstr.c: ...and here.
193         * modules/memmem (Files): Use it.
194         * modules/strstr (Files): Likewise.
195
196         Avoid quadratic strstr implementations.
197         * lib/strstr.c: New file.
198         * m4/strstr.m4: Likewise.
199         * modules/strstr: Likewise.
200         * modules/strstr-tests: Likewise.
201         * tests/test-strstr.c: Likewise.
202         * lib/string.in.h (rpl_strstr): Declare.
203         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
204         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
205         * modules/string (Makefile.am): Likewise.
206         * MODULES.html.sh (string handling): Mention new module.
207         * doc/functions/strstr.texi (strstr): Document the bug.
208
209 2008-01-10  Bruno Haible  <bruno@clisp.org>
210
211         * lib/relocatable.h (relocate): State whether result is freshly
212         allocated or not.
213         * lib/relocatable.c (relocate): Return a freshly allocated string
214         instead of a pointer to a privately held string.
215         Reported by Sylvain Beucler <beuc@gnu.org>.
216
217 2008-01-10  Colin Watson  <cjwatson@debian.org>
218
219         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
220         s/S_ISNLK/S_ISLNK/.
221
222 2008-01-09  Bruno Haible  <bruno@clisp.org>
223
224         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
225         and other files.
226         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
227         if it's only a guess.
228         * modules/memmem: Simplify by depending on memmem-simple.
229
230 2008-01-09  Bruno Haible  <bruno@clisp.org>
231
232         Work around OpenBSD 4.0 tdelete() bug.
233         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
234         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
235         macros and don't redefine the enum values.
236         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
237         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
238         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
239
240 2008-01-09  Bruno Haible  <bruno@clisp.org>
241
242         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
243         (main): Don't perform the tests if setlocale did not install a UTF-8
244         locale. Needed on OpenBSD 4.0.
245         * modules/wcwidth-tests (Depends-on): Add localcharset.
246
247 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
248
249         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
250         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
251         * NEWS: announce this.
252         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
253
254 2008-01-09  Simon Josefsson  <simon@josefsson.org>
255         and Eric Blake  <ebb9@byu.net>
256
257         Add memmem-simple module.
258         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
259         (gl_FUNC_MEMMEM): Separate performance from presence checks.
260         * modules/memmem-simple: New file.
261         * modules/memmem (Description): Tweak.
262         * MODULES.html.sh (string handling): Mention new module.
263         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
264         addressed by memmem-simple.
265         * NEWS: Document the difference.
266
267 2008-01-09  Eric Blake  <ebb9@byu.net>
268
269         Give gcc some memmem optimization hints.
270         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
271         (strcasestr): Declare as pure.
272         * modules/memmem (Maintainer): Claim my implementation.
273
274 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
275
276         Support AIX 6.1 and higher.
277         * build-aux/config.libpath: Likewise.
278         * build-aux/config.rpath: Likewise.
279
280 2008-01-08  Jim Meyering  <meyering@redhat.com>
281             Bruno Haible  <bruno@clisp.org>
282
283         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
284         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
285         Reported by Peter Fales in
286         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
287
288 2008-01-08  Bruno Haible  <bruno@clisp.org>
289
290         * modules/unictype/category-of (Depends-on): Add
291         unictype/category-none.
292         * modules/unictype/category-and-tests (Depends-on): Add
293         unictype/category-{L,N,Lu,Nd}.
294         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
295         * modules/unictype/category-or-tests (Depends-on): Add
296         unictype/category-{L,N}.
297         * modules/unictype/category-name-tests (Depends-on): Add
298         unictype/category-{Z,Nl}.
299         Reported by Simon Josefsson.
300
301 2008-01-08  Bruno Haible  <bruno@clisp.org>
302
303         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
304         convention better.
305         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
306         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
307         Reported by Peter Miller <millerp@canb.auug.org.au>.
308
309 2008-01-08  Eric Blake  <ebb9@byu.net>
310
311         Rewrite memmem to guarantee linear complexity without malloc.
312         * lib/memmem.c (memmem): Use Two-Way rather than
313         Knuth-Morris-Pratt, to allow O(1) space usage.
314         (critical_factorization, two_way_short_needle)
315         (two_way_long_needle): New functions.
316         (knuth_morris_pratt): Delete.
317         * modules/memmem (Depends-on): No longer need malloca or stdbool.
318         Add stdint.
319         * tests/test-memmem.c (main): Add tests for periodic needle and
320         sublinear performance.
321         * doc/functions/memmem.texi (memmem): Document other deficiencies
322         in cygwin and older glibc.
323
324 2008-01-08  Bruno Haible  <bruno@clisp.org>
325
326         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
327         augmentation.
328
329 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
330
331         Add a configure time option: --disable-acl.
332         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
333         AC_ARG_ENABLE(acl).
334
335 2008-01-06  Simon Josefsson  <simon@josefsson.org>
336
337         * tests/test-localename.c: Don't include obsolete "setenv.h".
338
339         * modules/localename-tests (Depends-on): Need unsetenv.
340
341 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
342
343         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
344
345 2008-01-06  Colin Watson  <cjwatson@debian.org>
346
347         * users.txt: Add man-db.
348
349 2008-01-07  Bruno Haible  <bruno@clisp.org>
350
351         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
352         previous section name.
353
354 2008-01-07  Bruno Haible  <bruno@clisp.org>
355
356         * lib/progname.c (set_program_name): Don't strip off a leading
357         "lt-" prefix outside a .libs directory.
358         Suggested by Paul Eggert.
359
360 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
361             Bruno Haible  <bruno@clisp.org>
362
363         Improve memory cleanup in 'relocatable' module.
364         * lib/relocatable.h (compute_curr_prefix): Change return type to
365         'char *'.
366         * lib/relocatable.c (compute_curr_prefix): Change return type to
367         'char *'. Free curr_installdir after use.
368         (relocate): Free curr_prefix_better after use.
369         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
370
371 2008-01-01  Bruno Haible  <bruno@clisp.org>
372
373         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
374         failure on older glibc systems.
375         Reported by Peter Fales <psfales@alcatel-lucent.com>.
376
377 2008-01-05  Eric Blake  <ebb9@byu.net>
378
379         Avoid quadratic system memmem.
380         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
381         Reported by Ralf Wildenhues.
382
383         Fix memmem test for mingw.
384         * modules/memmem-tests (configure.ac): Check for alarm.
385         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
386         it.
387         * doc/functions/memmem.texi: New file.
388         * doc/gnulib.texi (Function Substitutes): Add memmem.
389         Reported by Bruno Haible.
390
391 2008-01-04  Bruno Haible  <bruno@clisp.org>
392
393         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
394         Require gl_HEADER_STRINGS_H_DEFAULTS, not
395         gl_HEADER_STRING_H_DEFAULTS.
396
397 2008-01-04  Eric Blake  <ebb9@byu.net>
398
399         Shorten duration of memmem test.
400         * tests/test-memmem.c (main): Use alarm to declare failure if test
401         is taking too long.
402         Reported by Ralf Wildenhues.
403
404 2007-12-21  Simon Josefsson  <simon@josefsson.org>
405
406         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
407         string, needed by strerror.
408
409 2008-01-03  Colin Watson  <cjwatson@debian.org>
410             Bruno Haible  <bruno@clisp.org>
411
412         * doc/gnulib-tool.texi (Localization): New section.
413
414 2008-01-02  Bruno Haible  <bruno@clisp.org>
415
416         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
417         variables to 'unsigned char *' type.
418         Reported by Paul Eggert.
419
420 2008-01-02  Jim Meyering  <jim@meyering.net>
421
422         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
423
424 2007-12-31  Jim Meyering  <jim@meyering.net>
425
426         Avoid use of private FTS type name.
427         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
428
429 2007-12-30  Karl Berry  <karl@gnu.org>
430
431         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
432         work around defect in Texinfo and/or the standalone Info browser.
433
434 2007-12-30  Bruno Haible  <bruno@clisp.org>
435
436         Unify 5 copies of the KMP code.
437         * lib/str-kmp.h: New file.
438         * lib/c-strcasestr.c: Include str-kmp.h.
439         (knuth_morris_pratt): Remove function.
440         (c_strcasestr): Update.
441         * lib/c-strstr.c: Include str-kmp.h.
442         (knuth_morris_pratt): Remove function.
443         (c_strcasestr): Update.
444         * lib/mbscasestr.c: Include str-kmp.h.
445         (knuth_morris_pratt_unibyte): Remove function.
446         * lib/mbsstr.c: Include str-kmp.h.
447         (knuth_morris_pratt_unibyte): Remove function.
448         * lib/strcasestr.c: Include str-kmp.h.
449         (knuth_morris_pratt): Remove function.
450         (strcasestr): Update.
451         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
452         * modules/c-strstr (Files): Likewise.
453         * modules/mbscasestr (Files): Likewise.
454         * modules/mbsstr (Files): Likewise.
455         * modules/strcasestr (Files): Likewise.
456         Suggested by Paul Eggert.
457
458 2007-12-30  Bruno Haible  <bruno@clisp.org>
459
460         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
461         defined.
462
463 2007-12-30  Bruno Haible  <bruno@clisp.org>
464
465         * lib/xmalloca.h: Include xalloc.h.
466         (xnmalloca): New macro.
467
468 2007-12-30  Bruno Haible  <bruno@clisp.org>
469
470         * lib/malloca.h (nmalloca): New macro.
471         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
472         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
473         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
474         knuth_morris_pratt_multibyte): Likewise.
475         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
476         knuth_morris_pratt_multibyte): Likewise.
477         * lib/memmem.c (knuth_morris_pratt): Likewise.
478         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
479
480 2007-12-25  Bruno Haible  <bruno@clisp.org>
481
482         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
483         * lib/glob.c: Don't include openat.h.
484         (link_exists2_p): Add back the code that deals with the
485         !GLOB_ALTDIRFUNC case.
486         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
487         let it do the filename concatenation.
488         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
489         * modules/glob (Depends-on): Remove openat.
490
491 2007-12-31  Bruno Haible  <bruno@clisp.org>
492
493         * modules/dirfd (License): Change to LGPLv2+.
494         Approved by Jim Meyering.
495
496 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
497
498         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
499         when multiplying M by sizeof (size_t).
500
501 2007-12-10  Martin Lambers  <marlam@marlam.de>
502
503         Override getpagesize on mingw.
504         * lib/getpagesize.c: New file.
505         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
506         * modules/getpagesize (Files): Add lib/getpagesize.c.
507         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
508         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
509         REPLACE_GETPAGESIZE.
510         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
511
512 2007-12-25  Bruno Haible  <bruno@clisp.org>
513
514         * modules/localcharset (Notice): New field.
515         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
516         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
517
518 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
519             Bruno Haible  <bruno@clisp.org>
520
521         Avoid using the syntax symbol() in formatted documentation.
522         * MODULES.html.sh (func_module): When replacing symbol() with a
523         hyperlink, remove the parentheses. Show an error if some remain.
524         Recognize and render the '...' syntax.
525         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
526         Rework. Add paragraph about GCC's inlining.
527         * doc/alloca.texi: Likewise.
528         * doc/error.texi: Remove parentheses from symbol reference.
529         * doc/gnulib-intro.texi: Likewise.
530         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
531         * modules/fnmatch (Description): Reword to say "the ... function".
532         * modules/full-read (Description): Likewise.
533         * modules/full-write (Description): Likewise.
534         * modules/safe-read (Description): Likewise.
535         * modules/safe-write (Description): Likewise.
536         * modules/strchrnul (Description): Likewise.
537         * modules/trim (Description): Likewise.
538         * modules/error (Description): Remove parentheses from symbol
539         references.
540         * modules/verror (Description): Likewise.
541         Reported by Karl Berry.
542
543 2007-12-25  Bruno Haible  <bruno@clisp.org>
544
545         Fixup after 2007-10-16 commit.
546         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
547
548 2007-12-24  Bruno Haible  <bruno@clisp.org>
549
550         Make --enable-relocatable work with DESTDIR.
551         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
552         to compute installdir from destprog.
553         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
554         also set the RELOC_DESTDIR variable.
555         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
556
557 2007-12-24  Bruno Haible  <bruno@clisp.org>
558
559         Fix link error due to xalloc_die().
560         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
561         of xreadlink.
562         * lib/relocwrapper.c: Update comments.
563         * build-aux/install-reloc: Remove xreadlink.c from file list.
564         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
565         xreadlink.c.
566         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
567
568 2007-12-24  Bruno Haible  <bruno@clisp.org>
569
570         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
571         * lib/setenv.h: Remove file.
572         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
573         lib/setenv.h.
574         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
575         (Depends-on): Add stdlib.
576         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
577         gl_FUNC_UNSETENV.
578         (Include): Replace setenv.h with <stdlib.h>.
579         * modules/unsetenv: New file.
580         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
581         * lib/unsetenv.c: Include <stdlib.h> first.
582         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
583         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
584         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
585         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
586         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
587         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
588         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
589         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
590         * doc/functions/unsetenv.texi: Update.
591         * modules/xsetenv (Depends-on): Add unsetenv.
592         * modules/getdate (Depends-on): Likewise.
593         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
594         * lib/xsetenv.c: Don't include setenv.h.
595         * lib/getdate.y: Likewise.
596         * lib/relocwrapper.c: Likewise.
597         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
598         (Depends-on): Add stdlib.
599         * NEWS: Mention the changes.
600         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
601
602 2007-12-23  Bruno Haible  <bruno@clisp.org>
603
604         * lib/memmem.c (memmem): Use lowercase variable names. Tab
605         indentation.
606
607 2007-12-23  Bruno Haible  <bruno@clisp.org>
608
609         * lib/c-strcasestr.c: Add more comments.
610         * lib/c-strstr.c: Likewise.
611         * lib/mbscasestr.c: Likewise.
612         * lib/mbsstr.c: Likewise.
613         * lib/strcasestr.c: Likewise.
614         * lib/memmem.c: Likewise.
615
616 2007-12-23  Bruno Haible  <bruno@clisp.org>
617
618         * tests/test-memmem.c: Include <string.h> first.
619
620 2007-12-22  Bruno Haible  <bruno@clisp.org>
621
622         * gnulib-tool (func_create_testdir): Change $auxdir while generating
623         the contents of $testsbase.
624         Reported by Ralf Wildenhues.
625
626 2007-12-22  Bruno Haible  <bruno@clisp.org>
627
628         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
629         two variables local_ldadd_before, local_ldadd_last.
630
631 2007-12-20  Eric Blake  <ebb9@byu.net>
632
633         Work around circular library issue when cross-compiling.
634         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
635         that progname.o does not need to pull in rpl_memcmp.
636
637 2007-12-19  Eric Blake  <ebb9@byu.net>
638
639         Fix memmem to avoid O(n^2) worst-case complexity.
640         * lib/memmem.c (knuth_morris_pratt): New function.
641         (memmem): Use it if first few naive iterations fail.
642         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
643         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
644         * modules/memchr (License): Likewise.
645         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
646         malloca.
647         * tests/test-memmem.c: Rewrite, borrowing ideas from
648         test-mbsstr1.c; the old version wouldn't even compile!
649         * modules/memmem-tests: New file.
650         * lib/string.in.h (rpl_memmem): Add declaration.
651         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
652         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
653         REPLACE_MEMMEM.
654
655 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
656
657         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
658         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
659         before any system include files, and undef after them all.  This
660         should fix a problem on VMS reported by John E. Malmberg in
661         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
662
663 2007-12-17  Eric Blake  <ebb9@byu.net>
664
665         Revert addition of verify, for BSD/OS.
666         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
667         can't handle large files, for the sake of obsolete platforms.
668         * modules/fseeko (Depends-on): Remove verify.
669         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
670         * doc/functions/ftello.texi (ftello): Likewise.
671         * doc/functions/fgetpos.texi (fgetpos): Likewise.
672         Reported by Larry Jones.
673
674 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
675
676         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
677         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
678
679 2007-12-17  Jim Meyering  <meyering@redhat.com>
680
681         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
682         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
683         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
684         * modules/getcwd (Depends-on): Add openat.
685         Reported by Petr Salinger.
686
687 2007-12-17  Bruno Haible  <bruno@clisp.org>
688
689         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
690         avoid a segmentation fault of the configure test on x86_64 systems.
691
692 2007-12-15  Jim Meyering  <meyering@redhat.com>
693
694         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
695
696 2007-12-13  Eric Blake  <ebb9@byu.net>
697
698         Another fseek test.
699         * tests/test-fseek.c (main): Also test ungetc handling.
700         * tests/test-fseeko.c (main): Likewise.
701         * modules/fseeko (Depends-on): Add verify.
702         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
703         large.
704         Reported by Larry Jones.
705
706         Fix fseeko on mingw.
707         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
708         seek.
709
710         Beef up fseek tests.
711         * tests/test-fseek.c (main): Also test eof handling.
712         * tests/test-fseeko.c (main): Likewise.
713         Reported by Larry Jones.
714
715 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
716
717         Fix fseeko on BSD-based platforms.
718         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
719         successful seek.
720
721 2007-12-12  Eric Blake  <ebb9@byu.net>
722
723         Allow circular dependency of separate libtests.a
724         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
725         when use_libtests.
726
727 2007-12-11  Eric Blake  <ebb9@byu.net>
728
729         Fix bug with -0.0L in previous patch.
730         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
731         * tests/test-isnan.c (main): Also test on zeroes.
732         * tests/test-isnanf.c (main): Likewise.
733         * tests/test-isnanl.h (main): Likewise.
734
735         Detect pseudo-denormals on x86 even when cross-compiling.
736         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
737         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
738         invalid bit patterns that happen to satisfy ==.
739
740         Avoid link failures with separate libtests.a.
741         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
742         last, to satisfy circular dependencies.
743
744 2007-12-11  Eric Blake  <ebb9@byu.net>
745         and Bruno Haible  <bruno@clisp.org>
746
747         Fix OpenBSD 4.0 <float.h> handling of long double.
748         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
749         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
750         * doc/headers/float.texi (float.h): Document OpenBSD bug.
751
752 2007-12-11  Jim Meyering  <meyering@redhat.com>
753
754         * users.txt: Add libvirt.
755
756         Support versions of autoconf prior to 2.59c.
757         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
758         if it is not already defined.
759
760 2007-12-09  Bruno Haible  <bruno@clisp.org>
761
762         Let 'gnulib-tool --import' collect sources needed for the tests in
763         tests/ rather than in lib/.
764         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
765         argument. If true, add rules to generate libtests.a, and put libtests.a
766         into $(LDADD). Consider source files in subdirectories and set
767         uses_subdirs.
768         (func_emit_initmacro_start, func_emit_initmacro_end,
769         func_emit_initmacro_done): Pass all arguments explicitly.
770         (func_import): Determine two module lists main_modules,
771         testsrelated_modules. Determine use_libtests. Determine two variables
772         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
773         instead of just sed_transform_lib_file. Determine two variables
774         main_files and testsrelated_files. Compute 'files' as the union of
775         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
776         func_add_or_update. In the generated gnulib-comp.m4, collect the
777         object files for tests/ in different variables than those for lib/.
778         Substitute LIBTESTS_LIBDEPS.
779         (func_create_testdir): Combine the uses_subdirs results from
780         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
781
782 2007-12-09  Bruno Haible  <bruno@clisp.org>
783
784         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
785         the build-aux directory.
786
787 2007-12-09  Bruno Haible  <bruno@clisp.org>
788
789         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
790         introduced on 2006-09-09.
791
792 2007-12-07  Jim Meyering  <meyering@redhat.com>
793
794         Let these macros work also with autoconf-2.59.
795         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
796         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
797         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
798
799 2007-12-06  Jim Meyering  <meyering@redhat.com>
800
801         Avoid a configure-time syntax error in gl_FUNC_ACL.
802         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
803         function in each branch, before testing the cache variable.
804
805 2007-12-04  Eric Blake  <ebb9@byu.net>
806
807         Make scripts executable.
808         * build-aux/config.guess: Add execute permissions.
809         * build-aux/config.sub: Likewise.
810         * build-aux/gendocs.sh: Likewise.
811
812         Fix frexp on mingw.
813         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
814         cross-compiling.
815         * doc/functions/frexp.texi (frexp): Document the bug.
816
817         Make cygwin fseeko check more reliable.
818         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
819         version numbers, rather than unrelated feature check.
820         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
821         * doc/functions/ftello.texi (ftello): Likewise.
822         Reported by Bruno Haible.
823
824         * m4/strerror.m4: Bump version number.
825
826 2007-12-03  Bruno Haible  <bruno@clisp.org>
827
828         * doc/functions/mprotect.texi: Mention the mingw problem.
829
830 2007-12-03  Eric Blake  <ebb9@byu.net>
831
832         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
833         REPLACE_STRERROR is initialized before this macro.
834
835 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
836
837         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
838         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
839         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
840         put -lsec in even for programs other than 'ls'.  This fixes a problem
841         for gettext reported by Bruno Haible in
842         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
843         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
844         Add support for Solaris 10.  This isn't efficient, but should get the
845         job done for now.
846
847 2007-12-03  James Youngman  <jay@gnu.org>
848
849         * doc/regexprops-generic.texi: change "an close-group" to "a
850         close-group" and "illegal" to "not allowed".
851
852 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
853
854         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
855         pr_byname.h. Needed for the rare case when the maintainer has done
856         "make maintainer-clean" in the source directory and then attempts a
857         build outside the source directory.
858         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
859         scripts_byname.h.
860
861 2007-12-02  Martin Lambers <marlam@marlam.de>
862             Bruno Haible  <bruno@clisp.org>
863
864         * lib/getpagesize.h: Remove file.
865         * lib/unistd.in.h: Include declaration of getpagesize here.
866         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
867         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
868         HAVE_SYS_PARAM_H.
869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
870         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
871         * modules/getpagesize (Files): Remove lib/getpagesize.h.
872         (Depends-on): Add unistd.
873         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
874         (Include): Use <unistd.h> instead of getpagesize.h.
875         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
876         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
877         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
878         gl_GETPAGESIZE invocation, already handled by module dependency.
879         * lib/pagealign_alloc.c: Don't include getpagesize.h.
880
881 2007-12-02  Bruno Haible  <bruno@clisp.org>
882
883         * modules/strings-tests: New file.
884         * tests/test-strings.c: New file.
885
886         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
887         * lib/strings.in.h: New file.
888         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
889         * m4/strings_h.m4: New file.
890         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
891         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
892         * modules/strings: New file.
893         * modules/string (Makefile.am): Update.
894         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
895         Reported by Karl Berry.
896
897 2007-12-01  Eric Blake  <ebb9@byu.net>
898
899         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
900         accomodate fix in cygwin 1.5.25.
901
902 2007-12-01  Jim Meyering  <meyering@redhat.com>
903
904         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
905         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
906         that would inhibit utf8-optimization of a regexp containing line-
907         or buffer-anchors, e.g., `^', `$'.
908
909 2007-11-30  Bruno Haible  <bruno@clisp.org>
910
911         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
912         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
913         glthread_recursive_lock_init.
914         * lib/lock.c (glthread_recursive_lock_init)
915         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
916         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
917
918 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
919
920         New function qset_acl, like set_acl but with syscall semantics.
921         * lib/acl.h (qset_acl): New decl.
922         * lib/acl.c (qset_acl): New function.
923         (set_acl): Use new function.  Use more-consistent diagnostics.
924
925 2007-11-28  Jim Meyering  <meyering@redhat.com>
926
927         * modules/physmem (License): Change from GPL to LGPLv2+.
928
929 2007-11-26  Bruno Haible  <bruno@clisp.org>
930
931         * lib/vasnprintf.c (decode_long_double): Don't abort if the
932         'long double' type has excess precision.
933         Reported by Jim Meyering in
934         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
935
936 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
937
938         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
939         Sync from <http://gnu.org/licenses>.
940         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
941         with license text from same location.
942         * doc/maintain.texi, doc/standards.texi:  Sync from
943         <http://savannah.gnu.org/projects/gnustandards>.
944
945 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
946         and Jim Meyering  <meyering@redhat.com>
947
948         Adjust getdate' grammar to accept a slightly more regular language.
949         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
950         Before, the former was rejected.
951         * lib/getdate.y (digits_to_date_time): New function, factored
952         out of ...
953         (number): ...here.  Just call digits_to_date_time.
954         (hybrid): New non-terminal to handle an <unsigned number,
955         signed relative offset> sequence consistently.
956
957 2007-11-18  Jim Meyering  <meyering@redhat.com>
958
959         Pull my changes from coreutils:
960         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
961         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
962         use of $gnulib_tool_option_extras, so that it's separated from the
963         preceding argument.
964
965         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
966         * build-aux/bootstrap (cp_mark_as_generated): Create any required
967         parent destination directories before copying a file into place.
968
969 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
970
971         bootstrap: work also with 4-argument variant of AC_INIT
972         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
973
974 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
975
976         Port test-getaddrinfo to Solaris.
977         Problem reported by Bruno Haible in
978         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
979         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
980         explanation of setting 'hints'.
981         Don't reject an implementation merely because it returns EAI_SERVICE.
982         (EAI_SERVICE): Define to 0 if not defined.
983
984 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
985
986         The license of gnu-make and posix-shell is now "GPLed build tool".
987         * modules/gnu-make (License): Likewise.
988         * modules/posix-shell (License): Likewise.
989
990         New module posix-shell, for determining a POSIX shell
991         or perhaps something that is close enough to a POSIX shell.
992         * m4/posix-shell.m4: New file.
993         * modules/posix-shell: New file.
994
995         * MODULES.html.sh: Mention new module.
996
997         New module gnu-make, for determining whether we're using GNU Make.
998         * m4/gnu-make.m4: New file.
999         * modules/gnu-make: New file.
1000         * MODULES.html.sh: Mention new module.
1001
1002 2007-11-14  Jim Meyering  <meyering@redhat.com>
1003
1004         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
1005         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
1006         use this macro to create a function _definition_.
1007         Remove useless "#undef ARGMATCH_DIE".
1008
1009 2007-11-14  Bruno Haible  <bruno@clisp.org>
1010
1011         * lib/config.charset: Update for OpenBSD 4.1.
1012         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
1013
1014 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
1015
1016         Document 64-bit #if problems in stdint.texi.
1017         * doc/headers/stdint.texi (stdint.h): Mention problems with
1018         64-bit-#if, and how to work around them.
1019
1020         Don't insist on 'long long int' support in the preprocessor.  It
1021         breaks too many things.  For example, PRIdMAX still uses a 'long
1022         long int' format with the latest Sun compiler, even though
1023         HAVE_LONG_LONG_INT isn't defined due to that compiler's
1024         preprocessor problem.  This causes the latest coreutils to dump
1025         core on Solaris 10 sparc with the Sun C compiler.
1026         Instead, fix the 2007-10-16 problem in a different way, by evaluating
1027         the troublesome expressions at configure-time, not at #if-time.
1028         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
1029         preprocessor.
1030         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
1031         compile-time C checks, done at 'configure'-time.
1032         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
1033         * modules/inttypes (Makefile): Substitute the new symbols that
1034         gl_INTTYPES_H now generates.
1035         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
1036
1037 2007-11-12  Bruno Haible  <bruno@clisp.org>
1038
1039         Tests for Unicode character classification functions.
1040
1041         * modules/unictype/bidicategory-byname-tests: New file.
1042         * modules/unictype/bidicategory-name-tests: New file.
1043         * modules/unictype/bidicategory-of-tests: New file.
1044         * modules/unictype/bidicategory-test-tests: New file.
1045         * modules/unictype/block-list-tests: New file.
1046         * modules/unictype/block-of-tests: New file.
1047         * modules/unictype/block-test-tests: New file.
1048         * modules/unictype/category-C-tests: New file.
1049         * modules/unictype/category-Cc-tests: New file.
1050         * modules/unictype/category-Cf-tests: New file.
1051         * modules/unictype/category-Cn-tests: New file.
1052         * modules/unictype/category-Co-tests: New file.
1053         * modules/unictype/category-Cs-tests: New file.
1054         * modules/unictype/category-L-tests: New file.
1055         * modules/unictype/category-Ll-tests: New file.
1056         * modules/unictype/category-Lm-tests: New file.
1057         * modules/unictype/category-Lo-tests: New file.
1058         * modules/unictype/category-Lt-tests: New file.
1059         * modules/unictype/category-Lu-tests: New file.
1060         * modules/unictype/category-M-tests: New file.
1061         * modules/unictype/category-Mc-tests: New file.
1062         * modules/unictype/category-Me-tests: New file.
1063         * modules/unictype/category-Mn-tests: New file.
1064         * modules/unictype/category-N-tests: New file.
1065         * modules/unictype/category-Nd-tests: New file.
1066         * modules/unictype/category-Nl-tests: New file.
1067         * modules/unictype/category-No-tests: New file.
1068         * modules/unictype/category-P-tests: New file.
1069         * modules/unictype/category-Pc-tests: New file.
1070         * modules/unictype/category-Pd-tests: New file.
1071         * modules/unictype/category-Pe-tests: New file.
1072         * modules/unictype/category-Pf-tests: New file.
1073         * modules/unictype/category-Pi-tests: New file.
1074         * modules/unictype/category-Po-tests: New file.
1075         * modules/unictype/category-Ps-tests: New file.
1076         * modules/unictype/category-S-tests: New file.
1077         * modules/unictype/category-Sc-tests: New file.
1078         * modules/unictype/category-Sk-tests: New file.
1079         * modules/unictype/category-Sm-tests: New file.
1080         * modules/unictype/category-So-tests: New file.
1081         * modules/unictype/category-Z-tests: New file.
1082         * modules/unictype/category-Zl-tests: New file.
1083         * modules/unictype/category-Zp-tests: New file.
1084         * modules/unictype/category-Zs-tests: New file.
1085         * modules/unictype/category-and-not-tests: New file.
1086         * modules/unictype/category-and-tests: New file.
1087         * modules/unictype/category-byname-tests: New file.
1088         * modules/unictype/category-name-tests: New file.
1089         * modules/unictype/category-none-tests: New file.
1090         * modules/unictype/category-of-tests: New file.
1091         * modules/unictype/category-or-tests: New file.
1092         * modules/unictype/category-test-withtable-tests: New file.
1093         * modules/unictype/combining-class-tests: New file.
1094         * modules/unictype/ctype-alnum-tests: New file.
1095         * modules/unictype/ctype-alpha-tests: New file.
1096         * modules/unictype/ctype-blank-tests: New file.
1097         * modules/unictype/ctype-cntrl-tests: New file.
1098         * modules/unictype/ctype-digit-tests: New file.
1099         * modules/unictype/ctype-graph-tests: New file.
1100         * modules/unictype/ctype-lower-tests: New file.
1101         * modules/unictype/ctype-print-tests: New file.
1102         * modules/unictype/ctype-punct-tests: New file.
1103         * modules/unictype/ctype-space-tests: New file.
1104         * modules/unictype/ctype-upper-tests: New file.
1105         * modules/unictype/ctype-xdigit-tests: New file.
1106         * modules/unictype/decimal-digit-tests: New file.
1107         * modules/unictype/digit-tests: New file.
1108         * modules/unictype/mirror-tests: New file.
1109         * modules/unictype/numeric-tests: New file.
1110         * modules/unictype/property-alphabetic-tests: New file.
1111         * modules/unictype/property-ascii-hex-digit-tests: New file.
1112         * modules/unictype/property-bidi-arabic-digit-tests: New file.
1113         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
1114         * modules/unictype/property-bidi-block-separator-tests: New file.
1115         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
1116         * modules/unictype/property-bidi-common-separator-tests: New file.
1117         * modules/unictype/property-bidi-control-tests: New file.
1118         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
1119         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
1120         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
1121         * modules/unictype/property-bidi-european-digit-tests: New file.
1122         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
1123         * modules/unictype/property-bidi-left-to-right-tests: New file.
1124         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
1125         * modules/unictype/property-bidi-other-neutral-tests: New file.
1126         * modules/unictype/property-bidi-pdf-tests: New file.
1127         * modules/unictype/property-bidi-segment-separator-tests: New file.
1128         * modules/unictype/property-bidi-whitespace-tests: New file.
1129         * modules/unictype/property-byname-tests: New file.
1130         * modules/unictype/property-combining-tests: New file.
1131         * modules/unictype/property-composite-tests: New file.
1132         * modules/unictype/property-currency-symbol-tests: New file.
1133         * modules/unictype/property-dash-tests: New file.
1134         * modules/unictype/property-decimal-digit-tests: New file.
1135         * modules/unictype/property-default-ignorable-code-point-tests: New file.
1136         * modules/unictype/property-deprecated-tests: New file.
1137         * modules/unictype/property-diacritic-tests: New file.
1138         * modules/unictype/property-extender-tests: New file.
1139         * modules/unictype/property-format-control-tests: New file.
1140         * modules/unictype/property-grapheme-base-tests: New file.
1141         * modules/unictype/property-grapheme-extend-tests: New file.
1142         * modules/unictype/property-grapheme-link-tests: New file.
1143         * modules/unictype/property-hex-digit-tests: New file.
1144         * modules/unictype/property-hyphen-tests: New file.
1145         * modules/unictype/property-id-continue-tests: New file.
1146         * modules/unictype/property-id-start-tests: New file.
1147         * modules/unictype/property-ideographic-tests: New file.
1148         * modules/unictype/property-ids-binary-operator-tests: New file.
1149         * modules/unictype/property-ids-trinary-operator-tests: New file.
1150         * modules/unictype/property-ignorable-control-tests: New file.
1151         * modules/unictype/property-iso-control-tests: New file.
1152         * modules/unictype/property-join-control-tests: New file.
1153         * modules/unictype/property-left-of-pair-tests: New file.
1154         * modules/unictype/property-line-separator-tests: New file.
1155         * modules/unictype/property-logical-order-exception-tests: New file.
1156         * modules/unictype/property-lowercase-tests: New file.
1157         * modules/unictype/property-math-tests: New file.
1158         * modules/unictype/property-non-break-tests: New file.
1159         * modules/unictype/property-not-a-character-tests: New file.
1160         * modules/unictype/property-numeric-tests: New file.
1161         * modules/unictype/property-other-alphabetic-tests: New file.
1162         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
1163         * modules/unictype/property-other-grapheme-extend-tests: New file.
1164         * modules/unictype/property-other-id-continue-tests: New file.
1165         * modules/unictype/property-other-id-start-tests: New file.
1166         * modules/unictype/property-other-lowercase-tests: New file.
1167         * modules/unictype/property-other-math-tests: New file.
1168         * modules/unictype/property-other-uppercase-tests: New file.
1169         * modules/unictype/property-paired-punctuation-tests: New file.
1170         * modules/unictype/property-paragraph-separator-tests: New file.
1171         * modules/unictype/property-pattern-syntax-tests: New file.
1172         * modules/unictype/property-pattern-white-space-tests: New file.
1173         * modules/unictype/property-private-use-tests: New file.
1174         * modules/unictype/property-punctuation-tests: New file.
1175         * modules/unictype/property-quotation-mark-tests: New file.
1176         * modules/unictype/property-radical-tests: New file.
1177         * modules/unictype/property-sentence-terminal-tests: New file.
1178         * modules/unictype/property-soft-dotted-tests: New file.
1179         * modules/unictype/property-space-tests: New file.
1180         * modules/unictype/property-terminal-punctuation-tests: New file.
1181         * modules/unictype/property-test-tests: New file.
1182         * modules/unictype/property-titlecase-tests: New file.
1183         * modules/unictype/property-unassigned-code-value-tests: New file.
1184         * modules/unictype/property-unified-ideograph-tests: New file.
1185         * modules/unictype/property-uppercase-tests: New file.
1186         * modules/unictype/property-variation-selector-tests: New file.
1187         * modules/unictype/property-white-space-tests: New file.
1188         * modules/unictype/property-xid-continue-tests: New file.
1189         * modules/unictype/property-xid-start-tests: New file.
1190         * modules/unictype/property-zero-width-tests: New file.
1191         * modules/unictype/scripts-tests: New file.
1192         * modules/unictype/syntax-c-ident-tests: New file.
1193         * modules/unictype/syntax-c-whitespace-tests: New file.
1194         * modules/unictype/syntax-java-ident-tests: New file.
1195         * modules/unictype/syntax-java-whitespace-tests: New file.
1196         * tests/unictype/test-bidi_byname.c: New file.
1197         * tests/unictype/test-bidi_name.c: New file.
1198         * tests/unictype/test-bidi_of.c: New file.
1199         * tests/unictype/test-bidi_test.c: New file.
1200         * tests/unictype/test-block_list.c: New file.
1201         * tests/unictype/test-block_of.c: New file.
1202         * tests/unictype/test-block_test.c: New file.
1203         * tests/unictype/test-categ_and.c: New file.
1204         * tests/unictype/test-categ_and_not.c: New file.
1205         * tests/unictype/test-categ_byname.c: New file.
1206         * tests/unictype/test-categ_name.c: New file.
1207         * tests/unictype/test-categ_none.c: New file.
1208         * tests/unictype/test-categ_of.c: New file.
1209         * tests/unictype/test-categ_or.c: New file.
1210         * tests/unictype/test-categ_test_withtable.c: New file.
1211         * tests/unictype/test-combining.c: New file.
1212         * tests/unictype/test-decdigit.c: New file.
1213         * tests/unictype/test-digit.c: New file.
1214         * tests/unictype/test-mirror.c: New file.
1215         * tests/unictype/test-numeric.c: New file.
1216         * tests/unictype/test-pr_byname.c: New file.
1217         * tests/unictype/test-pr_test.c: New file.
1218         * tests/unictype/test-predicate-part1.h: New file.
1219         * tests/unictype/test-predicate-part2.h: New file.
1220         * tests/unictype/test-scripts.c: New file.
1221         * tests/unictype/test-sy_c_ident.c: New file.
1222         * tests/unictype/test-sy_java_ident.c: New file.
1223
1224         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
1225         for Unicode 5.0.0.
1226         * tests/unictype/test-categ_Cc.c: Likewise.
1227         * tests/unictype/test-categ_Cf.c: Likewise.
1228         * tests/unictype/test-categ_Cn.c: Likewise.
1229         * tests/unictype/test-categ_Co.c: Likewise.
1230         * tests/unictype/test-categ_Cs.c: Likewise.
1231         * tests/unictype/test-categ_L.c: Likewise.
1232         * tests/unictype/test-categ_Ll.c: Likewise.
1233         * tests/unictype/test-categ_Lm.c: Likewise.
1234         * tests/unictype/test-categ_Lo.c: Likewise.
1235         * tests/unictype/test-categ_Lt.c: Likewise.
1236         * tests/unictype/test-categ_Lu.c: Likewise.
1237         * tests/unictype/test-categ_M.c: Likewise.
1238         * tests/unictype/test-categ_Mc.c: Likewise.
1239         * tests/unictype/test-categ_Me.c: Likewise.
1240         * tests/unictype/test-categ_Mn.c: Likewise.
1241         * tests/unictype/test-categ_N.c: Likewise.
1242         * tests/unictype/test-categ_Nd.c: Likewise.
1243         * tests/unictype/test-categ_Nl.c: Likewise.
1244         * tests/unictype/test-categ_No.c: Likewise.
1245         * tests/unictype/test-categ_P.c: Likewise.
1246         * tests/unictype/test-categ_Pc.c: Likewise.
1247         * tests/unictype/test-categ_Pd.c: Likewise.
1248         * tests/unictype/test-categ_Pe.c: Likewise.
1249         * tests/unictype/test-categ_Pf.c: Likewise.
1250         * tests/unictype/test-categ_Pi.c: Likewise.
1251         * tests/unictype/test-categ_Po.c: Likewise.
1252         * tests/unictype/test-categ_Ps.c: Likewise.
1253         * tests/unictype/test-categ_S.c: Likewise.
1254         * tests/unictype/test-categ_Sc.c: Likewise.
1255         * tests/unictype/test-categ_Sk.c: Likewise.
1256         * tests/unictype/test-categ_Sm.c: Likewise.
1257         * tests/unictype/test-categ_So.c: Likewise.
1258         * tests/unictype/test-categ_Z.c: Likewise.
1259         * tests/unictype/test-categ_Zl.c: Likewise.
1260         * tests/unictype/test-categ_Zp.c: Likewise.
1261         * tests/unictype/test-categ_Zs.c: Likewise.
1262         * tests/unictype/test-ctype_alnum.c: Likewise.
1263         * tests/unictype/test-ctype_alpha.c: Likewise.
1264         * tests/unictype/test-ctype_blank.c: Likewise.
1265         * tests/unictype/test-ctype_cntrl.c: Likewise.
1266         * tests/unictype/test-ctype_digit.c: Likewise.
1267         * tests/unictype/test-ctype_graph.c: Likewise.
1268         * tests/unictype/test-ctype_lower.c: Likewise.
1269         * tests/unictype/test-ctype_print.c: Likewise.
1270         * tests/unictype/test-ctype_punct.c: Likewise.
1271         * tests/unictype/test-ctype_space.c: Likewise.
1272         * tests/unictype/test-ctype_upper.c: Likewise.
1273         * tests/unictype/test-ctype_xdigit.c: Likewise.
1274         * tests/unictype/test-decdigit.h: Likewise.
1275         * tests/unictype/test-digit.h: Likewise.
1276         * tests/unictype/test-numeric.h: Likewise.
1277         * tests/unictype/test-pr_alphabetic.c: Likewise.
1278         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
1279         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
1280         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
1281         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
1282         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
1283         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
1284         * tests/unictype/test-pr_bidi_control.c: Likewise.
1285         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
1286         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
1287         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
1288         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
1289         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
1290         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
1291         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
1292         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
1293         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
1294         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
1295         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
1296         * tests/unictype/test-pr_combining.c: Likewise.
1297         * tests/unictype/test-pr_composite.c: Likewise.
1298         * tests/unictype/test-pr_currency_symbol.c: Likewise.
1299         * tests/unictype/test-pr_dash.c: Likewise.
1300         * tests/unictype/test-pr_decimal_digit.c: Likewise.
1301         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
1302         * tests/unictype/test-pr_deprecated.c: Likewise.
1303         * tests/unictype/test-pr_diacritic.c: Likewise.
1304         * tests/unictype/test-pr_extender.c: Likewise.
1305         * tests/unictype/test-pr_format_control.c: Likewise.
1306         * tests/unictype/test-pr_grapheme_base.c: Likewise.
1307         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
1308         * tests/unictype/test-pr_grapheme_link.c: Likewise.
1309         * tests/unictype/test-pr_hex_digit.c: Likewise.
1310         * tests/unictype/test-pr_hyphen.c: Likewise.
1311         * tests/unictype/test-pr_id_continue.c: Likewise.
1312         * tests/unictype/test-pr_id_start.c: Likewise.
1313         * tests/unictype/test-pr_ideographic.c: Likewise.
1314         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
1315         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
1316         * tests/unictype/test-pr_ignorable_control.c: Likewise.
1317         * tests/unictype/test-pr_iso_control.c: Likewise.
1318         * tests/unictype/test-pr_join_control.c: Likewise.
1319         * tests/unictype/test-pr_left_of_pair.c: Likewise.
1320         * tests/unictype/test-pr_line_separator.c: Likewise.
1321         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
1322         * tests/unictype/test-pr_lowercase.c: Likewise.
1323         * tests/unictype/test-pr_math.c: Likewise.
1324         * tests/unictype/test-pr_non_break.c: Likewise.
1325         * tests/unictype/test-pr_not_a_character.c: Likewise.
1326         * tests/unictype/test-pr_numeric.c: Likewise.
1327         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
1328         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
1329         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
1330         * tests/unictype/test-pr_other_id_continue.c: Likewise.
1331         * tests/unictype/test-pr_other_id_start.c: Likewise.
1332         * tests/unictype/test-pr_other_lowercase.c: Likewise.
1333         * tests/unictype/test-pr_other_math.c: Likewise.
1334         * tests/unictype/test-pr_other_uppercase.c: Likewise.
1335         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
1336         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
1337         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
1338         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
1339         * tests/unictype/test-pr_private_use.c: Likewise.
1340         * tests/unictype/test-pr_punctuation.c: Likewise.
1341         * tests/unictype/test-pr_quotation_mark.c: Likewise.
1342         * tests/unictype/test-pr_radical.c: Likewise.
1343         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
1344         * tests/unictype/test-pr_soft_dotted.c: Likewise.
1345         * tests/unictype/test-pr_space.c: Likewise.
1346         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
1347         * tests/unictype/test-pr_titlecase.c: Likewise.
1348         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
1349         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
1350         * tests/unictype/test-pr_uppercase.c: Likewise.
1351         * tests/unictype/test-pr_variation_selector.c: Likewise.
1352         * tests/unictype/test-pr_white_space.c: Likewise.
1353         * tests/unictype/test-pr_xid_continue.c: Likewise.
1354         * tests/unictype/test-pr_xid_start.c: Likewise.
1355         * tests/unictype/test-pr_zero_width.c: Likewise.
1356         * tests/unictype/test-sy_c_whitespace.c: Likewise.
1357         * tests/unictype/test-sy_java_whitespace.c: Likewise.
1358
1359 2007-11-12  Bruno Haible  <bruno@clisp.org>
1360
1361         Unicode character classification functions.
1362         * lib/unictype.h: New file.
1363         * modules/unictype/base: New file.
1364         * modules/unictype/category-L: New file.
1365         * modules/unictype/category-Lu: New file.
1366         * modules/unictype/category-Ll: New file.
1367         * modules/unictype/category-Lt: New file.
1368         * modules/unictype/category-Lm: New file.
1369         * modules/unictype/category-Lo: New file.
1370         * modules/unictype/category-M: New file.
1371         * modules/unictype/category-Mn: New file.
1372         * modules/unictype/category-Mc: New file.
1373         * modules/unictype/category-Me: New file.
1374         * modules/unictype/category-N: New file.
1375         * modules/unictype/category-Nd: New file.
1376         * modules/unictype/category-Nl: New file.
1377         * modules/unictype/category-No: New file.
1378         * modules/unictype/category-P: New file.
1379         * modules/unictype/category-Pc: New file.
1380         * modules/unictype/category-Pd: New file.
1381         * modules/unictype/category-Ps: New file.
1382         * modules/unictype/category-Pe: New file.
1383         * modules/unictype/category-Pi: New file.
1384         * modules/unictype/category-Pf: New file.
1385         * modules/unictype/category-Po: New file.
1386         * modules/unictype/category-S: New file.
1387         * modules/unictype/category-Sm: New file.
1388         * modules/unictype/category-Sc: New file.
1389         * modules/unictype/category-Sk: New file.
1390         * modules/unictype/category-So: New file.
1391         * modules/unictype/category-Z: New file.
1392         * modules/unictype/category-Zs: New file.
1393         * modules/unictype/category-Zl: New file.
1394         * modules/unictype/category-Zp: New file.
1395         * modules/unictype/category-C: New file.
1396         * modules/unictype/category-Cc: New file.
1397         * modules/unictype/category-Cf: New file.
1398         * modules/unictype/category-Cs: New file.
1399         * modules/unictype/category-Co: New file.
1400         * modules/unictype/category-Cn: New file.
1401         * modules/unictype/category-or: New file.
1402         * modules/unictype/category-of: New file.
1403         * modules/unictype/category-test: New file.
1404         * modules/unictype/category-test-withtable: New file.
1405         * modules/unictype/category-byname: New file.
1406         * modules/unictype/category-none: New file.
1407         * modules/unictype/category-and: New file.
1408         * modules/unictype/category-and-not: New file.
1409         * modules/unictype/category-name: New file.
1410         * modules/unictype/combining-class: New file.
1411         * modules/unictype/category-all: New file.
1412         * modules/unictype/bidicategory-all: New file.
1413         * modules/unictype/bidicategory-byname: New file.
1414         * modules/unictype/bidicategory-name: New file.
1415         * modules/unictype/bidicategory-of: New file.
1416         * modules/unictype/bidicategory-test: New file.
1417         * modules/unictype/decimal-digit: New file.
1418         * modules/unictype/digit: New file.
1419         * modules/unictype/numeric: New file.
1420         * modules/unictype/mirror: New file.
1421         * modules/unictype/property-white-space: New file.
1422         * modules/unictype/property-alphabetic: New file.
1423         * modules/unictype/property-other-alphabetic: New file.
1424         * modules/unictype/property-not-a-character: New file.
1425         * modules/unictype/property-default-ignorable-code-point: New file.
1426         * modules/unictype/property-other-default-ignorable-code-point: New
1427         file.
1428         * modules/unictype/property-deprecated: New file.
1429         * modules/unictype/property-logical-order-exception: New file.
1430         * modules/unictype/property-variation-selector: New file.
1431         * modules/unictype/property-private-use: New file.
1432         * modules/unictype/property-unassigned-code-value: New file.
1433         * modules/unictype/property-uppercase: New file.
1434         * modules/unictype/property-other-uppercase: New file.
1435         * modules/unictype/property-lowercase: New file.
1436         * modules/unictype/property-other-lowercase: New file.
1437         * modules/unictype/property-titlecase: New file.
1438         * modules/unictype/property-soft-dotted: New file.
1439         * modules/unictype/property-id-start: New file.
1440         * modules/unictype/property-other-id-start: New file.
1441         * modules/unictype/property-id-continue: New file.
1442         * modules/unictype/property-other-id-continue: New file.
1443         * modules/unictype/property-xid-start: New file.
1444         * modules/unictype/property-xid-continue: New file.
1445         * modules/unictype/property-pattern-white-space: New file.
1446         * modules/unictype/property-pattern-syntax: New file.
1447         * modules/unictype/property-join-control: New file.
1448         * modules/unictype/property-grapheme-base: New file.
1449         * modules/unictype/property-grapheme-extend: New file.
1450         * modules/unictype/property-other-grapheme-extend: New file.
1451         * modules/unictype/property-grapheme-link: New file.
1452         * modules/unictype/property-bidi-control: New file.
1453         * modules/unictype/property-bidi-left-to-right: New file.
1454         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
1455         * modules/unictype/property-bidi-arabic-right-to-left: New file.
1456         * modules/unictype/property-bidi-european-digit: New file.
1457         * modules/unictype/property-bidi-eur-num-separator: New file.
1458         * modules/unictype/property-bidi-eur-num-terminator: New file.
1459         * modules/unictype/property-bidi-arabic-digit: New file.
1460         * modules/unictype/property-bidi-common-separator: New file.
1461         * modules/unictype/property-bidi-block-separator: New file.
1462         * modules/unictype/property-bidi-segment-separator: New file.
1463         * modules/unictype/property-bidi-whitespace: New file.
1464         * modules/unictype/property-bidi-non-spacing-mark: New file.
1465         * modules/unictype/property-bidi-boundary-neutral: New file.
1466         * modules/unictype/property-bidi-pdf: New file.
1467         * modules/unictype/property-bidi-embedding-or-override: New file.
1468         * modules/unictype/property-bidi-other-neutral: New file.
1469         * modules/unictype/property-hex-digit: New file.
1470         * modules/unictype/property-ascii-hex-digit: New file.
1471         * modules/unictype/property-ideographic: New file.
1472         * modules/unictype/property-unified-ideograph: New file.
1473         * modules/unictype/property-radical: New file.
1474         * modules/unictype/property-ids-binary-operator: New file.
1475         * modules/unictype/property-ids-trinary-operator: New file.
1476         * modules/unictype/property-zero-width: New file.
1477         * modules/unictype/property-space: New file.
1478         * modules/unictype/property-non-break: New file.
1479         * modules/unictype/property-iso-control: New file.
1480         * modules/unictype/property-format-control: New file.
1481         * modules/unictype/property-dash: New file.
1482         * modules/unictype/property-hyphen: New file.
1483         * modules/unictype/property-punctuation: New file.
1484         * modules/unictype/property-line-separator: New file.
1485         * modules/unictype/property-paragraph-separator: New file.
1486         * modules/unictype/property-quotation-mark: New file.
1487         * modules/unictype/property-sentence-terminal: New file.
1488         * modules/unictype/property-terminal-punctuation: New file.
1489         * modules/unictype/property-currency-symbol: New file.
1490         * modules/unictype/property-math: New file.
1491         * modules/unictype/property-other-math: New file.
1492         * modules/unictype/property-paired-punctuation: New file.
1493         * modules/unictype/property-left-of-pair: New file.
1494         * modules/unictype/property-combining: New file.
1495         * modules/unictype/property-composite: New file.
1496         * modules/unictype/property-decimal-digit: New file.
1497         * modules/unictype/property-numeric: New file.
1498         * modules/unictype/property-diacritic: New file.
1499         * modules/unictype/property-extender: New file.
1500         * modules/unictype/property-ignorable-control: New file.
1501         * modules/unictype/property-test: New file.
1502         * modules/unictype/property-byname: New file.
1503         * modules/unictype/property-all: New file.
1504         * modules/unictype/scripts: New file.
1505         * modules/unictype/scripts-all: New file.
1506         * modules/unictype/block-of: New file.
1507         * modules/unictype/block-test: New file.
1508         * modules/unictype/block-list: New file.
1509         * modules/unictype/block-all: New file.
1510         * modules/unictype/syntax-c-whitespace: New file.
1511         * modules/unictype/syntax-java-whitespace: New file.
1512         * modules/unictype/syntax-c-ident: New file.
1513         * modules/unictype/syntax-java-ident: New file.
1514         * modules/unictype/ctype-alnum: New file.
1515         * modules/unictype/ctype-alpha: New file.
1516         * modules/unictype/ctype-cntrl: New file.
1517         * modules/unictype/ctype-digit: New file.
1518         * modules/unictype/ctype-graph: New file.
1519         * modules/unictype/ctype-lower: New file.
1520         * modules/unictype/ctype-print: New file.
1521         * modules/unictype/ctype-punct: New file.
1522         * modules/unictype/ctype-space: New file.
1523         * modules/unictype/ctype-upper: New file.
1524         * modules/unictype/ctype-xdigit: New file.
1525         * modules/unictype/ctype-blank: New file.
1526         * lib/unictype/bidi_byname.c: New file.
1527         * lib/unictype/bidi_name.c: New file.
1528         * lib/unictype/bidi_of.c: New file.
1529         * lib/unictype/bidi_test.c: New file.
1530         * lib/unictype/bitmap.h: New file.
1531         * lib/unictype/block_test.c: New file.
1532         * lib/unictype/blocks.c: New file.
1533         * lib/unictype/categ_C.c: New file.
1534         * lib/unictype/categ_Cc.c: New file.
1535         * lib/unictype/categ_Cf.c: New file.
1536         * lib/unictype/categ_Cn.c: New file.
1537         * lib/unictype/categ_Co.c: New file.
1538         * lib/unictype/categ_Cs.c: New file.
1539         * lib/unictype/categ_L.c: New file.
1540         * lib/unictype/categ_Ll.c: New file.
1541         * lib/unictype/categ_Lm.c: New file.
1542         * lib/unictype/categ_Lo.c: New file.
1543         * lib/unictype/categ_Lt.c: New file.
1544         * lib/unictype/categ_Lu.c: New file.
1545         * lib/unictype/categ_M.c: New file.
1546         * lib/unictype/categ_Mc.c: New file.
1547         * lib/unictype/categ_Me.c: New file.
1548         * lib/unictype/categ_Mn.c: New file.
1549         * lib/unictype/categ_N.c: New file.
1550         * lib/unictype/categ_Nd.c: New file.
1551         * lib/unictype/categ_Nl.c: New file.
1552         * lib/unictype/categ_No.c: New file.
1553         * lib/unictype/categ_P.c: New file.
1554         * lib/unictype/categ_Pc.c: New file.
1555         * lib/unictype/categ_Pd.c: New file.
1556         * lib/unictype/categ_Pe.c: New file.
1557         * lib/unictype/categ_Pf.c: New file.
1558         * lib/unictype/categ_Pi.c: New file.
1559         * lib/unictype/categ_Po.c: New file.
1560         * lib/unictype/categ_Ps.c: New file.
1561         * lib/unictype/categ_S.c: New file.
1562         * lib/unictype/categ_Sc.c: New file.
1563         * lib/unictype/categ_Sk.c: New file.
1564         * lib/unictype/categ_Sm.c: New file.
1565         * lib/unictype/categ_So.c: New file.
1566         * lib/unictype/categ_Z.c: New file.
1567         * lib/unictype/categ_Zl.c: New file.
1568         * lib/unictype/categ_Zp.c: New file.
1569         * lib/unictype/categ_Zs.c: New file.
1570         * lib/unictype/categ_and.c: New file.
1571         * lib/unictype/categ_and_not.c: New file.
1572         * lib/unictype/categ_byname.c: New file.
1573         * lib/unictype/categ_name.c: New file.
1574         * lib/unictype/categ_none.c: New file.
1575         * lib/unictype/categ_of.c: New file.
1576         * lib/unictype/categ_or.c: New file.
1577         * lib/unictype/categ_test.c: New file.
1578         * lib/unictype/combining.c: New file.
1579         * lib/unictype/ctype_alnum.c: New file.
1580         * lib/unictype/ctype_alpha.c: New file.
1581         * lib/unictype/ctype_blank.c: New file.
1582         * lib/unictype/ctype_cntrl.c: New file.
1583         * lib/unictype/ctype_digit.c: New file.
1584         * lib/unictype/ctype_graph.c: New file.
1585         * lib/unictype/ctype_lower.c: New file.
1586         * lib/unictype/ctype_print.c: New file.
1587         * lib/unictype/ctype_punct.c: New file.
1588         * lib/unictype/ctype_space.c: New file.
1589         * lib/unictype/ctype_upper.c: New file.
1590         * lib/unictype/ctype_xdigit.c: New file.
1591         * lib/unictype/decdigit.c: New file.
1592         * lib/unictype/digit.c: New file.
1593         * lib/unictype/identsyntaxmap.h: New file.
1594         * lib/unictype/mirror.c: New file.
1595         * lib/unictype/numeric.c: New file.
1596         * lib/unictype/pr_alphabetic.c: New file.
1597         * lib/unictype/pr_ascii_hex_digit.c: New file.
1598         * lib/unictype/pr_bidi_arabic_digit.c: New file.
1599         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
1600         * lib/unictype/pr_bidi_block_separator.c: New file.
1601         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
1602         * lib/unictype/pr_bidi_common_separator.c: New file.
1603         * lib/unictype/pr_bidi_control.c: New file.
1604         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
1605         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
1606         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
1607         * lib/unictype/pr_bidi_european_digit.c: New file.
1608         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
1609         * lib/unictype/pr_bidi_left_to_right.c: New file.
1610         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
1611         * lib/unictype/pr_bidi_other_neutral.c: New file.
1612         * lib/unictype/pr_bidi_pdf.c: New file.
1613         * lib/unictype/pr_bidi_segment_separator.c: New file.
1614         * lib/unictype/pr_bidi_whitespace.c: New file.
1615         * lib/unictype/pr_byname.c: New file.
1616         * lib/unictype/pr_byname.gperf: New file.
1617         * lib/unictype/pr_combining.c: New file.
1618         * lib/unictype/pr_composite.c: New file.
1619         * lib/unictype/pr_currency_symbol.c: New file.
1620         * lib/unictype/pr_dash.c: New file.
1621         * lib/unictype/pr_decimal_digit.c: New file.
1622         * lib/unictype/pr_default_ignorable_code_point.c: New file.
1623         * lib/unictype/pr_deprecated.c: New file.
1624         * lib/unictype/pr_diacritic.c: New file.
1625         * lib/unictype/pr_extender.c: New file.
1626         * lib/unictype/pr_format_control.c: New file.
1627         * lib/unictype/pr_grapheme_base.c: New file.
1628         * lib/unictype/pr_grapheme_extend.c: New file.
1629         * lib/unictype/pr_grapheme_link.c: New file.
1630         * lib/unictype/pr_hex_digit.c: New file.
1631         * lib/unictype/pr_hyphen.c: New file.
1632         * lib/unictype/pr_id_continue.c: New file.
1633         * lib/unictype/pr_id_start.c: New file.
1634         * lib/unictype/pr_ideographic.c: New file.
1635         * lib/unictype/pr_ids_binary_operator.c: New file.
1636         * lib/unictype/pr_ids_trinary_operator.c: New file.
1637         * lib/unictype/pr_ignorable_control.c: New file.
1638         * lib/unictype/pr_iso_control.c: New file.
1639         * lib/unictype/pr_join_control.c: New file.
1640         * lib/unictype/pr_left_of_pair.c: New file.
1641         * lib/unictype/pr_line_separator.c: New file.
1642         * lib/unictype/pr_logical_order_exception.c: New file.
1643         * lib/unictype/pr_lowercase.c: New file.
1644         * lib/unictype/pr_math.c: New file.
1645         * lib/unictype/pr_non_break.c: New file.
1646         * lib/unictype/pr_not_a_character.c: New file.
1647         * lib/unictype/pr_numeric.c: New file.
1648         * lib/unictype/pr_other_alphabetic.c: New file.
1649         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
1650         * lib/unictype/pr_other_grapheme_extend.c: New file.
1651         * lib/unictype/pr_other_id_continue.c: New file.
1652         * lib/unictype/pr_other_id_start.c: New file.
1653         * lib/unictype/pr_other_lowercase.c: New file.
1654         * lib/unictype/pr_other_math.c: New file.
1655         * lib/unictype/pr_other_uppercase.c: New file.
1656         * lib/unictype/pr_paired_punctuation.c: New file.
1657         * lib/unictype/pr_paragraph_separator.c: New file.
1658         * lib/unictype/pr_pattern_syntax.c: New file.
1659         * lib/unictype/pr_pattern_white_space.c: New file.
1660         * lib/unictype/pr_private_use.c: New file.
1661         * lib/unictype/pr_punctuation.c: New file.
1662         * lib/unictype/pr_quotation_mark.c: New file.
1663         * lib/unictype/pr_radical.c: New file.
1664         * lib/unictype/pr_sentence_terminal.c: New file.
1665         * lib/unictype/pr_soft_dotted.c: New file.
1666         * lib/unictype/pr_space.c: New file.
1667         * lib/unictype/pr_terminal_punctuation.c: New file.
1668         * lib/unictype/pr_test.c: New file.
1669         * lib/unictype/pr_titlecase.c: New file.
1670         * lib/unictype/pr_unassigned_code_value.c: New file.
1671         * lib/unictype/pr_unified_ideograph.c: New file.
1672         * lib/unictype/pr_uppercase.c: New file.
1673         * lib/unictype/pr_variation_selector.c: New file.
1674         * lib/unictype/pr_white_space.c: New file.
1675         * lib/unictype/pr_xid_continue.c: New file.
1676         * lib/unictype/pr_xid_start.c: New file.
1677         * lib/unictype/pr_zero_width.c: New file.
1678         * lib/unictype/scripts.c: New file.
1679         * lib/unictype/sy_c_ident.c: New file.
1680         * lib/unictype/sy_c_whitespace.c: New file.
1681         * lib/unictype/sy_java_ident.c: New file.
1682         * lib/unictype/sy_java_whitespace.c: New file.
1683
1684         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
1685         Unicode 5.0.0.
1686         * lib/unictype/blocks.h: Likewise.
1687         * lib/unictype/categ_C.h: Likewise.
1688         * lib/unictype/categ_Cc.h: Likewise.
1689         * lib/unictype/categ_Cf.h: Likewise.
1690         * lib/unictype/categ_Cn.h: Likewise.
1691         * lib/unictype/categ_Co.h: Likewise.
1692         * lib/unictype/categ_Cs.h: Likewise.
1693         * lib/unictype/categ_L.h: Likewise.
1694         * lib/unictype/categ_Ll.h: Likewise.
1695         * lib/unictype/categ_Lm.h: Likewise.
1696         * lib/unictype/categ_Lo.h: Likewise.
1697         * lib/unictype/categ_Lt.h: Likewise.
1698         * lib/unictype/categ_Lu.h: Likewise.
1699         * lib/unictype/categ_M.h: Likewise.
1700         * lib/unictype/categ_Mc.h: Likewise.
1701         * lib/unictype/categ_Me.h: Likewise.
1702         * lib/unictype/categ_Mn.h: Likewise.
1703         * lib/unictype/categ_N.h: Likewise.
1704         * lib/unictype/categ_Nd.h: Likewise.
1705         * lib/unictype/categ_Nl.h: Likewise.
1706         * lib/unictype/categ_No.h: Likewise.
1707         * lib/unictype/categ_P.h: Likewise.
1708         * lib/unictype/categ_Pc.h: Likewise.
1709         * lib/unictype/categ_Pd.h: Likewise.
1710         * lib/unictype/categ_Pe.h: Likewise.
1711         * lib/unictype/categ_Pf.h: Likewise.
1712         * lib/unictype/categ_Pi.h: Likewise.
1713         * lib/unictype/categ_Po.h: Likewise.
1714         * lib/unictype/categ_Ps.h: Likewise.
1715         * lib/unictype/categ_S.h: Likewise.
1716         * lib/unictype/categ_Sc.h: Likewise.
1717         * lib/unictype/categ_Sk.h: Likewise.
1718         * lib/unictype/categ_Sm.h: Likewise.
1719         * lib/unictype/categ_So.h: Likewise.
1720         * lib/unictype/categ_Z.h: Likewise.
1721         * lib/unictype/categ_Zl.h: Likewise.
1722         * lib/unictype/categ_Zp.h: Likewise.
1723         * lib/unictype/categ_Zs.h: Likewise.
1724         * lib/unictype/categ_of.h: Likewise.
1725         * lib/unictype/combining.h: Likewise.
1726         * lib/unictype/ctype_alnum.h: Likewise.
1727         * lib/unictype/ctype_alpha.h: Likewise.
1728         * lib/unictype/ctype_blank.h: Likewise.
1729         * lib/unictype/ctype_cntrl.h: Likewise.
1730         * lib/unictype/ctype_digit.h: Likewise.
1731         * lib/unictype/ctype_graph.h: Likewise.
1732         * lib/unictype/ctype_lower.h: Likewise.
1733         * lib/unictype/ctype_print.h: Likewise.
1734         * lib/unictype/ctype_punct.h: Likewise.
1735         * lib/unictype/ctype_space.h: Likewise.
1736         * lib/unictype/ctype_upper.h: Likewise.
1737         * lib/unictype/ctype_xdigit.h: Likewise.
1738         * lib/unictype/decdigit.h: Likewise.
1739         * lib/unictype/digit.h: Likewise.
1740         * lib/unictype/mirror.h: Likewise.
1741         * lib/unictype/numeric.h: Likewise.
1742         * lib/unictype/pr_alphabetic.h: Likewise.
1743         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
1744         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
1745         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
1746         * lib/unictype/pr_bidi_block_separator.h: Likewise.
1747         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
1748         * lib/unictype/pr_bidi_common_separator.h: Likewise.
1749         * lib/unictype/pr_bidi_control.h: Likewise.
1750         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
1751         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
1752         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
1753         * lib/unictype/pr_bidi_european_digit.h: Likewise.
1754         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
1755         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
1756         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
1757         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
1758         * lib/unictype/pr_bidi_pdf.h: Likewise.
1759         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
1760         * lib/unictype/pr_bidi_whitespace.h: Likewise.
1761         * lib/unictype/pr_combining.h: Likewise.
1762         * lib/unictype/pr_composite.h: Likewise.
1763         * lib/unictype/pr_currency_symbol.h: Likewise.
1764         * lib/unictype/pr_dash.h: Likewise.
1765         * lib/unictype/pr_decimal_digit.h: Likewise.
1766         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
1767         * lib/unictype/pr_deprecated.h: Likewise.
1768         * lib/unictype/pr_diacritic.h: Likewise.
1769         * lib/unictype/pr_extender.h: Likewise.
1770         * lib/unictype/pr_format_control.h: Likewise.
1771         * lib/unictype/pr_grapheme_base.h: Likewise.
1772         * lib/unictype/pr_grapheme_extend.h: Likewise.
1773         * lib/unictype/pr_grapheme_link.h: Likewise.
1774         * lib/unictype/pr_hex_digit.h: Likewise.
1775         * lib/unictype/pr_hyphen.h: Likewise.
1776         * lib/unictype/pr_id_continue.h: Likewise.
1777         * lib/unictype/pr_id_start.h: Likewise.
1778         * lib/unictype/pr_ideographic.h: Likewise.
1779         * lib/unictype/pr_ids_binary_operator.h: Likewise.
1780         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
1781         * lib/unictype/pr_ignorable_control.h: Likewise.
1782         * lib/unictype/pr_iso_control.h: Likewise.
1783         * lib/unictype/pr_join_control.h: Likewise.
1784         * lib/unictype/pr_left_of_pair.h: Likewise.
1785         * lib/unictype/pr_line_separator.h: Likewise.
1786         * lib/unictype/pr_logical_order_exception.h: Likewise.
1787         * lib/unictype/pr_lowercase.h: Likewise.
1788         * lib/unictype/pr_math.h: Likewise.
1789         * lib/unictype/pr_non_break.h: Likewise.
1790         * lib/unictype/pr_not_a_character.h: Likewise.
1791         * lib/unictype/pr_numeric.h: Likewise.
1792         * lib/unictype/pr_other_alphabetic.h: Likewise.
1793         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
1794         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
1795         * lib/unictype/pr_other_id_continue.h: Likewise.
1796         * lib/unictype/pr_other_id_start.h: Likewise.
1797         * lib/unictype/pr_other_lowercase.h: Likewise.
1798         * lib/unictype/pr_other_math.h: Likewise.
1799         * lib/unictype/pr_other_uppercase.h: Likewise.
1800         * lib/unictype/pr_paired_punctuation.h: Likewise.
1801         * lib/unictype/pr_paragraph_separator.h: Likewise.
1802         * lib/unictype/pr_pattern_syntax.h: Likewise.
1803         * lib/unictype/pr_pattern_white_space.h: Likewise.
1804         * lib/unictype/pr_private_use.h: Likewise.
1805         * lib/unictype/pr_punctuation.h: Likewise.
1806         * lib/unictype/pr_quotation_mark.h: Likewise.
1807         * lib/unictype/pr_radical.h: Likewise.
1808         * lib/unictype/pr_sentence_terminal.h: Likewise.
1809         * lib/unictype/pr_soft_dotted.h: Likewise.
1810         * lib/unictype/pr_space.h: Likewise.
1811         * lib/unictype/pr_terminal_punctuation.h: Likewise.
1812         * lib/unictype/pr_titlecase.h: Likewise.
1813         * lib/unictype/pr_unassigned_code_value.h: Likewise.
1814         * lib/unictype/pr_unified_ideograph.h: Likewise.
1815         * lib/unictype/pr_uppercase.h: Likewise.
1816         * lib/unictype/pr_variation_selector.h: Likewise.
1817         * lib/unictype/pr_white_space.h: Likewise.
1818         * lib/unictype/pr_xid_continue.h: Likewise.
1819         * lib/unictype/pr_xid_start.h: Likewise.
1820         * lib/unictype/pr_zero_width.h: Likewise.
1821         * lib/unictype/scripts.h: Likewise.
1822         * lib/unictype/scripts_byname.gperf: Likewise.
1823         * lib/unictype/sy_c_ident.h: Likewise.
1824         * lib/unictype/sy_c_whitespace.h: Likewise.
1825         * lib/unictype/sy_java_ident.h: Likewise.
1826         * lib/unictype/sy_java_whitespace.h: Likewise.
1827
1828         * lib/unictype/Makefile: New file.
1829         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
1830         glibc.
1831         * lib/unictype/3level.h: New file, copied from glibc.
1832         * lib/unictype/3levelbit.h: New file.
1833
1834 2007-11-11  Bruno Haible  <bruno@clisp.org>
1835
1836         * modules/gperf: New file.
1837         * modules/iconv_open (Depends-on): Add it.
1838         (Makefile.am): Remove the GPERF definition.
1839
1840 2007-11-11  Bruno Haible  <bruno@clisp.org>
1841
1842         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
1843         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
1844
1845 2007-11-11  Bruno Haible  <bruno@clisp.org>
1846
1847         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
1848         (usage): Remove function.
1849
1850 2007-11-11  Bruno Haible  <bruno@clisp.org>
1851
1852         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
1853         gl_FUNC_CEILF_LIBS.
1854         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
1855         gl_FUNC_CEIL_LIBS.
1856         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
1857         gl_FUNC_CEILL_LIBS.
1858         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
1859         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
1860         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
1861
1862 2007-11-11  Bruno Haible  <bruno@clisp.org>
1863
1864         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
1865         roundf were declared but do not exist on functions.
1866         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
1867         roundl were declared but do not exist on functions.
1868         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
1869         HAVE_FLOORL_AND_CEILL, respectively.
1870         Needed for Sun C on Solaris 10.
1871
1872 2007-11-11  Bruno Haible  <bruno@clisp.org>
1873
1874         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
1875         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
1876         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
1877         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
1878         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
1879         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
1880         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
1881         HAVE_DECL_ROUNDF.
1882         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
1883         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
1884         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
1885         of HAVE_DECL_ROUND*.
1886         * modules/math (Makefile.am): Update.
1887
1888 2007-11-10  Bruno Haible  <bruno@clisp.org>
1889
1890         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
1891         ptrdiff_t as m4/intl.m4.
1892
1893 2007-11-10  Jim Meyering  <meyering@redhat.com>
1894
1895         Avoid link failure for the argmatch test.
1896         * tests/test-argmatch.c (usage): Define function to avoid a link
1897         failure: argmatch_die requires a usage function.
1898
1899 2007-11-09  Bruno Haible  <bruno@clisp.org>
1900
1901         * doc/functions/snprintf.texi: Mention BeOS deficiency.
1902         * doc/functions/vsnprintf.texi: Likewise.
1903         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
1904         with a size argument < 2.
1905
1906 2007-11-09  Bruno Haible  <bruno@clisp.org>
1907
1908         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
1909         buffer. Fixes an inefficiency introduced on 2007-11-03.
1910
1911 2007-11-09  Bruno Haible  <bruno@clisp.org>
1912
1913         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
1914         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
1915
1916 2007-11-08  Jim Meyering  <meyering@redhat.com>
1917
1918         Change cache variable name prefix "jm_" to "gl_" everywhere.
1919         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
1920         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
1921         * m4/uptime.m4: s/gl_/jm_/
1922
1923 2007-11-07  Bruno Haible  <bruno@clisp.org>
1924
1925         Update to GNU gettext 0.17.
1926         * m4/intl.m4: Update to GNU gettext 0.17.
1927         * m4/po.m4: Likewise.
1928         * modules/gettext (Files): Remove m4/ulonglong.m4.
1929         (configure.ac): Require gettext infrastructure from version 0.17.
1930
1931 2007-11-06  Bruno Haible  <bruno@clisp.org>
1932
1933         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
1934         symbolic values are not defined in a public header.
1935         * lib/freadable.c (freadable) [QNX]: Likewise.
1936         * lib/freadahead.c (freadahead) [QNX]: Likewise.
1937         * lib/freading.c (freading) [QNX]: Likewise.
1938         * lib/fseterr.c (fseterr) [QNX]: Likewise.
1939         * lib/fwritable.c (fwritable) [QNX]: Likewise.
1940         * lib/fwriting.c (fwriting) [QNX]: Likewise.
1941         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
1942         Reported by Alain Magloire.
1943
1944         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
1945
1946 2007-11-05  Bruno Haible  <bruno@clisp.org>
1947
1948         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
1949         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
1950         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
1951         Reported by Eric Blake.
1952
1953 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1954             Bruno Haible  <bruno@clisp.org>
1955
1956         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
1957         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
1958         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
1959         (malloc): Undefine also before including <stdlib.h>.
1960         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
1961         Needed on OSF/1 4.0.
1962
1963 2007-11-05  Jim Meyering  <meyering@redhat.com>
1964
1965         git-version-gen: sync from coreutils.
1966         * build-aux/git-version-gen: Add comments.
1967         Change the first '-' to '.' in the snapshot version string,
1968         e.g., 6.9-377-08144 -> 6.9.377-08144
1969         Remove first parameter.
1970         Don't declare a version "-dirty" merely because a time
1971         stamp has changed.
1972
1973 2007-11-04  Bruno Haible  <bruno@clisp.org>
1974
1975         * lib/lock.h: Protect all macro definitions containing an 'if'
1976         statement through a "do { ... } while (0)".
1977         * lib/tls.h: Likewise.
1978
1979 2007-11-04  Bruno Haible  <bruno@clisp.org>
1980
1981         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
1982
1983 2007-11-04  Bruno Haible  <bruno@clisp.org>
1984
1985         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
1986         * modules/fprintf-posix (Depends-on): Add nocrash.
1987         * modules/snprintf-posix (Depends-on): Likewise.
1988         * modules/sprintf-posix (Depends-on): Likewise.
1989         * modules/vasnprintf-posix (Depends-on): Likewise.
1990         * modules/vasprintf-posix (Depends-on): Likewise.
1991         * modules/vfprintf-posix (Depends-on): Likewise.
1992         * modules/vsnprintf-posix (Depends-on): Likewise.
1993         * modules/vsprintf-posix (Depends-on): Likewise.
1994         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
1995         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
1996         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
1997         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
1998         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
1999         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
2000         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
2001
2002 2007-11-04  Bruno Haible  <bruno@clisp.org>
2003
2004         * modules/nocrash: New file.
2005         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
2006         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
2007
2008 2007-11-04  Bruno Haible  <bruno@clisp.org>
2009
2010         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
2011         precision handling.
2012         * tests/test-vasprintf-posix.c (test_function): Likewise.
2013         * tests/test-snprintf-posix.h (test_function): Likewise.
2014         * tests/test-sprintf-posix.h (test_function): Likewise.
2015
2016         Fix *printf behaviour for large precisions on mingw and BeOS.
2017         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
2018         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
2019         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
2020         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
2021         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2022         gl_PRINTF_PRECISION and test its result. Invoke
2023         gl_PREREQ_VASNPRINTF_PRECISION.
2024         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2025         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2026         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2027         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2028         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2029         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2030         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2031         * doc/functions/fprintf.texi: Update.
2032         * doc/functions/printf.texi: Update.
2033         * doc/functions/snprintf.texi: Update.
2034         * doc/functions/sprintf.texi: Update.
2035         * doc/functions/vfprintf.texi: Update.
2036         * doc/functions/vprintf.texi: Update.
2037         * doc/functions/vsnprintf.texi: Update.
2038         * doc/functions/vsprintf.texi: Update.
2039
2040 2007-11-04  Bruno Haible  <bruno@clisp.org>
2041
2042         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
2043
2044 2007-11-04  Bruno Haible  <bruno@clisp.org>
2045
2046         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
2047         Reported by Sylvain Beucler <beuc@gnu.org>.
2048
2049 2007-11-03  Bruno Haible  <bruno@clisp.org>
2050
2051         * tests/test-fprintf-posix2.sh: New file.
2052         * tests/test-fprintf-posix2.c: New file.
2053         * modules/fprintf-posix-tests (Files): Add them.
2054         (TESTS): Add test-fprintf-posix2.sh.
2055         (configure.ac): Check for getrlimit and setrlimit.
2056         (check_PROGRAMS): Add test-fprintf-posix2.
2057
2058         * tests/test-printf-posix2.sh: New file.
2059         * tests/test-printf-posix2.c: New file.
2060         * modules/printf-posix-tests (Files): Add them.
2061         (TESTS): Add test-printf-posix2.sh.
2062         (configure.ac): Check for getrlimit and setrlimit.
2063         (check_PROGRAMS): Add test-printf-posix2.
2064
2065         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
2066         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
2067         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
2068         (decode_double): New function, copied from decode_long_double.
2069         (scale10_round_decimal_decoded): New function, extracted from
2070         scale10_round_decimal_long_double.
2071         (scale10_round_decimal_long_double): Use it.
2072         (scale10_round_decimal_double): New function.
2073         (floorlog10): New function.
2074         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
2075         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
2076         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
2077         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2078         gl_PRINTF_ENOMEM and test its result. Invoke
2079         gl_PREREQ_VASNPRINTF_ENOMEM.
2080         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2081         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2082         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2083         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2084         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2085         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2086         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2087         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
2088         * modules/snprintf-posix (Depends-on): Likewise.
2089         * modules/sprintf-posix (Depends-on): Likewise.
2090         * modules/vasnprintf-posix (Depends-on): Likewise.
2091         * modules/vasprintf-posix (Depends-on): Likewise.
2092         * modules/vfprintf-posix (Depends-on): Likewise.
2093         * modules/vsnprintf-posix (Depends-on): Likewise.
2094         * modules/vsprintf-posix (Depends-on): Likewise.
2095         * doc/functions/fprintf.texi: Update.
2096         * doc/functions/printf.texi: Update.
2097         * doc/functions/snprintf.texi: Update.
2098         * doc/functions/sprintf.texi: Update.
2099         * doc/functions/vfprintf.texi: Update.
2100         * doc/functions/vprintf.texi: Update.
2101         * doc/functions/vsnprintf.texi: Update.
2102         * doc/functions/vsprintf.texi: Update.
2103
2104 2007-11-03  Bruno Haible  <bruno@clisp.org>
2105
2106         * modules/frexp-nolibm-tests: New file.
2107
2108         * modules/frexp-nolibm: New file.
2109         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
2110
2111 2007-11-03  Bruno Haible  <bruno@clisp.org>
2112
2113         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
2114         value is C99 compliant.
2115         Needed for OSF/1 5.1.
2116
2117 2007-11-03  Bruno Haible  <bruno@clisp.org>
2118
2119         Fix out-of-memory handling of vasnprintf.
2120         * lib/printf-parse.c: Include <errno.h>.
2121         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
2122         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
2123         is already set.
2124
2125 2007-11-02  Eric Blake  <ebb9@byu.net>
2126
2127         Fix tests on cygwin.
2128         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
2129
2130 2007-11-01  Bruno Haible  <bruno@clisp.org>
2131
2132         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
2133         warning.
2134         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
2135         needed for POSIX compatibility.
2136
2137 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
2138
2139         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
2140         for compatibility with GNU.
2141
2142 2007-11-01  Bruno Haible  <bruno@clisp.org>
2143
2144         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
2145         (putenv): Renamed from rpl_putenv. Change argument type from
2146         'const char *' to 'char *'.
2147         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
2148         of defining putenv in config.h, just set REPLACE_PUTENV.
2149         * modules/putenv (Depends-on): Add stdlib.
2150         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
2151         (Include): Use <stdlib.h>.
2152         * lib/stdlib.in.h (putenv): New declaration.
2153         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
2154         REPLACE_PUTENV.
2155         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
2156         REPLACE_PUTENV.
2157         Needed for MacOS X 10.5.0.
2158         Reported by Peter O'Gorman <peter@pogma.com>.
2159
2160 2007-11-01  Jim Meyering  <meyering@redhat.com>
2161
2162         Treat an empty date string exactly like "0".
2163         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
2164         if the remaining date string (to be parsed) is empty, use "0".
2165         Reported by Mischa Molhoek and discussed in this thread:
2166         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
2167
2168 2007-10-31  Bruno Haible  <bruno@clisp.org>
2169
2170         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
2171         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
2172         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
2173         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
2174         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
2175         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
2176
2177 2007-10-31  Bruno Haible  <bruno@clisp.org>
2178
2179         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
2180         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
2181         (AC_TYPE_LONG_LONG_INT): Use it.
2182         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
2183         it as well.
2184         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
2185         to m4/longlong.m4.
2186         * modules/stdint (Files): Remove m4/ulonglong.m4.
2187         * modules/strtoull (Files): Use m4/longlong.m4 instead of
2188         m4/ulonglong.m4.
2189         * modules/strtoumax (Files): Likewise.
2190
2191 2007-10-30  Bruno Haible  <bruno@clisp.org>
2192
2193         * modules/xvasprintf-posix: New file.
2194         Suggested by Eric Blake.
2195
2196 2007-10-30  Bruno Haible  <bruno@clisp.org>
2197
2198         * modules/xprintf-posix-tests: New file.
2199         * tests/test-xprintf-posix.sh: New file.
2200         * tests/test-xprintf-posix.c: New file.
2201         * tests/test-xfprintf-posix.c: New file.
2202
2203         * modules/xprintf-posix: New file.
2204
2205 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2206
2207         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
2208         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
2209         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
2210
2211 2007-10-29  Bruno Haible  <bruno@clisp.org>
2212
2213         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
2214         contain the special marker '_cv_'.
2215         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
2216         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
2217         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
2218         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
2219         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
2220         Reported by Ralf Wildenhues.
2221
2222 2007-10-29  Bruno Haible  <bruno@clisp.org>
2223
2224         * gnulib-tool (func_import): When --lgpl is not specified, set
2225         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
2226         GPLv3.
2227         Reported by Simon Josefsson.
2228
2229 2007-10-28  Bruno Haible  <bruno@clisp.org>
2230
2231         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
2232         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
2233         HAVE_DECL_ISFINITE.
2234         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
2235         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
2236         HAVE_DECL_ISFINITE.
2237
2238 2007-10-28  Bruno Haible  <bruno@clisp.org>
2239
2240         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
2241         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
2242
2243 2007-10-28  Bruno Haible  <bruno@clisp.org>
2244
2245         Fix link errors with Sun C 5.0 on Solaris 10.
2246         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
2247         function is declared but not present in the compiler's libm.
2248         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
2249         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2250         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
2251         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
2252         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
2253         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
2254         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
2255         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
2256         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
2257         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
2258         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
2259         HAVE_DECL_FLOORL.
2260
2261 2007-10-28  Bruno Haible  <bruno@clisp.org>
2262
2263         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
2264         gl_FUNC_FLOORL. Cache the result.
2265         (gl_FUNC_FLOORL): Use it.
2266         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
2267         gl_FUNC_CEILL. Cache the result.
2268         (gl_FUNC_CEILL): Use it.
2269
2270         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
2271         gl_FUNC_FLOOR. Cache the result.
2272         (gl_FUNC_FLOOR): Use it.
2273         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
2274         gl_FUNC_CEIL. Cache the result.
2275         (gl_FUNC_CEIL): Use it.
2276
2277         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
2278         gl_FUNC_FLOORF. Cache the result.
2279         (gl_FUNC_FLOORF): Use it.
2280         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
2281         gl_FUNC_CEILF. Cache the result.
2282         (gl_FUNC_CEILF): Use it.
2283
2284 2007-10-28  Bruno Haible  <bruno@clisp.org>
2285
2286         * gnulib-tool: Allow specifying the LGPL version number through
2287         --lgpl=2 or --lgpl=3.
2288         (func_usage): Document --lgpl with argument.
2289         Handle --lgpl=... arguments.
2290         (func_import): Recognize also gl_LGPL calls with an argument. When
2291         --lgpl=2 is used and the module's license is just LGPL, report an
2292         error. Set sed_transform_lib_file according to the lgpl variable. In
2293         the generated files, use --lgpl or gl_LGPL invocations with argument,
2294         if necessary.
2295         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
2296         an LGPv2+ license.
2297         * doc/gnulib-tool.texi (Modified imports): Update explanation of
2298         gl_LGPL macro.
2299
2300 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2301             Bruno Haible  <bruno@clisp.org>
2302
2303         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
2304         (u16_uctomb_aux): Likewise.
2305         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
2306         !HAVE_INLINE.
2307         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
2308
2309 2007-10-28  Bruno Haible  <bruno@clisp.org>
2310
2311         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
2312         Invoke AM_GETTEXT_OPTION if it exists.
2313         * modules/vasprintf: Likewise.
2314         * modules/verror: Likewise.
2315         * modules/xprintf: Likewise.
2316         * modules/xvasprintf: Likewise.
2317
2318 2007-10-27  Ben Pfaff  <blp@gnu.org>
2319
2320         * lib/math.in.h: Define isfinite macro and prototypes for
2321         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
2322         implementations.
2323         * m4/math_h.m4: New substitutions for isfinite module.
2324         * lib/isfinite.c: New file.
2325         * m4/isfinite.m4: New file.
2326         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
2327         * modules/isfinite: New file.
2328         * modules/isfinite-tests: New file.
2329         * tests/tests-isfinite.c: New file.
2330         * doc/functions/isfinite.texi: Mention isfinite module.
2331         * MODULES.html.sh: Mention new module.
2332
2333 2007-10-27  Ben Pfaff  <blp@gnu.org>
2334
2335         Ralf Wildenhues reported that Tru64 4.0D declares the round
2336         functions but does not have definitions.
2337         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
2338         cannot be found in any library, set the output variable to
2339         "missing" instead of "".
2340         * m4/round.m4: Also use our substitute if we cannot find round in
2341         any library, even if it is declared.
2342         * m4/roundf.m4: Likewise for roundf.
2343         * m4/roundl.m4: Likewise for roundl.
2344         * lib/math.in.h: Undefine roundf, round, roundl before defining
2345         their replacements, to allow for hypothetical systems where these
2346         may be defined as macros but not available in libraries.
2347
2348 2007-10-27  Bruno Haible  <bruno@clisp.org>
2349
2350         * doc/gnulib.texi: Invoke @firstparagraphindent.
2351         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
2352         changes in gnulib.
2353         (Source changes): New section.
2354
2355 2007-10-26  Bruno Haible  <bruno@clisp.org>
2356
2357         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
2358         borrowed from autoconf.
2359
2360 2007-10-26  Bruno Haible  <bruno@clisp.org>
2361
2362         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
2363         strerror returned the empty string. Needed on HP-UX 11.00.
2364
2365 2007-10-24  Micah Cowan  <micah@cowan.name>
2366
2367         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
2368         * build-aux/bootstrap: Remove support for now-unnecessary option,
2369         --cvs-user, and envvars CVS_USER, CVS_RSH.
2370
2371 2007-10-24  Jim Meyering  <meyering@redhat.com>
2372
2373         Avoid diagnostics from sha1sum when there is no cached checksum.
2374         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
2375         if the po.s1 file hasn't been created yet.
2376
2377         * build-aux/bootstrap: Sync from coreutils:
2378         2007-10-24  Jim Meyering  <meyering@redhat.com>
2379         Get gnulib from the git repository, not from an obsolete cvs one.
2380         * build-aux/bootstrap: Suggestion from Micah Cowan.
2381         2007-10-04  Jim Meyering  <jim@meyering.net>
2382         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
2383         (update_po_files): Work also when there are no .po files in po/.
2384
2385 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
2386
2387         * README: Append ".git" to git and cg examples.
2388         Problem reported by Benoit Sigoure.
2389
2390 2007-10-23  Micah Cowan  <micah@cowan.name>
2391
2392         * users.txt: Add wget.
2393
2394 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2395
2396         Fix linking of some unistdio tests on FreeBSD.
2397         * modules/unistdio/u16-vsnprintf-tests
2398         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
2399         * modules/unistdio/u16-vsprintf-tests
2400         (test_u16_vsnprintf1_LDADD): Likewise.
2401         * modules/unistdio/u32-vsnprintf-tests
2402         (test_u32_vsnprintf1_LDADD): Likewise.
2403         * modules/unistdio/u32-vsprintf-tests
2404         (test_u32_vsprintf1_LDADD): Likewise.
2405         * modules/unistdio/u8-vsnprintf-tests
2406         (test_u8_vsnprintf1_LDADD): Likewise.
2407         * modules/unistdio/u8-vsprintf-tests
2408         (test_u8_vsprintf1_LDADD): Likewise.
2409         * modules/unistdio/ulc-vsnprintf-tests
2410         (test_ulc_vsnprintf1_LDADD): Likewise.
2411         * modules/unistdio/ulc-vsprintf-tests
2412         (test_ulc_vsprintf1_LDADD): Likewise.
2413
2414         Fix linking of some uniconv tests on FreeBSD.
2415         * modules/uniconv/u16-conv-from-enc-tests
2416         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
2417         * modules/uniconv/u16-conv-to-enc-tests
2418         (test_u16_conv_to_enc_LDADD): Likewise.
2419         * modules/uniconv/u16-strconv-from-enc-tests
2420         (test_u16_strconv_from_enc_LDADD): Likewise.
2421         * modules/uniconv/u16-strconv-to-enc-tests
2422         (test_u16_strconv_to_enc_LDADD): Likewise.
2423         * modules/uniconv/u32-conv-from-enc-tests
2424         (test_u32_conv_from_enc_LDADD): Likewise.
2425         * modules/uniconv/u32-conv-to-enc-tests
2426         (test_u32_conv_to_enc_LDADD): Likewise.
2427         * modules/uniconv/u32-strconv-from-enc-tests
2428         (test_u32_strconv_from_enc_LDADD): Likewise.
2429         * modules/uniconv/u32-strconv-to-enc-tests
2430         (test_u32_strconv_to_enc_LDADD): Likewise.
2431         * modules/uniconv/u8-conv-from-enc-tests
2432         (test_u8_conv_from_enc_LDADD): Likewise.
2433         * modules/uniconv/u8-conv-to-enc-tests
2434         (test_u8_conv_to_enc_LDADD): Likewise.
2435         * modules/uniconv/u8-strconv-from-enc-tests
2436         (test_u8_strconv_from_enc_LDADD): Likewise.
2437         * modules/uniconv/u8-strconv-to-enc-tests
2438         (test_u8_strconv_to_enc_LDADD): Likewise.
2439
2440 2007-10-22  Bruno Haible  <bruno@clisp.org>
2441
2442         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
2443         size.
2444
2445 2007-10-22  Eric Blake  <ebb9@byu.net>
2446
2447         Tweak x*printf documentation.
2448         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
2449         variable name and comments.
2450         Suggested by Bruno Haible.
2451
2452 2007-10-22  Bruno Haible  <bruno@clisp.org>
2453
2454         * lib/acl.c (copy_acl): Fix file name in comment.
2455
2456 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
2457
2458         Fix Tru64 problem with stdbool.h.
2459         * lib/stdbool.in.h (false, true):
2460         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
2461         Don't declare as an enum in this situation; it runs afoul of Tru64.
2462         Problem reported by Steven M. Schweda in
2463         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
2464
2465 2007-10-22  Eric Blake  <ebb9@byu.net>
2466
2467         Also wrap vf?printf.
2468         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
2469         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
2470         (xvprintf, xvfprintf): New functions.
2471
2472 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2473
2474         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
2475         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
2476
2477         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
2478         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
2479
2480 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
2481
2482         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
2483         by Bruno Haible.
2484
2485 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2486
2487         * lib/getloadavg.c
2488         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
2489         Undef `sys' after including sys/table.h, for Tru64 4.0D.
2490
2491         * tests/test-i-ring.c: Work for C89.
2492
2493 2007-10-22  Bruno Haible  <bruno@clisp.org>
2494
2495         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
2496         -1u, in preprocessor expression, so that we don't test for the bug
2497         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
2498         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
2499
2500 2007-10-22  Eric Blake  <ebb9@byu.net>
2501
2502         * tests/test-yesno.sh: Silence stderr during test.
2503
2504 2007-10-22  Simon Josefsson  <simon@josefsson.org>
2505
2506         * modules/crypto/gc-camellia: New file.
2507
2508         * m4/gc-camellia.m4: New file.
2509
2510         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
2511
2512         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
2513
2514 2007-10-22  Simon Josefsson  <simon@josefsson.org>
2515
2516         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
2517         --help to stdout.  Reported by sms@antinode.org (Steven
2518         M. Schweda).
2519
2520 2007-10-22  Simon Josefsson  <simon@josefsson.org>
2521
2522         * users.txt: Fix link to libksba.
2523
2524 2007-10-21  Ben Pfaff  <blp@gnu.org>
2525
2526         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
2527         round.c roundf implementation that depends on floorf and ceilf to
2528         be tested unconditionally.
2529
2530 2007-10-21  Ben Pfaff  <blp@gnu.org>
2531
2532         * m4/check-libm-func.m4: Removed.
2533         * m4/check-math-lib.m4: New file.
2534         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
2535         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
2536         definition and lack of AC_LIBOBJ([roundf]).
2537         * m4/roundl.m4: Ditto, and similarly for roundl.
2538         * modules/round: Reference new m4 file.
2539         * modules/roundf: Ditto.
2540         * modules/roundl: Ditto.
2541         * tests/test-round2.c (main): Use ROUND instead of round.
2542         Bug report from Bruno Haible.
2543
2544 2007-10-21  Bruno Haible  <bruno@clisp.org>
2545
2546         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
2547         context.
2548
2549 2007-10-21  Bruno Haible  <bruno@clisp.org>
2550
2551         * tests/test-wcwidth.c (main): Allow negative result for some control
2552         characters.
2553
2554         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
2555         Needed on OSF/1 5.1.
2556
2557 2007-10-21  Bruno Haible  <bruno@clisp.org>
2558
2559         * tests/test-floorf1.c: Include isnanf.h.
2560         (main): Use isnanf() instead of isnan().
2561         * tests/test-ceilf1.c: Include isnanf.h.
2562         (main): Use isnanf() instead of isnan().
2563         * tests/test-truncf1.c: Include isnanf.h.
2564         (main): Use isnanf() instead of isnan().
2565         * tests/test-roundf1.c: Include isnanf.h.
2566         (main): Use isnanf() instead of isnan().
2567
2568 2007-10-21  Eric Blake  <ebb9@byu.net>
2569
2570         * users.txt: Update URL for m4.
2571
2572 2007-10-21  Bruno Haible  <bruno@clisp.org>
2573
2574         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
2575
2576 2007-10-21  Bruno Haible  <bruno@clisp.org>
2577
2578         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
2579         Git's management files if the CVS files are not present.
2580
2581 2007-10-20  Bruno Haible  <bruno@clisp.org>
2582
2583         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
2584         gcc-3.4.x.
2585
2586 2007-10-20  Ben Pfaff  <blp@gnu.org>
2587
2588         * lib/math.in.h: Declare round, roundf, roundl if we are providing
2589         implementations.
2590         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
2591         * lib/round.c: New file.
2592         * lib/roundf.c: New file.
2593         * lib/roundl.c: New file.
2594         * m4/round.m4: New file.
2595         * m4/roundf.m4: New file.
2596         * m4/roundl.m4: New file.
2597         * m4/check-libm-func-m4: New file.
2598         * modules/math: Replace round, roundf, roundl related @VARS@ in
2599         math.in.h.
2600         * modules/round: New file.
2601         * modules/round-tests: New file.
2602         * modules/roundf: New file.
2603         * modules/roundf-tests: New file.
2604         * modules/roundl: New file.
2605         * modules/roundl-tests: New file.
2606         * tests/test-round1.c: New file.
2607         * tests/test-round2.c: New file.
2608         * tests/test-roundf1.c: New file.
2609         * tests/test-roundf2.c: New file.
2610         * tests/test-roundl.c: New file.
2611         * doc/functions/round.texi: Mention round module.
2612         * doc/functions/roundf.texi: Mention roundf module.
2613         * doc/functions/roundl.texi: Mention roundl module.
2614         * MODULES.html.sh: Mention new modules.
2615         Thanks to Bruno Haible for suggestions.
2616
2617 2007-10-20  Jim Meyering  <meyering@redhat.com>
2618
2619         * lib/xprintf.c: Include <config.h> unconditionally.
2620
2621         Change xprintf's license to GPL.
2622         * modules/xprintf (License): s/LGPL/GPL/, since this module
2623         depends on modules (exit and exitfail) which are GPL.
2624         Suggestion from Bruno Haible.
2625
2626         xprintf fixes.
2627         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
2628         Use a clearer diagnostic.
2629         Patch from Bruno Haible.
2630
2631 2007-10-20  Bruno Haible  <bruno@clisp.org>
2632
2633         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
2634         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
2635         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2636
2637 2007-10-20  Bruno Haible  <bruno@clisp.org>
2638
2639         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
2640         precision in the comparison result > x - 1 or similar.
2641         * tests/test-ceilf2.c (correct_result_p): Likewise.
2642         * tests/test-truncf2.c (correct_result_p): Likewise.
2643         * tests/test-trunc2.c (correct_result_p): Likewise.
2644         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2645
2646 2007-10-20  Bruno Haible  <bruno@clisp.org>
2647
2648         * modules/ceil: New file.
2649         * m4/ceil.m4: New file.
2650         * doc/functions/ceil.texi: Mention the 'ceil' module.
2651
2652 2007-10-20  Bruno Haible  <bruno@clisp.org>
2653
2654         * modules/floor: New file.
2655         * m4/floor.m4: New file.
2656         * doc/functions/floor.texi: Mention the 'floor' module.
2657
2658 2007-10-20  Bruno Haible  <bruno@clisp.org>
2659
2660         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
2661         of %a.
2662         * modules/floorf-tests (Depends-on): Likewise.
2663         * modules/truncf-tests (Depends-on): Likewise.
2664         * modules/trunc-tests (Depends-on): Likewise.
2665         Reported by Ben Pfaff.
2666
2667 2007-10-19  Jim Meyering  <meyering@redhat.com>
2668
2669         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
2670         Don't bother testing specific errno values.  Just test ferror.
2671
2672         New module: xprintf
2673         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
2674
2675 2007-10-19  Bruno Haible  <bruno@clisp.org>
2676
2677         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
2678         syntax.
2679         * modules/javaexec (Makefile.am): Likewise.
2680         * modules/relocatable-prog (Makefile.am): Likewise.
2681         Suggested by Jim Meyering.
2682
2683 2007-10-18  Bruno Haible  <bruno@clisp.org>
2684
2685         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
2686         Reported by Jim Meyering.
2687
2688 2007-10-18  Eric Blake  <ebb9@byu.net>
2689
2690         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
2691
2692 2007-10-18  Bruno Haible  <bruno@clisp.org>
2693
2694         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
2695         the format string into writable memory. Needed in Fortify conditions.
2696
2697 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
2698             Bruno Haible  <bruno@clisp.org>
2699
2700         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
2701         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
2702         * modules/trim (Depends-on): Add mbchar.
2703         (configure.ac): Add gl_FUNC_MBRTOWC.
2704         (Makefile.am): Augment lib_SOURCES.
2705
2706 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
2707
2708         Modify glob.c to use fstatat and dirfd, to simplify it.
2709         Suggested by Eric Blake.
2710         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
2711         Don't include <stdbool.h>; not used.
2712         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
2713         (link_exists_p): Simplify implementation, since we can now assume
2714         dirfd and fstatat.
2715         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
2716
2717 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2718
2719         * gnulib-tool (func_get_dependencies): Fix sed script to
2720         match only tests.
2721
2722 2007-10-17  Bruno Haible  <bruno@clisp.org>
2723
2724         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
2725         allow locale names without encoding suffix.
2726         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
2727         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
2728
2729 2007-10-16  Bruno Haible  <bruno@clisp.org>
2730
2731         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
2732         * lib/getgroups.c (getgroups): Likewise.
2733         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
2734
2735 2007-10-16  Bruno Haible  <bruno@clisp.org>
2736
2737         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
2738         * modules/malloc-posix (License): Likewise.
2739         * modules/realloc-posix (License): Likewise.
2740         * modules/calloc-posix (License): Likewise.
2741         * modules/intprops (License): Change from GPL to LGPL, with
2742         Paul Eggert's approval.
2743
2744 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
2745
2746         Merge glibc changes into lib/glob.c.
2747
2748         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
2749         2007-10-15 04:59:03 UTC.  Here are the changes:
2750
2751         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
2752
2753         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
2754
2755         * lib/glob.c: Add some branch prediction throughout.
2756
2757         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
2758
2759         [BZ #5103]
2760         * lib/glob.c (glob): Recognize patterns starting \/.
2761
2762         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
2763
2764         [BZ #3996]
2765         * lib/glob.c (attribute_hidden): Define if not defined.
2766         (glob): Unescape dirname, filename or username when needed and not
2767         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
2768         is NULL.  Handle unescaped [ in pattern without closing ].
2769         Don't pass GLOB_CHECK down to recursive glob for directories.
2770         (__glob_pattern_type): New function.
2771         (__glob_pattern_p): Implement using __glob_pattern_type.
2772         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
2773         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
2774         Remove unreachable code.
2775
2776         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
2777
2778         * lib/glob.c (glob_in_dir): Add some comments and asserts to
2779         explain why there are no leaks.
2780
2781         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
2782
2783         [BZ #3253]
2784         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
2785         time, rather allocate increasingly bigger arrays of pointers, if
2786         possible with alloca, if too large with malloc.
2787
2788 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
2789
2790         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
2791         Problem reported by H.Merijn Brand in
2792         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
2793         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
2794         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
2795
2796 2007-10-15  Bruno Haible  <bruno@clisp.org>
2797
2798         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
2799         with explicit rpl_ prefix.
2800         * lib/fopen.c (fopen): Likewise.
2801         * lib/freopen.c (freopen): Likewise.
2802         * lib/iconv.c (iconv): Likewise.
2803         * lib/iconv_close.c (iconv_close): Likewise.
2804
2805 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2806
2807         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
2808
2809 2007-10-15  Bruno Haible  <bruno@clisp.org>
2810
2811         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
2812         <stddef.h> instead of <stdlib.h> since we only need NULL.
2813         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2814
2815 2007-10-15  Bruno Haible  <bruno@clisp.org>
2816
2817         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
2818         Replace paragraph talking about LIBOBJS.
2819         Reported by Colin Watson <cjwatson@debian.org>.
2820
2821 2007-10-15  Bruno Haible  <bruno@clisp.org>
2822
2823         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
2824         <stdlib.h> before using NULL.
2825
2826 2007-10-15  Simon Josefsson  <simon@josefsson.org>
2827
2828         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
2829         Reported by Albert Chin <china@thewrittenword.com>.
2830
2831 2007-10-14  Bruno Haible  <bruno@clisp.org>
2832
2833         * modules/iconv_open-utf-tests: New file.
2834         * tests/test-iconv-utf.c: New file.
2835
2836         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
2837         * modules/iconv_open-utf: New file.
2838         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
2839         (iconv, iconv_close): New declarations.
2840         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
2841         be defined.
2842         (iconv_open): Add special handling of conversion between UTF-8 and
2843         UTF-{16,32}{BE,LE}.
2844         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
2845         * lib/iconv_close.c: New file.
2846         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
2847         gl_FUNC_ICONV_OPEN.
2848         (gl_FUNC_ICONV_OPEN): Use it.
2849         (gl_FUNC_ICONV_OPEN_UTF): New macro.
2850         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
2851         and REPLACE_ICONV_UTF.
2852         * modules/iconv_open (Depends-on): Add c-strcase.
2853         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
2854         ICONV_CONST.
2855         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
2856
2857 2007-10-13  Albert Chin  <china@thewrittenword.com>
2858             Bruno Haible  <bruno@clisp.org>
2859
2860         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
2861         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
2862
2863 2007-10-13  Bruno Haible  <bruno@clisp.org>
2864
2865         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
2866         defined, use the ISO C99 inline semantics.
2867         * lib/argp.h (ARGP_EI): Likewise.
2868
2869 2007-10-13  Bruno Haible  <bruno@clisp.org>
2870
2871         Handle 'inline' change in gcc 4.3.0.
2872         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
2873         argp_fmtstream_write, argp_fmtstream_set_lmargin,
2874         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
2875         argp_fmtstream_point): Disable 'extern' declaration if the function
2876         definition is going to be provided inline.
2877         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
2878         semantics, not the ISO C99 inline semantics.
2879         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
2880         'extern' declaration if the function definition is going to be provided
2881         inline.
2882         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
2883         the GNU C inline semantics, not the ISO C99 inline semantics. With
2884         GCC 4.2, avoid a warning.
2885
2886 2007-10-13  Bruno Haible  <bruno@clisp.org>
2887
2888         * lib/freading.h (freading): Enable the use of __freading for
2889         glibc >= 2.7.
2890         * lib/freading.c (freading): Likewise.
2891
2892 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
2893
2894         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
2895         "warning: C99 inline functions are not supported; using GNU89".
2896
2897 2007-10-12  Bruno Haible  <bruno@clisp.org>
2898
2899         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
2900         of 2.
2901         * tests/test-ceilf2.c: New file.
2902         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
2903
2904         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
2905         * modules/ceilf-tests: Update.
2906
2907 2007-10-12  Bruno Haible  <bruno@clisp.org>
2908
2909         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
2910         of 2.
2911         * tests/test-floorf2.c: New file.
2912         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
2913
2914         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
2915         * modules/floorf-tests: Update.
2916
2917 2007-10-12  Bruno Haible  <bruno@clisp.org>
2918
2919         * tests/test-trunc2.c: New file.
2920         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
2921
2922         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
2923         * modules/trunc-tests: Update.
2924
2925 2007-10-12  Bruno Haible  <bruno@clisp.org>
2926
2927         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
2928         of 2.
2929         * tests/test-truncf2.c: New file.
2930         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
2931
2932         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
2933         * modules/truncf-tests: Update.
2934
2935 2007-10-11  Eric Blake  <ebb9@byu.net>
2936
2937         Don't claim strerror is broken on Interix.
2938         * doc/functions/strerror.texi (strerror): Known broken systems are
2939         now Solaris 8, and not Interix.
2940         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
2941         Interix on cross-compile.
2942         Reported by Martin Koeppe in
2943         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
2944
2945 2007-10-11  Bruno Haible  <bruno@clisp.org>
2946
2947         * modules/i-ring-tests: New file.
2948         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
2949         instead of assert.
2950
2951 2007-10-11  Bruno Haible  <bruno@clisp.org>
2952
2953         * modules/filenamecat-tests: New file.
2954         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
2955         * lib/filenamecat.c: Remove test code.
2956
2957 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
2958
2959         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
2960
2961         * lib/strerror.c: Include <string.h> always, to test interface,
2962         and to remove the need for the dummy.
2963         Include intprops.h to compute width instead of doing it ourselves
2964         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
2965         (strerror): Define it to return NULL if there's no system strerror.
2966         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
2967         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
2968         ancient pre-strerror Unix systems well any more.  Saying "unknown
2969         system error" is enough.
2970         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
2971         simpler strerror.c implementation.
2972         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
2973         Simplify the tests to reflect the simpler strerror implementation.
2974         * modules/strerror (Depends-on): Add intprops.
2975
2976 2007-10-09  Eric Blake  <ebb9@byu.net>
2977
2978         Silence test-fpending.
2979         * modules/fpending-tests (Files): Add wrapper script.
2980         * tests/test-fpending.sh: New file.
2981
2982 2007-10-09  Bruno Haible  <bruno@clisp.org>
2983
2984         * MODULES.html.sh (func_module): Don't create a hyperlink for
2985         function names like 'printf_frexp'.
2986         (Misc): Add crc, memxor.
2987         (Characteristics of floating types): New section.
2988         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
2989         isnanf-nolibm, signbit, trunc, truncf, truncl.
2990         (Enhancements for ISO C 99 functions): New subsection Input/output.
2991         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
2992         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
2993         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
2994         (Compatibility checks for POSIX:2001 functions): Add clock-time.
2995         (Enhancements for POSIX:2001 functions): Add chdir-long.
2996         (File system functions): Add areadlink, chdir-safer, read-file.
2997         Remove cycle-check.
2998         (File system as inode set): New section.
2999         (Date and time): Add gethrxtime.
3000         (Multithreading): Add openmp.
3001         (Internationalization functions): Add localename.
3002         (Unicode string functions): Add unistr/u*-mbsnlen.
3003         (Support for maintaining and releasing projects): Add git-version-gen.
3004         (Lone files): Remove directories.
3005
3006 2007-10-08  Ben Pfaff  <blp@gnu.org>
3007
3008         * lib/xmalloca.h: Fix typo in comment.
3009
3010 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
3011
3012         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
3013         when avoiding problems with integer overflow.  Use a portable test
3014         instead.
3015
3016 2007-10-08  Simon Josefsson  <simon@josefsson.org>
3017
3018         * modules/dummy (License): Change to LGPLv2+.
3019         * modules/float (License): Likewise
3020         * modules/realloc (License): Likewise
3021         * modules/stdlib (License): Likewise
3022
3023 2007-10-07  Bruno Haible  <bruno@clisp.org>
3024
3025         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
3026         * floor.c (TWO_MANT_DIG): Likewise.
3027         * ceil.c (TWO_MANT_DIG): Likewise.
3028         Reported by Ben Pfaff.
3029
3030 2007-10-07  Bruno Haible  <bruno@clisp.org>
3031
3032         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
3033         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
3034         * lib/frexp.c (FUNC): Likewise.
3035         * lib/printf-frexp.h (printf_frexp): Likewise.
3036         * lib/printf-frexpl.h (printf_frexpl): Likewise.
3037         * lib/printf-frexp.c (FUNC): Likewise.
3038         Suggested by Jim Meyering.
3039
3040 2007-10-07  Jim Meyering  <meyering@redhat.com>
3041
3042         Make xnanosleep's integer overflow test more robust.
3043         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
3044         so that gcc-4.3.0 doesn't optimize away this test for overflow.
3045
3046 2007-10-07  Bruno Haible  <bruno@clisp.org>
3047
3048         * NEWS: Mention the license change.
3049
3050         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
3051         abbreviations in the modules files.
3052
3053         Change copyright notice from GPLv2+ to GPLv3+.
3054         * README: Change copyright notice.
3055         * MODULES.html.sh: Likewise.
3056         * build-aux/bootstrap.conf: Likewise.
3057         * build-aux/config.libpath: Likewise.
3058         * build-aux/csharpcomp.sh.in: Likewise.
3059         * build-aux/csharpexec.sh.in: Likewise.
3060         * build-aux/install-reloc: Likewise.
3061         * build-aux/javacomp.sh.in: Likewise.
3062         * build-aux/javaexec.sh.in: Likewise.
3063         * build-aux/ldd.sh.in: Likewise.
3064         * build-aux/reloc-ldflags: Likewise.
3065         * build-aux/relocatable.sh.in: Likewise.
3066         * build-aux/x-to-1.in: Likewise.
3067         * check-module: Likewise.
3068         * config/srclistvars.sh: Likewise.
3069         * gnulib-tool: Likewise.
3070         * lib/acl-internal.h: Likewise.
3071         * lib/acl.c: Likewise.
3072         * lib/acl.h: Likewise.
3073         * lib/acl_entries.c: Likewise.
3074         * lib/areadlink-with-size.c: Likewise.
3075         * lib/areadlink.c: Likewise.
3076         * lib/areadlink.h: Likewise.
3077         * lib/argmatch.c: Likewise.
3078         * lib/argmatch.h: Likewise.
3079         * lib/argp-ba.c: Likewise.
3080         * lib/argp-eexst.c: Likewise.
3081         * lib/argp-fmtstream.c: Likewise.
3082         * lib/argp-fmtstream.h: Likewise.
3083         * lib/argp-fs-xinl.c: Likewise.
3084         * lib/argp-help.c: Likewise.
3085         * lib/argp-namefrob.h: Likewise.
3086         * lib/argp-parse.c: Likewise.
3087         * lib/argp-pin.c: Likewise.
3088         * lib/argp-pv.c: Likewise.
3089         * lib/argp-pvh.c: Likewise.
3090         * lib/argp-xinl.c: Likewise.
3091         * lib/argp.h: Likewise.
3092         * lib/at-func.c: Likewise.
3093         * lib/atanl.c: Likewise.
3094         * lib/backupfile.c: Likewise.
3095         * lib/backupfile.h: Likewise.
3096         * lib/basename.c: Likewise.
3097         * lib/binary-io.h: Likewise.
3098         * lib/byteswap.in.h: Likewise.
3099         * lib/c-stack.c: Likewise.
3100         * lib/c-stack.h: Likewise.
3101         * lib/c-strcasestr.c: Likewise.
3102         * lib/c-strcasestr.h: Likewise.
3103         * lib/c-strstr.c: Likewise.
3104         * lib/c-strstr.h: Likewise.
3105         * lib/c-strtod.c: Likewise.
3106         * lib/calloc.c: Likewise.
3107         * lib/canon-host.c: Likewise.
3108         * lib/canon-host.h: Likewise.
3109         * lib/canonicalize-lgpl.c: Likewise.
3110         * lib/canonicalize.c: Likewise.
3111         * lib/canonicalize.h: Likewise.
3112         * lib/ceil.c: Likewise.
3113         * lib/ceilf.c: Likewise.
3114         * lib/ceill.c: Likewise.
3115         * lib/chdir-long.c: Likewise.
3116         * lib/chdir-long.h: Likewise.
3117         * lib/chdir-safer.c: Likewise.
3118         * lib/chdir-safer.h: Likewise.
3119         * lib/chown.c: Likewise.
3120         * lib/classpath.c: Likewise.
3121         * lib/classpath.h: Likewise.
3122         * lib/clean-temp.c: Likewise.
3123         * lib/clean-temp.h: Likewise.
3124         * lib/cloexec.c: Likewise.
3125         * lib/close-stream.c: Likewise.
3126         * lib/closein.c: Likewise.
3127         * lib/closein.h: Likewise.
3128         * lib/closeout.c: Likewise.
3129         * lib/closeout.h: Likewise.
3130         * lib/concat-filename.c: Likewise.
3131         * lib/copy-file.c: Likewise.
3132         * lib/copy-file.h: Likewise.
3133         * lib/count-one-bits.h: Likewise.
3134         * lib/crc.c: Likewise.
3135         * lib/crc.h: Likewise.
3136         * lib/creat-safer.c: Likewise.
3137         * lib/csharpcomp.c: Likewise.
3138         * lib/csharpcomp.h: Likewise.
3139         * lib/csharpexec.c: Likewise.
3140         * lib/csharpexec.h: Likewise.
3141         * lib/cycle-check.c: Likewise.
3142         * lib/cycle-check.h: Likewise.
3143         * lib/diacrit.c: Likewise.
3144         * lib/diacrit.h: Likewise.
3145         * lib/diffseq.h: Likewise.
3146         * lib/dirchownmod.c: Likewise.
3147         * lib/dirent.in.h: Likewise.
3148         * lib/dirfd.c: Likewise.
3149         * lib/dirfd.h: Likewise.
3150         * lib/dirname.c: Likewise.
3151         * lib/dirname.h: Likewise.
3152         * lib/dummy.c: Likewise.
3153         * lib/dup-safer.c: Likewise.
3154         * lib/dup2.c: Likewise.
3155         * lib/eealloc.h: Likewise.
3156         * lib/error.c: Likewise.
3157         * lib/error.h: Likewise.
3158         * lib/euidaccess.c: Likewise.
3159         * lib/exclude.c: Likewise.
3160         * lib/exclude.h: Likewise.
3161         * lib/execute.c: Likewise.
3162         * lib/execute.h: Likewise.
3163         * lib/exitfail.c: Likewise.
3164         * lib/exitfail.h: Likewise.
3165         * lib/expl.c: Likewise.
3166         * lib/fatal-signal.c: Likewise.
3167         * lib/fatal-signal.h: Likewise.
3168         * lib/fbufmode.c: Likewise.
3169         * lib/fbufmode.h: Likewise.
3170         * lib/fchdir.c: Likewise.
3171         * lib/fchmodat.c: Likewise.
3172         * lib/fchownat.c: Likewise.
3173         * lib/fcntl--.h: Likewise.
3174         * lib/fcntl-safer.h: Likewise.
3175         * lib/fcntl.in.h: Likewise.
3176         * lib/fd-safer.c: Likewise.
3177         * lib/fflush.c: Likewise.
3178         * lib/file-has-acl.c: Likewise.
3179         * lib/file-set.c: Likewise.
3180         * lib/file-type.c: Likewise.
3181         * lib/file-type.h: Likewise.
3182         * lib/fileblocks.c: Likewise.
3183         * lib/filemode.c: Likewise.
3184         * lib/filemode.h: Likewise.
3185         * lib/filename.h: Likewise.
3186         * lib/filenamecat.c: Likewise.
3187         * lib/filenamecat.h: Likewise.
3188         * lib/findprog.c: Likewise.
3189         * lib/findprog.h: Likewise.
3190         * lib/float.in.h: Likewise.
3191         * lib/floor.c: Likewise.
3192         * lib/floorf.c: Likewise.
3193         * lib/floorl.c: Likewise.
3194         * lib/fopen-safer.c: Likewise.
3195         * lib/fopen.c: Likewise.
3196         * lib/fpending.c: Likewise.
3197         * lib/fpending.h: Likewise.
3198         * lib/fprintf.c: Likewise.
3199         * lib/fprintftime.h: Likewise.
3200         * lib/fpucw.h: Likewise.
3201         * lib/fpurge.c: Likewise.
3202         * lib/fpurge.h: Likewise.
3203         * lib/freadable.c: Likewise.
3204         * lib/freadable.h: Likewise.
3205         * lib/freadahead.c: Likewise.
3206         * lib/freadahead.h: Likewise.
3207         * lib/freading.c: Likewise.
3208         * lib/freading.h: Likewise.
3209         * lib/free.c: Likewise.
3210         * lib/freopen.c: Likewise.
3211         * lib/frexp.c: Likewise.
3212         * lib/frexpl.c: Likewise.
3213         * lib/fseek.c: Likewise.
3214         * lib/fseterr.c: Likewise.
3215         * lib/fseterr.h: Likewise.
3216         * lib/fstatat.c: Likewise.
3217         * lib/fstrcmp.c: Likewise.
3218         * lib/fstrcmp.h: Likewise.
3219         * lib/fsusage.c: Likewise.
3220         * lib/fsusage.h: Likewise.
3221         * lib/ftell.c: Likewise.
3222         * lib/ftello.c: Likewise.
3223         * lib/fts-cycle.c: Likewise.
3224         * lib/fts.c: Likewise.
3225         * lib/fts_.h: Likewise.
3226         * lib/full-read.c: Likewise.
3227         * lib/full-read.h: Likewise.
3228         * lib/full-write.c: Likewise.
3229         * lib/full-write.h: Likewise.
3230         * lib/fwritable.c: Likewise.
3231         * lib/fwritable.h: Likewise.
3232         * lib/fwriteerror.c: Likewise.
3233         * lib/fwriteerror.h: Likewise.
3234         * lib/fwriting.c: Likewise.
3235         * lib/fwriting.h: Likewise.
3236         * lib/gcd.c: Likewise.
3237         * lib/gcd.h: Likewise.
3238         * lib/getcwd.c: Likewise.
3239         * lib/getdate.h: Likewise.
3240         * lib/getdate.y: Likewise.
3241         * lib/getdomainname.c: Likewise.
3242         * lib/getdomainname.h: Likewise.
3243         * lib/getgroups.c: Likewise.
3244         * lib/gethostname.c: Likewise.
3245         * lib/gethrxtime.c: Likewise.
3246         * lib/gethrxtime.h: Likewise.
3247         * lib/getloadavg.c: Likewise.
3248         * lib/getndelim2.c: Likewise.
3249         * lib/getndelim2.h: Likewise.
3250         * lib/getnline.c: Likewise.
3251         * lib/getnline.h: Likewise.
3252         * lib/getopt.c: Likewise.
3253         * lib/getopt.in.h: Likewise.
3254         * lib/getopt1.c: Likewise.
3255         * lib/getopt_int.h: Likewise.
3256         * lib/getpagesize.h: Likewise.
3257         * lib/getsubopt.c: Likewise.
3258         * lib/gettime.c: Likewise.
3259         * lib/getugroups.c: Likewise.
3260         * lib/getugroups.h: Likewise.
3261         * lib/getusershell.c: Likewise.
3262         * lib/gl_anyavltree_list1.h: Likewise.
3263         * lib/gl_anyavltree_list2.h: Likewise.
3264         * lib/gl_anyhash_list1.h: Likewise.
3265         * lib/gl_anyhash_list2.h: Likewise.
3266         * lib/gl_anylinked_list1.h: Likewise.
3267         * lib/gl_anylinked_list2.h: Likewise.
3268         * lib/gl_anyrbtree_list1.h: Likewise.
3269         * lib/gl_anyrbtree_list2.h: Likewise.
3270         * lib/gl_anytree_list1.h: Likewise.
3271         * lib/gl_anytree_list2.h: Likewise.
3272         * lib/gl_anytree_oset.h: Likewise.
3273         * lib/gl_anytreehash_list1.h: Likewise.
3274         * lib/gl_anytreehash_list2.h: Likewise.
3275         * lib/gl_array_list.c: Likewise.
3276         * lib/gl_array_list.h: Likewise.
3277         * lib/gl_array_oset.c: Likewise.
3278         * lib/gl_array_oset.h: Likewise.
3279         * lib/gl_avltree_list.c: Likewise.
3280         * lib/gl_avltree_list.h: Likewise.
3281         * lib/gl_avltree_oset.c: Likewise.
3282         * lib/gl_avltree_oset.h: Likewise.
3283         * lib/gl_avltreehash_list.c: Likewise.
3284         * lib/gl_avltreehash_list.h: Likewise.
3285         * lib/gl_carray_list.c: Likewise.
3286         * lib/gl_carray_list.h: Likewise.
3287         * lib/gl_linked_list.c: Likewise.
3288         * lib/gl_linked_list.h: Likewise.
3289         * lib/gl_linkedhash_list.c: Likewise.
3290         * lib/gl_linkedhash_list.h: Likewise.
3291         * lib/gl_list.c: Likewise.
3292         * lib/gl_list.h: Likewise.
3293         * lib/gl_oset.c: Likewise.
3294         * lib/gl_oset.h: Likewise.
3295         * lib/gl_rbtree_list.c: Likewise.
3296         * lib/gl_rbtree_list.h: Likewise.
3297         * lib/gl_rbtree_oset.c: Likewise.
3298         * lib/gl_rbtree_oset.h: Likewise.
3299         * lib/gl_rbtreehash_list.c: Likewise.
3300         * lib/gl_rbtreehash_list.h: Likewise.
3301         * lib/gl_sublist.c: Likewise.
3302         * lib/gl_sublist.h: Likewise.
3303         * lib/group-member.c: Likewise.
3304         * lib/group-member.h: Likewise.
3305         * lib/hard-locale.c: Likewise.
3306         * lib/hard-locale.h: Likewise.
3307         * lib/hash-pjw.c: Likewise.
3308         * lib/hash-pjw.h: Likewise.
3309         * lib/hash-triple.c: Likewise.
3310         * lib/hash.c: Likewise.
3311         * lib/hash.h: Likewise.
3312         * lib/human.c: Likewise.
3313         * lib/human.h: Likewise.
3314         * lib/i-ring.c: Likewise.
3315         * lib/i-ring.h: Likewise.
3316         * lib/idcache.c: Likewise.
3317         * lib/imaxabs.c: Likewise.
3318         * lib/imaxdiv.c: Likewise.
3319         * lib/inet_pton.c: Likewise.
3320         * lib/inet_pton.h: Likewise.
3321         * lib/intprops.h: Likewise.
3322         * lib/inttostr.c: Likewise.
3323         * lib/inttostr.h: Likewise.
3324         * lib/inttypes.in.h: Likewise.
3325         * lib/isapipe.c: Likewise.
3326         * lib/isdir.c: Likewise.
3327         * lib/isnan.c: Likewise.
3328         * lib/isnan.h: Likewise.
3329         * lib/isnanf.c: Likewise.
3330         * lib/isnanf.h: Likewise.
3331         * lib/isnanl-nolibm.h: Likewise.
3332         * lib/isnanl.c: Likewise.
3333         * lib/isnanl.h: Likewise.
3334         * lib/javacomp.c: Likewise.
3335         * lib/javacomp.h: Likewise.
3336         * lib/javaexec.c: Likewise.
3337         * lib/javaexec.h: Likewise.
3338         * lib/javaversion.c: Likewise.
3339         * lib/javaversion.h: Likewise.
3340         * lib/javaversion.java: Likewise.
3341         * lib/lbrkprop.h: Likewise.
3342         * lib/lchmod.h: Likewise.
3343         * lib/lchown.c: Likewise.
3344         * lib/ldexpl.c: Likewise.
3345         * lib/linebreak.c: Likewise.
3346         * lib/linebreak.h: Likewise.
3347         * lib/linebuffer.c: Likewise.
3348         * lib/linebuffer.h: Likewise.
3349         * lib/locale.in.h: Likewise.
3350         * lib/logl.c: Likewise.
3351         * lib/long-options.c: Likewise.
3352         * lib/long-options.h: Likewise.
3353         * lib/lstat.c: Likewise.
3354         * lib/lstat.h: Likewise.
3355         * lib/math.in.h: Likewise.
3356         * lib/mbchar.c: Likewise.
3357         * lib/mbchar.h: Likewise.
3358         * lib/mbfile.h: Likewise.
3359         * lib/mbiter.h: Likewise.
3360         * lib/mbscasecmp.c: Likewise.
3361         * lib/mbscasestr.c: Likewise.
3362         * lib/mbschr.c: Likewise.
3363         * lib/mbscspn.c: Likewise.
3364         * lib/mbslen.c: Likewise.
3365         * lib/mbsncasecmp.c: Likewise.
3366         * lib/mbsnlen.c: Likewise.
3367         * lib/mbspbrk.c: Likewise.
3368         * lib/mbspcasecmp.c: Likewise.
3369         * lib/mbsrchr.c: Likewise.
3370         * lib/mbssep.c: Likewise.
3371         * lib/mbsspn.c: Likewise.
3372         * lib/mbsstr.c: Likewise.
3373         * lib/mbstok_r.c: Likewise.
3374         * lib/mbswidth.c: Likewise.
3375         * lib/mbswidth.h: Likewise.
3376         * lib/mbuiter.h: Likewise.
3377         * lib/memcasecmp.c: Likewise.
3378         * lib/memcasecmp.h: Likewise.
3379         * lib/memchr.c: Likewise.
3380         * lib/memcmp.c: Likewise.
3381         * lib/memcoll.c: Likewise.
3382         * lib/memcoll.h: Likewise.
3383         * lib/memcpy.c: Likewise.
3384         * lib/memrchr.c: Likewise.
3385         * lib/mkancesdirs.c: Likewise.
3386         * lib/mkdir-p.c: Likewise.
3387         * lib/mkdir-p.h: Likewise.
3388         * lib/mkdir.c: Likewise.
3389         * lib/mkdirat.c: Likewise.
3390         * lib/mkdtemp.c: Likewise.
3391         * lib/mkstemp-safer.c: Likewise.
3392         * lib/mkstemp.c: Likewise.
3393         * lib/modechange.c: Likewise.
3394         * lib/modechange.h: Likewise.
3395         * lib/mountlist.c: Likewise.
3396         * lib/mountlist.h: Likewise.
3397         * lib/mpsort.c: Likewise.
3398         * lib/nanosleep.c: Likewise.
3399         * lib/obstack.c: Likewise.
3400         * lib/obstack.h: Likewise.
3401         * lib/open-safer.c: Likewise.
3402         * lib/open.c: Likewise.
3403         * lib/openat-die.c: Likewise.
3404         * lib/openat-priv.h: Likewise.
3405         * lib/openat-proc.c: Likewise.
3406         * lib/openat.c: Likewise.
3407         * lib/openat.h: Likewise.
3408         * lib/pagealign_alloc.c: Likewise.
3409         * lib/pagealign_alloc.h: Likewise.
3410         * lib/physmem.c: Likewise.
3411         * lib/physmem.h: Likewise.
3412         * lib/pipe-safer.c: Likewise.
3413         * lib/pipe.c: Likewise.
3414         * lib/pipe.h: Likewise.
3415         * lib/posixtm.c: Likewise.
3416         * lib/posixtm.h: Likewise.
3417         * lib/posixver.c: Likewise.
3418         * lib/printf-frexp.c: Likewise.
3419         * lib/printf-frexp.h: Likewise.
3420         * lib/printf-frexpl.c: Likewise.
3421         * lib/printf-frexpl.h: Likewise.
3422         * lib/printf.c: Likewise.
3423         * lib/progname.c: Likewise.
3424         * lib/progname.h: Likewise.
3425         * lib/progreloc.c: Likewise.
3426         * lib/putenv.c: Likewise.
3427         * lib/quote.c: Likewise.
3428         * lib/quote.h: Likewise.
3429         * lib/quotearg.c: Likewise.
3430         * lib/quotearg.h: Likewise.
3431         * lib/raise.c: Likewise.
3432         * lib/readline.c: Likewise.
3433         * lib/readline.h: Likewise.
3434         * lib/readlink.c: Likewise.
3435         * lib/readtokens.c: Likewise.
3436         * lib/readtokens.h: Likewise.
3437         * lib/readtokens0.c: Likewise.
3438         * lib/readtokens0.h: Likewise.
3439         * lib/readutmp.c: Likewise.
3440         * lib/readutmp.h: Likewise.
3441         * lib/realloc.c: Likewise.
3442         * lib/relocwrapper.c: Likewise.
3443         * lib/rename-dest-slash.c: Likewise.
3444         * lib/rename.c: Likewise.
3445         * lib/rmdir.c: Likewise.
3446         * lib/rpmatch.c: Likewise.
3447         * lib/safe-read.c: Likewise.
3448         * lib/safe-read.h: Likewise.
3449         * lib/safe-write.c: Likewise.
3450         * lib/safe-write.h: Likewise.
3451         * lib/same-inode.h: Likewise.
3452         * lib/same.c: Likewise.
3453         * lib/same.h: Likewise.
3454         * lib/save-cwd.c: Likewise.
3455         * lib/save-cwd.h: Likewise.
3456         * lib/savedir.c: Likewise.
3457         * lib/savedir.h: Likewise.
3458         * lib/savewd.c: Likewise.
3459         * lib/savewd.h: Likewise.
3460         * lib/search.in.h: Likewise.
3461         * lib/setenv.c: Likewise.
3462         * lib/setenv.h: Likewise.
3463         * lib/settime.c: Likewise.
3464         * lib/sh-quote.c: Likewise.
3465         * lib/sh-quote.h: Likewise.
3466         * lib/sig2str.c: Likewise.
3467         * lib/sig2str.h: Likewise.
3468         * lib/signal.in.h: Likewise.
3469         * lib/signbitd.c: Likewise.
3470         * lib/signbitf.c: Likewise.
3471         * lib/signbitl.c: Likewise.
3472         * lib/sigprocmask.c: Likewise.
3473         * lib/sincosl.c: Likewise.
3474         * lib/sleep.c: Likewise.
3475         * lib/sprintf.c: Likewise.
3476         * lib/sqrtl.c: Likewise.
3477         * lib/stat-time.h: Likewise.
3478         * lib/stdio--.h: Likewise.
3479         * lib/stdio-safer.h: Likewise.
3480         * lib/stdlib--.h: Likewise.
3481         * lib/stdlib-safer.h: Likewise.
3482         * lib/stdlib.in.h: Likewise.
3483         * lib/stpcpy.c: Likewise.
3484         * lib/stpncpy.c: Likewise.
3485         * lib/strchrnul.c: Likewise.
3486         * lib/strcspn.c: Likewise.
3487         * lib/strerror.c: Likewise.
3488         * lib/strftime.c: Likewise.
3489         * lib/strftime.h: Likewise.
3490         * lib/striconveh.c: Likewise.
3491         * lib/striconveh.h: Likewise.
3492         * lib/striconveha.c: Likewise.
3493         * lib/striconveha.h: Likewise.
3494         * lib/stripslash.c: Likewise.
3495         * lib/strnlen1.c: Likewise.
3496         * lib/strnlen1.h: Likewise.
3497         * lib/strtod.c: Likewise.
3498         * lib/strtoimax.c: Likewise.
3499         * lib/strtok_r.c: Likewise.
3500         * lib/strtol.c: Likewise.
3501         * lib/strtoll.c: Likewise.
3502         * lib/strtoul.c: Likewise.
3503         * lib/strtoull.c: Likewise.
3504         * lib/sysexits.in.h: Likewise.
3505         * lib/tempname.c: Likewise.
3506         * lib/tempname.h: Likewise.
3507         * lib/timespec.h: Likewise.
3508         * lib/tls.c: Likewise.
3509         * lib/tls.h: Likewise.
3510         * lib/tmpdir.c: Likewise.
3511         * lib/tmpdir.h: Likewise.
3512         * lib/tmpfile-safer.c: Likewise.
3513         * lib/tmpfile.c: Likewise.
3514         * lib/trigl.c: Likewise.
3515         * lib/trigl.h: Likewise.
3516         * lib/trim.c: Likewise.
3517         * lib/trim.h: Likewise.
3518         * lib/trunc.c: Likewise.
3519         * lib/truncf.c: Likewise.
3520         * lib/truncl.c: Likewise.
3521         * lib/tsearch.c: Likewise.
3522         * lib/unicodeio.c: Likewise.
3523         * lib/unicodeio.h: Likewise.
3524         * lib/unistd--.h: Likewise.
3525         * lib/unistd-safer.h: Likewise.
3526         * lib/unistdio/ulc-fprintf.c: Likewise.
3527         * lib/unistdio/ulc-vfprintf.c: Likewise.
3528         * lib/unlinkdir.c: Likewise.
3529         * lib/unlinkdir.h: Likewise.
3530         * lib/unlocked-io.h: Likewise.
3531         * lib/unsetenv.c: Likewise.
3532         * lib/userspec.c: Likewise.
3533         * lib/utime.c: Likewise.
3534         * lib/utimecmp.c: Likewise.
3535         * lib/utimecmp.h: Likewise.
3536         * lib/utimens.c: Likewise.
3537         * lib/verify.h: Likewise.
3538         * lib/verror.c: Likewise.
3539         * lib/verror.h: Likewise.
3540         * lib/version-etc-fsf.c: Likewise.
3541         * lib/version-etc.c: Likewise.
3542         * lib/version-etc.h: Likewise.
3543         * lib/vfprintf.c: Likewise.
3544         * lib/vprintf.c: Likewise.
3545         * lib/vsprintf.c: Likewise.
3546         * lib/w32spawn.h: Likewise.
3547         * lib/wait-process.c: Likewise.
3548         * lib/wait-process.h: Likewise.
3549         * lib/wcwidth.c: Likewise.
3550         * lib/write-any-file.c: Likewise.
3551         * lib/xalloc-die.c: Likewise.
3552         * lib/xalloc.h: Likewise.
3553         * lib/xasprintf.c: Likewise.
3554         * lib/xgetcwd.c: Likewise.
3555         * lib/xgetcwd.h: Likewise.
3556         * lib/xgetdomainname.c: Likewise.
3557         * lib/xgetdomainname.h: Likewise.
3558         * lib/xgethostname.c: Likewise.
3559         * lib/xmalloc.c: Likewise.
3560         * lib/xmalloca.c: Likewise.
3561         * lib/xmalloca.h: Likewise.
3562         * lib/xmemcoll.c: Likewise.
3563         * lib/xnanosleep.c: Likewise.
3564         * lib/xreadlink.c: Likewise.
3565         * lib/xreadlink.h: Likewise.
3566         * lib/xsetenv.c: Likewise.
3567         * lib/xsetenv.h: Likewise.
3568         * lib/xstriconv.c: Likewise.
3569         * lib/xstriconv.h: Likewise.
3570         * lib/xstrndup.c: Likewise.
3571         * lib/xstrndup.h: Likewise.
3572         * lib/xstrtod.c: Likewise.
3573         * lib/xstrtod.h: Likewise.
3574         * lib/xstrtol-error.c: Likewise.
3575         * lib/xstrtol.c: Likewise.
3576         * lib/xstrtol.h: Likewise.
3577         * lib/xtime.h: Likewise.
3578         * lib/xvasprintf.c: Likewise.
3579         * lib/xvasprintf.h: Likewise.
3580         * lib/yesno.c: Likewise.
3581         * lib/yesno.h: Likewise.
3582         * posix-modules: Likewise.
3583         * tests/test-alloca-opt.c: Likewise.
3584         * tests/test-arcfour.c: Likewise.
3585         * tests/test-arctwo.c: Likewise.
3586         * tests/test-argmatch.c: Likewise.
3587         * tests/test-argp-2.sh: Likewise.
3588         * tests/test-argp.c: Likewise.
3589         * tests/test-arpa_inet.c: Likewise.
3590         * tests/test-array_list.c: Likewise.
3591         * tests/test-array_oset.c: Likewise.
3592         * tests/test-atexit.c: Likewise.
3593         * tests/test-avltree_list.c: Likewise.
3594         * tests/test-avltree_oset.c: Likewise.
3595         * tests/test-avltreehash_list.c: Likewise.
3596         * tests/test-base64.c: Likewise.
3597         * tests/test-binary-io.c: Likewise.
3598         * tests/test-byteswap.c: Likewise.
3599         * tests/test-c-ctype.c: Likewise.
3600         * tests/test-c-strcasecmp.c: Likewise.
3601         * tests/test-c-strcasestr.c: Likewise.
3602         * tests/test-c-strncasecmp.c: Likewise.
3603         * tests/test-c-strstr.c: Likewise.
3604         * tests/test-canonicalize-lgpl.c: Likewise.
3605         * tests/test-canonicalize.c: Likewise.
3606         * tests/test-carray_list.c: Likewise.
3607         * tests/test-ceilf.c: Likewise.
3608         * tests/test-ceill.c: Likewise.
3609         * tests/test-count-one-bits.c: Likewise.
3610         * tests/test-crc.c: Likewise.
3611         * tests/test-dirname.c: Likewise.
3612         * tests/test-fbufmode.c: Likewise.
3613         * tests/test-fcntl.c: Likewise.
3614         * tests/test-fflush.c: Likewise.
3615         * tests/test-floorf.c: Likewise.
3616         * tests/test-floorl.c: Likewise.
3617         * tests/test-fopen.c: Likewise.
3618         * tests/test-fprintf-posix.c: Likewise.
3619         * tests/test-fprintf-posix.h: Likewise.
3620         * tests/test-fpurge.c: Likewise.
3621         * tests/test-freadable.c: Likewise.
3622         * tests/test-freadahead.c: Likewise.
3623         * tests/test-freading.c: Likewise.
3624         * tests/test-freopen.c: Likewise.
3625         * tests/test-frexp.c: Likewise.
3626         * tests/test-frexpl.c: Likewise.
3627         * tests/test-fseek.c: Likewise.
3628         * tests/test-fseeko.c: Likewise.
3629         * tests/test-fseterr.c: Likewise.
3630         * tests/test-fstrcmp.c: Likewise.
3631         * tests/test-ftell.c: Likewise.
3632         * tests/test-ftello.c: Likewise.
3633         * tests/test-fwritable.c: Likewise.
3634         * tests/test-fwriting.c: Likewise.
3635         * tests/test-getaddrinfo.c: Likewise.
3636         * tests/test-getpass.c: Likewise.
3637         * tests/test-gettimeofday.c: Likewise.
3638         * tests/test-hmac-md5.c: Likewise.
3639         * tests/test-hmac-sha1.c: Likewise.
3640         * tests/test-iconv.c: Likewise.
3641         * tests/test-iconvme.c: Likewise.
3642         * tests/test-inttypes.c: Likewise.
3643         * tests/test-isnan.c: Likewise.
3644         * tests/test-isnanf.c: Likewise.
3645         * tests/test-isnanl-nolibm.c: Likewise.
3646         * tests/test-isnanl.c: Likewise.
3647         * tests/test-isnanl.h: Likewise.
3648         * tests/test-ldexpl.c: Likewise.
3649         * tests/test-linked_list.c: Likewise.
3650         * tests/test-linkedhash_list.c: Likewise.
3651         * tests/test-locale.c: Likewise.
3652         * tests/test-localename.c: Likewise.
3653         * tests/test-lock.c: Likewise.
3654         * tests/test-lseek.c: Likewise.
3655         * tests/test-malloca.c: Likewise.
3656         * tests/test-math.c: Likewise.
3657         * tests/test-mbscasecmp.c: Likewise.
3658         * tests/test-mbscasestr1.c: Likewise.
3659         * tests/test-mbscasestr2.c: Likewise.
3660         * tests/test-mbscasestr3.c: Likewise.
3661         * tests/test-mbscasestr4.c: Likewise.
3662         * tests/test-mbschr.c: Likewise.
3663         * tests/test-mbscspn.c: Likewise.
3664         * tests/test-mbsncasecmp.c: Likewise.
3665         * tests/test-mbspbrk.c: Likewise.
3666         * tests/test-mbspcasecmp.c: Likewise.
3667         * tests/test-mbsrchr.c: Likewise.
3668         * tests/test-mbsspn.c: Likewise.
3669         * tests/test-mbsstr1.c: Likewise.
3670         * tests/test-mbsstr2.c: Likewise.
3671         * tests/test-mbsstr3.c: Likewise.
3672         * tests/test-md5.c: Likewise.
3673         * tests/test-memmem.c: Likewise.
3674         * tests/test-netinet_in.c: Likewise.
3675         * tests/test-open.c: Likewise.
3676         * tests/test-printf-frexp.c: Likewise.
3677         * tests/test-printf-frexpl.c: Likewise.
3678         * tests/test-printf-posix.c: Likewise.
3679         * tests/test-printf-posix.h: Likewise.
3680         * tests/test-rbtree_list.c: Likewise.
3681         * tests/test-rbtree_oset.c: Likewise.
3682         * tests/test-rbtreehash_list.c: Likewise.
3683         * tests/test-read-file.c: Likewise.
3684         * tests/test-rijndael.c: Likewise.
3685         * tests/test-search.c: Likewise.
3686         * tests/test-signbit.c: Likewise.
3687         * tests/test-sleep.c: Likewise.
3688         * tests/test-snprintf-posix.c: Likewise.
3689         * tests/test-snprintf-posix.h: Likewise.
3690         * tests/test-snprintf.c: Likewise.
3691         * tests/test-sprintf-posix.c: Likewise.
3692         * tests/test-sprintf-posix.h: Likewise.
3693         * tests/test-stat-time.c: Likewise.
3694         * tests/test-stdbool.c: Likewise.
3695         * tests/test-stdint.c: Likewise.
3696         * tests/test-stdio.c: Likewise.
3697         * tests/test-stdlib.c: Likewise.
3698         * tests/test-stpncpy.c: Likewise.
3699         * tests/test-strcasestr.c: Likewise.
3700         * tests/test-striconv.c: Likewise.
3701         * tests/test-striconveh.c: Likewise.
3702         * tests/test-striconveha.c: Likewise.
3703         * tests/test-string.c: Likewise.
3704         * tests/test-sys_select.c: Likewise.
3705         * tests/test-sys_socket.c: Likewise.
3706         * tests/test-sys_stat.c: Likewise.
3707         * tests/test-sys_time.c: Likewise.
3708         * tests/test-sysexits.c: Likewise.
3709         * tests/test-time.c: Likewise.
3710         * tests/test-tls.c: Likewise.
3711         * tests/test-trunc.c: Likewise.
3712         * tests/test-truncf.c: Likewise.
3713         * tests/test-truncl.c: Likewise.
3714         * tests/test-unistd.c: Likewise.
3715         * tests/test-vasnprintf-posix.c: Likewise.
3716         * tests/test-vasnprintf-posix2.c: Likewise.
3717         * tests/test-vasnprintf.c: Likewise.
3718         * tests/test-vasprintf-posix.c: Likewise.
3719         * tests/test-vasprintf.c: Likewise.
3720         * tests/test-verify.c: Likewise.
3721         * tests/test-vfprintf-posix.c: Likewise.
3722         * tests/test-vprintf-posix.c: Likewise.
3723         * tests/test-vsnprintf-posix.c: Likewise.
3724         * tests/test-vsnprintf.c: Likewise.
3725         * tests/test-vsprintf-posix.c: Likewise.
3726         * tests/test-wchar.c: Likewise.
3727         * tests/test-wctype.c: Likewise.
3728         * tests/test-wcwidth.c: Likewise.
3729         * tests/test-xstrtol.c: Likewise.
3730         * tests/test-xvasprintf.c: Likewise.
3731         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
3732         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
3733         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
3734         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
3735         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
3736         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
3737         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
3738         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
3739         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
3740         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
3741         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
3742         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
3743         * tests/uniname/test-uninames.c: Likewise.
3744         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
3745         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
3746         * tests/unistdio/test-u16-printf1.h: Likewise.
3747         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
3748         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
3749         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
3750         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
3751         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
3752         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
3753         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
3754         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
3755         * tests/unistdio/test-u32-printf1.h: Likewise.
3756         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
3757         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
3758         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
3759         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
3760         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
3761         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
3762         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
3763         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
3764         * tests/unistdio/test-u8-printf1.h: Likewise.
3765         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
3766         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
3767         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
3768         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
3769         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
3770         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
3771         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
3772         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
3773         * tests/unistdio/test-ulc-printf1.h: Likewise.
3774         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
3775         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
3776         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
3777         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
3778         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
3779         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
3780         * tests/uniwidth/test-u16-strwidth.c: Likewise.
3781         * tests/uniwidth/test-u16-width.c: Likewise.
3782         * tests/uniwidth/test-u32-strwidth.c: Likewise.
3783         * tests/uniwidth/test-u32-width.c: Likewise.
3784         * tests/uniwidth/test-u8-strwidth.c: Likewise.
3785         * tests/uniwidth/test-u8-width.c: Likewise.
3786         * tests/uniwidth/test-uc_width.c: Likewise.
3787         * config/srclist-update: Likewise.
3788         (fixlicense): Update to GPLv3+.
3789
3790         Change copyright notice from LGPLv2.1+ to LGPLv3+.
3791         * tests/test-tsearch.c: Change copyright notice.
3792
3793         Change copyright notice from LGPLv2.0+ to LGPLv3+.
3794         * lib/c-strcaseeq.h: Change copyright notice.
3795         * lib/streq.h: Likewise.
3796         * lib/uniconv.h: Likewise.
3797         * lib/uniconv/u-conv-from-enc.h: Likewise.
3798         * lib/uniconv/u-conv-to-enc.h: Likewise.
3799         * lib/uniconv/u-strconv-from-enc.h: Likewise.
3800         * lib/uniconv/u-strconv-to-enc.h: Likewise.
3801         * lib/uniconv/u16-conv-from-enc.c: Likewise.
3802         * lib/uniconv/u16-conv-to-enc.c: Likewise.
3803         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
3804         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
3805         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
3806         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
3807         * lib/uniconv/u32-conv-from-enc.c: Likewise.
3808         * lib/uniconv/u32-conv-to-enc.c: Likewise.
3809         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
3810         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
3811         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
3812         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
3813         * lib/uniconv/u8-conv-from-enc.c: Likewise.
3814         * lib/uniconv/u8-conv-to-enc.c: Likewise.
3815         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
3816         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
3817         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
3818         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
3819         * lib/uniname.h: Likewise.
3820         * lib/uniname/uniname.c: Likewise.
3821         * lib/unistdio.h: Likewise.
3822         * lib/unistdio/u-asnprintf.h: Likewise.
3823         * lib/unistdio/u-asprintf.h: Likewise.
3824         * lib/unistdio/u-printf-args.c: Likewise.
3825         * lib/unistdio/u-printf-args.h: Likewise.
3826         * lib/unistdio/u-printf-parse.h: Likewise.
3827         * lib/unistdio/u-snprintf.h: Likewise.
3828         * lib/unistdio/u-sprintf.h: Likewise.
3829         * lib/unistdio/u-vasprintf.h: Likewise.
3830         * lib/unistdio/u-vsnprintf.h: Likewise.
3831         * lib/unistdio/u-vsprintf.h: Likewise.
3832         * lib/unistdio/u16-asnprintf.c: Likewise.
3833         * lib/unistdio/u16-asprintf.c: Likewise.
3834         * lib/unistdio/u16-printf-parse.c: Likewise.
3835         * lib/unistdio/u16-snprintf.c: Likewise.
3836         * lib/unistdio/u16-sprintf.c: Likewise.
3837         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
3838         * lib/unistdio/u16-u16-asprintf.c: Likewise.
3839         * lib/unistdio/u16-u16-snprintf.c: Likewise.
3840         * lib/unistdio/u16-u16-sprintf.c: Likewise.
3841         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
3842         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
3843         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
3844         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
3845         * lib/unistdio/u16-vasnprintf.c: Likewise.
3846         * lib/unistdio/u16-vasprintf.c: Likewise.
3847         * lib/unistdio/u16-vsnprintf.c: Likewise.
3848         * lib/unistdio/u16-vsprintf.c: Likewise.
3849         * lib/unistdio/u32-asnprintf.c: Likewise.
3850         * lib/unistdio/u32-asprintf.c: Likewise.
3851         * lib/unistdio/u32-printf-parse.c: Likewise.
3852         * lib/unistdio/u32-snprintf.c: Likewise.
3853         * lib/unistdio/u32-sprintf.c: Likewise.
3854         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
3855         * lib/unistdio/u32-u32-asprintf.c: Likewise.
3856         * lib/unistdio/u32-u32-snprintf.c: Likewise.
3857         * lib/unistdio/u32-u32-sprintf.c: Likewise.
3858         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
3859         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
3860         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
3861         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
3862         * lib/unistdio/u32-vasnprintf.c: Likewise.
3863         * lib/unistdio/u32-vasprintf.c: Likewise.
3864         * lib/unistdio/u32-vsnprintf.c: Likewise.
3865         * lib/unistdio/u32-vsprintf.c: Likewise.
3866         * lib/unistdio/u8-asnprintf.c: Likewise.
3867         * lib/unistdio/u8-asprintf.c: Likewise.
3868         * lib/unistdio/u8-printf-parse.c: Likewise.
3869         * lib/unistdio/u8-snprintf.c: Likewise.
3870         * lib/unistdio/u8-sprintf.c: Likewise.
3871         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
3872         * lib/unistdio/u8-u8-asprintf.c: Likewise.
3873         * lib/unistdio/u8-u8-snprintf.c: Likewise.
3874         * lib/unistdio/u8-u8-sprintf.c: Likewise.
3875         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
3876         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
3877         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
3878         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
3879         * lib/unistdio/u8-vasnprintf.c: Likewise.
3880         * lib/unistdio/u8-vasprintf.c: Likewise.
3881         * lib/unistdio/u8-vsnprintf.c: Likewise.
3882         * lib/unistdio/u8-vsprintf.c: Likewise.
3883         * lib/unistdio/ulc-asnprintf.c: Likewise.
3884         * lib/unistdio/ulc-asprintf.c: Likewise.
3885         * lib/unistdio/ulc-printf-parse.c: Likewise.
3886         * lib/unistdio/ulc-snprintf.c: Likewise.
3887         * lib/unistdio/ulc-sprintf.c: Likewise.
3888         * lib/unistdio/ulc-vasnprintf.c: Likewise.
3889         * lib/unistdio/ulc-vasprintf.c: Likewise.
3890         * lib/unistdio/ulc-vsnprintf.c: Likewise.
3891         * lib/unistdio/ulc-vsprintf.c: Likewise.
3892         * lib/unistr.h: Likewise.
3893         * lib/unistr/u-cpy-alloc.h: Likewise.
3894         * lib/unistr/u-cpy.h: Likewise.
3895         * lib/unistr/u-endswith.h: Likewise.
3896         * lib/unistr/u-move.h: Likewise.
3897         * lib/unistr/u-set.h: Likewise.
3898         * lib/unistr/u-startswith.h: Likewise.
3899         * lib/unistr/u-stpcpy.h: Likewise.
3900         * lib/unistr/u-stpncpy.h: Likewise.
3901         * lib/unistr/u-strcat.h: Likewise.
3902         * lib/unistr/u-strcpy.h: Likewise.
3903         * lib/unistr/u-strcspn.h: Likewise.
3904         * lib/unistr/u-strdup.h: Likewise.
3905         * lib/unistr/u-strlen.h: Likewise.
3906         * lib/unistr/u-strncat.h: Likewise.
3907         * lib/unistr/u-strncpy.h: Likewise.
3908         * lib/unistr/u-strnlen.h: Likewise.
3909         * lib/unistr/u-strpbrk.h: Likewise.
3910         * lib/unistr/u-strspn.h: Likewise.
3911         * lib/unistr/u-strstr.h: Likewise.
3912         * lib/unistr/u-strtok.h: Likewise.
3913         * lib/unistr/u16-check.c: Likewise.
3914         * lib/unistr/u16-chr.c: Likewise.
3915         * lib/unistr/u16-cmp.c: Likewise.
3916         * lib/unistr/u16-cpy-alloc.c: Likewise.
3917         * lib/unistr/u16-cpy.c: Likewise.
3918         * lib/unistr/u16-endswith.c: Likewise.
3919         * lib/unistr/u16-mblen.c: Likewise.
3920         * lib/unistr/u16-mbsnlen.c: Likewise.
3921         * lib/unistr/u16-mbtouc-aux.c: Likewise.
3922         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
3923         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
3924         * lib/unistr/u16-mbtouc.c: Likewise.
3925         * lib/unistr/u16-mbtoucr.c: Likewise.
3926         * lib/unistr/u16-move.c: Likewise.
3927         * lib/unistr/u16-next.c: Likewise.
3928         * lib/unistr/u16-prev.c: Likewise.
3929         * lib/unistr/u16-set.c: Likewise.
3930         * lib/unistr/u16-startswith.c: Likewise.
3931         * lib/unistr/u16-stpcpy.c: Likewise.
3932         * lib/unistr/u16-stpncpy.c: Likewise.
3933         * lib/unistr/u16-strcat.c: Likewise.
3934         * lib/unistr/u16-strchr.c: Likewise.
3935         * lib/unistr/u16-strcmp.c: Likewise.
3936         * lib/unistr/u16-strcpy.c: Likewise.
3937         * lib/unistr/u16-strcspn.c: Likewise.
3938         * lib/unistr/u16-strdup.c: Likewise.
3939         * lib/unistr/u16-strlen.c: Likewise.
3940         * lib/unistr/u16-strmblen.c: Likewise.
3941         * lib/unistr/u16-strmbtouc.c: Likewise.
3942         * lib/unistr/u16-strncat.c: Likewise.
3943         * lib/unistr/u16-strncmp.c: Likewise.
3944         * lib/unistr/u16-strncpy.c: Likewise.
3945         * lib/unistr/u16-strnlen.c: Likewise.
3946         * lib/unistr/u16-strpbrk.c: Likewise.
3947         * lib/unistr/u16-strrchr.c: Likewise.
3948         * lib/unistr/u16-strspn.c: Likewise.
3949         * lib/unistr/u16-strstr.c: Likewise.
3950         * lib/unistr/u16-strtok.c: Likewise.
3951         * lib/unistr/u16-to-u32.c: Likewise.
3952         * lib/unistr/u16-to-u8.c: Likewise.
3953         * lib/unistr/u16-uctomb-aux.c: Likewise.
3954         * lib/unistr/u16-uctomb.c: Likewise.
3955         * lib/unistr/u32-check.c: Likewise.
3956         * lib/unistr/u32-chr.c: Likewise.
3957         * lib/unistr/u32-cmp.c: Likewise.
3958         * lib/unistr/u32-cpy-alloc.c: Likewise.
3959         * lib/unistr/u32-cpy.c: Likewise.
3960         * lib/unistr/u32-endswith.c: Likewise.
3961         * lib/unistr/u32-mblen.c: Likewise.
3962         * lib/unistr/u32-mbsnlen.c: Likewise.
3963         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
3964         * lib/unistr/u32-mbtouc.c: Likewise.
3965         * lib/unistr/u32-mbtoucr.c: Likewise.
3966         * lib/unistr/u32-move.c: Likewise.
3967         * lib/unistr/u32-next.c: Likewise.
3968         * lib/unistr/u32-prev.c: Likewise.
3969         * lib/unistr/u32-set.c: Likewise.
3970         * lib/unistr/u32-startswith.c: Likewise.
3971         * lib/unistr/u32-stpcpy.c: Likewise.
3972         * lib/unistr/u32-stpncpy.c: Likewise.
3973         * lib/unistr/u32-strcat.c: Likewise.
3974         * lib/unistr/u32-strchr.c: Likewise.
3975         * lib/unistr/u32-strcmp.c: Likewise.
3976         * lib/unistr/u32-strcpy.c: Likewise.
3977         * lib/unistr/u32-strcspn.c: Likewise.
3978         * lib/unistr/u32-strdup.c: Likewise.
3979         * lib/unistr/u32-strlen.c: Likewise.
3980         * lib/unistr/u32-strmblen.c: Likewise.
3981         * lib/unistr/u32-strmbtouc.c: Likewise.
3982         * lib/unistr/u32-strncat.c: Likewise.
3983         * lib/unistr/u32-strncmp.c: Likewise.
3984         * lib/unistr/u32-strncpy.c: Likewise.
3985         * lib/unistr/u32-strnlen.c: Likewise.
3986         * lib/unistr/u32-strpbrk.c: Likewise.
3987         * lib/unistr/u32-strrchr.c: Likewise.
3988         * lib/unistr/u32-strspn.c: Likewise.
3989         * lib/unistr/u32-strstr.c: Likewise.
3990         * lib/unistr/u32-strtok.c: Likewise.
3991         * lib/unistr/u32-to-u16.c: Likewise.
3992         * lib/unistr/u32-to-u8.c: Likewise.
3993         * lib/unistr/u32-uctomb.c: Likewise.
3994         * lib/unistr/u8-check.c: Likewise.
3995         * lib/unistr/u8-chr.c: Likewise.
3996         * lib/unistr/u8-cmp.c: Likewise.
3997         * lib/unistr/u8-cpy-alloc.c: Likewise.
3998         * lib/unistr/u8-cpy.c: Likewise.
3999         * lib/unistr/u8-endswith.c: Likewise.
4000         * lib/unistr/u8-mblen.c: Likewise.
4001         * lib/unistr/u8-mbsnlen.c: Likewise.
4002         * lib/unistr/u8-mbtouc-aux.c: Likewise.
4003         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
4004         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
4005         * lib/unistr/u8-mbtouc.c: Likewise.
4006         * lib/unistr/u8-mbtoucr.c: Likewise.
4007         * lib/unistr/u8-move.c: Likewise.
4008         * lib/unistr/u8-next.c: Likewise.
4009         * lib/unistr/u8-prev.c: Likewise.
4010         * lib/unistr/u8-set.c: Likewise.
4011         * lib/unistr/u8-startswith.c: Likewise.
4012         * lib/unistr/u8-stpcpy.c: Likewise.
4013         * lib/unistr/u8-stpncpy.c: Likewise.
4014         * lib/unistr/u8-strcat.c: Likewise.
4015         * lib/unistr/u8-strchr.c: Likewise.
4016         * lib/unistr/u8-strcmp.c: Likewise.
4017         * lib/unistr/u8-strcpy.c: Likewise.
4018         * lib/unistr/u8-strcspn.c: Likewise.
4019         * lib/unistr/u8-strdup.c: Likewise.
4020         * lib/unistr/u8-strlen.c: Likewise.
4021         * lib/unistr/u8-strmblen.c: Likewise.
4022         * lib/unistr/u8-strmbtouc.c: Likewise.
4023         * lib/unistr/u8-strncat.c: Likewise.
4024         * lib/unistr/u8-strncmp.c: Likewise.
4025         * lib/unistr/u8-strncpy.c: Likewise.
4026         * lib/unistr/u8-strnlen.c: Likewise.
4027         * lib/unistr/u8-strpbrk.c: Likewise.
4028         * lib/unistr/u8-strrchr.c: Likewise.
4029         * lib/unistr/u8-strspn.c: Likewise.
4030         * lib/unistr/u8-strstr.c: Likewise.
4031         * lib/unistr/u8-strtok.c: Likewise.
4032         * lib/unistr/u8-to-u16.c: Likewise.
4033         * lib/unistr/u8-to-u32.c: Likewise.
4034         * lib/unistr/u8-uctomb-aux.c: Likewise.
4035         * lib/unistr/u8-uctomb.c: Likewise.
4036         * lib/unitypes.h: Likewise.
4037         * lib/uniwidth.h: Likewise.
4038         * lib/uniwidth/cjk.h: Likewise.
4039         * lib/uniwidth/u16-strwidth.c: Likewise.
4040         * lib/uniwidth/u16-width.c: Likewise.
4041         * lib/uniwidth/u32-strwidth.c: Likewise.
4042         * lib/uniwidth/u32-width.c: Likewise.
4043         * lib/uniwidth/u8-strwidth.c: Likewise.
4044         * lib/uniwidth/u8-width.c: Likewise.
4045         * lib/uniwidth/width.c: Likewise.
4046
4047 2007-10-07  Bruno Haible  <bruno@clisp.org>
4048
4049         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
4050         The file is still under LGPL (see modules/inttypes).
4051
4052 2007-10-06  Bruno Haible  <bruno@clisp.org>
4053
4054         * modules/trunc (Dependencies): Add 'extensions'.
4055         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
4056         Reported by Ben Pfaff <blp@gnu.org>.
4057
4058 2007-10-06  Bruno Haible  <bruno@clisp.org>
4059
4060         * modules/freopen-tests: New file.
4061         * tests/test-freopen.c: New file.
4062
4063         * modules/fopen-tests: New file.
4064         * tests/test-fopen.c: New file.
4065
4066         * modules/fopen: New file.
4067         * lib/fopen.c: New file.
4068         * m4/fopen.m4: New file.
4069         * modules/freopen: New file.
4070         * lib/freopen.c: New file.
4071         * m4/freopen.m4: New file.
4072         * lib/stdio.in.h (fopen, freopen): New declarations.
4073         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
4074         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
4075         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
4076         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
4077         * doc/functions/fopen.texi: Mention the 'fopen' module.
4078         * doc/functions/freopen.texi: Mention the 'freopen' module.
4079
4080 2007-10-06  Bruno Haible  <bruno@clisp.org>
4081
4082         * modules/open-tests: New file.
4083         * tests/test-open.c: New file.
4084
4085         * modules/open: New file.
4086         * lib/open.c: New file.
4087         * m4/open.m4: New file.
4088         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
4089         lib/open.c does.
4090         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
4091         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
4092         macros.
4093         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
4094         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
4095         REPLACE_OPEN.
4096         * doc/functions/open.texi: Mention the 'open' module.
4097
4098 2007-10-04  Bruno Haible  <bruno@clisp.org>
4099
4100         * modules/ceill-tests: New file.
4101         * tests/test-ceill.c: New file.
4102
4103         * modules/ceill: New file.
4104         * lib/ceill.c: Replace entire file.
4105         * m4/ceill.m4: New file.
4106         * lib/math.in.h (ceill): Replace declaration.
4107         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
4108         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
4109         * doc/functions/ceill.texi: Mention the 'ceill' module.
4110         * modules/mathl (Files): Remove lib/ceill.c.
4111         (Depends-on): Add ceill.
4112
4113 2007-10-04  Bruno Haible  <bruno@clisp.org>
4114
4115         * modules/ceilf-tests: New file.
4116         * tests/test-ceilf.c: New file.
4117
4118         * modules/ceilf: New file.
4119         * lib/ceil.c: New file.
4120         * lib/ceilf.c: New file.
4121         * m4/ceilf.m4: New file.
4122         * lib/math.in.h (ceilf): New declaration.
4123         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
4124         HAVE_DECL_CEILF.
4125         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
4126         HAVE_DECL_CEILF.
4127         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
4128
4129 2007-10-04  Bruno Haible  <bruno@clisp.org>
4130
4131         * modules/floorl-tests: New file.
4132         * tests/test-floorl.c: New file.
4133
4134         * modules/floorl: New file.
4135         * lib/floorl.c: Replace entire file.
4136         * m4/floorl.m4: New file.
4137         * lib/math.in.h (floorl): Replace declaration.
4138         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
4139         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
4140         * doc/functions/floorl.texi: Mention the 'floorl' module.
4141         * modules/mathl (Files): Remove lib/floorl.c.
4142         (Depends-on): Add floorl.
4143
4144 2007-10-04  Bruno Haible  <bruno@clisp.org>
4145
4146         * modules/floorf-tests: New file.
4147         * tests/test-floorf.c: New file.
4148
4149         * modules/floorf: New file.
4150         * lib/floor.c: New file.
4151         * lib/floorf.c: New file.
4152         * m4/floorf.m4: New file.
4153         * lib/math.in.h (floorf): New declaration.
4154         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
4155         HAVE_DECL_FLOORF.
4156         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
4157         HAVE_DECL_FLOORF.
4158         * doc/functions/floorf.texi: Mention the 'floorf' module.
4159
4160 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
4161             Bruno Haible  <bruno@clisp.org>
4162
4163         Advertise for the Git server instead of the CVS server.
4164         * doc/gnulib-intro.texi (Steady Development): Mention the Git
4165         repository instead of the CVS one.
4166         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
4167         about all VCS systems generically.
4168         * doc/gnulib.texi (Introduction): Capitalize `Git'.
4169
4170 2007-10-04  Bruno Haible  <bruno@clisp.org>
4171
4172         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
4173         means.
4174         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
4175
4176 2007-10-04  Bruno Haible  <bruno@clisp.org>
4177
4178         * modules/truncl-tests: New file.
4179         * tests/test-truncl.c: New file.
4180
4181         * modules/truncl: New file.
4182         * lib/truncl.c: New file.
4183         * m4/truncl.m4: New file.
4184         * lib/math.in.h (truncl): New declaration.
4185         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
4186         HAVE_DECL_TRUNCL.
4187         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
4188         HAVE_DECL_TRUNCL.
4189         * doc/functions/truncl.texi: Mention the 'truncl' module.
4190
4191 2007-10-04  Bruno Haible  <bruno@clisp.org>
4192
4193         * modules/truncf-tests: New file.
4194         * tests/test-truncf.c: New file.
4195
4196         * modules/truncf: New file.
4197         * lib/trunc.c: Make paramerizable through USE_* macros.
4198         * lib/truncf.c: New file.
4199         * m4/truncf.m4: New file.
4200         * lib/math.in.h (truncf): New declaration.
4201         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
4202         HAVE_DECL_TRUNCF.
4203         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
4204         HAVE_DECL_TRUNCF.
4205         * doc/functions/truncf.texi: Mention the 'truncf' module.
4206
4207 2007-10-03  Bruno Haible  <bruno@clisp.org>
4208
4209         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
4210         augmentation also for tests modules.
4211         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
4212         * modules/atexit-tests (Makefile.am): Likewise.
4213         * modules/binary-io-tests (Makefile.am): Likewise.
4214         * modules/c-strcase-tests (Makefile.am): Likewise.
4215         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
4216         * modules/canonicalize-tests (Makefile.am): Likewise.
4217         * modules/closein-tests (Makefile.am): Likewise.
4218         * modules/fprintf-posix-tests (Makefile.am): Likewise.
4219         * modules/freadahead-tests (Makefile.am): Likewise.
4220         * modules/fseek-tests (Makefile.am): Likewise.
4221         * modules/fseeko-tests (Makefile.am): Likewise.
4222         * modules/ftell-tests (Makefile.am): Likewise.
4223         * modules/ftello-tests (Makefile.am): Likewise.
4224         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
4225         * modules/isnanl-tests (Makefile.am): Likewise.
4226         * modules/lseek-tests (Makefile.am): Likewise.
4227         * modules/mbscasecmp-tests (Makefile.am): Likewise.
4228         * modules/mbscasestr-tests (Makefile.am): Likewise.
4229         * modules/mbschr-tests (Makefile.am): Likewise.
4230         * modules/mbscspn-tests (Makefile.am): Likewise.
4231         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
4232         * modules/mbspbrk-tests (Makefile.am): Likewise.
4233         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
4234         * modules/mbsrchr-tests (Makefile.am): Likewise.
4235         * modules/mbsspn-tests (Makefile.am): Likewise.
4236         * modules/mbsstr-tests (Makefile.am): Likewise.
4237         * modules/printf-posix-tests (Makefile.am): Likewise.
4238         * modules/snprintf-posix-tests (Makefile.am): Likewise.
4239         * modules/sprintf-posix-tests (Makefile.am): Likewise.
4240         * modules/tsearch-tests (Makefile.am): Likewise.
4241         * modules/uniname/uniname-tests (Makefile.am): Likewise.
4242         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
4243         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
4244         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
4245         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
4246         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
4247         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
4248         * modules/vprintf-posix-tests (Makefile.am): Likewise.
4249         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
4250         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
4251         * modules/xstrtoimax-tests (Makefile.am): Likewise.
4252         * modules/xstrtol-tests (Makefile.am): Likewise.
4253         * modules/xstrtoumax-tests (Makefile.am): Likewise.
4254         * modules/yesno-tests (Makefile.am): Likewise.
4255
4256 2007-10-03  Bruno Haible  <bruno@clisp.org>
4257
4258         * modules/trunc-tests: New file.
4259         * tests/test-trunc.c: New file.
4260
4261         * modules/trunc: New file.
4262         * lib/trunc.c: New file.
4263         * m4/trunc.m4: New file.
4264         * lib/math.in.h (trunc): New declaration.
4265         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
4266         HAVE_DECL_TRUNC.
4267         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
4268         HAVE_DECL_TRUNC.
4269         * doc/functions/trunc.texi: Mention the 'trunc' module.
4270
4271 2007-10-03  Bruno Haible  <bruno@clisp.org>
4272
4273         * tests/test-fpending.c: New file, mostly copied
4274         from coreutils/lib/t-fpending.c.
4275         * modules/fpending-tests: New file.
4276
4277 2007-10-03  Bruno Haible  <bruno@clisp.org>
4278
4279         Port the stdio extensions to QNX (untested).
4280         * lib/fseterr.c (fseterr): Add support for QNX.
4281         * lib/fbufmode.c (fbufmode): Likewise.
4282         * lib/freadable.c (freadable): Likewise.
4283         * lib/fwritable.c (fwritable): Likewise.
4284         * lib/freading.c (freading): Likewise.
4285         * lib/fwriting.c (fwriting): Likewise.
4286         * lib/freadahead.c (freadahed): Likewise.
4287         * lib/fpurge.c (fpurge): Likewise.
4288         * lib/fseeko.c (rpl_fseeko): Likewise.
4289
4290 2007-10-03  Bruno Haible  <bruno@clisp.org>
4291             Jim Meyering  <jim@meyering.net>
4292             Eric Blake  <ebb9@byu.net>
4293
4294         * doc/relocatable.texi: Use @command instead of @program.
4295
4296 2007-10-02  Jim Meyering  <jim@meyering.net>
4297
4298         Perform one more "_.h" -> ".in.h" substitution.
4299         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
4300         instead of unistd_.h here, too.
4301
4302 2007-10-01  Bruno Haible  <bruno@clisp.org>
4303
4304         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
4305         Needed for the alloca-opt module.
4306
4307 2007-09-30  Bruno Haible  <bruno@clisp.org>
4308
4309         * lib/alloca.in.h: Renamed from lib/alloca_.h.
4310         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
4311         alloca_.h.
4312         * lib/argz.in.h: Renamed from lib/argz_.h.
4313         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
4314         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
4315         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
4316         byteswap_.h.
4317         * lib/dirent.in.h: Renamed from lib/dirent_.h.
4318         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
4319         dirent_.h.
4320         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
4321         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
4322         fcntl_.h.
4323         * lib/float.in.h: Renamed from lib/float_.h.
4324         * modules/float (Files, Makefile.am): Use float.in.h instead of
4325         float_.h.
4326         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
4327         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
4328         fnmatch_.h.
4329         * lib/getopt.in.h: Renamed from lib/getopt_.h.
4330         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
4331         getopt_.h.
4332         * lib/glob.in.h: Renamed from lib/glob_.h.
4333         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
4334         * lib/iconv.in.h: Renamed from lib/iconv_.h.
4335         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
4336         iconv_.h.
4337         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
4338         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
4339         inttypes_.h.
4340         * lib/locale.in.h: Renamed from lib/locale_.h.
4341         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
4342         locale_.h.
4343         * lib/math.in.h: Renamed from lib/math_.h.
4344         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
4345         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
4346         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
4347         of netinet_in_.h. Add dependency.
4348         * lib/poll.in.h: Renamed from lib/poll_.h.
4349         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
4350         * lib/search.in.h: Renamed from lib/search_.h.
4351         * modules/search (Files, Makefile.am): Use search.in.h instead of
4352         search_.h.
4353         * lib/signal.in.h: Renamed from lib/signal_.h.
4354         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
4355         _signal.h.
4356         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
4357         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
4358         stdbool_.h.
4359         * lib/stdint.in.h: Renamed from lib/stdint_.h.
4360         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
4361         stdint_.h.
4362         * lib/stdio.in.h: Renamed from lib/stdio_.h.
4363         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
4364         stdio_.h.
4365         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
4366         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
4367         stdlib_.h.
4368         * lib/string.in.h: Renamed from lib/string_.h.
4369         * modules/string (Files, Makefile.am): Use string.in.h instead of
4370         string_.h.
4371         * doc/gnulib-tool.texi (Initial import): Update.
4372         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
4373         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
4374         of sys_select_.h. Add dependency.
4375         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
4376         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
4377         of sys_socket_.h.
4378         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
4379         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
4380         sys_stat_.h.
4381         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
4382         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
4383         sys_time_.h.
4384         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
4385         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
4386         sysexits_.h.
4387         * lib/time.in.h: Renamed from lib/time_.h.
4388         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
4389         * lib/unistd.in.h: Renamed from lib/unistd_.h.
4390         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
4391         unistd_.h.
4392         * lib/wchar.in.h: Renamed from lib/wchar_.h.
4393         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
4394         wchar_.h.
4395         * lib/wctype.in.h: Renamed from lib/wctype_.h.
4396         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
4397         wctype_.h.
4398         * build-aux/bootstrap (slurp): Update.
4399         * lib/.cppi-disable: Update.
4400
4401 2007-09-30  Bruno Haible  <bruno@clisp.org>
4402
4403         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
4404         Needed on BeOS.
4405
4406 2007-09-30  Bruno Haible  <bruno@clisp.org>
4407
4408         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
4409
4410 2007-09-29  Bruno Haible  <bruno@clisp.org>
4411
4412         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
4413
4414 2007-09-29  Bruno Haible  <bruno@clisp.org>
4415
4416         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
4417         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
4418         * build-aux/install-reloc: Compile also areadlink.c.
4419         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
4420
4421 2007-09-29  Bruno Haible  <bruno@clisp.org>
4422
4423         * gnulib-tool (func_emit_initmacro_done): Indentation.
4424
4425 2007-09-29  Bruno Haible  <bruno@clisp.org>
4426
4427         * README: Add CVS checkout update instructions.
4428         Info from Bob Proulx <bob@proulx.com>.
4429
4430 2007-09-28  Eric Blake  <ebb9@byu.net>
4431
4432         Provide move-if-change.
4433         * build-aux/move-if-change: New file, based on best practice
4434         rather than any canonical upstream location.
4435
4436 2007-09-28  Jim Meyering  <jim@meyering.net>
4437
4438         Fix canonicalize loop-detection corner case.
4439         Do not attempt to stat the symlink values stored via seen_triple.
4440         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
4441         on linux-2.6.18, (but not 2.6.22).
4442         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
4443         triple_compare.  The former compares dev,ino,filename, while the latter
4444         would actually stat dirname(filename) when dev and ino were equal.
4445         * lib/hash-triple.c: Install <string.h>.
4446         (STREQ): Define.
4447         (triple_compare_ino_str): New function.
4448         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
4449
4450 2007-09-28  Eric Blake  <ebb9@byu.net>
4451
4452         Enforce that AC_REPLACE_FUNCS files exist.
4453         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
4454         override check for typos.
4455
4456         Fix test-closein on Solaris 10.
4457         * tests/test-closein.c (main): Don't assume stdin can be inherited
4458         closed on all systems.
4459         * tests/test-closein.sh: Likewise.
4460         Reported by Piotr Tarnowski.
4461
4462 2007-09-28  Jim Meyering  <jim@meyering.net>
4463
4464         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
4465
4466 2007-09-27  Jim Meyering  <jim@meyering.net>
4467
4468         canonicalize: Avoid a false-positive cycle failure.
4469         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
4470         Sort.  Remove cycle-check.
4471         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
4472         not cycle-check.h.
4473         (seen_triple): New function.
4474         (canonicalize_filename_mode): Use it instead of cycle-check.
4475         * tests/test-canonicalize.c: Add a test for this bug.
4476         * tests/test-canonicalize.sh: Set up and run the test.
4477
4478         New module, file-set, from coreutils.
4479         * modules/file-set: Define it.
4480         * lib/file-set.c, lib/file-set.h: Implement.
4481
4482         New module, hash-triple, from coreutils.
4483         * modules/hash-triple: Define it.
4484         * lib/hash-triple.c, lib/hash-triple.h: Implement.
4485
4486 2007-09-25  Eric Blake  <ebb9@byu.net>
4487
4488         Fix strerror on Interix.
4489         * lib/string_.h (strerror): Declare replacement.
4490         * doc/functions/strerror.texi (strerror): Document the Interix
4491         shortcoming.
4492         * modules/string (Makefile.am): Support new hooks.
4493         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
4494         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
4495         gl_FUNC_STRERROR_SEPARATE.
4496         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
4497         * lib/strerror.c (rpl_strerror): Provide replacement.
4498         * modules/strerror (Depends-on): Add string.
4499         (configure.ac): Detect use of module.
4500         * tests/test-strerror.c: New file.
4501         * modules/strerror-tests: New test module.
4502         * modules/argp (Depends-on): Add strerror.
4503         * modules/error (Depends-on): Likewise.
4504         Reported by Martin Koeppe.
4505
4506 2007-09-24  Bruno Haible  <bruno@clisp.org>
4507
4508         * README: Update git instructions.
4509
4510 2007-09-24  Eric Blake  <ebb9@byu.net>
4511
4512         Revert fpending breakage from 2007-09-08.
4513         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
4514         __fpending.c.
4515
4516 2007-09-24  Jim Meyering  <jim@meyering.net>
4517
4518         filenamecat.c: Add a test.
4519         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
4520         showing how the function works when DIR is the empty string.
4521
4522 2007-09-21  Simon Josefsson  <simon@josefsson.org>
4523
4524         * tests/test-canonicalize.sh: Turn on executable bit.
4525
4526 2007-09-19  Eric Blake  <ebb9@byu.net>
4527
4528         * README: Update CVS instructions.
4529
4530 2007-09-18  Bruno Haible  <bruno@clisp.org>
4531
4532         * modules/areadlink: New file.
4533         * lib/areadlink.h (areadlink): New declaration.
4534         * lib/areadlink.c: New file, based on lib/xreadlink.c.
4535
4536 2007-09-17  Jim Meyering  <jim@meyering.net>
4537
4538         * lib/savewd.c (ESTALE) [!defined]: Define.
4539         Reported to be required on Interix by Martin Koeppe.
4540
4541 2007-09-17  Bruno Haible  <bruno@clisp.org>
4542
4543         * gnulib-tool (func_version): Use $version.
4544
4545 2007-09-16  Bruno Haible  <bruno@clisp.org>
4546
4547         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
4548         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
4549         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
4550         Reported by Greg Schafer <gschafer@zip.com.au>.
4551
4552 2007-09-15  Bruno Haible  <bruno@clisp.org>
4553
4554         * gnulib-tool (sed): Try a little harder to make bash understand the
4555         alias.
4556         Reported by Bruce Korb <bruce.korb@gmail.com>.
4557
4558 2007-09-13  Eric Blake  <ebb9@byu.net>
4559
4560         * ChangeLog: Remove conflict markers.
4561
4562 2007-09-13  Simon Josefsson  <simon@josefsson.org>
4563
4564         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
4565         Reported by Bruno Haible <bruno@clisp.org>.
4566
4567 2007-09-12  Bruno Haible  <bruno@clisp.org>
4568
4569         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
4570         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
4571         is not defined.
4572
4573 2007-09-12  Eric Blake  <ebb9@byu.net>
4574
4575         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
4576         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
4577         Autoconf definition.
4578         * modules/euidaccess (Depends-on): Add extensions, for
4579         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
4580         * modules/fnmatch (Depends-on): Likewise.
4581         * modules/getaddrinfo (Depends-on): Likewise.
4582         * modules/getdelim (Depends-on): Likewise.
4583         * modules/getline (Depends-on): Likewise.
4584         * modules/getsubopt (Depends-on): Likewise.
4585         * modules/gettext (Depends-on): Likewise.
4586         * modules/group-member (Depends-on): Likewise.
4587         * modules/mbchar (Depends-on): Likewise.
4588         * modules/memmem (Depends-on): Likewise.
4589         * modules/mempcpy (Depends-on): Likewise.
4590         * modules/memrchr (Depends-on): Likewise.
4591         * modules/pagealign_alloc (Depends-on): Likewise.
4592         * modules/readutmp (Depends-on): Likewise.
4593         * modules/stpcpy (Depends-on): Likewise.
4594         * modules/stpncpy (Depends-on): Likewise.
4595         * modules/strchrnul (Depends-on): Likewise.
4596         * modules/strndup (Depends-on): Likewise.
4597         * modules/strsep (Depends-on): Likewise.
4598         * modules/strverscmp (Depends-on): Likewise.
4599         * modules/vasprintf (Depends-on): Likewise.
4600         * modules/wcwidth (Depends-on): Likewise.
4601         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
4602         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
4603         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
4604         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
4605         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
4606         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
4607         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
4608         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
4609         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
4610         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
4611         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
4612         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
4613         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
4614         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
4615         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
4616         * m4/readutmp.m4 (gl_READUTMP): Likewise.
4617         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4618         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
4619         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
4620         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
4621         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
4622         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
4623         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
4624         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
4625         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
4626         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4627         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
4628         so that lock.m4 can be used in gettext without extensions module.
4629
4630 2007-09-11  Bruno Haible  <bruno@clisp.org>
4631
4632         * m4/isc-posix.m4: Remove file.
4633         Suggested by Eric Blake.
4634
4635 2007-09-11  Eric Blake  <ebb9@byu.net>
4636
4637         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
4638
4639 2007-09-10  Bruno Haible  <bruno@clisp.org>
4640
4641         * posix-modules: Fix typo in error message.
4642         Reported by Matt <mkraai@beckman.com>.
4643
4644 2007-09-09  Bruno Haible  <bruno@clisp.org>
4645
4646         * doc/functions/getdelim.texi: Update list of platforms lacking the
4647         function.
4648         * doc/functions/getline.texi: Likewise.
4649
4650 2007-09-09  Jim Meyering  <jim@meyering.net>
4651
4652         * lib/hash.c (hash_initialize): Detect calloc failure.
4653         Reported by Bruno Haible.
4654
4655 2007-09-09  Bruno Haible  <bruno@clisp.org>
4656
4657         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
4658         malloc or realloc fails.
4659
4660 2007-09-09  Bruno Haible  <bruno@clisp.org>
4661
4662         * modules/getcwd (Depends-on): Add malloc-posix.
4663         * modules/glob (Depends-on): Likewise.
4664         * modules/putenv (Depends-on): Likewise.
4665         * modules/strdup (Depends-on): Likewise.
4666         * modules/getdelim (Depends-on): Add realloc-posix.
4667         * modules/read-file (Depends-on): Likewise.
4668
4669 2007-09-09  Bruno Haible  <bruno@clisp.org>
4670
4671         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
4672         (gl_FUNC_MALLOC_POSIX): Require it.
4673         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
4674         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
4675         * modules/realloc (Files): Add m4/malloc.m4.
4676         * modules/calloc (Files): Likewise.
4677
4678 2007-09-09  Bruno Haible  <bruno@clisp.org>
4679
4680         * modules/malloc-posix: New file.
4681         * modules/malloc (Depends-on): Add malloc-posix.
4682         * lib/malloc.c: Include errno.h.
4683         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
4684         and a POSIX-compatible malloc into a single function. Set ENOMEM
4685         when returning NULL.
4686         * m4/malloc.m4: New file.
4687         * doc/functions/malloc.texi: Mention the malloc-posix module.
4688         * lib/stdlib_.h (malloc): New declaration.
4689         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
4690         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
4691         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
4692         and HAVE_MALLOC_POSIX.
4693
4694 2007-09-09  Bruno Haible  <bruno@clisp.org>
4695
4696         * modules/realloc-posix: New file.
4697         * modules/realloc (Depends-on): Add realloc-posix.
4698         * lib/realloc.c: Include errno.h.
4699         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
4700         and a POSIX-compatible realloc into a single function. Set ENOMEM
4701         when returning NULL.
4702         * m4/realloc.m4: New file.
4703         * doc/functions/realloc.texi: Mention the realloc-posix module.
4704         * lib/stdlib_.h (realloc): New declaration.
4705         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
4706         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
4707         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
4708         and HAVE_REALLOC_POSIX.
4709
4710 2007-09-09  Bruno Haible  <bruno@clisp.org>
4711
4712         * modules/calloc-posix: New file.
4713         * modules/calloc (Depends-on): Add calloc-posix.
4714         * lib/calloc.c: Include errno.h.
4715         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
4716         and a POSIX-compatible calloc into a single function. Set ENOMEM
4717         when returning NULL.
4718         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
4719         * doc/functions/calloc.texi: Mention the calloc-posix module.
4720         * lib/stdlib_.h (calloc): New declaration.
4721         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
4722         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
4723         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
4724         and HAVE_CALLOC_POSIX.
4725
4726 2007-09-09  Bruno Haible  <bruno@clisp.org>
4727
4728         Allow for modules to show an arbitrary notice.
4729         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
4730         * gnulib-tool: New option --extract-notice.
4731         (func_usage): Document it.
4732         (sed_extract_prog): Update.
4733         (func_get_notice): New function.
4734         (func_modules_notice): New function.
4735         (func_import, func_create_testdir): Invoke it.
4736         Suggested by Jim Meyering.
4737
4738 2007-09-09  Bruno Haible  <bruno@clisp.org>
4739
4740         * gnulib-tool: New options --verbose, --quiet.
4741         (func_usage): Document them.
4742         (verbose): New variable.
4743         (func_execute_command): New function.
4744         (func_import): Don't show the module list and the file list if
4745         $verbose < 0.
4746         (func_create_testdir): Likewise. Use func_execute_command.
4747         (func_create_megatestdir): Use func_execute_command.
4748
4749 2007-09-08  Bruno Haible  <bruno@clisp.org>
4750
4751         * gnulib-tool (func_import): Prefer rsync over wget when available,
4752         for fetching the PO files.
4753
4754 2007-09-08  Bruno Haible  <bruno@clisp.org>
4755
4756         * posix-modules: New file. Portions copied from gnulib-tool.
4757         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
4758
4759 2007-09-08  Jim Meyering  <jim@meyering.net>
4760
4761         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
4762         * lib/fpending.h: Rename from __fpending.h.
4763         * lib/fpending.c: Rename from __fpending.c.
4764         Include "fpending.h", not "__fpending.h".
4765         * lib/__fpending.h, lib/__fpending.c: Remove files.
4766         * modules/fpending (Files): Reflect new file names.
4767         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
4768
4769 2007-09-08  Bruno Haible  <bruno@clisp.org>
4770
4771         * m4/inttypes-h.m4: Remove stub file.
4772
4773 2007-09-07  Simon Josefsson  <simon@josefsson.org>
4774
4775         * doc/headers/stdint.texi: Discuss #include_next issue.
4776
4777 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
4778
4779         * build-aux/bootstrap: Remove obsolete comment about wget --help.
4780
4781 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
4782
4783         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
4784         in variable name.
4785
4786 2007-09-03  Jim Meyering  <jim@meyering.net>
4787
4788         New module: git-version-gen.
4789         * modules/git-version-gen: New file.
4790
4791         Import changes from coreutils for bootstrap script.
4792
4793         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
4794
4795         bootstrap: uses rsync to download the .po files
4796         * build-aux/bootstrap (po_download_command_format): New global.
4797         (download_po_files): Use rsync.
4798         (update_po_files): Don't remove .po files after download,
4799         so future rsync runs can take advantage of the copies.
4800
4801         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
4802
4803         Solve the unnecessary-.po-file-regeneration problem once and for all.
4804         * build-aux/bootstrap (download_po_files): New function, renamed from
4805         get_translations.  Now, downloads, but doesn't update LINGUAS.
4806         (update_po_files): New function.
4807
4808         bootstrap: Ignore more.
4809         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
4810         uniwidth to e.g., lib/.gitignore.
4811         (slurp): Handle the sys_stat_.h -> sys mapping, too.
4812
4813         * build-aux/bootstrap: New setting: vc_ignore.
4814         (insert_sorted_if_absent): Create $file if absent.
4815         Adapt to new, possibly empty, list: $vc_ignore.
4816
4817         bootstrap: generate more ignorable names
4818         * build-aux/bootstrap (slurp): When generating ignorable names,
4819         also map .sin to .sed, .gperf to .c, and .y to .c.
4820
4821 2007-09-03  Jim Meyering  <jim@meyering.net>
4822
4823         * build-aux/git-version-gen: New file, from coreutils.  For details, see
4824         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
4825
4826 2007-09-02  Bruno Haible  <bruno@clisp.org>
4827
4828         Fix mis-recognition of 'mcs' on QNX 6.
4829         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
4830         output contains the string "Mono".
4831         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
4832         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
4833
4834 2007-09-01  Bruno Haible  <bruno@clisp.org>
4835
4836         Fix collision between uniwidth/* and linebreak modules.
4837         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
4838         u32_width): Remove declarations.
4839         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
4840         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
4841         streq3, streq2, streq1, streq0): Remove functions.
4842         (STREQ): Remove macro.
4843         (is_cjk_encoding): Remove function.
4844         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
4845         (uc_width, u8_width, u16_width, u32_width): Remove functions.
4846         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
4847         * NEWS: Document the change.
4848
4849 2007-09-01  Bruno Haible  <bruno@clisp.org>
4850
4851         * lib/streq.h: Add double-inclusion guard.
4852
4853 2007-09-01  Karl Berry  <karl@gnu.org>
4854
4855         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
4856
4857 2007-08-28  Jim Meyering  <jim@meyering.net>
4858
4859         Rename mreadlink_with_size to areadlink_with_size.
4860         * NEWS: Document the change.
4861         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
4862         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
4863         * lib/mreadlink.h: Rename this to...
4864         * lib/areadlink.h: ...this.
4865         * modules/mreadlink-with-size: Rename this to...
4866         * modules/areadlink-with-size: ...this.
4867         * lib/canonicalize.c: Reflect the renaming.
4868         * modules/canonicalize: Likewise.
4869
4870 2007-08-26  Bruno Haible  <bruno@clisp.org>
4871
4872         * gnulib-tool (func_import): When deciding which files to remove,
4873         consider also dangling symbolic links.
4874         Reported by Eric Blake.
4875
4876 2007-08-26  Bruno Haible  <bruno@clisp.org>
4877
4878         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
4879
4880 2007-08-23  Simon Josefsson  <simon@josefsson.org>
4881
4882         * lib/readline.c: Don't include getline.h, the prototype is now
4883         found in stdio.h.
4884
4885 2007-08-23  Jim Meyering  <jim@meyering.net>
4886
4887         Getdelim touchup.
4888         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
4889         around the funlockfile call, since funlockfile never sets errno.
4890         Don't set errno upon failed realloc.
4891
4892 2007-08-22  Eric Blake  <ebb9@byu.net>
4893
4894         Getline touchups.
4895         * lib/getdelim.c (getdelim): Revert regression that required *n to
4896         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
4897         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
4898         getdelim, rather than whether implementation is missing.
4899         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
4900         * lib/stdio_.h (getline): Also declare if replacement is
4901         required.
4902         * doc/functions/getdelim.texi: New file.
4903         * doc/functions/getline.texi: Likewise.
4904         * doc/gnulib.texi (Function Substitutes): Add new files.
4905         Reported by Bruno Haible.
4906
4907 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
4908
4909         * users.txt: Add Guile.
4910
4911 2007-08-22  Eric Blake  <ebb9@byu.net>
4912
4913         * tests/test-getdelim.c (main): Use remove, not unlink.
4914         * tests/test-getline.c (main): Likewise.
4915
4916         Move getline and getdelim into stdio.h, per POSIX 200x.
4917         * modules/getline (Files): Remove getline.h.
4918         (Depends-on): Add stdio.
4919         (configure.ac): Add module indicator.
4920         * modules/getdelim (Files): Remove getdelim.h.
4921         (Depends-on): Add stdio.
4922         (configure.ac): Add module indicator.
4923         * modules/stdio (Makefile.am): Work with new indicators.
4924         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
4925         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
4926         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
4927         * lib/getdelim.h: Delete.
4928         * lib/getline.h: Delete.
4929         * lib/stdio_.h (getdelim, getline): Declare.
4930         * modules/getdelim-tests: New module.
4931         * modules/getline-tests: Likewise.
4932         * tests/test-getdelim.c: New file.
4933         * tests/test-getline.c: Likewise.
4934         * NEWS: Document the change.
4935         * lib/getline.c: Update choice of header.
4936         * lib/csharpcomp.c: Likewise.
4937         * lib/getpass.c: Likewise.
4938         * lib/javacomp.c: Likewise.
4939         * lib/javaversion.c: Likewise.
4940         * lib/yesno.c: Likewise.
4941         * lib/getdelim.c: Likewise.
4942         (getdelim): Set errno on failure, and avoid memory leak.
4943
4944 2007-08-19  Bruno Haible  <bruno@clisp.org>
4945
4946         * modules/closein (Depends-on): Add freadahead.
4947         * lib/closein.c: Include freadahead.h.
4948         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
4949         is zero.
4950
4951 2007-08-19  Bruno Haible  <bruno@clisp.org>
4952
4953         * modules/freadahead-tests: New file.
4954         * tests/test-freadahead.sh: New file.
4955         * tests/test-freadahead.c: New file.
4956
4957         * modules/freadahead: New file.
4958         * lib/freadahead.h: New file.
4959         * lib/freadahead.c: New file.
4960         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
4961         fbufmode, fpurge, freadable, fwritable.
4962
4963 2007-08-19  Eric Blake  <ebb9@byu.net>
4964
4965         Test yesno in combination with closein.
4966         * lib/yesno.c (yesno): Document use of stdin.
4967         * modules/yesno-tests (Files): New module.
4968         * tests/test-yesno.c (main): New file.
4969         * tests/test-yesno.sh: Likewise.
4970
4971 2007-08-19  Bruno Haible  <bruno@clisp.org>
4972
4973         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
4974         * lib/fseeko.c (rpl_fseeko): Likewise.
4975         * lib/fseterr.c (fseterr): Likewise.
4976
4977 2007-08-19  Bruno Haible  <bruno@clisp.org>
4978
4979         * tests/test-lseek.c (main): Disable a test for BeOS.
4980         * doc/functions/lseek.texi: Document the BeOS bug.
4981
4982 2007-08-19  Bruno Haible  <bruno@clisp.org>
4983             Eric Blake  <ebb9@byu.net>
4984
4985         * lib/lseek.c: Include <sys/stat.h>.
4986         (rpl_lseek): Add workaround code also for Unix platforms.
4987         Needed for BeOS.
4988         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
4989         * doc/functions/lseek.texi: Document BeOS definiency.
4990
4991 2007-08-18  Bruno Haible  <bruno@clisp.org>
4992
4993         * modules/fstrcmp-tests: New file.
4994         * tests/test-fstrcmp.c: New file.
4995
4996 2007-08-18  Bruno Haible  <bruno@clisp.org>
4997
4998         * modules/fstrcmp: New file, from GNU gettext with modifications.
4999         * lib/fstrcmp.h: New file, from GNU gettext.
5000         * lib/fstrcmp.c: New file, from GNU gettext.
5001         * MODULES.html.sh (String handling): Add fstrcmp.
5002
5003 2007-08-18  Bruno Haible  <bruno@clisp.org>
5004
5005         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
5006         'bool'.
5007         (diag, compareseq): Remove const from the ctxt argument.
5008         (USE_HEURISTIC): Undefine at the end.
5009
5010 2007-08-18  Jim Meyering  <jim@meyering.net>
5011
5012         New file: lib/idcache.h
5013         * NEWS: Mention the addition.
5014         * modules/idcache (Files): Add lib/idcache.h
5015         * lib/idcache.c: Include "idcache.h".
5016         Don't include <sys/types.h>.
5017         Add a FIXME comment.
5018         Move file-scoped "static" declarations to the top.
5019         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
5020
5021 2007-08-17  Bruno Haible  <bruno@clisp.org>
5022         and Paul Eggert  <eggert@cs.ucla.edu>
5023
5024         * MODULES.html.sh: Add diffseq.
5025         * modules/diffseq: New file.
5026         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
5027         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
5028
5029 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
5030
5031         Import changes from coreutils for bootstrap script.
5032
5033         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
5034
5035         * build-aux/bootstrap (slurp): Work even in environments where
5036         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
5037         current code does not slurp files whose names start with ".", and
5038         this looks like it might be a troublesome area.
5039
5040         2007-07-11  Jim Meyering  <jim@meyering.net>
5041
5042         If there's a GPL vN copyright comment, require that N == 3.
5043
5044         2007-07-08  Jim Meyering  <jim@meyering.net>
5045
5046         Run the coreutils-specific code only if tests/Makefile.am.in exists.
5047         * build-aux/bootstrap (mam_template): Move definition out of loop.
5048
5049         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
5050
5051         * build-aux/bootstrap (symlink_to_dir): Rename function from
5052         symlink_to_gnulib.  Add a directory parameter.  Update all
5053         callers.
5054         (cp_mark_as_generated): Also check for -- and link to -- files in
5055         gl/.
5056
5057         2007-07-08  Jim Meyering  <jim@meyering.net>
5058
5059         Adapt to deeper hierarchy in gnulib.
5060         * build-aux/bootstrap (symlink_to_dir): If the destination
5061         directory doesn't exist, create it. This is required at least for
5062         "lib/uniwidth/cjk.h".
5063
5064         2007-05-15  Jim Meyering  <jim@meyering.net>
5065
5066         * build-aux/bootstrap: Now that generated Makefile.am files
5067         are no longer under version control, they must be created at
5068         bootstrap time.
5069
5070 2007-08-14  Ben Pfaff  <blp@gnu.org>
5071
5072         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
5073
5074 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
5075
5076         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
5077         given the changes below.
5078         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
5079         even on hosts that have padding bits beyond the supported 64.
5080
5081 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5082
5083         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
5084         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
5085         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
5086         depends on it.
5087         (xstrtol_error): Remove.
5088         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
5089         but with a different signature.
5090         (ATTRIBUTE_NORETURN, __attribute__): New macros.
5091         * lib/xstrtol-error.c: Include exitfail.h.
5092         (xstrtol_fatal): New function, with a different signature from the
5093         old xstrtol_error, so that the caller need not worry about passing
5094         in an exit status, or about storage management of the option argument.
5095         (xstrtol_error): Now a static function.  Redo signature to
5096         implement xstrtol_fatal.  Output the correct number of hyphens in
5097         front of the option so that the caller need not worry about
5098         storage management.
5099         (N_): New macro.
5100         (_): Remove; not used now.
5101         * modules/xstrtol: Depend on getopt.
5102         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
5103         of old STRTOL_FATAL_ERROR macro.
5104         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
5105         of test program.
5106         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
5107         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
5108
5109 2007-08-08  Eric Blake  <ebb9@byu.net>
5110
5111         * lib/xstrtol-error.c: Add missing include.
5112
5113         Move xstrtol messages into gnulib domain, when --pobase is used.
5114         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
5115         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
5116         * modules/xstrtol (Files): Distribute new file.
5117         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
5118         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
5119         * tests/test-xstrtol.c: ...into new file.
5120         * tests/test-xstrtoul.c: Also test xstrtoul.
5121         * tests/test-xstrtoimax.c: Also test xstrtoimax.
5122         * tests/test-xstrtoumax.c: Also test xstrtoumax.
5123         * tests/test-xstrtol.sh: Drive the tests.
5124         * tests/test-xstrtoimax.sh: Likewise.
5125         * tests/test-xstrtoumax.sh: Likewise.
5126         * modules/xstrtol-tests: New module.
5127         * modules/xstrtoimax-tests: Likewise.
5128         * modules/xstrtoumax-tests: Likewise.
5129
5130 2007-08-08  Jim Meyering  <jim@meyering.net>
5131
5132         New function: mfile_name_concat.
5133         * lib/filenamecat.c (mfile_name_concat): New function, just like
5134         file_name_concat, but return NULL upon failure rather than exiting
5135         with a diagnostic.
5136         * lib/filenamecat.h: Declare it.
5137
5138 2007-08-07  Bruno Haible  <bruno@clisp.org>
5139
5140         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
5141         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
5142         warning from gcc.
5143         Reported by Eric Blake.
5144
5145 2007-08-07  Simon Josefsson  <simon@josefsson.org>
5146
5147         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
5148         * modules/crypto/arcfour (License): Likewise.
5149         * modules/crypto/des-tests (License): Likewise.
5150         * modules/crypto/gc-arctwo-tests (License): Likewise.
5151         * modules/crypto/gc-des-tests (License): Likewise.
5152         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
5153         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
5154         * modules/crypto/gc-md2-tests (License): Likewise.
5155         * modules/crypto/gc-md4-tests (License): Likewise.
5156         * modules/crypto/gc-md5-tests (License): Likewise.
5157         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
5158         * modules/crypto/gc-rijndael-tests (License): Likewise.
5159         * modules/crypto/gc-sha1-tests (License): Likewise.
5160         * modules/crypto/gc-tests (License): Likewise.
5161         * modules/crypto/hmac-md5 (License): Likewise.
5162         * modules/crypto/hmac-sha1 (License): Likewise.
5163         * modules/crypto/md2-tests (License): Likewise.
5164         * modules/crypto/md4-tests (License): Likewise.
5165         * modules/crypto/md5 (License): Likewise.
5166         * modules/crypto/rijndael (License): Likewise.
5167         * modules/crypto/sha1 (License): Likewise.
5168         * modules/memxor (License): Likewise.
5169
5170 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
5171         and Bruno Haible  <bruno@clisp.org>
5172
5173         * NEWS: Describe interface changes to human, xstrtol.
5174         * lib/human.h: Include <xstrtol.h>.
5175         (human_options): Return enum strtol_error, not int.  Remove
5176         bool arg; take int * instead.
5177         * lib/human.c: Don't include "gettext.h".
5178         (_): Remove; no longer used.
5179         Don't include <xstrtol.h>, since human.h does it.
5180         (human_options): Adjust to abovementioned interface changes.
5181         Do not report error to stderr; that's now the caller's
5182         responsibility.
5183         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
5184         interface change.
5185         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
5186         Str, Argument_type_string.  All uses changed.  Put " argument"
5187         in diagnostics to make them clearer.  Change wording of suffix
5188         message for clarity.
5189         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
5190         Argument_type_string.
5191         (STRTOL_FATAL_WARN): Remove; no longer used.
5192         * modules/human (Depends-on): Remove gettext-h.
5193
5194 2007-08-06  Simon Josefsson  <simon@josefsson.org>
5195
5196         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
5197
5198 2007-07-31  Bruno Haible  <bruno@clisp.org>
5199
5200         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
5201         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
5202         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
5203
5204 2007-07-31  Bruno Haible  <bruno@clisp.org>
5205
5206         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
5207         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
5208
5209 2007-07-30  Bruno Haible  <bruno@clisp.org>
5210
5211         * modules/base64 (License): Use the synonymous term "LGPLv2+".
5212         * modules/c-ctype (License): Likewise.
5213         * modules/c-strcase (License): Likewise.
5214         * modules/check-version (License): Likewise.
5215         * modules/iconv (License): Likewise.
5216         * modules/iconv_open (License): Likewise.
5217         * modules/read-file (License): Likewise.
5218         * modules/striconv (License): Likewise.
5219         * modules/strverscmp (License): Likewise.
5220         * modules/vasprintf (License): Likewise.
5221         * modules/crypto/des (License): Likewise.
5222         * modules/crypto/gc (License): Likewise.
5223         * modules/crypto/gc-arcfour (License): Likewise.
5224         * modules/crypto/gc-arctwo (License): Likewise.
5225         * modules/crypto/gc-des (License): Likewise.
5226         * modules/crypto/gc-hmac-md5 (License): Likewise.
5227         * modules/crypto/gc-hmac-sha1 (License): Likewise.
5228         * modules/crypto/gc-md2 (License): Likewise.
5229         * modules/crypto/gc-md4 (License): Likewise.
5230         * modules/crypto/gc-md5 (License): Likewise.
5231         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
5232         * modules/crypto/gc-random (License): Likewise.
5233         * modules/crypto/gc-rijndael (License): Likewise.
5234         * modules/crypto/gc-sha1 (License): Likewise.
5235         * modules/crypto/md2 (License): Likewise.
5236         * modules/crypto/md4 (License): Likewise.
5237
5238 2007-07-30  Jim Meyering  <jim@meyering.net>
5239
5240         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
5241         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
5242         it has valid stat data.  This bug would cause du not to count the
5243         sizes of inaccessible directories.
5244         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
5245         in <http://bugzilla.redhat.com/250077>.
5246
5247 2007-07-25  Peter O'Gorman  <peter@pogma.com>
5248             Bruno Haible  <bruno@clisp.org>
5249
5250         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
5251         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
5252         #include_next, gives a diagnostic about it, but reports no error in
5253         the exit code.
5254         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
5255
5256 2007-07-24  Ben Pfaff  <blp@gnu.org>
5257
5258         Improve name: "count-one-bits" is better than "popcount".
5259         * MODULES.html.sh: Update name.
5260         * lib/popcount.h: Renamed lib/count-one-bits.h.
5261         (popcount): Renamed count_one_bits.
5262         (popcountl): Renamed count_one_bits_l.
5263         (popcountll): Renamed count_one_bits_ll.
5264         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
5265         * modules/popcount: Renamed module/count-one-bits.
5266         * modules/popcount-tests: Renamed module/count-one-bits-tests.
5267         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
5268
5269 2007-07-23  Ben Pfaff  <blp@gnu.org>
5270
5271         * lib/popcount.h (popcount32): Reduce size of constants, to allow
5272         better code generation, and add U to large constants to avoid
5273         warnings, in non-GCC case.
5274         Suggested by Bruno Haible.
5275
5276 2007-07-23  Ben Pfaff  <blp@gnu.org>
5277
5278         * lib/popcount.h: Use verify_true instead of if...abort.
5279         * modules/popcount: Depend on verify module.
5280         Suggested by Jim Meyering.
5281
5282 2007-07-23  Bruno Haible  <bruno@clisp.org>
5283
5284         * gnulib-tool (func_import): Create a .cvsignore file also when the
5285         directory is not yet in CVS but the toplevel directory is. When
5286         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
5287         Reported by Karl Berry.
5288
5289 2007-07-22  Ben Pfaff  <blp@gnu.org>
5290
5291         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
5292         case.
5293         Suggested by Eric Blake.
5294
5295 2007-07-22  Ben Pfaff  <blp@gnu.org>
5296
5297         New module: popcount.
5298         * MODULES.html.sh: Add popcount.
5299         * modules/popcount: New file.
5300         * modules/popcount-tests: New file.
5301         * tests/test-popcount.c: New file.
5302         * lib/popcount.h: New file.
5303         * m4/popcount.m4: New file.
5304
5305 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5306
5307         * build-aux/announce-gen: Update to GPLv3.
5308
5309         * build-aux/config.guess: Update from config.
5310
5311 2007-07-21  Bruno Haible  <bruno@clisp.org>
5312
5313         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
5314         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
5315
5316 2007-07-20  Jim Meyering  <jim@meyering.net>
5317
5318         * check-module: Diagnose a self-dependency.
5319
5320 2007-07-19  Bruno Haible  <bruno@clisp.org>
5321
5322         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
5323         empty.
5324         Reported by Eric Blake.
5325
5326 2007-07-18  Bruno Haible  <bruno@clisp.org>
5327
5328         * gnulib-tool: New options --po-base, --po-domain.
5329         (func_usage): Document them.
5330         (pobase, po_domain): New variables.
5331         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
5332         DEFAULT_TEXT_DOMAIN.
5333         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
5334         (func_import): Consider pobase and po_domain. Create a po/ directory.
5335         (func_create_testdir): Set pobase and po_domain to empty.
5336         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
5337         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
5338
5339 2007-07-18  Bruno Haible  <bruno@clisp.org>
5340
5341         * gnulib-tool (func_get_automake_snippet): Synthesize also an
5342         EXTRA_DIST augmentation for files in build-aux/.
5343
5344 2007-07-16  Bruno Haible  <bruno@clisp.org>
5345
5346         * modules/lseek (License): Use the synonymous term "LGPLv2+".
5347         * modules/getdelim (License): Likewise.
5348
5349 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
5350
5351         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
5352         * modules/d-type (License): Likewise.
5353         * modules/extensions (License): Likewise.
5354         * modules/fnmatch (License): Likewise.
5355         * modules/fseeko (License): Likewise.
5356         * modules/getaddrinfo (License): Likewise.
5357         * modules/getline (License): Likewise.
5358         * modules/getlogin_r (License): Likewise.
5359         * modules/getpass (License): Likewise.
5360         * modules/gettimeofday (License): Likewise.
5361         * modules/glob (License): Likewise.
5362         * modules/inet_ntop (License): Likewise.
5363         * modules/malloc (License): Likewise.
5364         * modules/malloca (License): Likewise.
5365         * modules/memmem (License): Likewise.
5366         * modules/mempcpy (License): Likewise.
5367         * modules/memset (License): Likewise.
5368         * modules/minmax (License): Likewise.
5369         * modules/mktime (License): Likewise.
5370         * modules/netinet_in (License): Likewise.
5371         * modules/pathmax (License): Likewise.
5372         * modules/poll (License): Likewise.
5373         * modules/regex (License): Likewise.
5374         * modules/snprintf (License): Likewise.
5375         * modules/stdbool (License): Likewise.
5376         * modules/stdint (License): Likewise.
5377         * modules/stdio (License): Likewise.
5378         * modules/strcase (License): Likewise.
5379         * modules/strcasestr (License): Likewise.
5380         * modules/strdup (License): Likewise.
5381         * modules/string (License): Likewise.
5382         * modules/strndup (License): Likewise.
5383         * modules/strnlen (License): Likewise.
5384         * modules/strpbrk (License): Likewise.
5385         * modules/strptime (License): Likewise.
5386         * modules/strsep (License): Likewise.
5387         * modules/sys_select (License): Likewise.
5388         * modules/sys_socket (License): Likewise.
5389         * modules/sys_stat (License): Likewise.
5390         * modules/sys_time (License): Likewise.
5391         * modules/time (License): Likewise.
5392         * modules/time_r (License): Likewise.
5393         * modules/timegm (License): Likewise.
5394         * modules/unistd (License): Likewise.
5395         * modules/vsnprintf (License): Likewise.
5396         * modules/wctype (License): Likewise.
5397
5398 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5399
5400         * modules/argz (License): LGPLv2+.
5401
5402 2007-07-15  Karl Berry  <karl@gnu.org>
5403
5404         * doc/gnulib.texi: revise node structure per new fdl.texi.
5405
5406 2007-07-14  Bruno Haible  <bruno@clisp.org>
5407
5408         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
5409         the output file.
5410         * lib/uniname/uninames.h: Regenerated.
5411
5412 2007-07-14  Karl Berry  <karl@gnu.org>
5413
5414         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
5415         omitting sectioning and index commands.
5416
5417 2007-07-13  Bruno Haible  <bruno@clisp.org>
5418
5419         New gnulib-tool option --more-symlinks.
5420         * gnulib-tool (func_usage): Document --more-symlinks.
5421         (do_copyrights): New variable.
5422         Recognize option --more-symlinks.
5423         (func_import): Don't add a copyright notice transform to
5424         sed_transform_lib_file if do_copyrights is empty.
5425
5426 2007-07-13  Bruno Haible  <bruno@clisp.org>
5427
5428         * lib/vasnprintf.c (decimal_point_char): Define also if
5429         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
5430         && !NEED_PRINTF_DIRECTIVE_A.
5431         Reported by Clemens Koller <clemens.koller@anagramm.de> via
5432         Gary V. Vaughan <gary@gnu.org>.
5433
5434 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
5435
5436         * lib/inttypes_.h: Undo previous change, since it was fixed
5437         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
5438
5439 2007-07-13  Bruno Haible  <bruno@clisp.org>
5440
5441         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
5442         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
5443
5444 2007-07-13  Jim Meyering  <jim@meyering.net>
5445
5446         df: Don't fail for Tru64's "file-on-file mount".
5447         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
5448         so we fall through and use statfs instead.  Details here:
5449         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
5450         Reported by Albert Chin.
5451
5452 2007-07-13  Bruno Haible  <bruno@clisp.org>
5453
5454         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
5455         * modules/configmake (License): Likewise.
5456         * modules/gettext (License): Likewise.
5457         * modules/gettext-h (License): Likewise.
5458         * modules/include_next (License): Likewise.
5459         * modules/link-warning (License): Likewise.
5460         * modules/localcharset (License): Likewise.
5461         * modules/localename (License): Likewise.
5462         * modules/lock (License): Likewise.
5463         * modules/relocatable-lib-lgpl (License): Likewise.
5464         * modules/size_max (License): Likewise.
5465         * modules/vasnprintf (License): Likewise.
5466         * modules/wchar (License): Likewise.
5467         * modules/xsize (License): Likewise.
5468
5469 2007-07-13  Bruno Haible  <bruno@clisp.org>
5470
5471         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
5472         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
5473
5474 2007-07-12  Bruno Haible  <bruno@clisp.org>
5475
5476         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
5477         in the modules files.
5478
5479 2007-07-11  Karl Berry  <karl@gnu.org>
5480
5481         * MODULES.html.sh (func_module): use
5482          sed -e '\|^'"${includefile}"'$|d'
5483          instead of /.../d, to avoid errors on $includefile's containing /.
5484
5485 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
5486
5487         * gnulib-tool (func_import): Avoid duplication of --avoid
5488         statements
5489         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
5490         names to `_' in variable names.
5491
5492 2007-07-10  Eric Blake  <ebb9@byu.net>
5493
5494         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
5495         * NEWS: Document this change.
5496
5497 2007-07-08  Bruno Haible  <bruno@clisp.org>
5498
5499         Update to Unicode 5.0.
5500         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
5501         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
5502         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
5503         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
5504         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
5505         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
5506         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
5507         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
5508         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
5509         U+10A3F, U+1D242..U+1D244.
5510         (nonspacing_table_ind): Update.
5511         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
5512         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
5513
5514 2007-07-08  Bruno Haible  <bruno@clisp.org>
5515
5516         Update to Unicode 5.0.
5517         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
5518         code transform. Extend the name index field of unicode_name_to_code and
5519         unicode_code_to_name from 16 to 24 bits.
5520         * lib/uniname/uniname.c (unicode_character_name,
5521         unicode_name_character): Add the range 0x12xxx to the code transform.
5522         * lib/uniname/uninames.h: Regenerated.
5523         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
5524
5525 2007-07-07  Bruno Haible  <bruno@clisp.org>
5526
5527         * modules/wcwidth-tests: New file.
5528         * tests/test-wcwidth.c: New file.
5529
5530         Work around MacOS X wcwidth() bug.
5531         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
5532         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
5533         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
5534         original wcwidth in non-UTF-8 locales.
5535         * modules/wcwidth (Depends-on): Add localcharset, streq,
5536         uniwidth/width.
5537         * doc/functions/wcwidth.texi: Update.
5538
5539 2007-07-07  Bruno Haible  <bruno@clisp.org>
5540
5541         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
5542         (wcwidth): New declaration.
5543         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
5544         macros.
5545         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
5546         here. Prepare for creating <wchar.h> unconditionally.
5547         * modules/wchar (Depends-on): Add link-warning.
5548         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
5549         REPLACE_WCWIDTH, and GL_LINK_WARNING.
5550         * lib/wcwidth.h: Remove file.
5551         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
5552         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
5553         * modules/wcwidth (Files): Remove lib/wcwidth.h.
5554         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
5555         (Include): Replace wcwidth.h with <wchar.h>.
5556         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
5557         * lib/mbchar.h: Don't include wcwidth.h.
5558         * lib/mbswidth.c: Likewise.
5559         * NEWS: Mention the change.
5560
5561 2007-07-07  Bruno Haible  <bruno@clisp.org>
5562
5563         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
5564         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
5565         definition with an external declaration.
5566         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
5567         defined as a function. Remove AC_C_INLINE requirement.
5568         * modules/wcwidth (Files): Add lib/wcwidth.c.
5569         (Makefile.am): Remove redundant statement.
5570
5571 2007-07-07  Bruno Haible  <bruno@clisp.org>
5572
5573         * MODULES.html.sh (Unicode string functions): Add the new modules.
5574
5575         * tests/uniwidth/test-u32-strwidth.c: New file.
5576         * modules/uniwidth/u32-strwidth-tests: New file.
5577
5578         * lib/uniwidth/u32-strwidth.c: New file.
5579         * modules/uniwidth/u32-strwidth: New file.
5580
5581         * tests/uniwidth/test-u16-strwidth.c: New file.
5582         * modules/uniwidth/u16-strwidth-tests: New file.
5583
5584         * lib/uniwidth/u16-strwidth.c: New file.
5585         * modules/uniwidth/u16-strwidth: New file.
5586
5587         * tests/uniwidth/test-u8-strwidth.c: New file.
5588         * modules/uniwidth/u8-strwidth-tests: New file.
5589
5590         * lib/uniwidth/u8-strwidth.c: New file.
5591         * modules/uniwidth/u8-strwidth: New file.
5592
5593         * tests/uniwidth/test-u32-width.c: New file.
5594         * modules/uniwidth/u32-width-tests: New file.
5595
5596         * lib/uniwidth/u32-width.c: New file.
5597         * modules/uniwidth/u32-width: New file.
5598
5599         * tests/uniwidth/test-u16-width.c: New file.
5600         * modules/uniwidth/u16-width-tests: New file.
5601
5602         * lib/uniwidth/u16-width.c: New file.
5603         * modules/uniwidth/u16-width: New file.
5604
5605         * tests/uniwidth/test-u8-width.c: New file.
5606         * modules/uniwidth/u8-width-tests: New file.
5607
5608         * lib/uniwidth/u8-width.c: New file.
5609         * modules/uniwidth/u8-width: New file.
5610
5611         * tests/uniwidth/test-uc_width.c: New file.
5612         * modules/uniwidth/width-tests: New file.
5613
5614         * lib/uniwidth/width.c: New file, from GNU libiconv.
5615         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
5616         * modules/uniwidth/width: New file.
5617
5618         * lib/uniwidth.h: New file, from GNU libiconv.
5619         * modules/uniwidth/base: New file.
5620
5621 2007-07-07  Bruno Haible  <bruno@clisp.org>
5622
5623         * lib/uniname.h: New file, from GNU gettext.
5624         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
5625         * lib/uniname/uninames.h: New file, from GNU gettext.
5626         * lib/uniname/uniname.c: New file, from GNU gettext.
5627         * tests/uniname/test-uninames.sh: New file.
5628         * tests/uniname/test-uninames.c: New file, from GNU gettext.
5629         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
5630         * modules/uniname/base: New file.
5631         * modules/uniname/uniname: New file.
5632         * modules/uniname/uniname-tests: New file.
5633         * MODULES.html.sh (Unicode string functions): Add the new modules.
5634
5635 2007-07-06  Bruno Haible  <bruno@clisp.org>
5636
5637         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
5638
5639 2007-07-06  Bruno Haible  <bruno@clisp.org>
5640
5641         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
5642         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
5643         includes <cygwin/sys_time.h> which includes <sys/select.h> which
5644         include <sys/time.h>.
5645         Reported by Eric Blake.
5646
5647 2007-07-06  Eric Blake  <ebb9@byu.net>
5648
5649         Fix testing canonicalize on cygwin.
5650         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
5651         Revert patch from 2007-06-19.
5652         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
5653         canonicalize module is also in use.
5654         * tests/test-canonicalize.c: New file.
5655         * tests/test-canonicalize.sh: Likewise.
5656         * modules/canonicalize-tests: Likewise.
5657
5658 2007-07-06  Jim Meyering  <jim@meyering.net>
5659
5660         * lib/getugroups.c (getugroups): Detect getgrent failure.
5661         Adjust comment to reflect reality: this function may return -1.
5662
5663 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
5664
5665         * build-aux/bootstrap (TP_URL,get_translations): Update to use
5666         the new TP address.
5667         (usage): Fix typo
5668         (gnulib_mk): New variable.
5669
5670 2007-07-05  Jim Meyering  <jim@meyering.net>
5671
5672         Don't let endgrent clobber errno, no matter how improbable.
5673         * lib/getugroups.c (getugroups): Save and restore errno around
5674         endgrent call.
5675
5676         Close the group DB even when failing with 2^31 or more members.
5677         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
5678
5679 2007-07-04  Jim Meyering  <jim@meyering.net>
5680
5681         * lib/getugroups.h: New file.
5682         * lib/getugroups.c: Include "getugroups.h".
5683         Remove uses of "register" keyword.
5684         Move local variable, "cp", down into scope where used.
5685         Give "username" parameter the "const" attribute.
5686         * modules/getugroups (Files): Add lib/getugroups.h
5687
5688 2007-07-04  Karl Berry  <karl@gnu.org>
5689
5690         * MODULES.html.sh (func_all_modules): Complete rename of
5691         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
5692
5693 2007-07-02  Bruno Haible  <bruno@clisp.org>
5694
5695         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
5696         mode, when inttypes.h comes from gnulib.
5697         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
5698
5699 2007-07-02  Simon Josefsson  <simon@josefsson.org>
5700
5701         * NEWS: Mention lgpl module name change.
5702
5703         * modules/lgpl-2.1: Renamed from lgpl.
5704
5705         * NEWS: Mention gpl module name change.
5706
5707         * modules/gpl-3.0: New file, based on gpl-2.0.
5708
5709         * modules/gpl-2.0: Renamed from gpl.
5710
5711         * modules/gpl: Fix filename, doc/gpl.texi is now found at
5712         doc/gpl-2.0.texi.
5713
5714 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
5715
5716         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
5717         #define __STDC_LIMIT_MACROS temporarily while including
5718         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
5719         Problem reported by Joel E. Denny in
5720         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
5721
5722 2007-07-01  Bruno Haible  <bruno@clisp.org>
5723
5724         * lib/unistdio.h: New file.
5725         * lib/unistdio/u-asnprintf.h: New file.
5726         * lib/unistdio/u-asprintf.h: New file.
5727         * lib/unistdio/u-printf-args.c: New file.
5728         * lib/unistdio/u-printf-args.h: New file.
5729         * lib/unistdio/u-printf-parse.h: New file.
5730         * lib/unistdio/u-snprintf.h: New file.
5731         * lib/unistdio/u-sprintf.h: New file.
5732         * lib/unistdio/u-vasprintf.h: New file.
5733         * lib/unistdio/u-vsnprintf.h: New file.
5734         * lib/unistdio/u-vsprintf.h: New file.
5735         * lib/unistdio/ulc-asnprintf.c: New file.
5736         * lib/unistdio/ulc-asprintf.c: New file.
5737         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
5738         * lib/unistdio/ulc-printf-parse.c: New file.
5739         * lib/unistdio/ulc-snprintf.c: New file.
5740         * lib/unistdio/ulc-sprintf.c: New file.
5741         * lib/unistdio/ulc-vasnprintf.c: New file.
5742         * lib/unistdio/ulc-vasprintf.c: New file.
5743         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
5744         * lib/unistdio/ulc-vsnprintf.c: New file.
5745         * lib/unistdio/ulc-vsprintf.c: New file.
5746         * lib/unistdio/u8-asnprintf.c: New file.
5747         * lib/unistdio/u8-asprintf.c: New file.
5748         * lib/unistdio/u8-printf-parse.c: New file.
5749         * lib/unistdio/u8-snprintf.c: New file.
5750         * lib/unistdio/u8-sprintf.c: New file.
5751         * lib/unistdio/u8-vasnprintf.c: New file.
5752         * lib/unistdio/u8-vasprintf.c: New file.
5753         * lib/unistdio/u8-vsnprintf.c: New file.
5754         * lib/unistdio/u8-vsprintf.c: New file.
5755         * lib/unistdio/u8-u8-asnprintf.c: New file.
5756         * lib/unistdio/u8-u8-asprintf.c: New file.
5757         * lib/unistdio/u8-u8-snprintf.c: New file.
5758         * lib/unistdio/u8-u8-sprintf.c: New file.
5759         * lib/unistdio/u8-u8-vasnprintf.c: New file.
5760         * lib/unistdio/u8-u8-vasprintf.c: New file.
5761         * lib/unistdio/u8-u8-vsnprintf.c: New file.
5762         * lib/unistdio/u8-u8-vsprintf.c: New file.
5763         * lib/unistdio/u16-asnprintf.c: New file.
5764         * lib/unistdio/u16-asprintf.c: New file.
5765         * lib/unistdio/u16-printf-parse.c: New file.
5766         * lib/unistdio/u16-snprintf.c: New file.
5767         * lib/unistdio/u16-sprintf.c: New file.
5768         * lib/unistdio/u16-vasnprintf.c: New file.
5769         * lib/unistdio/u16-vasprintf.c: New file.
5770         * lib/unistdio/u16-vsnprintf.c: New file.
5771         * lib/unistdio/u16-vsprintf.c: New file.
5772         * lib/unistdio/u16-u16-asnprintf.c: New file.
5773         * lib/unistdio/u16-u16-asprintf.c: New file.
5774         * lib/unistdio/u16-u16-snprintf.c: New file.
5775         * lib/unistdio/u16-u16-sprintf.c: New file.
5776         * lib/unistdio/u16-u16-vasnprintf.c: New file.
5777         * lib/unistdio/u16-u16-vasprintf.c: New file.
5778         * lib/unistdio/u16-u16-vsnprintf.c: New file.
5779         * lib/unistdio/u16-u16-vsprintf.c: New file.
5780         * lib/unistdio/u32-asnprintf.c: New file.
5781         * lib/unistdio/u32-asprintf.c: New file.
5782         * lib/unistdio/u32-printf-parse.c: New file.
5783         * lib/unistdio/u32-snprintf.c: New file.
5784         * lib/unistdio/u32-sprintf.c: New file.
5785         * lib/unistdio/u32-vasnprintf.c: New file.
5786         * lib/unistdio/u32-vasprintf.c: New file.
5787         * lib/unistdio/u32-vsnprintf.c: New file.
5788         * lib/unistdio/u32-vsprintf.c: New file.
5789         * lib/unistdio/u32-u32-asnprintf.c: New file.
5790         * lib/unistdio/u32-u32-asprintf.c: New file.
5791         * lib/unistdio/u32-u32-snprintf.c: New file.
5792         * lib/unistdio/u32-u32-sprintf.c: New file.
5793         * lib/unistdio/u32-u32-vasnprintf.c: New file.
5794         * lib/unistdio/u32-u32-vasprintf.c: New file.
5795         * lib/unistdio/u32-u32-vsnprintf.c: New file.
5796         * lib/unistdio/u32-u32-vsprintf.c: New file.
5797         * tests/unistdio/test-ulc-asnprintf1.c: New file.
5798         * tests/unistdio/test-ulc-asnprintf1.h: New file.
5799         * tests/unistdio/test-ulc-printf1.h: New file.
5800         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
5801         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
5802         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
5803         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
5804         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
5805         * tests/unistdio/test-ulc-vasprintf1.c: New file.
5806         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
5807         * tests/unistdio/test-ulc-vsprintf1.c: New file.
5808         * tests/unistdio/test-u8-asnprintf1.c: New file.
5809         * tests/unistdio/test-u8-asnprintf1.h: New file.
5810         * tests/unistdio/test-u8-printf1.h: New file.
5811         * tests/unistdio/test-u8-vasnprintf1.c: New file.
5812         * tests/unistdio/test-u8-vasnprintf2.c: New file.
5813         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
5814         * tests/unistdio/test-u8-vasnprintf3.c: New file.
5815         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
5816         * tests/unistdio/test-u8-vasprintf1.c: New file.
5817         * tests/unistdio/test-u8-vsnprintf1.c: New file.
5818         * tests/unistdio/test-u8-vsprintf1.c: New file.
5819         * tests/unistdio/test-u16-asnprintf1.c: New file.
5820         * tests/unistdio/test-u16-asnprintf1.h: New file.
5821         * tests/unistdio/test-u16-printf1.h: New file.
5822         * tests/unistdio/test-u16-vasnprintf1.c: New file.
5823         * tests/unistdio/test-u16-vasnprintf2.c: New file.
5824         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
5825         * tests/unistdio/test-u16-vasnprintf3.c: New file.
5826         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
5827         * tests/unistdio/test-u16-vasprintf1.c: New file.
5828         * tests/unistdio/test-u16-vsnprintf1.c: New file.
5829         * tests/unistdio/test-u16-vsprintf1.c: New file.
5830         * tests/unistdio/test-u32-asnprintf1.c: New file.
5831         * tests/unistdio/test-u32-asnprintf1.h: New file.
5832         * tests/unistdio/test-u32-printf1.h: New file.
5833         * tests/unistdio/test-u32-vasnprintf1.c: New file.
5834         * tests/unistdio/test-u32-vasnprintf2.c: New file.
5835         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
5836         * tests/unistdio/test-u32-vasnprintf3.c: New file.
5837         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
5838         * tests/unistdio/test-u32-vasprintf1.c: New file.
5839         * tests/unistdio/test-u32-vsnprintf1.c: New file.
5840         * tests/unistdio/test-u32-vsprintf1.c: New file.
5841         * modules/unistdio/base: New file.
5842         * modules/unistdio/u-printf-args: New file.
5843         * modules/unistdio/ulc-asnprintf: New file.
5844         * modules/unistdio/ulc-asprintf: New file.
5845         * modules/unistdio/ulc-fprintf: New file.
5846         * modules/unistdio/ulc-printf-parse: New file.
5847         * modules/unistdio/ulc-snprintf: New file.
5848         * modules/unistdio/ulc-sprintf: New file.
5849         * modules/unistdio/ulc-vasnprintf: New file.
5850         * modules/unistdio/ulc-vasprintf: New file.
5851         * modules/unistdio/ulc-vfprintf: New file.
5852         * modules/unistdio/ulc-vsnprintf: New file.
5853         * modules/unistdio/ulc-vsprintf: New file.
5854         * modules/unistdio/u8-asnprintf: New file.
5855         * modules/unistdio/u8-asprintf: New file.
5856         * modules/unistdio/u8-printf-parse: New file.
5857         * modules/unistdio/u8-snprintf: New file.
5858         * modules/unistdio/u8-sprintf: New file.
5859         * modules/unistdio/u8-vasnprintf: New file.
5860         * modules/unistdio/u8-vasprintf: New file.
5861         * modules/unistdio/u8-vsnprintf: New file.
5862         * modules/unistdio/u8-vsprintf: New file.
5863         * modules/unistdio/u8-u8-asnprintf: New file.
5864         * modules/unistdio/u8-u8-asprintf: New file.
5865         * modules/unistdio/u8-u8-snprintf: New file.
5866         * modules/unistdio/u8-u8-sprintf: New file.
5867         * modules/unistdio/u8-u8-vasnprintf: New file.
5868         * modules/unistdio/u8-u8-vasprintf: New file.
5869         * modules/unistdio/u8-u8-vsnprintf: New file.
5870         * modules/unistdio/u8-u8-vsprintf: New file.
5871         * modules/unistdio/u16-asnprintf: New file.
5872         * modules/unistdio/u16-asprintf: New file.
5873         * modules/unistdio/u16-printf-parse: New file.
5874         * modules/unistdio/u16-snprintf: New file.
5875         * modules/unistdio/u16-sprintf: New file.
5876         * modules/unistdio/u16-vasnprintf: New file.
5877         * modules/unistdio/u16-vasprintf: New file.
5878         * modules/unistdio/u16-vsnprintf: New file.
5879         * modules/unistdio/u16-vsprintf: New file.
5880         * modules/unistdio/u16-u16-asnprintf: New file.
5881         * modules/unistdio/u16-u16-asprintf: New file.
5882         * modules/unistdio/u16-u16-snprintf: New file.
5883         * modules/unistdio/u16-u16-sprintf: New file.
5884         * modules/unistdio/u16-u16-vasnprintf: New file.
5885         * modules/unistdio/u16-u16-vasprintf: New file.
5886         * modules/unistdio/u16-u16-vsnprintf: New file.
5887         * modules/unistdio/u16-u16-vsprintf: New file.
5888         * modules/unistdio/u32-asnprintf: New file.
5889         * modules/unistdio/u32-asprintf: New file.
5890         * modules/unistdio/u32-printf-parse: New file.
5891         * modules/unistdio/u32-snprintf: New file.
5892         * modules/unistdio/u32-sprintf: New file.
5893         * modules/unistdio/u32-vasnprintf: New file.
5894         * modules/unistdio/u32-vasprintf: New file.
5895         * modules/unistdio/u32-vsnprintf: New file.
5896         * modules/unistdio/u32-vsprintf: New file.
5897         * modules/unistdio/u32-u32-asnprintf: New file.
5898         * modules/unistdio/u32-u32-asprintf: New file.
5899         * modules/unistdio/u32-u32-snprintf: New file.
5900         * modules/unistdio/u32-u32-sprintf: New file.
5901         * modules/unistdio/u32-u32-vasnprintf: New file.
5902         * modules/unistdio/u32-u32-vasprintf: New file.
5903         * modules/unistdio/u32-u32-vsnprintf: New file.
5904         * modules/unistdio/u32-u32-vsprintf: New file.
5905         * modules/unistdio/ulc-asnprintf-tests: New file.
5906         * modules/unistdio/ulc-vasnprintf-tests: New file.
5907         * modules/unistdio/ulc-vasprintf-tests: New file.
5908         * modules/unistdio/ulc-vsnprintf-tests: New file.
5909         * modules/unistdio/ulc-vsprintf-tests: New file.
5910         * modules/unistdio/u8-asnprintf-tests: New file.
5911         * modules/unistdio/u8-vasnprintf-tests: New file.
5912         * modules/unistdio/u8-vasprintf-tests: New file.
5913         * modules/unistdio/u8-vsnprintf-tests: New file.
5914         * modules/unistdio/u8-vsprintf-tests: New file.
5915         * modules/unistdio/u16-asnprintf-tests: New file.
5916         * modules/unistdio/u16-vasnprintf-tests: New file.
5917         * modules/unistdio/u16-vasprintf-tests: New file.
5918         * modules/unistdio/u16-vsnprintf-tests: New file.
5919         * modules/unistdio/u16-vsprintf-tests: New file.
5920         * modules/unistdio/u32-asnprintf-tests: New file.
5921         * modules/unistdio/u32-vasnprintf-tests: New file.
5922         * modules/unistdio/u32-vasprintf-tests: New file.
5923         * modules/unistdio/u32-vsnprintf-tests: New file.
5924         * modules/unistdio/u32-vsprintf-tests: New file.
5925         * MODULES.html.sh (Unicode string functions): Add the new modules.
5926
5927 2007-07-01  Bruno Haible  <bruno@clisp.org>
5928
5929         * lib/sprintf.c (sprintf): Limit the available length estimation,
5930         to avoid address wraparound.
5931         * lib/vsprintf.c (vsprintf): Likewise.
5932         * modules/sprintf-posix (Dependencies): Add stdint.
5933         * modules/vsprintf-posix (Dependencies): Likewise.
5934
5935 2007-07-01  Bruno Haible  <bruno@clisp.org>
5936
5937         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
5938         Windows PATH as well. Conservative double-quoting. Comments.
5939
5940 2007-07-01  Bruno Haible  <bruno@clisp.org>
5941             Eric Blake  <ebb9@byu.net>
5942             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5943
5944         * gnulib-tool (self_abspathname): Fix algorithm to cope with
5945         empty components in $PATH, denoting '.'.
5946
5947 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5948
5949         * gnulib-tool: Fix indentation.
5950         (func_create_megatestdir): Likewise.
5951         Report by Bruno Haible.
5952
5953 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5954
5955         Sync from Automake.
5956         * build-aux/gnupload: Fix shell portability issues with for loops.
5957         Report by Karl Berry.
5958
5959 2007-06-29  Simon Josefsson  <simon@josefsson.org>
5960
5961         * build-aux/maint.mk (POURL): Use translationproject.org.
5962
5963 2007-06-27  Simon Josefsson  <simon@josefsson.org>
5964             Bruno Haible  <bruno@clisp.org>
5965
5966         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
5967         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
5968         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
5969         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
5970         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
5971
5972 2007-06-27  Bruno Haible  <bruno@clisp.org>
5973
5974         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
5975         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
5976
5977 2007-06-26  Karl Berry  <karl@gnu.org>
5978
5979         * MODULES.html.sh: remove xreadlink-with-size.
5980
5981 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
5982
5983         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
5984         method that I hope also handles the double-include problem noted
5985         by Bruno Haible in
5986         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
5987
5988 2007-06-23  Bruno Haible  <bruno@clisp.org>
5989
5990         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5991         Don't let the 'mostlyclean' target fail if the last subdirectory could
5992         not be removed.
5993         Reported by Karl Berry.
5994
5995 2007-06-23  Bruno Haible  <bruno@clisp.org>
5996
5997         * gnulib-tool (echo): Add a speedier workaround for ksh.
5998         * tests/test-echo.sh: Likewise.
5999
6000 2007-06-23  Bruno Haible  <bruno@clisp.org>
6001
6002         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
6003         * tests/test-echo.sh: Likewise.
6004
6005 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6006
6007         * gnulib-tool (IFS): Initialize early, so we don't set it to
6008         empty later.
6009         (self_abspathname): Rewrite algorithm to set it, reindent.
6010         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
6011         (func_create_megatestdir): Merge some sed scripts.
6012
6013 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
6014
6015         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
6016         exposed by Sun Studio 11 cc on Solaris 8.
6017
6018 2007-06-22  Bruno Haible  <bruno@clisp.org>
6019
6020         * gnulib-tool (echo): Ensure the echo primitive does not interpret
6021         backslashes.
6022         * tests/test-echo.sh: New file.
6023
6024 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6025
6026         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
6027         simplify `sed_replace_build_aux' scripts, they are portable but
6028         echoing them with `echo' is not.
6029         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
6030
6031 2007-06-21  Karl Berry  <karl@gnu.org>
6032
6033         * config/srclist.txt: guess we can't handle the licenses via
6034         srclist at the moment.
6035
6036 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
6037
6038         * MODULES.html.sh: Add include_next.
6039         * modules/include_next: New file.
6040
6041 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6042
6043         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
6044         INCLUDE_NEXT.
6045         (gl_CHECK_NEXT_HEADERS): New macro.
6046         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
6047         the obsolescent gl_ABSOLUTE_HEADER.
6048         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
6049         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
6050         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
6051         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
6052         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
6053         * m4/math_h.m4 (gl_MATH_H): Likewise.
6054         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
6055         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
6056         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
6057         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6058         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
6059         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
6060         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
6061         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6062         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
6063         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
6064         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
6065         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
6066         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
6067         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6068         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
6069         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
6070         * m4/inttypes.m4 (gl_INTTYPES_H): Define
6071         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
6072         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
6073         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
6074         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
6075         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
6076         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
6077         * lib/float_.h: Likewise.
6078         * lib/inttypes_.h: Likewise.
6079         * lib/math_.h: Likewise.
6080         * lib/search_.h: Likewise.
6081         * lib/signal_.h: Likewise.
6082         * lib/stdint_.h: Likewise.
6083         * lib/stdio_.h: Likewise.
6084         * lib/stdlib_.h: Likewise.
6085         * lib/string_.h: Likewise.
6086         * lib/sys_stat_.h: Likewise.
6087         * lib/sys_time_.h: Likewise.
6088         * lib/time_.h: Likewise.
6089         * lib/unistd_.h: Likewise.
6090         * lib/wchar_.h: Likewise.
6091         * lib/wctype_.h: Likewise.
6092         * lib/dirent_.h: Likewise.
6093         * lib/iconv_.h: Likewise.
6094         * lib/locale_.h: Likewise.
6095         * lib/netinet_in_.h: Likewise.
6096         * lib/sys_select_.h: Likewise.
6097         * lib/sys_socket_.h: Likewise.
6098         * lib/sysexits_.h: Likewise.
6099         * modules/fcntl (Depends-on): Depend on include_next, not
6100         absolute_header.
6101         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
6102         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
6103         * modules/fchdir: Likewise.
6104         * modules/float: Likewise.
6105         * modules/iconv_open: Likewise.
6106         * modules/inttypes: Likewise.
6107         * modules/locale: Likewise.
6108         * modules/math: Likewise.
6109         * modules/netinet_in: Likewise.
6110         * modules/search: Likewise.
6111         * modules/signal: Likewise.
6112         * modules/stdint: Likewise.
6113         * modules/stdio: Likewise.
6114         * modules/stdlib: Likewise.
6115         * modules/string: Likewise.
6116         * modules/sys_select: Likewise.
6117         * modules/sys_socket: Likewise.
6118         * modules/sys_stat: Likewise.
6119         * modules/sys_time: Likewise.
6120         * modules/sysexits: Likewise.
6121         * modules/time: Likewise.
6122         * modules/unistd: Likewise.
6123         * modules/wchar: Likewise.
6124         * modules/wctype: Likewise.
6125         * modules/sys_stat: Change maintainer to "all".
6126         * modules/unistd: Likewise.
6127
6128 2007-06-20  Karl Berry  <karl@gnu.org>
6129
6130         * config/srclist.txt: track www changes in license files.
6131
6132 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
6133
6134         * build-aux/bootstrap: Remove stray dot.
6135         Make sure build_aux settings are honored when linking
6136         gnulib_extra_files.
6137
6138 2007-06-19  Eric Blake  <ebb9@byu.net>
6139
6140         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
6141         Allow compilation on cygwin.
6142
6143 2007-06-19  Jim Meyering  <jim@meyering.net>
6144
6145         xreadlink-with-size: Remove module.  No longer used.
6146         Ex-callers now use xreadlink or mreadlink-with-size.
6147         * modules/xreadlink-with-size: Remove module.
6148         * lib/xreadlink-with-size.c: Remove file.
6149         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
6150         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
6151         just before the function definition *is* accurate.
6152
6153         Eliminate one way canonicalize_filename_mode could exit.
6154         * lib/canonicalize.c (canonicalize_filename_mode):
6155         Use mreadlink_with_size, not xreadlink_with_size.
6156
6157 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
6158
6159         Detect porting problems to FreeBSD/arm, which has time_t wider than
6160         long int.  Original problem reported for GNU diff by Xin Li in
6161         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
6162         * modules/getdate (Depends-on): Add intprops, verify.
6163         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
6164         is an integer type no wider than long int.
6165
6166 2007-06-18  Jim Meyering  <jim@meyering.net>
6167
6168         New module: mreadlink-with-size.
6169         * MODULES.html.sh: Add mreadlink-with-size.
6170         * modules/mreadlink-with-size: New module
6171         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
6172         not xreadlink-with-size.
6173         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
6174
6175 2007-06-16  Bruno Haible  <bruno@clisp.org>
6176
6177         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
6178         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
6179         Reported by Gary V. Vaughan <gary@gnu.org>.
6180
6181 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
6182
6183         Revamp lchown so that it lives in unistd.h where it belongs.
6184         * lib/lchown.h: Remove.
6185         * lib/dirchownmod.c: Don't include lib/lchown.h.
6186         * lib/fchownat.c: Likewise.
6187         * lib/openat.c: Likewise.
6188         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
6189         does not follow symlinks.
6190         (EOPNOTSUPP): Define if not defined.
6191         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
6192         is defined to 0.
6193         (lchown): New decl.
6194         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
6195         Do not check for lchown decl.
6196         Set REPLACE_LCHOWN.
6197         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
6198         REPLACE_LCHOWN.
6199         * modules/chown: Make it clear it follows symlinks.
6200         * modules/lchown: Make it clear it doesn't follow symlinks.
6201         (Files): Remove lib/lchown.h
6202         (Depends-on): Add unistd.
6203         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
6204         (Include): Include <unistd.h>, not "lchown.h".
6205         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
6206         REPLACE_LCHOWN.
6207
6208 2007-06-15  Jim Meyering  <jim@meyering.net>
6209
6210         Change license (GPL to LGPL) of fsusage and dependents.
6211         * modules/fsusage (License): Change to LGPL.
6212         * modules/full-read (License): Likewise.
6213         * modules/full-write (License): Likewise.
6214         * modules/safe-read (License): Likewise.
6215         * modules/safe-write (License): Likewise.
6216
6217 2007-06-14  Ben Pfaff  <blp@gnu.org>
6218
6219         Missing part of allocsa -> malloca transition.
6220         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
6221         gl_MALLOCA.
6222
6223 2007-06-12  Bruno Haible  <bruno@clisp.org>
6224
6225         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
6226         to ia64, x86_64, i386.
6227         Reported by Eric Blake.
6228
6229 2007-06-12  Bruno Haible  <bruno@clisp.org>
6230
6231         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
6232         cross-compiling to x86_64.
6233
6234 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
6235
6236         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
6237         glitch reported by Ralf Wildenhues in
6238         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
6239
6240         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
6241         Vin Shelton.
6242
6243 2007-06-11  Bruno Haible  <bruno@clisp.org>
6244
6245         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
6246         replacement string.
6247         Reported by Eric Blake.
6248
6249 2007-06-10  Bruno Haible  <bruno@clisp.org>
6250
6251         Prepare vasnprintf code for use with Unicode strings.
6252         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
6253         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
6254         TYPE_U32_STRING.
6255         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
6256         a_u32_string variants.
6257         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
6258         * lib/printf-args.c: Don't include config.h and the specification
6259         header if PRINTF_FETCHARGS is already defined.
6260         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
6261         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
6262         TYPE_U16_STRING, TYPE_U32_STRING.
6263         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
6264         u16_directive, u16_directives, u32_directive, u32_directives): New
6265         types.
6266         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
6267         New declarations.
6268         * lib/printf-parse.c: Don't include config.h and the specification
6269         header if PRINTF_PARSE is already defined. Eliminate the set of
6270         parameters for WIDE_CHAR_VERSION; the user of this file must provide
6271         them now. Include c-ctype.h.
6272         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
6273         directive and CHAR_T_ONLY_ASCII.
6274         * lib/vasnprintf.c: Don't include config.h and the specification header
6275         if VASNPRINTF is already defined.
6276         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
6277         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
6278         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
6279         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
6280         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
6281         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
6282         code accordingly.
6283         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
6284         pad_ourselves also in this case, with the 'c' and 's' directives, and
6285         with a different notion of "width".
6286         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
6287
6288 2007-06-10  Bruno Haible  <bruno@clisp.org>
6289
6290         * modules/unistr/u32-mbsnlen: New file.
6291         * lib/unistr/u32-mbsnlen.c: New file.
6292
6293         * modules/unistr/u16-mbsnlen: New file.
6294         * lib/unistr/u16-mbsnlen.c: New file.
6295
6296         * modules/unistr/u8-mbsnlen: New file.
6297         * lib/unistr/u8-mbsnlen.c: New file.
6298
6299         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
6300         declarations.
6301
6302 2007-06-10  Bruno Haible  <bruno@clisp.org>
6303
6304         * lib/string_.h (mbsnlen): New declaration.
6305         * lib/mbsnlen.c: New file.
6306         * m4/mbsnlen.m4: New file.
6307         * modules/mbsnlen: New file.
6308         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
6309         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
6310         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
6311
6312 2007-06-10  Bruno Haible  <bruno@clisp.org>
6313
6314         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
6315
6316 2007-06-10  Bruno Haible  <bruno@clisp.org>
6317
6318         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
6319         * lib/mbuiter.h: Likewise.
6320
6321 2007-06-10  Bruno Haible  <bruno@clisp.org>
6322
6323         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
6324         declaration.
6325
6326 2007-06-10  Karl Berry  <karl@gnu.org>
6327
6328         * config/srclist.txt: remove gettext entries, Bruno prefers
6329         to update individually.
6330
6331 2007-06-10  Bruno Haible  <bruno@clisp.org>
6332
6333         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
6334         'maxlen'. Ensure only length + width bytes are allocated, not
6335         length + 1 + width.
6336
6337 2007-06-09  Bruno Haible  <bruno@clisp.org>
6338
6339         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
6340         (CHAR_T): Remove macro.
6341         (VASNPRINTF): Update.
6342
6343 2007-06-09  Bruno Haible  <bruno@clisp.org>
6344
6345         * MODULES.html.sh (Unicode string functions): Add the new modules.
6346
6347         * modules/uniconv/u32-conv-to-enc: New file.
6348         * lib/uniconv/u32-conv-to-enc.c: New file.
6349         * modules/uniconv/u32-conv-to-enc-tests: New file.
6350         * tests/uniconv/test-u32-conv-to-enc.c: New file.
6351
6352         * modules/uniconv/u16-conv-to-enc: New file.
6353         * lib/uniconv/u16-conv-to-enc.c: New file.
6354         * lib/uniconv/u-conv-to-enc.h: New file.
6355         * modules/uniconv/u16-conv-to-enc-tests: New file.
6356         * tests/uniconv/test-u16-conv-to-enc.c: New file.
6357
6358         * modules/uniconv/u8-conv-to-enc: New file.
6359         * lib/uniconv/u8-conv-to-enc.c: New file.
6360         * modules/uniconv/u8-conv-to-enc-tests: New file.
6361         * tests/uniconv/test-u8-conv-to-enc.c: New file.
6362
6363         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
6364         u32_conv_to_encoding): New declarations.
6365
6366 2007-06-09  Bruno Haible  <bruno@clisp.org>
6367
6368         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
6369
6370 2007-06-09  Bruno Haible  <bruno@clisp.org>
6371
6372         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
6373         * modules/malloca: Renamed from modules/allocsa, updated.
6374         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
6375         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
6376         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
6377         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
6378         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
6379         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
6380         * modules/xmalloca: Renamed from modules/xallocsa, updated.
6381         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
6382         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
6383         * modules/c-strcasestr (Depends-on): Update.
6384         * lib/c-strcasestr.c: Update.
6385         * modules/c-strstr (Depends-on): Update.
6386         * lib/c-strstr.c: Update.
6387         * modules/canonicalize-lgpl (Depends-on): Update.
6388         * lib/canonicalize-lgpl.c: Update.
6389         * modules/clean-temp (Depends-on): Update.
6390         * lib/clean-temp.c: Update.
6391         * modules/csharpcomp (Depends-on): Update.
6392         * lib/csharpcomp.c: Update.
6393         * modules/csharpexec (Depends-on): Update.
6394         * lib/csharpexec.c: Update.
6395         * modules/javacomp (Depends-on): Update.
6396         * lib/javacomp.c: Update.
6397         * modules/javaexec (Depends-on): Update.
6398         * lib/javaexec.c: Update.
6399         * modules/mbscasestr (Depends-on): Update.
6400         * lib/mbscasestr.c: Update.
6401         * modules/mbsstr (Depends-on): Update.
6402         * lib/mbsstr.c: Update.
6403         * modules/setenv (Depends-on): Update.
6404         * lib/setenv.c: Update.
6405         * modules/strcasestr (Depends-on): Update.
6406         * lib/strcasestr.c: Update.
6407         * modules/striconveha (Depends-on): Update.
6408         * lib/striconveha.c: Update.
6409         * modules/relocatable-prog-wrapper (Files): Update.
6410         * lib/relocwrapper.c: Update.
6411         * build-aux/install-reloc: Update.
6412         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
6413
6414 2007-06-08  Bruno Haible  <bruno@clisp.org>
6415
6416         Port to uClibc.
6417         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
6418         * lib/fpurge.c (fpurge): Likewise.
6419         * lib/freading.c (freading): Likewise.
6420         * lib/fseeko.c (rpl_fseeko): Likewise.
6421         * lib/fseterr.c (fseterr): Likewise.
6422         * lib/fwriting.c (fwriting): Likewise.
6423         * tests/test-fflush.c (main): Avoid a failure on uClibc.
6424
6425 2007-06-08  Bruno Haible  <bruno@clisp.org>
6426
6427         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
6428         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
6429         * modules/gettext (Files): Add m4/intlmacosx.m4.
6430
6431 2007-06-07  Bruno Haible  <bruno@clisp.org>
6432
6433         * modules/localename-tests: New file.
6434         * tests/test-localename.c: New file.
6435
6436         New module 'localename'.
6437         * lib/localename.h: New file.
6438         * lib/localename.c: New file, from GNU gettext.
6439         * m4/localename.m4: New file.
6440         * modules/localename: New file.
6441
6442 2007-06-07  Bruno Haible  <bruno@clisp.org>
6443
6444         Work around the lack of <wchar.h> on some builds of uClibc.
6445         * doc/headers/wchar.texi: Update.
6446         * lib/wchar_.h: Include <wchar.h> only if it exists.
6447         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
6448         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
6449         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
6450         doesn't exist.
6451         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
6452         * modules/mbfile (Depends-on): Add wchar.
6453         * modules/mbiter (Depends-on): Likewise.
6454         * modules/mbuiter (Depends-on): Likewise.
6455         Reported by Simon Josefsson.
6456
6457 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
6458
6459         Work around problem reported by Steven M. Schweda in
6460         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
6461         Tru64 5.1B with the Compaq compiler environment installed declares
6462         an 'isblank' function but does not define it in the C library.
6463         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
6464         * lib/regex_internal.h (isblank): Likewise.
6465         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
6466         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
6467
6468 2007-06-05  Bruno Haible  <bruno@clisp.org>
6469
6470         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
6471         ia64.
6472         * modules/printf-safe: New file.
6473         * modules/fprintf-posix (Depends-on): Add printf-safe.
6474         * modules/printf-posix (Depends-on): Likewise.
6475         * modules/snprintf-posix (Depends-on): Likewise.
6476         * modules/sprintf-posix (Depends-on): Likewise.
6477         * modules/vasnprintf-posix (Depends-on): Likewise.
6478         * modules/vasprintf-posix (Depends-on): Likewise.
6479         * modules/vfprintf-posix (Depends-on): Likewise.
6480         * modules/vprintf-posix (Depends-on): Likewise.
6481         * modules/vsnprintf-posix (Depends-on): Likewise.
6482         * modules/vsprintf-posix (Depends-on): Likewise.
6483         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
6484         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
6485         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
6486         "no" on i386, x86_64, ia64.
6487         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
6488         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
6489         on i386, x86_64, ia64.
6490         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
6491         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
6492         on i386, x86_64, ia64.
6493         * tests/test-vasnprintf-posix.c: Include float.h.
6494         (LDBL80_WORDS): New macro.
6495         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
6496         on i386, x86_64, ia64.
6497         * tests/test-vasprintf-posix.c: Include float.h.
6498         (LDBL80_WORDS): New macro.
6499         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
6500         on i386, x86_64, ia64.
6501         * tests/test-snprintf-posix.c: Include float.h.
6502         * tests/test-sprintf-posix.c: Likewise.
6503         * tests/test-vsnprintf-posix.c: Likewise.
6504         * tests/test-vsprintf-posix.c: Likewise.
6505
6506 2007-06-05  Bruno Haible  <bruno@clisp.org>
6507
6508         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
6509         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
6510         non-IEEE numbers on i386, x86_64, ia64.
6511         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
6512         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
6513         * tests/test-isnanl.h: Include float.h.
6514         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
6515
6516 2007-06-05  Bruno Haible  <bruno@clisp.org>
6517
6518         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
6519         also the %a / %A. Handle the %a / %A code before this extra handling.
6520
6521 2007-06-05  Bruno Haible  <bruno@clisp.org>
6522
6523         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
6524         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
6525
6526 2007-06-05  Bruno Haible  <bruno@clisp.org>
6527
6528         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
6529         typo in variable name.
6530
6531 2007-06-05  Eric Blake  <ebb9@byu.net>
6532
6533         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
6534         Reported by Simon Josefsson.
6535
6536 2007-06-04  Bruno Haible  <bruno@clisp.org>
6537
6538         Avoid test failures on some PowerPC platforms.
6539         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
6540         Define differently for PowerPC.
6541         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
6542         Reported by Gary V. Vaughan <gary@gnu.org>.
6543
6544 2007-06-02  Bruno Haible  <bruno@clisp.org>
6545
6546         Fix test-stdint failure on FreeBSD/ia64.
6547         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
6548         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
6549         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
6550         * doc/headers/stdint.texi: Update.
6551
6552 2007-06-01  Bruno Haible  <bruno@clisp.org>
6553
6554         * tests/test-binary-io.c (main): Pass a third argument to open().
6555         Reported by Gary V. Vaughan <gary@gnu.org>.
6556
6557 2007-06-01  Bruno Haible  <bruno@clisp.org>
6558
6559         * doc/functions/frexpl.texi: Update for mingw.
6560
6561 2007-06-01  Bruno Haible  <bruno@clisp.org>
6562
6563         * tests/test-lseek.c (main): Disable test of errno for invalid third
6564         argument.
6565         * doc/functions/lseek.texi: Update.
6566         Reported by Gary V. Vaughan <gary@gnu.org>.
6567
6568 2007-05-28  Bruno Haible  <bruno@clisp.org>
6569
6570         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
6571
6572 2007-05-31  Eric Blake  <ebb9@byu.net>
6573
6574         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
6575         cross compiling.
6576
6577 2007-05-30  Eric Blake  <ebb9@byu.net>
6578         and Bruno Haible  <bruno@clisp.org>
6579
6580         Work around mingw test failures exposed by m4-1.4.9b.
6581         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
6582         * tests/test-unistd.c: Disable uid_t and git_t tests for the
6583         moment.
6584
6585 2007-05-30  Bruno Haible  <bruno@clisp.org>
6586
6587         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
6588         assuming that they are closed. Needed on HP-UX 11.
6589
6590 2007-05-29  Bruno Haible  <bruno@clisp.org>
6591
6592         Fix a problem with #include_next.
6593         * lib/dirent_.h: Split the double-inclusion guard.
6594         * lib/fcntl_.h: Likewise.
6595         * lib/float_.h: Likewise.
6596         * lib/iconv_.h: Likewise.
6597         * lib/inttypes_.h: Likewise.
6598         * lib/locale_.h: Likewise.
6599         * lib/math_.h: Likewise.
6600         * lib/netinet_in_.h: Likewise.
6601         * lib/search_.h: Likewise.
6602         * lib/signal_.h: Likewise.
6603         * lib/stdint_.h: Likewise.
6604         * lib/stdio_.h: Likewise.
6605         * lib/stdlib_.h: Likewise.
6606         * lib/string_.h: Likewise.
6607         * lib/sys_select_.h: Likewise.
6608         * lib/sys_socket_.h: Likewise.
6609         * lib/sys_stat_.h: Likewise.
6610         * lib/sys_time_.h: Likewise.
6611         * lib/sysexits_.h: Likewise.
6612         * lib/time_.h: Likewise.
6613         * lib/unistd_.h: Likewise.
6614         * lib/wchar_.h: Likewise.
6615         * lib/wctype_.h: Likewise.
6616
6617 2007-05-29  Bruno Haible  <bruno@clisp.org>
6618
6619         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
6620         for the moment.
6621
6622 2007-05-29  Bruno Haible  <bruno@clisp.org>
6623
6624         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
6625         invocation.
6626         Reported by Eric Blake.
6627
6628 2007-05-29  Bruno Haible  <bruno@clisp.org>
6629
6630         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
6631         compiling case.
6632
6633 2007-05-29  Eric Blake  <ebb9@byu.net>
6634             Bruno Haible  <bruno@clisp.org>
6635
6636         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
6637         cross compiles.
6638
6639 2007-05-28  Eric Blake  <ebb9@byu.net>
6640
6641         * modules/closein-tests (test_closein_LDADD): Support test on
6642         cygwin with libtool.
6643
6644 2007-05-28  Bruno Haible  <bruno@clisp.org>
6645
6646         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
6647         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
6648         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
6649         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
6650         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
6651         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
6652         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
6653         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
6654         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
6655
6656 2007-05-28  Eric Blake  <ebb9@byu.net>
6657
6658         Unconditionally include <config.h> in unit tests.
6659         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
6660         * tests/test-allocsa.c, tests/test-arcfour.c,
6661         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
6662         tests/test-array_list.c, tests/test-array_oset.c,
6663         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
6664         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
6665         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
6666         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
6667         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
6668         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
6669         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
6670         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
6671         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
6672         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
6673         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
6674         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
6675         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
6676         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
6677         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
6678         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
6679         test-md5.c, test-memmem.c, test-printf-posix.c,
6680         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
6681         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
6682         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
6683         test-strcasestr.c, test-striconv.c, test-striconveh.c,
6684         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
6685         test-vasnprintf-posix2.c, test-vasnprintf.c,
6686         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
6687         test-vfprintf-posix.c, test-vprintf-posix.c,
6688         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
6689         test-xvasprintf.c: Likewise.
6690
6691 2007-05-28  Bruno Haible  <bruno@clisp.org>
6692
6693         * gnulib-tool (func_import): Remember the --with-tests command-line
6694         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
6695         Reported by Eric Blake.
6696
6697 2007-05-28  Bruno Haible  <bruno@clisp.org>
6698
6699         * modules/ftell-tests: New file.
6700         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
6701         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
6702
6703         * lib/ftell.c: New file.
6704         * modules/ftell: New file.
6705         * m4/ftell.m4: New file.
6706         * doc/functions/ftell.texi: Update.
6707         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
6708         REPLACE_FTELL.
6709         * lib/stdio_.h (rpl_ftell): New declaration.
6710         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
6711         REPLACE_FTELL.
6712
6713 2007-05-28  Eric Blake  <ebb9@byu.net>
6714
6715         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
6716
6717 2007-05-28  Bruno Haible  <bruno@clisp.org>
6718
6719         * modules/fseek-tests: New file.
6720         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
6721         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
6722
6723         * lib/fseek.c: New file.
6724         * modules/fseek: New file.
6725         * m4/fseek.m4: New file.
6726         * doc/functions/fseek.texi: Update.
6727         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
6728         REPLACE_FSEEK.
6729         * lib/stdio_.h (rpl_fseek): New declaration.
6730         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
6731         REPLACE_FSEEK.
6732
6733 2007-05-28  Bruno Haible  <bruno@clisp.org>
6734
6735         * lib/stdio_.h (fflush): More comments.
6736
6737 2007-05-28  Bruno Haible  <bruno@clisp.org>
6738
6739         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
6740         runtime test.
6741
6742 2007-05-28  Eric Blake  <ebb9@byu.net>
6743
6744         Improve lseek module.
6745         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
6746         * lib/unistd_.h (lseek): Scale back link warning message.
6747         * tests/test-lseek.c: Beef up test.
6748         * tests/test-lseek.sh: Exercise more facets of lseek.
6749         Reported by Bruno Haible.
6750
6751 2007-05-28  Bruno Haible  <bruno@clisp.org>
6752
6753         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
6754         to define.
6755
6756 2007-05-27  Bruno Haible  <bruno@clisp.org>
6757
6758         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
6759
6760 2007-05-27  Bruno Haible  <bruno@clisp.org>
6761
6762         * modules/openmp: New file.
6763         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
6764         Noah Misch.
6765
6766 2007-05-26  Bruno Haible  <bruno@clisp.org>
6767
6768         * modules/chdir-long (Depends-on): Add fchdir.
6769         * modules/chdir-safer (Depends-on): Likewise.
6770         * modules/fts (Depends-on): Likewise.
6771         * modules/fts-lgpl (Depends-on): Likewise.
6772         * modules/openat (Depends-on): Likewise.
6773         * modules/savewd (Depends-on): Likewise.
6774
6775 2007-05-24  Eric Blake  <ebb9@byu.net>
6776
6777         Fix lseek on mingw.
6778         * modules/lseek: New module.
6779         * m4/lseek.m4: New file.
6780         * lib/lseek.c: New file.
6781         * modules/lseek-tests: New file.
6782         * tests/test-lseek.c: New file.
6783         * tests/test-lseek.sh: New file.
6784         * MODULES.html.sh: Document lseek module.
6785         * modules/fflush (Depends-on): Add lseek, fseeko.
6786         * modules/fseeko (Depends-on): Likewise.
6787         * modules/ftello (Depends-on): Likewise.
6788         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
6789         broken.
6790         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
6791         broken.
6792         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
6793         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
6794         * lib/ftello.c (rpl_ftello): Likewise.
6795         * tests/test-fseeko.c (main): Test this.
6796         * tests/test-fseeko.sh: Likewise.
6797         * tests/test-ftello.c (main): Likewise.
6798         * tests/test-ftello.sh: Likewise.
6799         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
6800         implies replacing fseek.
6801         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
6802         HAVE_FTELLO.
6803         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
6804         * modules/unistd (Makefile.am): Likewise.
6805         * lib/unistd_.h (lseek): Declare a replacement.
6806         * doc/functions/lseek.texi (lseek): Document this fix.
6807         * doc/functions/fseek.texi (fseek): Likewise.
6808         * doc/functions/ftell.texi (ftell): Likewise.
6809
6810 2007-05-24  Bruno Haible  <bruno@clisp.org>
6811
6812         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
6813         in the printed representation of a NaN.
6814         * tests/test-vasprintf-posix.c (test_function): Likewise.
6815         * tests/test-snprintf-posix.h (test_function): Likewise.
6816         * tests/test-sprintf-posix.h (test_function): Likewise.
6817         Reported by Eric Blake.
6818
6819 2007-05-23  Eric Blake  <ebb9@byu.net>
6820
6821         Fix fseeko/ftello on cygwin 1.5.24.
6822         * doc/functions/fseeko.texi (fseeko): Document the fix.
6823         * doc/functions/ftello.texi (ftello): Document the fix.
6824         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
6825         * doc/functions/stdout.text (stdout): New file.
6826         * doc/functions/stderr.text (stderr): New file.
6827         * doc/gnulib.texi (Function Substitutes): Use new files.
6828         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
6829         prior to 1.7.0.
6830         * tests/test-ftello.c (main): Likewise for ftello.
6831         * tests/test-fseeko.sh: New file.
6832         * tests/test-ftello.sh: New file.
6833         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
6834         with seekable stdin.
6835         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
6836         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
6837         (gl_REPLACE_FSEEKO): New macro.
6838         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
6839         * modules/fseeko (Files): Distribute fseeko.c.
6840         * modules/ftello (Files): Distribute ftello.c.
6841         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
6842         mode.
6843         * lib/ftello.c (rpl_ftello): New file.
6844         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
6845         fseeko, ftello.
6846         (gl_STDIN_LARGE_OFFSET): New macro.
6847         * modules/stdio (Makefile.am): Perform the replacement.
6848         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
6849
6850 2007-05-23  Bruno Haible  <bruno@clisp.org>
6851
6852         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
6853         GNULIB_POSIXCHECK is defined.
6854
6855 2007-05-21  Bruno Haible  <bruno@clisp.org>
6856
6857         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
6858         Check also the output for NaN arguments. When cross-compiling, guess
6859         no on IRIX.
6860         * lib/vasnprintf.c: Update comments.
6861         * tests/test-vasnprintf-posix.c (strisnan): New function.
6862         (test_function): Use it.
6863         * tests/test-vasprintf-posix.c (strisnan): New function.
6864         (test_function): Use it.
6865         * tests/test-snprintf-posix.h (strisnan): New function.
6866         (test_function): Use it.
6867         * tests/test-sprintf-posix.h (strisnan): New function.
6868         (test_function): Use it.
6869         Reported by Eric Blake.
6870
6871 2007-05-20  Bruno Haible  <bruno@clisp.org>
6872
6873         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
6874         numbers that fails on BeOS.
6875         * doc/functions/frexpl.texi: Update.
6876
6877 2007-05-20  Jim Meyering  <jim@meyering.net>
6878
6879         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
6880         forced upon us by glibc-2.6.
6881
6882 2007-05-20  Bruno Haible  <bruno@clisp.org>
6883
6884         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
6885         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
6886         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
6887         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
6888         NEED_PRINTF_INFINITE.
6889         (is_infinitel): New function.
6890         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
6891         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
6892         gl_PREREQ_VASNPRINTF_INFINITE.
6893         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
6894         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
6895         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
6896         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
6897         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
6898         gl_PREREQ_VASNPRINTF_INFINITE.
6899         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
6900         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6901         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6902         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6903         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
6904         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6905         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6906         * doc/functions/fprintf.texi: Update.
6907         * doc/functions/printf.texi: Update.
6908         * doc/functions/snprintf.texi: Update.
6909         * doc/functions/sprintf.texi: Update.
6910         * doc/functions/vfprintf.texi: Update.
6911         * doc/functions/vprintf.texi: Update.
6912         * doc/functions/vsnprintf.texi: Update.
6913         * doc/functions/vsprintf.texi: Update.
6914
6915 2007-05-20  Bruno Haible  <bruno@clisp.org>
6916
6917         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
6918         was not found in libc.
6919         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6920
6921 2007-05-20  Bruno Haible  <bruno@clisp.org>
6922
6923         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
6924         printed as "-nan" instead of "nan".
6925         * tests/test-vasprintf-posix.c (test_function): Likewise.
6926         * tests/test-snprintf-posix.h (test_function): Likewise.
6927         * tests/test-sprintf-posix.h (test_function): Likewise.
6928         Needed for HP-UX 11.
6929
6930 2007-05-20  Jim Meyering  <jim@meyering.net>
6931
6932         Fix buggy test for the fchownat-deref bug.
6933         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
6934         symlink required for the run-test.  Without it, this test would
6935         always declare that fchownat doesn't work, and client code would
6936         unnecessarily use the replacement function with fixed libc.
6937         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
6938         Reported by Greg Schafer.
6939
6940 2007-05-19  Bruno Haible  <bruno@clisp.org>
6941
6942         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
6943         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
6944         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
6945         Needed for IRIX 6.5 and Solaris 2.5.1.
6946
6947 2007-05-19  Bruno Haible  <bruno@clisp.org>
6948
6949         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
6950         (test_function): Skip tests involving -0.0 on platforms where
6951         -0.0 = 0.0.
6952         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
6953         (test_function): Skip tests involving -0.0 on platforms where
6954         -0.0 = 0.0.
6955         * tests/test-snprintf-posix.h (have_minus_zero): New function.
6956         (test_function): Skip tests involving -0.0 on platforms where
6957         -0.0 = 0.0.
6958         * tests/test-sprintf-posix.h (have_minus_zero): New function.
6959         (test_function): Skip tests involving -0.0 on platforms where
6960         -0.0 = 0.0.
6961         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
6962         tests.
6963         * tests/test-printf-posix.h (test_function): Likewise.
6964         * tests/test-printf-posix.output: Remove all -0.0 related results.
6965         Needed for IRIX 6.5.
6966
6967 2007-05-19  Bruno Haible  <bruno@clisp.org>
6968
6969         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
6970         printed as "nan0x7fffffff" instead of "nan".
6971         * tests/test-vasprintf-posix.c (test_function): Likewise.
6972         * tests/test-snprintf-posix.h (test_function): Likewise.
6973         * tests/test-sprintf-posix.h (test_function): Likewise.
6974         * tests/test-fprintf-posix.h (NaN): Remove macro.
6975         (test_function): Remove all NaN related tests.
6976         * tests/test-printf-posix.h (NaN): Remove macro.
6977         (test_function): Remove all NaN related tests.
6978         * tests/test-printf-posix.output: Remove all NaN related results.
6979         Needed for IRIX 6.5.
6980
6981 2007-05-19  Bruno Haible  <bruno@clisp.org>
6982
6983         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
6984         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
6985
6986 2007-05-19  Bruno Haible  <bruno@clisp.org>
6987
6988         * lib/float_.h: New file.
6989         * m4/float_h.m4: New file.
6990         * modules/float: New file.
6991         * modules/isnanl (Dependencies): Add float.
6992         * modules/isnanl-nolibm (Dependencies): Likewise.
6993         * modules/mathl (Dependencies): Likewise.
6994         * modules/printf-frexpl (Dependencies): Likewise.
6995         * modules/signbit (Dependencies): Likewise.
6996         * modules/vasnprintf (Dependencies): Likewise.
6997         * doc/headers/float.texi: Update.
6998
6999 2007-05-19  Jim Meyering  <jim@meyering.net>
7000
7001         * lib/utimens.c (gl_futimens): Rename from futimens,
7002         now that glibc-2.6 declares futimens.
7003         * lib/utimens.h: Likewise.
7004
7005 2007-05-19  Bruno Haible  <bruno@clisp.org>
7006
7007         Avoid test failures on mingw.
7008         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
7009         * tests/test-printf-posix.sh: Likewise.
7010         * tests/test-vfprintf-posix.sh: Likewise.
7011         * tests/test-vprintf-posix.sh: Likewise.
7012
7013 2007-05-19  Bruno Haible  <bruno@clisp.org>
7014
7015         Fix *printf result for NaN, Inf, -0.0 on mingw.
7016         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
7017         * lib/vasnprintf.c: Include math.h and isnan.h.
7018         (is_infinite_or_zero): New function.
7019         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
7020         values in the %f, %F, %e, %E, %g, %G directives.
7021         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
7022         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7023         gl_PRINTF_INFINITE and test its result. Invoke
7024         gl_PREREQ_VASNPRINTF_INFINITE.
7025         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7026         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7027         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7028         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7029         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7030         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7031         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7032         * doc/functions/fprintf.texi: Update.
7033         * doc/functions/printf.texi: Update.
7034         * doc/functions/snprintf.texi: Update.
7035         * doc/functions/sprintf.texi: Update.
7036         * doc/functions/vfprintf.texi: Update.
7037         * doc/functions/vprintf.texi: Update.
7038         * doc/functions/vsnprintf.texi: Update.
7039         * doc/functions/vsprintf.texi: Update.
7040
7041 2007-05-19  Bruno Haible  <bruno@clisp.org>
7042
7043         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
7044         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
7045         Instead of multiplying with 10^k, set extra_zeroes to k.
7046         (scale10_round_long_double): Remove function.
7047
7048 2007-05-18  Bruno Haible  <bruno@clisp.org>
7049
7050         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
7051         introduced on 2007-05-06.
7052
7053 2007-05-18  Bruno Haible  <bruno@clisp.org>
7054
7055         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
7056         %g directives.
7057         * tests/test-vasprintf-posix.c (test_function): Likewise.
7058         * tests/test-snprintf-posix.h (test_function): Likewise.
7059         * tests/test-sprintf-posix.h (test_function): Likewise.
7060
7061 2007-05-18  Bruno Haible  <bruno@clisp.org>
7062
7063         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
7064         (strmatch): New function.
7065         (test_function): Test the %f directive on numbers of various exponents.
7066         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
7067         (strmatch): New function.
7068         (test_function): Test the %f directive on numbers of various exponents.
7069         * tests/test-snprintf-posix.h (strmatch): New function.
7070         (test_function): Test the %f directive on numbers of various exponents.
7071         * tests/test-sprintf-posix.h (strmatch): New function.
7072         (test_function): Test the %f directive on numbers of various exponents.
7073         * tests/test-snprintf-posix.c (SIZEOF): New macro.
7074         * tests/test-sprintf-posix.c (SIZEOF): New macro.
7075         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
7076         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
7077
7078 2007-05-18  Bruno Haible  <bruno@clisp.org>
7079
7080         Add support for 'long double' number output.
7081         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
7082         * lib/vasnprintf.c: Include math.h and float+.h.
7083         (mp_limb_t): New type.
7084         (GMP_LIMB_BITS): New macro.
7085         (mp_twolimb_t): New type.
7086         (GMP_TWOLIMB_BITS): New macro.
7087         (mpn_t): New type.
7088         (multiply, divide, convert_to_decimal, decode_long_double,
7089         scale10_round_long_double, scale10_round_decimal_long_double,
7090         floorlog10l): New functions.
7091         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
7092         for the %f, %F, %e, %E, %g, %G directives.
7093         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
7094         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7095         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
7096         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
7097         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7098         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7099         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7100         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7101         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7102         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7103         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7104         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
7105         * modules/snprintf-posix (Depends-on): Likewise.
7106         * modules/sprintf-posix (Depends-on): Likewise.
7107         * modules/vasnprintf-posix (Depends-on): Likewise.
7108         * modules/vasprintf-posix (Depends-on): Likewise.
7109         * modules/vfprintf-posix (Depends-on): Likewise.
7110         * modules/vsnprintf-posix (Depends-on): Likewise.
7111         * modules/vsprintf-posix (Depends-on): Likewise.
7112         * modules/vasnprintf (Files): Add lib/float+.h.
7113         * doc/functions/fprintf.texi: Update.
7114         * doc/functions/printf.texi: Update.
7115         * doc/functions/snprintf.texi: Update.
7116         * doc/functions/sprintf.texi: Update.
7117         * doc/functions/vfprintf.texi: Update.
7118         * doc/functions/vprintf.texi: Update.
7119         * doc/functions/vsnprintf.texi: Update.
7120         * doc/functions/vsprintf.texi: Update.
7121
7122 2007-05-18  Bruno Haible  <bruno@clisp.org>
7123
7124         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
7125
7126 2007-05-18  Bruno Haible  <bruno@clisp.org>
7127
7128         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
7129         for printing 64-bit integers. Needed for mingw.
7130
7131 2007-05-18  Bruno Haible  <bruno@clisp.org>
7132
7133         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
7134         gl_FUNC_FREXPL_WORKS.
7135         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
7136
7137 2007-05-18  Bruno Haible  <bruno@clisp.org>
7138
7139         * modules/frexpl-nolibm-tests: New file.
7140
7141         * modules/frexpl-nolibm: New file.
7142         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
7143
7144 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
7145
7146         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
7147         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
7148         GCC 4.2, which otherwise issues a lot of warnings.
7149         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
7150         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
7151         Likewise.
7152         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
7153         * modules/iconv_open (iconv.h): Likewise.
7154         * modules/locale (locale.h): Likewise.
7155         * modules/netinet_in (netinet/in.h): Likewise.
7156         * modules/sys_select (sys_select.h): Likewise.
7157         * modules/sys_socket (sys/socket.h): Likewise.
7158         * modules/sys_stat (sys/stat.h): Likewise.
7159         * modules/sysexits (sysexits.h): Likewise.
7160         * modules/unistd (unistd.h): Likewise.
7161
7162 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7163
7164         * modules/closein-tests (Makefile.am): Distribute
7165         `test-closein.sh'.
7166
7167 2007-05-17  Bruno Haible  <bruno@clisp.org>
7168
7169         * tests/test-printf-posix.output: Renamed from
7170         tests/test-fprintf-posix.out.
7171         * modules/fprintf-posix-tests: Update.
7172         * modules/printf-posix-tests: Update.
7173         * modules/vfprintf-posix-tests: Update.
7174         * modules/vprintf-posix-tests: Update.
7175         * tests/test-fprintf-posix.sh: Update.
7176         * tests/test-printf-posix.sh: Update.
7177         * tests/test-vfprintf-posix.sh: Update.
7178         * tests/test-vprintf-posix.sh: Update.
7179         Reported by Ralf Wildenhues.
7180
7181 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7182
7183         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
7184         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
7185         GCC 4.2, which otherwise issues a lot of warnings.
7186         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
7187         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
7188         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
7189         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
7190         it should no longer be needed.
7191         * lib/string_.h: Likewise.
7192         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
7193         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
7194         * modules/inttypes (inttypes.h): Likewise.
7195         * modules/math (math.h): Likewise.
7196         * modules/search (search.h): Likewise.
7197         * modules/signal (signal.h): Likewise.
7198         * modules/stdint (stdint.h): Likewise.
7199         * modules/stdio (stdio.h): Likewise.
7200         * modules/stdlib (stdlib.h): Likewise.
7201         * modules/string (string.h): Likewise.
7202         * modules/sys_time (sys/time.h): Likewise.
7203         * modules/time (time.h): Likewise.
7204         * modules/wchar (wchar.h): Likewise.
7205         * modules/wctype (wtype.h): Likewise.
7206
7207 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
7208
7209         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
7210
7211 2007-05-13  Bruno Haible  <bruno@clisp.org>
7212
7213         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
7214         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
7215         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
7216         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
7217         (gl_PREREQ_STRTOK_R): Don't require it here.
7218
7219 2007-05-13  Bruno Haible  <bruno@clisp.org>
7220
7221         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
7222         when used in C++ mode.
7223
7224 2007-05-12  Bruno Haible  <bruno@clisp.org>
7225
7226         * lib/linebuffer.h: Tweak doc.
7227         * lib/linebuffer.c: Likewise.
7228
7229 2007-05-12  James Youngman  <jay@gnu.org>
7230
7231         * lib/linebuffer.c (readlinebuffer_delim): New function,
7232         like readlinebuffer, but use a caller-specified delimiter.
7233         (readlinebuffer): Just call readlinebuffer_delim with '\n'
7234         as the delimiter.
7235         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
7236
7237 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
7238
7239         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
7240         * modules/openat (Files): Remove openat-die.c.
7241         (Depends-on): Add openat-die.
7242         * modules/openat-die: New module.
7243
7244 2007-05-06  Bruno Haible  <bruno@clisp.org>
7245
7246         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
7247         Update with info about Cygwin.
7248         * doc/functions/fprintf.texi: Update.
7249         * doc/functions/printf.texi: Update.
7250         * doc/functions/snprintf.texi: Update.
7251         * doc/functions/sprintf.texi: Update.
7252         * doc/functions/vfprintf.texi: Update.
7253         * doc/functions/vprintf.texi: Update.
7254         * doc/functions/vsnprintf.texi: Update.
7255         * doc/functions/vsprintf.texi: Update.
7256         Reported by Eric Blake.
7257
7258 2007-05-06  Bruno Haible  <bruno@clisp.org>
7259
7260         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
7261         padding ourselves for the floating-point directives.
7262         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
7263         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
7264         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
7265         gl_PRINTF_FLAG_ZERO and test its result. Invoke
7266         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
7267         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7268         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
7269         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7270         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7271         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7272         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7273         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7274         * tests/test-snprintf-posix.h (test_function): Also check the width
7275         and some flags in the %f directive.
7276         * tests/test-sprintf-posix.h (test_function): Likewise.
7277         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7278         * tests/test-vasprintf-posix.c (test_function): Likewise.
7279         * doc/functions/fprintf.texi: Update.
7280         * doc/functions/printf.texi: Update.
7281         * doc/functions/snprintf.texi: Update.
7282         * doc/functions/sprintf.texi: Update.
7283         * doc/functions/vfprintf.texi: Update.
7284         * doc/functions/vprintf.texi: Update.
7285         * doc/functions/vsnprintf.texi: Update.
7286         * doc/functions/vsprintf.texi: Update.
7287
7288 2007-05-06  Bruno Haible  <bruno@clisp.org>
7289
7290         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
7291         pass the ' flag character to sprintf or snprintf.
7292         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
7293         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
7294         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
7295         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
7296         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
7297         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7298         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
7299         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7300         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7301         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7302         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7303         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7304         * tests/test-snprintf-posix.h (test_function): Also check the grouping
7305         flag.
7306         * tests/test-sprintf-posix.h (test_function): Likewise.
7307         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7308         * tests/test-vasprintf-posix.c (test_function): Likewise.
7309         * doc/functions/fprintf.texi: Update.
7310         * doc/functions/printf.texi: Update.
7311         * doc/functions/snprintf.texi: Update.
7312         * doc/functions/sprintf.texi: Update.
7313         * doc/functions/vfprintf.texi: Update.
7314         * doc/functions/vprintf.texi: Update.
7315         * doc/functions/vsnprintf.texi: Update.
7316         * doc/functions/vsprintf.texi: Update.
7317
7318 2007-05-01  Bruno Haible  <bruno@clisp.org>
7319
7320         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
7321
7322 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
7323
7324         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
7325         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
7326
7327 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
7328
7329         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
7330         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
7331         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
7332
7333 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
7334
7335         * lib/argp-help.c (struct hol_entry): New member `ord'.
7336         (HOL_ENTRY_PTRCMP): Use ord for comparison
7337         (hol_sort): Initialize ord.
7338
7339 2007-05-01  Bruno Haible  <bruno@clisp.org>
7340
7341         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
7342         Reported by Eric Blake.
7343         * doc/gnulib.texi (Function Substitutes): Update.
7344
7345 2007-05-01  Bruno Haible  <bruno@clisp.org>
7346
7347         * doc/functions.texi: Remove file, now redundant through
7348         doc/functions/*.texi.
7349
7350 2007-05-01  Bruno Haible  <bruno@clisp.org>
7351
7352         * modules/argp (Depends-on): Add sleep.
7353
7354 2007-05-01  Bruno Haible  <bruno@clisp.org>
7355
7356         * modules/sleep-tests: New file.
7357         * tests/test-sleep.c: New file.
7358
7359         * modules/sleep: New file.
7360         * lib/sleep.c: New file.
7361         * m4/sleep.m4: New file.
7362         * lib/unistd_.h (sleep): New declaration.
7363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
7364         HAVE_SLEEP.
7365         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
7366         * doc/functions/sleep.texi: Document the sleep module.
7367
7368 2007-05-01  Bruno Haible  <bruno@clisp.org>
7369
7370         * lib/sigprocmask.h: Remove file.
7371         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
7372         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
7373         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
7374         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
7375         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
7376         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
7377         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
7378         HAVE_SIGSET_T as a shell variable.
7379         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
7380         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
7381         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
7382         (Depends-on): Add signal. Remove verify.
7383         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
7384         (Include): Mention <signal.h> instead of sigprocmask.h.
7385         * NEWS: Mention the change.
7386         * lib/fatal-signal.c: Don't include sigprocmask.h.
7387
7388 2007-05-01  Bruno Haible  <bruno@clisp.org>
7389
7390         * modules/signal: New file.
7391         * lib/signal_.h: New file.
7392         * m4/signal_h.m4: New file.
7393
7394 2007-05-01  Bruno Haible  <bruno@clisp.org>
7395
7396         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
7397         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
7398         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
7399         HAVE_WCTYPE_CTMP_BUG into wctype.h.
7400
7401 2007-05-01  Bruno Haible  <bruno@clisp.org>
7402
7403         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
7404         configure time.
7405         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
7406         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
7407         * modules/sys_stat (Makefile.am): Substitute their values into
7408         sys/stat.h.
7409
7410 2007-05-01  Bruno Haible  <bruno@clisp.org>
7411
7412         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
7413         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
7414         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
7415
7416 2007-05-01  Bruno Haible  <bruno@clisp.org>
7417
7418         * doc/header/assert.texi: Undo last change: don't mention the gnulib
7419         'assert' module here.
7420
7421 2007-05-01  Bruno Haible  <bruno@clisp.org>
7422
7423         * doc/functions/*.texi: New files.
7424         * doc/functions/google-ranking.txt: New file.
7425         * doc/gnulib.texi (Function Substitutes): New chapter.
7426         (ctime, inet_ntoa): Remove sections.
7427         * doc/ctime.texi: Remove file.
7428         * doc/inet_ntoa.texi: Remove file.
7429         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
7430         dependencies.
7431         (%.info): New rule, specifying a --reference-limit.
7432
7433 2007-05-01  Bruno Haible  <bruno@clisp.org>
7434
7435         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
7436
7437 2007-05-01  Bruno Haible  <bruno@clisp.org>
7438
7439         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
7440         the portability of 'mkdir' to mingw systems.
7441
7442 2007-05-01  Bruno Haible  <bruno@clisp.org>
7443
7444         * doc/headers/google-ranking.txt: New file.
7445
7446 2007-04-30  Eric Blake  <ebb9@byu.net>
7447
7448         Prefer fseeko to fseek.
7449         * modules/getpass (Depends-on): Add fseeko.
7450         * lib/getpass.c (getpass): Use fseeko, not fseek.
7451
7452 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
7453
7454         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
7455         assumes the sorting is stable, while most qsort implementations
7456         are not.  Use argument addresses to ensure they never compare as
7457         equal.
7458
7459         * tests/test-argp-2.sh (usage-indent test): Fix output
7460         (func_compare): Restore diff options
7461         * tests/test-argp.c: Restore #include "progname.h"
7462
7463 2007-04-29  Bruno Haible  <bruno@clisp.org>
7464
7465         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
7466         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
7467         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
7468         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7469         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
7470         (configure.ac): Define CHECK_SNPRINTF_POSIX.
7471         (TESTS, check_PROGRAMS): Add test-snprintf.
7472         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
7473         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
7474         (TESTS, check_PROGRAMS): Add test-vsnprintf.
7475         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
7476         assertions that fail on HP-UX, OSF/1, or IRIX.
7477         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
7478
7479 2007-04-29  Bruno Haible  <bruno@clisp.org>
7480
7481         * MODULES.html.sh (posix_functions): Remove 'contents'.
7482
7483 2007-04-29  Karl Berry  <karl@gnu.org>
7484
7485         * config/srclist.txt (gendocs_template_min): new entry.
7486
7487 2007-04-29  Bruno Haible  <bruno@clisp.org>
7488
7489         Work around fpurge bug on BSD systems.
7490         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
7491         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
7492         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
7493         fpurge to rpl_fpurge if the system already has this function.
7494         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
7495         the case where the system already has this function. Correct invariants
7496         on BSD systems.
7497         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
7498         BSD systems.
7499
7500 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
7501
7502         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
7503         proposed by Sven Verdoolaege.
7504
7505         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
7506         options.
7507         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
7508         (usage and help tests): Update
7509
7510 2007-04-29  Bruno Haible  <bruno@clisp.org>
7511
7512         * tests/test-fflush.c (main): Use a file of size 17, not 10.
7513         Print more information in case of failure. Disable a test on BeOS.
7514
7515 2007-04-29  Bruno Haible  <bruno@clisp.org>
7516
7517         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
7518         This helps debugging on systems on which no gdb is available.
7519
7520 2007-04-29  Bruno Haible  <bruno@clisp.org>
7521
7522         * lib/freading.h: Improve comments.
7523         * lib/fwriting.h: Likewise.
7524         * tests/test-freading.c (main): Don't check freading immediately after
7525         repositioning. Needed for glibc.
7526
7527 2007-04-29  Bruno Haible  <bruno@clisp.org>
7528
7529         * lib/freading.c (freading): Trivial simplification.
7530
7531 2007-04-28  Bruno Haible  <bruno@clisp.org>
7532
7533         * tests/test-fwriting.c (main): Also test the interaction between
7534         fflush and fwriting.
7535         * modules/fwriting-tests (Depends-on): Add fflush.
7536
7537         * tests/test-freading.c (main): Also test the interaction between
7538         fflush and freading.
7539         * modules/freading-tests (Depends-on): Add fflush.
7540
7541 2007-04-28  Bruno Haible  <bruno@clisp.org>
7542
7543         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
7544         fseeko and ftello.
7545         Suggested by Eric Blake.
7546
7547 2007-04-28  Jim Meyering  <jim@meyering.net>
7548
7549         Avoid false-negative in gl_STDINT_H's C99 conformance test.
7550         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
7551         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
7552
7553 2007-04-27  Eric Blake  <ebb9@byu.net>
7554
7555         * doc/headers/assert.texi (assert.h): Document assert module use.
7556
7557 2007-04-27  Bruno Haible  <bruno@clisp.org>
7558
7559         * doc/headers/*.texi: New files.
7560         * doc/gnulib.texi (Header File Substitutes): New chapter.
7561         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
7562         dependencies.
7563         (standards.info ,standards.html, standards.dvi): Update dependencies.
7564         (mostlyclean, clean): New targets.
7565
7566 2007-04-27  Bruno Haible  <bruno@clisp.org>
7567
7568         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
7569         * modules/sysexits (Files, Makefile.am): Update.
7570
7571         * lib/sys_socket_.h: Renamed from lib/socket_.h.
7572         * modules/sys_socket (Files, Makefile.am): Update.
7573
7574         * lib/sys_stat_.h: Renamed from lib/stat_.h.
7575         * modules/sys_stat (Files, Makefile.am): Update.
7576
7577 2007-04-27  Eric Blake  <ebb9@byu.net>
7578
7579         * lib/freading.h: Improve comments.
7580         * lib/fwriting.h: Likewise.
7581         * lib/fflush.c: Likewise.
7582
7583         Fix closein for mingw.
7584         * modules/closein-tests: Add tests for closein.
7585         * tests/test-closein.c: New file.
7586         * tests/test-closein.sh: Likewise.
7587         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
7588         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
7589
7590 2007-04-27  Bruno Haible  <bruno@clisp.org>
7591
7592         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
7593         version is < 6.
7594         * lib/math_.h [__DECC]: Likewise.
7595         * lib/stdio_.h [__DECC]: Likewise.
7596         * lib/stdlib_.h [__DECC]: Likewise.
7597         * lib/string_.h [__DECC]: Likewise.
7598         * lib/time_.h [__DECC]: Likewise.
7599         * lib/wchar_.h [__DECC]: Likewise.
7600         * lib/wctype_.h [__DECC]: Likewise.
7601
7602 2007-04-27  Bruno Haible  <bruno@clisp.org>
7603
7604         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
7605
7606 2007-04-27  Bruno Haible  <bruno@clisp.org>
7607
7608         * lib/fflush.c: Add comments.
7609         * modules/fpurge-tests (Depends-on): Add fflush.
7610         * modules/freadable-tests (Depends-on): Likewise.
7611         * modules/fwritable-tests (Depends-on): Likewise.
7612
7613 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
7614
7615         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
7616         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
7617         Report by Bruno Haible <bruno@clisp.org>.
7618
7619 2007-04-26  Eric Blake  <ebb9@byu.net>
7620
7621         Fix fflush on mingw.
7622         * modules/fflush (Depends-on): Add freading.
7623         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
7624         but unread data.
7625
7626 2007-04-26  Eric Blake  <ebb9@byu.net>
7627         and Bruno Haible  <bruno@clisp.org>
7628
7629         Implement freading and fwriting.
7630         * lib/freading.c: New file.
7631         * lib/freading.h: Likewise.
7632         * m4/freading.m4: Likewise.
7633         * modules/freading: Likewise.
7634         * modules/freading-tests: Likewise.
7635         * tests/test-freading.c: Likewise.
7636         * lib/fwriting.c: New file.
7637         * lib/fwriting.h: Likewise.
7638         * m4/fwriting.m4: Likewise.
7639         * modules/fwriting: Likewise.
7640         * modules/fwriting-tests: Likewise.
7641         * tests/test-fwriting.c: Likewise.
7642         * MODULES.html.sh (File stream based Input/Output): Mention them.
7643
7644 2007-04-26  Bruno Haible  <bruno@clisp.org>
7645
7646         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
7647         'long' when we assume it.
7648         Suggested by Eric Blake.
7649
7650 2007-04-26  Bruno Haible  <bruno@clisp.org>
7651
7652         Ensure fseeko, ftello are declared on glibc systems.
7653         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
7654         * modules/fseeko (configure.ac-early): Likewise.
7655         * modules/ftello (configure.ac-early): Likewise.
7656         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
7657         AC_FUNC_FSEEKO for this.
7658         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
7659         (gl_CHECK_FSEEKO): Remove macro.
7660
7661 2007-04-26  Bruno Haible  <bruno@clisp.org>
7662
7663         * tests/test-fflush.c (main): Also check the ftell result after
7664         fflush and fseek/fseeko.
7665         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
7666         file descriptor position cache in the stream.
7667         * lib/fseeko.c (rpl_fseeko): Likewise.
7668
7669 2007-04-26  Bruno Haible  <bruno@clisp.org>
7670
7671         * modules/fflush-tests (Depends-on): Add fseeko.
7672
7673 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
7674             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7675
7676         * lib/argz_.h: ensure error_t definition is obtained in same
7677         mechanism system argz.h would have.
7678         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
7679         argz facilities are known bad.  Err on the side of caution if
7680         cross-compiling.
7681
7682 2007-04-25  Eric Blake  <ebb9@byu.net>
7683
7684         * lib/fpurge.c (includes): Use stdlib.h for free.
7685         * tests/test-fflush.c (main): Also test fflush-fseeko.
7686
7687 2007-04-25  Bruno Haible  <bruno@clisp.org>
7688
7689         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
7690         * lib/fseeko.c: New file.
7691         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
7692         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
7693         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
7694         gl_FUNC_FSEEKO.
7695         (gl_FUNC_FSEEKO): Invoke it.
7696         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
7697         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
7698         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
7699
7700 2007-04-25  Bruno Haible  <bruno@clisp.org>
7701
7702         * modules/fflush (Depends-on): Add ftello.
7703
7704 2007-04-25  Bruno Haible  <bruno@clisp.org>
7705
7706         * modules/ftello-tests: New file.
7707         * tests/test-ftello.c: New file.
7708
7709         * modules/ftello: New file.
7710         * m4/ftello.m4: New file.
7711         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
7712         HAVE_FTELLO.
7713         * lib/stdio_.h (ftello): New declaration.
7714         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
7715         HAVE_FTELLO.
7716
7717 2007-04-25  Bruno Haible  <bruno@clisp.org>
7718
7719         * modules/fseeko-tests: New file.
7720         * tests/test-fseeko.c: New file.
7721
7722         * modules/fseeko: New file.
7723         * m4/fseeko.m4: New file.
7724         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
7725         HAVE_FSEEKO.
7726         * lib/stdio_.h (fseeko): New declaration.
7727         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
7728         HAVE_FSEEKO.
7729
7730 2007-04-25  Bruno Haible  <bruno@clisp.org>
7731
7732         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
7733
7734 2007-04-25  Bruno Haible  <bruno@clisp.org>
7735
7736         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
7737         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
7738         * tests/test-unistd.c: Likewise.
7739         * tests/test-fcntl.c: Likewise.
7740
7741 2007-04-23  Eric Blake  <ebb9@byu.net>
7742
7743         * lib/fflush.c: Fix missing include.
7744         Reported by Bruno Haible.
7745
7746 2007-04-23  Bruno Haible  <bruno@clisp.org>
7747
7748         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
7749         Reported by Eric Blake.
7750
7751 2007-04-23  Bruno Haible  <bruno@clisp.org>
7752
7753         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
7754
7755 2007-04-23  Bruno Haible  <bruno@clisp.org>
7756
7757         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
7758
7759 2007-04-23  Bruno Haible  <bruno@clisp.org>
7760
7761         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
7762         Needed on HP-UX 11.
7763
7764 2007-04-16  Eric Blake  <ebb9@byu.net>
7765
7766         Make fflush rely on fpurge.
7767         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
7768         open coding all variants.
7769         * modules/fflush (Depends-on): Add fpurge and unistd.
7770         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
7771         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
7772
7773         Fix --with-tests compilation on cygwin.
7774         * modules/argmatch-tests (Makefile.am): List gnulib library first
7775         in LDADD.
7776         * modules/argp-tests (Makefile.am): Likewise.
7777         * modules/array-list-tests (Makefile.am): Likewise.
7778         * modules/array-oset-tests (Makefile.am): Likewise.
7779         * modules/avltree-list-tests (Makefile.am): Likewise.
7780         * modules/avltree-oset-tests (Makefile.am): Likewise.
7781         * modules/avltreehash-list-tests (Makefile.am): Likewise.
7782         * modules/carray-list-tests (Makefile.am): Likewise.
7783         * modules/dirname-tests (Makefile.am): Likewise.
7784         * modules/frexp-tests (Makefile.am): Likewise.
7785         * modules/isnanl-tests (Makefile.am): Likewise.
7786         * modules/linked-list-tests (Makefile.am): Likewise.
7787         * modules/linkedhash-list-tests (Makefile.am): Likewise.
7788         * modules/lock-tests (Makefile.am): Likewise.
7789         * modules/rbtree-list-tests (Makefile.am): Likewise.
7790         * modules/rbtree-oset-tests (Makefile.am): Likewise.
7791         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
7792         * modules/tls-tests (Makefile.am): Likewise.
7793         * modules/tsearch-tests (Makefile.am): Likewise.
7794         * modules/xvasprintf-tests (Makefile.am): Likewise.
7795
7796         Fix fpurge for cygwin.
7797         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
7798         value.
7799         * modules/fpurge-tests (Depends-on): Clean up trash.
7800
7801 2007-04-16  Simon Josefsson  <simon@josefsson.org>
7802
7803         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
7804
7805         * m4/autobuild.m4: Re-indent.
7806
7807 2007-04-13  Bruno Haible  <bruno@clisp.org>
7808
7809         * modules/fpurge-tests: New file.
7810         * tests/test-fpurge.c: New file.
7811
7812         * modules/fpurge: New file.
7813         * lib/fpurge.h: New file.
7814         * lib/fpurge.c: New file.
7815         * m4/fpurge.m4: New file.
7816
7817 2007-04-13  Bruno Haible  <bruno@clisp.org>
7818
7819         * modules/fbufmode-tests: New file.
7820         * tests/test-fbufmode.c: New file.
7821
7822         * modules/fbufmode: New file.
7823         * lib/fbufmode.h: New file.
7824         * lib/fbufmode.c: New file.
7825         * m4/fbufmode.m4: New file.
7826
7827 2007-04-13  Bruno Haible  <bruno@clisp.org>
7828
7829         * modules/fwritable-tests: New file.
7830         * tests/test-fwritable.c: New file.
7831
7832         * modules/fwritable: New file.
7833         * lib/fwritable.h: New file.
7834         * lib/fwritable.c: New file.
7835         * m4/fwritable.m4: New file.
7836
7837 2007-04-13  Bruno Haible  <bruno@clisp.org>
7838
7839         * modules/freadable-tests: New file.
7840         * tests/test-freadable.c: New file.
7841
7842         * modules/freadable: New file.
7843         * lib/freadable.h: New file.
7844         * lib/freadable.c: New file.
7845         * m4/freadable.m4: New file.
7846
7847 2007-04-13  Bruno Haible  <bruno@clisp.org>
7848
7849         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
7850         MOSTLYCLEANFILES.
7851
7852 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
7853
7854         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
7855         gzip bootstrap.conf to avoid dragging in i18n machinery.
7856         (gnulib_tool_option): Use it.
7857
7858 2007-04-13  Bruno Haible  <bruno@clisp.org>
7859
7860         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
7861         %F directives.
7862         * tests/test-vasprintf-posix.c (test_function): Likewise.
7863         * tests/test-snprintf-posix.h (test_function): Likewise.
7864         * tests/test-sprintf-posix.h (test_function): Likewise.
7865         * tests/test-fprintf-posix.h (test_function): Likewise.
7866         * tests/test-printf-posix.h (test_function): Likewise.
7867         * tests/test-fprintf-posix.out: Likewise.
7868
7869 2007-04-13  Bruno Haible  <bruno@clisp.org>
7870
7871         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
7872         * modules/tls-tests (configure.ac): Likewise.
7873         Reported by Arto C. Nirkko <anirkko@insel.ch>.
7874
7875 2007-04-13  Bruno Haible  <bruno@clisp.org>
7876
7877         * lib/tls.c (glthread_tls_get): Fix return type.
7878         Patch by Arto C. Nirkko <anirkko@insel.ch>.
7879
7880 2007-04-12  Eric Blake  <ebb9@byu.net>
7881
7882         * modules/gettime (Depends-on): Remove gettime.
7883         Reported by Dmitry V. Levin.
7884
7885 2007-04-12  Bruno Haible  <bruno@clisp.org>
7886
7887         * modules/fflush (Include): Mention <stdio.h>.
7888         * modules/strtoimax (Include): Mention <inttypes.h>.
7889         * modules/strtoumax (Include): Likewise.
7890
7891 2007-04-12  Eric Blake  <ebb9@byu.net>
7892
7893         * .cvsignore: New file.
7894         * .gitignore: Likewise.
7895
7896 2007-04-12  Bruno Haible  <bruno@clisp.org>
7897
7898         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
7899         not before, since $(LDADD) often contains libgnu.a.
7900         * modules/striconv-tests (test_striconv_LDADD): Likewise.
7901         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
7902         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
7903         Needed on Cygwin.
7904
7905 2007-04-12  Eric Blake  <ebb9@byu.net>
7906
7907         Work around glibc's failure to flush stdin on fclose.
7908         * lib/closein.c (close_stdin): Flush stdin before closing.
7909
7910         Work around glibc's failure to reset seekable stdin on exit.
7911         * modules/closein: New module.
7912         * lib/closein.c: New file.
7913         * lib/closein.h: Likewise.
7914         * m4/closein.m4: Likewise.
7915         * MODULES.html.sh (File stream based Input/Output): Document it.
7916
7917 2007-04-12  Simon Josefsson  <simon@josefsson.org>
7918
7919         * gnulib-tool: Rename generated 'autobuild' script to
7920         'do-autobuild' in --create-megatestdir output.
7921
7922         * doc/gnulib.texi (Build robot for gnulib): Fix.
7923
7924 2007-04-12  Simon Josefsson  <simon@josefsson.org>
7925
7926         * modules/sysexits (Depends-on): Add absolute-header.
7927
7928 2007-04-12  Eric Blake  <ebb9@byu.net>
7929
7930         No need to preserve errno on success.
7931         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
7932         Reported by Bruno Haible.
7933
7934 2007-04-12  Simon Josefsson  <simon@josefsson.org>
7935
7936         * MODULES.html.sh (Support for maintaining and releasing
7937         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
7938
7939 2007-04-12  Simon Josefsson  <simon@josefsson.org>
7940
7941         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
7942
7943 2007-04-12  Simon Josefsson  <simon@josefsson.org>
7944
7945         * modules/autobuild: New module.
7946
7947         * m4/autobuild.m4: New file.
7948
7949 2007-04-11  Bruno Haible  <bruno@clisp.org>
7950
7951         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
7952         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
7953         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
7954         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
7955         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7956         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
7957         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
7958         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
7959         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
7960         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
7961         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
7962         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
7963         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
7964         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
7965         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
7966         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
7967         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
7968         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
7969         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
7970         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
7971         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
7972         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
7973         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
7974         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
7975         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
7976         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
7977         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
7978         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
7979         Reported by Eric Blake.
7980
7981 2007-04-11  Bruno Haible  <bruno@clisp.org>
7982
7983         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
7984
7985 2007-04-10  Bruno Haible  <bruno@clisp.org>
7986
7987         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
7988         for NaN and Infinity. Needed on FreeBSD 6.1.
7989         * tests/test-vasnprintf-posix.c (test_function): Undo last change
7990         regarding results for "%010a" of Infinity and NaN.
7991         * tests/test-vasprintf-posix.c (test_function): Likewise.
7992         * tests/test-snprintf-posix.h (test_function): Likewise.
7993         * tests/test-sprintf-posix.h (test_function): Likewise.
7994         * tests/test-fprintf-posix.h (test_function): Likewise.
7995         * tests/test-printf-posix.h (test_function): Likewise.
7996         * tests/test-fprintf-posix.out: Likewise.
7997
7998 2007-04-10  Bruno Haible  <bruno@clisp.org>
7999
8000         * modules/locale-tests: New file.
8001         * tests/test-locale.c: New file.
8002
8003         * modules/locale: New file.
8004         * lib/locale_.h: New file.
8005         * m4/locale_h.m4: New file.
8006
8007 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
8008             Bruno Haible  <bruno@clisp.org>
8009
8010         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
8011         be determined, test for availability of the copysignf, copysign,
8012         copysignl functions.
8013         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
8014         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
8015         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
8016
8017 2007-04-09  Eric Blake  <ebb9@byu.net>
8018
8019         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
8020         * modules/stdio (Makefile.am): Support fflush.
8021         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
8022         * modules/fflush: New file.
8023         * lib/fflush.c: Likewise.
8024         * m4/fflush.m4: Likewise.
8025         * modules/fflush-tests: New test.
8026         * tests/test-fflush.c: Likewise.
8027         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
8028
8029 2007-04-06  Bruno Haible  <bruno@clisp.org>
8030
8031         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
8032         (VASNPRINTF): Use signbit for faster determination whether to print a
8033         minus sign.
8034         * modules/vasnprintf (Files): Remove lib/float+.h.
8035         * modules/fprintf-posix (Depends-on): Add signbit.
8036         * modules/snprintf-posix (Depends-on): Likewise.
8037         * modules/sprintf-posix (Depends-on): Likewise.
8038         * modules/vasnprintf-posix (Depends-on): Likewise.
8039         * modules/vasprintf-posix (Depends-on): Likewise.
8040         * modules/vfprintf-posix (Depends-on): Likewise.
8041         * modules/vsnprintf-posix (Depends-on): Likewise.
8042         * modules/vsprintf-posix (Depends-on): Likewise.
8043
8044 2007-04-06  Bruno Haible  <bruno@clisp.org>
8045
8046         * tests/test-frexp.c (main): Test also the sign bit of zero results.
8047         * tests/test-frexpl.c (main): Likewise.
8048         * tests/test-ldexpl.c (main): Likewise.
8049         * modules/frexp-tests (Depends-on): Add signbit.
8050         * modules/frexpl-tests (Depdends-on): Likewise.
8051         * modules/ldexpl-tests (Depdends-on): Likewise.
8052
8053 2007-04-06  Bruno Haible  <bruno@clisp.org>
8054
8055         * modules/signbit-tests: New file.
8056         * tests/test-signbit.c: New file.
8057
8058         * modules/signbit: New file.
8059         * lib/signbitf.c: New file.
8060         * lib/signbitd.c: New file.
8061         * lib/signbitl.c: New file.
8062         * m4/signbit.m4: New file.
8063         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
8064         (signbit): New macro.
8065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
8066         REPLACE_SIGNBIT.
8067         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
8068         REPLACE_FREXPL into math.h.
8069
8070 2007-04-06  Bruno Haible  <bruno@clisp.org>
8071
8072         * modules/isnanf-nolibm-tests: New file.
8073         * tests/test-isnanf.c: New file.
8074
8075         * modules/isnanf-nolibm: New file.
8076         * lib/isnanf.h: New file.
8077         * lib/isnanf.c: New file.
8078         * lib/isnan.c: Consider the USE_FLOAT macro.
8079         * m4/isnanf.m4: New file.
8080
8081 2007-04-06  Bruno Haible  <bruno@clisp.org>
8082
8083         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
8084         (Link): New section.
8085
8086         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
8087
8088 2007-04-06  Bruno Haible  <bruno@clisp.org>
8089
8090         Assume the 'long double' type.
8091         * m4/longdouble.m4: Remove file.
8092         * config/srclist.txt: Don't mention longdouble.m4.
8093         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
8094         * lib/float+.h: Likewise.
8095         * lib/frexp.c: Likewise.
8096         * lib/printf-args.h: Likewise.
8097         * lib/printf-args.c: Likewise.
8098         * lib/printf-frexp.c: Likewise.
8099         * lib/printf-parse.c: Likewise.
8100         * lib/vasnprintf.c: Likewise.
8101         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
8102         * m4/intl.m4: Likewise.
8103         * m4/isnanl.m4: Likewise.
8104         * m4/printf.m4: Likewise.
8105         * m4/printf-frexpl.m4: Likewise.
8106         * m4/vasnprintf.m4: Likewise.
8107         * modules/allocsa (Files): Remove m4/longdouble.m4.
8108         * modules/gettext (Files): Likewise.
8109         * modules/relocatable-prog-wrapper (Files): Likewise.
8110         * modules/vasnprintf (Files): Likewise.
8111         * modules/isnanl (Files): Likewise.
8112         (Include): Simplify.
8113         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
8114         (Include): Simplify.
8115         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
8116         (Include): Simplify.
8117         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
8118         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
8119         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
8120         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
8121         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
8122         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
8123         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
8124         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
8125         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
8126         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
8127         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
8128         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
8129         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
8130         * tests/test-isnanl.c: Likewise.
8131         * tests/test-snprintf-posix.h: Likewise.
8132         * tests/test-sprintf-posix.h: Likewise.
8133         * tests/test-vasnprintf-posix.c: Likewise.
8134         * tests/test-vasnprintf-posix2.c: Likewise.
8135         * tests/test-vasprintf-posix.c: Likewise.
8136
8137 2007-04-06  Bruno Haible  <bruno@clisp.org>
8138
8139         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
8140         * lib/math_.h [__DECC]: Include the overridden include file through
8141         #include_next, outside the double-inclusion guard.
8142         * lib/stdio_.h [__DECC]: Likewise.
8143         * lib/stdlib_.h [__DECC]: Likewise.
8144         * lib/string_.h [__DECC]: Likewise.
8145         * lib/time_.h [__DECC]: Likewise.
8146         * lib/wchar_.h [__DECC]: Likewise.
8147         * lib/wctype_.h [__DECC]: Likewise.
8148         * lib/inttypes_.h [__DECC]: Likewise.
8149         Reported by Albert Chin <china@thewrittenword.com> in
8150         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
8151
8152 2007-04-04  Eric Blake  <ebb9@byu.net>
8153
8154         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
8155         1.5.x.
8156
8157 2007-04-04  Bruno Haible  <bruno@clisp.org>
8158
8159         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
8160         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
8161
8162 2007-04-04  Bruno Haible  <bruno@clisp.org>
8163
8164         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
8165         results for "%010a" of Infinity and NaN.
8166         * tests/test-vasprintf-posix.c (test_function): Likewise.
8167         * tests/test-snprintf-posix.h (test_function): Likewise.
8168         * tests/test-sprintf-posix.h (test_function): Likewise.
8169         * tests/test-fprintf-posix.h (test_function): Remove these tests.
8170         * tests/test-printf-posix.h (test_function): Likewise.
8171         * tests/test-fprintf-posix.out: Update.
8172         Needed for FreeBSD 6.1.
8173
8174 2007-04-04  Bruno Haible  <bruno@clisp.org>
8175
8176         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
8177         directly used by the gnulib modules nor by gnulib-tool.
8178
8179 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
8180
8181         * DEPENDENCIES: Give overall description of version dependency
8182         desirability.  Use more-typical names for apps.
8183         Add shell, coreutils, diffutils, grep, tar, gzip.
8184
8185 2007-04-04  Simon Josefsson  <simon@josefsson.org>
8186
8187         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
8188
8189 2007-04-04  Karl Berry  <karl@gnu.org>
8190
8191         * MODULES.html.sh (func_module): missing '.
8192
8193 2007-04-03  Bruno Haible  <bruno@clisp.org>
8194
8195         * modules/argmatch-tests (Makefile.am): New variable
8196         test_argmatch_LDADD.
8197         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
8198         * modules/array-list-tests (Makefile.am): New variable
8199         test_array_list_LDADD.
8200         * modules/array-oset-tests (Makefile.am): New variable
8201         test_array_oset_LDADD.
8202         * modules/avltree-list-tests (Makefile.am): New variable
8203         test_avltree_list_LDADD.
8204         * modules/avltree-oset-tests (Makefile.am): New variable
8205         test_avltree_oset_LDADD.
8206         * modules/avltreehash-list-tests (Makefile.am): New variable
8207         test_avltreehash_list_LDADD.
8208         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
8209         test_canonicalize_lgpl_LDADD.
8210         * modules/carray-list-tests (Makefile.am): New variable
8211         test_carray_list_LDADD.
8212         * modules/dirname-tests (Makefile.am): New variable
8213         test_dirname_LDADD.
8214         * modules/linked-list-tests (Makefile.am): New variable
8215         test_linked_list_LDADD.
8216         * modules/linkedhash-list-tests (Makefile.am): New variable
8217         test_linkedhash_list_LDADD.
8218         * modules/rbtree-list-tests (Makefile.am): New variable
8219         test_rbtree_list_LDADD.
8220         * modules/rbtree-oset-tests (Makefile.am): New variable
8221         test_rbtree_oset_LDADD.
8222         * modules/rbtreehash-list-tests (Makefile.am): New variable
8223         test_rbtreehash_list_LDADD.
8224         * modules/xvasprintf-tests (Makefile.am): New variable
8225         test_xvasprintf_LDADD.
8226         Reported by Eric Blake.
8227
8228 2007-04-03  Eric Blake  <ebb9@byu.net>
8229
8230         * DEPENDENCIES: Weaken m4 requirements.
8231
8232 2007-04-03  Bruno Haible  <bruno@clisp.org>
8233
8234         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
8235         * modules/isnanl-tests (configure.ac): Likewise.
8236
8237 2007-04-03  Ben Pfaff  <blp@gnu.org>
8238
8239         * modules/iconv_open: Add $(srcdir)/ to source directory
8240         references in Makefile fragments that call gperf, to fix VPATH
8241         builds.
8242
8243 2007-04-03  Bruno Haible  <bruno@clisp.org>
8244
8245         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
8246         * lib/ldexpl.c: Undo last change.
8247
8248 2007-04-03  Bruno Haible  <bruno@clisp.org>
8249
8250         * modules/printf-frexpl (Depends-on): Undo last change.
8251         (Files): Add m4/ldexpl.m4.
8252
8253 2007-04-03  Bruno Haible  <bruno@clisp.org>
8254
8255         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
8256         * modules/isnanl (Link): New section.
8257
8258         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
8259         * modules/frexp (Link): New section.
8260
8261         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
8262         * modules/frexpl (Link): New section.
8263
8264         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
8265         * modules/ldexpl (Link): New section.
8266
8267 2007-04-03  Bruno Haible  <bruno@clisp.org>
8268
8269         * modules/TEMPLATE-EXTENDED: New file.
8270         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
8271
8272 2007-04-03  Bruno Haible  <bruno@clisp.org>
8273
8274         * DEPENDENCIES: New file.
8275         Suggested by Simon Josefsson.
8276
8277 2007-04-03  Bruno Haible  <bruno@clisp.org>
8278
8279         * doc/gnulib.texi: Escape @.
8280
8281 2007-04-03  James Youngman  <jay@gnu.org>
8282         and Paul Eggert  <eggert@cs.ucla.edu>
8283
8284         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
8285         birthtime on all systems that have birthtime, not just those which
8286         use st_birthtimensec rather than st_birthtim.  Putting zero in
8287         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
8288         that the birth time is not available for files on an NFS mount.
8289
8290 2007-04-03  Simon Josefsson  <simon@josefsson.org>
8291
8292         * modules/memxor: Move back from crypto/, suggested by Bruno.
8293         * modules/crypto/hmac-sha1: Fix memxor dependency.
8294
8295         * modules/crypto/gc: Moved from ../.
8296
8297 2007-04-02  Eric Blake  <ebb9@byu.net>
8298
8299         * lib/ldexpl.c (includes): Avoid libm.
8300
8301         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
8302
8303 2007-04-02  Bruno Haible  <bruno@clisp.org>
8304
8305         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
8306         on IRIX.
8307
8308 2007-04-02  Bruno Haible  <bruno@clisp.org>
8309
8310         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
8311         x86 or x86_64 platforms running MacOS X.
8312         Reported by Ryan Schmidt <@ryandesign.com>.
8313
8314 2007-04-02  Bruno Haible  <bruno@clisp.org>
8315
8316         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
8317         i386.
8318
8319 2007-04-01  Simon Josefsson  <simon@josefsson.org>
8320
8321         * modules/crypto/arcfour: Moved from ../.
8322         * modules/crypto/arcfour-tests: Moved from ../.
8323         * modules/crypto/arctwo: Moved from ../.
8324         * modules/crypto/arctwo-tests: Moved from ../.
8325         * modules/crypto/des: Moved from ../.
8326         * modules/crypto/des-tests: Moved from ../.
8327         * modules/crypto/gc-arcfour: Moved from ../.
8328         * modules/crypto/gc-arcfour-tests: Moved from ../.
8329         * modules/crypto/gc-arctwo: Moved from ../.
8330         * modules/crypto/gc-arctwo-tests: Moved from ../.
8331         * modules/crypto/gc-des: Moved from ../.
8332         * modules/crypto/gc-des-tests: Moved from ../.
8333         * modules/crypto/gc-hmac-md5: Moved from ../.
8334         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
8335         * modules/crypto/gc-hmac-sha1: Moved from ../.
8336         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
8337         * modules/crypto/gc-md2: Moved from ../.
8338         * modules/crypto/gc-md2-tests: Moved from ../.
8339         * modules/crypto/gc-md4: Moved from ../.
8340         * modules/crypto/gc-md4-tests: Moved from ../.
8341         * modules/crypto/gc-md5: Moved from ../.
8342         * modules/crypto/gc-md5-tests: Moved from ../.
8343         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
8344         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
8345         * modules/crypto/gc-random: Moved from ../.
8346         * modules/crypto/gc-rijndael: Moved from ../.
8347         * modules/crypto/gc-rijndael-tests: Moved from ../.
8348         * modules/crypto/gc-sha1: Moved from ../.
8349         * modules/crypto/gc-sha1-tests: Moved from ../.
8350         * modules/crypto/gc-tests: Moved from ../.
8351         * modules/crypto/hmac-md5: Moved from ../.
8352         * modules/crypto/hmac-md5-tests: Moved from ../.
8353         * modules/crypto/hmac-sha1: Moved from ../.
8354         * modules/crypto/hmac-sha1-tests: Moved from ../.
8355         * modules/crypto/md2: Moved from ../.
8356         * modules/crypto/md2-tests: Moved from ../.
8357         * modules/crypto/md4: Moved from ../.
8358         * modules/crypto/md4-tests: Moved from ../.
8359         * modules/crypto/md5: Moved from ../.
8360         * modules/crypto/md5-tests: Moved from ../.
8361         * modules/crypto/memxor: Moved from ../.
8362         * modules/crypto/rijndael: Moved from ../.
8363         * modules/crypto/rijndael-tests: Moved from ../.
8364         * modules/crypto/sha1: Moved from ../.
8365
8366 2007-03-30  James Youngman  <jay@gnu.org>
8367
8368         * tests/test-stat-time.c (prepare_test): use chmod() rather than
8369         rename() to change the ctime of a file (because ctime is unaffected
8370         by rename on jfs2 on AIX 5.1).
8371         (main): Start by doing cleanup, in case a previous run failed leaving
8372         test files behind.
8373
8374 2007-03-31  Bruno Haible  <bruno@clisp.org>
8375
8376         Support old proprietary implementations of iconv.
8377         * modules/iconv_open: New file.
8378         * lib/iconv_.h: New file.
8379         * m4/iconv_h.m4: New file.
8380         * lib/iconv_open.c: New file.
8381         * lib/iconv_open-aix.gperf: New file.
8382         * lib/iconv_open-hpux.gperf: New file.
8383         * lib/iconv_open-irix.gperf: New file.
8384         * lib/iconv_open-osf.gperf: New file.
8385         * m4/iconv_open.m4: New file.
8386         * modules/linebreak (Depends-on): Add iconv_open.
8387         * modules/striconv (Depends-on): Likewise.
8388         * modules/striconveh (Depends-on): Likewise.
8389         * modules/unicodeio (Depends-on): Likewise.
8390         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
8391         (iconv_t)(-1).
8392         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
8393         conversion if cd is (iconv_t)(-1).
8394         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
8395         is not possible.
8396
8397 2007-03-31  Bruno Haible  <bruno@clisp.org>
8398
8399         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
8400         work on Solaris either. Protect also second use of "autodetect_jp".
8401
8402 2007-03-31  Bruno Haible  <bruno@clisp.org>
8403
8404         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
8405         the function is not present.
8406
8407 2007-03-31  Bruno Haible  <bruno@clisp.org>
8408
8409         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
8410         the function is not present.
8411
8412 2007-03-31  Bruno Haible  <bruno@clisp.org>
8413
8414         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
8415         a bug in HP-UX iconv_open().
8416
8417 2007-03-31  Bruno Haible  <bruno@clisp.org>
8418
8419         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
8420         (Mathematics <math.h>): New section, add fpieee.
8421         (Input/output <stdio.h>): Add fseterr.
8422         (Mathematics <math.h>): New section, add printf-frexp.
8423         (Container data structures): Add sublist.
8424         (Core language properties): Add fpucw, inline.
8425         (Functions for greatest-width integer types <inttypes.h>): Add
8426         imaxabs, imaxdiv, inttypes.
8427         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
8428         isnanl-nolibm, ldexp.
8429         (Mathematics <math.h>): New section, add printf-frexpl.
8430         (Support for systems lacking POSIX:2001): Add fprintf-posix,
8431         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
8432         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
8433         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
8434         (Unicode string functions): Add unistr/u*-mbtoucr.
8435         (Java): Add javacomp-script, javaexec-script.
8436         (C#): Add csharpcomp-script, csharpexec-script.
8437         (Support for building libraries and executables): Add havelib,
8438         relocatable-*.
8439         (Support for maintaining and releasing projects): Renamed from
8440         'Support for maintaining and release projects'. Add announce-gen.
8441
8442 2007-03-31  Bruno Haible  <bruno@clisp.org>
8443
8444         * README: Talk primarily about git.
8445         (git and CVS): Renamed from CVS.
8446         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
8447         gnulib is available through git.
8448         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
8449
8450 2007-03-30  Bruno Haible  <bruno@clisp.org>
8451
8452         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
8453         * lib/poll_.h: Likewise.
8454         * lib/stat_.h: Likewise.
8455         * lib/sys_time_.h: Likewise.
8456         * lib/sysexit_.h: Likewise.
8457         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
8458         * lib/stdbool_.h: Likewise.
8459         * lib/byteswap_.h: Add double-inclusion guard.
8460
8461 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
8462
8463         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
8464
8465 2007-03-30  Karl Berry  <karl@gnu.org>
8466
8467         * config/srclist-update: double space after USA in the license
8468         substitution, since that's how it's usually (?) written.
8469
8470 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
8471
8472         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
8473         reported by Bruno Haible.
8474
8475 2007-03-29  Bruno Haible  <bruno@clisp.org>
8476
8477         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
8478         a bug in AIX iconv().
8479
8480 2007-03-29  Bruno Haible  <bruno@clisp.org>
8481
8482         * modules/ldexpl-tests: New file.
8483         * tests/test-ldexpl.c: New file.
8484
8485 2007-03-29  Bruno Haible  <bruno@clisp.org>
8486
8487         * lib/ldexpl.c: Include fpucw.h.
8488         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
8489         multiplication.
8490         * modules/ldexpl (Depends-on): Add fpucw.
8491
8492 2007-03-29  Bruno Haible  <bruno@clisp.org>
8493
8494         * modules/ldexpl: New file.
8495         * m4/ldexpl.m4: New file.
8496         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
8497         set.
8498         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
8499         REPLACE_LDEXPL.
8500         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
8501         REPLACE_LDEXPL.
8502         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
8503         gl_FUNC_LDEXPL_WORKS.
8504         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
8505         * modules/mathl (Files): Remove lib/ldexpl.c.
8506         (Depends-on): Add ldexpl.
8507
8508 2007-03-29  Bruno Haible  <bruno@clisp.org>
8509
8510         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
8511
8512 2007-03-29  Bruno Haible  <bruno@clisp.org>
8513
8514         * tests/test-striconveh.c (main): Don't assume that a direct conversion
8515         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
8516         and possibly also HP-UX.
8517         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
8518         work on AIX, IRIX, HP-UX, OSF/1.
8519         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
8520         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
8521         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
8522         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
8523         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
8524         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
8525
8526 2007-03-29  Bruno Haible  <bruno@clisp.org>
8527
8528         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
8529
8530 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
8531
8532         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
8533         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
8534
8535 2007-03-29  Eric Blake  <ebb9@byu.net>
8536
8537         * lib/acl-internal.h: Remove redundant include.
8538         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
8539         Cygwin when a file is locked.
8540
8541 2007-03-29  Bruno Haible  <bruno@clisp.org>
8542
8543         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
8544         file.
8545         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
8546
8547 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
8548
8549         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
8550         try to remove a parent directory if the child couldn't be removed
8551         (except for the first rmdir, which could fail because the child
8552         doesn't exist).  Problem reported by Jeff Blaine in
8553         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
8554
8555 2007-03-28  Bruno Haible  <bruno@clisp.org>
8556
8557         * lib/striconveh.c (utf8conv_carefully): New function.
8558         (mem_cd_iconveh_internal): Invoke it.
8559
8560 2007-03-28  Bruno Haible  <bruno@clisp.org>
8561
8562         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
8563         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
8564         input.
8565         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
8566         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
8567         unistr/u8-uctomb.
8568
8569 2007-03-28  Bruno Haible  <bruno@clisp.org>
8570
8571         * modules/unistr/u8-mbtoucr: New file.
8572         * lib/unistr/u8-mbtoucr.c: New file.
8573         * modules/unistr/u16-mbtoucr: New file.
8574         * lib/unistr/u16-mbtoucr.c: New file.
8575         * modules/unistr/u16-mbtoucr: New file.
8576         * lib/unistr/u16-mbtoucr.c: New file.
8577         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
8578
8579 2007-03-27  Simon Josefsson  <simon@josefsson.org>
8580             Bruno Haible  <bruno@clisp.org>
8581
8582         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
8583         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
8584         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
8585
8586         * m4/stdio_h.m4: Add stubs for vasprintf too.
8587
8588         * modules/stdio: Support vasprintf in sed command.
8589
8590         * modules/vasprintf: Depend on stdio for prototypes.  Remove
8591         vasprintf.h.  Add stdio module indicator.
8592
8593         * lib/stdio_.h: Declare asprintf and vasprintf, based on
8594         vasprintf.h.
8595
8596         * lib/vasprintf.h: File removed.
8597
8598         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
8599         * lib/vasprintf.c: Ditto.
8600         * lib/xvasprintf.c: Ditto.
8601         * tests/test-vasprintf-posix.c: Ditto.
8602         * tests/test-vasprintf.c: Ditto.
8603
8604 2007-03-27  Bruno Haible  <bruno@clisp.org>
8605
8606         Make vasnprintf multithread-safe.
8607         * lib/vasnprintf.c (decimal_point_char): New function.
8608         (VASNPRINTF): Use it.
8609         Suggested by Simon Josefsson.
8610
8611 2007-03-27  Eric Blake  <ebb9@byu.net>
8612
8613         Support sub-second birthtime on cygwin.
8614         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
8615         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
8616         (get_stat_birthtime): Also work with st_birthtim.
8617
8618 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
8619
8620         * lib/stat-time.h (USE_BIRTHTIME): Remove.
8621         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
8622         (get_stat_birthtime_ns): Do not try to use "spare" fields.
8623         (get_stat_birthtime_ns): Simplify compile-time tests.
8624         (get_stat_birthtime): Change the API to look like
8625         get_stat_mtime etc., except return a negative tv_nsec on error.
8626         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
8627         Don't check for "spare" fields.
8628         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
8629         or for struct stat.st_birthtime, as these tests aren't used.
8630         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
8631
8632 2007-03-27  Bruno Haible  <bruno@clisp.org>
8633
8634         * lib/stat-time.h: Include <sys/stat.h>.
8635
8636 2007-03-27  James Youngman  <jay@gnu.org>
8637
8638         * lib/stat-time.h (get_stat_birthtime): New function for
8639           retrieving st_birthtime as provided by UFS2 (hence *BSD).
8640         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
8641           and its variants.
8642         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
8643         * modules/stat-time-test: New file.
8644         * tests/test-stat-time.c: New test, devised by Bruno Haible.
8645
8646 2007-03-26  Bruno Haible  <bruno@clisp.org>
8647
8648         Better support of signalling NaNs.
8649         * lib/atanl.c: Include isnanl.h.
8650         (atanl): Perform test for NaN at the beginning of the function and
8651         through a call to isnanl.
8652         * lib/cosl.c: Include isnanl.h.
8653         (cosl): Perform test for NaN at the beginning of the function and
8654         through a call to isnanl.
8655         * lib/ldexpl.c: Include isnanl.h.
8656         (ldexpl): Perform test for NaN through a call to isnanl.
8657         * lib/logl.c: Include isnanl.h.
8658         (logl): Perform test for NaN at the beginning of the function and
8659         through a call to isnanl.
8660         * lib/sinl.c: Include isnanl.h.
8661         (sinl): Perform test for NaN at the beginning of the function and
8662         through a call to isnanl.
8663         * lib/sqrtl.c: Include isnanl.h.
8664         (sqrtl): Perform test for NaN at the beginning of the function and
8665         through a call to isnanl.
8666         * lib/tanl.c: Include isnanl.h.
8667         (tanl): Perform test for NaN at the beginning of the function and
8668         through a call to isnanl.
8669         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
8670         * modules/mathl (Depends-on): Add isnanl.
8671
8672 2007-03-26  Eric Blake  <ebb9@byu.net>
8673
8674         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
8675         regression in logic sense of previous patch.
8676
8677 2007-03-26  Bruno Haible  <bruno@clisp.org>
8678
8679         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
8680         unportable shell command "if ! ...".
8681         Reported by Ralf Wildenhues.
8682
8683 2007-03-25  Bruno Haible  <bruno@clisp.org>
8684
8685         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
8686         <sysexits.h> file, and only add EX_CONFIG.
8687         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
8688         absolute file name and whether it is sufficient. Substitute also
8689         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
8690         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
8691         ABSOLUTE_SYSEXITS_H into sysexits.h.
8692
8693 2007-03-25  Bruno Haible  <bruno@clisp.org>
8694
8695         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
8696         hints is NULL.
8697
8698 2007-03-25  Bruno Haible  <bruno@clisp.org>
8699
8700         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
8701         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
8702
8703 2007-03-25  Bruno Haible  <bruno@clisp.org>
8704
8705         * lib/vasnprintf.c: Include langinfo.h.
8706         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
8707         multithread-safe.
8708         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
8709         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
8710         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
8711         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8712         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8713         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8714         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8715         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
8716         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8717         Reported by Simon Josefsson.
8718
8719 2007-03-25  Bruno Haible  <bruno@clisp.org>
8720
8721         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
8722         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
8723         * modules/vasnprintf (Depends-on): Add stdint.
8724
8725 2007-03-25  Bruno Haible  <bruno@clisp.org>
8726
8727         * modules/fpieee: New file.
8728         * m4/fpieee.m4: New file.
8729         * modules/isnan-nolibm (Depends-on): Add fpieee.
8730         * modules/isnanl-nolibm (Depends-on): Add fpieee.
8731         * modules/isnanl (Depends-on): Add fpieee.
8732
8733 2007-03-25  Bruno Haible  <bruno@clisp.org>
8734
8735         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
8736
8737 2007-03-25  Bruno Haible  <bruno@clisp.org>
8738
8739         Avoid test failures on IRIX 6.5.
8740         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
8741         (main): Use it.
8742         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
8743         macros.
8744         (main): Use them.
8745
8746 2007-03-25  Bruno Haible  <bruno@clisp.org>
8747
8748         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
8749         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
8750         exists but doesn't work.
8751         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
8752         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
8753         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
8754         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
8755
8756 2007-03-25  Bruno Haible  <bruno@clisp.org>
8757
8758         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
8759         returns inf. Needed on IRIX 6.5.
8760
8761 2007-03-25  Bruno Haible  <bruno@clisp.org>
8762
8763         * tests/test-frexpl.c: Include isnanl-nolibm.h.
8764         (main): Use isnanl instead of x != x idiom.
8765         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
8766
8767         * tests/test-frexp.c: Include isnan.h.
8768         (main): Use isnan instead of x != x idiom.
8769         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
8770
8771 2007-03-25  Bruno Haible  <bruno@clisp.org>
8772
8773         * tests/test-frexp.c (NaN): New function/macro.
8774         (main): Use it instead of 0.0 / 0.0.
8775         * tests/test-isnan.c (NaN): New function/macro.
8776         (main): Use it instead of 0.0 / 0.0.
8777         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
8778         (test_function): Use it instead of 0.0 / 0.0.
8779         * tests/test-vasprintf-posix.c (NaN): New function/macro.
8780         (test_function): Use it instead of 0.0 / 0.0.
8781         * tests/test-snprintf-posix.h (NaN): New function/macro.
8782         (test_function): Use it instead of 0.0 / 0.0.
8783         * tests/test-sprintf-posix.h (NaN): New function/macro.
8784         (test_function): Use it instead of 0.0 / 0.0.
8785         * tests/test-fprintf-posix.h (NaN): New function/macro.
8786         (test_function): Use it instead of 0.0 / 0.0.
8787         * tests/test-printf-posix.h (NaN): New function/macro.
8788         (test_function): Use it instead of 0.0 / 0.0.
8789
8790         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
8791
8792 2007-03-25  Bruno Haible  <bruno@clisp.org>
8793
8794         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
8795
8796 2007-03-25  Bruno Haible  <bruno@clisp.org>
8797
8798         * lib/regexec.c (merge_state_with_log): Make static.
8799
8800 2007-03-25  Bruno Haible  <bruno@clisp.org>
8801
8802         * lib/trigl.c (kernel_rem_pio2): Make static.
8803
8804 2007-03-25  Bruno Haible  <bruno@clisp.org>
8805
8806         * lib/sincosl.c (sincosl_table): Make static.
8807
8808 2007-03-25  Bruno Haible  <bruno@clisp.org>
8809
8810         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
8811         if the compiler does not support C99.
8812
8813 2007-03-25  Bruno Haible  <bruno@clisp.org>
8814
8815         * modules/time (Makefile.am): Ensure all rule action lines start with a
8816         tab.
8817
8818 2007-03-24  Bruno Haible  <bruno@clisp.org>
8819
8820         * modules/tsearch-tests: New file.
8821         * tests/test-tsearch.sh: New file.
8822         * tests/test-tsearch.c: New file, mostly copied from glibc.
8823
8824         * modules/search-tests: New file.
8825         * tests/test-search.c: New file.
8826
8827         * modules/search: New file.
8828         * lib/search_.h: New file, incorporating lib/tsearch.h.
8829         * m4/search_h.m4: New file.
8830         * lib/tsearch.h: Remove file.
8831         * lib/tsearch.c: Include search.h instead of tsearch.h.
8832         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
8833         HAVE_TSEARCH.
8834         * modules/tsearch (Files): Remove lib/tsearch.h.
8835         (Depends-on): Add search.
8836         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
8837         (Include): Change tsearch.h into search.h.
8838
8839 2007-03-24  Bruno Haible  <bruno@clisp.org>
8840
8841         * modules/fpucw: New file.
8842         * lib/fpucw.h: New file.
8843         * lib/frexp.c: Include fpucw.h.
8844         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
8845         (FUNC): Use them.
8846         * lib/printf-frexp.c: Include fpucw.h.
8847         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
8848         (FUNC): Use them.
8849         * lib/vasnprintf.c: Include fpucw.h.
8850         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
8851         'long double' calculations.
8852         * tests/test-frexpl.c: Include fpucw.h.
8853         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
8854         * tests/test-printf-frexpl.c: Include fpucw.h.
8855         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
8856         * modules/frexpl (Depends-on): Add fpucw.
8857         * modules/printf-frexpl (Depends-on): Likewise.
8858         * modules/fprintf-posix (Depends-on): Likewise.
8859         * modules/snprintf-posix (Depends-on): Likewise.
8860         * modules/sprintf-posix (Depends-on): Likewise.
8861         * modules/vasnprintf-posix (Depends-on): Likewise.
8862         * modules/vasprintf-posix (Depends-on): Likewise.
8863         * modules/vfprintf-posix (Depends-on): Likewise.
8864         * modules/vsnprintf-posix (Depends-on): Likewise.
8865         * modules/vsprintf-posix (Depends-on): Likewise.
8866         * modules/frexpl-tests (Depends-on): Likewise.
8867         * modules/printf-frexpl-tests (Depends-on): Likewise.
8868
8869 2007-03-24  Bruno Haible  <bruno@clisp.org>
8870
8871         * lib/float+.h: New file.
8872         * lib/isnan.c: Include float+.h.
8873         (SIZE): New macro.
8874         (FUNC): Compare only SIZE bytes of the value.
8875         * lib/vasnprintf.c: Include float+.h.
8876         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
8877         SIZEOF_LDBL or SIZEOF_DBL bytes.
8878         * modules/isnan-nolibm (Files): Add lib/float+.h.
8879         * modules/isnanl-nolibm (Files): Add lib/float+.h.
8880         * modules/isnanl (Files): Add lib/float+.h.
8881         * modules/vasnprintf (Files): Add lib/float+.h.
8882
8883 2007-03-24  Bruno Haible  <bruno@clisp.org>
8884
8885         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
8886         include isnanl-nolibm.h.
8887
8888 2007-03-24  Bruno Haible  <bruno@clisp.org>
8889
8890         * tests/test-read-file.c (main): Don't produce spurious output for
8891         expected situations. Make the test fail if it encountered unexpected
8892         results.
8893
8894 2007-03-24  Bruno Haible  <bruno@clisp.org>
8895
8896         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
8897         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
8898
8899 2007-03-24  Bruno Haible  <bruno@clisp.org>
8900
8901         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
8902
8903 2007-03-24  Bruno Haible  <bruno@clisp.org>
8904
8905         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
8906         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
8907
8908         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
8909         * modules/utf8-ucs4: Turn into a symbolic link to module
8910         unistr/u8-mbtouc.
8911
8912         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
8913         utf8-ucs4-unsafe.
8914         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
8915         unistr/u8-mbtouc-unsafe.
8916
8917         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
8918         * modules/utf16-ucs4: Turn into a symbolic link to module
8919         unistr/u16-mbtouc.
8920
8921         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
8922         utf16-ucs4-unsafe.
8923         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
8924         unistr/u16-mbtouc-unsafe.
8925
8926         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
8927         * modules/ucs4-utf8: Turn into a symbolic link to module
8928         unistr/u8-ubtomb.
8929
8930         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
8931         * modules/ucs4-utf16: Turn into a symbolic link to module
8932         unistr/u16-ubtomb.
8933
8934 2007-03-24  Bruno Haible  <bruno@clisp.org>
8935
8936         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
8937         Enable the function only if HAVE_INLINE.
8938         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
8939         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
8940         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
8941         Enable the function only if HAVE_INLINE.
8942         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
8943         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
8944         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
8945         Enable the function only if HAVE_INLINE.
8946         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
8947         Enable the function only if HAVE_INLINE.
8948         * modules/utf8-ucs4: Update.
8949         * modules/utf8-ucs4-unsafe: Update.
8950         * modules/utf16-ucs4: Update.
8951         * modules/utf16-ucs4-unsafe: Update.
8952         * modules/ucs4-utf8: Update.
8953         * modules/ucs4-utf16: Update.
8954
8955 2007-03-24  Bruno Haible  <bruno@clisp.org>
8956
8957         * lib/utf8-ucs4.h: Remove file.
8958         * lib/utf8-ucs4-unsafe.h: Remove file.
8959         * lib/utf16-ucs4.h: Remove file.
8960         * lib/utf16-ucs4-unsafe.h: Remove file.
8961         * lib/ucs4-utf8.h: Remove file.
8962         * lib/ucs4-utf16.h: Remove file.
8963         * lib/unistr.h: Include their previous contents.
8964         * m4/utf-ucs4.m4: Remove file.
8965         * m4/ucs4-utf.m4: Remove file.
8966         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
8967         (Depends-on): Add unistr/base.
8968         (configure.ac): Remove gl_UTF_UCS4.
8969         (Makefile.am): Update.
8970         (Include): Change to unistr.h.
8971         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
8972         (Depends-on): Add unistr/base.
8973         (configure.ac): Remove gl_UTF_UCS4.
8974         (Makefile.am): Update.
8975         (Include): Change to unistr.h.
8976         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
8977         (Depends-on): Add unistr/base.
8978         (configure.ac): Remove gl_UTF_UCS4.
8979         (Makefile.am): Update.
8980         (Include): Change to unistr.h.
8981         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
8982         (Depends-on): Add unistr/base.
8983         (configure.ac): Remove gl_UTF_UCS4.
8984         (Makefile.am): Update.
8985         (Include): Change to unistr.h.
8986         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
8987         (Depends-on): Add unistr/base.
8988         (configure.ac): Remove gl_UCS4_UTF.
8989         (Makefile.am): Update.
8990         (Include): Change to unistr.h.
8991         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
8992         (Depends-on): Add unistr/base.
8993         (configure.ac): Remove gl_UCS4_UTF.
8994         (Makefile.am): Update.
8995         (Include): Change to unistr.h.
8996         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
8997         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
8998         utf8-ucs4-unsafe.h.
8999         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
9000         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
9001         utf16-ucs4-unsafe.h.
9002         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
9003         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
9004         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
9005         * lib/unistr/u8-strchr.c: Likewise.
9006         * lib/unistr/u8-strrchr.c: Likewise.
9007         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
9008         * lib/unistr/u16-strchr.c: Likewise.
9009         * lib/unistr/u16-strrchr.c: Likewise.
9010         * lib/striconveh.c: Update.
9011         * lib/linebreak.c: Update.
9012
9013 2007-03-24  Bruno Haible  <bruno@clisp.org>
9014
9015         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
9016         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
9017
9018 2007-03-22  Bruno Haible  <bruno@clisp.org>
9019
9020         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
9021
9022 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
9023
9024         * MODULES.html.sh (File system functions): New module write-any-file.
9025         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
9026         * m4/write-any-file.m4: New files.
9027
9028 2007-03-23  Eric Blake  <ebb9@byu.net>
9029
9030         * gnulib-tool: Rearrange space-tab sequences, since some editors
9031         like to eat them.
9032
9033 2007-03-23  Eric Blake  <ebb9@byu.net>
9034
9035         * lib/version-etc.c (version_etc_va): Update license wording to
9036         be more concise.  Recommended by Richard Stallman.
9037
9038 2007-03-22  Bruno Haible  <bruno@clisp.org>
9039
9040         * lib/poll.c (MSG_PEEK): New fallback definition.
9041
9042 2007-03-22  Bruno Haible  <bruno@clisp.org>
9043
9044         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
9045         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
9046         (main): Update.
9047         Fixes a compilation error on BeOS.
9048
9049 2007-03-22  Bruno Haible  <bruno@clisp.org>
9050
9051         * modules/frexpl-tests: New file.
9052         * tests/test-frexpl.c: New file.
9053
9054         * modules/frexpl: New file.
9055         * m4/frexpl.m4: New file.
9056         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
9057         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
9058         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
9059         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
9060         (Depends-on): Add frexpl. Remove isnanl-nolibm.
9061         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
9062
9063 2007-03-22  Bruno Haible  <bruno@clisp.org>
9064
9065         * lib/frexpl.c: Share code with lib/frexp.c.
9066         * modules/mathl (Files): Add lib/frexp.c.
9067         (Depends-on): Add isnanl-nolibm.
9068
9069 2007-03-22  Bruno Haible  <bruno@clisp.org>
9070
9071         * modules/printf-frexp (Files): Add m4/frexp.m4.
9072         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
9073         only if the found frexp function actually works.
9074
9075 2007-03-22  Bruno Haible  <bruno@clisp.org>
9076
9077         * lib/frexp.c: Remove older implementation that uses divisions.
9078
9079 2007-03-21  Bruno Haible  <bruno@clisp.org>
9080
9081         * modules/frexp-tests: New file.
9082         * tests/test-frexp.c: New file.
9083
9084         * modules/frexp: New file.
9085         * lib/frexp.c: New file.
9086         * m4/frexp.m4: New file.
9087         * lib/math_.h (frexp): New declaration.
9088         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
9089         REPLACE_FREXP.
9090         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
9091
9092 2007-03-21  Bruno Haible  <bruno@clisp.org>
9093
9094         * modules/isnanl-tests: New file.
9095         * tests/test-isnanl.c: New file.
9096
9097         * modules/isnanl: New file.
9098         * lib/isnanl.h: New file.
9099         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
9100         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
9101         gl_FUNC_ISNANL_WORKS.
9102         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
9103         New macros.
9104
9105 2007-03-21  Bruno Haible  <bruno@clisp.org>
9106
9107         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
9108         lib/isnanl.h.
9109         (Include): Update.
9110         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
9111         * lib/vasnprintf.c: Update.
9112         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
9113         tests/test-isnanl.h, remove tests/test-isnanl.c.
9114         (Makefile.am): Update.
9115         * tests/test-isnanl-nolibm.c: New file.
9116         * tests/test-isnanl.h: New file.
9117         * tests/test-isnanl.c: Remove file.
9118
9119 2007-03-21  Jim Meyering  <jim@meyering.net>
9120
9121         When trying to open ".", treat ESTALE like EACCES.
9122         * lib/savewd.c (savewd_save): Resort to forking not just upon
9123         failure with EACCES, but also when errno is ESTALE.
9124
9125 2007-03-20  Bruno Haible  <bruno@clisp.org>
9126
9127         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
9128         Needed on AIX 5.1. Reported by Matthew Woehlke.
9129
9130 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9131
9132         Suggestions by Bruno Haible:
9133         * lib/acl-internal.h: Include "gettext.h" rather than rolling
9134         our own.
9135         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
9136         * modules/acl (Depends-on): Add gettext.
9137
9138 2007-03-19  Bruno Haible  <bruno@clisp.org>
9139
9140         * modules/iconvme: Remove file.
9141         * lib/iconvme.h: Remove file.
9142         * lib/iconvme.c: Remove file.
9143         * m4/iconvme.m4: Remove file.
9144
9145 2007-03-19  Bruno Haible  <bruno@clisp.org>
9146
9147         * doc/relocatable-maint.texi: Break long shell script line.
9148         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
9149
9150 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9151
9152         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
9153         handle file_has_acl.
9154         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
9155         * lib/acl.c: Move header inclusions and related macro defns into
9156         lib/acl-internal.h.
9157         (S_ISLNK): Remove defn, since that's now done for us.
9158         (file_has_acl): Move to lib/file-has-acl.c.
9159         Call acl_trivial if available.  This is the crucial part of the fix.
9160         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
9161         shared within the library.  Rewrite a bit, partly to make it compatible
9162         with the GNU coding style.
9163         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
9164         Remove unnecessary double-quotes.
9165         Don't test for acl_to_text; the build will catch that.
9166         Replace acl_entries if it doesn't exist and it is needed.
9167         Check for -lsec and acl_trivial (as used on Solaris 10).
9168         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
9169         lib/file-has-acl.c.
9170         (Depends-on): Add sys_stat, for S_ISLNK.
9171
9172 2007-03-19  Ben Pfaff  <blp@gnu.org>
9173
9174         * doc/gnulib.texi: Fix typos.
9175         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
9176
9177 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9178
9179         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
9180         If size is zero here, buf must be zero.
9181
9182 2007-03-19  Simon Josefsson  <simon@josefsson.org>
9183
9184         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
9185         <bruno@clisp.org>.
9186
9187 2007-03-18  Bruno Haible  <bruno@clisp.org>
9188
9189         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
9190         Suggested by Eric Blake.
9191
9192 2007-03-18  Ben Pfaff  <blp@gnu.org>
9193
9194         * doc/relocatable.texi: Recommend using as prefix a directory
9195         that does not exist and will never be created.  Based on
9196         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
9197         and others.
9198
9199 2007-03-17  Bruno Haible  <bruno@clisp.org>
9200
9201         * lib/fchownat.c: Include lchown.h.
9202
9203 2007-03-17  Bruno Haible  <bruno@clisp.org>
9204
9205         Fix endless loop when the given allocated size was > INT_MAX.
9206         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
9207         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
9208         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
9209         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
9210         * lib/sprintf.c (sprintf): Likewise.
9211
9212 2007-03-17  Bruno Haible  <bruno@clisp.org>
9213
9214         * tests/test-argp-2.sh (func_compare): Output a context diff.
9215
9216 2007-03-17  Bruno Haible  <bruno@clisp.org>
9217
9218         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
9219         locale's decimal-point character.
9220
9221 2007-03-17  Bruno Haible  <bruno@clisp.org>
9222
9223         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
9224         before comparing it. Needed because on some platforms (e.g. x86) a
9225         'long double' occupies less bytes than sizeof (long double).
9226
9227 2007-03-17  Bruno Haible  <bruno@clisp.org>
9228
9229         * tests/test-crc.c (main): Make printf statements 64-bit clean.
9230         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
9231         * tests/test-getaddrinfo.c (simple): Likewise.
9232         * tests/test-read-file.c (main): Likewise.
9233
9234 2007-03-17  Bruno Haible  <bruno@clisp.org>
9235
9236         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
9237
9238 2007-03-17  Bruno Haible  <bruno@clisp.org>
9239
9240         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
9241         unused variable.
9242
9243 2007-03-17  Bruno Haible  <bruno@clisp.org>
9244
9245         * tests/test-c-strcasecmp.c: Include c-strcase.h.
9246         * tests/test-c-strncasecmp.c: Likewise.
9247
9248 2007-03-17  Bruno Haible  <bruno@clisp.org>
9249
9250         * modules/stdlib (Depends-on): Add unistd.
9251         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
9252         Needed for MacOS X 10.3.
9253
9254 2007-03-17  Bruno Haible  <bruno@clisp.org>
9255
9256         * lib/unistr/u-strdup.h: Include <stdlib.h>.
9257
9258 2007-03-17  Bruno Haible  <bruno@clisp.org>
9259
9260         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
9261
9262 2007-03-17  Bruno Haible  <bruno@clisp.org>
9263
9264         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
9265         to reflect files copied from gnulib (with or without modifications).
9266         Suggested by Jim Meyering.
9267
9268 2007-03-17  Eric Blake  <ebb9@byu.net>
9269
9270         * NEWS: Document stdlib change from 2007-02-18.
9271
9272 2007-03-17  Jim Meyering  <jim@meyering.net>
9273
9274         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
9275         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
9276         someone uses a name containing shell meta-characters.
9277         Reported by Alfred M. Szmidt.
9278
9279         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
9280
9281 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
9282
9283         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
9284         and copy gettext configuration files only if configure.ac contains
9285         a use of AM_GNU_GETTEXT_VERSION.
9286
9287 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
9288
9289         * build-aux/bootstrap (gnulib_name): New variable.
9290         (gnulib_tool_options): Use it.
9291
9292 2007-03-13  Simon Josefsson  <simon@josefsson.org>
9293
9294         * tests/test-des.c: Use new namespace.
9295
9296 2007-03-15  Bruno Haible  <bruno@clisp.org>
9297
9298         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
9299         Reported by James Youngman <jay@gnu.org>.
9300
9301 2007-03-15  Bruno Haible  <bruno@clisp.org>
9302
9303         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
9304         declared prototype. Needed with cc on OSF/1 5.1.
9305
9306 2007-03-15  Bruno Haible  <bruno@clisp.org>
9307
9308         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
9309         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
9310         (struct gl_list_implementation): Add dispose_fn argument to the
9311         'create_empty', 'create' methods.
9312         (struct gl_list_impl_base): Add field 'dispose_fn'.
9313         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
9314         argument.
9315         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
9316         dispose_fn argument.
9317         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
9318         dispose_fn on the dropped values.
9319         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
9320         dispose_fn argument.
9321         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
9322         dropped values.
9323         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
9324         (gl_tree_remove_node): Call dispose_fn on the dropped value.
9325         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
9326         (gl_tree_remove_node): Call dispose_fn on the dropped value.
9327         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
9328         argument.
9329         (gl_tree_list_free): Call dispose_fn on the dropped values.
9330         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
9331         the dropped values.
9332         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
9333         Add dispose_fn argument.
9334         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
9335         Call dispose_fn on the dropped values.
9336         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
9337         Add dispose_fn argument.
9338         (gl_sublist_create): Initialize the 'dispose_fn' field.
9339         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
9340         * tests/test-array_list.c (main): Update.
9341         * tests/test-carray_list.c (main): Update.
9342         * tests/test-avltree_list.c (main): Update.
9343         * tests/test-rbtree_list.c (main): Update.
9344         * tests/test-avltreehash_list.c (main): Update.
9345         * tests/test-rbtreehash_list.c (main): Update.
9346         * tests/test-linked_list.c (main): Update.
9347         * tests/test-linkedhash_list.c (main): Update.
9348         * tests/test-array_oset.c (main): Update.
9349
9350 2007-03-15  Bruno Haible  <bruno@clisp.org>
9351
9352         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
9353         (gl_oset_create_empty): Add dispose_fn argument.
9354         (struct gl_oset_implementation): Add dispose_fn argument to
9355         'create_empty' method.
9356         (struct gl_oset_impl_base): Add dispose_fn field.
9357         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
9358         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
9359         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
9360         values.
9361         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
9362         (gl_tree_oset_free): Call dispose_fn on the dropped values.
9363         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
9364         dropped value.
9365         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
9366         dropped value.
9367         * tests/test-array_oset.c (main): Update.
9368         * tests/test-avltree_oset.c (main): Update.
9369         * tests/test-rbtree_oset.c (main): Update.
9370         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
9371
9372 2007-03-13  Bruno Haible  <bruno@clisp.org>
9373
9374         * tests/test-stdbool.c (i): Update after last patch.
9375
9376 2007-03-12  Bruno Haible  <bruno@clisp.org>
9377
9378         * lib/quotearg.c: Include <wctype.h> early, before the definition of
9379         the iswprint macro. Needed on Solaris 2.5.1.
9380
9381 2007-03-12  Bruno Haible  <bruno@clisp.org>
9382
9383         * tests/test-printf-frexp.c (main): Declare x as volatile.
9384
9385 2007-03-12  Simon Josefsson  <simon@josefsson.org>
9386
9387         * doc/gnulib.texi (Build robot for gnulib): New section.
9388
9389 2007-03-12  Jim Meyering  <jim@meyering.net>
9390
9391         * build-aux/bootstrap: New file.
9392         * build-aux/bootstrap.conf: New file, from coreutils.
9393
9394 2007-03-11  Bruno Haible  <bruno@clisp.org>
9395
9396         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
9397
9398 2007-03-12  Simon Josefsson  <simon@josefsson.org>
9399
9400         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
9401         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
9402         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
9403
9404 2007-03-11  Bruno Haible  <bruno@clisp.org>
9405
9406         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
9407         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
9408
9409 2007-03-11  Bruno Haible  <bruno@clisp.org>
9410
9411         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
9412         formula. Needed for SunPRO C 5.0.
9413
9414 2007-03-11  Bruno Haible  <bruno@clisp.org>
9415
9416         * modules/long-options (Depends-on): Add getopt.
9417
9418 2007-03-11  Bruno Haible  <bruno@clisp.org>
9419
9420         * modules/modechange (Depends-on): Add stdbool.
9421
9422 2007-03-11  Bruno Haible  <bruno@clisp.org>
9423
9424         * modules/i-ring (Depends-on): Add stdbool.
9425
9426 2007-03-11  Bruno Haible  <bruno@clisp.org>
9427
9428         * modules/gc-des (Depends-on): Add stdbool.
9429
9430 2007-03-11  Bruno Haible  <bruno@clisp.org>
9431
9432         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
9433
9434 2007-03-11  Bruno Haible  <bruno@clisp.org>
9435
9436         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
9437
9438 2007-03-11  Bruno Haible  <bruno@clisp.org>
9439
9440         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
9441
9442 2007-03-11  Bruno Haible  <bruno@clisp.org>
9443
9444         * lib/vasnprintf.c (sprintf): Undefine.
9445
9446 2007-03-11  Bruno Haible  <bruno@clisp.org>
9447
9448         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
9449         initializers in SunPRO C and Compaq C compilers.
9450
9451 2007-03-11  Bruno Haible  <bruno@clisp.org>
9452
9453         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
9454         decrementing code ANSI C compliant.
9455
9456 2007-03-11  Bruno Haible  <bruno@clisp.org>
9457
9458         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
9459         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
9460
9461 2007-03-11  Bruno Haible  <bruno@clisp.org>
9462
9463         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
9464         <stdbool.h> substitute doesn't pass.
9465
9466 2007-03-11  Bruno Haible  <bruno@clisp.org>
9467
9468         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
9469
9470 2007-03-11  Bruno Haible  <bruno@clisp.org>
9471
9472         * gnulib-tool (func_create_megatestdir): Create also an autobuild
9473         script, for submission to autobuild.josefsson.org.
9474
9475 2007-03-10  Bruno Haible  <bruno@clisp.org>
9476
9477         * modules/canonicalize-lgpl-tests: New file.
9478         * tests/test-canonicalize-lgpl.sh: New file.
9479         * tests/test-canonicalize-lgpl.c: New file.
9480
9481         * modules/c-strcase-tests: New file.
9482         * tests/test-c-strcase.sh: New file.
9483         * tests/test-c-strcasecmp.c: New file.
9484         * tests/test-c-strncasecmp.c: New file.
9485
9486         * modules/atexit-tests: New file.
9487         * tests/test-atexit.sh: New file.
9488         * tests/test-atexit.c: New file.
9489
9490 2007-03-10  Bruno Haible  <bruno@clisp.org>
9491
9492         * tests/test-binary-io.sh: Use temporary filenames that are not so
9493         likely to clash with those of other tests (in a parallel make).
9494         * tests/test-binary-io.c: Likewise.
9495
9496 2007-03-10  Bruno Haible  <bruno@clisp.org>
9497
9498         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
9499         fallback; use #error instead.
9500         Suggested by Simon Josefsson.
9501
9502 2007-03-10  Bruno Haible  <bruno@clisp.org>
9503
9504         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
9505         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
9506         first and the last.
9507
9508 2007-03-10  Bruno Haible  <bruno@clisp.org>
9509
9510         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
9511
9512 2007-03-10  Bruno Haible  <bruno@clisp.org>
9513
9514         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
9515         "make distcheck".
9516         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
9517         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
9518         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
9519
9520 2007-03-10  Bruno Haible  <bruno@clisp.org>
9521
9522         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
9523         variable.
9524         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
9525         variable.
9526
9527 2007-03-09  Eric Blake  <ebb9@byu.net>
9528         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
9529
9530         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
9531         types are not being provided by gnulib.
9532         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
9533         types are supported.
9534
9535 2007-03-10  Bruno Haible  <bruno@clisp.org>
9536
9537         * lib/stdio_.h (__attribute__): New macro.
9538         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
9539         vsprintf): Specify __attribute__ __format__ for GCC.
9540         Suggested by Eric Blake.
9541
9542 2007-03-09  Bruno Haible  <bruno@clisp.org>
9543
9544         * modules/printf-posix-tests: New file.
9545         * tests/test-printf-posix.sh: New file.
9546         * tests/test-printf-posix.c: New file.
9547
9548         * modules/printf-posix: New file.
9549         * lib/printf.c: New file.
9550         * m4/printf-posix-rpl.m4: New file.
9551         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
9552         REPLACE_PRINTF.
9553         * lib/stdio_.h (printf): New declaration.
9554         (format, __format__, ____printf____, ____scanf____, ____strftime____,
9555         ____strfmon____): New macros.
9556         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
9557         REPLACE_PRINTF.
9558
9559 2007-03-09  Bruno Haible  <bruno@clisp.org>
9560
9561         * tests/test-vasnprintf-posix2.sh: New file.
9562         * tests/test-vasnprintf-posix2.c: New file.
9563         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
9564         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
9565         (Makefile.am): Activate test-vasnprintf-posix2.sh.
9566
9567         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
9568         a locale dependent decimal point, rather than always '.'.
9569
9570 2007-03-09  Eric Blake  <ebb9@byu.net>
9571
9572         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
9573         spite of platforms like Tandem/NSK that define it to -1.
9574
9575 2007-03-08  Bruno Haible  <bruno@clisp.org>
9576
9577         * modules/vprintf-posix-tests: New file.
9578         * tests/test-vprintf-posix.sh: New file.
9579         * tests/test-vprintf-posix.c: New file.
9580         * tests/test-printf-posix.h: New file.
9581
9582         * modules/vprintf-posix: New file.
9583         * lib/vprintf.c: New file.
9584         * m4/vprintf-posix.m4: New file.
9585         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
9586         REPLACE_VPRINTF.
9587         * lib/stdio_.h (vprintf): New declaration.
9588         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
9589         REPLACE_VPRINTF.
9590
9591 2007-03-08  Bruno Haible  <bruno@clisp.org>
9592
9593         * modules/fprintf-posix-tests: New file.
9594         * tests/test-fprintf-posix.sh: New file.
9595         * tests/test-fprintf-posix.c: New file.
9596
9597         * modules/fprintf-posix: New file.
9598         * lib/fprintf.c: New file.
9599         * m4/fprintf-posix.m4: New file.
9600         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
9601         REPLACE_FPRINTF.
9602         * lib/stdio_.h (fprintf): New declaration.
9603         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
9604         REPLACE_FPRINTF.
9605
9606 2007-03-08  Bruno Haible  <bruno@clisp.org>
9607
9608         * modules/vfprintf-posix-tests: New file.
9609         * tests/test-vfprintf-posix.sh: New file.
9610         * tests/test-vfprintf-posix.c: New file.
9611         * tests/test-fprintf-posix.h: New file.
9612         * tests/test-fprintf-posix.out: New file.
9613
9614         * modules/vfprintf-posix: New file.
9615         * lib/vfprintf.c: New file.
9616         * m4/vfprintf-posix.m4: New file.
9617         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
9618         REPLACE_VFPRINTF.
9619         * lib/stdio_.h (vfprintf): New declaration.
9620         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
9621         REPLACE_VFPRINTF.
9622
9623 2007-03-08  Bruno Haible  <bruno@clisp.org>
9624
9625         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
9626
9627 2007-03-08  Bruno Haible  <bruno@clisp.org>
9628
9629         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
9630         instead of 'expr' invocations.
9631         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9632         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9633         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9634         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9635         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9636         Suggested by Paul Eggert.
9637
9638 2007-03-08  Bruno Haible  <bruno@clisp.org>
9639
9640         * modules/fseterr-tests: New file.
9641         * tests/test-fseterr.c: New file.
9642
9643         * modules/fseterr: New file.
9644         * lib/fseterr.h: New file.
9645         * lib/fseterr.c: New file.
9646
9647 2007-03-08  Bruno Haible  <bruno@clisp.org>
9648
9649         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
9650         * lib/getopt_.h: Likewise.
9651         * lib/mbswidth.h: Likewise.
9652         * lib/setenv.h: Likewise.
9653         * lib/vasnprintf.h: Likewise.
9654         * lib/vasprintf.h: Likewise.
9655         * lib/verror.h: Likewise.
9656         * lib/xsetenv.h: Likewise.
9657         * lib/xvasprintf.h: Likewise.
9658
9659 2007-03-08  Jim Meyering  <jim@meyering.net>
9660
9661         * users.txt: Add parted.
9662
9663         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
9664
9665 2007-03-07  Bruno Haible  <bruno@clisp.org>
9666
9667         * m4/printf.m4: Make the shell script snippets copy&pastable.
9668
9669 2007-03-02  Bruno Haible  <bruno@clisp.org>
9670
9671         * lib/netinet_in_.h: New file.
9672         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
9673         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
9674         * modules/netinet_in (Files): Add lib/netinet_in_.h.
9675         (Depends-on): Add absolute-header.
9676         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
9677         into netinet/in.h.
9678
9679 2007-03-03  Bruno Haible  <bruno@clisp.org>
9680
9681         * lib/sys_select_.h: New file.
9682         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
9683         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
9684         * modules/sys_select (Files): Add lib/sys_select_.h.
9685         (Depends-on): Add absolute-header.
9686         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
9687         into sys/select.h.
9688
9689 2007-03-02  Bruno Haible  <bruno@clisp.org>
9690
9691         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
9692         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
9693         values.
9694         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
9695         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
9696         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
9697         * modules/sys_socket (Depends-on): Add absolute-header.
9698         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
9699         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
9700         (Include): Remove requirement of inclusion of <sys/types.h>.
9701
9702 2007-03-02  Bruno Haible  <bruno@clisp.org>
9703
9704         * lib/byteswap_.h (bswap_32): Fix formula.
9705
9706 2007-03-06  Bruno Haible  <bruno@clisp.org>
9707
9708         * modules/sprintf-posix-tests: New file.
9709         * tests/test-sprintf-posix.c: New file.
9710
9711         * modules/sprintf-posix: New file.
9712         * lib/sprintf.c: New file.
9713         * m4/sprintf-posix.m4: New file.
9714         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
9715         REPLACE_SPRINTF.
9716         * lib/stdio_.h (sprintf): New declaration.
9717         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
9718         REPLACE_SPRINTF.
9719
9720 2007-03-06  Bruno Haible  <bruno@clisp.org>
9721
9722         * modules/vsprintf-posix-tests: New file.
9723         * tests/test-vsprintf-posix.c: New file.
9724         * tests/test-sprintf-posix.h: New file.
9725
9726         * modules/vsprintf-posix: New file.
9727         * lib/vsprintf.c: New file.
9728         * m4/vsprintf-posix.m4: New file.
9729         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
9730         REPLACE_VSPRINTF.
9731         * lib/stdio_.h (vsprintf): New declaration.
9732         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
9733         REPLACE_VSPRINTF.
9734
9735 2007-03-06  Bruno Haible  <bruno@clisp.org>
9736
9737         * modules/vsnprintf (Depend-on): Remove minmax.
9738
9739 2007-03-06  Bruno Haible  <bruno@clisp.org>
9740
9741         * modules/snprintf-posix-tests: New file.
9742         * tests/test-snprintf-posix.c: New file.
9743
9744         * modules/snprintf-posix: New file.
9745         * m4/snprintf-posix.m4: New file.
9746         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
9747         gl_FUNC_SNPRINTF.
9748         (gl_FUNC_SNPRINTF): Invoke it.
9749         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
9750         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
9751         is set.
9752         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
9753
9754 2007-03-06  Bruno Haible  <bruno@clisp.org>
9755
9756         * modules/vsnprintf-posix-tests: New file.
9757         * tests/test-vsnprintf-posix.c: New file.
9758         * tests/test-snprintf-posix.h: New file.
9759
9760         * modules/vsnprintf-posix: New file.
9761         * m4/vsnprintf-posix.m4: New file.
9762         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
9763         gl_FUNC_VSNPRINTF.
9764         (gl_FUNC_VSNPRINTF): Invoke it.
9765         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
9766         * lib/stdio_.h (vsnprintf): Define as a replacement if
9767         REPLACE_VSNPRINTF is set.
9768         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
9769
9770 2007-03-06  Bruno Haible  <bruno@clisp.org>
9771
9772         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
9773         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
9774
9775 2007-03-06  Bruno Haible  <bruno@clisp.org>
9776
9777         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
9778         (asinl): Declare also if HAVE_DECL_ASINL is set.
9779         (atanl): Declare also if HAVE_DECL_ATANL is set.
9780         (ceill): Declare also if HAVE_DECL_CEILL is set.
9781         (cosl): Declare also if HAVE_DECL_COSL is set.
9782         (expl): Declare also if HAVE_DECL_EXPL is set.
9783         (floorl): Declare also if HAVE_DECL_FLOORL is set.
9784         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
9785         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
9786         (logl): Declare also if HAVE_DECL_LOGL is set.
9787         (sinl): Declare also if HAVE_DECL_SINL is set.
9788         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
9789         (tanl): Declare also if HAVE_DECL_TANL is set.
9790         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
9791         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
9792         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
9793         declaration of frexpl, ldexpl.
9794         * modules/printf-frexpl (Depends-on): Add math.
9795         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
9796
9797 2007-03-05  Bruno Haible  <bruno@clisp.org>
9798
9799         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
9800         frexpl and ldexpl are declared.
9801         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
9802
9803 2007-03-05  Bruno Haible  <bruno@clisp.org>
9804
9805         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
9806         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
9807
9808 2007-03-05  Bruno Haible  <bruno@clisp.org>
9809
9810         * lib/stdio_.h: Include <stddef.h>.
9811
9812 2007-03-05  Bruno Haible  <bruno@clisp.org>
9813
9814         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
9815
9816 2007-03-05  Bruno Haible  <bruno@clisp.org>
9817
9818         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
9819         NetBSD 4, from Ralf Wildenhues.
9820
9821 2007-03-04  Bruno Haible  <bruno@clisp.org>
9822
9823         * lib/vasprintf.h: Update #if logic for the case when the functions
9824         exist but are overridden.
9825
9826 2007-03-04  Bruno Haible  <bruno@clisp.org>
9827
9828         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
9829         implementations: glibc-2.4 and MacOS X 10.3.
9830         * tests/test-vasnprintf-posix.c (test_function): Test also the case
9831         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
9832         * tests/test-vasprintf-posix.c (test_function): Likewise.
9833
9834 2007-03-04  Bruno Haible  <bruno@clisp.org>
9835
9836         * modules/vasprintf-posix-tests: New file.
9837         * tests/test-vasprintf-posix.c: New file.
9838
9839         * modules/vasprintf-posix: New file.
9840         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
9841         defined.
9842         * m4/vasprintf-posix.m4: New file.
9843         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
9844         gl_FUNC_VASPRINTF.
9845         (gl_FUNC_VASPRINTF): Invoke it.
9846         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
9847         here.
9848         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
9849
9850 2007-03-04  Bruno Haible  <bruno@clisp.org>
9851
9852         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
9853         REPLACE_GETTIMEOFDAY.
9854         * modules/sys_time (Makefile.am): Likewise.
9855         * m4/sys_time_h.m4: Likewise.
9856         * m4/gettimeofday.m4: Likewise.
9857
9858 2007-03-04  Bruno Haible  <bruno@clisp.org>
9859
9860         * modules/vasnprintf-posix-tests: New file.
9861         * tests/test-vasnprintf-posix.c: New file.
9862
9863         * modules/vasnprintf-posix: New file.
9864         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
9865         printf-frexpl.h.
9866         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
9867         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
9868         REPLACE_VASNPRINTF is defined.
9869         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
9870         gl_FUNC_VASNPRINTF.
9871         (gl_FUNC_VASNPRINTF): Invoke it.
9872         * m4/vasnprintf-posix.m4: New file.
9873         * m4/printf.m4: New file.
9874
9875 2007-03-04  Bruno Haible  <bruno@clisp.org>
9876
9877         Compile progreloc.c only if --enable-relocatable is specified.
9878         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
9879         if --enable-relocatable was specified.
9880         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
9881         lib_SOURCES.
9882
9883 2007-03-04  Jim Meyering  <jim@meyering.net>
9884
9885         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
9886         Use it consistently, rather than enumerating errno constants.
9887
9888 2007-03-04  Bruno Haible  <bruno@clisp.org>
9889
9890         * modules/xvasprintf-tests: New file.
9891         * tests/test-xvasprintf.c: New file.
9892
9893         * modules/vasprintf-tests: New file.
9894         * tests/test-vasprintf.c: New file.
9895
9896         * modules/vasnprintf-tests: New file.
9897         * tests/test-vasnprintf.c: New file.
9898
9899         * modules/vsnprintf-tests: New file.
9900         * tests/test-vsnprintf.c: New file.
9901
9902         * modules/snprintf-tests: New file.
9903         * tests/test-snprintf.c: New file.
9904
9905 2007-03-04  Bruno Haible  <bruno@clisp.org>
9906
9907         Compile relocatable.c only if --enable-relocatable is specified.
9908         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
9909         gl_RELOCATABLE_LIBRARY.
9910         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
9911         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
9912         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
9913         gl_RELOCATABLE_LIBRARY.
9914         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
9915         (Makefile.am): Remove lib_SOURCES.
9916         * modules/relocatable-lib-lgpl (configure.ac): Invoke
9917         gl_RELOCATABLE_LIBRARY.
9918         (Makefile.am): Remove lib_SOURCES.
9919         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
9920         always.
9921         * modules/relocatable-prog-wrapper (configure.ac): Invoke
9922         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
9923
9924 2007-03-04  Bruno Haible  <bruno@clisp.org>
9925
9926         * modules/argmatch-tests: New file.
9927         * tests/test-argmatch.c: New file.
9928
9929         * tests/test-allocsa.c (main): Halve the number of loop runs.
9930
9931         * modules/alloca-opt-tests: New file.
9932         * tests/test-alloca-opt.c: New file.
9933
9934 2007-03-04  Jim Meyering  <jim@meyering.net>
9935
9936         Work around difference between Linux ACLs and Solaris 10 ZFS.
9937         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
9938         for EINVAL.
9939
9940 2007-03-03  Bruno Haible  <bruno@clisp.org>
9941
9942         * modules/relocatable-prog (Depends-on): Add back progreloc's
9943         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
9944
9945 2007-03-03  Bruno Haible  <bruno@clisp.org>
9946
9947         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
9948         * modules/relocatable-lib: New file.
9949
9950 2007-03-03  Bruno Haible  <bruno@clisp.org>
9951
9952         * modules/relocatable-prog: Renamed from modules/relocatable.
9953         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
9954
9955 2007-03-03  Bruno Haible  <bruno@clisp.org>
9956
9957         * modules/relocatable-script (Files): Add doc/relocatable.texi,
9958         m4/relocatable-lib.m4.
9959         (Depends-on): Remove 'relocatable'.
9960         (configure.ac): Add gl_RELOCATABLE_NOP.
9961
9962 2007-03-03  Bruno Haible  <bruno@clisp.org>
9963
9964         * modules/relocatable-prog-wrapper: New file.
9965         * modules/relocatable (Depends-on): Add it. Remove all other
9966         dependencies except progname.
9967         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
9968
9969         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
9970         (gl_FUNC_STRERROR): Nop.
9971         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
9972
9973         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
9974         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
9975
9976         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
9977         (gl_FUNC_READLINK): Update.
9978
9979         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
9980
9981 2007-03-03  Bruno Haible  <bruno@clisp.org>
9982
9983         * lib/xreadlink.c: Include <unistd.h> unconditionally.
9984         * modules/xreadlink (Depends-on): Add unistd.
9985         * modules/xreadlink-with-size (Depends-on): Likewise.
9986
9987 2007-03-03  Bruno Haible  <bruno@clisp.org>
9988
9989         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
9990         extracted from gt_FUNC_SETENV.
9991         (gt_FUNC_SETENV): Remove macro.
9992         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
9993         remove gt_FUNC_SETENV.
9994
9995 2007-03-03  Bruno Haible  <bruno@clisp.org>
9996
9997         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
9998         ENABLE_RELOCATABLE here.
9999         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
10000
10001 2007-03-03  Bruno Haible  <bruno@clisp.org>
10002
10003         * modules/rbtreehash-list-tests (Depends-on): Add progname.
10004         * tests/test-rbtreehash_list.c: Include progname.h.
10005         (main): Call set_program_name.
10006
10007         * modules/rbtree-oset-tests (Depends-on): Add progname.
10008         * tests/test-rbtree_oset.c: Include progname.h.
10009         (main): Call set_program_name.
10010
10011         * modules/rbtree-list-tests (Depends-on): Add progname.
10012         * tests/test-rbtree_list.c: Include progname.h.
10013         (main): Call set_program_name.
10014
10015         * modules/linked-list-tests (Depends-on): Add progname.
10016         * tests/test-linked_list.c: Include progname.h.
10017         (main): Call set_program_name.
10018
10019 2007-03-03  Bruno Haible  <bruno@clisp.org>
10020
10021         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
10022         All uses of __restrict changed to _Restrict_.
10023         * lib/glob_.h (__restrict): Remove macro.
10024
10025 2007-03-02  Bruno Haible  <bruno@clisp.org>
10026
10027         * modules/gettext (configure.ac): Require gettext infrastructure
10028         from version 0.16.1.
10029
10030 2007-03-02  Bruno Haible  <bruno@clisp.org>
10031
10032         * modules/linkedhash-list-tests (Depends-on): Add progname.
10033         * tests/test-linkedhash_list.c: Include progname.h.
10034         (main): Call set_program_name.
10035
10036         * modules/carray-list-tests (Depends-on): Add progname.
10037         * tests/test-carray_list.c: Include progname.h.
10038         (main): Call set_program_name.
10039
10040         * modules/avltreehash-list-tests (Depends-on): Add progname.
10041         * tests/test-avltreehash_list.c: Include progname.h.
10042         (main): Call set_program_name.
10043
10044         * modules/avltree-oset-tests (Depends-on): Add progname.
10045         * tests/test-avltree_oset.c: Include progname.h.
10046         (main): Call set_program_name.
10047
10048         * modules/avltree-list-tests (Depends-on): Add progname.
10049         * tests/test-avltree_list.c: Include progname.h.
10050         (main): Call set_program_name.
10051
10052         * modules/array-oset-tests (Depends-on): Add progname.
10053         * tests/test-array_oset.c: Include progname.h.
10054         (main): Call set_program_name.
10055
10056         * modules/array-list-tests (Depends-on): Add progname.
10057         * tests/test-array_list.c: Include progname.h.
10058         (main): Call set_program_name.
10059
10060         * modules/argp-tests (Depends-on): Add progname.
10061         * tests/test-argp.c: Include argp.h first. Include progname.h.
10062         (main): Call set_program_name.
10063
10064 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
10065
10066         * doc/gnulib-tool.texi (Initial import): Reword description of
10067         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
10068         limited effect even if defined after the first system include.
10069
10070 2007-03-01  Bruno Haible  <bruno@clisp.org>
10071
10072         * build-aux/config.libpath: Update to libtool-1.5.22.
10073         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10074
10075 2007-03-01  Bruno Haible  <bruno@clisp.org>
10076
10077         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
10078         foo_CFLAGS.
10079         Reported by Ralf Wildenhues.
10080
10081 2007-03-01  Bruno Haible  <bruno@clisp.org>
10082
10083         * build-aux/install-reloc: Remove object files left over by some
10084         compilers.
10085         Reported by Ralf Wildenhues.
10086
10087 2007-03-01  Bruno Haible  <bruno@clisp.org>
10088
10089         * build-aux/install-reloc: Break long lines.
10090
10091 2007-03-01  Bruno Haible  <bruno@clisp.org>
10092
10093         * doc/relocatable.texi: Document that it may not work on OpenBSD.
10094         Reported by Ralf Wildenhues.
10095
10096 2007-03-01  Bruno Haible  <bruno@clisp.org>
10097
10098         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
10099         include ordering constraints.
10100
10101 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
10102
10103         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
10104         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
10105         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
10106         as another example.
10107         * lib/time_.h: Fix misspelling.
10108         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
10109         Require gl_HEADER_TIME_H_DEFAULTS.
10110         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
10111         * m4/time_r.m4 (gl_TIME_R): Likewise.
10112         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
10113
10114 2007-03-01  Bruno Haible  <bruno@clisp.org>
10115
10116         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
10117         * m4/utimens.m4 (gl_UTIMENS): Likewise.
10118
10119 2007-03-01  Jim Meyering  <jim@meyering.net>
10120
10121         * modules/xreadlink (Maintainer): Add my name.
10122         * modules/xreadlink-with-size (Depends-on): Alphabetize.
10123
10124 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
10125             Bruno Haible  <bruno@clisp.org>
10126
10127         * build-aux/install-reloc: Compile also c-ctype.c.
10128         * build-aux/relocatable.sh.in: New file.
10129         * doc/relocatable.texi: New file.
10130         * doc/relocatable-maint.texi: New file.
10131         * doc/gnulib.texi: Include relocatable-maint.texi.
10132         * lib/progreloc.c: Include unistd.h unconditionally.
10133         * lib/relocwrapper.c: Include unistd.h unconditionally.
10134         Include c-ctype.h.
10135         (add_dotbin): Use c_tolower.
10136         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
10137         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
10138         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
10139         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
10140         to m4/relocatable-lib.m4.
10141         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
10142         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
10143         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
10144         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
10145         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
10146         * modules/relocatable: New file.
10147         * modules/relocatable-lib: New file.
10148         * modules/relocatable-script: New file.
10149
10150 2007-02-28  Bruno Haible  <bruno@clisp.org>
10151
10152         Import --enable-relocatable infrastructure.
10153         * build-aux/config.libpath: New file, from GNU gettext.
10154         * build-aux/install-reloc: New file, from GNU gettext.
10155         * build-aux/reloc-ldflags: New file, from GNU gettext.
10156         * lib/relocatable.h: New file, from GNU gettext.
10157         * lib/relocatable.c: New file, from GNU gettext.
10158         * lib/relocwrapper.c: New file, from GNU gettext.
10159         * m4/relocatable.m4: New file, from GNU gettext.
10160
10161 2007-02-28  Bruno Haible  <bruno@clisp.org>
10162
10163         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
10164
10165         * modules/xreadlink: New file, from GNU gettext with modifications.
10166         * lib/xreadlink.c: New file, from GNU gettext.
10167         * lib/xreadlink.h: Add comments.
10168         (xreadlink): New declaration.
10169
10170         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
10171         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
10172         lib/xreadlink-with-size.c.
10173         (configure.ac): Remove gl_XREADLINK invocation.
10174         (Makefile.am): Augment lib_SOURCES.
10175         * m4/xreadlink.m4: Remove file.
10176         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
10177         (xreadlink_with_size): Renamed from xreadink.
10178         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
10179         * modules/canonicalize (Depends-on): Replace xreadlink with
10180         xreadlink-with-size.
10181         * lib/canonicalize.c (canonicalize_filename_mode): Update.
10182
10183 2007-02-25  Jim Meyering  <jim@meyering.net>
10184
10185         * build-aux/announce-gen: When complaining about excess arguments,
10186         list them.
10187
10188 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
10189
10190         * README: Document signed integer overflow situation more
10191         accurately.
10192
10193 2007-02-25  Bruno Haible  <bruno@clisp.org>
10194
10195         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
10196         'a' or 'A' conversion.
10197
10198 2007-02-25  Bruno Haible  <bruno@clisp.org>
10199
10200         * modules/filename: Renamed from modules/pathname.
10201         (Files): Replace lib/pathname.h with lib/filename.h. Replace
10202         lib/concatpath.c with lib/concat-filename.c.
10203         (Makefile.am): Update.
10204         (Include): Replace pathname.h with filename.h.
10205         * lib/filename.h: Renamed from lib/pathname.h.
10206         (concatenated_filename): Renamed from concatenated_pathname.
10207         * lib/concat-filename.c: Renamed from lib/concatpath.c.
10208         (concatenated_filename): Renamed from concatenated_pathname.
10209         * lib/findprog.c: Include filename.h instead of pathname.h.
10210         (find_in_path): Update.
10211         * lib/javacomp.c: Include filename.h instead of pathname.h.
10212         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
10213         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
10214         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
10215         is_oldgcj_14_13_usable, is_javac_usable): Update.
10216         * lib/javaexec.c: Include filename.h instead of pathname.h.
10217         (execute_java_class): Update.
10218         * modules/findprog: Update.
10219         * modules/javacomp: Update.
10220         * modules/javaexec: Update.
10221         * MODULES.html.sh (File system functions): Add 'filename', remove
10222         'pathname'.
10223
10224 2007-02-25  Bruno Haible  <bruno@clisp.org>
10225
10226         * modules/printf-frexpl-tests: New file.
10227         * tests/test-printf-frexpl.c: New file.
10228
10229         * modules/printf-frexpl: New file.
10230         * lib/printf-frexpl.h: New file.
10231         * lib/printf-frexpl.c: New file.
10232         * m4/printf-frexpl.m4: New file.
10233
10234 2007-02-25  Bruno Haible  <bruno@clisp.org>
10235
10236         * modules/printf-frexp-tests: New file.
10237         * tests/test-printf-frexp.c: New file.
10238
10239         * modules/printf-frexp: New file.
10240         * lib/printf-frexp.h: New file.
10241         * lib/printf-frexp.c: New file.
10242         * m4/printf-frexp.m4: New file.
10243
10244 2007-02-25  Bruno Haible  <bruno@clisp.org>
10245
10246         Assume automake >= 1.10 for the tests.
10247         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
10248         * modules/arctwo-tests: Likewise.
10249         * modules/argp-tests: Likewise.
10250         * modules/avltree-list-tests: Likewise.
10251         * modules/avltree-oset-tests: Likewise.
10252         * modules/avltreehash-list-tests: Likewise.
10253         * modules/carray-list-tests: Likewise.
10254         * modules/crc-tests: Likewise.
10255         * modules/des-tests: Likewise.
10256         * modules/gc-arcfour-tests: Likewise.
10257         * modules/gc-arctwo-tests: Likewise.
10258         * modules/gc-des-tests: Likewise.
10259         * modules/gc-hmac-md5-tests: Likewise.
10260         * modules/gc-hmac-sha1-tests: Likewise.
10261         * modules/gc-md2-tests: Likewise.
10262         * modules/gc-md4-tests: Likewise.
10263         * modules/gc-md5-tests: Likewise.
10264         * modules/gc-pbkdf2-sha1-tests: Likewise.
10265         * modules/gc-rijndael-tests: Likewise.
10266         * modules/gc-sha1-tests: Likewise.
10267         * modules/gc-tests: Likewise.
10268         * modules/getaddrinfo-tests: Likewise.
10269         * modules/hmac-md5-tests: Likewise.
10270         * modules/hmac-sha1-tests: Likewise.
10271         * modules/linked-list-tests: Likewise.
10272         * modules/linkedhash-list-tests: Likewise.
10273         * modules/lock-tests: Likewise.
10274         * modules/md2-tests: Likewise.
10275         * modules/md4-tests: Likewise.
10276         * modules/md5-tests: Likewise.
10277         * modules/rbtree-list-tests: Likewise.
10278         * modules/rbtree-oset-tests: Likewise.
10279         * modules/rbtreehash-list-tests: Likewise.
10280         * modules/read-file-tests: Likewise.
10281         * modules/rijndael-tests: Likewise.
10282         * modules/stdint-tests: Likewise.
10283         * modules/tls-tests: Likewise.
10284
10285 2007-02-24  Bruno Haible  <bruno@clisp.org>
10286
10287         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
10288         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
10289         function; instead check whether isnan with a double argument links.
10290         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
10291         function; instead check whether isnan with a 'long double' argument
10292         links.
10293         Reported by Eric Blake <ebb9@byu.net>.
10294
10295 2007-02-24  Bruno Haible  <bruno@clisp.org>
10296
10297         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
10298         defined.
10299         * lib/isnanl.c: Remove all code. Just include isnan.c.
10300         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
10301
10302 2007-02-25  Jim Meyering  <jim@meyering.net>
10303
10304         Avoid conflicting types for 'unsetenv' on FreeBSD.
10305         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
10306         conflicting with FreeBSD's (5.0 and 6.1) function declaration
10307         in stdlib.h.
10308
10309 2007-02-24  Bruno Haible  <bruno@clisp.org>
10310
10311         * modules/isnanl-nolibm-tests: New file.
10312         * tests/test-isnanl.c: New file.
10313
10314         * modules/isnanl-nolibm: New file.
10315         * lib/isnanl.h: New file.
10316         * lib/isnanl.c: New file.
10317         * m4/isnanl.m4: New file.
10318
10319 2007-02-24  Bruno Haible  <bruno@clisp.org>
10320
10321         * modules/isnan-nolibm-tests: New file.
10322         * tests/test-isnan.c: New file.
10323
10324         * modules/isnan-nolibm: New file.
10325         * lib/isnan.h: New file.
10326         * lib/isnan.c: New file.
10327         * m4/isnan.m4: New file.
10328
10329 2007-02-24  Bruno Haible  <bruno@clisp.org>
10330
10331         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
10332         assume that an exponent fits in 20 bits.
10333
10334 2007-02-24  Jim Meyering  <jim@meyering.net>
10335
10336         * m4/regex.m4: Update the description of the configure-time option,
10337         --without-included-regex, to state accurately what the defaults are,
10338         and perhaps to give people an idea why using this option is risky.
10339
10340 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
10341
10342         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
10343         loops on small arguments.  This attempts to avoid the problem
10344         Bruno Haible reported for AIX 4.3.2 in
10345         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
10346
10347 2007-02-23  Bruno Haible  <bruno@clisp.org>
10348
10349         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
10350         Needed for help2man.
10351
10352 2007-02-23  Karl Berry  <karl@gnu.org>
10353
10354         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
10355         exists, foo.h should be cvs-ignored, not committed.
10356
10357 2007-02-23  Eric Blake  <ebb9@byu.net>
10358
10359         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
10360         * lib/stat-time.h (includes): Likewise.
10361         * lib/utimecmp.c (includes): Likewise.
10362         * lib/utimens.h (includes): Likewise.
10363         * lib/getdate.y (includes): Also include "timespec.h" for use
10364         internal to the module.
10365         * modules/utimens (Depends-on): Revert yesterday's patch.
10366         * modules/nanosleep (Depends-on): Add missing dependency.
10367
10368 2007-02-22  Bruno Haible  <bruno@clisp.org>
10369
10370         * lib/glob.c: Don't include getlogin_r.h.
10371
10372 2007-02-22  Jim Meyering  <jim@meyering.net>
10373
10374         * modules/utimens (Depends-on): Add timespec, required for
10375         utimens.h's inclusion of timespec.h.
10376
10377 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
10378
10379         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
10380         long unreadable paths in GNU/Linux.  Problem reported by Andreas
10381         Schwab in
10382         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
10383         I'll try to think of a better way to fix the Solaris problem.
10384
10385         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
10386         like glibc; on Solaris 10, it fails with errno == EINVAL.
10387         POSIX says the behavior is unspecified if the first argument is NULL,
10388         so play it safe and never pass NULL to the system getcwd.
10389
10390 2007-02-21  Jim Meyering  <jim@meyering.net>
10391
10392         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
10393         of gettimeofday.  It would conflict with the one now always
10394         provided via sys_time_.h.  Reported by Matthew Woehlke, as
10395         an IRIX 6.5 build failure.
10396
10397 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
10398
10399         Minor fixups to port to Solaris 10 with Sun C 5.8.
10400         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
10401         * modules/getcwd (Depends-on): Add dirfd.
10402         * lib/putenv.c (putenv): #undef it.
10403         (rpl_putenv): New decl.
10404         (malloc, free): Include <stdlib.h> rather than prototyping separately.
10405
10406 2007-02-20  Bruno Haible  <bruno@clisp.org>
10407
10408         * modules/stdio-tests: New file.
10409         * tests/test-stdio.c: New file.
10410
10411         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
10412         (Depends-on): Add stdio.
10413         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
10414         (Include): Use <stdio.h> instead of vsnprintf.h.
10415         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
10416         HAVE_DECL_VSNPRINTF.
10417         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
10418
10419         * modules/snprintf (Files): Remove lib/snprintf.h.
10420         (Depends-on): Add stdio.
10421         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
10422         (Include): Use <stdio.h> instead of snprintf.h.
10423         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
10424         HAVE_DECL_SNPRINTF.
10425         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
10426         * lib/getaddrinfo.c: Likewise.
10427
10428         * modules/stdio: New file.
10429         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
10430         * lib/snprintf.h: Remove file.
10431         * lib/vsnprintf.h: Remove file.
10432         * lib/.cppi-disable: Remove snprintf.h.
10433         * m4/stdio_h.m4: New file.
10434         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
10435
10436 2007-02-20  Jim Meyering  <jim@meyering.net>
10437
10438         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
10439         used by e.g., mingw.  From Bruno Haible.
10440
10441 2007-02-19  Bruno Haible  <bruno@clisp.org>
10442
10443         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
10444         warnings.
10445         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10446
10447 2007-02-19  Bruno Haible  <bruno@clisp.org>
10448
10449         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
10450         from mingw users.
10451
10452 2007-02-19  Bruno Haible  <bruno@clisp.org>
10453
10454         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
10455         warnings.
10456         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
10457
10458 2007-02-19  Jim Meyering  <jim@meyering.net>
10459
10460         Don't use FD after a successful "fdopendir (fd)".
10461         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
10462         Reset it by calling dirfd on the just-obtained DIR*.
10463
10464         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
10465         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
10466
10467 2007-02-18  Bruno Haible  <bruno@clisp.org>
10468
10469         * lib/readlink.c: Include <unistd.h>.
10470         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
10471         HAVE_READLINK.
10472         * modules/readlink (Depends-on): Add unistd.
10473         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10474         (Include): Add <unistd.h>.
10475
10476         * lib/getlogin_r.h: Remove file.
10477         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
10478         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
10479         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
10480         HAVE_DECL_GETLOGIN_R.
10481         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
10482         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10483         (Include): Use <unistd.h> instead of getlogin_r.h.
10484
10485         * lib/getcwd.h: Remove file.
10486         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
10487         * lib/xgetcwd.c: Likewise.
10488         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
10489         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
10490         * modules/getcwd (Files): Remove lib/getcwd.h.
10491         (Depends-on): Add unistd.
10492         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10493         (Include): Use <unistd.h> instad of getcwd.h.
10494
10495         * lib/ftruncate.c: Include <unistd.h> first.
10496         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
10497         Set HAVE_FTRUNCATE.
10498         * modules/ftruncate (Depends-on): Add unistd.
10499         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10500
10501         * lib/fchdir.c: Include <unistd.h> first.
10502         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
10503         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
10504         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
10505         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10506         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
10507
10508         * lib/dup2.c: Include <unistd.h> first.
10509         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
10510         HAVE_DUP2.
10511         * modules/dup2 (Depends-on): Add unistd.
10512         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10513
10514         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
10515         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
10516         REPLACE_CHOWN. Don't define chown as a macro here.
10517         * modules/chown (Depends-on): Add unistd.
10518         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10519
10520         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
10521         Add definition for GL_LINK_WARNING.
10522         (chown, dup2): New declarations.
10523         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
10524         link warning.
10525         (ftruncate): New declaration.
10526         (getcwd): New declaration, taken from old getcwd.h.
10527         (getlogin_r): New declaration, taken from old getlogin_r.h.
10528         (readlink): New declaration.
10529         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
10530         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
10531         (gl_PREREQ_UNISTD): Remove macro.
10532         (gl_UNISTD_MODULE_INDICATOR): New macro.
10533         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
10534         many new variables. Don't set UNISTD_H.
10535         * modules/unistd (Description): Change.
10536         (Depends-on): Add link-warning.
10537         (configure.ac): Update.
10538         (Makefile.am): Create unistd.h always. Substitute many new variables
10539         into it.
10540
10541 2007-02-18  Bruno Haible  <bruno@clisp.org>
10542
10543         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
10544         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
10545         HAVE_GETSUBOPT.
10546         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
10547         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
10548         * lib/getsubopt.h: Remove file.
10549         * modules/getsubopt (Files): Remove lib/getsubopt.h.
10550         (Depends-on): Add stdlib.
10551         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
10552         (Includes): Use <stdlib.h> instead of getsubopt.h.
10553         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
10554         Set HAVE_GETSUBOPT.
10555         * lib/getsubopt.c: Don't include getsubopt.h.
10556
10557 2007-02-18  Bruno Haible  <bruno@clisp.org>
10558
10559         * modules/fchdir (Depends-on): Add dup2.
10560
10561 2007-02-18  Bruno Haible  <bruno@clisp.org>
10562
10563         * lib/stdlib_.h: Handle glibc's special invocation convention
10564         specially.
10565
10566 2007-02-18  Bruno Haible  <bruno@clisp.org>
10567
10568         * modules/stdlib-tests: New file.
10569         * tests/test-stdlib.c: New file.
10570
10571         * modules/mkstemp (Files): Remove lib/mkstemp.h.
10572         (Depends-on): Add stdlib.
10573         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
10574         (Includes): Use <stdlib.h> instead of mkstemp.h.
10575         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
10576         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
10577         * lib/mkstemp.c: Don't include mkstemp.h.
10578         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
10579         * lib/stdlib--.h: Don't include mkstemp.h.
10580
10581         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
10582         (Depends-on): Add stdlib.
10583         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
10584         (Includes): Use <stdlib.h> instead of mkdtemp.h.
10585         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
10586         HAVE_MKDTEMP.
10587         * lib/mkdtemp.c: Don't include mkdtemp.h.
10588         * lib/clean-temp.c: Don't include mkdtemp.h.
10589
10590         * modules/exit (Files): Remove lib/exit.h.
10591         (Depends-on): Add stdlib.
10592         (Makefile.am): Remove lib_SOURCES.
10593         (Include): Use <stdlib.h> instead of exit.h.
10594         * lib/argmatch.c: Don't include exit.h.
10595         * lib/execute.c: Likewise.
10596         * lib/pagealign_alloc.c: Likewise.
10597         * lib/pipe.c: Likewise.
10598         * lib/wait-process.c: Likewise.
10599         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
10600         * lib/exitfail.c: Likewise.
10601         * lib/savewd.c: Likewise.
10602         * lib/xsetenv.c: Likewise.
10603
10604         * modules/stdlib: New file.
10605         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
10606         and extra comments about mkstemp().
10607         * lib/exit.h: Remove file.
10608         * lib/mkdtemp.h: Remove file.
10609         * lib/mkstemp.h: Remove file.
10610         * m4/stdlib_h.m4: New file.
10611         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
10612
10613 2007-02-18  Bruno Haible  <bruno@clisp.org>
10614
10615         * modules/math-tests: New file.
10616         * tests/test-math.c: New file.
10617
10618         * modules/math: New file.
10619         * modules/mathl (Files): Remove lib/mathl.h.
10620         (Depends-on): Add math.
10621         (Makefile.am): Don't mention mathl.h.
10622         (Include): Use <math.h> instead of mathl.h.
10623         * lib/math_.h: New file.
10624         * lib/mathl.h: Remove file.
10625         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
10626         mathl.h.
10627         * lib/asinl.c: Likewise.
10628         * lib/atanl.c: Likewise.
10629         * lib/ceill.c: Likewise.
10630         * lib/cosl.c: Likewise.
10631         * lib/expl.c: Likewise.
10632         * lib/floorl.c: Likewise.
10633         * lib/frexpl.c: Likewise.
10634         * lib/ldexpl.c: Likewise.
10635         * lib/logl.c: Likewise.
10636         * lib/sincosl.c: Likewise.
10637         * lib/sinl.c: Likewise.
10638         * lib/sqrtl.c: Likewise.
10639         * lib/tanl.c: Likewise.
10640         * lib/trigl.c: Likewise.
10641         * m4/math_h.m4: New file.
10642         * MODULES.html.sh (Mathematics): Add math.
10643
10644 2007-02-17  Bruno Haible  <bruno@clisp.org>
10645
10646         * modules/wctype-tests: New file.
10647         * tests/test-wctype.c: New file.
10648
10649         * modules/wchar-tests: New file.
10650         * tests/test-wchar.c: New file.
10651
10652         * modules/unistd-tests: New file.
10653         * tests/test-unistd.c: New file.
10654
10655         * modules/time-tests: New file.
10656         * tests/test-time.c: New file.
10657
10658         * modules/sysexits-tests: New file.
10659         * tests/test-sysexits.c: New file.
10660
10661         * modules/sys_time-tests: New file.
10662         * tests/test-sys_time.c: New file.
10663
10664         * modules/sys_stat-tests: New file.
10665         * tests/test-sys_stat.c: New file.
10666
10667         * modules/sys_socket-tests: New file.
10668         * tests/test-sys_socket.c: New file.
10669
10670         * modules/sys_select-tests: New file.
10671         * tests/test-sys_select.c: New file.
10672
10673         * modules/string-tests: New file.
10674         * tests/test-string.c: New file.
10675
10676         * modules/stdbool-tests: New file.
10677         * tests/test-stdbool.c: New file.
10678
10679         * modules/netinet_in-tests: New file.
10680         * tests/test-netinet_in.c: New file.
10681
10682         * modules/inttypes-tests: New file.
10683         * tests/test-inttypes.c: New file.
10684
10685         * modules/fcntl-tests: New file.
10686         * tests/test-fcntl.c: New file.
10687
10688         * modules/byteswap-tests: New file.
10689         * tests/test-byteswap.c: New file.
10690
10691         * modules/arpa_inet-tests: New file.
10692         * tests/test-arpa_inet.c: New file.
10693
10694 2007-02-17  Bruno Haible  <bruno@clisp.org>
10695
10696         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
10697         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
10698         if the corresponding module is not enabled. Emit link warnings if
10699         the function is used nevertheless.
10700         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
10701         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
10702         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
10703         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
10704         * modules/inttypes (Depends-on): Add link-warning.
10705         (Makefile.am): Copy the contents of build-aux/link-warning.h into
10706         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
10707         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
10708         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
10709         * modules/imaxdiv (configure.ac): Likewise.
10710         * modules/strtoimax (configure.ac): Likewise.
10711         * modules/strtoumax (configure.ac): Likewise.
10712
10713 2007-02-17  Bruno Haible  <bruno@clisp.org>
10714
10715         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
10716         gl_STRING_MODULE_INDICATOR_DEFAULTS.
10717         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
10718         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
10719
10720 2007-02-17  Bruno Haible  <bruno@clisp.org>
10721
10722         * modules/link-warning: New file.
10723         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
10724         * lib/string_.h (GL_LINK_WARNING): Remove definition.
10725         * modules/string (Depends-on): Add link-warning.
10726         (Makefile.am): Copy the contents of build-aux/link-warning.h into
10727         string.h.
10728         * MODULES.html.sh (Support for building libraries and executables): Add
10729         link-warning.
10730
10731 2007-02-17  Bruno Haible  <bruno@clisp.org>
10732
10733         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
10734         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
10735         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
10736         long lines.
10737
10738 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
10739             Bruno Haible  <bruno@clisp.org>
10740
10741         * modules/tmpfile: New file.
10742         * lib/tmpfile.c: New file.
10743         * m4/tmpfile.m4: New file.
10744         * MODULES.html.sh (func_all_modules): New section "Input/output".
10745
10746 2007-02-15  Bruno Haible  <bruno@clisp.org>
10747
10748         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
10749         (supports_delete_on_close): New function.
10750         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
10751
10752 2007-02-14  Bruno Haible  <bruno@clisp.org>
10753
10754         * modules/mbspcasecmp-tests: New file.
10755         * tests/test-mbspcasecmp.sh: New file.
10756         * tests/test-mbspcasecmp.c: New file.
10757
10758         New module mbspcasecmp.
10759         * modules/mbspcasecmp: New file.
10760         * lib/mbspcasecmp.c: New file.
10761         * lib/string_.h (strncasecmp): Change warning message.
10762         (mbspcasecmp): New declaration.
10763         * m4/mbspcasecmp.m4: New file.
10764         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
10765         GNULIB_MBSPCASECMP.
10766         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
10767         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
10768
10769 2007-02-14  Bruno Haible  <bruno@clisp.org>
10770
10771         * modules/mbsncasecmp-tests: New file.
10772         * tests/test-mbsncasecmp.sh: New file.
10773         * tests/test-mbsncasecmp.c: New file.
10774
10775         New module mbsncasecmp.
10776         * modules/mbsncasecmp: New file.
10777         * lib/mbsncasecmp.c: New file.
10778         * lib/string_.h (mbsncasecmp): New declaration.
10779         * m4/mbsncasecmp.m4: New file.
10780         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
10781         GNULIB_MBSNCASECMP.
10782         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
10783         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
10784
10785 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
10786
10787         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
10788         Verify that it doesn't overlap with our flags.
10789         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
10790         do not have the desired effect in multibyte locales; instead, use
10791         mbscasecmp.
10792         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
10793         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
10794         we don't require GNU fnmatch ourselves (if our users require it, they
10795         should do so explicitly).
10796
10797         Fix regex code so it doesn't rely on strcasecmp.
10798         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
10799         Otherwise, include gnulib's langinfo.h.
10800         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
10801         undesirable behavior in non-C locales.  Instead, rely on localecharset.
10802         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
10803         * modules/regex (FILES): Remove m4/codeset.m4.
10804         (Depends-on): Add localcharset.  Remove strcase.
10805
10806 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10807
10808         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
10809         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
10810
10811 2007-02-13  Bruno Haible  <bruno@clisp.org>
10812
10813         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
10814         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10815
10816 2007-02-12  Bruno Haible  <bruno@clisp.org>
10817
10818         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
10819         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
10820         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
10821         time warning rather than a link error.
10822
10823 2007-02-12  Bruno Haible  <bruno@clisp.org>
10824
10825         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
10826         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10827         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10828
10829 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10830
10831         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
10832         args, not 2.
10833
10834 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10835
10836         New module 'time', so that apps can include <time.h> as per
10837         POSIX and GNU instead of separate include files like time_r.h
10838         and timegm.h.  This implementation tries out a simpler approach
10839         for replacing decls in standard include files (as compared to
10840         the string module), somewhat as an experiment.
10841
10842         * config/srclist.txt: Comment out mktime.c for now.
10843         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
10844         since it doesn't apply any more.  Use generic wording instead.
10845         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
10846         'time'.
10847         * lib/time_.h, m4/time_h.m4, modules/time: New files.
10848         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
10849         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
10850         Don't include <sys/types.h>; no longer needed since we assume C89.
10851         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
10852         * lib/strftime.c: Likewise.
10853         * lib/time_r.c: Likewise.
10854         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
10855         * lib/nanosleep.c: Include <time.h> first, to check interface.
10856         * lib/strptime.c: Likewise.
10857         * lib/time_r.c: Likewise.
10858         * lib/timegm.c: Likewise.
10859         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
10860         needed.
10861         * lib/timegm.c: Don't include timegm.h; no longer needed.
10862         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
10863         time.h now handles any problems in that area.
10864         (struct timespec, nanosleep): Remove; time.h now arranges for these.
10865         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
10866         that time.h defines struct timespec.
10867         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
10868         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
10869         handles that.
10870         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
10871         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
10872         needed.  Set REPLACE_LOCALTIME.
10873         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
10874         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
10875         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
10876         nanosleep; time_h.m4 now does that.  Don't require
10877         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
10878         module handles this now.
10879         * modules/getdate (Depends-on): Remove timespec.  Add time.
10880         * modules/nanosleep (Depends-on): Likewise.
10881         * modules/stat-time (Depends-on): Likewise.
10882         * modules/nanosleep (Include): Include time.h, not timespec.h.
10883         * modules/strptime (Files): Remove lib/strptime.h.
10884         (Depends-on): Add extensions, time.
10885         (Include): Include time.h, not strptime.h.
10886         * modules/time_r (Files): Remove lib/time_r.h.
10887         (Depends-on): Add time.
10888         (Include): Include time.h, not time_r.h.
10889         * modules/timegm: Likewise.
10890         * modules/timespec (Description): Now does timespec-related decls
10891         of our own, instead of struct timespec itself.
10892         (Depends-on): Add time; remove extensions.
10893         (Maintainer): Add self.
10894         * modules/utimecmp (Depends-on): Add time; remove timespec.
10895         * modules/utimens (Depends-on): Likewise.
10896         * modules/xnanosleep (Depends-on): Likewise.
10897
10898 2007-02-11  Bruno Haible  <bruno@clisp.org>
10899
10900         * lib/c-strstr.c: Include allocsa.h.
10901         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
10902         * lib/c-strcasestr.c: Include allocsa.h.
10903         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
10904         * lib/strcasestr.c: Include allocsa.h.
10905         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
10906         * lib/mbsstr.c: Include allocsa.h.
10907         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
10908         allocsa/freesa instead of malloc/free.
10909         * lib/mbscasestr.c: Include allocsa.h.
10910         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
10911         allocsa/freesa instead of malloc/free.
10912         * modules/c-strstr (Depends-on): Add allocsa.
10913         * modules/c-strcasestr (Depends-on): Likewise.
10914         * modules/strcasestr (Depends-on): Likewise.
10915         * modules/mbsstr (Depends-on): Likewise.
10916         * modules/mbscasestr (Depends-on): Likewise.
10917
10918 2007-02-11  Bruno Haible  <bruno@clisp.org>
10919
10920         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
10921
10922         * modules/mbsspn-tests: New file.
10923         * tests/test-mbsspn.sh: New file.
10924         * tests/test-mbsspn.c: New file.
10925
10926 2007-02-11  Bruno Haible  <bruno@clisp.org>
10927
10928         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
10929
10930         * modules/mbspbrk-tests: New file.
10931         * tests/test-mbspbrk.sh: New file.
10932         * tests/test-mbspbrk.c: New file.
10933
10934 2007-02-11  Bruno Haible  <bruno@clisp.org>
10935
10936         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
10937         unneeded cast.
10938
10939         * modules/mbscspn-tests: New file.
10940         * tests/test-mbscspn.sh: New file.
10941         * tests/test-mbscspn.c: New file.
10942
10943 2007-02-11  Bruno Haible  <bruno@clisp.org>
10944
10945         * modules/mbscasecmp-tests: New file.
10946         * tests/test-mbscasecmp.sh: New file.
10947         * tests/test-mbscasecmp.c: New file.
10948
10949 2007-02-11  Bruno Haible  <bruno@clisp.org>
10950
10951         Ensure O(n) worst-case complexity of mbscasestr.
10952         * lib/mbscasestr.c: Include stdbool.h.
10953         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
10954         functions.
10955         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
10956         the bookkeeping indicates that it's worth it.
10957         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
10958
10959         * modules/mbscasestr-tests: New file.
10960         * tests/test-mbscasestr1.c: New file.
10961         * tests/test-mbscasestr2.sh: New file.
10962         * tests/test-mbscasestr2.c: New file.
10963         * tests/test-mbscasestr3.sh: New file.
10964         * tests/test-mbscasestr3.c: New file.
10965         * tests/test-mbscasestr4.sh: New file.
10966         * tests/test-mbscasestr4.c: New file.
10967         * m4/locale-tr.m4: New file.
10968
10969 2007-02-11  Bruno Haible  <bruno@clisp.org>
10970
10971         Ensure O(n) worst-case complexity of mbsstr.
10972         * lib/mbsstr.c: Include stdbool.h.
10973         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
10974         functions.
10975         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
10976         bookkeeping indicates that it's worth it.
10977         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
10978
10979         * modules/mbsstr-tests: New file.
10980         * tests/test-mbsstr1.c: New file.
10981         * tests/test-mbsstr2.sh: New file.
10982         * tests/test-mbsstr2.c: New file.
10983         * tests/test-mbsstr3.sh: New file.
10984         * tests/test-mbsstr3.c: New file.
10985         * m4/locale-fr.m4: New file.
10986
10987 2007-02-11  Bruno Haible  <bruno@clisp.org>
10988
10989         * lib/mbsrchr.c (mbsrchr): Fix bug.
10990
10991         * modules/mbsrchr-tests: New file.
10992         * tests/test-mbsrchr.sh: New file.
10993         * tests/test-mbsrchr.c: New file.
10994
10995 2007-02-11  Bruno Haible  <bruno@clisp.org>
10996
10997         * lib/mbschr.c (mbschr): Fix bug.
10998
10999         * modules/mbschr-tests: New file.
11000         * tests/test-mbschr.sh: New file.
11001         * tests/test-mbschr.c: New file.
11002         * m4/locale-zh.m4: New file.
11003
11004 2007-02-11  Bruno Haible  <bruno@clisp.org>
11005
11006         Support for copying multibyte string iterators.
11007         * lib/mbiter.h: Include <string.h>.
11008         (mbiter_multi_copy): New function.
11009         (mbi_copy): New macro.
11010         * lib/mbuiter.h: Include <string.h>.
11011         (mbuiter_multi_copy): New function.
11012         (mbui_copy): New macro.
11013
11014 2007-02-11  Bruno Haible  <bruno@clisp.org>
11015
11016         New module mbslen.
11017         * modules/mbslen: New file.
11018         * lib/mbslen.c: New file.
11019         * lib/string_.h (mbslen): New declaration.
11020         * m4/mbslen.m4: New file.
11021         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11022         GNULIB_MBSLEN.
11023         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
11024         * MODULES.html.sh (Internationalization functions): Add mbslen.
11025
11026 2007-02-11  Bruno Haible  <bruno@clisp.org>
11027
11028         Ensure O(n) worst-case complexity of strcasestr substitute.
11029         * lib/strcasestr.c: Include stdbool.h.
11030         (knuth_morris_pratt): New function.
11031         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
11032         bookkeeping indicates that it's worth it.
11033         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
11034
11035         * modules/strcasestr-tests: New file.
11036         * tests/test-strcasestr.c: New file.
11037
11038 2007-02-11  Bruno Haible  <bruno@clisp.org>
11039
11040         Ensure O(n) worst-case complexity of c_strcasestr.
11041         * lib/c-strcasestr.c: Include stdbool.h, string.h.
11042         (knuth_morris_pratt): New function.
11043         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
11044         the bookkeeping indicates that it's worth it.
11045         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
11046
11047         * modules/c-strcasestr-tests: New file.
11048         * tests/test-c-strcasestr.c: New file.
11049
11050 2007-02-11  Bruno Haible  <bruno@clisp.org>
11051
11052         Ensure O(n) worst-case complexity of c_strstr.
11053         * lib/c-strstr.c: Include stdbool.h, string.h.
11054         (knuth_morris_pratt): New function.
11055         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
11056         bookkeeping indicates that it's worth it.
11057         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
11058
11059         * lib/c-strstr.c: Complete rewrite for maintainability.
11060
11061         * modules/c-strstr-tests: New file.
11062         * tests/test-c-strstr.c: New file.
11063
11064 2007-02-11  Bruno Haible  <bruno@clisp.org>
11065
11066         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
11067         5.2.1 and earlier, whereby \055 was treated just like the range
11068         delimiter '-'.
11069         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
11070
11071 2007-02-08  Bruno Haible  <bruno@clisp.org>
11072
11073         * modules/regex (Depends-on): Add stdbool.
11074         Reported by Dalibor Topic <robilad@kaffe.org>.
11075
11076 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
11077
11078         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
11079         Prefer returning from main to exiting from it.
11080         Remove unnecessary parens after sizeof.
11081
11082 2007-02-05  Bruno Haible  <bruno@clisp.org>
11083
11084         New module mbssep.
11085         * modules/mbssep: New file.
11086         * lib/mbssep.c: New file.
11087         * lib/string_.h (strsep): Add a conditional link warning.
11088         (mbssep): New declaration.
11089         * m4/mbssep.m4: New file.
11090         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11091         GNULIB_MBSSEP.
11092         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
11093         * MODULES.html.sh (Internationalization functions): Add mbssep.
11094
11095 2007-02-05  Bruno Haible  <bruno@clisp.org>
11096
11097         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
11098         Optimize search in case of 1 delimiter.
11099
11100 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
11101
11102         * lib/acl.h: Include sys/types.h before sys/acl.h.
11103
11104 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
11105
11106         Merge upstream fix for glibc bugzilla #3957:
11107
11108         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
11109
11110         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
11111         bit for RE_HAT_LISTS_NOT_NEWLINE.
11112         (build_charclass_op): Remove bogus comment.
11113
11114 2007-02-05  Simon Josefsson  <simon@josefsson.org>
11115
11116         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
11117
11118 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
11119
11120         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
11121         * lib/memmem.c [!defined _LIBC]: Include config.h.
11122
11123 2007-02-04  Bruno Haible  <bruno@clisp.org>
11124
11125         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
11126         warning message.
11127
11128 2007-02-04  Bruno Haible  <bruno@clisp.org>
11129
11130         New module mbstok_r.
11131         * modules/mbstok_r: New file.
11132         * lib/mbstok_r.c: New file.
11133         * lib/string_.h (strtok_r): Change argument names to match the
11134         comments. Add a conditional link warning.
11135         (mbstok_r): New declaration.
11136         * m4/mbstok_r.m4: New file.
11137         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11138         GNULIB_MBSTOK_R.
11139         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
11140         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
11141
11142 2007-02-04  Bruno Haible  <bruno@clisp.org>
11143
11144         New module mbsspn.
11145         * modules/mbsspn: New file.
11146         * lib/mbsspn.c: New file.
11147         * lib/string_.h (strspn): Add a conditional link warning.
11148         (mbsspn): New declaration.
11149         * m4/mbsspn.m4: New file.
11150         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11151         GNULIB_MBSSPN.
11152         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
11153         * MODULES.html.sh (Internationalization functions): Add mbsspn.
11154
11155 2007-02-04  Bruno Haible  <bruno@clisp.org>
11156
11157         New module mbspbrk.
11158         * modules/mbspbrk: New file.
11159         * lib/mbspbrk.c: New file.
11160         * lib/string_.h (strpbrk): Add a conditional link warning.
11161         (mbspbrk): New declaration.
11162         * m4/mbspbrk.m4: New file.
11163         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11164         GNULIB_MBSPBRK.
11165         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
11166         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
11167
11168 2007-02-04  Bruno Haible  <bruno@clisp.org>
11169
11170         New module mbscspn.
11171         * modules/mbscspn: New file.
11172         * lib/mbscspn.c: New file.
11173         * lib/string_.h (strcspn): Add a conditional link warning.
11174         (mbscspn): New declaration.
11175         * m4/mbscspn.m4: New file.
11176         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11177         GNULIB_MBSCSPN.
11178         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
11179         * MODULES.html.sh (Internationalization functions): Add mbscspn.
11180
11181 2007-02-04  Bruno Haible  <bruno@clisp.org>
11182
11183         New module mbscasestr, reduced goal of strcasestr.
11184         * modules/mbscasestr: New file.
11185         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
11186         (mbscasestr): Renamed from strcasestr.
11187         * lib/strcasestr.c: Don't include mbuiter.h.
11188         (strcasestr): Remove support for multibyte locales.
11189         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
11190         Change the conditional link warning.
11191         (mbscasestr): New declaration.
11192         * m4/mbscasestr.m4: New file.
11193         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
11194         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
11195         REPLACE_STRCASESTR.
11196         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
11197         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11198         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
11199         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
11200         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
11201         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
11202         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
11203         (Depends-on): Remove mbuiter.
11204         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
11205
11206 2007-02-04  Bruno Haible  <bruno@clisp.org>
11207
11208         Simplify handling of strncasecmp.
11209         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
11210         the conditional link warning.
11211         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11212         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
11213         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
11214         * modules/strcase (configure.ac): Don't invoke
11215         gl_STRING_MODULE_INDICATOR.
11216         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
11217
11218 2007-02-04  Bruno Haible  <bruno@clisp.org>
11219
11220         New module mbscasecmp, reduced goal of strcasecmp.
11221         * modules/mbscasecmp: New file.
11222         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
11223         (mbscasecmp): Renamed from strcasecmp.
11224         * lib/strcasecmp.c: Don't include mbuiter.h.
11225         (strcasecmp): Remove support for multibyte locales.
11226         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
11227         Change the conditional link warning.
11228         (mbscasecmp): New declaration.
11229         * m4/mbscasecmp.m4: New file.
11230         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
11231         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
11232         REPLACE_STRCASECMP.
11233         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
11234         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11235         GNULIB_MBSCASECMP.
11236         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
11237         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
11238         * modules/strcase (Files): Remove m4/mbrtowc.m4.
11239         (Depends-on): Remove mbuiter.
11240         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
11241
11242 2007-02-04  Bruno Haible  <bruno@clisp.org>
11243
11244         New module mbsstr. Remove module strstr.
11245         * modules/mbsstr: New file.
11246         * modules/strstr: Remove file.
11247         * lib/mbsstr.c: Renamed from lib/strstr.c.
11248         (mbsstr): Renamed from strstr.
11249         * lib/string_.h (strstr): Remove declaration. Change the conditional
11250         link warning.
11251         (mbsstr): New declaration.
11252         * m4/mbsstr.m4: New file.
11253         * m4/strstr.m4: Remove file.
11254         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
11255         REPLACE_STRSTR.
11256         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
11257         Don't initialize GNULIB_STRSTR.
11258         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
11259         substitute GNULIB_STRSTR and REPLACE_STRSTR.
11260         * MODULES.html.sh (Internationalization functions): Add mbsstr.
11261         (Support for systems lacking ANSI C 89): Remove strstr.
11262
11263 2007-02-04  Bruno Haible  <bruno@clisp.org>
11264
11265         New module mbsrchr.
11266         * modules/mbsrchr: New file.
11267         * lib/mbsrchr.c: New file.
11268         * lib/string_.h (strrchr): Add a conditional link warning.
11269         (mbsrchr): New declaration.
11270         * m4/mbsrchr.m4: New file.
11271         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11272         GNULIB_MBSRCHR.
11273         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
11274         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
11275
11276 2007-02-04  Bruno Haible  <bruno@clisp.org>
11277
11278         New module mbschr.
11279         * modules/mbschr: New file.
11280         * lib/mbschr.c: New file.
11281         * lib/string_.h (strchr): Add a conditional link warning.
11282         (mbschr): New declaration.
11283         * m4/mbschr.m4: New file.
11284         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
11285         GNULIB_MBSCHR.
11286         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
11287         * MODULES.html.sh (Internationalization functions): Add mbschr.
11288
11289 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
11290
11291         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
11292
11293         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
11294
11295 2007-02-04  Bruno Haible  <bruno@clisp.org>
11296
11297         New module description section 'configure.ac-early'.
11298         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
11299         (func_get_autoconf_early_snippet): New function.
11300         (func_import, func_create_testdir): Use it. Remove special cases for
11301         modules 'extensions' and 'lock'.
11302         * modules/extensions (configure.ac-early): Require
11303         gl_USE_SYSTEM_EXTENSIONS.
11304         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
11305
11306 2007-02-04  Bruno Haible  <bruno@clisp.org>
11307
11308         Make use of gcj-4.3's -fsource and -ftarget option.
11309         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
11310         and if so try the options -fsource and -ftarget.
11311         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
11312         source_version, ftarget_option, target_version arguments.
11313         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
11314         (is_envjavac_oldgcj_14_14_usable): Renamed from
11315         is_envjavac_gcj_14_14_usable.
11316         (is_envjavac_oldgcj_14_13_usable): Renamed from
11317         is_envjavac_gcj_14_13_usable.
11318         (is_gcj_present): Update.
11319         (is_gcj_43, is_gcj43_usable): New functions.
11320         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
11321         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
11322         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
11323         try the options -fsource and -ftarget.
11324
11325 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
11326
11327         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
11328         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
11329         larger value.
11330
11331 2007-02-03  Jim Meyering  <jim@meyering.net>
11332
11333         Give tools a better chance to allocate space for very large buffers.
11334         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
11335
11336         Make pwd and readlink work also when run with an unreadable parent dir
11337         on systems with openat support.
11338         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
11339         provided getcwd function, even when we have openat support.
11340         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
11341
11342 2007-02-02  Bruno Haible  <bruno@clisp.org>
11343
11344         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
11345         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
11346         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
11347         portability problems if one of these functions is only used on specific
11348         platforms.
11349         Reported by Paul Eggert.
11350
11351 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
11352
11353         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
11354         is causing more trouble than it's curing.
11355         * lib/regex_internal.h (__mempcpy): Remove.
11356         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
11357         (and make the code a tad smaller to boot).
11358         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
11359
11360 2007-02-02  Jim Meyering  <jim@meyering.net>
11361
11362         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
11363         section, not in the Makefile.am: one.
11364
11365 2007-02-02  Eric Blake  <ebb9@byu.net>
11366
11367         * lib/strchrnul.c: Always include config.h first.
11368
11369         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
11370         gnulib strstr is not necessary here.
11371
11372 2007-02-02  Simon Josefsson  <simon@josefsson.org>
11373
11374         * m4/socklen.m4: Fix typo.
11375
11376 2007-02-02  Eric Blake  <ebb9@byu.net>
11377
11378         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
11379         * modules/netinet_in (Makefile.am): Likewise.
11380
11381 2007-02-01  Bruno Haible  <bruno@clisp.org>
11382
11383         * lib/string_.h (GL_LINK_WARNING): New macro.
11384         (strcasecmp, strstr, strcasestr): If provided by the system,
11385         conditionally define as a macro that leads to a warning instead of to
11386         an error.
11387         (strncasecmp): Conditionally define as a macro that leads to a warning.
11388
11389 2007-02-01  Karl Berry  <karl@gnu.org>
11390
11391         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
11392
11393 2007-02-01  Bruno Haible  <bruno@clisp.org>
11394
11395         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
11396         renamings.
11397
11398 2007-02-01  Eric Blake  <ebb9@byu.net>
11399
11400         * modules/regex (Depends-on): Revert dependence on mempcpy.
11401         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
11402         module's definition of mempcpy.
11403         Reported by Paul Eggert.
11404
11405 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
11406
11407         * lib/string_.h: If the gnulib module XYZ is not present, undefine
11408         the symbol XYZ before redefining it.  This fixes a problem with
11409         programs that don't use XYZ, when compiled on systems that define
11410         XYZ to something else.
11411
11412 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
11413
11414         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
11415         occurs when "mkdir -m foo" creates a setgid directory that is (1)
11416         writeable to group or other and (2) is intended to have a special
11417         mode bit that is set or cleared.  In such a case, the directory
11418         should be neither group- nor other-writeable until the special
11419         mode bits are right.
11420
11421 2007-01-31  Eric Blake  <ebb9@byu.net>
11422
11423         * modules/mountlist (Depends-on): Add strstr.
11424
11425         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
11426         bug.
11427         * modules/string (Makefile.am): Remove redundant replacement.
11428         * modules/regex (Depends-on): Add mempcpy.
11429
11430 2007-01-31  Bruno Haible  <bruno@clisp.org>
11431
11432         New module description field 'Link'.
11433         * gnulib-tool (func_usage): Document --extract-link-directive.
11434         (sed_extract_prog): Recognize 'Link' directive.
11435         (func_get_link_directive): New function.
11436         (func_import): Show summary of link directives.
11437         Handle --extract-link-directive option.
11438         * modules/acl (Link): New section.
11439         * modules/clock-time (Link): New section.
11440         * modules/euidaccess (Link): New section.
11441         * modules/gettext (Link): New section.
11442         * modules/iconv (Link): New section.
11443         * modules/lock (Link): New section.
11444         * modules/nanosleep (Link): New section.
11445         * modules/readline (Link): New section.
11446
11447 2007-01-27  Bruno Haible  <bruno@clisp.org>
11448
11449         Enforce the use of gnulib modules for unportable <string.h> functions.
11450         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
11451         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
11452         (gl_HEADER_STRING_H_BODY): Require it.
11453         * lib/string_.h: If the gnulib module XYZ is not present, redefine
11454         the symbol XYZ to one that gives a link error.
11455         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
11456         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
11457         * modules/mempcpy (configure.ac): Likewise.
11458         * modules/memrchr (configure.ac): Likewise.
11459         * modules/stpcpy (configure.ac): Likewise.
11460         * modules/stpncpy (configure.ac): Likewise.
11461         * modules/strcase (configure.ac): Likewise.
11462         * modules/strcasestr (configure.ac): Likewise.
11463         * modules/strchrnul (configure.ac): Likewise.
11464         * modules/strdup (configure.ac): Likewise.
11465         * modules/strndup (configure.ac): Likewise.
11466         * modules/strnlen (configure.ac): Likewise.
11467         * modules/strpbrk (configure.ac): Likewise.
11468         * modules/strsep (configure.ac): Likewise.
11469         * modules/strstr (configure.ac): Likewise.
11470         * modules/strtok_r (configure.ac): Likewise.
11471
11472 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
11473
11474         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
11475
11476 2007-01-30  Jim Meyering  <jim@meyering.net>
11477
11478         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
11479
11480 2007-01-29  Bruno Haible  <bruno@clisp.org>
11481
11482         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
11483         * lib/execute.c: Likewise.
11484         * lib/pipe.c: Likewise.
11485         * lib/printf-args.h: Likewise.
11486         * lib/printf-args.c: Likewise.
11487         * lib/printf-parse.c: Likewise.
11488         * lib/vasnprintf.c: Likewise.
11489
11490 2007-01-29  Eric Blake  <ebb9@byu.net>
11491
11492         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
11493         declaration.
11494
11495 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
11496
11497         * lib/strptime.h (strptime): Use 'restrict' for args where
11498         POSIX requires this.
11499         * lib/strptime.c (strptime): Likewise.
11500         Change license notice from LGPL to GPL, since gnulib-tool will
11501         change this as needed.
11502         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
11503         defined.
11504         Include "strptime.h" first, to check interface.
11505         Do not #undef _LIBC and _NL_CURRENT.
11506         Do not include <stdlib.h>; no longer needed.
11507         Include "time_r.h" and declare ptime_locale_status
11508         only if _LIBC is not defined.
11509         (__P): Remove unused macro.
11510         (match_string): Bring back glibc version, but use it only if _LIBC
11511         is defined.
11512         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
11513         Remove unnecessary assertion and abort() call.
11514         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
11515         * m4/strptime.m4: Fix serial number comment.
11516         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
11517         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
11518         (Depends-on): Add time_r.
11519
11520 2007-01-29  Bruno Haible  <bruno@clisp.org>
11521
11522         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
11523         strptime.
11524         * modules/strptime (Depends-on): Add stdbool.
11525         * lib/strptime.h: Include <time.h> always. Add comments.
11526
11527 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
11528
11529         * modules/strptime: New file.
11530         * lib/strptime.h: New file.
11531         * lib/strptime.c: New file.
11532         * m4/strptime.m4: New file.
11533
11534 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
11535
11536         * MODULES.html.sh: New module mpsort.
11537         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
11538
11539         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
11540         a circularity problem with HP-UX ia64 reported by Bob Proulx in
11541         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
11542         All uses changed.
11543         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
11544         All uses changed.
11545         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
11546         to _Restrict_.
11547         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
11548         the parameter matches the prototype.
11549
11550 2007-01-28  Jim Meyering  <jim@meyering.net>
11551
11552         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
11553         sys/time.h here, reverting that part of the previous patch:
11554         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
11555
11556 2007-01-28  Bruno Haible  <bruno@clisp.org>
11557
11558         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
11559         value of $(SYS_TIME_H).
11560         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
11561         remove it conditionally, too. [added by Jim Meyering]
11562         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
11563         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
11564         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
11565         GETTIMEOFDAY_REPLACEMENT to 1.
11566
11567 2007-01-28  Bruno Haible  <bruno@clisp.org>
11568
11569         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
11570         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
11571         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
11572         Set UNISTD_H instead of UNISTD_H2.
11573         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
11574
11575 2007-01-28  Bruno Haible  <bruno@clisp.org>
11576
11577         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
11578         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
11579
11580 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11581
11582         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
11583         (func_create_testdir): Ensure C locale for `grep' and `tr'
11584         character ranges.
11585         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
11586         ACLOCAL_AMFLAGS parsing state machine.
11587
11588 2007-01-27  Bruno Haible  <bruno@clisp.org>
11589
11590         * modules/unistr/base: Update.
11591
11592 2007-01-27  Bruno Haible  <bruno@clisp.org>
11593
11594         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
11595         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
11596         * modules/unistr/u32-mbtouc-unsafe: Renamed from
11597         modules/unistr/u32-mbtouc.
11598         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
11599         * lib/unistr.h: Update.
11600         * lib/linebreak.c: Update.
11601         * modules/unistr/u32-mbtouc: Renamed from
11602         modules/unistr/u32-mbtouc-safe.
11603         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
11604         * lib/unistr.h: Update.
11605         * lib/unistr/u32-to-u8.c: Update.
11606         * lib/unistr/u32-to-u16.c: Update.
11607
11608 2007-01-27  Bruno Haible  <bruno@clisp.org>
11609
11610         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
11611         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
11612         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
11613         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
11614         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
11615         * modules/unistr/u16-mbtouc-unsafe: Renamed from
11616         modules/unistr/u16-mbtouc.
11617         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
11618         * lib/unistr.h: Update.
11619         * lib/linebreak.c: Update.
11620         * modules/linebreak: Update.
11621         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
11622         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
11623         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
11624         * modules/unistr/u16-mbtouc: Renamed from
11625         modules/unistr/u16-mbtouc-safe.
11626         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
11627         * lib/unistr.h: Update.
11628         * lib/unistr/u16-to-u8.c: Update.
11629         * modules/unistr/u16-to-u8: Update.
11630         * lib/unistr/u16-to-u32.c: Update.
11631         * modules/unistr/u16-to-u32: Update.
11632
11633 2007-01-27  Bruno Haible  <bruno@clisp.org>
11634
11635         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
11636         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
11637         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
11638         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
11639         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
11640         * modules/unistr/u8-mbtouc-unsafe: Renamed from
11641         modules/unistr/u8-mbtouc.
11642         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
11643         * lib/unistr.h: Update.
11644         * lib/striconveh.c: Update.
11645         * modules/striconveh: Update.
11646         * lib/linebreak.c: Update.
11647         * modules/linebreak: Update.
11648         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
11649         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
11650         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
11651         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
11652         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
11653         * lib/unistr.h: Update.
11654         * lib/striconveh.c: Update.
11655         * modules/striconveh: Update.
11656         * lib/unistr/u8-to-u16.c: Update.
11657         * modules/unistr/u8-to-u16: Update.
11658         * lib/unistr/u8-to-u32.c: Update.
11659         * modules/unistr/u8-to-u32: Update.
11660
11661 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11662
11663         Sync from Libtool.
11664         * lib/argz.c: Do not include strings.h nor memory.h, include
11665         string.h unconditionally.  Patch by Simon Josefsson.
11666
11667 2007-01-27  Bruno Haible  <bruno@clisp.org>
11668
11669         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
11670         from gl_HEADER_STRING_H_BODY.
11671         (gl_HEADER_STRING_H_BODY): Require it.
11672         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
11673         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
11674         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
11675         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
11676         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11677         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
11678         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11679         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
11680         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
11681         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
11682         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
11683         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
11684         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
11685         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
11686         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
11687
11688 2007-01-27  Bruno Haible  <bruno@clisp.org>
11689
11690         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
11691         check_PROGRAMS into noinst_PROGRAMS.
11692         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
11693         check_PROGRAMS in this case.
11694         (func_import): Set for_test to false.
11695         (func_create_testdir): Set for_test to true.
11696
11697 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
11698             Bruno Haible  <bruno@clisp.org>
11699
11700         * modules/strcasestr (Files): Remove lib/strcasestr.h.
11701         (Depends-on): Add string.
11702         (Includes): Use <string.h> instead of strcasestr.h.
11703         * modules/string (Makefile.am): Also substitute the value of
11704         REPLACE_STRCASESTR.
11705         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
11706         assume strcasestr is declared in <string.h> not <strings.h>. Also
11707         set REPLACE_STRCASESTR.
11708         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
11709         REPLACE_STRCASESTR.
11710         * lib/strcasestr.h: Remove file.
11711         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
11712         * lib/string_.h (strcasestr): New declaration.
11713
11714 2007-01-27  Bruno Haible  <bruno@clisp.org>
11715
11716         * lib/string_.h: Use 'extern'.
11717
11718 2007-01-27  Jim Meyering  <jim@meyering.net>
11719
11720         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
11721         of set-but-not-used local, "q".
11722
11723         * lib/mempcpy.c: Include <config.h> before <string.h>.
11724         This fixes a compilation error on HP-UX, due to the system's
11725         "restrict"-using mempcpy prototype.
11726
11727 2007-01-26  Bruno Haible  <bruno@clisp.org>
11728
11729         Small optimization.
11730         * lib/javacomp.c: Include c-strstr.h.
11731          (is_envjavac_gcj): Use c_strstr instead of strstr.
11732         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
11733
11734 2007-01-26  Bruno Haible  <bruno@clisp.org>
11735
11736         * MODULES.html.sh (Unicode string functions): Add the new modules.
11737
11738         * modules/uniconv/u32-strconv-to-locale: New file.
11739         * lib/uniconv/u32-strconv-to-locale.c: New file.
11740
11741         * modules/uniconv/u16-strconv-to-locale: New file.
11742         * lib/uniconv/u16-strconv-to-locale.c: New file.
11743
11744         * modules/uniconv/u8-strconv-to-locale: New file.
11745         * lib/uniconv/u8-strconv-to-locale.c: New file.
11746
11747         * modules/uniconv/u32-strconv-from-locale: New file.
11748         * lib/uniconv/u32-strconv-from-locale.c: New file.
11749
11750         * modules/uniconv/u16-strconv-from-locale: New file.
11751         * lib/uniconv/u16-strconv-from-locale.c: New file.
11752
11753         * modules/uniconv/u8-strconv-from-locale: New file.
11754         * lib/uniconv/u8-strconv-from-locale.c: New file.
11755
11756         * modules/uniconv/u32-strconv-to-enc: New file.
11757         * lib/uniconv/u32-strconv-to-enc.c: New file.
11758         * modules/uniconv/u32-strconv-to-enc-tests: New file.
11759         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
11760
11761         * modules/uniconv/u16-strconv-to-enc: New file.
11762         * lib/uniconv/u16-strconv-to-enc.c: New file.
11763         * lib/uniconv/u-strconv-to-enc.h: New file.
11764         * modules/uniconv/u16-strconv-to-enc-tests: New file.
11765         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
11766
11767         * modules/uniconv/u8-strconv-to-enc: New file.
11768         * lib/uniconv/u8-strconv-to-enc.c: New file.
11769         * modules/uniconv/u8-strconv-to-enc-tests: New file.
11770         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
11771
11772         * modules/uniconv/u32-strconv-from-enc: New file.
11773         * lib/uniconv/u32-strconv-from-enc.c: New file.
11774         * modules/uniconv/u32-strconv-from-enc-tests: New file.
11775         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
11776
11777         * modules/uniconv/u16-strconv-from-enc: New file.
11778         * lib/uniconv/u16-strconv-from-enc.c: New file.
11779         * modules/uniconv/u16-strconv-from-enc-tests: New file.
11780         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
11781
11782         * modules/uniconv/u8-strconv-from-enc: New file.
11783         * lib/uniconv/u8-strconv-from-enc.c: New file.
11784         * lib/uniconv/u-strconv-from-enc.h: New file.
11785         * modules/uniconv/u8-strconv-from-enc-tests: New file.
11786         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
11787
11788         * modules/uniconv/u32-conv-from-enc: New file.
11789         * lib/uniconv/u32-conv-from-enc.c: New file.
11790         * modules/uniconv/u32-conv-from-enc-tests: New file.
11791         * tests/uniconv/test-u32-conv-from-enc.c: New file.
11792
11793         * modules/uniconv/u16-conv-from-enc: New file.
11794         * lib/uniconv/u16-conv-from-enc.c: New file.
11795         * lib/uniconv/u-conv-from-enc.h: New file.
11796         * modules/uniconv/u16-conv-from-enc-tests: New file.
11797         * tests/uniconv/test-u16-conv-from-enc.c: New file.
11798
11799         * modules/uniconv/u8-conv-from-enc: New file.
11800         * lib/uniconv/u8-conv-from-enc.c: New file.
11801         * modules/uniconv/u8-conv-from-enc-tests: New file.
11802         * tests/uniconv/test-u8-conv-from-enc.c: New file.
11803
11804         * modules/uniconv/base: New file.
11805         * lib/uniconv.h: New file.
11806
11807 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
11808
11809         * doc/gnulib-tool.texi (Initial import): Update to match current
11810         behavior with strdup module.
11811         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
11812         * lib/memmem.h: Remove; all uses removed.  This is now done
11813         by <string.h>.
11814         * lib/mempcpy.h: Likewise.
11815         * lib/memrchr.h: Likewise.
11816         * lib/stpcpy.h: Likewise.
11817         * lib/stpncpy.h: Likewise.
11818         * lib/strcase.h: Likewise.
11819         * lib/strchrnul.h: Likewise.
11820         * lib/strdup.h: Likewise.
11821         * lib/strndup.h: Likewise.
11822         * lib/strnlen.h: Likewise.
11823         * lib/strpbrk.h: Likewise.
11824         * lib/strsep.h: Likewise.
11825         * lib/strstr.h: Likewise.
11826         * lib/strtok_r.h: Likewise.
11827         * lib/string_.h: New file.
11828         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
11829         Rely on <string.h> instead.
11830         * lib/canon-host.c: Likewise.
11831         * lib/chdir-long.c: Likewise.
11832         * lib/concatpath.c: Likewise.
11833         * lib/exclude.c: Likewise.
11834         * lib/fchdir.c: Likewise.
11835         * lib/getaddrinfo.c: Likewise.
11836         * lib/getcwd.c: Likewise.
11837         * lib/getsubopt.c: Likewise.
11838         * lib/glob.c: Likewise.
11839         * lib/hard-locale.c: Likewise.
11840         * lib/iconvme.c: Likewise.
11841         * lib/javacomp.c: Likewise.
11842         * lib/mempcpy.c: Likewise.
11843         * lib/memrchr.c: Likewise.
11844         * lib/regex_internal.h: Likewise.
11845         * lib/stpncpy.c: Likewise.
11846         * lib/strcasecmp.c: Likewise.
11847         * lib/strchrnul.c: Likewise.
11848         * lib/strdup.c: Likewise.
11849         * lib/striconv.c: Likewise.
11850         * lib/striconveh.c: Likewise.
11851         * lib/striconveha.c: Likewise.
11852         * lib/strncasecmp.c: Likewise.
11853         * lib/strndup.c: Likewise.
11854         * lib/strnlen.c: Likewise.
11855         * lib/strsep.c: Likewise.
11856         * lib/strstr.c: Likewise.
11857         * lib/strtok_r.c: Likewise.
11858         * lib/userspec.c: Likewise.
11859         * lib/w32spawn.h: Likewise.
11860         * lib/xstrndup.c: Likewise.
11861         * lib/mountlist.c (strstr): Remove decl.
11862         * m4/string_h.m4: New file.
11863         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
11864         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
11865         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
11866         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
11867         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
11868         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
11869         Set REPLACE_STRCASECMP if necessary.
11870         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
11871         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
11872         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
11873         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
11874         HAVE_DECL_STRDUP if necessary.
11875         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
11876         since gl_FUNC_STRNDUP does that now.
11877         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
11878         Check for decl here...
11879         (gl_PREREQ_STRNLEN): ... not here.
11880         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
11881         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
11882         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
11883         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
11884         necessary.
11885         * modules/string: New file.
11886         * modules/memmem (Files): Remove special-purpose include file.
11887         (Depends-on): Add string.
11888         (Include): Include <string.h>, not the removed file.
11889         * modules/mempcpy: Likewise.
11890         * modules/memrchr: Likewise.
11891         * modules/stpcpy: Likewise.
11892         * modules/stpncpy: Likewise.
11893         * modules/strcase: Likewise.
11894         * modules/strchrnul: Likewise.
11895         * modules/strdup: Likewise.
11896         * modules/strndup: Likewise.
11897         * modules/strnlen: Likewise.
11898         * modules/strpbrk: Likewise.
11899         * modules/strsep: Likewise.
11900         * modules/strstr: Likewise.
11901         * modules/strtok_r: Likewise.
11902         * tests/test-dirname.c: Don't include "strdup.h", since
11903         <string.h> now suffices.
11904         * tests/test-memmem.c: Don't include "memmem.h", since
11905         <string.h> now suffices.
11906
11907 2007-01-25  Bruno Haible  <bruno@clisp.org>
11908
11909         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
11910         *resultp is 0.
11911
11912         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
11913         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
11914         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
11915         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
11916
11917         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
11918         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
11919         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
11920         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
11921         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
11922         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
11923
11924 2007-01-24  Bruno Haible  <bruno@clisp.org>
11925
11926         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
11927         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
11928         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
11929         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
11930         gl_FUNC_FTS_CORE.
11931         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
11932         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
11933         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
11934         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
11935         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
11936         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
11937         gl_FUNC_FCHOWNAT.
11938         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
11939         gl_FUNC_STRFTIME.
11940         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
11941         Reported by Ralf Wildenhues.
11942
11943 2007-01-24  Bruno Haible  <bruno@clisp.org>
11944
11945         Drop AC_REQUIRE calls that are redundant with the module dependencies.
11946         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
11947         gl_GETADDRINFO.
11948         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
11949         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
11950         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
11951
11952 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
11953
11954         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
11955         Don't use 'exit'; just return from 'main'.
11956         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
11957
11958         * lib/fnmatch_.h: Readjust white space and comments to match
11959         glibc, to avoid spurious diffs.
11960
11961 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11962
11963         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
11964         2004-12-01 change by Jakub Jelinek, since this code won't compile
11965         if !LIBC.  Problem reported by Bob Proulx.
11966
11967 2007-01-23  Bruno Haible  <bruno@clisp.org>
11968
11969         * lib/striconveh.c: Include c-strcaseeq.h.
11970         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
11971         * modules/striconveh (Depends-on): Add c-strcaseeq.
11972
11973 2007-01-23  Bruno Haible  <bruno@clisp.org>
11974
11975         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
11976
11977         * modules/c-strcaseeq: New file.
11978         * lib/c-strcaseeq.h: New file.
11979
11980         * modules/streq: New file.
11981         * lib/streq.h: New file.
11982
11983 2007-01-23  Bruno Haible  <bruno@clisp.org>
11984
11985         * modules/striconveha-tests: New file.
11986         * tests/test-striconveha.c: New file.
11987
11988         * lib/striconveha.h: Include <stdbool.h>.
11989         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
11990         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
11991         (mem_iconveha_notranslit): Renamed from mem_iconveha.
11992         (mem_iconveha): New function.
11993         (str_iconveha_notranslit): Renamed from str_iconveha.
11994         (str_iconveha): New function.
11995         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
11996         c-strcase.
11997
11998 2007-01-23  Bruno Haible  <bruno@clisp.org>
11999
12000         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
12001         encodings without forgiving before trying any encoding with handler.
12002         (str_iconveha): Try all encodings without forgiving before trying any
12003         encoding with handler.
12004
12005 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12006
12007         Import the following changes from libc.
12008
12009         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
12010
12011         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
12012
12013         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
12014
12015         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
12016         normal_bracket label.
12017
12018         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
12019
12020         [BZ #361]
12021         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
12022         to normal_bracket after fetching the next character.
12023
12024 2007-01-22  Bruno Haible  <bruno@clisp.org>
12025
12026         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
12027         argument.
12028         * lib/striconveh.c (iconv_carefully_1): New function.
12029         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
12030         argument.
12031         (str_cd_iconveh): Update.
12032         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
12033         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
12034         * tests/test-striconveh.c (MAGIC): New macro.
12035         (new_offsets): New function.
12036         (main): Test call with and without offsets.
12037
12038 2007-01-22  Bruno Haible  <bruno@clisp.org>
12039
12040         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
12041         * modules/sys_select (Makefile.am): Likewise.
12042         * modules/sys_socket (Makefile.am): Likewise.
12043         * modules/sys_time (Makefile.am): Likewise.
12044
12045 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
12046
12047         * modules/gettimeofday (License): Change from GPL to LGPL, since
12048         gettimeofday is a library function.
12049
12050 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12051
12052         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
12053
12054 2007-01-21  Bruno Haible  <bruno@clisp.org>
12055
12056         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
12057
12058 2007-01-21  Bruno Haible  <bruno@clisp.org>
12059
12060         * modules/striconveha: New file.
12061         * lib/striconveha.h: New file.
12062         * lib/striconveha.c: New file.
12063         * MODULES.html.sh (Internationalization functions): Add striconveha.
12064         * lib/striconv.c (str_iconv): Optimize the case of an empty input
12065         string.
12066         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
12067
12068 2007-01-21  Bruno Haible  <bruno@clisp.org>
12069
12070         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
12071         * lib/striconveh.c (str_iconveh): Likewise.
12072
12073 2007-01-21  Bruno Haible  <bruno@clisp.org>
12074
12075         * lib/striconveh.h (mem_iconveh): New declaration.
12076         * lib/striconveh.c (mem_iconveh): New function.
12077         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
12078
12079 2007-01-21  Bruno Haible  <bruno@clisp.org>
12080
12081         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
12082
12083         * lib/striconveh.h (mem_cd_iconveh): Change specification.
12084         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
12085         original result buffer.
12086         (str_cd_iconveh): Update.
12087         * tests/test-striconveh.c (main): Update.
12088
12089         * lib/striconv.h (mem_cd_iconv): Change specification.
12090         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
12091         result buffer.
12092         (str_cd_iconv): Update.
12093         * tests/test-striconv.c (main): Update.
12094
12095 2007-01-21  Bruno Haible  <bruno@clisp.org>
12096
12097         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
12098
12099 2007-01-20  Jim Meyering  <jim@meyering.net>
12100
12101         * lib/userspec.c (parse_with_separator): If a user or group string
12102         starts with "+", skip the corresponding name-to-ID look-up, since
12103         such a look-up must fail: user and group names may not include "+".
12104
12105 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
12106
12107         * lib/poll.c: Include sys/time.h and time.h unconditionally,
12108         since we now assume the sys_time module.
12109         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
12110         check for sys/time.h; no longer needed.
12111         * modules/poll (Depends-on): Depend on sys_time.
12112
12113 2007-01-18  Bruno Haible  <bruno@clisp.org>
12114
12115         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
12116         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
12117
12118         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
12119         gettimeofday.
12120
12121         * tests/test-gettimeofday.c: Include <time.h>.
12122         (dummy): Remove variable.
12123
12124         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
12125         gl_HEADER_SYS_TIME_H.
12126         (gl_HEADER_SYS_TIME_H): New macro.
12127
12128         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
12129         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
12130         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
12131         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
12132         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
12133         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
12134         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
12135         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
12136         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
12137         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
12138         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
12139
12140         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
12141         last change; it caused a compilation error when cross-compiling to
12142         Cygwin.
12143
12144 2007-01-18  Jim Meyering  <jim@meyering.net>
12145
12146         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
12147         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
12148         than the race-prone "test -d sys || mkdir sys".
12149         (configure.ac): Use AC_PROG_MKDIR_P.
12150         * modules/sys_select: Likewise.
12151         * modules/sys_socket: Likewise.
12152         * modules/sys_time: Likewise.
12153
12154 2007-01-18  Eric Blake  <ebb9@byu.net>
12155
12156         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
12157         replace gettimeofday.
12158         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
12159         name, to avoid infinite recursion.
12160
12161 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
12162
12163         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
12164         module sys_time.
12165         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
12166         assume timespec.h defines struct timeval.
12167         * lib/settime.c: Likewise.
12168         * lib/utimens.c: Likewise.
12169         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
12170         since we now assume the gettimeofday module.
12171         * lib/tempname.c (__gen_tempname): Likewise.
12172         * lib/gettimeofday.h: Remove.
12173         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
12174         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
12175         Include <time.h>, for 'time()'.
12176         (localtime_buffer_addr): Also use this workaround if
12177         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
12178         to simplify the uses.  All uses changed.
12179         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
12180         that #undef is inside {}, and 'const' follows type name consistently.
12181         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
12182         (gettimeofday): Do not use the maximum possible value for
12183         tv->tv_usec, since that might break usages other than ls.c.
12184         Instead, we'll leave ls.c alone.  This undoes today's patch
12185         by Bruno.  Add a compile-time warning for 1s-clock resolution;
12186         we've never observed the problem but might as well keep the
12187         canary.
12188         * lib/nanosleep.c: Include timespec.h first, for interface check.
12189         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
12190         now assume the sys_time module.
12191         * lib/tempname.c: Likewise.
12192         * lib/timespec.h: Likewise.
12193         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
12194         needed.
12195         * lib/strftime.c: Likewise.
12196         * lib/timespec.h: Likewise.
12197         * lib/posixtm.c: Include posixtm.h first, for interface check.
12198         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
12199         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
12200         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
12201         * lib/sys_time_.h: New file.
12202         * lib/timespec.h (struct timespec): Use long int, not long.
12203         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
12204         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
12205         Remove obsolescent call to AC_HEADER_TIME.
12206         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
12207         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12208         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
12209         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
12210         Likewise.
12211         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
12212         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
12213         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
12214         into the sys_time module.  Check for gettimeofday just once.
12215         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
12216         for gettimeofday signature to just check the signature.  Merely
12217         compile it, since linking doesn't test signature.  Improve test for
12218         whether gettimeofday.o is actually needed.
12219         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
12220         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
12221         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
12222         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
12223         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
12224         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
12225         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
12226         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
12227         than worrying about sys/time.h.
12228         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
12229         Don't bother worrying about TIME_WITH_SYS_TIME.
12230         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
12231         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
12232         * m4/sys_time_h.m4: New file.
12233         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
12234         Don't include sys/time.h.  Return from main rather than exiting.
12235         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
12236         all uses changed.
12237         * modules/gethrxtime (Depends-on): Add sys_time.
12238         * modules/gettime (Depends-on): Likewise.
12239         * modules/gettimeofday (Depends-on): Likewise.
12240         * modules/nanosleep (Depends-on): Likewise.
12241         * modules/settime (Depends-on): Likewise.
12242         * modules/tempname (Depends-on): Likewise.
12243         * modules/utimens (Depends-on): Likewise.
12244         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
12245         (Include:) Change back to <sys/time.h>.
12246         (Maintainer:) Add self.
12247         * modules/sys_time: New file.
12248         * modules/tempname (Depends-on): Add gettimeofday.
12249         * tests/test-gettimeofday.c: Include <sys/time.h>
12250         rather than gettimeofday.h.
12251
12252 2007-01-17  Bruno Haible  <bruno@clisp.org>
12253
12254         * gnulib-tool (func_get_license): Revert last patch. Instead, let
12255         the license default to GPL.
12256         (func_create_testdir): Don't complain if a module is LGPL and its
12257         tests module depends on GPLed modules.
12258
12259 2007-01-17  Bruno Haible  <bruno@clisp.org>
12260
12261         * lib/gettimeofday.c (gettimeofday): Add code for the case
12262         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
12263         maximum possible value for tv->tv_usec, rather than the minimum one.
12264
12265 2005-10-08  Martin Lambers  <marlam@marlam.de>
12266 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
12267 2007-01-16  Bruno Haible  <bruno@clisp.org>
12268
12269         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
12270         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
12271         gl_FUNC_GETTIMEOFDAY.
12272         (Include): Add gettimeofday.h.
12273         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
12274         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
12275         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
12276         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
12277         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
12278         * lib/gettimeofday.h: New file.
12279         * lib/gettimeofday.c: Include <sys/timeb.h>.
12280         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
12281         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
12282         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
12283         fall back on time().
12284
12285         * tests/test-gettimeofday.c: New file.
12286         * modules/gettimeofday-tests: New file.
12287
12288 2007-01-16  Eric Blake  <ebb9@byu.net>
12289
12290         * modules/fnmatch (Depends-on): Depend on wchar.
12291         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
12292         * m4/fnmatch.m4: Likewise.
12293         * modules/mbchar (Makefile.am): Assume <wchar.h>.
12294         * m4/mbchar.m4: Likewise.
12295         * modules/mbswidth (Depends-on): Depend on wchar.
12296         * lib/mbswidth.c: Assume <wchar.h>.
12297         * m4/mbswidth.m4: Likewise.
12298         * modules/quotearg (Depends-on): Depend on wchar.
12299         * lib/quotearg.c: Assume <wchar.h>.
12300         * m4/quotearg.m4: Likewise.
12301         * modules/regex (Depends-on): Depend on wchar.
12302         * lib/regex_internal.h: Assume <wchar.h>.
12303         * m4/regex.m4: Likewise.
12304         * modules/stdint (Depends-on): Depend on wchar.
12305         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
12306         * m4/stdint.m4: Likewise.
12307         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
12308         * modules/strftime (Depends-on): Depend on wchar.
12309         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
12310         * modules/strtol (Depends-on): Depend on wchar.
12311         * lib/strtol.c: Assume <wchar.h>.
12312         * modules/wcwidth (Depends-on): Depend on wchar.
12313         * lib/wcwidth.h: Assume <wchar.h>.
12314         * m4/wcwidth.m4: Likewise.
12315
12316 2007-01-16  Bruno Haible  <bruno@clisp.org>
12317
12318         * modules/csharpexec-script: New, created from...
12319         * modules/csharpexec: ... this.
12320
12321 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
12322
12323         * modules/javaexec-script: New, created from...
12324         * modules/javaexec: ... this.
12325
12326 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12327
12328         * modules/poll (Dependencies): Add sys_select.
12329
12330 2007-01-15  Jim Meyering  <jim@meyering.net>
12331
12332         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
12333         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
12334         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
12335         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
12336
12337 2007-01-15  Bruno Haible  <bruno@clisp.org>
12338
12339         * modules/striconveh: New file.
12340         * lib/striconveh.h: New file.
12341         * lib/striconveh.c: New file.
12342         * MODULES.html.sh (Internationalization functions): Add striconveh.
12343
12344         * modules/striconveh-tests: New file.
12345         * tests/test-striconveh.c: New file.
12346
12347 2007-01-15  Bruno Haible  <bruno@clisp.org>
12348
12349         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
12350         not from GNU libiconv or GNU libc.
12351
12352 2007-01-15  Bruno Haible  <bruno@clisp.org>
12353
12354         * doc/gnulib-intro.texi (Copyright): Explain the different license
12355         terms for module descriptions, autoconf macros, tests, documentation.
12356
12357 2007-01-14  Bruno Haible  <bruno@clisp.org>
12358
12359         * modules/striconv-tests: New file.
12360         * tests/test-striconv.c: New file.
12361
12362 2007-01-14  Bruno Haible  <bruno@clisp.org>
12363
12364         * modules/iconv-tests: New file.
12365         * tests/test-iconv.c: New file.
12366
12367 2007-01-14  Bruno Haible  <bruno@clisp.org>
12368
12369         * gnulib-tool (func_get_license): For test modules, use the license of
12370         the main module.
12371
12372 2007-01-14  Bruno Haible  <bruno@clisp.org>
12373
12374         * modules/iconv (Include): Clarify that <iconv.h> can only be included
12375         if iconv is found to exist.
12376
12377 2007-01-14  Bruno Haible  <bruno@clisp.org>
12378
12379         * modules/c-ctype-tests: New file.
12380         * tests/test-c-ctype.c: New file.
12381
12382 2007-01-14  Bruno Haible  <bruno@clisp.org>
12383
12384         * modules/binary-io-tests: New file.
12385         * tests/test-binary-io.sh: New file.
12386         * tests/test-binary-io.c: New file.
12387
12388 2007-01-14  Bruno Haible  <bruno@clisp.org>
12389
12390         * modules/array-oset-tests: New file.
12391         * tests/test-array_oset.c: New file.
12392
12393 2007-01-14  Bruno Haible  <bruno@clisp.org>
12394
12395         * modules/array-list-tests: New file.
12396         * tests/test-array_list.c: New file.
12397
12398 2007-01-14  Bruno Haible  <bruno@clisp.org>
12399
12400         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
12401         and make.
12402         Reported by Simon Josefsson in
12403         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
12404
12405 2007-01-14  Bruno Haible  <bruno@clisp.org>
12406
12407         * modules/allocsa-tests: New file.
12408         * tests/test-allocsa.c: New file.
12409
12410 2007-01-14  Bruno Haible  <bruno@clisp.org>
12411
12412         * modules/fchdir (Depends-on): Add absolute-header.
12413         * modules/unistd (Depends-on): Likewise.
12414
12415 2006-12-30  Bruno Haible  <bruno@clisp.org>
12416
12417         * modules/fchdir: New file.
12418         * modules/unistd (Files): Add lib/unistd_.h.
12419         (Makefile.am): Generate unistd.h from unistd_.h.
12420         * lib/fchdir.c: New file.
12421         * lib/dirent_.h: New file.
12422         * lib/unistd_.h: New file.
12423         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
12424         * m4/fchdir.m4: New file.
12425         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
12426         (gl_HEADER_UNISTD): Invoke it.
12427         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
12428         function.
12429         * lib/backupfile.c (opendir, closedir): Undefine.
12430         * lib/chown.c (open, close): Undefine.
12431         * lib/clean-temp.c (open, close): Undefine.
12432         * lib/copy-file.c (open, close): Undefine.
12433         * lib/execute.c (open, close): Undefine.
12434         * lib/fsusage.c (open, close): Undefine.
12435         * lib/gc-gnulib.c (open, close): Undefine.
12436         * lib/getcwd.c (opendir, closedir): Undefine.
12437         * lib/glob.c (opendir, closedir): Undefine.
12438         * lib/javacomp.c (open, close): Undefine.
12439         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
12440         * lib/openat-proc.c (open, close): Undefine.
12441         * lib/pagealign_alloc.c (open, close): Undefine.
12442         * lib/pipe.c (open, close): Undefine.
12443         * lib/progreloc.c (open, close): Undefine.
12444         * lib/savedir.c (opendir, closedir): Undefine.
12445         * lib/utime.c (open, close): Undefine.
12446         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
12447
12448 2007-01-10  Bruno Haible  <bruno@clisp.org>
12449
12450         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
12451
12452 2007-01-12  Eric Blake  <ebb9@byu.net>
12453
12454         Provide a robust <wchar.h>.  Further simplifications are now
12455         possible in other modules, but not included here.
12456         * modules/wchar: New module.
12457         * m4/wchar.m4: New file.
12458         * lib/wchar_.h: Likewise.
12459         * modules/mbchar (Depends-on): Depend on wchar, as the first use
12460         of the new module.
12461         * MODULES.html.sh (Extended multibyte and wide character utilities):
12462         New section.
12463
12464 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
12465
12466         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
12467         to a reasonable default for memory allocation.
12468         (xreadlink): Don't allocate a huge buffer, to work around a buggy
12469         file system that reports garbage st_size values for symlinks.
12470         Problem reported by Liyang Hu.
12471
12472 2007-01-11  Simon Josefsson  <simon@josefsson.org>
12473
12474         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
12475         Emacs .#* auto-save files).
12476
12477 2007-01-11  Bruno Haible  <bruno@clisp.org>
12478
12479         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
12480         directory.
12481
12482 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
12483
12484         Use @...@ consistently in lib/wctype_.h.
12485         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
12486         on it being set to 1 or 0.
12487         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
12488         go back to AC_SUBSTing it.
12489         * modules/wctype (Makefile.am): Undo previous change.
12490
12491 2007-01-10  Eric Blake  <ebb9@byu.net>
12492
12493         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
12494         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
12495         * modules/wctype (Makefile.am): Likewise.
12496         Reported by Chris McGuire.
12497
12498 2007-01-10  Jim Meyering  <jim@meyering.net>
12499
12500         fts.c: a small readability/maintainability improvement
12501         * lib/fts.c (fts_read): Make this code slightly more readable and
12502         maintainable by hoisting the "sp->fts_cur = p" assignments to
12503         immediately follow the statements that set P.  Derived from
12504         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
12505
12506 2007-01-10  Eric Blake  <ebb9@byu.net>
12507
12508         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
12509         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
12510         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12511         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
12512         Reported by Chris McGuire.
12513
12514 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12515
12516         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
12517         in sed script.
12518
12519 2007-01-09  Bruno Haible  <bruno@clisp.org>
12520
12521         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
12522         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
12523         variables.
12524         (func_module): Use them.
12525
12526 2007-01-09  Bruno Haible  <bruno@clisp.org>
12527
12528         * modules/unistr/base: New file.
12529         * lib/unistr.h: New file.
12530
12531         * modules/unistr/u8-to-u16: New file.
12532         * lib/unistr/u8-to-u16.c: New file.
12533
12534         * modules/unistr/u8-to-u32: New file.
12535         * lib/unistr/u8-to-u32.c: New file.
12536
12537         * modules/unistr/u16-to-u8: New file.
12538         * lib/unistr/u16-to-u8.c: New file.
12539
12540         * modules/unistr/u16-to-u32: New file.
12541         * lib/unistr/u16-to-u32.c: New file.
12542
12543         * modules/unistr/u32-to-u8: New file.
12544         * lib/unistr/u32-to-u8.c: New file.
12545
12546         * modules/unistr/u32-to-u16: New file.
12547         * lib/unistr/u32-to-u16.c: New file.
12548
12549         * modules/unistr/u8-check: New file.
12550         * modules/unistr/u16-check: New file.
12551         * modules/unistr/u32-check: New file.
12552         * lib/unistr/u8-check.c: New file.
12553         * lib/unistr/u16-check.c: New file.
12554         * lib/unistr/u32-check.c: New file.
12555
12556         * modules/unistr/u8-chr: New file.
12557         * modules/unistr/u16-chr: New file.
12558         * modules/unistr/u32-chr: New file.
12559         * lib/unistr/u8-chr.c: New file.
12560         * lib/unistr/u16-chr.c: New file.
12561         * lib/unistr/u32-chr.c: New file.
12562
12563         * modules/unistr/u8-cmp: New file.
12564         * modules/unistr/u16-cmp: New file.
12565         * modules/unistr/u32-cmp: New file.
12566         * lib/unistr/u8-cmp.c: New file.
12567         * lib/unistr/u16-cmp.c: New file.
12568         * lib/unistr/u32-cmp.c: New file.
12569
12570         * modules/unistr/u8-cpy: New file.
12571         * modules/unistr/u16-cpy: New file.
12572         * modules/unistr/u32-cpy: New file.
12573         * lib/unistr/u8-cpy.c: New file.
12574         * lib/unistr/u16-cpy.c: New file.
12575         * lib/unistr/u32-cpy.c: New file.
12576         * lib/unistr/u-cpy.h: New file.
12577
12578         * modules/unistr/u8-cpy-alloc: New file.
12579         * modules/unistr/u16-cpy-alloc: New file.
12580         * modules/unistr/u32-cpy-alloc: New file.
12581         * lib/unistr/u8-cpy-alloc.c: New file.
12582         * lib/unistr/u16-cpy-alloc.c: New file.
12583         * lib/unistr/u32-cpy-alloc.c: New file.
12584         * lib/unistr/u-cpy-alloc.h: New file.
12585
12586         * modules/unistr/u8-endswith: New file.
12587         * modules/unistr/u16-endswith: New file.
12588         * modules/unistr/u32-endswith: New file.
12589         * lib/unistr/u8-endswith.c: New file.
12590         * lib/unistr/u16-endswith.c: New file.
12591         * lib/unistr/u32-endswith.c: New file.
12592         * lib/unistr/u-endswith.h: New file.
12593
12594         * modules/unistr/u8-mblen: New file.
12595         * modules/unistr/u16-mblen: New file.
12596         * modules/unistr/u32-mblen: New file.
12597         * lib/unistr/u8-mblen.c: New file.
12598         * lib/unistr/u16-mblen.c: New file.
12599         * lib/unistr/u32-mblen.c: New file.
12600
12601         * modules/unistr/u8-mbtouc: New file.
12602         * modules/unistr/u16-mbtouc: New file.
12603         * modules/unistr/u32-mbtouc: New file.
12604         * lib/unistr/u8-mbtouc.c: New file.
12605         * lib/unistr/u16-mbtouc.c: New file.
12606         * lib/unistr/u32-mbtouc.c: New file.
12607
12608         * modules/unistr/u8-mbtouc-safe: New file.
12609         * modules/unistr/u16-mbtouc-safe: New file.
12610         * modules/unistr/u32-mbtouc-safe: New file.
12611         * lib/unistr/u8-mbtouc-safe.c: New file.
12612         * lib/unistr/u16-mbtouc-safe.c: New file.
12613         * lib/unistr/u32-mbtouc-safe.c: New file.
12614
12615         * modules/unistr/u8-move: New file.
12616         * modules/unistr/u16-move: New file.
12617         * modules/unistr/u32-move: New file.
12618         * lib/unistr/u8-move.c: New file.
12619         * lib/unistr/u16-move.c: New file.
12620         * lib/unistr/u32-move.c: New file.
12621         * lib/unistr/u-move.h: New file.
12622
12623         * modules/unistr/u8-next: New file.
12624         * modules/unistr/u16-next: New file.
12625         * modules/unistr/u32-next: New file.
12626         * lib/unistr/u8-next.c: New file.
12627         * lib/unistr/u16-next.c: New file.
12628         * lib/unistr/u32-next.c: New file.
12629
12630         * modules/unistr/u8-prev: New file.
12631         * modules/unistr/u16-prev: New file.
12632         * modules/unistr/u32-prev: New file.
12633         * lib/unistr/u8-prev.c: New file.
12634         * lib/unistr/u16-prev.c: New file.
12635         * lib/unistr/u32-prev.c: New file.
12636
12637         * modules/unistr/u8-set: New file.
12638         * modules/unistr/u16-set: New file.
12639         * modules/unistr/u32-set: New file.
12640         * lib/unistr/u8-set.c: New file.
12641         * lib/unistr/u16-set.c: New file.
12642         * lib/unistr/u32-set.c: New file.
12643         * lib/unistr/u-set.h: New file.
12644
12645         * modules/unistr/u8-startswith: New file.
12646         * modules/unistr/u16-startswith: New file.
12647         * modules/unistr/u32-startswith: New file.
12648         * lib/unistr/u8-startswith.c: New file.
12649         * lib/unistr/u16-startswith.c: New file.
12650         * lib/unistr/u32-startswith.c: New file.
12651         * lib/unistr/u-startswith.h: New file.
12652
12653         * modules/unistr/u8-stpcpy: New file.
12654         * modules/unistr/u16-stpcpy: New file.
12655         * modules/unistr/u32-stpcpy: New file.
12656         * lib/unistr/u8-stpcpy.c: New file.
12657         * lib/unistr/u16-stpcpy.c: New file.
12658         * lib/unistr/u32-stpcpy.c: New file.
12659         * lib/unistr/u-stpcpy.h: New file.
12660
12661         * modules/unistr/u8-stpncpy: New file.
12662         * modules/unistr/u16-stpncpy: New file.
12663         * modules/unistr/u32-stpncpy: New file.
12664         * lib/unistr/u8-stpncpy.c: New file.
12665         * lib/unistr/u16-stpncpy.c: New file.
12666         * lib/unistr/u32-stpncpy.c: New file.
12667         * lib/unistr/u-stpncpy.h: New file.
12668
12669         * modules/unistr/u8-strcat: New file.
12670         * modules/unistr/u16-strcat: New file.
12671         * modules/unistr/u32-strcat: New file.
12672         * lib/unistr/u8-strcat.c: New file.
12673         * lib/unistr/u16-strcat.c: New file.
12674         * lib/unistr/u32-strcat.c: New file.
12675         * lib/unistr/u-strcat.h: New file.
12676
12677         * modules/unistr/u8-strchr: New file.
12678         * modules/unistr/u16-strchr: New file.
12679         * modules/unistr/u32-strchr: New file.
12680         * lib/unistr/u8-strchr.c: New file.
12681         * lib/unistr/u16-strchr.c: New file.
12682         * lib/unistr/u32-strchr.c: New file.
12683
12684         * modules/unistr/u8-strcmp: New file.
12685         * modules/unistr/u16-strcmp: New file.
12686         * modules/unistr/u32-strcmp: New file.
12687         * lib/unistr/u8-strcmp.c: New file.
12688         * lib/unistr/u16-strcmp.c: New file.
12689         * lib/unistr/u32-strcmp.c: New file.
12690
12691         * modules/unistr/u8-strcpy: New file.
12692         * modules/unistr/u16-strcpy: New file.
12693         * modules/unistr/u32-strcpy: New file.
12694         * lib/unistr/u8-strcpy.c: New file.
12695         * lib/unistr/u16-strcpy.c: New file.
12696         * lib/unistr/u32-strcpy.c: New file.
12697         * lib/unistr/u-strcpy.h: New file.
12698
12699         * modules/unistr/u8-strcspn: New file.
12700         * modules/unistr/u16-strcspn: New file.
12701         * modules/unistr/u32-strcspn: New file.
12702         * lib/unistr/u8-strcspn.c: New file.
12703         * lib/unistr/u16-strcspn.c: New file.
12704         * lib/unistr/u32-strcspn.c: New file.
12705         * lib/unistr/u-strcspn.h: New file.
12706
12707         * modules/unistr/u8-strdup: New file.
12708         * modules/unistr/u16-strdup: New file.
12709         * modules/unistr/u32-strdup: New file.
12710         * lib/unistr/u8-strdup.c: New file.
12711         * lib/unistr/u16-strdup.c: New file.
12712         * lib/unistr/u32-strdup.c: New file.
12713         * lib/unistr/u-strdup.h: New file.
12714
12715         * modules/unistr/u8-strlen: New file.
12716         * modules/unistr/u16-strlen: New file.
12717         * modules/unistr/u32-strlen: New file.
12718         * lib/unistr/u8-strlen.c: New file.
12719         * lib/unistr/u16-strlen.c: New file.
12720         * lib/unistr/u32-strlen.c: New file.
12721         * lib/unistr/u-strlen.h: New file.
12722
12723         * modules/unistr/u8-strmblen: New file.
12724         * modules/unistr/u16-strmblen: New file.
12725         * modules/unistr/u32-strmblen: New file.
12726         * lib/unistr/u8-strmblen.c: New file.
12727         * lib/unistr/u16-strmblen.c: New file.
12728         * lib/unistr/u32-strmblen.c: New file.
12729
12730         * modules/unistr/u8-strmbtouc: New file.
12731         * modules/unistr/u16-strmbtouc: New file.
12732         * modules/unistr/u32-strmbtouc: New file.
12733         * lib/unistr/u8-strmbtouc.c: New file.
12734         * lib/unistr/u16-strmbtouc.c: New file.
12735         * lib/unistr/u32-strmbtouc.c: New file.
12736
12737         * modules/unistr/u8-strncat: New file.
12738         * modules/unistr/u16-strncat: New file.
12739         * modules/unistr/u32-strncat: New file.
12740         * lib/unistr/u8-strncat.c: New file.
12741         * lib/unistr/u16-strncat.c: New file.
12742         * lib/unistr/u32-strncat.c: New file.
12743         * lib/unistr/u-strncat.h: New file.
12744
12745         * modules/unistr/u8-strncmp: New file.
12746         * modules/unistr/u16-strncmp: New file.
12747         * modules/unistr/u32-strncmp: New file.
12748         * lib/unistr/u8-strncmp.c: New file.
12749         * lib/unistr/u16-strncmp.c: New file.
12750         * lib/unistr/u32-strncmp.c: New file.
12751
12752         * modules/unistr/u8-strncpy: New file.
12753         * modules/unistr/u16-strncpy: New file.
12754         * modules/unistr/u32-strncpy: New file.
12755         * lib/unistr/u8-strncpy.c: New file.
12756         * lib/unistr/u16-strncpy.c: New file.
12757         * lib/unistr/u32-strncpy.c: New file.
12758         * lib/unistr/u-strncpy.h: New file.
12759
12760         * modules/unistr/u8-strnlen: New file.
12761         * modules/unistr/u16-strnlen: New file.
12762         * modules/unistr/u32-strnlen: New file.
12763         * lib/unistr/u8-strnlen.c: New file.
12764         * lib/unistr/u16-strnlen.c: New file.
12765         * lib/unistr/u32-strnlen.c: New file.
12766         * lib/unistr/u-strnlen.h: New file.
12767
12768         * modules/unistr/u8-strpbrk: New file.
12769         * modules/unistr/u16-strpbrk: New file.
12770         * modules/unistr/u32-strpbrk: New file.
12771         * lib/unistr/u8-strpbrk.c: New file.
12772         * lib/unistr/u16-strpbrk.c: New file.
12773         * lib/unistr/u32-strpbrk.c: New file.
12774         * lib/unistr/u-strpbrk.h: New file.
12775
12776         * modules/unistr/u8-strrchr: New file.
12777         * modules/unistr/u16-strrchr: New file.
12778         * modules/unistr/u32-strrchr: New file.
12779         * lib/unistr/u8-strrchr.c: New file.
12780         * lib/unistr/u16-strrchr.c: New file.
12781         * lib/unistr/u32-strrchr.c: New file.
12782
12783         * modules/unistr/u8-strspn: New file.
12784         * modules/unistr/u16-strspn: New file.
12785         * modules/unistr/u32-strspn: New file.
12786         * lib/unistr/u8-strspn.c: New file.
12787         * lib/unistr/u16-strspn.c: New file.
12788         * lib/unistr/u32-strspn.c: New file.
12789         * lib/unistr/u-strspn.h: New file.
12790
12791         * modules/unistr/u8-strstr: New file.
12792         * modules/unistr/u16-strstr: New file.
12793         * modules/unistr/u32-strstr: New file.
12794         * lib/unistr/u8-strstr.c: New file.
12795         * lib/unistr/u16-strstr.c: New file.
12796         * lib/unistr/u32-strstr.c: New file.
12797         * lib/unistr/u-strstr.h: New file.
12798
12799         * modules/unistr/u8-strtok: New file.
12800         * modules/unistr/u16-strtok: New file.
12801         * modules/unistr/u32-strtok: New file.
12802         * lib/unistr/u8-strtok.c: New file.
12803         * lib/unistr/u16-strtok.c: New file.
12804         * lib/unistr/u32-strtok.c: New file.
12805         * lib/unistr/u-strtok.h: New file.
12806
12807         * modules/unistr/u8-uctomb: New file.
12808         * modules/unistr/u16-uctomb: New file.
12809         * modules/unistr/u32-uctomb: New file.
12810         * lib/unistr/u8-uctomb.c: New file.
12811         * lib/unistr/u16-uctomb.c: New file.
12812         * lib/unistr/u32-uctomb.c: New file.
12813
12814         * MODULES.html.sh (Unicode string functions): Add the new modules.
12815
12816 2007-01-08  Bruno Haible  <bruno@clisp.org>
12817
12818         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
12819         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
12820         subdirectories.
12821
12822 2007-01-08  Karl Berry  <karl@gnu.org>
12823
12824         * doc/error.texi: mention that main() fns must set program_name
12825         when progname is used.
12826
12827 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
12828
12829         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
12830         WCTYPE_H is empty, for the benefit of builds from non-distclean
12831         directories.  Problem reported by Eric Blake in
12832         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
12833
12834 2007-01-08  Bruno Haible  <bruno@clisp.org>
12835
12836         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
12837         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
12838         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
12839         PROVIDE_CANONICALIZE_FILENAME_MODE.
12840         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
12841
12842 2007-01-08  Bruno Haible  <bruno@clisp.org>
12843
12844         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
12845         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
12846         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
12847         * lib/fts.c: Likewise.
12848         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
12849
12850 2006-12-25  Bruno Haible  <bruno@clisp.org>
12851
12852         * modules/utf8-ucs4-safe: New file.
12853         * lib/utf8-ucs4-safe.h: New file.
12854         * lib/unistr/utf8-ucs4-safe.c: New file.
12855
12856         * modules/utf16-ucs4-safe: New file.
12857         * lib/utf16-ucs4-safe.h: New file.
12858         * lib/unistr/utf16-ucs4-safe.c: New file.
12859
12860         * MODULES.html.sh (Unicode string functions): Add the new modules.
12861
12862 2007-01-08  Bruno Haible  <bruno@clisp.org>
12863
12864         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
12865         (Depends-on): Add unitypes.
12866         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
12867         (u8_mbtouc_aux): Move out to separate file.
12868         (u8_mbtouc): Use ucs4_t, uint8_t types.
12869         * lib/unistr/utf8-ucs4.c: New file.
12870
12871         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
12872         (Depends-on): Add unitypes.
12873         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
12874         (u16_mbtouc_aux): Move out to separate file.
12875         (u16_mbtouc): Use ucs4_t, uint16_t types.
12876         * lib/unistr/utf16-ucs4.c: New file.
12877
12878         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
12879         (Depends-on): Add unitypes.
12880         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
12881         (u8_uctomb_aux): Move out to separate file.
12882         (u8_uctomb): Use ucs4_t, uint8_t types.
12883         * lib/unistr/ucs4-utf8.c: New file.
12884
12885         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
12886         (Depends-on): Add unitypes.
12887         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
12888         (u16_uctomb_aux): Move out to separate file.
12889         (u16_uctomb): Use ucs4_t, uint16_t types.
12890         * lib/unistr/ucs4-utf16.c: New file.
12891
12892 2006-12-25  Bruno Haible  <bruno@clisp.org>
12893
12894         * modules/unitypes: New file.
12895         * lib/unitypes.h: New file.
12896         * MODULES.html.sh (func_all_modules): New section "Unicode string
12897         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
12898         this section. Add unitypes.
12899
12900 2007-01-08  Bruno Haible  <bruno@clisp.org>
12901
12902         Avoid variable names that conflict with those from libtool.
12903         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
12904         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
12905         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
12906         library_names_spec to acl_library_names_spec, hardcode_* to
12907         acl_hardcode_*.
12908         Reported by Ralf Wildenhues.
12909
12910 2007-01-08  Bruno Haible  <bruno@clisp.org>
12911
12912         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
12913         definition.
12914         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
12915         definition.
12916         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
12917         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
12918         definition.
12919         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
12920         definition.
12921         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
12922         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
12923         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
12924         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
12925         definition.
12926         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
12927         definition.
12928         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
12929         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
12930         GC_USE_<algorithm>.
12931         * lib/gc-libgcrypt.c: Likewise.
12932         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
12933         * modules/gc-arctwo (configure.ac): Likewise.
12934         * modules/gc-des (configure.ac): Likewise.
12935         * modules/gc-hmac-md5 (configure.ac): Likewise.
12936         * modules/gc-hmac-sha1 (configure.ac): Likewise.
12937         * modules/gc-md2 (configure.ac): Likewise.
12938         * modules/gc-md4 (configure.ac): Likewise.
12939         * modules/gc-md5 (configure.ac): Likewise.
12940         * modules/gc-random (configure.ac): Likewise.
12941         * modules/gc-rijndael (configure.ac): Likewise.
12942         * modules/gc-sha1 (configure.ac): Likewise.
12943
12944 2007-01-08  Bruno Haible  <bruno@clisp.org>
12945
12946         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
12947         macro definition.
12948         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
12949         definition.
12950         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
12951         definition.
12952         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
12953         * modules/fcntl-safer (configure.ac): Likewise.
12954         * modules/fopen-safer (configure.ac): Likewise.
12955         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
12956         GNULIB_FWRITEERROR macro definition.
12957
12958 2007-01-08  Bruno Haible  <bruno@clisp.org>
12959
12960         * m4/gnulib-common.m4: New file.
12961         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
12962         (func_get_filelist): Add m4/gnulib-common.m4.
12963
12964 2007-01-08  Bruno Haible  <bruno@clisp.org>
12965
12966         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
12967         command.
12968
12969 2007-01-08  Jim Meyering  <jim@meyering.net>
12970
12971         Use a more robust test for a "can't happen" condition.
12972         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
12973         narrowed the st_size value.  Presuming the "can't happen" condition
12974         is true, that narrowing could conceivably convert an invalid st_size
12975         value into a valid one.  Instead, use a change based on Matthew
12976         Woehlke's original patch.
12977
12978         Slight readability improvement: use an assert-like macro
12979         in place of literal "abort ()" uses.
12980         * lib/fts.c (fts_assert): Define.
12981         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
12982         Use this macro instead of a bare 'abort'.
12983
12984 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
12985
12986         Don't worry about using IRIX 5.3's wctype.h broken definitions;
12987         simply work around them.
12988         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
12989         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
12990         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
12991         declaring.
12992         Don't bother to define as macros, since the standard doesn't require it.
12993         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
12994         longer worry about IRIX 5.3.
12995         (HAVE_WCTYPE_CTMP_BUG): Remove.
12996
12997 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
12998
12999         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
13000         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
13001         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
13002         Problems reported by Georg Schwarz for IRIX 5.3.
13003
13004         * gnulib-tool (autoconf_minversion): Take the maximum version number
13005         found, not the minimum.  Problem reported by James Youngman.
13006
13007 2007-01-03  Karl Berry  <karl@gnu.org>
13008
13009         * doc/error.texi: new file, explaining interaction with progname.
13010         * doc/gnulib.texi: include it.  Update copyright.
13011
13012 2007-01-03  Simon Josefsson  <simon@josefsson.org>
13013
13014         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
13015         AC_CANONICAL_HOST, to improve autobuild outputs.
13016
13017 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
13018             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13019
13020         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
13021         sockets, server sockets, and other file descriptors.  Count errors
13022         to compute the return value.  Reorder the code a bit to be easier
13023         to follow.  Don't set event bits that were not requested (except
13024         POLLERR and POLLHUP).
13025
13026 2007-01-01  Bruno Haible  <bruno@clisp.org>
13027
13028         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
13029
13030 2007-01-03  Jim Meyering  <jim@meyering.net>
13031
13032         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
13033
13034 2007-01-02  Bruno Haible  <bruno@clisp.org>
13035
13036         * modules/settime (Include): Require timespec.h.
13037         * modules/nanosleep (Include): Likewise.
13038
13039 2007-01-01  Bruno Haible  <bruno@clisp.org>
13040
13041         * gnulib-tool (func_emit_copyright_notice): Bump year.
13042         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
13043
13044 2007-01-01  Bruno Haible  <bruno@clisp.org>
13045
13046         Improve support for OpenBSD.
13047         * build-aux/config.rpath (libname_spec): Export.
13048         (library_names_spec): New variable. Export.
13049         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
13050         library_names_spec from the config.rpath output. Locate shared library
13051         through the name pattern in library_names_spec.
13052
13053 2007-01-01  Eric Blake  <ebb9@byu.net>
13054
13055         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
13056
13057 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
13058
13059         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
13060         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
13061         assume the C locale, and avoid an "eval" that could cause trouble.
13062         Problem with SORT reported by Bob Proulx.
13063
13064         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
13065         Define.  Trivial patch from Henning Nielsen Lund, originally
13066         sent to bug-grep@gnu.org today.
13067
13068 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
13069
13070         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
13071         struct stat.  Problem reported by Henning Nielsen Lund.
13072         * lib/acl.c: Include acl.h first, to check interface.  Don't
13073         bother to include sys/types.h and sys/stat.h again.
13074
13075 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
13076
13077         Import the following change from libc; problem reported by
13078         Sven Verdoolaege.
13079
13080         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
13081
13082         [BZ #1373]
13083         * lib/argp.h: Remove __NTH for __argp_usage inline function.
13084
13085 2006-12-28  Jim Meyering  <jim@meyering.net>
13086
13087         * build-aux/announce-gen: Do not assume that the package
13088         builds any of tar.gz, tar.bz2, and .xdelta files.
13089         Suggestion from Simon Josefsson.
13090
13091 2006-12-28  Simon Josefsson  <simon@josefsson.org>
13092
13093         * modules/announce-gen: New file.
13094
13095 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13096
13097         * lib/mbchar.h: Just include <wctype.h>; the wctype module
13098         handles its gotchas now.
13099         * lib/mbswidth.c: Likewise.
13100         * lib/wcwidth.h: Likewise.
13101         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
13102         and iswcntrl; the wctype module does this stuff now.
13103         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
13104         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13105         * modules/mbchar (Depends-on): Add wctype.
13106         * modules/mbswidth (Depends-on): Likewise.
13107         * modules/wcwidth (Depends-on): Likewise.
13108
13109 2006-12-27  Eric Blake  <ebb9@byu.net>
13110
13111         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
13112         module uses more than what <wctype.h> is required to provide.
13113
13114 2006-12-26  Eric Blake  <ebb9@byu.net>
13115
13116         * gnulib-tool (sed_extract_prog): Avoid space-tab.
13117
13118 2006-12-26  Eric Blake  <ebb9@byu.net>
13119
13120         * modules/absolute-header: New module.
13121         * modules/fcntl (Depends-on): Depend on it.
13122         * modules/inttypes (Depends-on): Likewise.
13123         * modules/stdint (Depends-on): Likewise.
13124         * modules/sys_stat (Depends-on): Likewise.
13125         * modules/wctype (Depends-on): Likewise.
13126         * MODULES.html.sh (Support for building libraries and
13127         executables): Document it.
13128
13129 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
13130
13131         * gnulib-tool (SED): Remove, undoing previous change.
13132         The problem was that it broke coreutils on Solaris, because
13133         "sed --posix" leaked into a makefile.
13134         (sed): New alias, if 'alias' and GNU sed.
13135
13136 2006-12-24  Jim Meyering  <jim@meyering.net>
13137
13138         Work around an fchownat bug in glibc-2.4:
13139         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
13140         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
13141         in spite of the -P option.
13142         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
13143         New macros.
13144         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
13145         * modules/openat (Files): Add lib/fchownat.c.
13146         * lib/openat.c (fchownat): Don't define here.  Move to...
13147         * lib/fchownat.c: ...this new file.
13148
13149 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13150
13151         Fix bug reported by Bruno Haible in
13152         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
13153         where quotearg.c didn't compile on Mac OS X 10.2 because it
13154         lacks <wchar.h> and wint_t.
13155         * lib/wctype_.h (__wctype_wint_t): New type.
13156         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
13157         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
13158         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
13159         Arg is now of type __wctype_wint_t, not wint_t.
13160         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
13161         substitute HAVE_WINT_T.
13162         * modules/wctype (Files): Add m4/wint_t.m4.
13163         (wctype.h): Substitute HAVE_WINT_T.
13164
13165 2006-12-23  Bruno Haible  <bruno@clisp.org>
13166
13167         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
13168
13169 2006-12-23  Bruno Haible  <bruno@clisp.org>
13170
13171         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
13172         S_ISLNK.
13173         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
13174         mingw.
13175
13176 2006-12-22  Bruno Haible  <bruno@clisp.org>
13177
13178         * lib/copy-file.c: Include acl.h.
13179         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
13180         Close the file descriptors only after being done with copy_acl.
13181         * modules/copy-file (Depends-on): Add acl.
13182
13183 2006-12-22  Bruno Haible  <bruno@clisp.org>
13184
13185         * gnulib-tool (SED): New variable.
13186         Use $SED instead of sed everywhere.
13187
13188 2006-12-22  Bruno Haible  <bruno@clisp.org>
13189
13190         * modules/no-c++: New file.
13191         * m4/no-c++.m4: New file.
13192         * MODULES.html.sh (Support for building libraries and executables):
13193         Add no-c++.
13194
13195 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13196
13197         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
13198         Include <limits.h>, and use its INT_MAX to rewrite the
13199         j loop so that it does not overflow 'int'.  Problem reported by
13200         Ralf Wildenhues in
13201         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
13202         Play it safe by shifting left by 1 rather than multiplying by 2,
13203         as GCC is less likely to optimize this away when the value
13204         is signed (when it assumes overflow leads to undefined behavior).
13205         Also, don't assume time_t uses two's complement.
13206
13207 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
13208
13209         * MODULES.html.sh: New module wctype.
13210         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
13211         * lib/fnmatch.c: Don't bother to include <wchar.h> before
13212         <wctype.h>, since the new wctype module should fix this.
13213         * lib/quotearg.c: Include <wctype.h> unconditionally, since
13214         the wctype module should arrange for it.
13215         * lib/regex_internal.h: Likewise.
13216         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
13217         since the wctype module should handle this now.
13218         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
13219         * modules/fnmatch (Depends-on): Add wctype.
13220         * modules/quotearg (Depends-on): Likewise.
13221         * modules/regex (Depends-on): Likewise.
13222
13223 2006-12-19  Bruno Haible  <bruno@clisp.org>
13224
13225         * lib/strdup.h [C++]: Wrap definitions in extern "C".
13226         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
13227
13228 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13229
13230         * modules/savewd (Depends-on): Fix dependency on fcntl.
13231
13232 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
13233
13234         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
13235         conforms to C99, rather than relying on the user's environment
13236         setting of STDINT_H.
13237
13238 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
13239         and Eric Blake  <ebb9@byu.net>
13240
13241         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
13242         This is more consistent with the other defines here.
13243         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
13244         Port to z/OS.  Problem reported by Paul Gilmartin.
13245         Change local vars to use gl_ prefix rather than ac_.
13246         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
13247         with other defines.
13248         * modules/double-slash-root: New module.
13249         * modules/dirname (Files): Remove m4/double-slash-root.m4.
13250         (Depends-on): Add double-slash-root.
13251         * MODULES.html.sh (File system functions): Mention new module.
13252
13253 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
13254
13255         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
13256         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
13257         This is for the benefit of gzip, which doesn't do i18n.
13258
13259 2006-12-12  Jim Meyering  <jim@meyering.net>
13260
13261         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
13262         Reported by Andreas Schwab <schwab@suse.de>.
13263
13264 2006-12-12  Bruno Haible  <bruno@clisp.org>
13265
13266         Merge these changes.
13267         2006-09-05  Bruno Haible  <bruno@clisp.org>
13268         * lib/iconvme.c (iconv_string): No need to save and restore errno when
13269         iconv_alloc succeeded.
13270         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
13271         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
13272         test for " && dest " at the end - dest is always != NULL there. Call
13273         iconv with 4xNULL arguments initially, to reset the state. Call iconv
13274         with 2xNULL arguments, also to flush the state storage. Handle the
13275         IRIX iconv behaviour. Realloc the final result, to throw away unused
13276         memory.
13277
13278 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
13279
13280         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
13281         and fchmodat unconditionally, since glibc 2.4 has them.
13282         Problem reported by Arkadiusz Miskiewicz.
13283
13284 2006-12-10  Bruno Haible  <bruno@clisp.org>
13285
13286         * gnulib-tool (func_import): Show the include files only for those
13287         modules that are copied and specified.
13288         Reported by Karl Berry.
13289
13290 2006-12-08  Jim Meyering  <jim@meyering.net>
13291
13292         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
13293         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
13294
13295         * build-aux/announce-gen: Add two new options, both optional:
13296         --bootstrap-tools=TOOL_LIST
13297               a comma-separated list of tools, e.g.,
13298               autoconf,automake,bison,gnulib
13299         --gnulib-snapshot-date=DATE
13300               if gnulib is in the bootstrap tool list,
13301               then report this as the snapshot date.
13302               If not specified, use the current date/time.
13303               If you specify a date here, be sure it's UTC.
13304
13305 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13306
13307         * tests/test-argp-2.sh: Fix test to match actual output.
13308         (func_compare): Fix sed script to be portable.
13309
13310 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
13311
13312         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
13313         workaround for this case.  It is not autoconfigured now; offhand
13314         it's hard to see how to autoconfigure it.
13315
13316 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
13317
13318         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
13319         a directory that is about to be chowned.  Such a directory's
13320         initial file permissions should permit the owner only and this
13321         should not be changed until after the chown, since the group and
13322         other bits would be incorrect if they granted permission before
13323         the chown.
13324
13325         Fix porting problem for iswctype reported by Georg Schwarz in:
13326         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
13327         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
13328         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
13329         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
13330         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13331
13332 2006-12-03  Jim Meyering  <jim@meyering.net>
13333
13334         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
13335         p->fts_statp may not yet be defined.
13336         (fts_read): Instead, set it in the caller, once p->fts_statp is
13337         sure to be defined, and corresponds to a top-level directory.
13338         This bug made du -x fail.  Here's the coreutils test case:
13339         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
13340         Reported by Mike Frysinger.
13341
13342 2006-12-01  Jim Meyering  <jim@meyering.net>
13343
13344         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
13345         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
13346         Reported by Simon Josefsson.
13347
13348 2006-11-30  Jim Meyering  <jim@meyering.net>
13349
13350         * m4/warning.m4: Use the all-permissive copyright notice
13351         recommended by RMS (rather than LGPL).
13352         * m4/vararrays.m4: Likewise.
13353         * m4/flexmember.m4: Likewise.
13354
13355 2006-11-29  Bruno Haible  <bruno@clisp.org>
13356
13357         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
13358         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
13359         using +=.
13360         Reported by Simon Josefsson <simon@josefsson.org>.
13361
13362 2006-11-28  James Youngman <jay@gnu.org>
13363
13364         * README: Advise users that they might find the bug-gnulib@gnu.org
13365         and autotools-announce@gnu.org mailing lists useful.
13366
13367 2006-11-28  Bruno Haible  <bruno@clisp.org>
13368
13369         * m4/ptrdiff_max.m4: Remove file.
13370
13371 2006-11-21  Bruno Haible  <bruno@clisp.org>
13372
13373         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
13374         _AC_COMPUTE_INT.
13375         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
13376         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
13377         _AC_COMPUTE_INT.
13378         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
13379         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
13380         _AC_COMPUTE_INT.
13381         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
13382
13383 2006-11-28  Jim Meyering  <jim@meyering.net>
13384
13385         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
13386         warning from "gcc -Wshadow" about shadowing the builtin.
13387
13388 2006-11-27  Bruno Haible  <bruno@clisp.org>
13389
13390         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
13391         _AC_COMPUTE_INT.
13392         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
13393
13394 2006-11-27  Bruno Haible  <bruno@clisp.org>
13395             Paul Eggert  <eggert@cs.ucla.edu>
13396
13397         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
13398
13399 2006-11-26  Bruno Haible  <bruno@clisp.org>
13400
13401         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
13402         noinst_LTLIBRARIES.
13403
13404 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
13405             Bruno Haible  <bruno@clisp.org>
13406
13407         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
13408         if compiling with "gcc -ansi".
13409
13410 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
13411
13412         Fix some incompatibilities with gcc -ansi -pedantic.
13413         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
13414         if compiling pedantically with GCC, unless it's C99 or later.
13415         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
13416         it mishandles gcc -ansi -pedantic as well.
13417         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
13418         if gcc -pedantic.
13419         * lib/regexec.c (check_node_accept_bytes): Don't use auto
13420         initializers for struct if -pedantic, unless it's C99 or later.
13421
13422 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
13423
13424         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
13425         Don't close an fd more than once. Identical atimes indicate
13426         success, not failure.
13427
13428 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
13429
13430         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
13431
13432 2006-11-23  Jim Meyering  <jim@meyering.net>
13433
13434         * build-aux/announce-gen: New file.  From coreutils.
13435
13436 2006-11-22  Jim Meyering  <jim@meyering.net>
13437
13438         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
13439         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
13440         (fts_read): Use a temporary to narrow the overused st_size member
13441         before using it in a switch statement.  Reported by Matthew Woehlke.
13442
13443         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
13444         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
13445
13446 2006-11-20  Bruno Haible  <bruno@clisp.org>
13447
13448         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
13449         changequote instead of pairs of brackets.
13450         Reported by Andreas Schwab <schwab@suse.de>.
13451
13452 2006-11-21  Jim Meyering  <jim@meyering.net>
13453
13454         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
13455         so as to remain compatible with older compilers.
13456         Patch from Michael Deutschmann.
13457
13458 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
13459
13460         * MODULES.html.sh (File system functions): Add openat.
13461
13462         * lib/openat.h (rpl_fstatat): New macro, if
13463         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
13464         (fstatat): Define to rpl_fstatat under the same conditions,
13465         unless COMPILING_FSTATAT.
13466         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
13467         seems to have the bug.
13468         * lib/fstatat.c: New file.
13469         * modules/openat (Files): Add it.
13470
13471 2006-11-20  Bruno Haible  <bruno@clisp.org>
13472
13473         * Makefile: New file.
13474
13475 2006-11-20  Jim Meyering  <jim@meyering.net>
13476
13477         The beginnings of syntax-related checks for gnulib.
13478         * lib/Makefile: New file.
13479         * lib/t-idcache: New script.  Ensure that the two halves of
13480         idcache.c stay in sync.
13481
13482         * lib/idcache.c: Adjust comments in user- and group- portions to
13483         be more accurate, and to be consistent with one another.
13484
13485 2006-11-20  Jim Meyering  <jim@meyering.net>
13486
13487         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
13488         continue using the flexible array member (thus, this module performs
13489         half as many malloc calls), with the addition that...
13490         (getgroup, getuser): Consistently record a non-match via an empty
13491         "name" string, and map an empty string match to a NULL return value.
13492         * modules/idcache (Depends-on): Re-add flexmember.
13493
13494         * lib/idcache.c (getuser): Remove all uses of the register keyword.
13495         (getuidbyname, getgroup, getgidbyname): Likewise.
13496
13497         Use cleaner syntax: NULL rather than 0.
13498         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
13499
13500 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
13501
13502         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
13503         It mishandled the case where the group was missing.
13504         Problem reported by Greg Schafer.
13505         * modules/idcache: Likewise.
13506
13507 2006-11-18  Jim Meyering  <jim@meyering.net>
13508
13509         * check-module (%exempt_header): Add exception for some
13510         conditionally-included headers.
13511
13512         * modules/i-ring (Depends-on): Add verify.
13513         (License): Change to LGPL.
13514
13515 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
13516
13517         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
13518         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
13519         and inttostr.h.  Use snprintf rather than uinttostr, so that
13520         LGPLed code doesn't depend on GPLed.
13521
13522 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
13523
13524         * modules/inline (License): Change from GPL to LGPL.
13525
13526 2006-11-17  Jim Meyering  <jim@meyering.net>
13527
13528         * modules/d-type (License): Switch to LGPL.
13529
13530 2006-11-15  Bruno Haible  <bruno@clisp.org>
13531
13532         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
13533
13534 2006-11-15  Eric Blake  <ebb9@byu.net>
13535
13536         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
13537         the module dependency.
13538
13539 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13540             Bruno Haible  <bruno@clisp.org>
13541
13542         * gnulib-tool (func_create_testdir): Add license consistency check.
13543
13544 2006-11-15  Eric Blake  <ebb9@byu.net>
13545
13546         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
13547         random "(cached)" in configure output.
13548
13549 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13550
13551         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
13552         test for conforming inttypes.h is both announced and cached.
13553
13554         * MODULES.html.sh (seen_modules, seen_files): New variables.
13555         (func_module): Rewrite to use a few less gnulib-tool and sed
13556         invocations.  Avoid a couple of quadratic algorithms for ...
13557         (missed_modules, missed_files): ... these, with ...
13558         (func_append, func_tmpdir): ... these new functions, from
13559         gnulib-tool.  Analogously, install traps for cleanup.
13560
13561         * tests/test-gc.c (main): Remove unused variables.
13562         * tests/test-read-file.c: Include stdlib.h, for 'free'.
13563
13564 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
13565
13566         * modules/inttostr (License): Change to LGPL.
13567
13568 2006-11-14  Eric Blake  <ebb9@byu.net>
13569
13570         * modules/tempname (License): Change to LGPL.
13571
13572 2006-11-14  Eric Blake  <ebb9@byu.net>
13573
13574         * doc/functions.texi (Function Portability): *printf functions on
13575         Cygwin now understand all POSIX size specifiers.
13576
13577 2006-11-14  Bruno Haible  <bruno@clisp.org>
13578
13579         * modules/c-ctype (License): Change to LGPL.
13580
13581 2006-11-12  Bruno Haible  <bruno@clisp.org>
13582
13583         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
13584         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
13585         for GNOME libraries, for which the include files are installed in
13586         subdirectories of $prefix/include.
13587
13588 2006-11-12  Bruno Haible  <bruno@clisp.org>
13589
13590         * m4/lib-link.m4: Require at least autoconf-2.54.
13591         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
13592         name to underscores for the --with option.
13593
13594 2006-11-13  Bruno Haible  <bruno@clisp.org>
13595
13596         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
13597         the tests directory.
13598         Reported by Ralf Wildenhues.
13599
13600 2006-11-13  Bruno Haible  <bruno@clisp.org>
13601
13602         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
13603         (func_emit_initmacro_end): Undo the override here.
13604         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
13605         Works around the famous automake error in coreutils.
13606
13607 2006-11-13  Eric Blake  <ebb9@byu.net>
13608
13609         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
13610         element, not its node.
13611
13612 2006-11-12  Bruno Haible  <bruno@clisp.org>
13613
13614         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
13615         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
13616
13617 2006-11-12  Bruno Haible  <bruno@clisp.org>
13618
13619         * gnulib-tool: New option --local-symlink.
13620         (func_usage): Document it.
13621         (lsymbolic): New variable.
13622         (func_import, func_create_testdir): If --symlink was not specified,
13623         test whether --local-symlink was specified and the file comes from
13624         the local_gnulib_dir.
13625
13626 2006-11-12  Bruno Haible  <bruno@clisp.org>
13627
13628         * gnulib-tool (func_ln): New function.
13629         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
13630
13631 2006-11-12  Bruno Haible  <bruno@clisp.org>
13632
13633         Finish support for source files in subdirectories.
13634         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
13635         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
13636         AUTOMAKE_OPTIONS.
13637         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
13638
13639 2006-11-12  Bruno Haible  <bruno@clisp.org>
13640
13641         * gnulib-tool (func_get_automake_snippet): Synthesize also an
13642         EXTRA_lib_SOURCES augmentation.
13643         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
13644
13645 2006-11-12  Jim Meyering  <jim@meyering.net>
13646
13647         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
13648         file descriptors.  This also averts a failure on systems with
13649         native openat support when a traversed directory lacks "x" access.
13650         * lib/fts_.h: Include "i-ring.h"
13651         (struct FTS) [fts_fd_ring]: New member.
13652         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
13653         (FCHDIR): Add parentheses.
13654         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
13655         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
13656         When descending, rather than simply closing the previous
13657         fts_cwd_fd value, push that file descriptor onto the ring.
13658         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
13659         (fts_open): Initialize the new fd_ring member.
13660         (fts_close): Clear the ring.
13661         (fts_safe_changedir): When possible, use our new fd_ring to skip
13662         the diropen and fstat and dev/ino comparison that would normally
13663         accompany a virtual `chdir ("..")'.
13664
13665         * modules/fts (Depends-on): Add i-ring.
13666         * modules/i-ring: New module.
13667         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
13668         * m4/i-ring.m4: New file.
13669
13670 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13671
13672         * gnulib-tool (func_create_testdir): Fix replacement of
13673         `build-aux' in configure.ac.  Run autotools in gltests
13674         subdirectory.
13675         (func_create_testdir, func_create_megatestdir, test): There is
13676         no need for '--force' in most autotool invocations in a new
13677         tree.  Actually fail the whole test if any of the tools, or the
13678         configure or make stages fail.
13679
13680         Sync from Automake.
13681         * build-aux/gnupload: Revert last change.  Add pointer to upload
13682         instructions of the GNU Maintenance Instructions.
13683         Suggestion by Karl Berry.
13684
13685 2006-11-10  Jim Meyering  <jim@meyering.net>
13686
13687         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
13688
13689 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
13690
13691         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
13692         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
13693         (bind_textdomain_codeset) [! ENABLE_NLS]:
13694         Evaluate all the arguments.  That way, callers get compatible behavior
13695         if the arguments have side effects.  Also, it avoids some GCC
13696         diagnostics in some cases; Joel E. Denny reported problems when Bison
13697         was configured with --enable-gcc-warnigs.
13698
13699 2006-11-10  Jim Meyering  <jim@meyering.net>
13700
13701         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
13702         relevant options in CFLAGS (like -O, -fno-inline) are taken into
13703         account.
13704
13705 2006-11-10  Jim Meyering  <jim@meyering.net>
13706
13707         * modules/inline: New file/module.
13708         * modules/xalloc (Files): Remove m4/inline.m4.
13709         (Depends-on): Add inline, instead.
13710         * modules/oset: Likewise.
13711         * modules/list: Likewise.
13712
13713 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
13714
13715         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
13716         Problem reported by Matthew Woehlke.
13717
13718 2006-11-09  Bruno Haible  <bruno@clisp.org>
13719
13720         * lib/tempname.c (gen_tempname): Remove variant that invokes
13721         __gen_tempname.
13722         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
13723         __gen_tempname.
13724
13725 2006-11-08  Bruno Haible  <bruno@clisp.org>
13726
13727         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
13728         to 'yes' instead of 'cross-compiling'.
13729
13730 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
13731
13732         * lib/quotearg.h (quotearg_free): New decl.
13733         * lib/quotearg.c (quotearg_free): New function.
13734         (slot0, nslots, slotvec0, slotvec):
13735         Now file-scope so that quotearg_free can get at them.
13736
13737 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13738
13739         Sync from Automake.
13740         * build-aux/gnupload: Add missing 'gnu' to example URL.
13741         Report by Karl Berry.
13742
13743 2006-11-08  Bruno Haible  <bruno@clisp.org>
13744
13745         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
13746         Suggested by Paul Eggert.
13747
13748 2006-11-08  Jim Meyering  <jim@meyering.net>
13749
13750         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
13751         It's already included if !_LIBC.
13752         (fts_safe_changedir): Add a comment.
13753
13754 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
13755
13756         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
13757         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
13758         Matthew Woehlke.
13759
13760         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
13761         definitions up, to avoid colliding with change below.
13762         (static_inline) [HAVE_INLINE]: New macro.
13763         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
13764         Provide extern decls when !HAVE_INLINE.  Do not define unless
13765         static_inline is defined, either by us or by xmalloc.c.  Use
13766         static_inline rather than static inline.
13767         (XCALLOC): Optimize sizeof(T) = 1 case.
13768         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
13769
13770 2006-11-07  Bruno Haible  <bruno@clisp.org>
13771
13772         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
13773         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
13774         AC_C_INLINE.
13775         * modules/xalloc (Files): Add m4/inline.m4.
13776
13777 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13778
13779         * README: Fix typo.
13780         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
13781         (Miscellanous Notes): ...from this.
13782
13783 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
13784
13785         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
13786         Mention that offsetof should be used instead of sizeof.
13787         From Bruno Haible.
13788
13789 2006-11-07  Bruno Haible  <bruno@clisp.org>
13790
13791         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
13792
13793 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
13794
13795         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
13796         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
13797         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
13798         (gl_tree_add_before, gl_tree_add_after):
13799         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
13800         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
13801         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
13802         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
13803         (gl_linked_add_after, gl_linked_add_at): Likewise.
13804         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
13805         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
13806         (gl_tree_add_before, gl_tree_add_after): Likewise.
13807         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
13808         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
13809         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
13810
13811 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13812
13813         * lib/gl_oset.h: Use C comment style, not C++ comment style.
13814
13815 2006-11-06  Bruno Haible  <bruno@clisp.org>
13816
13817         * m4/inline.m4: New file.
13818         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
13819         * modules/list (Files): Add m4/inline.m4.
13820         * modules/oset (Files): Likewise.
13821
13822 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
13823
13824         * lib/idcache.c: Include <stddef.h>, for offsetof.
13825         (struct userid.name): Change from char * to a flexible array member.
13826         All uses changed.
13827         * modules/idcache (Depends-on): Add flexmember.
13828
13829         * MODULES.html.sh (Core language properties): New module flexmember.
13830         * modules/flexmember, m4/flexmember.m4: New files.
13831
13832         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
13833         inline functions that are identical with the old xnmalloc_inline,
13834         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
13835         that we can avoid some unnecessary integer multiplications and
13836         divisions in the common case where the element size is known at
13837         compile time.
13838         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
13839         needed.
13840         (xnboundedmalloc): Remove.
13841         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
13842         arguments, for consistency with rest of this header.
13843         (xcharalloc): Rewrite using XNMALLOC.
13844         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
13845         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
13846         versions have been moved to lib/xalloc.h and renamed to be the
13847         non-*_inline versions.
13848         (xmalloc, xrealloc): Implement without reference to the xnmalloc
13849         and xnrealloc functions, since those functions are now inline and
13850         now call us.
13851         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
13852         renaming described above.
13853         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
13854         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
13855         captures the dependency in AC_C_INLINE.
13856
13857         New module canonicalize-lgpl, proposed by Charles Wilson in
13858         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
13859         with a few small changes afterwards.
13860         * MODULES.html.sh (File system functions): New module
13861         canonicalize-lgpl.
13862         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
13863         and canonicalize_file_name.
13864         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
13865         * modules/canonicalize-lgpl: New files.
13866
13867 2006-11-05  Bruno Haible  <bruno@clisp.org>
13868
13869         * gnulib-tool (func_import, func_create_testdir): Create directories
13870         also for files in subdirectories of lib/.
13871
13872 2006-11-05  Bruno Haible  <bruno@clisp.org>
13873
13874         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
13875         ANSI C compliant.
13876
13877 2006-11-03  Bruno Haible  <bruno@clisp.org>
13878
13879         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
13880         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
13881         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
13882         (xnboundedmalloc): New inline function.
13883         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
13884         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
13885         xmalloc.
13886         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
13887         xmalloc.
13888         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
13889         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
13890         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
13891         xmalloc.
13892         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
13893         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
13894         xmalloc.
13895         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
13896         gl_tree_add_after): Use XMALLOC instead of xmalloc.
13897         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
13898         xmalloc.
13899         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
13900         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
13901         gl_tree_add_after): Use XMALLOC instead of xmalloc.
13902         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
13903         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
13904         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
13905         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
13906
13907 2006-11-03  Bruno Haible  <bruno@clisp.org>
13908
13909         * lib/c-ctype.h [C++]: Define functions without name mangling.
13910         * lib/fwriteerror.h [C++]: Likewise.
13911         * lib/gcd.h [C++]: Likewise.
13912         * lib/linebreak.h [C++]: Likewise.
13913
13914 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
13915
13916         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
13917         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
13918         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
13919         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
13920         Check for functions and headers just once.
13921         Check for declaration of canonicalize_file_name.
13922         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
13923
13924 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
13925
13926         * gnulib-tool (func_import): Fix typo in actioncmd.
13927
13928 2006-11-02  Bruno Haible  <bruno@clisp.org>
13929
13930         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
13931         newline sequence in the Makefile.am snippet as a space, like "make"
13932         does.
13933         Reported by Roger Persson <perrog@gmail.com>.
13934
13935 2006-11-01  Bruno Haible  <bruno@clisp.org>
13936
13937         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
13938         already declared in <string.h>.
13939         * lib/strcase.h (strncasecmp): Don't declare it if yes.
13940
13941 2006-11-01  Bruno Haible  <bruno@clisp.org>
13942
13943         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
13944         * lib/strcase.h: Include <string.h>.
13945         (strcasecmp): Define to rpl_strcasecmp here.
13946
13947 2006-11-01  Bruno Haible  <bruno@clisp.org>
13948
13949         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
13950
13951 2006-11-01  Eric Blake  <ebb9@byu.net>
13952
13953         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
13954
13955         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
13956
13957 2006-10-29  Bruno Haible  <bruno@clisp.org>
13958
13959         Make it compile in C++ mode.
13960         * lib/full-write.c (full_rw): Add a cast.
13961
13962 2006-11-01  Bruno Haible  <bruno@clisp.org>
13963
13964         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
13965         be POSIX compliant.
13966         Reported by Roger Persson <perrog@gmail.com>.
13967
13968 2006-11-01  Eric Blake  <ebb9@byu.net>
13969
13970         * lib/getopt_.h: Fix comments.
13971
13972 2006-10-31  Eric Blake  <ebb9@byu.net>
13973
13974         * modules/tmpdir (Depends-on): Add sys_stat.
13975         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
13976         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
13977         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
13978         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
13979         tempname.
13980
13981 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
13982
13983         Avoid some C++ diagnostics reported by Bruno Haible.
13984         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
13985         xmalloc.
13986         (quotearg_alloc): Use xcharalloc rather than xmalloc.
13987         (struct slotvec): Move to top level.
13988         (quotearg_n_options): Rewrite to avoid xmalloc.
13989         * lib/xalloc.h (xcharalloc): New function.
13990         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
13991         [defined __cplusplus]: Add function template that provides result
13992         type propagation.  This part of the change is from Bruno Haible.
13993
13994 2006-10-29  Bruno Haible  <bruno@clisp.org>
13995
13996         Make it compile in C++ mode.
13997         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
13998         * lib/strnlen1.c (strnlen1): Cast memchr result.
13999         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
14000         * lib/clean-temp.c (string_equals, string_hash): Add casts.
14001         (create_temp_dir): Rename local variable 'template'.
14002         (compile_csharp_using_sscli): Add cast.
14003         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
14004         * lib/findprog.c (find_in_path): Likewise.
14005         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
14006         * lib/wait-process.c (register_slave_subprocess): Likewise.
14007
14008 2006-10-22  Bruno Haible  <bruno@clisp.org>
14009
14010         * modules/tsearch: New file.
14011         * lib/tsearch.h: New file.
14012         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
14013         * m4/tsearch.m4: New file.
14014         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
14015
14016 2006-10-29  Eric Blake  <ebb9@byu.net>
14017
14018         * lib/arcfour.c: Assume config.h.
14019         * lib/arctwo.c: Likewise.
14020         * lib/base64.c: Likewise.
14021         * lib/check-version.c: Likewise.
14022         * lib/crc.c: Likewise.
14023         * lib/des.c: Likewise.
14024         * lib/gc-gnulib.c: Likewise.
14025         * lib/gc-libgcrypt.c: Likewise.
14026         * lib/gc-pbkdf2-sha1.c: Likewise.
14027         * lib/getaddrinfo.c: Likewise.
14028         * lib/getdelim.c: Likewise.
14029         * lib/getline.c: Likewise.
14030         * lib/hmac-md5.c: Likewise.
14031         * lib/hmac-sha1.c: Likewise.
14032         * lib/iconvme.c: Likewise.
14033         * lib/md2.c: Likewise.
14034         * lib/md4.c: Likewise.
14035         * lib/memxor.c: Likewise.
14036         * lib/read-file.c: Likewise.
14037         * lib/readline.c: Likewise.
14038         * lib/rijndael-alg-fst.c: Likewise.
14039         * lib/rijndael-api-fst.c: Likewise.
14040         * lib/xgetdomainname.c: Likewise.
14041
14042 2006-10-28  Eric Blake  <ebb9@byu.net>
14043
14044         * lib/xstrndup.c: Assume config.h.
14045
14046 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
14047
14048         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
14049         stat-macros.h is now for our own macros, whereas stat_h is for
14050         macros in the <sys/stat.h> name space.
14051         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
14052         (STAT_MACROS_H): Remove.
14053         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
14054         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
14055         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
14056         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
14057         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
14058         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
14059         Move these macros to ...
14060         * lib/stat_.h: here.  Don't include stat-macros.h.
14061         * lib/canonicalize.c: Don't include stat-macros.h.
14062         * lib/chown.c: Likewise.
14063         * lib/euidaccess.c: Likewise.
14064         * lib/file-type.c: Likewise.
14065         * lib/filemode.c: Likewise.
14066         * lib/glob.c: Likewise.
14067         * lib/isapipe.c: Likewise.
14068         * lib/lchown.c: Likewise.
14069         * lib/lstat.c: Likewise.
14070         * lib/mkdir-p.c: Likewise.
14071         * lib/rmdir.c: Likewise.
14072         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
14073         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
14074         unless mkdir isn't declared, to speed up 'configure'.
14075         Always create sys/stat.h, since it's unlikely any real sys/stat.h
14076         would define all the S_* symbols.
14077         * modules/canonicalize (Depends-on):
14078         Depend on sys_stat, not stat-macros.
14079         * modules/chown: Likewise.
14080         * modules/euidaccess: Likewise.
14081         * modules/filemode: Likewise.
14082         * modules/file-type: Likewise.
14083         * modules/glob: Likewise.
14084         * modules/isapipe: Likewise.
14085         * modules/lchown: Likewise.
14086         * modules/lstat: Likewise.
14087         * modules/mkancesdirs: Likewise.
14088         * modules/rmdir: Likewise.
14089         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
14090         * modules/modechange: Likewise.
14091         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
14092         (configure.ac): Remove gl_STAT_MACROS.
14093         * modules/sys_stat (Depends-on): Remove stat-macros.
14094
14095 2006-10-27  Bruno Haible  <bruno@clisp.org>
14096
14097         * m4/signed.m4: Remove file.
14098         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
14099         invocation.
14100         * modules/vasnprintf (Files): Remove m4/signed.m4.
14101
14102 2006-10-27  Bruno Haible  <bruno@clisp.org>
14103
14104         Update to GNU gettext 0.16.
14105         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
14106         m4/inttypes-h.m4, m4/signed.m4.
14107         * m4/gettext.m4: Update to GNU gettext 0.16.
14108         * m4/intl.m4: New file, from GNU gettext.
14109         * m4/intldir.m4: New file, from GNU gettext.
14110         * config/srclist.txt: Update
14111
14112 2006-10-27  Eric Blake  <ebb9@byu.net>
14113
14114         * MODULES.html.sh: Document tempname.
14115         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
14116         dependencies.
14117         (Files): Move lib/tempname.c...
14118         * modules/tempname: ...to this new module.
14119         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
14120         (gl_PREREQ_TEMPNAME): Move...
14121         * m4/tempname.m4: ...to this new file.
14122         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
14123         * modules/sys_stat (Depends-on): Add stat-macros.
14124         * lib/stat_.h (includes): Pick up stat macros.
14125         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
14126         if stat macros are broken.
14127         * lib/tempname.c (includes): No need to include "stat-macros.h".
14128         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
14129         (direxists, __path_search) [!_LIBC]: Don't compile these in
14130         gnulib; the tmpdir module covers that.
14131         * lib/tempname.h: New file.
14132
14133 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
14134
14135         * COPYING: Explain how gnulib-tool converts licence headers.
14136         Almost all wording by Eric Blake.
14137
14138 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
14139
14140         * lib/mbchar.h (is_basic_table): Make read-only.
14141         * lib/mbchar.c (is_basic_table): Likewise.
14142         Reported by John Darrington.
14143
14144 2006-10-25  Bruno Haible  <bruno@clisp.org>
14145
14146         * lib/progname.h (set_program_name): Undefine before defining.
14147
14148 2006-10-25  Bruno Haible  <bruno@clisp.org>
14149
14150         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
14151         false for non-gcc C++ compilers.
14152         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
14153
14154 2006-10-24  Bruno Haible  <bruno@clisp.org>
14155
14156         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
14157         iconv implementations like Irix iconv.
14158
14159 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
14160
14161         * modules/vararrays: New file.
14162         * m4/vararrays.m4: New file, taken from diffutils.
14163         * MODULES.html.sh: New module vararrays.
14164
14165 2006-10-24  Karl Berry  <karl@gnu.org>
14166
14167         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
14168         Don't call GNU Unix.
14169
14170 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14171
14172         * users.txt: Add Libtool.
14173
14174         Sync from Libtool:
14175
14176         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
14177
14178         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
14179         to gnulib's policy of including config.h unconditionally.
14180
14181 2006-10-24  Bruno Haible  <bruno@clisp.org>
14182
14183         * modules/wcwidth (Files): Add m4/wint_t.m4.
14184         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
14185         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
14186
14187 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
14188
14189         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
14190         to pacify GCC with some -W flags enabled.  Problem reported by
14191         Bruno Haible.
14192
14193 2006-10-24  Jim Meyering  <jim@meyering.net>
14194
14195         * MODULES.html.sh: Remove uinttostr.  It's not a module.
14196         Reported by Karl Berry.
14197
14198 2006-10-23  Bruno Haible  <bruno@clisp.org>
14199
14200         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
14201
14202 2006-10-24  Bruno Haible  <bruno@clisp.org>
14203
14204         * lib/gl_list.h: Use C comment style, not C++ comment style.
14205
14206 2006-10-23  Eric Blake  <ebb9@byu.net>
14207
14208         * lib/getaddrinfo.c (includes): Add missing include.
14209
14210 2006-10-23  Bruno Haible  <bruno@clisp.org>
14211             Paul Eggert  <eggert@cs.ucla.edu>
14212
14213         Ability to rename obstack_free.
14214         * lib/obstack.h (__obstack_free): New macro. Declare instead of
14215         obstack_free.
14216         (obstack_free): Invoke the __obstack_free macro.
14217         * lib/obstack.c (obstack_free): Use __obstack_free macro.
14218
14219 2006-10-23  Bruno Haible  <bruno@clisp.org>
14220             Paul Eggert  <eggert@cs.ucla.edu>
14221
14222         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
14223         __argc, __argv from the declaration. (They are defined as macros on
14224         mingw.)
14225
14226 2006-10-22  Bruno Haible  <bruno@clisp.org>
14227
14228         * doc/gnulib-intro.texi: New file.
14229         * doc/gnulib.texi: Include it.
14230
14231 2006-10-21  Bruno Haible  <bruno@clisp.org>
14232
14233         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
14234         "Introduction", "Miscellanous Notes", "Particular Modules".
14235
14236 2006-10-21  Bruno Haible  <bruno@clisp.org>
14237
14238         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14239         Change mostlyclean-local rule to avoid sh syntax error from bash
14240         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
14241
14242 2006-10-23  Jim Meyering  <jim@meyering.net>
14243
14244         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
14245         in place of snprintf.
14246
14247         * modules/inttostr (Files): Add lib/uinttostr.c.
14248         * lib/uinttostr.c (inttostr): New file/function.
14249         * lib/inttostr.h (uinttostr): Declare.
14250         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
14251         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
14252         Add uinttostr.
14253         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
14254
14255 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
14256
14257         * lib/canonicalize.c (ELOOP): Define if not already defined.
14258         Problem reported by Bruno Haible in
14259         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
14260
14261 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
14262
14263         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
14264         Problem reported by Perry Smith and Ville Laurikari.
14265
14266         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
14267         uses.
14268
14269 2006-10-19  Bruno Haible  <bruno@clisp.org>
14270
14271         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
14272         for mingw.
14273
14274 2006-10-19  Bruno Haible  <bruno@clisp.org>
14275
14276         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
14277         Needed for mingw.
14278
14279 2006-10-19  Bruno Haible  <bruno@clisp.org>
14280
14281         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
14282
14283 2006-10-19  Bruno Haible  <bruno@clisp.org>
14284
14285         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
14286         it.
14287
14288 2006-10-19  Bruno Haible  <bruno@clisp.org>
14289
14290         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
14291         invocation.
14292
14293 2006-10-19  Bruno Haible  <bruno@clisp.org>
14294
14295         * gnulib-tool (func_create_testdir): Don't include ftruncate and
14296         mountlist by default.
14297
14298 2006-10-16  Bruno Haible  <bruno@clisp.org>
14299
14300         * lib/c-strstr.c: Include c-strstr.h.
14301
14302 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
14303
14304         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
14305         in a slash.
14306
14307 2006-10-18  Bruno Haible  <bruno@clisp.org>
14308
14309         * lib/lock.h [C++]: Wrap definitions in extern "C".
14310
14311 2006-10-18  Bruno Haible  <bruno@clisp.org>
14312
14313         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
14314         gl_LIBOBJS list.
14315
14316 2006-10-18  Bruno Haible  <bruno@clisp.org>
14317
14318         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
14319
14320 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
14321
14322         * lib/xstrtol.h: Include gettext.h.
14323         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
14324         Problem reported by Eric Blake.
14325         * modules/xstrtol (Depends-on): Add gettext-h.
14326
14327 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
14328
14329         * lib/strftime.c (advance): New macro.
14330         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
14331         incomplete type, so you can't add 0 to it.  Problem and patch
14332         reported by Eelco Dolstra for dietlibc.
14333
14334 2006-10-18  Jim Meyering  <jim@meyering.net>
14335
14336         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
14337         type for a local, and rename it: s/up/user_proc/.
14338
14339 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
14340
14341         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
14342         READ_UTMP_USER_PROCESS.
14343         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
14344
14345 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
14346
14347         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
14348         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
14349
14350 2006-10-17  Eric Blake  <ebb9@byu.net>
14351
14352         * lib/sigprocmask.c (sigprocmask): Fix typo.
14353
14354         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
14355
14356         * modules/clean-temp (Makefile.am): Don't add to make output...
14357         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
14358         config.h.
14359
14360 2006-10-17  Bruno Haible  <bruno@clisp.org>
14361
14362         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
14363         differently if DEFAULT_TEXT_DOMAIN is set.
14364
14365 2006-10-16  Bruno Haible  <bruno@clisp.org>
14366
14367         * lib/clean-temp.c: Include fwriteerror.h.
14368
14369 2006-10-16  Bruno Haible  <bruno@clisp.org>
14370
14371         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
14372
14373 2006-10-16  Bruno Haible  <bruno@clisp.org>
14374
14375         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
14376         * lib/sigprocmask.h: Include <sys/types.h>.
14377         (sigset_t): Use the system's definition if present.
14378
14379 2006-10-17  Eric Blake  <ebb9@byu.net>
14380
14381         * lib/xvasprintf.c (includes): Assume config.h.
14382         * lib/xasprintf.c (includes): Likewise.
14383
14384 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
14385
14386         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
14387         at least as wide as intmax_t.
14388
14389 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
14390
14391         (Imported from Automake.)
14392         * build-aux/gnupload: Update to version 1.1 of directive file.
14393
14394 2006-10-16  Eric Blake  <ebb9@byu.net>
14395
14396         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
14397         match Automake 1.10a.
14398
14399 2006-10-14  Bruno Haible  <bruno@clisp.org>
14400
14401         * modules/sigprocmask: New file.
14402         * lib/sigprocmask.h: New file.
14403         * lib/sigprocmask.c: New file.
14404         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
14405         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
14406         request sigprocmask.o.
14407         (gl_PREREQ_SIGPROCMASK): New macro.
14408         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
14409         (Depends-on): Add sigprocmask.
14410         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
14411         gt_SIGNALBLOCKING. Test for 'raise' only once.
14412         * lib/fatal-signal.c: Include sigprocmask.h.
14413         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
14414         unblock_fatal_signals): Define always.
14415         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
14416         sigprocmask.
14417
14418 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
14419
14420         Sync from Automake.
14421         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
14422         which incorrectly sets the mode of an existing destination
14423         directory.  In some cases the unpatched install-sh could do the
14424         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
14425         system.  We hope this is rare in practice, but it's clearly worth
14426         fixing.  Problem reported by Alex Unleashed in
14427         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
14428         Also, don't bother to check for -m bugs unless we're using -m;
14429         suggested by Stepan Kasal.
14430
14431 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14432
14433         Sync from Automake.
14434         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
14435         `-c' flag, so they appear at the same position as in %FASTDEP%
14436         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
14437         which ignores unknown options only after the first non-option.
14438         Bug report against M4 by Nelson H. F. Beebe.
14439
14440 2006-10-13  Jim Meyering  <jim@meyering.net>
14441
14442         Fix a bug in yesterday's change.
14443         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
14444         p->fts_statp->st_dev would be used uninitialized.
14445         Ensures that we always call fts_stat on the very first entry.
14446         Miklos Szeredi reported that find -xdev stopped working.
14447
14448 2006-10-12  Bruno Haible  <bruno@clisp.org>
14449
14450         * gnulib-tool (func_get_automake_snippet): Append an automatically
14451         computed EXTRA_DIST augmentation.
14452         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
14453         * modules/alloca-opt (Makefile.am): Likewise.
14454         * modules/allocsa (Makefile.am): Likewise.
14455         * modules/arcfour (Makefile.am): Likewise.
14456         * modules/arctwo (Makefile.am): Likewise.
14457         * modules/argmatch (Makefile.am): Likewise.
14458         * modules/argz (Makefile.am): Likewise.
14459         * modules/atexit (Makefile.am): Likewise.
14460         * modules/backupfile (Makefile.am): Likewise.
14461         * modules/byteswap (Makefile.am): Likewise.
14462         * modules/c-strtod (Makefile.am): Likewise.
14463         * modules/c-strtold (Makefile.am): Likewise.
14464         * modules/calloc (Makefile.am): Likewise.
14465         * modules/canon-host (Makefile.am): Likewise.
14466         * modules/canonicalize (Makefile.am): Likewise.
14467         * modules/chdir-long (Makefile.am): Likewise.
14468         * modules/chdir-safer (Makefile.am): Likewise.
14469         * modules/check-version (Makefile.am): Likewise.
14470         * modules/chown (Makefile.am): Likewise.
14471         * modules/cloexec (Makefile.am): Likewise.
14472         * modules/close-stream (Makefile.am): Likewise.
14473         * modules/closeout (Makefile.am): Likewise.
14474         * modules/crc (Makefile.am): Likewise.
14475         * modules/csharpexec (Makefile.am): Likewise.
14476         * modules/cycle-check (Makefile.am): Likewise.
14477         * modules/des (Makefile.am): Likewise.
14478         * modules/dev-ino (Makefile.am): Likewise.
14479         * modules/dirfd (Makefile.am): Likewise.
14480         * modules/dirname (Makefile.am): Likewise.
14481         * modules/dup2 (Makefile.am): Likewise.
14482         * modules/eealloc (Makefile.am): Likewise.
14483         * modules/error (Makefile.am): Likewise.
14484         * modules/euidaccess (Makefile.am): Likewise.
14485         * modules/exclude (Makefile.am): Likewise.
14486         * modules/exitfail (Makefile.am): Likewise.
14487         * modules/fcntl-safer (Makefile.am): Likewise.
14488         * modules/fcntl (Makefile.am): Likewise.
14489         * modules/file-type (Makefile.am): Likewise.
14490         * modules/fileblocks (Makefile.am): Likewise.
14491         * modules/filemode (Makefile.am): Likewise.
14492         * modules/filenamecat (Makefile.am): Likewise.
14493         * modules/fnmatch (Makefile.am): Likewise.
14494         * modules/fopen-safer (Makefile.am): Likewise.
14495         * modules/fpending (Makefile.am): Likewise.
14496         * modules/fprintftime (Makefile.am): Likewise.
14497         * modules/free (Makefile.am): Likewise.
14498         * modules/fsusage (Makefile.am): Likewise.
14499         * modules/ftruncate (Makefile.am): Likewise.
14500         * modules/fts (Makefile.am): Likewise.
14501         * modules/gc-arcfour (Makefile.am): Likewise.
14502         * modules/gc-des (Makefile.am): Likewise.
14503         * modules/gc-hmac-md5 (Makefile.am): Likewise.
14504         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
14505         * modules/gc-md4 (Makefile.am): Likewise.
14506         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
14507         * modules/gc-sha1 (Makefile.am): Likewise.
14508         * modules/gc (Makefile.am): Likewise.
14509         * modules/getaddrinfo (Makefile.am): Likewise.
14510         * modules/getcwd (Makefile.am): Likewise.
14511         * modules/getdelim (Makefile.am): Likewise.
14512         * modules/getdomainname (Makefile.am): Likewise.
14513         * modules/getgroups (Makefile.am): Likewise.
14514         * modules/gethostname (Makefile.am): Likewise.
14515         * modules/gethrxtime (Makefile.am): Likewise.
14516         * modules/getline (Makefile.am): Likewise.
14517         * modules/getloadavg (Makefile.am): Likewise.
14518         * modules/getlogin_r (Makefile.am): Likewise.
14519         * modules/getndelim2 (Makefile.am): Likewise.
14520         * modules/getopt (Makefile.am): Likewise.
14521         * modules/getpagesize (Makefile.am): Likewise.
14522         * modules/getpass-gnu (Makefile.am): Likewise.
14523         * modules/getpass (Makefile.am): Likewise.
14524         * modules/getsubopt (Makefile.am): Likewise.
14525         * modules/gettime (Makefile.am): Likewise.
14526         * modules/gettimeofday (Makefile.am): Likewise.
14527         * modules/getugroups (Makefile.am): Likewise.
14528         * modules/getusershell (Makefile.am): Likewise.
14529         * modules/glob (Makefile.am): Likewise.
14530         * modules/group-member (Makefile.am): Likewise.
14531         * modules/hard-locale (Makefile.am): Likewise.
14532         * modules/hash (Makefile.am): Likewise.
14533         * modules/hmac-md5 (Makefile.am): Likewise.
14534         * modules/hmac-sha1 (Makefile.am): Likewise.
14535         * modules/human (Makefile.am): Likewise.
14536         * modules/idcache (Makefile.am): Likewise.
14537         * modules/imaxabs (Makefile.am): Likewise.
14538         * modules/imaxdiv (Makefile.am): Likewise.
14539         * modules/inet_ntop (Makefile.am): Likewise.
14540         * modules/inet_pton (Makefile.am): Likewise.
14541         * modules/intprops (Makefile.am): Likewise.
14542         * modules/inttostr (Makefile.am): Likewise.
14543         * modules/inttypes (Makefile.am): Likewise.
14544         * modules/isapipe (Makefile.am): Likewise.
14545         * modules/javaversion (Makefile.am): Likewise.
14546         * modules/lchmod (Makefile.am): Likewise.
14547         * modules/lchown (Makefile.am): Likewise.
14548         * modules/localcharset (Makefile.am): Likewise.
14549         * modules/long-options (Makefile.am): Likewise.
14550         * modules/lstat (Makefile.am): Likewise.
14551         * modules/malloc (Makefile.am): Likewise.
14552         * modules/mathl (Makefile.am): Likewise.
14553         * modules/mbchar (Makefile.am): Likewise.
14554         * modules/md2 (Makefile.am): Likewise.
14555         * modules/md4 (Makefile.am): Likewise.
14556         * modules/md5 (Makefile.am): Likewise.
14557         * modules/memcasecmp (Makefile.am): Likewise.
14558         * modules/memchr (Makefile.am): Likewise.
14559         * modules/memcmp (Makefile.am): Likewise.
14560         * modules/memcoll (Makefile.am): Likewise.
14561         * modules/memcpy (Makefile.am): Likewise.
14562         * modules/memmem (Makefile.am): Likewise.
14563         * modules/memmove (Makefile.am): Likewise.
14564         * modules/mempcpy (Makefile.am): Likewise.
14565         * modules/memrchr (Makefile.am): Likewise.
14566         * modules/memset (Makefile.am): Likewise.
14567         * modules/memxor (Makefile.am): Likewise.
14568         * modules/mkancesdirs (Makefile.am): Likewise.
14569         * modules/mkdir-p (Makefile.am): Likewise.
14570         * modules/mkdir (Makefile.am): Likewise.
14571         * modules/mkdtemp (Makefile.am): Likewise.
14572         * modules/mkstemp (Makefile.am): Likewise.
14573         * modules/mktime (Makefile.am): Likewise.
14574         * modules/modechange (Makefile.am): Likewise.
14575         * modules/mountlist (Makefile.am): Likewise.
14576         * modules/nanosleep (Makefile.am): Likewise.
14577         * modules/obstack (Makefile.am): Likewise.
14578         * modules/openat (Makefile.am): Likewise.
14579         * modules/pagealign_alloc (Makefile.am): Likewise.
14580         * modules/pathmax (Makefile.am): Likewise.
14581         * modules/physmem (Makefile.am): Likewise.
14582         * modules/poll (Makefile.am): Likewise.
14583         * modules/posixtm (Makefile.am): Likewise.
14584         * modules/posixver (Makefile.am): Likewise.
14585         * modules/putenv (Makefile.am): Likewise.
14586         * modules/quote (Makefile.am): Likewise.
14587         * modules/quotearg (Makefile.am): Likewise.
14588         * modules/raise (Makefile.am): Likewise.
14589         * modules/read-file (Makefile.am): Likewise.
14590         * modules/readline (Makefile.am): Likewise.
14591         * modules/readlink (Makefile.am): Likewise.
14592         * modules/readtokens (Makefile.am): Likewise.
14593         * modules/readutmp (Makefile.am): Likewise.
14594         * modules/realloc (Makefile.am): Likewise.
14595         * modules/regex (Makefile.am): Likewise.
14596         * modules/rename-dest-slash (Makefile.am): Likewise.
14597         * modules/rename (Makefile.am): Likewise.
14598         * modules/rijndael (Makefile.am): Likewise.
14599         * modules/rmdir (Makefile.am): Likewise.
14600         * modules/rpmatch (Makefile.am): Likewise.
14601         * modules/safe-read (Makefile.am): Likewise.
14602         * modules/safe-write (Makefile.am): Likewise.
14603         * modules/same-inode (Makefile.am): Likewise.
14604         * modules/same (Makefile.am): Likewise.
14605         * modules/save-cwd (Makefile.am): Likewise.
14606         * modules/savedir (Makefile.am): Likewise.
14607         * modules/setenv (Makefile.am): Likewise.
14608         * modules/settime (Makefile.am): Likewise.
14609         * modules/sha1 (Makefile.am): Likewise.
14610         * modules/sig2str (Makefile.am): Likewise.
14611         * modules/snprintf (Makefile.am): Likewise.
14612         * modules/stat-macros (Makefile.am): Likewise.
14613         * modules/stat-time (Makefile.am): Likewise.
14614         * modules/stdbool (Makefile.am): Likewise.
14615         * modules/stdint (Makefile.am): Likewise.
14616         * modules/stdlib-safer (Makefile.am): Likewise.
14617         * modules/stpcpy (Makefile.am): Likewise.
14618         * modules/stpncpy (Makefile.am): Likewise.
14619         * modules/strcase (Makefile.am): Likewise.
14620         * modules/strcasestr (Makefile.am): Likewise.
14621         * modules/strchrnul (Makefile.am): Likewise.
14622         * modules/strcspn (Makefile.am): Likewise.
14623         * modules/strdup (Makefile.am): Likewise.
14624         * modules/strerror (Makefile.am): Likewise.
14625         * modules/strftime (Makefile.am): Likewise.
14626         * modules/strndup (Makefile.am): Likewise.
14627         * modules/strnlen (Makefile.am): Likewise.
14628         * modules/strpbrk (Makefile.am): Likewise.
14629         * modules/strsep (Makefile.am): Likewise.
14630         * modules/strstr (Makefile.am): Likewise.
14631         * modules/strtod (Makefile.am): Likewise.
14632         * modules/strtoimax (Makefile.am): Likewise.
14633         * modules/strtok_r (Makefile.am): Likewise.
14634         * modules/strtol (Makefile.am): Likewise.
14635         * modules/strtoll (Makefile.am): Likewise.
14636         * modules/strtoul (Makefile.am): Likewise.
14637         * modules/strtoull (Makefile.am): Likewise.
14638         * modules/strtoumax (Makefile.am): Likewise.
14639         * modules/strverscmp (Makefile.am): Likewise.
14640         * modules/sys_socket (Makefile.am): Likewise.
14641         * modules/sys_stat (Makefile.am): Likewise.
14642         * modules/sysexits (Makefile.am): Likewise.
14643         * modules/time_r (Makefile.am): Likewise.
14644         * modules/timegm (Makefile.am): Likewise.
14645         * modules/timespec (Makefile.am): Likewise.
14646         * modules/tmpfile-safer (Makefile.am): Likewise.
14647         * modules/trim (Makefile.am): Likewise.
14648         * modules/unistd-safer (Makefile.am): Likewise.
14649         * modules/unlinkdir (Makefile.am): Likewise.
14650         * modules/unlocked-io (Makefile.am): Likewise.
14651         * modules/userspec (Makefile.am): Likewise.
14652         * modules/utime (Makefile.am): Likewise.
14653         * modules/utimecmp (Makefile.am): Likewise.
14654         * modules/utimens (Makefile.am): Likewise.
14655         * modules/vasnprintf (Makefile.am): Likewise.
14656         * modules/vasprintf (Makefile.am): Likewise.
14657         * modules/vsnprintf (Makefile.am): Likewise.
14658         * modules/xalloc (Makefile.am): Likewise.
14659         * modules/xgetcwd (Makefile.am): Likewise.
14660         * modules/xnanosleep (Makefile.am): Likewise.
14661         * modules/xreadlink (Makefile.am): Likewise.
14662         * modules/xstrtod (Makefile.am): Likewise.
14663         * modules/xstrtol (Makefile.am): Likewise.
14664         * modules/xstrtold (Makefile.am): Likewise.
14665         * modules/yesno (Makefile.am): Likewise.
14666         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
14667
14668 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
14669
14670         * modules/error (Makefile.am): Distribute files through
14671         EXTRA_DIST, not lib_SOURCES.
14672
14673 2006-10-12  Eric Blake  <ebb9@byu.net>
14674
14675         * modules/error (Makefile.am): Distribute files in /lib.
14676         * modules/obstack (Makefile.am): Likewise.
14677
14678 2006-10-12  Bruno Haible  <bruno@clisp.org>
14679
14680         * modules/acl (Makefile.am): Distribute all files in lib/ through
14681         EXTRA_DIST.
14682         * modules/arcfour (Makefile.am): Likewise.
14683         * modules/arctwo (Makefile.am): Likewise.
14684         * modules/argmatch (Makefile.am): Likewise.
14685         * modules/argz (Makefile.am): Likewise.
14686         * modules/atexit (Makefile.am): Likewise.
14687         * modules/backupfile (Makefile.am): Likewise.
14688         * modules/c-strtod (Makefile.am): Likewise.
14689         * modules/c-strtold (Makefile.am): Likewise.
14690         * modules/calloc (Makefile.am): Likewise.
14691         * modules/canon-host (Makefile.am): Likewise.
14692         * modules/canonicalize (Makefile.am): Likewise.
14693         * modules/chdir-long (Makefile.am): Likewise.
14694         * modules/chdir-safer (Makefile.am): Likewise.
14695         * modules/check-version (Makefile.am): Likewise.
14696         * modules/chown (Makefile.am): Likewise.
14697         * modules/cloexec (Makefile.am): Likewise.
14698         * modules/close-stream (Makefile.am): Likewise.
14699         * modules/closeout (Makefile.am): Likewise.
14700         * modules/crc (Makefile.am): Likewise.
14701         * modules/cycle-check (Makefile.am): Likewise.
14702         * modules/des (Makefile.am): Likewise.
14703         * modules/dirfd (Makefile.am): Likewise.
14704         * modules/dirname (Makefile.am): Likewise.
14705         * modules/dup2 (Makefile.am): Likewise.
14706         * modules/euidaccess (Makefile.am): Likewise.
14707         * modules/exclude (Makefile.am): Likewise.
14708         * modules/exitfail (Makefile.am): Likewise.
14709         * modules/fcntl-safer (Makefile.am): Likewise.
14710         * modules/file-type (Makefile.am): Likewise.
14711         * modules/fileblocks (Makefile.am): Likewise.
14712         * modules/filemode (Makefile.am): Likewise.
14713         * modules/filenamecat (Makefile.am): Likewise.
14714         * modules/fnmatch (Makefile.am): Likewise.
14715         * modules/fopen-safer (Makefile.am): Likewise.
14716         * modules/fpending (Makefile.am): Likewise.
14717         * modules/fprintftime (Makefile.am): Likewise.
14718         * modules/free (Makefile.am): Likewise.
14719         * modules/fsusage (Makefile.am): Likewise.
14720         * modules/ftruncate (Makefile.am): Likewise.
14721         * modules/fts (Makefile.am): Likewise.
14722         * modules/gc (Makefile.am): Likewise.
14723         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
14724         * modules/getaddrinfo (Makefile.am): Likewise.
14725         * modules/getcwd (Makefile.am): Likewise.
14726         * modules/getdelim (Makefile.am): Likewise.
14727         * modules/getdomainname (Makefile.am): Likewise.
14728         * modules/getgroups (Makefile.am): Likewise.
14729         * modules/gethostname (Makefile.am): Likewise.
14730         * modules/gethrxtime (Makefile.am): Likewise.
14731         * modules/getline (Makefile.am): Likewise.
14732         * modules/getloadavg (Makefile.am): Likewise.
14733         * modules/getlogin_r (Makefile.am): Likewise.
14734         * modules/getopt (Makefile.am): Likewise.
14735         * modules/getpass (Makefile.am): Likewise.
14736         * modules/getpass-gnu (Makefile.am): Likewise.
14737         * modules/getsubopt (Makefile.am): Likewise.
14738         * modules/gettime (Makefile.am): Likewise.
14739         * modules/gettimeofday (Makefile.am): Likewise.
14740         * modules/getugroups (Makefile.am): Likewise.
14741         * modules/getusershell (Makefile.am): Likewise.
14742         * modules/glob (Makefile.am): Likewise.
14743         * modules/group-member (Makefile.am): Likewise.
14744         * modules/hard-locale (Makefile.am): Likewise.
14745         * modules/hash (Makefile.am): Likewise.
14746         * modules/hmac-md5 (Makefile.am): Likewise.
14747         * modules/hmac-sha1 (Makefile.am): Likewise.
14748         * modules/human (Makefile.am): Likewise.
14749         * modules/idcache (Makefile.am): Likewise.
14750         * modules/imaxabs (Makefile.am): Likewise.
14751         * modules/imaxdiv (Makefile.am): Likewise.
14752         * modules/inet_ntop (Makefile.am): Likewise.
14753         * modules/inet_pton (Makefile.am): Likewise.
14754         * modules/inttostr (Makefile.am): Likewise.
14755         * modules/isapipe (Makefile.am): Likewise.
14756         * modules/lchown (Makefile.am): Likewise.
14757         * modules/long-options (Makefile.am): Likewise.
14758         * modules/lstat (Makefile.am): Likewise.
14759         * modules/malloc (Makefile.am): Likewise.
14760         * modules/mathl (Makefile.am): Likewise.
14761         * modules/mbchar (Makefile.am): Likewise.
14762         * modules/md2 (Makefile.am): Likewise.
14763         * modules/md4 (Makefile.am): Likewise.
14764         * modules/md5 (Makefile.am): Likewise.
14765         * modules/memcasecmp (Makefile.am): Likewise.
14766         * modules/memchr (Makefile.am): Likewise.
14767         * modules/memcmp (Makefile.am): Likewise.
14768         * modules/memcoll (Makefile.am): Likewise.
14769         * modules/memcpy (Makefile.am): Likewise.
14770         * modules/memmem (Makefile.am): Likewise.
14771         * modules/memmove (Makefile.am): Likewise.
14772         * modules/mempcpy (Makefile.am): Likewise.
14773         * modules/memrchr (Makefile.am): Likewise.
14774         * modules/memset (Makefile.am): Likewise.
14775         * modules/memxor (Makefile.am): Likewise.
14776         * modules/mkancesdirs (Makefile.am): Likewise.
14777         * modules/mkdir (Makefile.am): Likewise.
14778         * modules/mkdir-p (Makefile.am): Likewise.
14779         * modules/mkdtemp (Makefile.am): Likewise.
14780         * modules/mkstemp (Makefile.am): Likewise.
14781         * modules/mktime (Makefile.am): Likewise.
14782         * modules/modechange (Makefile.am): Likewise.
14783         * modules/mountlist (Makefile.am): Likewise.
14784         * modules/nanosleep (Makefile.am): Likewise.
14785         * modules/openat (Makefile.am): Likewise.
14786         * modules/pagealign_alloc (Makefile.am): Likewise.
14787         * modules/physmem (Makefile.am): Likewise.
14788         * modules/poll (Makefile.am): Likewise.
14789         * modules/posixtm (Makefile.am): Likewise.
14790         * modules/posixver (Makefile.am): Likewise.
14791         * modules/putenv (Makefile.am): Likewise.
14792         * modules/quote (Makefile.am): Likewise.
14793         * modules/quotearg (Makefile.am): Likewise.
14794         * modules/raise (Makefile.am): Likewise.
14795         * modules/read-file (Makefile.am): Likewise.
14796         * modules/readline (Makefile.am): Likewise.
14797         * modules/readlink (Makefile.am): Likewise.
14798         * modules/readtokens (Makefile.am): Likewise.
14799         * modules/readutmp (Makefile.am): Likewise.
14800         * modules/realloc (Makefile.am): Likewise.
14801         * modules/regex (Makefile.am): Likewise.
14802         * modules/rename (Makefile.am): Likewise.
14803         * modules/rename-dest-slash (Makefile.am): Likewise.
14804         * modules/rijndael (Makefile.am): Likewise.
14805         * modules/rmdir (Makefile.am): Likewise.
14806         * modules/rpmatch (Makefile.am): Likewise.
14807         * modules/safe-read (Makefile.am): Likewise.
14808         * modules/safe-write (Makefile.am): Likewise.
14809         * modules/same (Makefile.am): Likewise.
14810         * modules/save-cwd (Makefile.am): Likewise.
14811         * modules/savedir (Makefile.am): Likewise.
14812         * modules/setenv (Makefile.am): Likewise.
14813         * modules/settime (Makefile.am): Likewise.
14814         * modules/sha1 (Makefile.am): Likewise.
14815         * modules/sig2str (Makefile.am): Likewise.
14816         * modules/snprintf (Makefile.am): Likewise.
14817         * modules/stdlib-safer (Makefile.am): Likewise.
14818         * modules/stpcpy (Makefile.am): Likewise.
14819         * modules/stpncpy (Makefile.am): Likewise.
14820         * modules/strcase (Makefile.am): Likewise.
14821         * modules/strcasestr (Makefile.am): Likewise.
14822         * modules/strchrnul (Makefile.am): Likewise.
14823         * modules/strcspn (Makefile.am): Likewise.
14824         * modules/strdup (Makefile.am): Likewise.
14825         * modules/strerror (Makefile.am): Likewise.
14826         * modules/strftime (Makefile.am): Likewise.
14827         * modules/strndup (Makefile.am): Likewise.
14828         * modules/strnlen (Makefile.am): Likewise.
14829         * modules/strpbrk (Makefile.am): Likewise.
14830         * modules/strsep (Makefile.am): Likewise.
14831         * modules/strstr (Makefile.am): Likewise.
14832         * modules/strtod (Makefile.am): Likewise.
14833         * modules/strtoimax (Makefile.am): Likewise.
14834         * modules/strtok_r (Makefile.am): Likewise.
14835         * modules/strtol (Makefile.am): Likewise.
14836         * modules/strtoll (Makefile.am): Likewise.
14837         * modules/strtoul (Makefile.am): Likewise.
14838         * modules/strtoull (Makefile.am): Likewise.
14839         * modules/strtoumax (Makefile.am): Likewise.
14840         * modules/strverscmp (Makefile.am): Likewise.
14841         * modules/time_r (Makefile.am): Likewise.
14842         * modules/timegm (Makefile.am): Likewise.
14843         * modules/tmpfile-safer (Makefile.am): Likewise.
14844         * modules/unistd-safer (Makefile.am): Likewise.
14845         * modules/unlinkdir (Makefile.am): Likewise.
14846         * modules/userspec (Makefile.am): Likewise.
14847         * modules/utime (Makefile.am): Likewise.
14848         * modules/utimecmp (Makefile.am): Likewise.
14849         * modules/utimens (Makefile.am): Likewise.
14850         * modules/vasnprintf (Makefile.am): Likewise.
14851         * modules/vasprintf (Makefile.am): Likewise.
14852         * modules/vsnprintf (Makefile.am): Likewise.
14853         * modules/xalloc (Makefile.am): Likewise.
14854         * modules/xgetcwd (Makefile.am): Likewise.
14855         * modules/xnanosleep (Makefile.am): Likewise.
14856         * modules/xreadlink (Makefile.am): Likewise.
14857         * modules/xstrtod (Makefile.am): Likewise.
14858         * modules/xstrtol (Makefile.am): Likewise.
14859         * modules/xstrtold (Makefile.am): Likewise.
14860         * modules/yesno (Makefile.am): Likewise.
14861
14862 2006-10-12  Jim Meyering  <jim@meyering.net>
14863
14864         * m4/getloadavg.m4: Revert the change below.
14865
14866         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
14867         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
14868         fail with a symlink, which is what coreutils' ./bootstrap now
14869         creates by default.
14870
14871 2006-10-12  Bruno Haible  <bruno@clisp.org>
14872
14873         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
14874         mingw.
14875         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
14876         MSVC and mingw explicitly.
14877
14878 2006-10-11  Simon Josefsson  <jas@extundo.com>
14879             Bruno Haible  <bruno@clisp.org>
14880
14881         Add support for multiple gnulib-tool invocations in the scope of a
14882         single configure.ac file.
14883         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
14884         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
14885         with the same contents as the _LIBADD variable.
14886         (func_emit_initmacro_start, func_emit_initmacro_end,
14887         func_emit_initmacro_done): New functions.
14888         (func_import, func_create_testdir): Invoke them. Allow the identifiers
14889         gl_LIBOBJS and gl_LTLIBOBJS.
14890
14891 2006-10-11  Bruno Haible  <bruno@clisp.org>
14892
14893         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
14894         (func_create_testdir): Don't create po/Makefile.am, don't invoke
14895         autoreconf. Instead, invoke autopoint explicitly but move back the
14896         *.m4 files from gnulib.
14897
14898 2006-10-11  Bruno Haible  <bruno@clisp.org>
14899
14900         * gnulib-tool (func_usage): Make module names after --create-testdir
14901         optional.
14902         (func_create_testdir): If no module was specified, use nearly all
14903         modules.
14904
14905 2006-10-12  Jim Meyering  <jim@meyering.net>
14906
14907         Big performance improvement for fts-based tools that use FTS_NOSTAT.
14908         Avoid spurious inode-mismatch problems on non-POSIX file systems.
14909         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
14910         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
14911         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
14912         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
14913         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
14914         (fts_set_stat_required): New function.
14915         (fts_open): Defer the calls to fts_stat, if possible or requested.
14916         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
14917         into fts_stat itself.
14918         (fts_read): Perform any required (deferred) fts_stat call.
14919         (fts_build): Likewise, for the directory we're about to open and read.
14920         In the readdir loop, carefully decide whether each entry will require
14921         an eventual call to fts_stat, using dirent.d_type info if available.
14922         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
14923         a command line argument into this function.  Update all callers.
14924         Map a return value of FTS_DOT to FTS_D for a command line argument.
14925         * modules/fts (Depends-on): Add d-type.  Alphabetize.
14926         Thanks to Miklos Szeredi for his tenacity and for the initial
14927         bug report about "find" failing on a FUSE-based file system.
14928
14929         * lib/fts.c (fts_open): Use consistent indentation.
14930
14931 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
14932
14933         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
14934         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
14935         reported by Jim Meyering.  All uses of cache variables renamed
14936         to match Autoconf's.
14937         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
14938         the other one.
14939
14940         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
14941         Fix misspelling in diagnostic.
14942
14943 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
14944
14945         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
14946         defined.  Problem reported by Matthew Woehlke.
14947
14948         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
14949         Add support for Tandem NonStop R series.
14950         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
14951         Use new macro.
14952
14953         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
14954         (has_trailing_slash): Omit size arg; all callers changed.
14955         Omit 'inline', since it doesn't help performance and we'd
14956         need to configure it.
14957         Don't count //, ///, etc. as having a trailing slash.
14958         As a side effect, this removes a C99ism reported by Matthew Woehlke.
14959         (rpl_rename_dest_slash): On failure, use rename's errno rather
14960         than (in some cases) an incorrect or junk errno.
14961         Simplify code by removing need to compute length; this does
14962         cause it to make two passes instead of one over the file name,
14963         but it's worth it.
14964
14965         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
14966         change, since Autoconf's version may no longer be appropriate now
14967         that we are using CVS Autoconf's version.  Add support for Tandem.
14968
14969 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
14970             Bruno Haible  <bruno@clisp.org>
14971
14972         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
14973         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
14974         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
14975         gl_AC_TYPE_LONG_LONG.
14976
14977         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
14978         instead of HAVE_LONG_LONG.
14979         * lib/printf-args.c (printf_fetchargs): Likewise.
14980         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
14981         * lib/vasnprintf.c (VASNPRINTF): Likewise.
14982         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
14983         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
14984         gl_AC_TYPE_LONG_LONG.
14985
14986 2006-10-11  Bruno Haible  <bruno@clisp.org>
14987
14988         * m4/longlong.m4: Add comments.
14989         * m4/ulonglong.m4: Likewise.
14990
14991 2006-10-10  Bruno Haible  <bruno@clisp.org>
14992
14993         Make it possible to #define stpcpy, strdup to aliases.
14994         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
14995         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
14996
14997 2006-10-10  Bruno Haible  <bruno@clisp.org>
14998
14999         Make it possible to #define gcd to an alias.
15000         * lib/gcd.c: Include config.h.
15001
15002 2006-10-10  Bruno Haible  <bruno@clisp.org>
15003
15004         Make it possible to #define c_isascii to an alias.
15005         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
15006         defined. Undefine the macros before defining them, to avoid gcc
15007         warnings.
15008         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
15009         define NO_C_CTYPE_MACROS early.
15010
15011 2006-10-10  Bruno Haible  <bruno@clisp.org>
15012
15013         Make it possible to #define set_program_name to an alias.
15014         * lib/progname.c: Don't undefine set_program_name; instead, undefine
15015         ENABLE_RELOCATABLE early.
15016
15017 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15018
15019         Port to Tandem NSK OSS, which has 64-bit signed int but at most
15020         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
15021         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
15022         More generally, don't assume that 64-bit signed int is available
15023         if unsigned int is, and vice versa.
15024         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
15025         unsigned symbols, not on their signed counterparts.
15026         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
15027         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
15028         (UINT64_C, UINTMAX_C):
15029         Likewise.
15030         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
15031         unsigned counterparts.
15032         (Have_long_long, Unsigned): New macros.
15033         (Int): Renamed from INT.
15034         (strtoimax): Use the new macros.
15035         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
15036         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
15037         * modules/inttypes (inttypes.h): Substitute
15038         HAVE_UNSIGNED_LONG_LONG_INT.
15039         * modules/stdint (stdint.h): Likewise.
15040         (Files): Add m4/ulonglong.m4.
15041
15042 2006-10-10  Bruno Haible  <bruno@clisp.org>
15043
15044         Fix a gcc -Wshadow warning.
15045         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
15046         to 'bucket'.
15047         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
15048         gl_linked_indexof_from_to): Likewise.
15049         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
15050         Likewise.
15051         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
15052         Likewise.
15053         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
15054         Reported by Eric Blake.
15055
15056 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
15057
15058         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
15059         for NetBSD.  Problem reported by Bruno Haible.
15060
15061 2006-10-09  Jim Meyering  <jim@meyering.net>
15062
15063         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
15064         Patch from Bruno Haible.
15065
15066 2006-10-09  Jim Meyering  <jim@meyering.net>
15067
15068         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
15069         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
15070         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
15071
15072 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15073
15074         Don't include <config.h> twice; this doesn't work in some cases,
15075         e.g., when config.h has "#define intmax_t long long int" and
15076         we include <config.h>, <inttypes.h>, <config.h> in that order.
15077         Problem reported by Matthew Woehlke in:
15078         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
15079         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
15080         * lib/fts-cycle.c: Don't include config.h.
15081         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
15082         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
15083         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
15084         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
15085         inttypes.h.
15086         * lib/xstrtoumax.c: Likewise.
15087         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
15088         __strtol and the like, so that this module is more like its siblings.
15089         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
15090         Remove; no longer needed now that we assume gnulib inttypes.h.
15091
15092 2006-10-08  Bruno Haible  <bruno@clisp.org>
15093
15094         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
15095         option.
15096
15097 2006-10-07  Jim Meyering  <jim@meyering.net>
15098
15099         * modules/inttypes (inttypes.h): Revert what seems to have been
15100         an inadvertent part of today's change: use "|", not "/" in the
15101         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
15102
15103 2006-10-07  Bruno Haible  <bruno@clisp.org>
15104
15105         * modules/sublist: New file.
15106
15107 2006-10-07  Bruno Haible  <bruno@clisp.org>
15108
15109         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
15110         * modules/argz (argz.h): Likewise.
15111         * modules/arpa_inet (arpa/inet.h): Likewise.
15112         * modules/byteswap (byteswap.h): Likewise.
15113         * modules/configmake (configmake.h): Likewise.
15114         * modules/fcntl (fcntl.h): Likewise.
15115         * modules/fnmatch (fnmatch.h): Likewise.
15116         * modules/getopt (getopt.h): Likewise.
15117         * modules/glob (glob.h): Likewise.
15118         * modules/inttypes (inttypes.h): Likewise.
15119         * modules/netinet_in (netinet/in.h): Likewise.
15120         * modules/poll (poll.h): Likewise.
15121         * modules/stdbool (stdbool.h): Likewise.
15122         * modules/stdint (stdint.h): Likewise.
15123         * modules/sys_select (sys/select.h): Likewise.
15124         * modules/sys_socket (sys/socket.h): Likewise.
15125         * modules/sys_stat (sys/stat.h): Likewise.
15126         * modules/sysexits (sysexits.h): Likewise.
15127         * modules/unistd (unistd.h): Likewise.
15128         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15129         Add a "DO NOT EDIT" comment to the generated file.
15130         (func_import): Likewise for gnulib-comp.m4.
15131
15132 2006-10-07  Bruno Haible  <bruno@clisp.org>
15133
15134         * lib/gl_sublist.h: New file.
15135         * lib/gl_sublist.c: New file.
15136
15137 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
15138
15139         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
15140         name (relative to the original working directory) and the file
15141         name component (relative to the temporary working directory).  All
15142         callers changed.
15143         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
15144         * lib/mkdir-p.c (make_dir_parents): Likewise.
15145         * lib/mkdir-p.h (make_dir_parents): Likewise.
15146
15147 2006-10-06  Eric Blake  <ebb9@byu.net>
15148
15149         Define several macros for use by the clean-temp module.
15150         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
15151         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
15152         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
15153
15154         * lib/clean-temp.h (close_stream_temp): New declaration.
15155         * lib/clean-temp.c (includes): Pull in headers according to what
15156         other modules are in use.
15157         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
15158
15159 2006-10-06  Bruno Haible  <bruno@clisp.org>
15160
15161         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
15162         instead of fopen, fwriteerror.
15163
15164 2006-10-06  Bruno Haible  <bruno@clisp.org>
15165
15166         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
15167         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
15168         int.
15169         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
15170         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
15171         Return an error indicator.
15172         Suggested by Eric Blake.
15173
15174 2006-10-06  Bruno Haible  <bruno@clisp.org>
15175
15176         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
15177         Reported by Eric Blake.
15178
15179 2006-10-06  Bruno Haible  <bruno@clisp.org>
15180
15181         * modules/closeout (Description): Mention stderr too.
15182
15183 2006-10-06  Bruno Haible  <bruno@clisp.org>
15184         and Paul Eggert  <eggert@cs.ucla.edu>
15185
15186         * lib/closeout.c (close_stdout): Also close stderr.
15187         * lib/closeout.h: Update comment.
15188
15189 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15190
15191         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
15192         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
15193         * lib/dirchownmod.c: Include lchown.h.
15194         * lib/lchown.c: Don't include files that lchown.h now includes.
15195         Don't declare chown, since lchown.h now does that.
15196         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
15197         (lchown): Define to rpl_chown if lchown is declared but
15198         does not exist.  Declare using a prototype if lchown is not
15199         declared.  Add a copyright notice.
15200         * lib/mkstemp.h: Include <unistd.h>.
15201         * lib/openat.c: Include lchown.h.
15202
15203         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
15204         we now test for that separately.
15205         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
15206         rather than O_NOFOLLOW, when testing whether it's possible to
15207         avoid a race condition reliably.
15208         * lib/savewd.c (savewd_chdir): Likewise.
15209
15210         Remove macros that are no longer needed now that stdint.h is
15211         reliable.
15212         * lib/fsusage.c (UINTMAX_MAX): Remove.
15213         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
15214         * lib/utimecmp.c (SIZE_MAX): Remove.
15215
15216         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
15217
15218         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
15219         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
15220         O_NOATIME works.
15221
15222 2006-10-05  Bruno Haible  <bruno@clisp.org>
15223
15224         * lib/gl_list.h (gl_sortedlist_search_from_to,
15225         gl_sortedlist_indexof_from_to): New declarations.
15226         (gl_list_implementation): New fields sortedlist_search_from_to,
15227         sortedlist_indexof_from_to.
15228         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
15229         inline functions.
15230         * lib/gl_list.c (gl_sortedlist_search_from_to,
15231         gl_sortedlist_indexof_from_to): New functions.
15232         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
15233         function.
15234         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
15235         (gl_array_sortedlist_search_from_to): New function.
15236         (gl_array_list_implementation): Update.
15237         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
15238         function.
15239         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
15240         (gl_carray_sortedlist_search_from_to): New function.
15241         (gl_carray_list_implementation): Update.
15242         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
15243         gl_linked_sortedlist_indexof_from_to): New functions.
15244         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
15245         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
15246         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
15247         gl_tree_sortedlist_indexof_from_to): New functions.
15248         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
15249         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
15250         Update.
15251         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
15252         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
15253         Update.
15254
15255 2006-10-05  Bruno Haible  <bruno@clisp.org>
15256
15257         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
15258         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
15259         (struct gl_list_implementation): Add fields search_from_to,
15260         indexof_from_to. Remove fields search, indexof.
15261         (gl_list_search): Use the search_from_to method.
15262         (gl_list_search_from, gl_list_search_from_to): New functions.
15263         (gl_list_indexof): Use the indexof_from_to method.
15264         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
15265         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
15266         (gl_list_search_from, gl_list_search_from_to): New functions.
15267         (gl_list_indexof): Use the indexof_from_to method.
15268         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
15269         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
15270         gl_array_indexof. Add start_index, end_index arguments.
15271         (gl_array_search_from_to): Renamed from gl_array_search. Add
15272         start_index, end_index arguments.
15273         (gl_array_remove, gl_array_list_implementation): Update.
15274         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
15275         gl_carray_indexof. Add start_index, end_index arguments.
15276         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
15277         start_index, end_index arguments.
15278         (gl_carray_remove, gl_carray_list_implementation): Update.
15279         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
15280         gl_linked_search. Add start_index, end_index arguments.
15281         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
15282         start_index, end_index arguments.
15283         (gl_linked_remove): Update.
15284         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
15285         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
15286         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
15287         field to 'size_t'.
15288         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
15289         gl_tree_search. Add start_index, end_index arguments.
15290         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
15291         start_index, end_index arguments.
15292         (gl_tree_remove): Update.
15293         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
15294         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
15295         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
15296         function.
15297         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
15298         gl_tree_search. Add start_index, end_index arguments.
15299         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
15300         start_index, end_index arguments.
15301         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
15302         Update.
15303         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
15304
15305 2006-10-05  Bruno Haible  <bruno@clisp.org>
15306
15307         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
15308
15309         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
15310         fwriteerror_temp): New declarations.
15311         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
15312         (descriptors): New variable.
15313         (cleanup): First, close the descriptors.
15314         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
15315         fclose_temp, fwriteerror_temp): New functions.
15316
15317 2006-10-04  Jim Meyering  <jim@meyering.net>
15318
15319         * lib/fts.c (fts_open): Tiny comment change.
15320
15321 2006-10-04  Bruno Haible  <bruno@clisp.org>
15322
15323         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
15324         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
15325         gl_LOCK_BODY.
15326         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
15327         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
15328         gl_LOCK_EARLY_BODY.
15329         (gl_LOCK): Require gl_LOCK_BODY.
15330
15331 2006-10-04  Bruno Haible  <bruno@clisp.org>
15332
15333         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
15334         (gl_oset_search_atleast): New declaration.
15335         (struct gl_oset_implementation): Add field 'search_atleast'.
15336         (gl_oset_search_atleast): New inline function.
15337         * lib/gl_oset.c (gl_oset_search_atleast): New function.
15338         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
15339         (gl_array_oset_implementation): Update.
15340         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
15341         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
15342         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
15343
15344 2006-10-04  Bruno Haible  <bruno@clisp.org>
15345
15346         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
15347
15348 2006-10-03  Bruno Haible  <bruno@clisp.org>
15349
15350         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
15351         from gl_avltreehash_list_implementation.
15352
15353 2006-10-03  Bruno Haible  <bruno@clisp.org>
15354
15355         * lib/gl_oset.c (gl_oset_add): Fix return type.
15356
15357 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
15358
15359         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
15360
15361 2006-10-02  Eric Blake  <ebb9@byu.net>
15362
15363         * modules/strnlen (Depends-on): Add extensions.
15364
15365 2006-10-02  Eric Blake  <ebb9@byu.net>
15366
15367         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
15368         definition in 2.60+.
15369
15370 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
15371
15372         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
15373         checks.
15374
15375 2006-10-02  Bruno Haible  <bruno@clisp.org>
15376
15377         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
15378         to the AUTOMAKE_OPTIONS.
15379         Reported by Jim Meyering.
15380
15381 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
15382
15383         Work around bug in Solaris 10 /proc file system:
15384         /proc/self/fd/NNN/.. isn't the parent directory of
15385         the directory whose file descriptor is NNN.  This needs to
15386         be worked around at run time, not compile time, since a
15387         program might be built on Solaris 8, where things work, and
15388         run on Solaris 10.
15389         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
15390         to use the following interface instead:
15391         (OPENAT_BUFFER_SIZE): New macro.
15392         (openat_proc_name): New function.
15393         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
15394         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
15395         Likewise.
15396         * lib/openat-proc.c: New file.
15397         * modules/openat (Files): Add lib/openat-proc.c.
15398         (Depends-on): Add same-inode, stdbool.
15399         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
15400
15401 2006-09-29  Bruno Haible  <bruno@clisp.org>
15402
15403         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
15404         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
15405         argument. Set stdout_closed before testing for ferror, not after.
15406         (fwriteerror, fwriteerror_no_ebadf): New functions.
15407
15408 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15409
15410         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
15411
15412 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
15413
15414         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
15415         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
15416
15417 2006-09-28  Jim Meyering  <jim@meyering.net>
15418
15419         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
15420         Include <unistd.h>.
15421
15422 2006-09-28  Bruno Haible  <bruno@clisp.org>
15423
15424         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
15425         * modules/linkedhash-list (Depends-on): Likewise.
15426         * modules/rbtreehash-list (Depends-on): Likewise.
15427
15428 2006-09-28  Bruno Haible  <bruno@clisp.org>
15429
15430         * lib/strndup.h: Simplify the redefinition of strndup.
15431         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
15432         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
15433
15434 2006-09-28  Bruno Haible  <bruno@clisp.org>
15435
15436         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
15437         * lib/gl_linkedhash_list.c: Likewise.
15438         * lib/gl_rbtreehash_list.c: Likewise.
15439
15440 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
15441
15442         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
15443         getaddrinfo.
15444
15445         * lib/__fpending.h: Don't include <stdio_ext.h> unless
15446         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
15447         it causes <stdio_ext.h> to cause a compile-time error.
15448         Problem reported by Nelson H. F. Beebe.
15449         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
15450         of HAVE_DECL___PENDING.
15451
15452         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
15453         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
15454         declaration.
15455
15456 2006-09-27  Jim Meyering  <jim@meyering.net>
15457
15458         This file could end up with a definition for a function
15459         named __strndup, rather than rpl_strndup on a system with
15460         incomplete weak_alias support.
15461         * lib/strndup.c (strndup): Rename from __strndup.
15462         Remove #defines that used to map __strndup to strndup.
15463         Don't use K&R prototypes.
15464         Remove LIBC-related code, since this file is not sync'd with glibc.
15465         * lib/strndup.h: Revamp, accordingly.
15466         * m4/strndup.m4: Modernize.
15467
15468 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
15469
15470         * modules/savewd (Depends-on): Add 'raise'.
15471         * lib/savewd.c: Include <signal.h>, for 'raise'.
15472
15473 2006-09-26  Jim Meyering  <jim@meyering.net>
15474
15475         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
15476         when we detect Darwin 8.7.0's acl_get_file bug.
15477         Rearrange to perform the new (below) run-test while $LIBS
15478         contains any acl-related library.  Set USE_ACL at the end.
15479         (gl_ACL_GET_FILE): New function.
15480
15481 2006-09-26  Eric Blake  <ebb9@byu.net>
15482
15483         * lib/verror.c: Include <config.h> unconditionally.
15484
15485 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
15486
15487         * modules/clock-time (Maintainer): Add self.
15488         * modules/getlogin_r (Depends-on): Add extensions.
15489
15490 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15491
15492         * modules/clock-time: New module.
15493         * modules/nanosleep (Depends-on): Add clock-time.
15494         * modules/gethrxtime (Depends-on): Likewise.
15495         * modules/gettime (Depends-on): Likewise.
15496         * modules/settime (Depends-on): Likewise.
15497
15498         * modules/fts-lgpl: Depend on openat.
15499         * modules/mkancesdirs: Depend on savewd.
15500         * modules/mkdir-p: Likewise.
15501
15502 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15503
15504         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
15505
15506         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
15507         `gl_have_arbitrary_file_name_length_limit' to
15508         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
15509         actually works between configure runs.
15510
15511 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15512             Bruno Haible  <bruno@clisp.org>
15513
15514         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
15515
15516 2006-09-25  Jim Meyering  <jim@meyering.net>
15517
15518         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
15519         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
15520
15521 2006-09-25  Eric Blake  <ebb9@byu.net>
15522
15523         * gnulib-tool (func_import, func_create_testdir): Fix typos in
15524         exec's in 2006-09-18 patch when shuffling fds.
15525
15526 2006-09-25  Bruno Haible  <bruno@clisp.org>
15527
15528         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
15529         Reported by Jim Meyering.
15530
15531 2006-09-24  Jim Meyering  <jim@meyering.net>
15532
15533         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
15534         compare a pointer against a literal "0".  That caused failures with
15535         at least HP-UX's hpcc.
15536
15537 2006-09-22  Simon Josefsson  <jas@extundo.com>
15538
15539         * modules/gc-sha1:
15540         * modules/gc-md4:
15541         * modules/gc-hmac-sha1:
15542         * modules/gc-hmac-md5:
15543         * modules/gc-des:
15544         * modules/gc-arcfour: Distribute more files.
15545
15546 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15547
15548         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
15549         (gl_linked_iterator_from_to): Initialize struct completely.
15550         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
15551         (gl_tree_iterator_from_to): Likewise
15552         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
15553         * lib/gl_array_list.c [lint] (gl_array_iterator)
15554         (gl_array_iterator_from_to): Likewise.
15555         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
15556         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
15557         (gl_carray_iterator_from_to): Likewise.
15558
15559         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
15560         * lib/md4.c (md4_process_block): Remove unused variable.
15561         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
15562         parentheses for clarity.
15563
15564 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15565
15566         * modules/bison-i18n (Depends-on): Add gettext.
15567
15568 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15569
15570         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
15571         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
15572         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
15573         also add missing comma that caused broken test.
15574         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
15575         stdlib.h, for `abort'.
15576         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
15577         variables.
15578         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
15579         include unistd.h if present, for `rmdir'.
15580         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
15581         variables.
15582         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
15583         in the process include standard headers for prototypes.
15584         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
15585         gets declared on GNU/Linux.
15586         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
15587         unistd.h, for `rmdir'.
15588         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
15589
15590         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
15591         always true.
15592         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
15593
15594         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
15595
15596 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15597
15598         * gnulib-tool (func_version): Create output all at once.  This
15599         may help avoid triggering unnecessary SIGPIPEs, and at any
15600         rate it doesn't hurt.
15601
15602 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15603             Bruno Haible  <bruno@clisp.org>
15604
15605         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
15606         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
15607         * m4/signed.m4 (bh_C_SIGNED): Likewise.
15608
15609         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
15610         (gl_FUNC_VASPRINTF): Invoke it.
15611
15612 2006-09-22  Bruno Haible  <bruno@clisp.org>
15613
15614         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
15615         getloadavg.c as first argument.
15616
15617 2006-09-22  Bruno Haible  <bruno@clisp.org>
15618
15619         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
15620         at the beginning of the gl_INIT macro.
15621         * modules/getloadavg (configure.ac): Pass $gl_source_base to
15622         gl_GETLOADAVG.
15623
15624 2006-09-22  Bruno Haible  <bruno@clisp.org>
15625
15626         * gnulib-tool (func_create_megatestdir): Don't include the config-h
15627         module.
15628         Suggested by Ralf Wildenhues.
15629
15630 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
15631
15632         Import this patch from libc:
15633
15634         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
15635
15636         * lib/regex_internal.c (re_string_reconstruct): Handle
15637         offset < pstr->valid_raw_len && pstr->offsets_needed case.
15638         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
15639         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
15640         re_string_context_at.
15641
15642         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
15643         now requires it.
15644         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
15645         gl_REGEX now does it for us.
15646         (gl_REGEX): Add test taken from
15647         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
15648
15649         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
15650         Check that large offsets work.  Modernize Autoconf usages.
15651         Prefer "yes" to mean a good thing rather than a bad.
15652         Don't put "#define mkstemp" in config.h, as this might interfere
15653         with standard system headers that "#define mkstemp mkstemp64".
15654
15655         * modules/mkstemp (Depends-on): Add extensions, so that
15656         mkstemp is visible on some platforms.
15657         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
15658         (Include): Change to "mkstemp.h" from <stdlib.h>.
15659         (Files): Add mkstemp.h.
15660
15661         * lib/mkstemp.h: New file, since some standard headers
15662         #define mkstemp.
15663         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
15664         Include "mkstemp.h".
15665         Make the _LIBC code resemble glibc original more,
15666         e.g., use K&R style.
15667         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
15668         (mkstemp): Remove, since mkstemp.h does this for us.
15669         * lib/stdlib--.h: Include mkstemp.h.
15670
15671         Import this patch from libc:
15672
15673         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
15674
15675         * lib/tempname.c (__gen_tempname): Change attempts_min
15676         into a macro.  Use preprocessor to decide how to initialize
15677         attempts [Coverity CID 67].
15678
15679 2006-09-20  Bruno Haible  <bruno@clisp.org>
15680
15681         * lib/mkdtemp.c: Import from libc.
15682         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
15683                 * sysdeps/posix/tempname.c (__gen_tempname): Change
15684                 attempts_min into a macro.  Use preprocessor to decide how to
15685                 initialize attempts [Coverity CID 67].
15686         2001-11-27  Paul Eggert  <eggert@twinsun.com>
15687                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
15688                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
15689
15690 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15691
15692         * gnulib-tool (func_exit): New function, to allow to pass the
15693         exit status portably through the trap.  Use everywhere.
15694         (--help, --version): Signal a write error.
15695         (trap): catch SIGPIPE, for write errors.
15696         Exit at the end of the trap, with the correct exit status.
15697
15698 2006-09-19  Karl Berry  <karl@gnu.org>
15699
15700         * doc/gnulib.texi: note about the license texinfo files.
15701
15702 2006-09-19  Eric Blake  <ebb9@byu.net>
15703
15704         * gnulib-tool: Avoid space-tab.
15705
15706 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
15707
15708         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
15709         that prevented coreutils 6.1 from building.  Problem reported
15710         by Petter Reinholdtsen.
15711
15712 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
15713
15714         * gnulib-tool (avoidlist): Fix typo that broke options like
15715         --avoid=lock that are used by coreutils bootstrap.
15716
15717 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
15718
15719         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
15720         more systematically.
15721
15722 2006-09-18  Jim Meyering  <jim@meyering.net>
15723
15724         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
15725
15726 2006-09-18  Bruno Haible  <bruno@clisp.org>
15727
15728         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
15729
15730 2006-09-18  Bruno Haible  <bruno@clisp.org>
15731
15732         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
15733         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
15734         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
15735         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
15736         * m4/gettext.m4: Require autoconf >= 2.52.
15737         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
15738         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
15739         of gl_cv_header_inttypes_h.
15740
15741 2006-09-18  Bruno Haible  <bruno@clisp.org>
15742
15743         * lib/javaversion.c: Include configmake.h.
15744
15745 2006-09-18  Bruno Haible  <bruno@clisp.org>
15746
15747         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
15748         avoid that the while loops be executed in a subshell.
15749
15750 2006-09-18  Bruno Haible  <bruno@clisp.org>
15751
15752         * MODULES.html.sh (func_module): Break long lines.
15753         Suggested by Bruce Korb <bkorb@gnu.org>.
15754
15755 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15756
15757         Speed up by a factor of 1.12.
15758         * gnulib-tool (nl): New variable.
15759         (func_import): Rewrite include directive extraction to only read each
15760         directive once.
15761
15762 2006-09-17  Bruno Haible  <bruno@clisp.org>
15763
15764         * modules/javaversion (Makefile.am): Remove DEFS setting.
15765         (Depends-on): Add configmake, for PKGDATADIR definition.
15766
15767 2006-09-17  Bruno Haible  <bruno@clisp.org>
15768
15769         * gnulib-tool (func_create_testdir): Rewrite all files at once.
15770
15771 2006-09-17  Bruno Haible  <bruno@clisp.org>
15772
15773         * gnulib-tool (func_append): New function, stolen from libtool.m4.
15774         (func_modules_transitive_closure, func_modules_add_dummy,
15775         func_modules_to_filelist, func_import, func_create_testdir,
15776         func_create_megatestdir, ...): Use it wherever possible.
15777         Suggested by Ralf Wildenhues.
15778
15779 2006-09-16  Karl Berry  <karl@gnu.org>
15780
15781         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
15782         to avoid sectioning errors.
15783         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
15784         [ifinfo]: blank line after @center-ed titles.
15785         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
15786         Spell FSF address consistently with others.
15787         (These changes approved by rms.)
15788
15789 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15790
15791         Speed up by a factor of 1.61.
15792         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
15793         already checked module names again.
15794
15795 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15796
15797         Speed up by a factor of 1.13.
15798         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
15799         for new_files, and the input to func_add_or_update.
15800
15801 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15802
15803         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
15804         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
15805
15806 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
15807
15808         * modules/mkancesdirs (Depends-on): Add fcntl.
15809         * modules/savewd: New file.
15810         * MODULES.html.sh (File system functions): Add savewd.
15811
15812         * modules/configmake (Makefile.am): Add support for the
15813         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
15814
15815 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
15816
15817         * m4/savewd.m4: New file.
15818
15819 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
15820
15821         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
15822         (dirchownmod): New arg FD.  All callers changed.
15823         Use FD rather than opening the directory ourself, as opening is
15824         now the caller's responsibility.
15825         * lib/dirchownmod.h: Likewise.
15826         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
15827         hosts that require <sys/types.h> before <sys/stat.h>.  Include
15828         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
15829         (test_dir): Remove.
15830         (mkancesdirs): Return length of prefix of FILE that has already
15831         been made, or -2 if there is a child doing the work.  Redo
15832         algorithm so that it is O(N) rather than O(N**2).  Optimize away
15833         ".", and treat ".." specially since it might stray back into
15834         already-created areas.  Use a subprocess if necessary.  New arg
15835         WD; all users changed.  MAKE_DIR function should now return 1
15836         if it creates a directory that is not readable.  Return -2 if
15837         a child process is spun off.
15838         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
15839         Adjust signature to match code.
15840         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
15841         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
15842         all users changed.
15843         * lib/savewd.c, lib/savewd.h: New files.
15844
15845 2006-09-15  Jim Meyering  <jim@meyering.net>
15846
15847         * modules/rename-dest-slash: New module.
15848         * MODULES.html.sh (posix_compat): Add it here.
15849
15850         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
15851
15852 2006-09-15  Jim Meyering  <jim@meyering.net>
15853
15854         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
15855         file.
15856
15857         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
15858
15859 2006-09-15  Jim Meyering  <jim@meyering.net>
15860
15861         * lib/rename-dest-slash.c (has_trailing_slash): Use
15862         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
15863         (rpl_rename_dest_slash): Perform the cheaper trailing slash
15864         test before testing whether SRC is a directory.
15865         Suggestions from Bruno Haible.
15866
15867         Avoid a warning about an unused variable.
15868         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
15869         into the #ifdef block where it's used.
15870
15871         * lib/rename-dest-slash.c: New file.
15872
15873 2006-09-14  Bruno Haible  <bruno@clisp.org>
15874
15875         * lib/allocsa.c: Include <config.h> unconditionally.
15876         * lib/asnprintf.c: Likewise.
15877         * lib/asprintf.c: Likewise.
15878         * lib/c-strcasecmp.c: Likewise.
15879         * lib/c-strcasestr.c: Likewise.
15880         * lib/c-strncasecmp.c: Likewise.
15881         * lib/c-strstr.c: Likewise.
15882         * lib/classpath.c: Likewise.
15883         * lib/clean-temp.c: Likewise.
15884         * lib/concatpath.c: Likewise.
15885         * lib/copy-file.c: Likewise.
15886         * lib/csharpcomp.c: Likewise.
15887         * lib/csharpexec.c: Likewise.
15888         * lib/execute.c: Likewise.
15889         * lib/fatal-signal.c: Likewise.
15890         * lib/findprog.c: Likewise.
15891         * lib/fwriteerror.c: Likewise.
15892         * lib/gl_array_list.c: Likewise.
15893         * lib/gl_array_oset.c: Likewise.
15894         * lib/gl_avltree_list.c: Likewise.
15895         * lib/gl_avltree_oset.c: Likewise.
15896         * lib/gl_avltreehash_list.c: Likewise.
15897         * lib/gl_carray_list.c: Likewise.
15898         * lib/gl_linked_list.c: Likewise.
15899         * lib/gl_linkedhash_list.c: Likewise.
15900         * lib/gl_list.c: Likewise.
15901         * lib/gl_oset.c: Likewise.
15902         * lib/gl_rbtree_list.c: Likewise.
15903         * lib/gl_rbtree_oset.c: Likewise.
15904         * lib/gl_rbtreehash_list.c: Likewise.
15905         * lib/imaxabs.c: Likewise.
15906         * lib/imaxdiv.c: Likewise.
15907         * lib/javacomp.c: Likewise.
15908         * lib/javaexec.c: Likewise.
15909         * lib/javaversion.c: Likewise.
15910         * lib/linebreak.c: Likewise.
15911         * lib/localcharset.c: Likewise.
15912         * lib/lock.c: Likewise.
15913         * lib/mbchar.c: Likewise.
15914         * lib/mbswidth.c: Likewise.
15915         * lib/mkdtemp.c: Likewise.
15916         * lib/pipe.c: Likewise.
15917         * lib/printf-args.c: Likewise.
15918         * lib/printf-parse.c: Likewise.
15919         * lib/progname.c: Likewise.
15920         * lib/progreloc.c: Likewise.
15921         * lib/readlink.c: Likewise.
15922         * lib/sh-quote.c: Likewise.
15923         * lib/stpcpy.c: Likewise.
15924         * lib/stpncpy.c: Likewise.
15925         * lib/strcasecmp.c: Likewise.
15926         * lib/strcasestr.c: Likewise.
15927         * lib/strcspn.c: Likewise.
15928         * lib/striconv.c: Likewise.
15929         * lib/strncasecmp.c: Likewise.
15930         * lib/strnlen1.c: Likewise.
15931         * lib/strstr.c: Likewise.
15932         * lib/strtok_r.c: Likewise.
15933         * lib/tls.c: Likewise.
15934         * lib/tmpdir.c: Likewise.
15935         * lib/unicodeio.c: Likewise.
15936         * lib/unsetenv.c: Likewise.
15937         * lib/vasnprintf.c: Likewise.
15938         * lib/vasprintf.c: Likewise.
15939         * lib/wait-process.c: Likewise.
15940         * lib/xallocsa.c: Likewise.
15941         * lib/xsetenv.c: Likewise.
15942         * lib/xstriconv.c: Likewise.
15943
15944 2006-09-13  Simon Josefsson  <jas@extundo.com>
15945
15946         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
15947         that internally, suggested by Ralf Wildenhues
15948         <Ralf.Wildenhues@gmx.de>.
15949
15950 2006-09-13  Simon Josefsson  <jas@extundo.com>
15951
15952         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
15953         @LIBOBJS@.
15954         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15955
15956 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15957
15958         * lib/_fpending.c: Include <config.h> unconditionally, since we no
15959         longer worry about uses that don't define HAVE_CONFIG_H.
15960         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
15961         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
15962         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
15963         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
15964         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
15965         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
15966         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
15967         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
15968         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
15969         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
15970         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
15971         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
15972         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
15973         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
15974         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
15975         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
15976         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
15977         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
15978         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
15979         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
15980         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
15981         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
15982         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
15983         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
15984         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
15985         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
15986         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
15987         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
15988         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
15989         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
15990         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
15991         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
15992         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
15993         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
15994         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
15995         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
15996         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
15997         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
15998         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
15999         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
16000         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
16001         Likewise.
16002
16003 2006-09-13  Eric Blake  <ebb9@byu.net>
16004
16005         * lib/getopt.c: Fix typo in last commit.
16006
16007 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
16008
16009         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
16010         dgettext.
16011
16012 2006-09-12  Jim Meyering  <jim@meyering.net>
16013
16014         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
16015         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
16016         Reported by Nelson H. F. Beebe.
16017
16018 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
16019
16020         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
16021         program_invocation_name and program_invocation_short_name are
16022         initialized.
16023         * lib/argp-namefrob.h: Move declarations of program_invocation_name
16024         and program_invocation_short_name to argp.h, so they are visible
16025         to user programs.
16026         * lib/argp.h: Likewise
16027
16028 2006-09-10  Bruno Haible  <bruno@clisp.org>
16029
16030         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
16031         m4/inttypes_h.m4, m4/uintmax_t.m4.
16032
16033 2006-09-10  Bruno Haible  <bruno@clisp.org>
16034
16035         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
16036         gl_AC_TYPE_UINTMAX_T.
16037
16038 2006-09-10  Bruno Haible  <bruno@clisp.org>
16039
16040         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
16041
16042 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
16043
16044         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
16045         convention.  Text proposed by Bruno Haible.
16046         (struct argp_option): Document the use of N_() wrappers.
16047
16048         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
16049         '\v', and translate the two parts separately, instead of feeding
16050         the whole string to gettext.  This allows to exclude
16051         '\v' from the strings visible to the translator by writing doc
16052         strings as N_("..") "\v" N_("..").
16053
16054 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
16055
16056         * config/srclist.txt: Undo latest change; the bug was fixed.
16057
16058 2006-09-09  Bruno Haible  <bruno@clisp.org>
16059
16060         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
16061         assignments if building a library without libtool.
16062         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
16063         in func_emit_lib_Makefile_am.
16064         (func_import): When building a static library libfoo.a, arrange to
16065         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
16066         (func_create_testdir): Likewise.
16067         * modules/gc (configure.ac, Makefile.am): If building statically,
16068         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
16069         * modules/iconvme (configure.ac, Makefile.am): Likewise.
16070         * modules/striconv (configure.ac, Makefile.am): Likewise.
16071         Based on a suggestion by Ralf Wildenhues.
16072
16073 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
16074
16075         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
16076         Check for unistd.h too, since Autoconf doesn't assume POSIX.
16077         Also:
16078
16079         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
16080         Add year_2050_test to catch glibc bug 2821
16081         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
16082
16083         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
16084         Prefer #ifdef to #if.
16085
16086         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
16087         Return from 'main' instead of calling 'exit'.
16088
16089 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
16090
16091         * lib/mktime.c (guess_time_tm): Fix bug where mktime
16092         returned the maximum time_t value rather than (time_t) -1.
16093         Problem originally reported by William Bardwell
16094         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
16095
16096         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
16097         Moved to here ...
16098         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
16099         ... from here.
16100
16101 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
16102
16103         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
16104         2821 is fixed.
16105
16106 2006-09-08  Jim Meyering  <jim@meyering.net>
16107
16108         Don't make generated files read-only.  That would bother too many
16109         people.  However, do retain the ability to work when targets are
16110         read-only: remove the destination and temporary files before writing
16111         them (when generated via sed or echo), or by using the -f option for
16112         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
16113         * modules/alloca-opt, modules/argz, modules/arpa_inet:
16114         * modules/byteswap, modules/configmake, modules/fcntl:
16115         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
16116         * modules/localcharset, modules/netinet_in, modules/poll:
16117         * modules/stdbool, modules/stdint, modules/sys_select:
16118         * modules/sys_socket, modules/sys_stat, modules/sysexits:
16119
16120 2006-09-08  Jim Meyering  <jim@meyering.net>
16121
16122         Avoid new build failure on FreeBSD 6.0.
16123         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
16124         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
16125         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
16126
16127 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16128
16129         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
16130
16131 2006-09-07  Jim Meyering  <jim@meyering.net>
16132
16133         Fix global typo in last change: use chmod u-w, not chmod u-x.
16134         Spotted by Paul Eggert and Bruce Korb.
16135         * modules/alloca-opt, modules/argz, modules/arpa_inet:
16136         * modules/byteswap, modules/configmake, modules/fcntl:
16137         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
16138         * modules/localcharset, modules/netinet_in, modules/poll:
16139         * modules/stdbool, modules/stdint, modules/sys_select:
16140         * modules/sys_socket, modules/sys_stat, modules/sysexits:
16141
16142 2006-09-06  Jim Meyering  <jim@meyering.net>
16143
16144         Make generated files be read-only.
16145         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
16146         Ensure that each generated file is now read-only.
16147         * modules/argz: Likewise.
16148         * modules/arpa_inet: Likewise.
16149         * modules/byteswap: Likewise.
16150         * modules/configmake: Likewise.
16151         * modules/fcntl: Likewise.
16152         * modules/fnmatch: Likewise.
16153         * modules/getopt: Likewise.
16154         * modules/glob: Likewise.
16155         * modules/inttypes: Likewise.
16156         * modules/netinet_in: Likewise.
16157         * modules/poll: Likewise.
16158         * modules/stdbool: Likewise.
16159         * modules/stdint: Likewise.
16160         * modules/sys_select: Likewise.
16161         * modules/sys_socket: Likewise.
16162         * modules/sys_stat: Likewise.
16163         * modules/sysexits: Likewise.
16164         * modules/localcharset: Same as above, but continue using temporary
16165         file named "t-$@" (why different?) rather than the "$@-t" used
16166         everywhere else.
16167
16168         * modules/sysexits (Makefile.am): Replace literal occurrences
16169         of "sysexit.h" more readable, and more consistent, "$@".
16170
16171 2006-09-06  Bruno Haible  <bruno@clisp.org>
16172
16173         * modules/striconv: New file.
16174         * modules/xstriconv: New file.
16175         * MODULES.html.sh (Internationalization functions): Add striconv,
16176         xstriconv.
16177
16178 2006-09-06  Bruno Haible  <bruno@clisp.org>
16179
16180         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
16181         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
16182         not using libtool correctly.
16183
16184 2006-09-06  Bruno Haible  <bruno@clisp.org>
16185
16186         * lib/striconv.h: New file.
16187         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
16188         iconvstring.c.
16189         * lib/xstriconv.h: New file.
16190         * lib/xstriconv.c: New file.
16191
16192 2006-09-06  Bruno Haible  <bruno@clisp.org>
16193
16194         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
16195         lib_..._LDFLAGS.
16196
16197 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16198
16199         * lib/argz_.h: Sync from Libtool.
16200
16201         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
16202                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16203
16204         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
16205
16206 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
16207
16208         * modules/trim: New file.
16209
16210 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
16211
16212         * lib/trim.h: New file.
16213         * lib/trim.c: New file.
16214
16215 2006-09-05  Bruno Haible  <bruno@clisp.org>
16216
16217         * MODULES.html.sh (String handling): Add trim.
16218
16219 2006-09-04  Karl Berry  <karl@gnu.org>
16220
16221         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
16222         until next release.
16223
16224 2006-09-03  Bruno Haible  <bruno@clisp.org>
16225
16226         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
16227         correctly.
16228
16229 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16230
16231         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
16232         not gl_GETLOADAVG.  Omit unneeded semicolons.
16233         Problems reported by Ralf Wildenhues in
16234         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
16235         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
16236         at the end, which is the usual gnulib style.
16237
16238         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
16239         of doing all the work ourselves.
16240         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
16241         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
16242
16243 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16244
16245         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
16246         Problem reported by Ralf Wildenhues in
16247         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
16248
16249         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
16250         HAVE_STRUCT_STATFS_F_FSTYPENAME.
16251
16252 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16253
16254         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
16255         yesterday's patch by changing test -n to test -z.
16256
16257 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
16258
16259         * modules/getloadavg (Files): Add m4/getloadavg.m4.
16260         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
16261         the former is now obsolescent.
16262
16263         * modules/chdir-long (Depends-on): Add fcntl.
16264
16265 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
16266
16267         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
16268         obsolescent, and programs should use gnulib instead.
16269         * m4/getloadavg.m4: New file, with contents taken from Autoconf
16270         but with prefixes changed.
16271
16272 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
16273
16274         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
16275         or stdbool.h, because they might not exist while configuring.
16276
16277         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
16278         Don't include unistd.h or limits.h; not needed, since chdir-long.h
16279         does that for us.
16280         (O_DIRECTORY): Remove.
16281
16282 2006-08-31  Eric Blake  <ebb9@byu.net>
16283
16284         * gnulib-tool: Don't let emacs change spaces to TAB.
16285
16286 2006-08-31  Bruno Haible  <bruno@clisp.org>
16287
16288         * gnulib-tool: When calling func_import more than once, do it in a
16289         subshell.
16290         Reported by Eric Blake <ebb9@byu.net>.
16291
16292 2006-08-31  Bruno Haible  <bruno@clisp.org>
16293
16294         * gnulib-tool (nl): Remove variable.
16295         (sed_transform_lib_file): Use more robust test for config-h module.
16296         (func_import): Fix typo in 2006-08-25 patch.
16297
16298 2006-08-31  Bruno Haible  <bruno@clisp.org>
16299
16300         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
16301         specified, augment Makefile.am variables instead of assigning them.
16302
16303 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
16304
16305         Work around a bug in both the Linux and SunOS 64-bit kernels:
16306         nanosleep mishandles sleeps for longer than 2**31 seconds.
16307         Problem reported by Frank v Waveren in
16308         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
16309         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
16310         Check for nanosleep bug.
16311         (LIB_NANOSLEEP): Append clock_gettime library if needed.
16312
16313 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
16314
16315         Work around a bug in both the Linux and SunOS 64-bit kernels:
16316         nanosleep mishandles sleeps for longer than 2**31 seconds.
16317         Problem reported by Frank v Waveren in
16318         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
16319         * lib/nanosleep.c (BILLION): New constant.
16320         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
16321         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
16322         implementation.
16323
16324 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
16325
16326         * modules/nanosleep (Depends-on): Add gettime.
16327
16328 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
16329         and Simon Josefsson  <jas@extundo.com>
16330         and Oskar Liljeblad  <oskar@osk.mine.nu>
16331
16332         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
16333         * gnulib-tool (func_import): New license type 'unmodifiable license
16334         text'.
16335         * modules/fdl: Use it.  Longer description.
16336         * module/gpl, module/lgpl: New files.
16337
16338 2006-08-30  Jim Meyering  <jim@meyering.net>
16339
16340         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
16341         shadowing the parameter.
16342
16343 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16344
16345         Sync from Libtool:
16346
16347         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16348
16349         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
16350         sharing with gnulib.  Report by Eric Blake.
16351
16352 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
16353
16354         * modules/isapipe: New file.
16355         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
16356
16357 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
16358
16359         * modules/configmake (Makefile.am): Add a comment, and omit
16360         the CONFIGMAKE_ prefix from generated macro names.  Suggested
16361         by Bruno Haible.
16362
16363 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
16364
16365         * m4/isapipe.m4: New file.
16366
16367 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
16368
16369         * lib/isapipe.c, lib/isapipe.h: New files.
16370
16371 2006-08-29  Jim Meyering  <jim@meyering.net>
16372
16373         * modules/configmake (Makefile.am): Make configmake.h depend on
16374         Makefile.  Otherwise, a stale configmake.h could hang around.
16375
16376 2006-08-29  Eric Blake  <ebb9@byu.net>
16377
16378         * lib/error.c (error_at_line, print_errno_message): Match libc, after
16379         resolution of upstream bug 3044.
16380
16381 2006-08-29  Bruno Haible  <bruno@clisp.org>
16382
16383         * modules/localcharset (Depends-on): Add configmake.
16384         (Makefile.am): Remove setting of LIBDIR through DEFS.
16385
16386 2006-08-29  Bruno Haible  <bruno@clisp.org>
16387
16388         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
16389         defined.
16390
16391 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
16392
16393         * modules/fcntl: New file.
16394         * modules/chdir-safer (Depends-on): Add fcntl.
16395         * modules/fts: Likewise.
16396         * modules/mkdir-p: Likewise.
16397
16398         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
16399         This undoes the most recent change, since we're now addressing the
16400         problem in a different way.
16401
16402         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
16403         into output, since the output might be called Makefile.am even
16404         if $makefile_name is something different.
16405         (func_import): Use $makefile_am rather than
16406         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
16407         empty.
16408
16409         * modules/inttypes (Files): Add m4/inttypes-h.m4.
16410
16411 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
16412
16413         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
16414         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
16415         recent change to stdint.m4, since we're now addressing the problem in a
16416         different way.
16417
16418 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
16419
16420         * m4/fcntl_h.m4: New file.
16421
16422 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
16423
16424         * lib/fcntl_.h: New file.
16425         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
16426         the fcntl module.
16427         * lib/dirchownmod.c: Likewise.
16428         * lib/fts.c: Likewise.
16429
16430         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
16431         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
16432         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
16433         just before including <inttypes.h>, to avoid circular inclusion.
16434
16435 2006-08-28  Jim Meyering  <jim@meyering.net>
16436
16437         * doc/visibility.texi: Actually read and correct the grammar of the
16438         sentence affected by yesterday's change.
16439
16440 2006-08-28  Eric Blake  <ebb9@byu.net>
16441
16442         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
16443         needs wrapper.
16444
16445 2006-08-28  Eric Blake  <ebb9@byu.net>
16446
16447         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
16448
16449 2006-08-28  Eric Blake  <ebb9@byu.net>
16450
16451         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
16452
16453 2006-08-28  Bruno Haible  <bruno@clisp.org>
16454
16455         * modules/c-strstr: New file, from GNU gettext.
16456         * MODULES.html.sh (String handling): Add c-strstr.
16457
16458 2006-08-28  Bruno Haible  <bruno@clisp.org>
16459
16460         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
16461         macros.
16462         Reported by Eric Blake.
16463
16464 2006-08-28  Bruno Haible  <bruno@clisp.org>
16465
16466         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
16467         (VASNPRINTF): Return a string of length > INT_MAX without failing.
16468         * lib/vasprintf.c: Include errno.h, limits.h.
16469         (EOVERFLOW): New fallback definition.
16470         (vasprintf): Test here whether the string length is > INT_MAX.
16471         * lib/vsnprintf.c: Include errno.h, limits.h.
16472         (EOVERFLOW): New fallback definition.
16473         (vsnprintf): Fix bug when generated string was too long for the buffer.
16474         Test here whether the string length is > INT_MAX.
16475
16476 2006-08-28  Bruno Haible  <bruno@clisp.org>
16477
16478         * lib/inttypes_.h (SCNX*): Remove definitions.
16479         Reported by Eric Blake.
16480
16481 2006-08-28  Bruno Haible  <bruno@clisp.org>
16482
16483         * lib/c-strstr.h: New file, from GNU gettext.
16484         * lib/c-strstr.c: New file, from GNU gettext.
16485
16486 2006-08-28  Bruno Haible  <bruno@clisp.org>
16487
16488         * gnulib-tool: Reorder some statements.
16489
16490 2006-08-28  Bruno Haible  <bruno@clisp.org>
16491
16492         * gnulib-tool: New option --makefile-name.
16493         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
16494         $makefile_name.
16495         (func_import): Write $makefile_name to the cache file, and read it from
16496         there unless explicitly specified. Use $makefile_name as file name
16497         instead of Makefile.am. Adjust the recommendations accordingly.
16498
16499 2006-08-28  Bruno Haible  <bruno@clisp.org>
16500
16501         * gnulib-tool (func_verify_module): Check against misapplying patch.
16502
16503 2006-08-28  Bruno Haible  <bruno@clisp.org>
16504
16505         * gnulib-tool (func_relativize, func_relconcat): New functions.
16506         Give an error if --local-dir is given with --update.
16507         Remove trailing slashes from $local_gnulib_dir.
16508         (func_import): Store the relativized $local_gnulib_dir in
16509         gnulib-cache.m4, and read it from there if not specified explicitly.
16510
16511 2006-08-28  Bruno Haible  <bruno@clisp.org>
16512
16513         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
16514         is the current directory. Respect also $local_gnulib_dir.
16515
16516 2006-08-28  Bruno Haible  <bruno@clisp.org>
16517             Simon Josefsson  <jas@extundo.com>
16518
16519         BeOS portability.
16520         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
16521
16522 2006-08-27  Jim Meyering  <jim@meyering.net>
16523
16524         * doc/visibility.texi: Remove duplicate word: "pointer".
16525
16526 2006-08-26  Bruno Haible  <bruno@clisp.org>
16527
16528         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
16529         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
16530         (Makefile.am): Create inttypes.h from inttypes_.h.
16531         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
16532
16533         * modules/imaxabs: New file.
16534
16535         * modules/imaxdiv: New file.
16536
16537 2006-08-26  Bruno Haible  <bruno@clisp.org>
16538
16539         * m4/inttypes.m4: New file.
16540         * m4/_inttypes_h.m4: Remove file.
16541         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
16542         PRI_MACROS_BROKEN.
16543         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
16544
16545         * m4/imaxabs.m4: New file.
16546
16547         * m4/imaxdiv.m4: New file.
16548
16549 2006-08-26  Bruno Haible  <bruno@clisp.org>
16550
16551         * lib/inttypes_.h: New file.
16552         * lib/inttypes.h: Remove file.
16553         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
16554
16555         * lib/imaxabs.c: New file.
16556
16557         * lib/imaxdiv.c: New file.
16558
16559 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
16560
16561         New config-h module, so that "make" output needn't be cluttered
16562         by -DHAVE_CONFIG_H.
16563         * MODULES.html.sh (Support for building libraries and executables):
16564         Add config-h.
16565         * modules/config-h: New file.
16566         * gnulib-tool (nl, sed_transform_lib_file): New vars.
16567         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
16568         the config-h module is used.
16569
16570         New configmake module, so that "make" output needn't be cluttered
16571         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
16572         * MODULES.html.sh (Support for building libraries and executables):
16573         Add configmake.
16574         * modules/configmake: New file.
16575
16576 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
16577
16578         * m4/config-h.m4: New file.
16579
16580 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
16581
16582         * config/srclist.txt: Add elisp-comp.
16583
16584 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
16585
16586         * MODULES.html.sh (Support for building libraries and executables):
16587         Add elisp-comp.
16588         * build-aux/elisp-comp: New file.
16589         * modules/elisp-comp: New file.
16590
16591 2006-08-24  Bruno Haible  <bruno@clisp.org>
16592
16593         * gnulib-tool (func_create_testdir): Use non-default values of
16594         sourcebase and m4base.
16595
16596 2006-08-24  Bruno Haible  <bruno@clisp.org>
16597
16598         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
16599         HTML structure.
16600
16601 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
16602
16603         * modules/openat (Depends-on): Add lchown.
16604
16605 2006-08-23  Bruno Haible  <bruno@clisp.org>
16606
16607         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
16608         of gl_LOCK_EARLY instead of gl_LOCK.
16609
16610 2006-08-23  Bruno Haible  <bruno@clisp.org>
16611
16612         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
16613         on OSF/1 to no.
16614         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
16615
16616 2006-08-23  Bruno Haible  <bruno@clisp.org>
16617
16618         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
16619         as unusable.
16620
16621         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
16622         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
16623         (gl_LOCK): New macro.
16624
16625 2006-08-22  Simon Josefsson  <jas@extundo.com>
16626
16627         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
16628         to md5 module.
16629
16630 2006-08-22  Simon Josefsson  <jas@extundo.com>
16631
16632         * MODULES.html.sh: Add "Support for maintaining and release
16633         projects".
16634
16635         * build-aux/gnupload: New file, from coreutils.
16636
16637 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
16638
16639         Avoid the need for AC_LIBSOURCES in m4 macros.
16640         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
16641         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
16642         * modules/check-version (EXTRA_DIST): Add check-version.h.
16643         * modules/crc (EXTRA_DIST): Add crc.h.
16644         * modules/des (EXTRA_DIST): Add des.h.
16645         * modules/gc (EXTRA_DIST): Add gc.h.
16646         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
16647         * modules/getline (EXTRA_DIST): Add getline.h.
16648         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
16649         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
16650         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
16651         * modules/md2 (EXTRA_DIST): Add md2.h.
16652         * modules/md4 (EXTRA_DIST): Add md4.h.
16653         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
16654         * modules/read-file (EXTRA_DIST): Add read-file.h.
16655         * modules/readline (EXTRA_DIST): Add readline.h.
16656         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
16657         rijndael-api-fst.h.
16658
16659 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
16660
16661         * m4/rijndael.m4 (gl_ARCFOUR):
16662         * m4/arctwo.m4 (gl_ARCTWO):
16663         * m4/check-version.m4 (gl_CHECK_VERSION):
16664         * m4/crc.m4 (gl_CRC):
16665         * m4/des.m4 (gl_DES):
16666         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
16667         * m4/gc.m4 (gl_GC):
16668         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
16669         * m4/getline.m4 (gl_FUNC_GETLINE):
16670         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
16671         * m4/hmac-md5.m4 (gl_HMAC_MD5):
16672         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
16673         * m4/md2.m4 (gl_MD2):
16674         * m4/md4.m4 (gl_MD4):
16675         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
16676         * m4/read-file.m4 (gl_FUNC_READ_FILE):
16677         * m4/readline.m4 (gl_FUNC_READLINE):
16678         * m4/rijndael.m4 (gl_RIJNDAEL):
16679         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
16680         to get the necessary .h files and whatnot.
16681
16682 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
16683
16684         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
16685         gnulib rather than the other way around.
16686         * config/srclistvars.sh (COREUTILS): Remove.
16687
16688 2006-08-22  Jim Meyering  <jim@meyering.net>
16689
16690         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
16691
16692         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
16693
16694 2006-08-22  Eric Blake  <ebb9@byu.net>
16695
16696         * modules/regexprops-generic: New file.
16697         * MODULES.html.sh (Support for building documentation): List it.
16698
16699 2006-08-22  Eric Blake  <ebb9@byu.net>
16700
16701         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
16702         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
16703         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
16704         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
16705
16706 2006-08-22  Bruno Haible  <bruno@clisp.org>
16707
16708         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
16709         and lib_LTLIBRARIES like the other lib_* variables.
16710
16711 2006-08-22  Bruno Haible  <bruno@clisp.org>
16712
16713         * build-aux/x-to-1.in: New file, from GNU gettext.
16714
16715 2006-08-22  Bruno Haible  <bruno@clisp.org>
16716
16717         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
16718         <utmpx.h> exists.
16719
16720 2006-08-22  Bruno Haible  <bruno@clisp.org>
16721
16722         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
16723         <utmpx.h> exists.
16724
16725 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
16726
16727         BeOS portability.
16728         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
16729         exist.
16730         Problem reported by Bruno Haible.
16731
16732 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
16733
16734         Avoid the need for AC_LIBSOURCES in m4 macros.
16735         * modules/acl (EXTRA_DIST): Add acl.h.
16736         * modules/argmatch (Files): Add m4/argmatch.m4.
16737         (configure.ac): Add gl_ARGMATCH.
16738         (EXTRA_DIST): Renamed from lib_SOURCES, for
16739         consistency with the other modules.  Remove argmatch.c.
16740         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
16741         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
16742         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
16743         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
16744         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
16745         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
16746         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
16747         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
16748         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
16749         * modules/closeout (EXTRA_DIST): Add closeout.h.
16750         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
16751         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
16752         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
16753         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
16754         dirname.h; remove basename.c and stripslash.c.
16755         * modules/exclude (EXTRA_DIST): Add exclude.h.
16756         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
16757         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
16758         * modules/file-type (EXTRA_DIST): Add file-type.h.
16759         * modules/filemode (EXTRA_DIST): Add filemode.h.
16760         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
16761         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
16762         * modules/fpending (EXTRA_DIST): Add __fpending.h.
16763         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
16764         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
16765         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
16766         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
16767         * modules/getdate (EXTRA_DIST): Add getdate.c.
16768         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
16769         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
16770         * modules/getpass (EXTRA_DIST): Add getpass.h.
16771         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
16772         * modules/group-member (EXTRA_DIST): Add group-member.h.
16773         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
16774         * modules/hash (EXTRA_DIST): Add hash.h.
16775         * modules/human (EXTRA_DIST): Add human.h.
16776         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
16777         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
16778         * modules/lchown (EXTRA_DIST): Add lchown.h.
16779         * modules/long-options (EXTRA_DIST): Add long-options.h.
16780         * modules/lstat (EXTRA_DIST): Add lstat.h.
16781         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
16782         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
16783         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
16784         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
16785         * modules/memxor (EXTRA_DIST): Add memxor.h.
16786         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
16787         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
16788         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
16789         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
16790         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
16791         * modules/physmem (EXTRA_DIST): Add physmem.h.
16792         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
16793         * modules/posixver (EXTRA_DIST): Add posixver.h.
16794         * modules/quote (EXTRA_DIST): Add quote.h.
16795         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
16796         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
16797         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
16798         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
16799         regex_internal.h regexec.c.
16800         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
16801         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
16802         * modules/same (EXTRA_DIST): Add same.h.
16803         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
16804         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
16805         * modules/savedir (EXTRA_DIST): Add savedir.h.
16806         * modules/sha1 (EXTRA_DIST): Add sha1.h.
16807         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
16808         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
16809         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
16810         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
16811         * modules/strdup (EXTRA_DIST): Add strdup.h.
16812         * modules/strftime (EXTRA_DIST): Add strftime.h.
16813         * modules/strndup (EXTRA_DIST): Add strndup.h.
16814         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
16815         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
16816         * modules/time_r (EXTRA_DIST): Add time_r.h.
16817         * modules/timespec (EXTRA_DIST): Add timespec.h.
16818         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
16819         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
16820         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
16821         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
16822         * modules/userspec (EXTRA_DIST): Add userspec.h.
16823         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
16824         * modules/utimens (EXTRA_DIST): Add utimens.h.
16825         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
16826         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
16827         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
16828         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
16829         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
16830         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
16831         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
16832         * modules/yesno (EXTRA_DIST): Add yesno.h.
16833
16834 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
16835
16836         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
16837
16838         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
16839         * m4/dev-ino.m4, same-inode.m4: Remove.
16840
16841         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
16842         * m4/acl.m4 (AC_FUNC_ACL):
16843         * m4/backupfile.m4 (gl_BACKUPFILE):
16844         * m4/c-strtod.m4 (gl_C99_STRTOLD):
16845         * m4/canon-host.m4 (gl_CANON_HOST):
16846         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
16847         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
16848         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
16849         * m4/cloexec.m4 (gl_CLOEXEC):
16850         * m4/close-stream.m4 (gl_CLOSE_STREAM):
16851         * m4/closeout.m4 (gl_CLOSEOUT):
16852         * m4/dirfd.m4 (gl_FUNC_DIRFD):
16853         * m4/dirname.m4 (gl_DIRNAME):
16854         * m4/exclude.m4 (gl_EXCLUDE):
16855         * m4/exitfail.m4 (gl_EXITFAIL):
16856         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
16857         * m4/file-type.m4 (gl_FILE_TYPE):
16858         * m4/filemode.m4 (gl_FILEMODE):
16859         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
16860         * m4/fpending.m4 (gl_FUNC_FPENDING):
16861         * m4/fprintftime.m4 (gl_FPRINTFTIME):
16862         * m4/fts.m4 (gl_FUNC_FTS):
16863         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
16864         * m4/getdate.m4 (gl_GETDATE):
16865         * m4/gethrxtime.m4 (gl_GETHRXTIME):
16866         * m4/getpagesize.m4 (gl_GETPAGESIZE):
16867         * m4/getpass.m4 (gl_FUNC_GETPASS):
16868         * m4/gettime.m4 (gl_GETTIME):
16869         * m4/getugroups.m4 (gl_GETUGROUPS):
16870         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
16871         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
16872         * m4/hard-locale.m4 (gl_HARD_LOCALE):
16873         * m4/hash.m4 (gl_HASH):
16874         * m4/idcache.m4 (gl_IDCACHE):
16875         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
16876         * m4/lchown.m4 (gl_FUNC_LCHOWN):
16877         * m4/long-options.m4 (gl_LONG_OPTIONS):
16878         * m4/lstat.m4 (gl_FUNC_LSTAT):
16879         * m4/md5.m4 (gl_MD5):
16880         * m4/memcasecmp.m4 (gl_MEMCASECMP):
16881         * m4/memcoll.m4 (gl_MEMCOLL):
16882         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
16883         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
16884         * m4/memxor.m4 (gl_MEMXOR):
16885         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
16886         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
16887         * m4/modechange.m4 (gl_MODECHANGE):
16888         * m4/mountlist.m4 (gl_MOUNTLIST):
16889         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
16890         * m4/openat.m4 (gl_FUNC_OPENAT):
16891         * m4/pathmax.m4 (gl_PATHMAX):
16892         * m4/physmem.m4 (gl_PHYSMEM):
16893         * m4/posixtm.m4 (gl_POSIXTM):
16894         * m4/posixver.m4 (gl_POSIXVER):
16895         * m4/quote.m4 (gl_QUOTE):
16896         * m4/quotearg.m4 (gl_QUOTEARG):
16897         * m4/readtokens.m4 (gl_READTOKENS):
16898         * m4/readutmp.m4 (gl_READUTMP):
16899         * m4/regex.m4 (gl_REGEX):
16900         * m4/safe-read.m4 (gl_SAFE_READ):
16901         * m4/safe-write.m4 (gl_SAFE_WRITE):
16902         * m4/same.m4 (gl_SAME):
16903         * m4/save-cwd.m4 (gl_SAVE_CWD):
16904         * m4/savedir.m4 (gl_SAVEDIR):
16905         * m4/settime.m4 (gl_SETTIME):
16906         * m4/sha1.m4 (gl_SHA1):
16907         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
16908         * m4/stat-macros.m4 (gl_STAT_MACROS):
16909         * m4/stat-time.m4 (gl_STAT_TIME):
16910         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
16911         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
16912         * m4/strdup.m4 (gl_FUNC_STRDUP):
16913         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
16914         * m4/strndup.m4 (gl_FUNC_STRNDUP):
16915         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
16916         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
16917         * m4/time_r.m4 (gl_TIME_R):
16918         * m4/timespec.m4 (gl_TIMESPEC):
16919         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
16920         * m4/unlinkdir.m4 (gl_UNLINKDIR):
16921         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
16922         * m4/userspec.m4 (gl_USERSPEC):
16923         * m4/utimecmp.m4 (gl_UTIMECMP):
16924         * m4/utimens.m4 (gl_UTIMENS):
16925         * m4/xalloc.m4 (gl_XALLOC):
16926         * m4/xgetcwd.m4 (gl_XGETCWD):
16927         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
16928         * m4/xreadlink.m4 (gl_XREADLINK):
16929         * m4/xstrtod.m4 (gl_XSTRTOD):
16930         * m4/yesno.m4 (gl_YESNO):
16931         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
16932         to get the necessary .h files and whatnot.
16933
16934 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
16935             Bruno Haible  <bruno@clisp.org>
16936
16937         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
16938         /bin/sh understanding of '!' conditional negation.
16939
16940 2006-08-21  Jim Meyering  <jim@meyering.net>
16941
16942         * modules/openat (Depends-on): Really alphabetize.
16943
16944         * modules/acl (Depends-on): Add error and quote.
16945
16946         * check-module (find_included_lib_files): Add at-func.c to the
16947         ok-to-include-more-than-once white list.
16948
16949         * modules/openat (Depends-on): Add lstat.  Alphabetize.
16950
16951 2006-08-21  Bruno Haible  <bruno@clisp.org>
16952
16953         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16954         Emit a pkgdata_DATA variable only if some snippets add contents to it.
16955         Reported by Martin Lambers <marlam@marlam.de>.
16956
16957 2006-08-21  Bruno Haible  <bruno@clisp.org>
16958
16959         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
16960         specify an installation location, don't emit a noinst_LIBRARIES or
16961         noinst_LTLIBRARIES assignment.
16962
16963 2006-08-21  Bruno Haible  <bruno@clisp.org>
16964
16965         BeOS portability.
16966         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
16967         BeOS has mbrtowc() but no <wctype.h>.
16968
16969 2006-08-21  Bruno Haible  <bruno@clisp.org>
16970
16971         BeOS portability.
16972         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
16973         exist.
16974
16975 2006-08-21  Bruno Haible  <bruno@clisp.org>
16976
16977         BeOS portability.
16978         * lib/mbchar.h: Include <wctype.h> only if it exists.
16979
16980 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
16981
16982         Remove files that are no longer needed by their respective modules.
16983         * m4/obstack.m4: Remove.
16984         * m4/strerror_r.m4: Remove.
16985         * m4/uint32_t.m4: Remove.
16986         * m4/uintptr_t.m4: Remove.
16987         * m4/ullong_max.m4: Remove.
16988         * m4/xstrtoimax.m4: Remove.
16989         * m4/xstrtoumax.m4: Remove.
16990
16991         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
16992         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
16993         dependencies now capture this.
16994
16995         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
16996         Do not use AC_LIBSOURCES, since gnulib modules now do this.
16997         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
16998         * m4/human.m4 (gl_HUMAN): Likewise.
16999         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
17000         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
17001
17002         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
17003
17004         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
17005         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
17006         stdint.
17007         * m4/human.m4 (gl_HUMAN): Likewise.
17008         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
17009         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
17010         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
17011         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
17012         * m4/xstrtol (gl_XSTRTOL): Likewise.
17013
17014         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
17015         AC_TYPE_LONG_LONG_INT.
17016         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
17017         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
17018         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
17019         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
17020
17021         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
17022         on stdbool.
17023
17024         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
17025         (gl_PREREQ_XSTRTOUL): Remove.
17026
17027         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
17028
17029         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
17030         mode.
17031
17032 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
17033
17034         Add and change modules to make it easier for coreutils to use
17035         gnulib-tool.
17036         * modules/backupfile (Files): Remove m4/d-ino.m4.
17037         (Depends-on): Add d-ino.
17038         * modules/cycle-check (Depends-on): Add stdint.
17039         (lib_SOURCES): Add cycle-check.h.
17040         * modules/d-ino: New module.
17041         * modules/d-type: New module.
17042         * modules/error (Files): Remove m4/strerror_r.m4.
17043         * modules/filemode (Files): Add m4/st_dm_mode.m4.
17044         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
17045         m4/inttypes_h.m4, m4/uintmax_t.m4.
17046         (Depends-on): Add stdint.
17047         (lib_SOURCES): Add fsusage.h.
17048         * modules/getcwd (Files): Remove d-ino.m4.
17049         (Depends-on): Add d-ino.
17050         * modules/getndelim2 (Depends-on): Add stdint.
17051         * modules/glob (Files): Remove m4/d-type.m4.
17052         (Depends-on): Add d-type.
17053         * modules/host-os: New module.
17054         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
17055         m4/inttypes_h.m4, m4/uintmax_t.m4.
17056         * Depends-on: Add stdint.
17057         (lib_SOURCES): Add human.h.
17058         * modules/inttostr (Files): Remove m4/intmax_t.m4,
17059         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
17060         m4/uintmax_t.m4, m4/ulonglong.m4.
17061         (Depends-on): Add stdint.
17062         (EXTRA_DIST): Add inttostr.h.
17063         * modules/lchmod: New module.
17064         * modules/link-follow: New module.
17065         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
17066         (Depends-on): Add lchmod.
17067         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
17068         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
17069         (Depends-on): Add stdint.
17070         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
17071         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
17072         (Depends-on): Add stdint.
17073         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
17074         * modules/perl: New module.
17075         * modules/regex (Depends-on): Add stdint.
17076         * modules/rmdir-errno: New module.
17077         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
17078         m4/intmax_t.m4.
17079         (Depends-on): Add stdint.
17080         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
17081         m4/uintmax_t.m4.
17082         (Depends-on): Add stdint.
17083         * modules/unlink-busy: New module.
17084         * modules/utimecmp (Depends-on): Add stdint.
17085         * modules/uptime: New module.
17086         * modules/winsz-ioctl: New module.
17087         * modules/winsz-termios: New module.
17088         * modules/xnanosleep (Depends-on): Add nanosleep.
17089         * modules/ullong_max: Remove.
17090         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
17091         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
17092         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
17093         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
17094         (Depends-on): Add inttypes.
17095         (lib_SOURCES): Add xstrtol.h.
17096         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
17097         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
17098         * MODULES.html.sh: Move 'assert' into the assert section.
17099         Move 'dummy' into the linking section.
17100         Remove ullong_max.
17101         Add section for compatibility checks for POSIX:2001 functions,
17102         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
17103         winsz-ioctl, and winsz-termios into it.
17104         Add lchmod.
17105         Add top-level Misc section and put host-os, perl, and uptime
17106         into it.
17107
17108 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
17109
17110         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
17111         now assume the stdint module.  Do not include inttypes.h.
17112         * lib/fsusage.h: Likewise.
17113         * lib/getndelim2.c: Likewise.
17114         * lib/human.h: Likewise.
17115         * lib/inttostr.h: Likewise.
17116         * lib/obstack.c: Likewise.
17117         * lib/regex_internal.h: Likewise.
17118         * lib/tempname.c: Likewise.
17119         * lib/utimecmp.c: Likewise.
17120         * lib/xstrtol.h: Likewise.
17121
17122         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
17123
17124         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
17125         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
17126         * lib/xtime.h: Likewise.
17127
17128 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
17129
17130         * modules/openat (Files): Add lib/fchmodat.c.
17131         Fixes problem reported by Jay Youngman.
17132
17133 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
17134
17135         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
17136         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
17137
17138 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
17139             Bruno Haible  <bruno@clisp.org>
17140
17141         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
17142         and is a script that invokes bison. Tighten the code. Add comments.
17143
17144 2006-08-18  Jim Meyering  <jim@meyering.net>
17145
17146         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
17147         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
17148         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
17149         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
17150
17151 2006-08-18  Bruno Haible  <bruno@clisp.org>
17152
17153         * modules/bison-i18n: New file.
17154         * MODULES.html.sh (Internationalization functions): Add it.
17155
17156 2006-08-18  Bruno Haible  <bruno@clisp.org>
17157
17158         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
17159         sys/statvfs.h. When getmntinfo was found, check its declaration and
17160         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
17161
17162 2006-08-18  Bruno Haible  <bruno@clisp.org>
17163
17164         * m4/bison-i18n.m4: New file, from bison.
17165
17166 2006-08-18  Bruno Haible  <bruno@clisp.org>
17167
17168         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
17169         (ME_DUMMY): Treat "kernfs" as a dummy.
17170         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
17171
17172 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
17173
17174         Update from coreutils.
17175
17176         2006-08-15  Jim Meyering  <jim@meyering.net>
17177
17178         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
17179
17180         2006-01-17  Jim Meyering  <jim@meyering.net>
17181
17182         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
17183
17184         2006-01-11  Jim Meyering  <jim@meyering.net>
17185
17186         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
17187         Check for the lchmod function.
17188
17189 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
17190
17191         Update from coreutils.
17192
17193         * lib/__fpending.h: Add copyright notice.
17194         * lib/fprintftime.h: Likewise.
17195         * lib/savedir.c: Use (C) in copyright notice.
17196         * lib/savedir.h: Likewise.
17197
17198         2006-08-15  Jim Meyering  <jim@meyering.net>
17199
17200         * lib/at-func.c: New file, with the logic of all emulated at-functions.
17201         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
17202         in support of the EXPECTED_ERRNO macro.
17203         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
17204         definitions.  Instead, define the appropriate symbols and include
17205         "at-func.c".
17206         * lib/mkdirat.c (mkdirat): Likewise.
17207         * lib/fchmodat.c (fchmodat): Likewise.
17208         (ENOSYS): Remove definition.
17209         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
17210         it.  Don't include "unistd--.h" -- it wasn't ever used.
17211
17212         2006-01-17  Jim Meyering  <jim@meyering.net>
17213
17214         Rewrite fts.c not to change the current working directory,
17215         by using openat, fstatat, fdopendir, etc..
17216
17217         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
17218         (HAVE_OPENAT_SUPPORT): Define.
17219         [_LIBC] (fchdir): Don't undef or define; no longer used.
17220         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
17221         Now, this `function' always succeeds, and consumes its file descriptor
17222         parameter -- so callers must not close such FDs.  Update callers.
17223         (diropen_fd, opendirat, cwd_advance_fd): New functions.
17224         (diropen): Add parameter, SP.  Adjust all callers.
17225         Implement using diropen_fd, rather than open.
17226         (fts_open): Initialize new member, fts_cwd_fd.
17227         Remove fts_rft-setting code.
17228         (fts_close): Close fts_cwd_fd, if necessary.
17229         (__opendir2): Define in terms of opendir or opendirat,
17230         depending on whether the FST_NOCHDIR flag is set.
17231         (fts_build): Since fts_safe_changedir consumes its FD, and since
17232         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
17233         and close the dup'd file descriptor upon failure.
17234         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
17235         (fts_safe_changedir): Tweak semantics to reflect that this function
17236         now calls cwd_advance_fd and hence consumes its FD argument.
17237         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
17238         [struct FTS] (fts_rft): Remove now-unused member.
17239         [struct FTS] (fts_cycle.state): Improve comment.
17240
17241         * lib/openat.c (openat_needs_fchdir): New function.
17242         * lib/openat.h (openat_needs_fchdir): Declare it.
17243
17244 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
17245
17246         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
17247         Problem and fix reported by Pádraig Brady in
17248         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
17249
17250 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
17251
17252         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
17253
17254 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
17255
17256         * lib/memcoll.c (memcoll): Optimize for the common case where the
17257         arguments are bytewise equal.
17258
17259 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
17260
17261         * doc/regexprops-generic.texi: Add a copyright notice.
17262
17263 2006-08-15  Bruno Haible  <bruno@clisp.org>
17264
17265         * modules/tmpdir (License): Change to LGPL.
17266
17267 2006-08-15  Bruno Haible  <bruno@clisp.org>
17268
17269         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
17270         module.
17271
17272 2006-08-14  Simon Josefsson  <jas@extundo.com>
17273
17274         * config/srclist.txt: Add gnupload.
17275
17276 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
17277
17278         Change copyright notice from LGPL 2 to GPL 2, since that's the
17279         standard form used in the gnulib repository.
17280         * tests/test-lock.c: Likewise.
17281         * tests/test-stdint.c: Likewise.
17282         * tests/test-tls.c: Likewise.
17283
17284         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
17285         prelude-manager.  User shorter URLs for GNU projects, without '?'.
17286         Add copyright notice.
17287
17288         * check-module: Add copyright notice.  Output a copyright
17289         notice if "--version" is specified.
17290         * modules/COPYING: New file.
17291         * tests/test-getaddrinfo.c: Add copyright notice.
17292         * tests/test-verify.c: Likewise.
17293
17294 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
17295
17296         Change copyright notice from LGPL 2 to GPL 2, since that's the
17297         standard form used in the gnulib repository.
17298         * lib/lock.c: LGPL -> GPL.
17299         * lib/lock.h: Likewise.
17300         * lib/strnlen1.c: Likewise.
17301         * lib/strnlen1.h: Likewise.
17302         * lib/tls.c: Likewise.
17303         * lib/tls.h: Likewise.
17304         * lib/tmpdir.c: Likewise.
17305
17306         * lib/TODO: Remove; this belongs only in coreutils.
17307
17308 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
17309
17310         Add copyright notices to long-enough files that lack them, since
17311         otherwise the files aren't clearly free.  Use the same notice that
17312         getdate.texi already uses.
17313         * doc/alloca-opt.texi: Add copyright notice.
17314         * doc/alloca.texi: Likewise.
17315         * doc/ctime.texi: Likewise.
17316         * doc/functions.texi: Likewise.
17317         * doc/gcd.texi: Likewise.
17318         * doc/gnulib-tool.texi: Likewise.
17319         * doc/inet_ntoa.texi: Likewise.
17320         * doc/visibility.texi: Likewise.
17321
17322         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
17323         * doc/quote.texi: Add copyright notice.
17324
17325         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
17326         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
17327         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
17328         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
17329         is now obsolete, and give a pointer to the Sun list.
17330         Add copyright notice.
17331
17332 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
17333
17334         * config/srclistvars.sh: Add copyright notice.
17335
17336 2006-08-14  Eric Blake  <ebb9@byu.net>
17337
17338         Import the following change from libc:
17339
17340         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
17341
17342         Upstream bug 2997.
17343         * lib/misc/error.c: Add space between program name and message if file
17344         name is missing.
17345
17346 2006-08-12  Karl Berry  <karl@gnu.org>
17347
17348         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
17349         remove, these originate in gnulib now.
17350
17351 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17352
17353         * doc/Makefile (standards.info standards.html standards.dvi):
17354         Also depend on make-stds.texi.
17355
17356 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
17357
17358         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
17359         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
17360
17361         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
17362         in wchar_t.  Problem reported by Eric Blake.
17363
17364         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
17365         LEN is smaller than SIZE.  Suggested by Bruno Haible.
17366         Also, help the compiler to keep LEN in a register.
17367
17368 2006-08-11  Eric Blake  <ebb9@byu.net>
17369
17370         * users.txt: Sort.  Add tar.
17371
17372 2006-08-11  Bruno Haible  <bruno@clisp.org>
17373
17374         * users.txt: New file.
17375
17376 2006-08-11  Bruno Haible  <bruno@clisp.org>
17377
17378         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
17379         before <wchar.h>. Needed for OSF/1 and BSD/OS.
17380
17381 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
17382
17383         * modules/snprintf (Depends-on): Remove minmax.
17384         (Maintainer): Add self and Bruno.
17385
17386 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
17387
17388         * lib/.cppi-disable: Add snprintf.h, socket_.h.
17389         * lib/snprintf.c: Include <errno.h> and <limits.h>.
17390         (EOVERFLOW): Define if the system does not.
17391         Do not include "minmax.h"; it wasn't used.
17392         (snprintf): Don't assume size_t promotes to an unsigned type.
17393         Fix bug when generated string was too long for the buffer: the
17394         buffer's contents are supposed to be the initial prefix of the
17395         output.  Don't assume vasnprintf returns EOVERFLOW if the size
17396         exceeds INT_MAX; do the check ourselves.
17397
17398         Import the following changes from libc:
17399
17400         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
17401
17402         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
17403         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
17404         set wc to the byte which couldn't be converted.
17405         (re_string_reconstruct): Don't clear valid_raw_len before calling
17406         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
17407         tip_context using re_string_context_at.
17408
17409         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
17410
17411         * lib/posix/regex.h: g++ still cannot handled [restrict].
17412
17413         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
17414
17415         * lib/posix/regex.h: Remove special handling for VMS.
17416
17417 2006-08-10  Jim Meyering  <jim@meyering.net>
17418
17419         * modules/same-inode: New module.
17420         * modules/dev-ino: New module.
17421         * modules/cycle-check: Depend on these modules, rather than simply
17422         including their .h files.
17423         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
17424         required via m4/cycle-check.m4.
17425         * modules/same: Depend on new same-inode module, rather than
17426         including same-inode.h.
17427         * modules/chdir-safer: New file.
17428
17429         * modules/chown (Depends-on): Add stat-macros.
17430
17431 2006-08-10  Jim Meyering  <jim@meyering.net>
17432
17433         * m4/cycle-check.m4: New file.
17434         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
17435         * m4/dev-ino.m4, m4/same-inode.m4: New files.
17436
17437 2006-08-10  Eric Blake  <ebb9@byu.net>
17438
17439         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
17440         in from original proposal.
17441
17442 2006-08-10  Eric Blake  <ebb9@byu.net>
17443         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17444
17445         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
17446         namespace.
17447
17448 2006-08-10  Bruno Haible  <bruno@clisp.org>
17449
17450         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
17451         as well.
17452
17453 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
17454
17455         Sync from coreutils.
17456
17457         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
17458
17459         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
17460         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
17461
17462 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
17463
17464         * modules/restrict: Remove; no longer needed now that we assume
17465         Autoconf 2.59 or later.
17466         * MODULES.html.sh: Remove 'restrict'.
17467         * modules/argp (Depends-on): Remove 'restrict'.
17468         * modules/base64 (Depends-on): Likewise.
17469         * modules/gc (Depends-on): Likewise.
17470         * modules/getaddrinfo (Depends-on): Likewise.
17471         * modules/glob (Depends-on): Likewise.
17472         * modules/inet_ntop (Depends-on): Likewise.
17473         * modules/inet_pton (Depends-on): Likewise.
17474         * modules/memxor (Depends-on): Likewise.
17475         * modules/regex (Depends-on): Likewise.
17476         * modules/strtok_r (Depends-on): Likewise.
17477         * modules/time_r (Depends-on): Likewise.
17478
17479 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
17480
17481         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
17482         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
17483         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
17484         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
17485         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
17486         * m4/memxor.m4 (gl_MEMXOR): Likewise.
17487         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
17488         gl_C_RESTRICT replaced by AC_C_RESTRICT.
17489
17490         Merge from coreutils.
17491         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
17492         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
17493         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
17494         * m4/time_r.m4 (gl_TIME_R): Likewise.
17495
17496 2006-08-09  Karl Berry  <karl@gnu.org>
17497
17498         * config/srclist.txt: no more gettext-tools, per Bruno.
17499
17500 2006-08-08  Eric Blake  <ebb9@byu.net>
17501
17502         * modules/verror: New module.
17503         * MODULES.html.sh: Document it.
17504
17505 2006-08-08  Eric Blake  <ebb9@byu.net>
17506
17507         * lib/verror.h, lib/verror.c: New files.
17508
17509 2006-08-08  Eric Blake  <ebb9@byu.net>
17510
17511         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
17512         verror_at_line output complies with GNU Coding Standards even when
17513         file is NULL.
17514
17515 2006-08-07  Bruno Haible  <bruno@clisp.org>
17516
17517         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
17518         versions of AIX.
17519         Reported by Ralf Wildenhues.
17520
17521 2006-08-07  Bruno Haible  <bruno@clisp.org>
17522
17523         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
17524         in an AC_DEFUN. Needed so that the autoconf snippets can use
17525         AC_REQUIRE.
17526
17527 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17528
17529         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17530         Initialize pkgdata_DATA.
17531         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
17532         overriding it.
17533
17534 2006-08-06  Eric Blake  <ebb9@byu.net>
17535
17536         * lib/error.h: Fold in some upstream changes from glibc.
17537         * lib/error.c: Likewise.
17538
17539 2006-08-04  Bruno Haible  <bruno@clisp.org>
17540
17541         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17542         Make the mostlyclean-local rule depend on mostlyclean-generic.
17543         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
17544
17545 2006-07-31  Bruno Haible  <bruno@clisp.org>
17546
17547         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
17548         <stdlib.h>, <string.h>.
17549
17550 2006-07-30  Bruno Haible  <bruno@clisp.org>
17551
17552         * modules/readlink (License): Change to LGPL.
17553
17554 2006-07-30  Bruno Haible  <bruno@clisp.org>
17555
17556         * modules/javaversion (Makefile.am): Distribute javaversion.java and
17557         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
17558         set PKGDATADIR to point to it.
17559
17560 2006-07-30  Bruno Haible  <bruno@clisp.org>
17561
17562         * modules/csharpexec (configure.ac): Comment out macro invocation.
17563         * modules/javaexec (configure.ac): Likewise.
17564         * modules/javacomp-script (configure.ac): Likewise.
17565
17566         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
17567
17568 2006-07-30  Bruno Haible  <bruno@clisp.org>
17569
17570         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
17571         linked-list.
17572
17573 2006-07-30  Bruno Haible  <bruno@clisp.org>
17574
17575         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
17576
17577 2006-07-30  Bruno Haible  <bruno@clisp.org>
17578
17579         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17580         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
17581         get removed.
17582
17583 2006-07-29  Bruno Haible  <bruno@clisp.org>
17584
17585         Make it possible for gnulib-tool to work with locally modified or
17586         augmented gnulib repositories.
17587         * gnulib-tool (func_usage): Document --local-dir option.
17588         (local_gnulib_dir): New variable.
17589         Handle --local-dir option.
17590         (func_lookup_file): New function.
17591         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
17592         (func_get_description, func_get_filelist, func_get_description,
17593         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
17594         func_get_automake_snippet, func_get_include_directive,
17595         func_get_license, func_get_maintainer): Use func_lookup_file.
17596         (func_import, func_create_testdir): Use func_lookup_file.
17597
17598 2006-07-29  Bruno Haible  <bruno@clisp.org>
17599
17600         * modules/setenv (Depends-on): Add unistd.
17601
17602 2006-07-29  Bruno Haible  <bruno@clisp.org>
17603
17604         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
17605
17606 2006-07-29  Bruno Haible  <bruno@clisp.org>
17607
17608         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
17609
17610 2006-07-29  Bruno Haible  <bruno@clisp.org>
17611
17612         * gnulib-tool (import, update): If there is no Makefile.am, look at
17613         aclocal.m4, instead of bailing out.
17614
17615 2006-07-29  Bruno Haible  <bruno@clisp.org>
17616
17617         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
17618         Categorize the options by when they are useful.
17619
17620 2006-07-29  Bruno Haible  <bruno@clisp.org>
17621
17622         * gnulib-tool (func_usage): Document option --no-libtool.
17623         Handle option --no-libtool.
17624         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
17625         for changed semantics of $libtool variable.
17626         (func_import): Likewise. If libtool is not used, show this through
17627         an option --no-libtool.
17628         (func_create_testdir): Update.
17629
17630 2006-07-29  Bruno Haible  <bruno@clisp.org>
17631
17632         * gnulib-tool (func_import): Extend error message about missing
17633         --doc-base.
17634
17635 2006-07-29  Bruno Haible  <bruno@clisp.org>
17636
17637         * gnulib-tool (func_import): Don't create the $docbase directory if
17638         there is no file to store there.
17639
17640 2006-07-29  Bruno Haible  <bruno@clisp.org>
17641
17642         * gnulib-tool (autoconf_minversion): If a --dir option is given and
17643         relevant, look for configure.ac there, not in the current directory.
17644         Also use a simple search for AC_PREREQ, not "autoconf --trace".
17645
17646 2006-07-29  Bruno Haible  <bruno@clisp.org>
17647
17648         * gnulib-tool (SORT): New variable.
17649         (func_usage): Undocument --assume-autoconf option.
17650         Remove --assume-autoconf option handling.
17651         (autoconf_minversion): Determine from the contents of configure.ac.
17652         (func_import): Remove autoconf_minversion handling.
17653         Suggested by Eric Blake.
17654
17655 2006-07-29  Bruno Haible  <bruno@clisp.org>
17656
17657         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
17658
17659 2006-07-29  Bruno Haible  <bruno@clisp.org>
17660
17661         * config/srclist.txt (*setenv.[ch]): Remove rules.
17662
17663 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17664
17665         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
17666
17667 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17668
17669         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
17670         arpa/inet.h.
17671
17672 2006-07-28  Simon Josefsson  <jas@extundo.com>
17673
17674         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
17675         * modules/inet_pton (Depends-on): Likewise.
17676
17677 2006-07-28  Simon Josefsson  <jas@extundo.com>
17678
17679         * m4/netinet_in_h.m4: New file.
17680
17681 2006-07-28  Simon Josefsson  <jas@extundo.com>
17682
17683         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
17684         #include's.
17685
17686 2006-07-28  Simon Josefsson  <jas@extundo.com>
17687
17688         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
17689         #include's.
17690
17691 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
17692
17693         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
17694         setgid on directories only if they set these bits.
17695         * lib/modechange.h: Remove obsolete comment about masks.
17696
17697 2006-07-28  Eric Blake  <ebb9@byu.net>
17698
17699         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
17700         macro expansion.
17701
17702 2006-07-28  Bruno Haible  <bruno@clisp.org>
17703
17704         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
17705
17706 2006-07-28  Bruno Haible  <bruno@clisp.org>
17707
17708         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
17709
17710 2006-07-28  Bruno Haible  <bruno@clisp.org>
17711
17712         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
17713         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
17714         Define fallbacks.
17715         Avoids link error on FreeBSD 4.x.
17716         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
17717
17718         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
17719         encoding.
17720         * lib/mbswidth.c (iswcntrl): Likewise.
17721
17722 2006-07-27  Bruno Haible  <bruno@clisp.org>
17723
17724         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
17725         test.
17726
17727 2006-07-27  Bruno Haible  <bruno@clisp.org>
17728
17729         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
17730         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
17731         defined.
17732
17733 2006-07-26  Eric Blake  <ebb9@byu.net>
17734
17735         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
17736
17737 2006-07-26  Eric Blake  <ebb9@byu.net>
17738
17739         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
17740         like mingw that lack mkstemp.
17741         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
17742         avoid compilation warning on mingw.
17743
17744 2006-07-26  Bruno Haible  <bruno@clisp.org>
17745
17746         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
17747         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
17748         INT_FAST*_MIN, INTPTR_MIN.
17749
17750 2006-07-25  Bruno Haible  <bruno@clisp.org>
17751
17752         * modules/version-etc (Depends-on): Add stdarg.
17753
17754 2006-07-25  Bruno Haible  <bruno@clisp.org>
17755
17756         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
17757         complex commands.
17758
17759 2006-07-25  Bruno Haible  <bruno@clisp.org>
17760
17761         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
17762         defined in <stdarg.h> or config.h.
17763
17764 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
17765
17766         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
17767         (gl_STDIO_SAFER): Remove.
17768
17769 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
17770
17771         * MODULES.html.sh (File stream based Input/Output):
17772         Add fopen-safer, tmpfile-safer; remove stdio-safer.
17773         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
17774         * modules/fopen-safer, modules/tmpfile-safer: New files.
17775         * modules/stdio-safer: Remove.
17776
17777 2006-07-24  Bruno Haible  <bruno@clisp.org>
17778
17779         * modules/tmpdir: New file.
17780         * MODULES.html.sh (File system functions): Add it.
17781
17782 2006-07-24  Bruno Haible  <bruno@clisp.org>
17783
17784         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
17785         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
17786
17787 2006-07-24  Bruno Haible  <bruno@clisp.org>
17788
17789         * modules/clean-temp: New file.
17790
17791 2006-07-24  Bruno Haible  <bruno@clisp.org>
17792
17793         * m4/tmpdir.m4: New file, from GNU gettext.
17794
17795 2006-07-24  Bruno Haible  <bruno@clisp.org>
17796
17797         * lib/tmpdir.h: New file, from GNU gettext.
17798         * lib/tmpdir.c: New file, from GNU gettext.
17799
17800 2006-07-24  Bruno Haible  <bruno@clisp.org>
17801
17802         * lib/clean-temp.h: New file, from GNU gettext.
17803         * lib/clean-temp.c: New file, from GNU gettext.
17804
17805 2006-07-23  Eric Blake  <ebb9@byu.net>
17806
17807         * modules/stdio-safer (Files): Add tmpfile-safer.c.
17808         (Depends-on): Add binary-io.
17809
17810 2006-07-23  Eric Blake  <ebb9@byu.net>
17811
17812         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
17813
17814 2006-07-23  Eric Blake  <ebb9@byu.net>
17815
17816         * lib/tmpfile-safer.c: New file.
17817         * lib/stdio-safer.h (fopen_safer): Add prototype.
17818         * lib/stdio--.h (tmpfile): Make safer.
17819
17820 2006-07-23  Bruno Haible  <bruno@clisp.org>
17821
17822         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
17823         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
17824         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
17825         gl_linked_remove_at): Use it.
17826
17827 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17828         and Simon Josefsson <jas@extundo.com>
17829
17830         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
17831
17832         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
17833
17834 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
17835
17836         * modules/close-stream: New file.
17837         * modules/closeout (Description): Make it clear that it exits
17838         with a diagnostic on error.
17839         (Depends-on): Add close-stream.  Remove fpending, stdbool.
17840         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
17841
17842 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
17843
17844         * m4/close-stream.m4: New file.
17845
17846 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
17847
17848         * lib/close-stream.c, lib/close-stream.h: New files.
17849
17850 2006-07-22  Bruno Haible  <bruno@clisp.org>
17851
17852         Merge from GNU gettext 0.15.
17853
17854         2006-05-01  Bruno Haible  <bruno@clisp.org>
17855
17856                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
17857
17858         2006-07-22  Bruno Haible  <bruno@clisp.org>
17859
17860                 * modules/javaversion: New file.
17861                 * MODULES.html.sh (Java): Add javaversion.
17862
17863         2006-03-12  Bruno Haible  <bruno@clisp.org>
17864
17865                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
17866
17867         2005-12-04  Bruno Haible  <bruno@clisp.org>
17868
17869                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
17870                 (untested).
17871
17872         2006-06-21  Bruno Haible  <bruno@clisp.org>
17873
17874                 Avoid warnings from recent versions of mcs.
17875                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
17876                 -o, -L, -r any more. Use options documented since mcs-1.0
17877                 instead. Similarly for -g.
17878
17879         2005-12-04  Bruno Haible  <bruno@clisp.org>
17880
17881                 * build-aux/csharpcomp.sh.in: Suffix for resources is
17882                 .resources, not .resource.
17883
17884         2005-07-09  Bruno Haible  <bruno@clisp.org>
17885
17886                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
17887                 add a .dll suffix.
17888                 Reported by Mark Junker <mjscod@gmx.de>.
17889
17890         2006-07-22  Bruno Haible  <bruno@clisp.org>
17891
17892                 * modules/gettext: Upgrade to gettext-0.15.
17893                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
17894                 m4/visibility.m4.
17895                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
17896
17897 2006-07-22  Bruno Haible  <bruno@clisp.org>
17898
17899         Merge from GNU gettext 0.15.
17900
17901         2006-03-25  Bruno Haible  <bruno@clisp.org>
17902
17903                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
17904
17905         2006-07-21  Bruno Haible  <bruno@clisp.org>
17906
17907                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
17908                 "1.1".
17909
17910         2006-05-09  Bruno Haible  <bruno@clisp.org>
17911
17912                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
17913                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
17914                 for the conftestver execution.
17915
17916         2006-05-01  Bruno Haible  <bruno@clisp.org>
17917
17918                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
17919                 optional target-version argument. Verify that the compiler
17920                 groks source of the specified source-version, or add -source
17921                 option as necessary. Verify that the compiler produces
17922                 bytecode in the specified target-version, or add -target and
17923                 -source options as necessary. Make the result of the test
17924                 available as variable CONF_JAVAC. Also log error output in
17925                 config.log.
17926
17927         2006-03-11  Bruno Haible  <bruno@clisp.org>
17928
17929                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
17930
17931         2006-05-09  Bruno Haible  <bruno@clisp.org>
17932
17933                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
17934                 CLASSPATH_SEPARATOR to a semicolon.
17935
17936         2006-03-12  Bruno Haible  <bruno@clisp.org>
17937
17938                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
17939                 available as variable CONF_JAVA, for subsequent autoconf
17940                 tests. Also log error output in config.log.
17941
17942         2006-07-19  Bruno Haible  <bruno@clisp.org>
17943
17944                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
17945                 that getline works on glibc2 systems. Needed to avoid trouble
17946                 in relocatable.c.
17947                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
17948
17949         2005-12-04  Bruno Haible  <bruno@clisp.org>
17950
17951                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
17952                 launcher (untested).
17953
17954         2005-12-04  Bruno Haible  <bruno@clisp.org>
17955
17956                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
17957
17958         2006-07-22  Bruno Haible  <bruno@clisp.org>
17959
17960                 * gettext.m4: Update from GNU gettext-0.15.
17961                 * nls.m4: Likewise.
17962                 * po.m4: Likewise.
17963                 * inttypes-pri.m4: Likewise.
17964                 * inttypes-h.m4: Renamed from inttypes.m4.
17965                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
17966
17967 2006-07-22  Bruno Haible  <bruno@clisp.org>
17968
17969         Merge from GNU gettext 0.15.
17970
17971         2005-07-05  Bruno Haible  <bruno@clisp.org>
17972
17973                 * printf-args.c (printf_fetchargs): Work around broken
17974                 definition of wint_t on mingw.
17975
17976         2005-02-12  Bruno Haible  <bruno@clisp.org>
17977
17978                 * xallocsa.h: Add extern "C" for C++.
17979
17980         2006-05-17  Bruno Haible  <bruno@clisp.org>
17981
17982                 Cygwin portability.
17983                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
17984
17985         2006-04-30  Bruno Haible  <bruno@clisp.org>
17986
17987                 * progreloc.c: Include <mach-o/dyld.h> if available.
17988                 (find_executable): Use _NSGetExecutablePath when possible.
17989
17990         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
17991
17992                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
17993                 function.
17994
17995         2005-12-29  Bruno Haible  <bruno@clisp.org>
17996
17997                 * progreloc.c (set_program_name_and_installdir): Fix
17998                 compilation error.
17999
18000         2005-12-04  Bruno Haible  <bruno@clisp.org>
18001
18002                 Cygwin portability.
18003                 * progreloc.c: Include <windows.h> also on Cygwin.
18004                 (find_executable): Add support for Cygwin.
18005                 (set_program_name_and_installdir): Handle also platforms with
18006                 nonempty EXEEXT.
18007
18008         2006-07-11  Bruno Haible  <bruno@clisp.org>
18009
18010                 * javacomp.c: Fix a comment.
18011                 Reported by Jim Meyering.
18012
18013         2006-04-30  Bruno Haible  <bruno@clisp.org>
18014
18015                 * javacomp.h (compile_java_class): Add source_version,
18016                 target_version arguments.
18017                 * javacomp.c: Rewritten to choose only a compiler that
18018                 respects the specified source_version and target_version.
18019
18020         2006-06-27  Bruno Haible  <bruno@clisp.org>
18021
18022                 Assume correct S_ISDIR macro.
18023                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
18024
18025         2006-07-22  Bruno Haible  <bruno@clisp.org>
18026
18027                 * javaversion.h: New file, from GNU gettext.
18028                 * javaversion.c: New file, from GNU gettext.
18029                 * javaversion.java: New file, from GNU gettext.
18030                 * javaversion.class: New file, from GNU gettext.
18031
18032         2006-05-17  Bruno Haible  <bruno@clisp.org>
18033
18034                 Cygwin portability.
18035                 * javaexec.c (execute_java_class): Test for jview program
18036                 also on Cygwin.
18037
18038         2006-04-09  Bruno Haible  <bruno@clisp.org>
18039
18040                 * fatal-signal.c: Don't include string.h.
18041                 (at_fatal_signal): Use a copying loop instead of memcpy.
18042
18043         2005-12-04  Bruno Haible  <bruno@clisp.org>
18044
18045                 * csharpexec.c: Add support for 'clix' launcher (untested).
18046                 (execute_csharp_using_sscli): New function.
18047                 (execute_csharp_program): Call it.
18048
18049         2006-06-21  Bruno Haible  <bruno@clisp.org>
18050
18051                 Avoid warnings from recent versions of mcs.
18052                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
18053                 -o, -L, -r any more. Use options documented since mcs-1.0
18054                 instead. Similarly for -g.
18055
18056         2005-07-09  Bruno Haible  <bruno@clisp.org>
18057
18058                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
18059                 add a .dll suffix.
18060                 Reported by Mark Junker <mjscod@gmx.de>.
18061
18062         2006-06-17  Bruno Haible  <bruno@clisp.org>
18063
18064                 * config.charset: Update for NetBSD 3.0.
18065
18066         2006-05-17  Bruno Haible  <bruno@clisp.org>
18067
18068                 Cygwin portability.
18069                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
18070
18071         2006-05-16  Bruno Haible  <bruno@clisp.org>
18072
18073                 * localcharset.c [CYGWIN]: Include <windows.h>.
18074                 (get_charset_aliases): For Cygwin, return the same CPxxx
18075                 aliases list as under WIN32.
18076                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
18077                 the environment variables. Fall back to GetACP().
18078
18079         2006-04-05  Bruno Haible  <bruno@clisp.org>
18080
18081                 * config.charset: Update Juan Manuel Guerrero's address.
18082
18083         2005-02-12  Bruno Haible  <bruno@clisp.org>
18084
18085                 * allocsa.h: Add extern "C" for C++.
18086
18087         2005-02-10  Bruno Haible  <bruno@clisp.org>
18088
18089                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
18090                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
18091
18092         2006-07-22  Bruno Haible  <bruno@clisp.org>
18093
18094                 * gettext.h: Update to GNU gettext-0.15.
18095
18096 2006-07-22  Bruno Haible  <bruno@clisp.org>
18097
18098         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
18099         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
18100         lib-prefix.m4, longdouble.m4, ssize_t.m4.
18101
18102 2006-07-21  Eric Blake  <ebb9@byu.net>
18103
18104         * modules/stdlib-safer: New file.
18105         * MODULES.html.sh (File stream based Input/Output): Add
18106         stdlib-safer.
18107
18108 2006-07-21  Eric Blake  <ebb9@byu.net>
18109
18110         * lib/stdlib-safer.h: New file from coreutils, required by
18111         stdlib--.h.
18112
18113 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
18114
18115         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
18116
18117 2006-07-20  Bruno Haible  <bruno@clisp.org>
18118
18119         * gnulib-tool: Recognize new option --assume-autoconf.
18120         (autoconf_minversion): New variable.
18121         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
18122
18123 2006-07-20  Bruno Haible  <bruno@clisp.org>
18124
18125         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
18126
18127 2006-07-19  Derek R. Price  <derek@ximbiot.com>
18128
18129         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
18130         Reindent and repaginate.
18131
18132 2006-07-19  Derek Price  <derek@ximbiot.com>
18133
18134         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
18135         Correct grammar.
18136
18137 2006-07-17  Bruno Haible  <bruno@clisp.org>
18138
18139         * modules/list: New file.
18140         * modules/array-list: New file.
18141         * modules/carray-list, modules/carray-list-tests: New files.
18142         * modules/linked-list, modules/linked-list-tests: New files.
18143         * modules/avltree-list, modules/avltree-list-tests: New files.
18144         * modules/rbtree-list, modules/rbtree-list-tests: New files.
18145         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
18146         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
18147         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
18148         * modules/oset: New file.
18149         * modules/array-oset: New file.
18150         * modules/avltree-oset, modules/avltree-oset-tests: New files.
18151         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
18152         * tests/test-carray_list.c: New file.
18153         * tests/test-linked_list.c: New file.
18154         * tests/test-avltree_list.c: New file.
18155         * tests/test-rbtree_list.c: New file.
18156         * tests/test-linkedhash_list.c: New file.
18157         * tests/test-avltreehash_list.c: New file.
18158         * tests/test-rbtreehash_list.c: New file.
18159         * tests/test-avltree_oset.c: New file.
18160         * tests/test-rbtree_oset.c: New file.
18161         * MODULES.html.sh (Container data structures): New section.
18162
18163 2006-07-17  Bruno Haible  <bruno@clisp.org>
18164
18165         * m4/gl_list.m4: New file.
18166
18167 2006-07-17  Bruno Haible  <bruno@clisp.org>
18168
18169         * lib/gl_list.h: New file.
18170         * lib/gl_list.c: New file.
18171         * lib/gl_array_list.h: New file.
18172         * lib/gl_array_list.c: New file.
18173         * lib/gl_carray_list.h: New file.
18174         * lib/gl_carray_list.c: New file.
18175         * lib/gl_linked_list.h: New file.
18176         * lib/gl_linked_list.c: New file.
18177         * lib/gl_anylinked_list1.h: New file.
18178         * lib/gl_anylinked_list2.h: New file.
18179         * lib/gl_avltree_list.h: New file.
18180         * lib/gl_avltree_list.c: New file.
18181         * lib/gl_anyavltree_list1.h: New file.
18182         * lib/gl_anyavltree_list2.h: New file.
18183         * lib/gl_rbtree_list.h: New file.
18184         * lib/gl_rbtree_list.c: New file.
18185         * lib/gl_anyrbtree_list1.h: New file.
18186         * lib/gl_anyrbtree_list2.h: New file.
18187         * lib/gl_anytree_list1.h: New file.
18188         * lib/gl_anytree_list2.h: New file.
18189         * lib/gl_linkedhash_list.h: New file.
18190         * lib/gl_linkedhash_list.c: New file.
18191         * lib/gl_anyhash_list1.h: New file.
18192         * lib/gl_anyhash_list2.h: New file.
18193         * lib/gl_avltreehash_list.h: New file.
18194         * lib/gl_avltreehash_list.c: New file.
18195         * lib/gl_rbtreehash_list.h: New file.
18196         * lib/gl_rbtreehash_list.c: New file.
18197         * lib/gl_anytreehash_list1.h: New file.
18198         * lib/gl_anytreehash_list2.h: New file.
18199
18200         * lib/gl_oset.h: New file.
18201         * lib/gl_oset.c: New file.
18202         * lib/gl_array_oset.h: New file.
18203         * lib/gl_array_oset.c: New file.
18204         * lib/gl_avltree_oset.h: New file.
18205         * lib/gl_avltree_oset.c: New file.
18206         * lib/gl_rbtree_oset.h: New file.
18207         * lib/gl_rbtree_oset.c: New file.
18208         * lib/gl_anytree_oset.h: New file.
18209
18210 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
18211
18212         * m4/mkancesdirs.m4: New file.
18213         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
18214         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
18215         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
18216         it.
18217
18218 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
18219
18220         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
18221         * lib/mkancesdirs.h: New files.
18222         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
18223         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
18224         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
18225         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
18226         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
18227         callers changed.  Revamp internals significantly, by not
18228         attempting to create directories that are temporarily more
18229         permissive than the final results.  Do not attempt to use
18230         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
18231         This removes some race conditions, fixes some bugs, and simplifies
18232         things.  Use new dirchownmod function to do owner and mode changes.
18233         * lib/mkdir-p.h: Likewise.
18234         * lib/modechange.c (octal_to_mode): New function.
18235         (struct mode_change): New member mentioned.
18236         (make_node_op_equals): New arg mentioned.  All callers changed.
18237         (mode_compile): Keep track of which mode bits the user has explicitly
18238         mentioned.
18239         (mode_adjust): New arg DIR, so that we implement the X op correctly.
18240         New arg PMODE_BITS, to keep track of which mode bits the user
18241         mentioned; it treats S_ISUID and S_ISGID speciall.
18242         All callers changed.
18243         * lib/modechange.h: Likewise.
18244
18245 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
18246
18247         * MODULES.html.sh: Add mkancestors.
18248         * modules/mkancesdirs: New module.
18249         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
18250         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
18251         The chdir-safer and afs files are now orphans; I'll remove them
18252         unless someone speaks up.
18253         Add lib/dirchownmod.c, lib/dirchownmod.h.
18254         (Depends-on): Remove alloca, chown, save-cwd, dirname.
18255         Add lchown, mkancesdirs.
18256         (Maintainer): Add self.
18257
18258 2006-07-15  Karl Berry  <karl@gnu.org>
18259
18260         * gnulib-tool: help message wording/arrangement.
18261
18262 2006-07-14  Simon Josefsson  <jas@extundo.com>
18263
18264         * doc/gnulib.texi (Libtool and Windows): New section.
18265
18266 2006-07-12  Simon Josefsson  <jas@extundo.com>
18267
18268         * modules/gendocs (License): Fix license, approved by Karl.
18269
18270 2006-07-12  Eric Blake  <ebb9@byu.net>
18271
18272         * MODULES.html.sh: Add gendocs.
18273
18274 2006-07-11  Eric Blake  <ebb9@byu.net>
18275
18276         * modules/fdl: New module, to install doc/fdl.texi.
18277         * MODULES.html.sh: Add new section for documentation modules.
18278         * gnulib-tool: Avoid space-tab.
18279         (--doc-base): New option, to manage files from doc.
18280
18281 2006-07-11  Eric Blake  <ebb9@byu.net>
18282
18283         * m4/absolute-header.m4: Fix comments to match recent change.
18284
18285 2006-07-11  Eric Blake  <ebb9@byu.net>
18286
18287         * gnulib-tool: List --doc-base before --tests-base.
18288
18289 2006-07-11  Derek R. Price  <derek@ximbiot.com>
18290
18291         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
18292
18293 2006-07-11  Bruno Haible  <bruno@clisp.org>
18294
18295         * README: Mention where to put documentation.
18296
18297 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18298
18299         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
18300
18301 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
18302
18303         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
18304         to stdint.m4.
18305
18306 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
18307
18308         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
18309         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
18310         "no/such/file/stdint.h" when there is no such file, so that
18311         the resulting C code can be parsed by dodgy compilers.
18312         Problems reported by Bob Proulx.
18313
18314 2006-07-10  Derek R. Price  <derek@ximbiot.com>
18315
18316         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
18317         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
18318         macros into the GNU _D_EXACT_NAMLEN.
18319         * lib/savedir.c:  Likewise.
18320         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
18321
18322 2006-07-10  Derek R. Price  <derek@ximbiot.com>
18323         and Paul Eggert  <eggert@cs.ucla.edu>
18324
18325         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
18326         * m4/savedir.m4:
18327         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
18328         macros into the GNU _D_EXACT_NAMLEN.
18329
18330 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
18331
18332         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
18333         around the absolute name, to work around a problem with the HP-UX
18334         11.23 native C compiler, reported by Bob Proulx.
18335
18336 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
18337
18338         * doc/maintain.texi, make-stds.texi: Sync from
18339         <http://savannah.gnu.org/projects/gnustandards>.
18340
18341 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
18342
18343         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
18344
18345 2006-07-09  Jim Meyering  <jim@meyering.net>
18346
18347         * m4/glob.m4: Remove a doubled word in a comment.
18348
18349 2006-07-09  Jim Meyering  <jim@meyering.net>
18350
18351         * lib/argp-pv.c: Remove a doubled word in a comment.
18352         * lib/check-version.c (check_version): Likewise.
18353         * lib/javacomp.c (compile_java_class): Likewise.
18354
18355 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
18356
18357         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
18358         for the benefit of people using Autoconf 2.60.  If you want to
18359         support older Autoconf versions you can copy m4/onceonly_2_57.m4
18360         (or m4/onceonly.m4, if pre-2.57) manually.
18361
18362 2006-07-08  Jim Meyering  <jim@meyering.net>
18363
18364         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
18365         comment.
18366         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
18367         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
18368         comment.
18369
18370 2006-07-08  Jim Meyering  <jim@meyering.net>
18371
18372         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
18373
18374 2006-07-07  Simon Josefsson  <jas@extundo.com>
18375
18376         * tests/test-crc.c: Change expected crc value, the test vector
18377         were probably computed using the old broken crc.c?
18378
18379 2006-07-06  Simon Josefsson  <jas@extundo.com>
18380
18381         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
18382         now the canonical place for the M4 file).
18383
18384         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
18385         from the sys_socket dependency now.
18386
18387         * modules/inet_pton (Files): Ditto.
18388
18389         * modules/inet_ntop (Files): Ditto.
18390
18391 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
18392
18393         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
18394         not gl_PREREQ_GETUSERSHELL.
18395
18396 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18397
18398         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
18399         with only one argument, for Autoconf 2.60.
18400         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
18401         expand to nothing, so add a shell command to avoid syntax error.
18402         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
18403
18404 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18405
18406         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
18407
18408 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18409
18410         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
18411         no longer needed.  Check for isblank decl.
18412         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
18413         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
18414         of existence.
18415
18416 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18417
18418         * lib/getloadavg.c: Use __VMS, not VMS.
18419         * lib/getopt.c: Likewise.
18420         * lib/getpagesize.h: Likewise.
18421         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
18422         and probably does not work.
18423
18424 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18425
18426         * lib/.cppi-disable: Add wcwidth.
18427         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
18428         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
18429         (ISGRAPH): Remove.  All uses changed to isgraph.
18430         (FOLD) [!defined _LIBC]: Remove special case.
18431         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
18432         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
18433         HAVE_ISBLANK.
18434         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
18435         case.
18436
18437 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
18438
18439         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
18440         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
18441         brackets.  Other minor changes to suppress some compiler
18442         warnings.
18443
18444 2006-07-06  Derek R. Price  <derek@ximbiot.com>
18445         and Paul Eggert  <eggert@cs.ucla.edu>
18446
18447         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
18448         of invoking obsolescent AC_HEADER_DIRENT macro.
18449         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18450         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
18451         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18452         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
18453         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
18454         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
18455         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
18456         * m4/readdir.m4: Remove; no longer needed.
18457
18458 2006-07-06  Derek R. Price  <derek@ximbiot.com>
18459         and Paul Eggert  <eggert@cs.ucla.edu>
18460
18461         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
18462         Don't worry about this obsolete case any more.
18463         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
18464         directories.
18465         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
18466         worry about this obsolete case any more.
18467         * lib/fts.c: Likewise.
18468         * lib/getcwd.c: Likewise.
18469         * lib/glob.h: Likewise.
18470         * lib/savedir.c: Likewise.
18471
18472 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
18473
18474         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
18475         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
18476         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
18477         needed.
18478         All uses removed.
18479         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
18480         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
18481         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
18482         needed.
18483         * m4/getdate.m4 (gl_GETDATE): Likewise.
18484         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
18485         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
18486         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18487         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
18488         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
18489         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
18490         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
18491         needed.
18492
18493 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
18494
18495         * lib/memcasecmp.c: Include <limits.h>.
18496         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
18497         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
18498         Don't assume isdigit succeeds only on '0' through '9'.
18499
18500 2006-07-05  Eric Blake  <ebb9@byu.net>
18501
18502         * modules/getaddrinfo (Depends-on): Add snprintf.
18503
18504 2006-07-05  Eric Blake  <ebb9@byu.net>
18505
18506         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
18507         to avoid 'header present but could not be compiled' on cygwin.
18508
18509 2006-07-05  Eric Blake  <ebb9@byu.net>
18510
18511         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
18512         missing from netdb.h.
18513         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
18514
18515 2006-07-05  Derek R. Price  <derek@ximbiot.com>
18516
18517         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
18518         no longer needed.
18519         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
18520         * m4/getdate.m4 (gl_GETDATE): Likewise.
18521         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
18522         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
18523         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18524         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
18525         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
18526
18527 2006-07-05  Derek R. Price  <derek@ximbiot.com>
18528
18529         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
18530         All uses of is_space replaced by isspace.
18531         * lib/exit.h: Don't talk about STDC_HEADERS.
18532         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
18533         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
18534         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
18535         replaced by isprint etc.
18536         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
18537         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
18538         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
18539         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
18540         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
18541         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
18542
18543 2006-07-05  Bruno Haible  <bruno@clisp.org>
18544
18545         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
18546         the function exists, before testing against AIX.
18547         Reported by Martin Lambers <marlam@marlam.de>.
18548
18549 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
18550
18551         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
18552         From Mark D. Baushke.
18553
18554 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
18555
18556         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
18557         to the absolute name, not just one, to bypass Sun C 5.8's
18558         "warning: #include of /usr/include/... may be non-portable".
18559
18560 2006-07-04  Eric Blake  <ebb9@byu.net>
18561
18562         * modules/dirname-tests: New test module.
18563         * tests/test-dirname.c: New file, replacing dirname.c
18564         TEST_DIRNAME section that was recently deleted.
18565
18566 2006-07-04  Bruno Haible  <bruno@clisp.org>
18567
18568         Assume ANSI C header files and <ctype.h> functions.
18569         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
18570         (mbsnwidth): Use isprint, iscntrl instead.
18571
18572 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
18573
18574         Merge from coreutils.
18575         * MODULES.html.sh: Add xstrtold.
18576         * modules/xstrtold: New file.
18577         * modules/cycle-check (Files): Add lib/same-inode.h.
18578         * modules/dirname (Files): Add m4/double-slash-root.m4.
18579         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
18580         * modules/mkdir-p (Files): Add lib/same-inode.h.
18581         * modules/same (Files): Add lib/same-inode.h.
18582
18583 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
18584
18585         * m4/absolute-header.m4: Renamed from full-header-path.m4.
18586         This is to keep the terminology clean; POSIX talks about
18587         "absolute pathnames", not "full pathnames", but the GNU
18588         Coding Standards say to use "path" for something else;
18589         so use "absolute" to keep both sides happy.
18590         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
18591         Set gl_absolute_header, not gl_full_header_path.
18592         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
18593         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
18594         All uses changed.
18595
18596         Merge from coreutils.
18597
18598         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
18599
18600         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
18601         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
18602         want to require the building of c-strtod.o.
18603         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
18604         needs -lm directly.
18605         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
18606
18607         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
18608
18609         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
18610         --as-needed option if available.  Problem reported by Albert Chin in
18611         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
18612         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
18613         cc merely issues a bunch of annoying warnings for --as-needed
18614         (this problem was reported by Bob Proulx).  Also, try linking with
18615         -lm to detect a bug in binutils 2.16 (this problem was reported
18616         by Ralf Wildenhues).
18617
18618         2006-06-18  Jim Meyering  <jim@meyering.net>
18619
18620         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
18621         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
18622         macro.
18623         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
18624         also check for glibc-2.4's abort-inducing bug.
18625
18626         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
18627         Low-probability clean-up should be to use rmdir to get rid of
18628         the just-created directory, not unlink.
18629
18630         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
18631         configure fail, and request a bug report to inform us about it.
18632         Add a comment that, barring reports to the contrary, in 2007 we'll
18633         assume ftruncate is universally available.
18634
18635         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
18636
18637         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
18638
18639         2006-03-12  Jim Meyering  <jim@meyering.net>
18640
18641         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
18642         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
18643         * m4/same.m4 (gl_SAME): Likewise.
18644         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
18645
18646         2006-03-11  Eric Blake  <ebb9@byu.net>
18647
18648         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
18649         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
18650         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
18651         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
18652
18653 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
18654
18655         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
18656         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
18657         reported by Mark D. Baushke, one in
18658         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
18659
18660         Merge from coreutils.
18661
18662         * lib/.cppi-disable: Add stdint_.h.
18663         * lib/.cvsignore: Add stdint.h.
18664
18665         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
18666
18667         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
18668         both double and long double versions.
18669         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
18670         * lib/xstrtold.c: New file.
18671         * lib/xstrtod.h (xstrtold): New decl.
18672
18673         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
18674
18675         * lib/filemode.c (setst): Remove.
18676         (strmode): Rewrite to avoid setst.  This makes the code shorter,
18677         (arguably) clearer, and the generated code is a bit smaller on my
18678         Debian GNU/Linux stable x86 host.
18679
18680         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
18681
18682         * lib/filemode.c: Include "filemode.h" first, to test the interface.
18683         Assume that filemode.h includes sys/types.h and sys/stat.h.
18684         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
18685         (ftypelet): Reorder to put common cases first, for efficiency.
18686         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
18687         to do 'M'.
18688         (strmode): Renamed from mode_string, and now stores 12 bytes instead
18689         of 10, for compatibility with FreeBSD.  All callers changed.
18690         (filemodestring): Now stores 12 bytes instead of 10, and sets file
18691         types that can't be deduced solely from st_mode.  First arg is now a
18692         const pointer.
18693         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
18694         (strmode): Renamed from mode_string.
18695         (filemodestring): New decl.
18696         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
18697         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
18698         needed.
18699         (S_ISPORT, S_ISWHT): New macros, if not already defined.
18700
18701         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
18702
18703         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
18704         fsusage.h now does that.  Include fsusage.h first, to test interface.
18705         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
18706         at most one method (the old code could have generated decls that
18707         didn't conform to C89, not that this was ever exercised).
18708         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
18709
18710         2006-03-19  Jim Meyering  <jim@meyering.net>
18711
18712         Work even in a chroot where d_ino values for entries in "/"
18713         don't match the stat.st_ino values for the same names.
18714         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
18715         number, iterate through all entries again, using lstat instead.
18716         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
18717         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
18718
18719         * lib/getcwd.c (__getcwd): Clarify a comment.
18720         Use memcpy in place of a call to strcpy.
18721
18722         2006-03-12  Jim Meyering  <jim@meyering.net>
18723
18724         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
18725         matches that of the current directory (which we're about to chdir ".."
18726         out of), then save the dev-ino of the parent, instead.
18727
18728         * lib/same-inode.h (SAME_INODE): New file/macro.
18729         * lib/chdir-safer.c (SAME_INODE): Remove definition.
18730         Include "same-inode.h", instead.
18731         * lib/same.c: Likewise.
18732         * lib/cycle-check.h: Include "same-inode.h".
18733         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
18734         * lib/cycle-check.c (SAME_INODE): Remove definition.
18735         * lib/root-dev-ino.h: Include "same-inode.h".
18736
18737         2006-03-11  Eric Blake  <ebb9@byu.net>
18738
18739         * lib/same.c (same_name): s/base_name/last_component/
18740         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
18741         * lib/filenamecat.c (file_name_concat): Likewise.
18742
18743         2006-03-11  Eric Blake  <ebb9@byu.net>,
18744                     Paul Eggert  <eggert@cs.ucla.edu>
18745
18746         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
18747         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
18748         drive prefix.
18749         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
18750         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
18751         (last_component): New method.
18752         * lib/dirname.c (dir_len): Determine when drive letters need a
18753         subsequent slash.  Preserve // when it is special.
18754         (dir_name): Don't append dot when drive letter is absolute.
18755         [TEST_DIRNAME]: Move into a full-blown gnulib test.
18756         * lib/basename.c (base_name): New semantics - malloc the result.
18757         Preserve // when it is special.  Preserve relative files that look
18758         like drive letters.
18759         (base_len): Preserve // when it is special.
18760         (last_component): New method, similar to old base_name semantics.
18761         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
18762         base_name.  Strip redundant slashes from ///.
18763
18764 2006-07-03  Jim Meyering  <jim@meyering.net>
18765
18766         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
18767         macro is used before the first cycle_check call.
18768
18769 2006-07-03  Eric Blake  <ebb9@byu.net>
18770
18771         * modules/dirname (Depends-on): Add xstrndup.
18772
18773 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
18774
18775         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
18776         test cases, so that config.log is a bit easier to follow.
18777
18778 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
18779
18780         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
18781         both are 64 bits, since this seems to be the tradition, and this
18782         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
18783         we ever run into a host that prefers long long to long in this
18784         case, we'll need another configure-time test.  Problem reported by
18785         Jim Meyering.
18786
18787 2006-07-02  Eric Blake  <ebb9@byu.net>
18788
18789         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
18790
18791 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
18792
18793         * modules/inttypes (Depends-on): No longer depends on stdint.
18794         * modules/stdint (Description): Say more about assumptions.
18795         Say that the fast types might differ.  Say macros are used.
18796         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
18797         (Makefile.am): Revise list of substituted symbols to match
18798         new stdint.m4.
18799         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
18800         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
18801         * tests/test-stdint.c (verify_same_types)
18802         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
18803         the code conforms to C99/C89.
18804         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
18805         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
18806
18807 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
18808
18809         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
18810         but fix a bug, by requiring at least 64 bits.
18811         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
18812         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
18813         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
18814         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
18815
18816         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
18817         changes.  Make 2.59 a prerequisite.  Check and substitute for
18818         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
18819         inttypes.h.  Do not use special include files; just use the
18820         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
18821         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
18822         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
18823         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
18824         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
18825         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
18826         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
18827         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
18828         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
18829         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
18830         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
18831         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
18832         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
18833         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
18834         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
18835         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
18836         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
18837         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
18838         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
18839         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
18840         WINT_MAX.  Check for C99 conformance more strictly, by detecting
18841         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
18842         not check for things that C99 does not require, e.g., int8_t.  If
18843         a test isn't needed unless <stdint.h> isn't working, and is
18844         unlikely to be needed for any other reason, then don't do it
18845         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
18846         size_t, since we assume C89 freestanding at least.  Do not check
18847         for sig_atomic_t, wchar_t, or wint_t, since the code now does
18848         the right thing even if the types are not defined.  Instead use:
18849         (gl_STDINT_TYPE_PROPERTIES): New macro.
18850         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
18851         testing whether <sys/types.h> clashes, as Autoconf does this for
18852         us now.  All uses removed.
18853         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
18854         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
18855         (gl_CHECK_TYPE_SAME):
18856         Remove; no longer needed.
18857         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
18858         exists, since we'll return 0 anyway in that case.
18859         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
18860
18861 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
18862
18863         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
18864         possible collision with system files.
18865         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
18866         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
18867         WCHAR_MIN and WCHAR_MAX in this case.
18868         (<stddef.h>): Do not include; no longer needed.
18869         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
18870         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
18871         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
18872         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
18873         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
18874         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
18875         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
18876         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
18877         !defined(__c99))]: Include in this case too, since it's harmless
18878         now.
18879         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
18880         dangerous to do so.
18881         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
18882         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
18883         (_STDINT_MIN, _STDINT_MAX): New macros.
18884         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
18885         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
18886         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
18887         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
18888         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
18889         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
18890         macros, not typedefs; this simplifies things quite a bit.
18891         Use long int for all types narrower than int64_t.
18892         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
18893         Define in terms of long long int or int64_t or long int,
18894         not int64_t or int32_t.  This saves some compile-time testing.
18895         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
18896         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
18897         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
18898         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
18899         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
18900         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
18901         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
18902         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
18903         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
18904         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
18905         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
18906         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
18907         undef any previous version and define our own version, for
18908         simplicity and consistency with the new macros for types.
18909         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
18910         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
18911         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
18912         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
18913         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
18914         @WINT_T_SUFFIX@ to keep things simple here.
18915         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
18916         Simplify by assuming typical 8/16/32/64 host, since we're
18917         already doing that elsewhere anyway.
18918         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
18919         and assume long long int is 64 bits if available.  This
18920         speeds up 'configure'.
18921
18922 2006-07-01  Eric Blake  <ebb9@byu.net>
18923
18924         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
18925         Reported by Andreas Buening.
18926
18927 2006-07-01  Eric Blake  <ebb9@byu.net>
18928
18929         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
18930
18931 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
18932
18933         * lib/getaddrinfo.c: fixed typo
18934
18935 2006-06-29  Jim Meyering  <jim@meyering.net>
18936
18937         * modules/strftime (Maintainer): Add my name, since with the
18938         FPRINTFTIME changes strftime.c has forked from glibc.
18939
18940 2006-06-29  Eric Blake  <ebb9@byu.net>
18941
18942         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
18943
18944 2006-06-29  Eric Blake  <ebb9@byu.net>
18945
18946         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
18947
18948 2006-06-29  Eric Blake  <ebb9@byu.net>
18949
18950         * lib/stat_.h: New file.
18951
18952 2006-06-29  Eric Blake  <ebb9@byu.net>
18953
18954         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
18955         unused static function.
18956
18957 2006-06-29  Eric Blake  <ebb9@byu.net>
18958
18959         * doc/functions.texi (Function Portability): Document missing lstat
18960         on mingw.
18961
18962 2006-06-29  Eric Blake  <ebb9@byu.net>
18963
18964         * MODULES.html.sh: Add sys_stat.
18965         * modules/sys_stat: New module.
18966         * modules/mkstemp (Depends-on): Add sys_stat.
18967
18968 2006-06-29  Derek R. Price  <derek@ximbiot.com>
18969
18970         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
18971
18972 2006-06-29  Derek R. Price  <derek@ximbiot.com>
18973
18974         * m4/c-bs-a.m4: Removed.
18975
18976 2006-06-29  Derek R. Price  <derek@ximbiot.com>
18977
18978         * lib/strftime.c: Assume strftime() exists.
18979
18980 2006-06-29  Derek Price  <derek@ximbiot.com>
18981
18982         * modules/c-bs-a: Removed - \a is C89.
18983         * MODULES.html.sh: Remove c-bs-a.
18984
18985 2006-06-29  Bruno Haible  <bruno@clisp.org>
18986
18987         * modules/wcwidth (License): Change to LGPL.
18988
18989 2006-06-28  Simon Josefsson  <jas@extundo.com>
18990
18991         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
18992         on _WIN32.
18993
18994         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
18995         getnameinfo.
18996
18997 2006-06-28  Simon Josefsson  <jas@extundo.com>
18998
18999         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
19000
19001 2006-06-28  Simon Josefsson  <jas@extundo.com>
19002
19003         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
19004         functions there.  It will succeed on Windows XP, but on Windows
19005         2000 and (presumably) earlier, it will fail, and use the internal
19006         re-implementation.
19007         (use_win32_p): New function.
19008         (getaddrinfo): Use strtoul on servname, to support numeric ports.
19009         Support AI_NUMERICSERV to disable getservbyname.
19010         (getnameinfo): New function, only supports
19011         NI_NUMERICHOST|NI_NUMERICSERV for now.
19012
19013         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
19014         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
19015         getnameinfo.
19016
19017 2006-06-28  Eric Blake  <ebb9@byu.net>
19018
19019         * modules/wcwidth: New file.
19020         * modules/mbchar (Depends-on): Add wcwidth.
19021         * modules/mbswidth (Depends-on): Add wcwidth.
19022         * MODULES.html.sh: Add wcwidth.
19023
19024 2006-06-28  Eric Blake  <ebb9@byu.net>
19025
19026         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
19027         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
19028
19029 2006-06-28  Eric Blake  <ebb9@byu.net>
19030
19031         * lib/xvasprintf.h: Fix comments.
19032
19033 2006-06-28  Eric Blake  <ebb9@byu.net>
19034
19035         * lib/mbchar.h (wcwidth): Include wcwidth.h.
19036         * lib/mbswidth.c (wcwidth): Move from here...
19037         * lib/wcwidth.h: ...to this new file.
19038
19039 2006-06-28  Derek R. Price  <derek@ximbiot.com>
19040
19041         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
19042
19043         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
19044         it's obsolete.
19045         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
19046
19047 2006-06-28  Derek R. Price  <derek@ximbiot.com>
19048
19049         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
19050         Autoconf 2.60 says this stuff was obsolete.
19051
19052 2006-06-28  Bruno Haible  <bruno@clisp.org>
19053
19054         * modules/wcwidth (Files): Add m4/wchar_t.m4.
19055
19056 2006-06-28  Bruno Haible  <bruno@clisp.org>
19057
19058         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
19059         gt_TYPE_WCHAR_T.
19060
19061 2006-06-28  Bruno Haible  <bruno@clisp.org>
19062
19063         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
19064         declaration for wcwidth.
19065         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
19066
19067 2006-06-28  Bruno Haible  <bruno@clisp.org>
19068
19069         * lib/mkdtemp.c [MINGW]: Include <io.h>.
19070         (mkdir): Define using _mkdir.
19071
19072 2006-06-28  Bruno Haible  <bruno@clisp.org>
19073
19074         * lib/getaddrinfo.h: Fix POSIX URL.
19075         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
19076         _WIN32.
19077         (use_win32_p): Make static.
19078         (getaddrinfo): Reject service name if it is empty or does not consist
19079         solely of decimal digits, or if its value is > 65535.
19080         (getnameinfo): Remove useless casts.
19081
19082 2006-06-27  Simon Josefsson  <jas@extundo.com>
19083
19084         * modules/sys_select: New file, suggested by Bruno Haible, Paul
19085         Eggert and Martin Lambers.
19086
19087 2006-06-27  Simon Josefsson  <jas@extundo.com>
19088
19089         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
19090         Eggert and Martin Lambers.
19091
19092 2006-06-27  Bruno Haible  <bruno@clisp.org>
19093
19094         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
19095         result to 0, not to empty.
19096         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
19097
19098 2006-06-27  Bruno Haible  <bruno@clisp.org>
19099
19100         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
19101
19102 2006-06-26  Simon Josefsson  <jas@extundo.com>
19103
19104         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
19105         present.
19106
19107 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
19108
19109         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
19110         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
19111         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
19112
19113 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
19114
19115         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
19116
19117 2006-06-26  Bruno Haible  <bruno@clisp.org>
19118
19119         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
19120
19121 2006-06-26  Bruno Haible  <bruno@clisp.org>
19122
19123         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
19124
19125 2006-06-26  Bruno Haible  <bruno@clisp.org>
19126
19127         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
19128         SGI C compiler in pre-C99 mode.
19129         Suggested by Mark D. Baushke and Larry Jones.
19130
19131 2006-06-26  Bruno Haible  <bruno@clisp.org>
19132
19133         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
19134         WCHAR_MAX.
19135         Reported by Mark D. Baushke and Larry Jones.
19136
19137 2006-06-26  Bruno Haible  <bruno@clisp.org>
19138
19139         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
19140         in pre-C99 mode.
19141         Suggested by Mark D. Baushke and Larry Jones.
19142
19143 2006-06-23  Simon Josefsson  <jas@extundo.com>
19144             Bruno Haible  <bruno@clisp.org>
19145
19146         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
19147         Emit mostlyclean-local rule.
19148         (func_emit_tests_Makefile_am): Likewise.
19149         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
19150
19151 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
19152
19153         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
19154
19155 2006-06-23  Bruno Haible  <bruno@clisp.org>
19156
19157         * tests/test-stdint.c: Update to match ISO C 99 Technical
19158         Corrigendum 1.
19159
19160 2006-06-23  Bruno Haible  <bruno@clisp.org>
19161
19162         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
19163
19164 2006-06-23  Bruno Haible  <bruno@clisp.org>
19165
19166         * lib/stdint_.h: Treat IRIX like OpenBSD.
19167
19168 2006-06-23  Bruno Haible  <bruno@clisp.org>
19169
19170         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
19171         ISO C 99 Technical Corrigendum 1.
19172
19173 2006-06-22  Simon Josefsson  <jas@extundo.com>
19174
19175         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
19176         MinGW.
19177
19178 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
19179
19180         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
19181         needed.  Some compiler complained about some of them.  Problem reported
19182         by Larry Jones in
19183         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
19184
19185 2006-06-21  Simon Josefsson  <jas@extundo.com>
19186
19187         * tests/test-getaddrinfo.c: New file.
19188
19189         * modules/getaddrinfo-tests: New file.
19190
19191         * MODULES.html.sh: Add inet_pton.
19192
19193         * modules/inet_pton: New file.
19194
19195 2006-06-21  Simon Josefsson  <jas@extundo.com>
19196
19197         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
19198         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
19199         of using the (limited) gnulib implementation on Windows XP.
19200
19201         * m4/inet_pton.m4: New file.
19202
19203 2006-06-21  Simon Josefsson  <jas@extundo.com>
19204
19205         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
19206         variable.
19207
19208         * lib/socket_.h: Don't define WINVER.
19209
19210         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
19211         slightly modified to work in gnulib.
19212
19213 2006-06-21  Simon Josefsson  <jas@extundo.com>
19214
19215         * doc/gnulib.texi (Windows sockets): Add.
19216
19217 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
19218
19219         * lib/read-file.c (fread_file): Start with buffer allocation of
19220         0 bytes rather than 1 byte; this simplifies the code.
19221         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
19222         code to free buffer and save/restore errno.
19223         (internal_read_file): Remove unused local.
19224
19225 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
19226
19227         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
19228         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
19229         Problem reported by Denis Excoffier in
19230         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
19231
19232 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19233
19234         * modules/sys_socket, modules/socklen: Include sys/types since
19235         FreeBSD 4.x's sys/socket.h needs it.
19236
19237 2006-06-19  Simon Josefsson  <jas@extundo.com>
19238
19239         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
19240
19241 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
19242
19243         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
19244
19245 2006-06-19  Bruno Haible  <bruno@clisp.org>
19246
19247         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
19248         and FULL_PATH_INTTYPES_H in angle brackets.
19249         Reported by Mark D. Baushke <mdb@gnu.org>.
19250
19251 2006-06-17  Eric Blake  <ebb9@byu.net>
19252
19253         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
19254         errno.
19255
19256 2006-06-17  Bruno Haible  <bruno@clisp.org>
19257
19258         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
19259         <sys/inttypes.h>.
19260
19261 2006-06-17  Bruno Haible  <bruno@clisp.org>
19262
19263         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
19264         whether errno is declared. Assume <errno.h> declares errno.
19265
19266 2006-06-17  Bruno Haible  <bruno@clisp.org>
19267
19268         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
19269
19270 2006-06-17  Bruno Haible  <bruno@clisp.org>
19271
19272         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
19273         problem on Solaris 2.5.1.
19274
19275 2006-06-16  Eric Blake  <ebb9@byu.net>
19276
19277         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
19278         * lib/unicodeio.c [!defined errno]: Likewise.
19279         * lib/strtol.c [!defined errno]: Likewise.
19280         * lib/strtod.c [!defined errno]: Likewise.
19281
19282 2006-06-15  Eric Blake  <ebb9@byu.net>
19283
19284         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
19285
19286 2006-06-15  Eric Blake  <ebb9@byu.net>
19287
19288         * config/srclist.txt (ssize_t.m4): Lose sync.
19289
19290 2006-06-15  Bruno Haible  <bruno@clisp.org>
19291
19292         * modules/stdint (Files): Include m4/full-header-path.m4,
19293         m4/size_max.m4, m4/wchar_t.m4.
19294         (Makefile.am): Many more substitutions.
19295         * modules/stdint-tests: New file.
19296         * tests/test-stdint.c: New file.
19297
19298 2006-06-15  Bruno Haible  <bruno@clisp.org>
19299
19300         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
19301         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
19302         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
19303         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
19304         gl_CHECK_TYPE_SAME): New macros.
19305
19306 2006-06-15  Bruno Haible  <bruno@clisp.org>
19307
19308         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
19309
19310 2006-06-15  Bruno Haible  <bruno@clisp.org>
19311
19312         * lib/stdint_.h: Rewritten to be fully auto-configured.
19313         Fixes bug on HP-UX/IA64.
19314
19315 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
19316
19317         * lib/getdate.y (__attribute__): Don't define if already defined.
19318         Problem reported by Larry Jones.
19319         * lib/utimens.c (__attribute__): Likewise.
19320
19321 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
19322
19323         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
19324         reported by Andreas Schwab.
19325
19326 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19327             Bruno Haible  <bruno@clisp.org>
19328
19329         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
19330         check for the declaration of strnlen and a run test that exposes the
19331         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
19332         rpl_strndup.
19333
19334 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19335             Bruno Haible  <bruno@clisp.org>
19336
19337         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
19338
19339 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19340
19341         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
19342         compile test, for Tru64 4.0D.
19343
19344 2006-05-28  Karl Berry  <karl@gnu.org>
19345
19346         * config/srclist.txt (printf-args.c): lose sync.
19347
19348 2006-05-26  Martin Lambers  <marlam@marlam.de>
19349
19350         * lib/getpass.c: Updates the test for the native W32 API, and adds
19351         missing includes, thus fixing compilation warnings.
19352
19353 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19354
19355         * lib/exclude.c (exclude_fnmatch): New function.
19356         (excluded_file_name): Call exclude_fnmatch.
19357         * lib/exclude.h (excluded_file_name): New prototype
19358
19359 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
19360
19361         * lib/tempname.c (small_open, large_open): New macros.
19362         (__open, __open64) [!_LIBC]: Remove.
19363         (__gen_tempname): Use small_open and large_open instead of __open
19364         and __open64.  This fixes a portability bug on HP-UX 11.11i
19365         reported by Simon Wing-Tang in
19366         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
19367
19368 2006-05-24  Bruno Haible  <bruno@clisp.org>
19369
19370         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
19371         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
19372         Reported by Thorsten Maerz <torte@netztorte.de> via
19373         Aaron Stone <aaron@serendipity.cx>.
19374
19375 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19376
19377         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
19378         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
19379         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
19380         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
19381         not really conditional on the cache.
19382         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
19383
19384 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19385
19386         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
19387         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
19388         (my_usleep): Don't mishandle maximum value.
19389
19390 2006-05-19  Jim Meyering  <jim@meyering.net>
19391
19392         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
19393
19394 2006-05-17  Bruno Haible  <bruno@clisp.org>
19395
19396         Cygwin portability.
19397         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
19398
19399 2006-05-17  Bruno Haible  <bruno@clisp.org>
19400
19401         * lib/stdint_.h: Fix recognition of Cygwin.
19402
19403 2006-05-15  Bruno Haible  <bruno@clisp.org>
19404
19405         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
19406         on libtool patch by Ralf Wildenhues.
19407
19408 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
19409
19410         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
19411         test for C99 conformance; (bool) 0.5 is an integer constant
19412         expression, but (bool) -0.5 is not.  Problem reported by Fedor
19413         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
19414
19415 2006-05-11  Simon Josefsson  <jas@extundo.com>
19416
19417         * m4/xvasprintf.m4: Fix obvious typo.
19418
19419 2006-05-11  Jim Meyering  <jim@meyering.net>
19420
19421         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
19422         James Lemley.
19423
19424 2006-05-10  Simon Josefsson  <jas@extundo.com>
19425
19426         * lib/md4.c: Typo fix, update copyright years.
19427         (K1, K2): Don't use L because it turn computations into 64-bit on
19428         64-bit platforms.
19429
19430 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
19431
19432         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
19433         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
19434         unwanted sign propagation, e.g., on hosts with 64-bit int.
19435         There still are some problems with reeelly weird theoretical hosts
19436         (e.g., 33-bit int) but it's not worth worrying about now.
19437         * lib/sha1.c (rol): Likewise.
19438         (K1, K2, K3, K4): Remove unnecessary L suffix.
19439
19440 2006-05-10  Bruno Haible  <bruno@clisp.org>
19441
19442         * lib/des.c: Cast to avoid warnings.
19443
19444 2006-05-09  Bruno Haible  <bruno@clisp.org>
19445
19446         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
19447         (Depends-on): Depend also on xsize, stdarg.
19448         (configure.ac): Add gl_XVASPRINTF.
19449
19450 2006-05-09  Bruno Haible  <bruno@clisp.org>
19451
19452         * m4/xvasprintf.m4: New file.
19453
19454 2006-05-09  Bruno Haible  <bruno@clisp.org>
19455
19456         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
19457         (EOVERFLOW): Define fallback value.
19458         (xstrcat): New function.
19459         (xvasprintf): Recognize the special case of a string concatenation.
19460
19461 2006-05-08  Eric Blake  <ebb9@byu.net>
19462
19463         * gnulib-tool (func_version): Base copyright year on CVS date.
19464         (func_emit_copyright_notice): New function.
19465         (func_emit_lib_Makefile_am): Use it.
19466         (func_emit_tests_Makefile_am): Likewise.
19467         (func_import): Likewise.
19468
19469 2006-05-08  Bruno Haible  <bruno@clisp.org>
19470
19471         * modules/stdarg: New file.
19472         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
19473
19474 2006-05-08  Bruno Haible  <bruno@clisp.org>
19475
19476         * m4/stdarg.m4: New file, from GNU gettext.
19477
19478 2006-05-08  Bruno Haible  <bruno@clisp.org>
19479
19480         * config/srclist.txt (build-aux/config.rpath): different from latest
19481         release.
19482
19483 2006-05-08  Bruno Haible  <bruno@clisp.org>
19484
19485         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
19486
19487 2006-05-05  Jim Meyering  <jim@meyering.net>
19488
19489         * m4/warning.m4: New file, derived from bison's file by the same name.
19490
19491 2006-05-03  Bruno Haible  <bruno@clisp.org>
19492
19493         * lib/stdint_.h: Shorter URL.
19494         * lib/inttypes.h: Likewise.
19495
19496 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
19497
19498         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
19499
19500 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
19501
19502         * lib/verify.h: Document the internals better.  Most of this change
19503         was written by Bruno Haible.
19504
19505 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
19506
19507         * doc/verify.texi: New file, partly based on a proposal by
19508         Bruno Haible.
19509
19510 2006-05-02  Bruno Haible  <bruno@clisp.org>
19511
19512         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
19513         test from here...
19514         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
19515
19516 2006-04-29  Bruno Haible  <bruno@clisp.org>
19517
19518         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
19519         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
19520
19521 2006-04-29  Bruno Haible  <bruno@clisp.org>
19522
19523         * gnulib-tool: Make --update option actually work.
19524
19525 2006-04-29  Bruno Haible  <bruno@clisp.org>
19526
19527         * doc/gcd.texi: New file.
19528         * doc/gnulib.texi: Include it.
19529
19530 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
19531
19532         * lib/getdate.y (get_date): When adding relative date, start with the
19533         initial time, not with the result of the first mktime call.
19534
19535 2006-04-25  Bruno Haible  <bruno@clisp.org>
19536
19537         * gnulib-tool (func_import): Output the include directives in three
19538         blocks, sorted separately.
19539         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19540
19541 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
19542
19543         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
19544         to define main with arguments, for C++.  Reported by Eric Blake.
19545         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
19546         Prefer 'int main ()' to 'int main (void)', for C++.
19547         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
19548         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
19549         for 'main', for C99 and C++.
19550
19551 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
19552
19553         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
19554         Don't assume that exit status -1 is valid.
19555         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19556         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
19557         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
19558         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
19559         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
19560         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
19561         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
19562         functions can be used without declaring them, or that you can
19563         exit with status -1.
19564         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
19565
19566 2006-04-24  Karl Berry  <karl@gnu.org>
19567
19568         * config/srclist.txt (longdouble.m4): sync lost.
19569
19570 2006-04-24  Eric Blake  <ebb9@byu.net>
19571
19572         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
19573
19574 2006-04-24  Bruno Haible  <bruno@clisp.org>
19575
19576         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
19577         poll() implementation in AIX.
19578         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19579
19580 2006-04-24  Bruno Haible  <bruno@clisp.org>
19581
19582         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
19583         assigned exactly once.
19584
19585 2006-04-23  Claudio Fontana  <claudio@gnu.org>
19586             Bruno Haible  <bruno@clisp.org>
19587
19588         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
19589         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
19590         for AM_CPPFLAGS.
19591
19592 2006-04-23  Bruno Haible  <bruno@clisp.org>
19593
19594         * modules/copy-file: Depend on unistd.
19595         * modules/execute: Likewise.
19596         * modules/fatal-signal: Likewise.
19597         * modules/findprog: Likewise.
19598         * modules/mkdtemp : Likewise.
19599         * modules/pipe: Likewise.
19600         * modules/wait-process: Likewise.
19601
19602 2006-04-23  Bruno Haible  <bruno@clisp.org>
19603
19604         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
19605         condition was already detected.
19606         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19607
19608 2006-04-23  Bruno Haible  <bruno@clisp.org>
19609
19610         * lib/copy-file.c: Include <unistd.h> unconditionally.
19611         * lib/execute.c: Likewise.
19612         * lib/fatal-signal.c: Likewise.
19613         * lib/findprog.c: Likewise.
19614         * lib/mkdtemp.c: Likewise.
19615         * lib/pipe.h: Likewise.
19616         * lib/pipe.c: Likewise.
19617         * lib/wait-process.h: Likewise.
19618
19619 2006-04-23  Bruno Haible  <bruno@clisp.org>
19620
19621         * gnulib-tool (func_usage): Fix --import description. Document
19622         --update.
19623         (func_import): Create temporary file in a temporary directory, if
19624         --dry-run is specified. Silence errors from 'grep' when there are no
19625         m4 files in $m4dir.
19626         (func_create_testdir): Silence errors from 'grep' when there are no
19627         m4 files in $m4dir.
19628         Reported by Karl Berry <karl@freefriends.org>.
19629
19630 2006-04-20  Bruno Haible  <bruno@clisp.org>
19631
19632         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
19633         one argument, so that the code will be portable to Autoconf 2.60.
19634         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
19635         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
19636         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
19637
19638 2006-04-19  Derek Price  <derek@ximbiot.com>
19639             Eric Blake  <ebb9@byu.net>
19640
19641         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
19642         rather than "/full/path.h".  Update comment to match.  Shorten &
19643         generalize m4_translit call via AS_TR_CPP.
19644
19645 2006-04-19  Derek Price  <derek@ximbiot.com>
19646             Eric Blake  <ebb9@byu.net>
19647
19648         * lib/inttypes.h: Correct grammar in comment.
19649
19650 2006-04-18  Derek Price  <derek@ximbiot.com>
19651             Paul Eggert  <eggert@cs.ucla.edu>
19652
19653         * modules/inttypes: New file.
19654         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
19655
19656 2006-04-18  Derek Price  <derek@ximbiot.com>
19657             Paul Eggert  <eggert@cs.ucla.edu>
19658
19659         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
19660         New files.
19661
19662 2006-04-18  Derek Price  <derek@ximbiot.com>
19663             Paul Eggert  <eggert@cs.ucla.edu>
19664
19665         * lib/inttypes.h: New file.
19666         * lib/strtoimax.c: Assume <inttypes.h>.
19667
19668 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
19669
19670         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
19671         isn't mounted.  Problem reported by Kir Kolyshkin.
19672
19673 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
19674
19675         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
19676         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
19677         Derek R. Price.
19678         * lib/regex.h (RE_DUP_MAX): Update comment to match current
19679         implementation.
19680
19681 2006-04-12  Eric Blake  <ebb9@byu.net>
19682
19683         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
19684         is now done automatically by the corresponding Autoconf macro.
19685
19686 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
19687
19688         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
19689         time_r.h.
19690
19691 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
19692
19693         Merge regex changes from libc, removing some of our
19694         POSIX-conformance changes that were rejected and redoing them in a
19695         less-intrusive way.
19696
19697         * lib/regcomp.c (re_compile_internal, init_dfa):
19698         Length arg is now size_t, not Idx.  All uses changed.
19699         (peek_token): Forward decl now says internal_function.
19700         (__re_error_msgid, __re_error_msgid_idx):
19701         Now static rather than extern with attribute_hidden.
19702         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
19703         For some reason libc prefers K&R style defns for external functions.
19704         (regerror) [!defined _LIBC]: Likewise.
19705         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
19706         (seek_collating_symbol_entry, lookup_collation_sequence_value):
19707         (build_range_exp, build_collating_symbol):
19708         Use K&R-style defn.
19709         (re_compile_fastmap): Use '\0' to memset, not 0.
19710         (utf8_sb_map): Make the calculations more obvious.
19711         (init_dfa, parse_bracket_exp, build_charclass_op):
19712         Call calloc and cast result, as glibc does.
19713         (init_word_char, fetch_token, peek_token, peek_token_bracket):
19714         (build_range_exp, build_collating_symbol):
19715         Now internal functions.
19716
19717         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
19718
19719         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
19720         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
19721         Don't depend on VMS; depend on __VMS instead, for POSIX
19722         namespace cleanness.
19723         (regoff_t): Define to ssize_t, not long int.
19724
19725         Remove the REG_ macros named below.  Instead, make the old names
19726         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
19727         __USE_GNU_REGEX.
19728         (REG_BACKSLASH_ESCAPE_IN_LISTS):
19729         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
19730         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
19731         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
19732         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
19733         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
19734         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
19735         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
19736         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
19737         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
19738         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
19739         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
19740         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
19741         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
19742         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
19743         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
19744         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
19745         (REG_NREGS):
19746         Remove.  All uses replaced by the old RE_* names.
19747         (RE_BACKSLASH_ESCAPE_IN_LISTS):
19748         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
19749         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
19750         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
19751         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
19752         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
19753         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
19754         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
19755         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
19756         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
19757         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
19758         Don't bother having these macros be independent of each others'
19759         values, since they no longer exist in the POSIX name space.
19760
19761         Rename the following member names back to their old names,
19762         unless !__USE_GNU_REGEX.  All uses changed back.
19763         (buffer): Renamed from re_buffer.
19764         (allocated): Renamed from re_allocated.
19765         (used): Renamed from re_used.
19766         (syntax): Renamed from re_syntax.
19767         (fastmap): Renamed from re_fastmap.
19768         (translate): Renamed from re_translate.
19769         (can_be_null): Renamed from re_can_be_null.
19770         (regs_allocated): Renamed from re_regs_allocated.
19771         (fastmap_accurate): Renamed from re_fastmap_accurate.
19772         (no_sub): Renamed from re_no_sub.
19773         (not_bol): Renamed from re_not_bol.
19774         (not_eol): Renamed from re_not_eol.
19775         (newline_anchor): Renamed from re_newline_anchor.
19776         (num_regs): Renamed from rm_num_regs.
19777         (start): Renamed from rm_start.
19778         (end): Renamed from rm_end.
19779
19780         (free_state): Move up a bit.
19781
19782         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
19783         #define to be empty.
19784         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
19785         when that is what is intended.
19786         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
19787         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
19788         (MAX): New macro.
19789         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
19790         All uses changed back to re_malloc, etc.  It's now the caller's
19791         responsibility to check for overflow; all callers changed.
19792         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
19793         (re_x2nrealloc): Remove.
19794         (free_state): Remove decl.
19795
19796         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
19797         (re_set_registers, re_exec):
19798         Use K&R-style defn.
19799
19800         2006-01-31  Roland McGrath  <roland@redhat.com>
19801
19802         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
19803         Reported by Mike Frysinger <vapier@gentoo.org>.
19804
19805         2006-01-15  Andreas Jaeger  <aj@suse.de>
19806
19807         [BZ #1950]
19808         * lib/regex_internal.c (re_string_reconstruct): Adjust for
19809         build_wcs_upper_buffer change.
19810         (build_wcs_upper_buffer): Change return type.
19811
19812         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
19813
19814         * lib/regex_internal.h: Include <stdint.h> if available.
19815
19816         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
19817
19818         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
19819
19820         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
19821
19822         * lib/regcomp.c: Adjust for changed secondary hash function.
19823
19824         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
19825
19826         * lib/regex.h: Pretty printing.
19827         Clean up namespace a bit.
19828
19829         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
19830
19831         * lib/regexec.c (update_cur_sifted_state, check_arrival,
19832         check_arrival_add_next_nodes): Avoid using uninitialized variable.
19833
19834         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
19835                     Ulrich Drepper  <drepper@redhat.com>
19836
19837         [BZ #1302]
19838         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
19839         changed.
19840         (bitset_word_t): Renamed from bitset_word.  All uses changed.
19841
19842         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
19843
19844         [BZ #281]
19845         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
19846         * lib/regcomp.c: Remove unnecessary uses of
19847         unsigned RE_TRANSLATE_TYPE.
19848         * lib/regex_internal.h: Likewise.
19849         * lib/regex_internal.c: Likewise.
19850         * lib/regexec.c: Likewise.
19851         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
19852
19853         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
19854
19855         * lib/regexec.c (find_recover_state): Remove unnecessary
19856         initialization.
19857         (transit_state_bkref): Make DFA a const pointer.
19858         (get_subexp): Likewise.
19859         (check_arrival): Likewise.
19860         (update_cur_sifted_state): Likewise.
19861         (re_search_internal): Likewise.
19862         (prune_impossible_nodes): Likewise.
19863         (acquire_init_state_context): Likewise.
19864         (proceed_next_node): Likewise.
19865         (set_regs): Likewise.
19866         (free_fail_stack_return): Likewise.
19867         (check_arrival_expand_ecl): Mark DFA parameter as const.
19868         (check_arrival_expand_ecl_sub): Likewise.
19869         (check_subexp_limits): Likewise.
19870         (sub_epsilon_src_nodes):  Likewise.
19871         (add_epsilon_src_nodes):  Likewise.
19872         (merge_state_array): Likewise.
19873         (update_regs): Likewise.
19874         (build_trtable): Likewise.
19875         (sift_states_backward): Mark MCTX parameter as const.
19876         (build_sifted_states): Likewise.
19877         (update_cur_sifted_state): Likewise.
19878         (sift_states_mkref): Likewise.
19879         (check_arrival_expand_ecl): Mark eclosure as const.
19880         (check_dst_limits_calc_pos_1): Likewise.
19881         * lib/regex_internal.h (re_match_context_t): Make dfa a const
19882         pointer.
19883
19884         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
19885
19886         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
19887         (transit_state_sb): Likewise.
19888         (transit_state_mb): Likewise.
19889         (sift_states_iter_mb): Likewise.
19890         (check_arrival_add_next_nodes): Likewise.
19891         (check_node_accept_bytes): Change first parameter to pointer-to-const.
19892         [_LIBC] (re_search_2_stub): Use mempcpy.
19893
19894         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
19895         mbrtowc for very simple UTF-8 case.
19896
19897         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
19898         a pointer-to-const.
19899         (re_acquire_state_context): Likewise.
19900         * lib/regex_internal.h: Adjust prototypes.
19901
19902         * lib/regex.c: Prevent using C++ compilers.
19903
19904         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
19905         (re_acquire_state_context): Likewise.
19906
19907 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
19908
19909         * modules/regex (Depends-on): Add ssize_t.
19910
19911 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
19912
19913         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
19914         translation table.
19915
19916 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
19917
19918         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
19919
19920 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
19921             Bruno Haible  <bruno@clisp.org>
19922
19923         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
19924         <sys/types.h> and <inttypes.h>.
19925
19926 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19927
19928         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
19929         `__error_t_defined', so argp.h will not typedef the former.
19930
19931 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
19932
19933         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
19934         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
19935         glibc names.  Even if glibc is changed to conform to POSIX, the
19936         traditional names will be available anyway, since regex depends on
19937         the extensions module.  Also, fix a longstanding typo in the
19938         implementation of Spencer ERE test #75 from grep 2.3.  Problems
19939         reported by Emanuele Giaquinta.  Also, change sense of cached
19940         variable, so that the message makes sense.
19941
19942 2006-03-24  Simon Josefsson  <jas@extundo.com>
19943
19944         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
19945         including some doc fixes.
19946         (base64_encode_alloc): Fix +1 bug on allocation failures.
19947
19948 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19949
19950         * lib/base64.c (base64_encode): Do not read past end of array with
19951         unsanitized input on systems with CHAR_BIT > 8.
19952
19953 2006-03-24  Eric Blake  <ebb9@byu.net>
19954
19955         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
19956
19957 2006-03-22  Karl Berry  <karl@gnu.org>
19958
19959         * config/srclist.txt (*setenv.[ch]): get from coreutils.
19960         * config/srclistvars.sh (COREUTILS): new var.
19961
19962 2006-03-17  Jim Meyering  <jim@meyering.net>
19963
19964         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
19965         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
19966
19967 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
19968
19969         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
19970         no longer needs it.  Instead, check that regoff_t is as least
19971         as wide as ptrdiff_t.
19972
19973         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
19974         so that our regex.h stays compatible with the installed regex.
19975         This is helpful for installers who configure --without-included-regex.
19976         Problem reported by Emanuele Giaquinta.
19977
19978 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
19979
19980         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
19981         Typedef to long int, not to off_, as POSIX will likely change
19982         in that direction.
19983
19984 2006-03-15  Eric Blake  <ebb9@byu.net>
19985
19986         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
19987
19988 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
19989
19990         * lib/argp-help.c (validate_uparams): Fix typo
19991         * lib/argp-parse.c (argp_default_options): Consistently begin help
19992         messages with a lowercase letter.
19993
19994 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
19995
19996         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
19997         overrun buffers and shouldn't be used (much as gets shouldn't be
19998         used).
19999         * lib/time_r.c (asctime_r, ctime_r): Likewise.
20000
20001 2006-03-08  Simon Josefsson  <jas@extundo.com>
20002
20003         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
20004         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20005
20006 2006-03-08  Simon Josefsson  <jas@extundo.com>
20007
20008         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
20009         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20010
20011 2006-03-08  Simon Josefsson  <jas@extundo.com>
20012
20013         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
20014         signal that configure disabled the device.
20015
20016 2006-03-08  Simon Josefsson  <jas@extundo.com>
20017
20018         * build-aux/maint.mk: Fix refresh-po, to handle no translated
20019         languages.
20020
20021 2006-03-07  Simon Josefsson  <jas@extundo.com>
20022
20023         * modules/getopt (Depends-on): Add unistd.
20024
20025         * modules/unistd: New file.
20026
20027 2006-03-07  Simon Josefsson  <jas@extundo.com>
20028
20029         * modules/gc-random: New file.
20030
20031 2006-03-07  Simon Josefsson  <jas@extundo.com>
20032
20033         * m4/unistd_h.m4: New file.
20034
20035 2006-03-07  Simon Josefsson  <jas@extundo.com>
20036
20037         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
20038         test to be side-effect free by storing the result in the cache
20039         variable gl_cv_lib_readline, and moving the assignment of
20040         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
20041         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20042
20043 2006-03-07  Simon Josefsson  <jas@extundo.com>
20044
20045         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
20046         error on missing devices (the functions will return an error).
20047
20048         * m4/gc.m4: Move random stuff to gc-random.m4
20049
20050 2006-03-07  Simon Josefsson  <jas@extundo.com>
20051
20052         * lib/unistd_.h: New file.
20053
20054 2006-03-07  Simon Josefsson  <jas@extundo.com>
20055
20056         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
20057
20058 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
20059
20060         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
20061         Problem reported by Juan Manuel Guerrero.
20062
20063 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
20064
20065         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
20066         the unistd module.
20067         * lib/getlogin_r.c: Likewise.
20068         * lib/getlogin_r.h: Likewise.
20069         * lib/glob.c: Likewise.
20070         * lib/pagealign_alloc.c: Likewise.
20071         * lib/unistd_.h: Remove; no longer needed.
20072
20073 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
20074
20075         * MODULES.html.sh (Support for systems lacking POSIX:2001):
20076         Add unistd.
20077         * modules/c-stack (Depends-on): Add unistd.
20078         * modules/getlogin_r: Likewise.
20079         * modules/glob: Likewise.
20080         * modules/pagealign_alloc: Likewise.
20081         * modules/unistd (Files): Remove lib/unistd_.h.
20082         (EXTRA_DIST): Remove.
20083         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
20084         need unistd_.h.
20085         (MOSTLYCLEANFILES): Remove unistd.h-t.
20086
20087 2006-03-03  Simon Josefsson  <jas@extundo.com>
20088
20089         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
20090
20091 2006-03-03  Simon Josefsson  <jas@extundo.com>
20092
20093         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
20094         libidn and bison.
20095
20096 2006-03-03  Simon Josefsson  <jas@extundo.com>
20097
20098         * build-aux/maint.mk: Add indent target.
20099
20100 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
20101
20102         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
20103         our replacement poll.h in any case, to avoid a differing
20104         declaration from a system header.  Seen on AIX.
20105
20106 2006-03-01  Simon Josefsson  <jas@extundo.com>
20107
20108         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
20109         <kasal@ucw.cz>.
20110
20111 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
20112
20113         * modules/gettime (Depends-on): Add extensions module.
20114         * modules/nanosleep (Depends-on): Likewise.
20115         * modules/settime (Depends-on): Likewise.
20116
20117 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
20118
20119         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
20120         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
20121         pedantically.
20122         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20123         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
20124
20125         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
20126         not "==".  Reported by Ralf Wildenhues.
20127
20128 2006-03-01  Karl Berry  <karl@gnu.org>
20129
20130         * doc/Copyright/request-*: new files, synced from gnuorg.
20131
20132 2006-03-01  Karl Berry  <karl@gnu.org>
20133
20134         * config/srclist.txt (Copyright/*): new entries.
20135
20136 2006-02-28  Simon Josefsson  <jas@extundo.com>
20137
20138         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
20139
20140 2006-02-27  Simon Josefsson  <jas@extundo.com>
20141
20142         * lib/base64.h: Indent #define's.  From Jim Meyering
20143         <jim@meyering.net>.
20144
20145 2006-02-27  Jim Meyering  <jim@meyering.net>
20146
20147         Revert the change of 2006-02-24, so these files can continue
20148         to be sync'd from gettext.
20149         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
20150         of `config.h'.
20151
20152 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
20153
20154         * modules/intprops: New file.
20155         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
20156         Add intprops.
20157         * modules/getloadavg (Files): Remove lib/intprops.h.
20158         (Depends-on): Add intprops.
20159         * modules/human: Likewise.
20160         * modules/inttostr: Likewise.
20161         * modules/openat: Likewise.
20162         * modules/sig2str: Likewise.
20163         * modules/userspec: Likewise.
20164         * modules/utimecmp: Likewise.
20165         * modules/xnanosleep: Likewise.
20166         * modules/xstrtol: Likewise.
20167
20168 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
20169
20170         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
20171         * modules/lock-tests (TESTS): Use $(EXEEXT).
20172         * modules/tls-tests: Likewise.
20173         * modules/argp-tests: Likewise.
20174         (check_PROGRAMS): New var, replacing...
20175         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
20176
20177 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20178
20179         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
20180         `config.h'.
20181
20182 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
20183
20184         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
20185
20186 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20187
20188         Sync from coreutils.
20189         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
20190         gl_CHDIR_SAFER.
20191
20192 2006-02-22  Jim Meyering  <jim@meyering.net>
20193
20194         Sync from coreutils.
20195         * m4/chdir-safer.m4: New file.
20196
20197 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
20198
20199         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
20200         AT_FDCWD exceeds INT_MAX.
20201         * lib/openat.h (AT_FDCWD): Likewise.
20202
20203 2006-02-17  Eric Blake  <address@hidden>
20204
20205         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
20206
20207 2006-02-16  Simon Josefsson  <jas@extundo.com>
20208
20209         * modules/getaddrinfo (Depends-on): Add sys_socket.
20210
20211 2006-02-15  Simon Josefsson  <jas@extundo.com>
20212
20213         * build-aux/maint.mk: Add dsyntax-check rule.
20214
20215 2006-02-15  Eric Blake  <ebb9@byu.net>
20216
20217         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
20218         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
20219         'present but cannot compile' warnings on cygwin.
20220         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
20221         use ws2tcpip.h if sys/socket.h works.
20222         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
20223         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
20224
20225 2006-02-14  Simon Josefsson  <jas@extundo.com>
20226
20227         * modules/maintainer-makefile (Files): Rename.
20228
20229         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
20230         and (the local) Makefile.cfg to maint-cfg.mk.
20231
20232         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
20233         to the latter.
20234
20235         * modules/maintainer-makefile: New module.
20236
20237         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
20238         severaly stripped to make it possible to build it up from scratch
20239         with reliable tests.
20240
20241         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
20242         fixes to permit overriding the default actions when configure and
20243         makefile are not available.
20244
20245 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
20246
20247         Sync from coreutils.
20248         * modules/lstat (Depends-on): Don't depend on xalloc.
20249         (License): Change from GPL to LGPL, since this is now simply a
20250         replacement for a libc function.
20251
20252 2006-02-14  Jim Meyering  <jim@meyering.net>
20253
20254         Sync from coreutils.
20255
20256         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
20257         failure on deficient systems, and simplify gnulib lgpl dependencies.
20258         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
20259         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
20260
20261         * lib/xalloc-die.c: Remove unused definition of N_.
20262
20263 2006-02-14  Jim Meyering  <jim@meyering.net>
20264
20265         Sync from coreutils.
20266         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
20267         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
20268         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
20269         double-quote uses of that variable, to accommodate the rare case in
20270         which getmntent is available in none of the libraries checked.  This
20271         happens at least on FreeBSD 5.0.
20272
20273 2006-02-13  Simon Josefsson  <jas@extundo.com>
20274
20275         * gnulib-tool (Usage): Fix --import, from
20276         karl@freefriends.org (Karl Berry).
20277
20278 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
20279
20280         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
20281
20282 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
20283
20284         * lib/argp-namefrob.h: Restore changes accidentally lost during the
20285         "autoupdate" on 2005-12-12.
20286
20287 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20288
20289         * modules/closeout (Depends-on): Remove atexit.
20290
20291 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20292
20293         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
20294         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
20295
20296 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
20297
20298         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
20299         __EXTENSIONS__ if this causes compilation to fail.  Problem
20300         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
20301         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
20302
20303 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
20304
20305         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
20306         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
20307         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
20308         All uses changed.
20309
20310 2006-01-26  Simon Josefsson  <jas@extundo.com>
20311
20312         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
20313         prototype is visible on mingw32.
20314
20315         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
20316         for mingw32.
20317
20318         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
20319         mingw32).
20320
20321 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
20322
20323         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
20324         attempt to open for write; this always fails, at least on POSIX
20325         hosts.  This reinstates the 2006-01-09 change, which was
20326         inadvertently removed.
20327
20328 2006-01-26  Bruno Haible  <bruno@clisp.org>
20329
20330         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
20331         Reported by Paul Eggert.
20332
20333 2006-01-26  Bruno Haible  <bruno@clisp.org>
20334             Paul Eggert  <eggert@cs.ucla.edu>
20335
20336         * lib/stdbool_.h (_Bool)
20337         [(! (defined __cplusplus || defined __BEOS__)
20338           && !defined __GNUC__
20339           && !(defined __HP_cc || defined __xlc__
20340                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
20341                || defined __sgi))]:
20342         #define to signed char in these cases too; this simplifies
20343         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
20344         etc., separately) and makes it more conservative.
20345
20346 2006-01-25  Simon Josefsson  <jas@extundo.com>
20347
20348         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
20349         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
20350         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
20351
20352 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
20353
20354         * lib/argp-namefrob.h: Bugfix. Remove stray #
20355
20356 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
20357
20358         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
20359         so that we test the test.
20360         Check for yet another HP-UX cc bug involving *bool |= bool.
20361
20362 2006-01-25  Karl Berry  <karl@gnu.org>
20363
20364         * config/srclist.txt (vasnprintf.c): sync lost.
20365
20366 2006-01-25  Jim Meyering  <jim@meyering.net>
20367
20368         Sync from the stable (b5) branch of coreutils:
20369
20370         * lib/fts.c (fts_children): Don't let close() clobber errno from
20371         failed fchdir().
20372
20373         * lib/fts.c (fts_stat): When following a symlink-to-directory,
20374         don't necessarily interpret stat-fails+lstat-succeeds as indicating
20375         a dangling symlink.  That can also happen at least for ELOOP.
20376         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
20377         FYI, this bug predates the inclusion of fts.c in coreutils.
20378
20379         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
20380         in their own block, so pre-c99 compilers don't object.
20381
20382         Avoid the double-free (first in fts_read, second in fts_close) that
20383         would occur when an `active' directory is made inaccessible (e.g.,
20384         via chmod a-x) during a traversal.
20385         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
20386         before returning.  Reproduce this failure by
20387         mkdir -p a/b; cd a; chmod a-x . b
20388         Reported by Stavros Passas.
20389
20390 2006-01-25  Jim Meyering  <jim@meyering.net>
20391
20392         * lib/fileblocks.c: Remove more useless parentheses.
20393         * lib/readutmp.h: Likewise.
20394
20395 2006-01-25  Bruno Haible  <bruno@clisp.org>
20396
20397         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
20398         warnings.
20399         Reported by Paul Eggert.
20400
20401 2006-01-25  Bruno Haible  <bruno@clisp.org>
20402
20403         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
20404         rid of a trap command. For Solaris sh.
20405         Reported by Mark D. Baushke <mdb@gnu.org>.
20406
20407 2006-01-24  Simon Josefsson  <jas@extundo.com>
20408
20409         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
20410         Bruno.
20411
20412 2006-01-24  Karl Berry  <karl@gnu.org>
20413
20414         * config/srclist.txt (argp-namefrob.h): sync lost.
20415
20416 2006-01-24  Jim Meyering  <jim@meyering.net>
20417
20418         * modules/openat (Files): Add lib/intprops.h.
20419         From Mark D. Baushke.
20420
20421 2006-01-24  Jim Meyering  <jim@meyering.net>
20422
20423         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
20424         Reported by Mark D. Baushke.
20425
20426 2006-01-24  Jim Meyering  <jim@meyering.net>
20427
20428         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
20429
20430 2006-01-24  Bruno Haible  <bruno@clisp.org>
20431
20432         * modules/strnlen (Maintainer): Change from glibc to all.
20433
20434 2006-01-24  Bruno Haible  <bruno@clisp.org>
20435
20436         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
20437         Patch by Paul Eggert.
20438
20439 2006-01-24  Bruno Haible  <bruno@clisp.org>
20440
20441         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
20442         already has it.
20443         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
20444         2005-11-26.
20445
20446         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
20447         'signed char' to avoid problems with the built-in _Bool type.
20448         Reported by Paul Eggert on 2005-11-26.
20449
20450 2006-01-24  Bruno Haible  <bruno@clisp.org>
20451
20452         * gnulib-tool (func_import): Avoid constructing complicated sed
20453         expressions inside backquote.
20454         Report and solution by Mark D. Baushke <mdb@gnu.org>.
20455
20456 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
20457
20458         These changes imported from libc.
20459         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
20460         test and two separate function calls.
20461         * lib/strndup.c (__strndup): Add libc_hidden_def.
20462
20463 2006-01-23  Simon Josefsson  <jas@extundo.com>
20464
20465         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
20466         Remove the test_*_SOURCES variable: automake infers it by default.
20467         * modules/tls-tests: Likewise.
20468
20469 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20470
20471         Work around porting bugs reported by Dieter in
20472         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
20473         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
20474         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
20475         Include "getopt.h" first, to check interface.
20476         (getenv): Declare only if defined HAVE_DECL_GETENV &&
20477         !HAVE_DECL_GETENV.
20478         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
20479         (__strndup): Revert to K&R-style function dfns, the glibc style.
20480         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
20481         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
20482         Include strnlen.h first, to get prototype properly.
20483         (strnlen): Renamed from __strnlen.
20484         Remove weak alias.
20485
20486 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20487
20488         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
20489
20490 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20491
20492         * config/srclist.txt: Adjust to reflect glibc reorganization.
20493         This affects only comments.
20494
20495 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
20496
20497          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
20498          Reported by Bruce Korb <bkorb@gnu.org>.
20499
20500 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
20501
20502         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
20503         to pacify gcc -Wswitch-default.
20504
20505 2006-01-22  Bruno Haible  <bruno@clisp.org>
20506
20507         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
20508         temporary buffer for sprintf, take into account the precision also
20509         for 'd', 'i', 'u', 'o', 'x', 'X'.
20510
20511 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
20512
20513         * modules/argp-tests: New module
20514         * tests/test-argp.c: New file
20515         * tests/test-argp-2.sh: New file
20516
20517 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
20518
20519         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
20520         (__argp_base_name): Removed
20521         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
20522         typo.
20523         (__argp_base_name): Provide macro definition or extern declaration
20524         depending on the configuration
20525
20526 2006-01-20  Simon Josefsson  <jas@extundo.com>
20527
20528         * modules/inet_ntop (Depends-on): Depend on sys_socket.
20529
20530 2006-01-20  Simon Josefsson  <jas@extundo.com>
20531
20532         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
20533
20534 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
20535
20536         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
20537         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
20538         Suggested by Bruno Haible.
20539
20540 2006-01-20  Karl Berry  <karl@gnu.org>
20541
20542         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
20543         until changes propagate, I guess.
20544
20545 2006-01-19  Simon Josefsson  <jas@extundo.com>
20546
20547         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
20548
20549 2006-01-19  Simon Josefsson  <jas@extundo.com>
20550
20551         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
20552
20553 2006-01-19  Simon Josefsson  <jas@extundo.com>
20554
20555         * gnulib-tool: Set check_PROGRAMS.
20556
20557         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
20558         modules/des-tests, modules/gc-arcfour-tests,
20559         modules/gc-arctwo-tests, modules/gc-des-tests,
20560         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
20561         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
20562         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
20563         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
20564         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
20565         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
20566         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
20567         test_*_SOURCES.
20568
20569 2006-01-18  Simon Josefsson  <jas@extundo.com>
20570
20571         * modules/socklen (Depends-on): Depend on sys_socket.
20572
20573 2006-01-18  Simon Josefsson  <jas@extundo.com>
20574
20575         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
20576         modules/des-tests, modules/gc-arcfour-tests,
20577         modules/gc-arctwo-tests, modules/gc-des-tests,
20578         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
20579         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
20580         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
20581         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
20582         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
20583         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
20584         $(EXEEXT) to automake TESTS variable, for mingw32.
20585
20586 2006-01-17  Simon Josefsson  <jas@extundo.com>
20587
20588         * modules/socklen (Include): Need sys/socket.h.
20589
20590 2006-01-17  Bruno Haible  <bruno@clisp.org>
20591
20592         * modules/ssize_t (Include): Add <sys/types.h>.
20593
20594 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
20595
20596         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
20597         it's not portable and it doesn't work with cross-compiles.
20598         Problem reported by Bruno Haible.  Fix missing-$ typo in
20599         'test "gl_cv_ignore_unused_libraries" ...' that prevented
20600         -zignore from being used with Sun's C compiler.
20601
20602 2006-01-12  Simon Josefsson  <jas@extundo.com>
20603
20604         * lib/base64.c: Fix warning, reported by Bruno Haible
20605         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
20606
20607 2006-01-12  Bruno Haible  <bruno@clisp.org>
20608
20609         * modules/ldd: New file.
20610         * build-aux/ldd.sh.in: New file.
20611         * MODULES.html.sh (Support for building libraries and executables): Add
20612         ldd.
20613
20614 2006-01-12  Bruno Haible  <bruno@clisp.org>
20615
20616         * m4/ldd.m4: New file.
20617
20618 2006-01-12  Bruno Haible  <bruno@clisp.org>
20619
20620         * gnulib-tool (func_import, func_create_testdir): Don't go into an
20621         endless loop while replacing $auxdir with build-aux.
20622
20623 2006-01-11  Simon Josefsson  <jas@extundo.com>
20624
20625         * lib/stdint_.h (SIZE_MAX): Add missing (.
20626
20627 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20628
20629         Sync from coreutils.
20630         * lib/md5.c: Fix commentary typos.
20631         (alignof, UNALIGNED_P): No need for a GCC-specific version.
20632         * lib/md5.h (__attribute__): Remove; unused.
20633         * lib/sha1.c: Fix commentary to match md5 better.
20634         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
20635         so that we don't need to worry about alignment.  All uses changed.
20636         This merges the 2005-10-28 md5 change into sha1.
20637
20638 2006-01-11  Jim Meyering  <jim@meyering.net>
20639
20640         Sync from coreutils.
20641         * lib/md5.c (OP): Fix spacing.
20642
20643 2006-01-11  Bruno Haible  <bruno@clisp.org>
20644
20645         Ensure automatic ordering between gl_LOCK and gl_ARGP.
20646         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
20647         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
20648
20649 2006-01-11  Bruno Haible  <bruno@clisp.org>
20650
20651         Ensure automatic ordering between gl_LOCK and gl_ARGP.
20652         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
20653         the "early" section as well.
20654
20655 2006-01-11  Bruno Haible  <bruno@clisp.org>
20656
20657         Avoid "ar: no archive members specified" error on MacOS X.
20658         * gnulib-tool (func_modules_add_dummy): New function.
20659         (func_import, func_create_testdir): Invoke it.
20660
20661 2006-01-11  Bruno Haible  <bruno@clisp.org>
20662
20663         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
20664         with $auxdir in AC_CONFIG_FILES statements.
20665
20666 2006-01-11  Bruno Haible  <bruno@clisp.org>
20667
20668         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20669         Initialize also noinst_HEADERS to empty.
20670
20671 2006-01-11  Bruno Haible  <bruno@clisp.org>
20672
20673         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
20674         variables.
20675         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
20676         autoreconf.
20677
20678 2006-01-11  Bruno Haible  <bruno@clisp.org>
20679
20680         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
20681         overridable by the user.
20682         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20683
20684 2006-01-10  Simon Josefsson  <jas@extundo.com>
20685
20686         * modules/sys_socket: New file.
20687
20688 2006-01-10  Simon Josefsson  <jas@extundo.com>
20689
20690         * m4/sys_socket_h.m4: New file.
20691
20692 2006-01-10  Simon Josefsson  <jas@extundo.com>
20693
20694         * lib/socket_.h: New file.
20695
20696 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
20697
20698         * modules/readutmp (Maintainer): Add myself.
20699
20700 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
20701
20702         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
20703         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
20704         People who are still concerned with buggy memcmp implementations
20705         can invoke gl_FUNC_MEMCMP themselves.
20706
20707 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
20708
20709         * lib/regex_internal.h (BITSET_WORD_BITS):
20710         Work around a bug in 64-bit PGC (before version 6.1-2), where the
20711         preprocessor mishandles large unsigned values as if they were signed.
20712         Problem reported by Claudio Fontana in
20713         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
20714
20715 2006-01-10  Jim Meyering  <jim@meyering.net>
20716
20717         Avoid the double-free (first in fts_read, second in fts_close) that
20718         would occur when an `active' directory is made inaccessible (e.g.,
20719         via chmod a-x) during a traversal.
20720         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
20721         before returning.  Reproduce this failure by
20722         mkdir -p a/b; cd a; chmod a-x . b
20723         Reported by Stavros Passas.
20724
20725         Sync from coreutils.
20726         * lib/sha1.c: Tweak grammar in a comment.
20727
20728 2006-01-10  Jim Meyering  <jim@meyering.net>
20729
20730         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
20731         Patch by Joerg Sonnenberger.
20732
20733 2006-01-10  Bruno Haible  <bruno@clisp.org>
20734
20735         * modules/readutmp: Depend on module free.
20736         * modules/strtok_r: Depend on module restrict.
20737
20738 2006-01-10  Bruno Haible  <bruno@clisp.org>
20739
20740         * modules/gettext (configure.ac): Add an invocation of
20741         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
20742
20743 2006-01-10  Bruno Haible  <bruno@clisp.org>
20744
20745         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
20746         Reported by Werner Lemberg <wl@gnu.org>.
20747
20748 2006-01-10  Bruno Haible  <bruno@clisp.org>
20749
20750         * lib/localcharset.c: Update from GNU gettext.
20751
20752 2006-01-10  Bruno Haible  <bruno@clisp.org>
20753
20754         * lib/argp.h (__const): Remove macro. Use const instead.
20755         * lib/argp-fmtstream.h (__const): Likewise.
20756         * lib/glob_.h (__const): Remove macro.
20757         * lib/glob-libc.h: Use const instead of __const.
20758
20759 2006-01-10  Bruno Haible  <bruno@clisp.org>
20760
20761         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
20762         variable.
20763         Needed to avoid an automake error regarding the 'gettext' module.
20764
20765 2006-01-09  Simon Josefsson  <jas@extundo.com>
20766
20767         * modules/inet_ntop (Depends-on): Add restrict.
20768
20769 2006-01-09  Simon Josefsson  <jas@extundo.com>
20770
20771         * modules/gc-rijndael-tests (License): Put under LGPL.
20772
20773         * modules/gc-des-tests (License): Likewise.
20774
20775         * modules/gc-arcfour-tests (License): Likewise.
20776
20777         * modules/gc-arctwo-tests (License): Likewise.
20778
20779         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
20780
20781         * modules/gc-hmac-sha1-tests (Files): Likewise.
20782
20783         * modules/gc-hmac-md5-tests (License): Likewise.
20784
20785         * modules/gc-sha1-tests (License): Likewise.
20786
20787         * modules/gc-md5-tests (License): Likewise.
20788
20789         * modules/gc-md4-tests (License): Likewise.
20790
20791         * modules/gc-md2-tests (License): Likewise.
20792
20793         * modules/gc-tests (License): Likewise.
20794
20795         * modules/des-tests (License): Likewise.
20796
20797         * modules/md4-tests (License): Likewise.
20798
20799         * modules/md2-tests (License): Likewise.
20800
20801 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
20802
20803         Sync from coreutils:
20804
20805         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
20806         * modules/lib-ignore: New file.
20807         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
20808         chdir-safer.m4, lchmod.m4.
20809         * modules/openat: Add mkdirat.c, openat-priv.h.
20810
20811 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
20812
20813         Sync from coreutils.
20814         * m4/lib-ignore.m4: New file.
20815         * m4/lchmod.m4: New file.
20816
20817 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
20818
20819         Sync from coreutils.
20820         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
20821         for write access: POSIX says that must fail.
20822         * lib/fts.c (diropen): Likewise.
20823         * lib/save-cwd.c (save_cwd): Likewise.
20824         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
20825         well, for minor improvements on hosts that lack O_DIRECTORY.
20826         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
20827         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
20828         Fall back on chown if open failed with EACCES.
20829
20830         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
20831         Report an error at compile-time if only a 1-second nominal clock
20832         resolution is found.
20833
20834         * lib/lchmod.h: New file.
20835         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
20836         (make_dir_parents): Use lchown rather than chown, and
20837         lchmod rather than chmod.
20838
20839         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
20840         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
20841         "proc" reported by n0dalus.
20842
20843         * lib/mountlist.c: Include <limits.h>.
20844         (dev_from_mount_options)
20845         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
20846         New function.  It no longer assumes "dev=" has the System V meaning
20847         on Linux (since it doesn't).  It also parses "dev=" more carefully.
20848         (read_file_system_list)
20849         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
20850         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
20851         dev= in that case.
20852
20853         * lib/posixtm.h (PDS_PRE_2000): New macro.
20854         * lib/posixtm.c (year): Arg is now syntax_bits rather than
20855         allow_century.  All usages changed.  Reject dates outside the range
20856         1969-1999 if PDS_PRE_2000 is used.
20857
20858 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
20859
20860         Sync from coreutils.
20861         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
20862         (Time of day items): Mention the possibility of leap seconds.
20863         Problem reported by Dr. David Alan Gilbert.
20864
20865 2006-01-09  Jim Meyering  <jim@meyering.net>
20866
20867         Sync from coreutils.
20868
20869         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
20870
20871         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
20872
20873         * lib/modechange.c (mode_compile): Reject an invalid mode string
20874         that starts with an octal digit.  From Andreas Gruenbacher.
20875
20876         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
20877         and dup to open_safer and dup_safer, respectively.
20878         (openat_permissive): Fix typo in comment.
20879
20880         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
20881         "gettext.h"; either no longer needed or are guaranteed by openat.h.
20882         (_): Remove; no longer needed.
20883         (openat): Renamed from rpl_openat; no need for rpl_openat
20884         since openat.h renames openat for us.
20885         Replace most of the body with a call to openat_permissive,
20886         to avoid duplicate code.
20887         Port to (probably hypothetical) environments were mode_t is
20888         wider than int.
20889         (openat_permissive): Require mode arg, so that we can check
20890         types better.  Put it just after flags.  Change cwd failure
20891         indicator from pointer-to-bool to pointer-to-errno-value.
20892         All callers changed.
20893         Invoke openat_save_fail and/or openat_restore_fail if
20894         cwd_errno is null, so that openat can call us.
20895         (openat_permissive, fdopendir, fstatat, unlinkat):
20896         Simplify errno handling to avoid some duplicate code,
20897         as it's OK to set errno on success.
20898         * lib/openat.h: Revamp code so that function macros depend on
20899         __OPENAT_PREFIX only, not also on AT_FDCWD.
20900         (openat_ro): Remove.  Caller changed to use openat_permissive.
20901         (openat_permissive): Now a macro, if not a function.
20902         (openat_restore_fail, openat_save_fail): Now always functions,
20903         since mkdirat needs them even if __OPENAT_PREFIX is defined.
20904
20905         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
20906         and openat.c.
20907         * lib/mkdirat.c: Include openat-priv.h.
20908         Remove definitions of macros defined therein.
20909         * lib/openat.c: Likewise.
20910
20911         * lib/mkdirat.c (mkdirat): New file and function.
20912         * lib/openat.h (mkdirat): Declare.
20913
20914         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
20915
20916         * lib/openat.h (openat_permissive): Declare.
20917         (openat_ro): Define.
20918
20919         * lib/openat.c (EXPECTED_ERRNO): New macro.
20920         (openat_permissive): New function -- used in remove.c rewrite.
20921         (all functions): Set errno just before returning, only if there
20922         was an actual failure.
20923         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
20924
20925         Emulate openat-family functions using Linux's procfs, if possible.
20926         Idea and some code based on Ulrich Drepper's glibc changes.
20927
20928         * lib/openat.c: (BUILD_PROC_NAME): New macro.
20929         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
20930         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
20931         before falling back on save_cwd and restore_cwd.
20932         (fdopendir, fstatat, unlinkat): Likewise.
20933
20934         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
20935         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
20936
20937         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
20938         as second argument to va_arg.  Otherwise, some versions of gcc
20939         warn that `if this code is reached, the program will abort'.
20940
20941 2006-01-09  Jim Meyering  <jim@meyering.net>
20942
20943         Sync from coreutils.
20944         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
20945         Require openat-priv.h.
20946
20947 2006-01-09  Bruno Haible  <bruno@clisp.org>
20948
20949         * modules/strnlen (Include): Use strnlen.h.
20950
20951 2006-01-09  Bruno Haible  <bruno@clisp.org>
20952
20953         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
20954
20955 2006-01-09  Bruno Haible  <bruno@clisp.org>
20956
20957         * lib/sysexit_.h (EX_OK): New macro.
20958         Suggested by Martin Lambers <marlam@marlam.de>.
20959
20960 2006-01-09  Bruno Haible  <bruno@clisp.org>
20961
20962         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
20963         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
20964
20965 2006-01-09  Bruno Haible  <bruno@clisp.org>
20966
20967         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
20968         numbers.
20969
20970 2006-01-09  Bruno Haible  <bruno@clisp.org>
20971
20972         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
20973         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
20974         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
20975         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
20976
20977 2006-01-09  Bruno Haible  <bruno@clisp.org>
20978
20979         * build-aux/javacomp.sh.in: New file, moved from lib/.
20980         * modules/javacomp-script (Files): Update.
20981         (configure.ac): Add AC_CONFIG_FILES invocation.
20982         (EXTRA_DIST): Remove variable.
20983
20984         * build-aux/javaexec.sh.in: New file, moved from lib/.
20985         * modules/javaexec (Files): Update.
20986         (configure.ac): Add AC_CONFIG_FILES invocation.
20987         (EXTRA_DIST): Remove javaexec.sh.in.
20988
20989         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
20990         * modules/csharpcomp-script (Files): Update.
20991         (configure.ac): Add AC_CONFIG_FILES invocation.
20992         (EXTRA_DIST): Remove variable.
20993
20994         * build-aux/csharpexec.sh.in: New file, moved from lib/.
20995         * modules/csharpexec (Files): Update.
20996         (configure.ac): Add AC_CONFIG_FILES invocation.
20997         (EXTRA_DIST): Remove csharpexec.sh.in.
20998
20999 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
21000
21001         Sync from coreutils.
21002
21003         Add POSIX ACL support
21004         * lib/acl.h (copy_acl, set_acl): Add declarations.
21005         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
21006         systems other than Linux.
21007         (chmod_or_fchmod): New function: use fchmod when possible,
21008         and chmod otherwise.
21009         (file_has_acl): Add a POSIX ACL implementation, with a
21010         Linux-specific subcase.
21011         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
21012         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
21013         acls are unsupported.
21014         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
21015         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
21016         are unsupported.
21017
21018 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
21019
21020         Sync from coreutils.
21021         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
21022
21023 2006-01-07  Bruno Haible  <bruno@clisp.org>
21024
21025         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
21026         gl_EARLY.
21027
21028 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
21029
21030         * lib/strftime.c (tzname): Don't declare if it is already #defined.
21031         Problem reported for Mingw by Mark Junker.
21032
21033 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
21034
21035         * README: Gnulib normally doesn't generate a tarball.
21036
21037 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
21038
21039         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
21040         long int, not int, for nanosecond counts, so that people who are
21041         used to POSIX struct timespec won't be surprised.  Reported by Jim
21042         Meyering.
21043
21044 2005-12-28  Bruno Haible  <bruno@clisp.org>
21045
21046         * build-aux/config.rpath: Update from GNU gettext.
21047
21048 2005-12-16  Jim Meyering  <jim@meyering.net>
21049
21050         * modules/fprintftime: New module.
21051         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
21052
21053 2005-12-16  Jim Meyering  <jim@meyering.net>
21054
21055         * m4/fprintftime.m4: New file.
21056
21057 2005-12-16  Jim Meyering  <jim@meyering.net>
21058
21059         * lib/fprintftime.c, lib/fprintftime.h: New files.
21060
21061 2005-12-15  Simon Josefsson  <jas@extundo.com>
21062
21063         * modules/socklen (configure.ac): Fix M4 macro name, to align with
21064         new m4/socklen.m4.
21065
21066 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
21067
21068         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
21069         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
21070
21071 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
21072
21073         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
21074         * lib/argp-help.c (fill_in_uparams): Check if the constructed
21075         struct uparams is valid. Fall back to the default values if it is
21076         not.
21077
21078 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
21079
21080         * modules/argp (Files): Add argp-pin.c
21081         (Depends-on): dirname
21082         (lib_SOURCES): Add argp-pin.c
21083
21084 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
21085
21086         * m4/argp.m4:  Check if program_invocation_name and
21087         program_invocation_short_name are declared and define appropriate
21088         macros if they are not.
21089
21090 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
21091
21092         * lib/argp-help.c (__argp_base_name): New function
21093         (__argp_short_program_name): Rewrite using __argp_base_name
21094         * lib/argp-namefrob.h: Define program_invocation_name and
21095         program_invocation_short_name if requested
21096         (__argp_base_name): Add prototype
21097         * lib/argp-parse.c (argp_def): Use gettext wrappers
21098         (argp_default_parser): Use __argp_base_name
21099         * lib/argp-pin.c: New file. Defines program_invocation_name and
21100         program_invocation_short_name on systems that lack them.
21101
21102 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
21103
21104         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
21105         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
21106         porting problem reported by Georg Schwarz in
21107         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
21108
21109 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
21110
21111         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
21112         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
21113         porting problem reported by Georg Schwarz in
21114         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
21115
21116 2005-12-05  Bruno Haible  <bruno@clisp.org>
21117
21118         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
21119         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
21120         Reported by Mark Junker <mjscod@gmx.de>.
21121
21122 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
21123
21124         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
21125         Use implementation from Albert Chin, with some
21126         comments/corrections by Stepan Kasal and myself.
21127
21128 2005-12-02  Bruno Haible  <bruno@clisp.org>
21129
21130         * gnulib-tool (func_import): Accept GPLed build tool modules when
21131         --lgpl is given.
21132         * modules/csharpcomp-script: New file.
21133         * modules/csharpcomp: Depend on it.
21134         * modules/javacomp-script: New file.
21135         * modules/javacomp: Depend on it.
21136         Suggested by Simon Josefsson.
21137
21138 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
21139
21140         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
21141         statement, to work around an HP-UX 10.20 compiler bug reported by
21142         Peter O'Gorman.
21143
21144 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
21145
21146         * modules/savedir (Depends-on): Add openat.
21147
21148 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
21149
21150         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
21151         (uintmax_t) [defined uintmax_t]: Do not declare.
21152         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
21153         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
21154         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
21155         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
21156         sake of portability to weird hosts that C allows (though we don't
21157         know of any practical examples).
21158
21159         * lib/savedir.h (fdsavedir): New decl.
21160         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
21161         contains most of the former guts of savedir.
21162         (savedir): Use savedirstream.
21163         Include "openat.h".
21164
21165 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
21166
21167         * modules/obstack (Files): Add m4/ulonglong.m4.
21168         Problem reported by Davide Angelocola.
21169
21170 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
21171
21172         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
21173         coreutils no longer futzes with rounding modes.
21174
21175 2005-11-14  Jim Meyering  <jim@meyering.net>
21176
21177         * lib/mkstemp-safer.c: Include <config.h>, required for possible
21178         replacement of mkstemp.
21179
21180 2005-11-10  Simon Josefsson  <jas@extundo.com>
21181
21182         * lib/readline.c: Remove EOL.
21183
21184 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
21185
21186         * modules/gethrxtime (Depends-on): Add gettime.
21187
21188 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
21189
21190         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
21191         or gettimeofday; no longer needed.
21192
21193 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
21194
21195         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
21196         time business.
21197         (gethrxtime) [! (HAVE_NANOUPTIME
21198         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
21199         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
21200         our own approximation.
21201
21202 2005-11-08  Eric Blake  <ebb9@byu.net>
21203
21204         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
21205
21206 2005-11-08  Eric Blake  <ebb9@byu.net>
21207
21208         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
21209
21210 2005-11-04  Bruno Haible  <bruno@clisp.org>
21211
21212         * gnulib-tool: Implement --update mode.
21213
21214 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
21215
21216         Fix porting problem reported by Theodoros V. Kalamatianos.
21217         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
21218         Don't assume that futimes failing means we must fail.
21219
21220 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
21221
21222         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
21223         variables to suggest the intended function of the PATH_MAX check.
21224
21225 2005-10-30  Kean Johnston  <jkj@sco.com>
21226
21227         Trivial changes to support SCO systems.
21228         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
21229         as PATH_MAX.
21230         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
21231         where __ptr is null when no I/O is pending.
21232
21233 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
21234
21235         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
21236         leave errno alone.  Problem reported by Dmitry V. Levin.
21237
21238 2005-10-28  Simon Josefsson  <jas@extundo.com>
21239
21240         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
21241         Test more.
21242
21243         * tests/test-gc-md2.c, tests/test-md2.c: New files.
21244
21245         * modules/md2, modules/md2-tests: New files.
21246
21247 2005-10-28  Simon Josefsson  <jas@extundo.com>
21248
21249         * m4/inet_ntop.m4: More tests.
21250
21251         * m4/gc-md2.m4, md2.m4: New file.
21252
21253 2005-10-28  Simon Josefsson  <jas@extundo.com>
21254
21255         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
21256         "restrict" keywords, as per POSIX.  Protect the function
21257         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
21258         Don't use K&R prototypes.  Check the sprintf return values.
21259         Re-define EAFNOSUPPORT if not present.  Indent.
21260
21261         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
21262         suggested by Bruno Haible <bruno@clisp.org>.
21263
21264         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
21265
21266         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
21267
21268         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
21269         libgcrypt).
21270
21271         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
21272
21273         * lib/md2.h, lib/md2.c: New files.
21274
21275 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
21276
21277         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
21278         errno alone.  Problem reported by Frederic Jolliton.
21279
21280 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
21281
21282         * modules/verify (License): Change from GPL to LGPL.  This is a
21283         tiny module and there are apparently near-equivalents that are
21284         under the BSD license.
21285
21286 2005-10-24  Simon Josefsson  <jas@extundo.com>
21287
21288         * modules/sha1: Relicense to LGPL.
21289
21290 2005-10-24  Simon Josefsson  <jas@extundo.com>
21291
21292         * lib/md4.h: Shrink buffer size, now that we changed the type.
21293
21294 2005-10-23  Simon Josefsson  <jas@extundo.com>
21295
21296         * gnulib-tool (func_import): Fix --tests-base.
21297
21298 2005-10-22  Simon Josefsson  <jas@extundo.com>
21299
21300         * modules/arcfour (Depends-on): Need stdint.
21301
21302 2005-10-22  Simon Josefsson  <jas@extundo.com>
21303
21304         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
21305         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
21306
21307 2005-10-22  Simon Josefsson  <jas@extundo.com>
21308
21309         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
21310         suggested by Bruno Haible <bruno@clisp.org>.
21311
21312 2005-10-22  Simon Josefsson  <jas@extundo.com>
21313
21314         * lib/crc.h: Include stddef.h, for size_t.
21315
21316 2005-10-22  Simon Josefsson  <jas@extundo.com>
21317
21318         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
21319         arcfour_context struct (simplify test vector testing in GNU
21320         Shishi).
21321
21322 2005-10-21  Simon Josefsson  <jas@extundo.com>
21323
21324         * modules/des, modules/des-tests: New files.
21325
21326         * modules/gc-des, modules/gc-des-tests: New files.
21327
21328         * tests/test-des.c, tests/test-gc-des.c: New file.
21329
21330 2005-10-21  Simon Josefsson  <jas@extundo.com>
21331
21332         * modules/arctwo, modules/arctwo-tests: New files.
21333
21334         * tests/test-arctwo.c: New file.
21335
21336         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
21337
21338         * tests/test-gc-arctwo.c: New file.
21339
21340 2005-10-21  Simon Josefsson  <jas@extundo.com>
21341
21342         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
21343         Bruno Haible <bruno@clisp.org>.
21344
21345         * m4/gc-des.m4: New file.
21346
21347 2005-10-21  Simon Josefsson  <jas@extundo.com>
21348
21349         * m4/arctwo.m4: New file.
21350
21351         * m4/gc-arctwo.m4: New file.
21352
21353 2005-10-21  Simon Josefsson  <jas@extundo.com>
21354
21355         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
21356         block.
21357
21358 2005-10-21  Simon Josefsson  <jas@extundo.com>
21359
21360         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
21361         <bruno@clisp.org>.
21362
21363         * lib/hmac-sha1.c (hmac_sha1): Likewise.
21364
21365         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
21366         Bruno Haible <bruno@clisp.org>.
21367
21368         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
21369         <bruno@clisp.org>.
21370
21371 2005-10-21  Simon Josefsson  <jas@extundo.com>
21372
21373         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
21374
21375 2005-10-21  Simon Josefsson  <jas@extundo.com>
21376
21377         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
21378
21379 2005-10-21  Simon Josefsson  <jas@extundo.com>
21380
21381         * lib/des.h, lib/des.c: New files.
21382
21383         * lib/gc-gnulib.c: Support DES.c
21384
21385 2005-10-21  Simon Josefsson  <jas@extundo.com>
21386
21387         * lib/arctwo.h, lib/arctwo.c: New files.
21388
21389         * lib/gc-gnulib.c: Support ARCTWO.
21390
21391 2005-10-21  Simon Josefsson  <jas@extundo.com>
21392
21393         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
21394         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21395
21396 2005-10-21  Simon Josefsson  <jas@extundo.com>
21397
21398         * gnulib-tool (func_import, func_create_testdir): Define automake
21399         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
21400         Makefile.am snippet),
21401         suggested by Bruno Haible <bruno@clisp.org>.
21402
21403         * modules/gc (Makefile.am): Use it.
21404
21405 2005-10-21  Bruno Haible  <bruno@clisp.org>
21406
21407         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
21408         patch.
21409
21410 2005-10-19  Simon Josefsson  <jas@extundo.com>
21411
21412         * tests/test-gc-rijndael.c: New file.
21413
21414         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
21415
21416 2005-10-19  Simon Josefsson  <jas@extundo.com>
21417
21418         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
21419         interface too.
21420
21421 2005-10-19  Simon Josefsson  <jas@extundo.com>
21422
21423         * tests/test-gc-arcfour.c: New file.
21424
21425         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
21426
21427 2005-10-19  Simon Josefsson  <jas@extundo.com>
21428
21429         * modules/gc-md4, modules/gc-md4-tests: New file.
21430
21431         * tests/test-gc-md4.c: New file.
21432
21433 2005-10-19  Simon Josefsson  <jas@extundo.com>
21434
21435         * m4/gc-md4.m4: New file.
21436
21437 2005-10-19  Simon Josefsson  <jas@extundo.com>
21438
21439         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
21440         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
21441         <kasal@ucw.cz>.
21442
21443 2005-10-19  Simon Josefsson  <jas@extundo.com>
21444
21445         * m4/gc-arcfour.m4: New file.
21446
21447         * m4/gc-rijndael.m4: New file.
21448
21449 2005-10-19  Simon Josefsson  <jas@extundo.com>
21450
21451         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
21452
21453 2005-10-19  Simon Josefsson  <jas@extundo.com>
21454
21455         * lib/gc-gnulib.c: Support ARCFOUR.
21456
21457 2005-10-19  Simon Josefsson  <jas@extundo.com>
21458
21459         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
21460         support.
21461
21462         * lib/gc.h: Add ECB enum type.
21463
21464         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
21465
21466 2005-10-18  Simon Josefsson  <jas@extundo.com>
21467
21468         * tests/test-md5.c: New file.
21469
21470         * modules/md5-tests: New file.
21471
21472 2005-10-18  Simon Josefsson  <jas@extundo.com>
21473
21474         * tests/test-md4.c: New file.
21475
21476         * modules/md4, modules/md4-tests: New files.
21477
21478 2005-10-18  Simon Josefsson  <jas@extundo.com>
21479
21480         * m4/md4.m4: New file.
21481
21482 2005-10-18  Simon Josefsson  <jas@extundo.com>
21483
21484         * lib/md4.h, lib/md4.c: New files, based on md5.?.
21485
21486 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
21487
21488         * gnulib-tool (func_create_testdir): Omit the second check whether
21489         BUILT_SOURCES in nonempty.
21490
21491 2005-10-17  Simon Josefsson  <jas@extundo.com>
21492
21493         * tests/test-rijndael.c: New file.
21494
21495 2005-10-17  Simon Josefsson  <jas@extundo.com>
21496
21497         * modules/sha1: Depend on stdint instead of md5.
21498
21499         * modules/md5: Depend on stdint, remove uint32_t.
21500
21501 2005-10-17  Simon Josefsson  <jas@extundo.com>
21502
21503         * modules/gc-sha1-tests: New file.
21504
21505         * tests/test-gc-sha1.c: New file.
21506
21507 2005-10-17  Simon Josefsson  <jas@extundo.com>
21508
21509         * m4/md5.m4: Remove call to uint32_t.m4.
21510
21511 2005-10-17  Simon Josefsson  <jas@extundo.com>
21512
21513         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
21514
21515         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
21516         md5.h.
21517
21518         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
21519
21520         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
21521
21522 2005-10-17  Simon Josefsson  <jas@extundo.com>
21523
21524         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
21525
21526 2005-10-17  Simon Josefsson  <jas@extundo.com>
21527
21528         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
21529
21530 2005-10-17  Simon Josefsson  <jas@extundo.com>
21531
21532         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
21533
21534         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
21535
21536 2005-10-17  Bruno Haible  <bruno@clisp.org>
21537
21538         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
21539         that it can also be used in a test.
21540
21541 2005-10-16  Bruno Haible  <bruno@clisp.org>
21542
21543         * gnulib-tool (func_emit_tests_Makefile_am): Also define
21544         TESTS_ENVIRONMENT, so that individual tests can augment it.
21545
21546         * gnulib-tool (func_create_testdir): Use an intermediate target for
21547         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
21548         macros, like $(ALLOCA_H), which cannot be passed through the command
21549         line.
21550
21551 2005-10-15  Simon Josefsson  <jas@extundo.com>
21552
21553         * modules/rijndael-tests: New file.
21554
21555         * modules/rijndael: New file.
21556
21557 2005-10-15  Simon Josefsson  <jas@extundo.com>
21558
21559         * m4/rijndael.m4: New file.
21560
21561 2005-10-15  Simon Josefsson  <jas@extundo.com>
21562
21563         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
21564
21565         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
21566
21567 2005-10-14  Simon Josefsson  <jas@extundo.com>
21568
21569         * tests/test-arcfour.c: New file.
21570
21571         * modules/arcfour, modules/arcfour-tests: New files.
21572
21573 2005-10-14  Simon Josefsson  <jas@extundo.com>
21574
21575         * m4/arcfour.m4: New file.
21576
21577 2005-10-14  Simon Josefsson  <jas@extundo.com>
21578
21579         * lib/arcfour.h, lib/arcfour.c: New files.
21580
21581 2005-10-14  Roland McGrath  <roland@redhat.com>
21582
21583         Import from libc.  [BZ #1331]
21584         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
21585         macro argument.
21586         Reported by Matej Vela <vela@debian.org>.
21587
21588 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
21589
21590         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
21591         include <wchar.h>; no longer needed.
21592
21593 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
21594
21595         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
21596
21597 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
21598         and  Ulrich Drepper  <drepper@redhat.com>
21599
21600         Import from libc.
21601         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
21602         instead of inline stream orientation test and two separate
21603         function calls.  Pay no attention to USE_IN_LIBIO.
21604
21605 2005-10-13  Simon Josefsson  <jas@extundo.com>
21606
21607         * modules/gc-hmac-md5-tests: New file.
21608
21609         * tests/test-gc-hmac-sha1.c: New file.
21610
21611         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
21612
21613         * modules/gc-hmac-md5-tests: New file.
21614
21615         * tests/test-gc-md5.c: New file.
21616
21617         * modules/gc-md5-tests: New file.
21618
21619 2005-10-13  Simon Josefsson  <jas@extundo.com>
21620
21621         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
21622         Move memory allocation outside of loop.
21623
21624 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
21625
21626         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
21627         intermediate directory is in a read-only file system.  Problem
21628         reported by Eric Blake.
21629
21630 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
21631
21632         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
21633
21634 2005-10-12  Simon Josefsson  <jas@extundo.com>
21635
21636         * tests/test-hmac-sha1.c: New file.
21637
21638         * modules/hmac-sha1-tests: New file.
21639
21640         * modules/hmac-sha1: New file.
21641
21642 2005-10-12  Simon Josefsson  <jas@extundo.com>
21643
21644         * modules/gc-sha1: New file.
21645
21646 2005-10-12  Simon Josefsson  <jas@extundo.com>
21647
21648         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
21649
21650         * tests/test-gc-pbkdf2-sha1.c: New file.
21651
21652 2005-10-12  Simon Josefsson  <jas@extundo.com>
21653
21654         * modules/gc-md5, modules/gc-hmac-md5: New files.
21655
21656         * modules/gc (Files): Remove md5, memxor and hmac files.
21657
21658 2005-10-12  Simon Josefsson  <jas@extundo.com>
21659
21660         * m4/gc-pbkdf2-sha1.m4: New file.
21661
21662         * m4/gc-hmac-sha1.m4: New file.
21663
21664         * m4/gc-sha1: New file.
21665
21666         * m4/hmac-sha1.m4: New file.
21667
21668 2005-10-12  Simon Josefsson  <jas@extundo.com>
21669
21670         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
21671
21672         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
21673
21674 2005-10-12  Simon Josefsson  <jas@extundo.com>
21675
21676         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
21677         suggested by Bruno Haible <bruno@clisp.org>.
21678
21679 2005-10-12  Simon Josefsson  <jas@extundo.com>
21680
21681         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
21682
21683 2005-10-12  Simon Josefsson  <jas@extundo.com>
21684
21685         * lib/gc-pbkdf2-sha1.c: New file.
21686
21687         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
21688
21689 2005-10-12  Simon Josefsson  <jas@extundo.com>
21690
21691         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
21692
21693         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
21694
21695 2005-10-12  Simon Josefsson  <jas@extundo.com>
21696
21697         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
21698         GC_USE_HMAC_MD5, respectively.
21699
21700         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
21701         (gc_md5): Fix typo.
21702
21703         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
21704
21705         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
21706
21707         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
21708
21709 2005-10-12  Bruno Haible  <bruno@clisp.org>
21710
21711         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
21712         Reported by Stepan Kasal <kasal@ucw.cz>.
21713
21714 2005-10-11  Simon Josefsson  <jas@extundo.com>
21715
21716         * tests/test-crc.c: New file.
21717
21718         * modules/crc, modules/crc-tests: New files.
21719
21720 2005-10-11  Simon Josefsson  <jas@extundo.com>
21721
21722         * m4/crc.m4: New file.
21723
21724 2005-10-11  Simon Josefsson  <jas@extundo.com>
21725
21726         * lib/gc.h: Add gc_hash and gc_hash_buffer.
21727
21728         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
21729
21730         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
21731
21732 2005-10-11  Simon Josefsson  <jas@extundo.com>
21733
21734         * lib/crc.h, lib/crc.c: New files.
21735
21736         * lib/gc.h (gc_hash_buffer): Add doc.
21737
21738 2005-10-11  Bruno Haible  <bruno@clisp.org>
21739
21740         * modules/c-strcasestr: New file.
21741         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
21742
21743 2005-10-11  Bruno Haible  <bruno@clisp.org>
21744
21745         * modules/c-strcase: New file.
21746         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
21747
21748 2005-10-11  Bruno Haible  <bruno@clisp.org>
21749
21750         * lib/strcasecmp.c: Include limits.h.
21751         (strcasecmp): Avoid integer overflow on exotic platforms.
21752         * lib/strncasecmp.c: Include limits.h.
21753         (strncasecmp): Avoid integer overflow on exotic platforms.
21754         Reported by Paul Eggert.
21755
21756 2005-10-11  Bruno Haible  <bruno@clisp.org>
21757
21758         * lib/c-strcasestr.h: New file, from GNU gettext.
21759         * lib/c-strcasestr.c: New file, from GNU gettext.
21760
21761 2005-10-11  Bruno Haible  <bruno@clisp.org>
21762
21763         * lib/c-strcase.h: New file, from GNU gettext.
21764         * lib/c-strcasecmp.c: New file, from GNU gettext.
21765         * lib/c-strncasecmp.c: New file, from GNU gettext.
21766
21767 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
21768
21769         * modules/mempcpy (License): GPL -> LGPL.
21770         * modules/strchrnul (License): Likewise.
21771         * modules/sysexits (License): Likewise.
21772
21773 2005-10-08  Simon Josefsson  <jas@extundo.com>
21774
21775         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
21776
21777 2005-10-07  Simon Josefsson  <jas@extundo.com>
21778
21779         * m4/memxor.m4: Remove gl_C_RESTRICT call.
21780
21781 2005-10-06  Simon Josefsson  <jas@extundo.com>
21782
21783         * tests/test-hmac-md5.c: New file.
21784
21785         * modules/hmac-md5-tests: New file.
21786
21787         * modules/hmac-md5: New file.
21788
21789 2005-10-06  Simon Josefsson  <jas@extundo.com>
21790
21791         * m4/hmac-md5.m4: New file.
21792
21793         * m4/memxor.m4: Require gl_C_RESTRICT.
21794
21795 2005-10-06  Simon Josefsson  <jas@extundo.com>
21796
21797         * lib/memxor.c (memxor): Avoid casts and warnings.
21798
21799 2005-10-06  Simon Josefsson  <jas@extundo.com>
21800
21801         * lib/hmac-md5.c: New file.
21802
21803         * lib/hmac.h: New file.
21804
21805 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
21806
21807         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
21808         promotes to int, not unsigned int, to catch the AIX 5.3
21809         compiler bug.
21810
21811 2005-10-05  Simon Josefsson  <jas@extundo.com>
21812
21813         * modules/memxor: New file.
21814
21815         * modules/iconv (Files): Move config.rpath to havelib, it is used
21816         there.
21817
21818         * modules/havelib (Files): Add config.rpath.
21819
21820 2005-10-05  Simon Josefsson  <jas@extundo.com>
21821
21822         * m4/memxor.m4: New file.
21823
21824 2005-10-05  Simon Josefsson  <jas@extundo.com>
21825
21826         * lib/memxor.c (memxor): Fix compiler error.
21827
21828         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
21829         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
21830
21831         * lib/memxor.h, lib/memxor.c: New files.
21832
21833         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
21834         we assume all systems have it, suggested by Jim Meyering
21835         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
21836         any systems lack sys/socket.h; mingw32 is known to lack it, but we
21837         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
21838         same reasons.
21839
21840 2005-10-05  Simon Josefsson  <jas@extundo.com>
21841
21842         * config/srclist.txt: Add glibc bug 1423 for md5.h.
21843
21844 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21845
21846         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
21847         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
21848         needed, since the source code now assumes these .h files.
21849
21850 2005-10-05  Derek Price  <derek@ximbiot.com>
21851
21852         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
21853
21854 2005-10-05  Bruno Haible  <bruno@clisp.org>
21855
21856         * modules/stdint (License): Change to LGPL.
21857
21858 2005-10-04  Simon Josefsson  <jas@extundo.com>
21859
21860         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
21861         D. Baushke" <mdb@gnu.org>.
21862
21863 2005-10-04  Bruno Haible  <bruno@clisp.org>
21864
21865         * lib/verify.h (verify_true): Provide alternative definition for C++.
21866
21867 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
21868
21869         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
21870         (SSIZE_MAX): New macro, if not already defined.
21871         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
21872         than 2 GiB.
21873
21874 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
21875
21876         Sync from coreutils.
21877         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
21878         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
21879         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
21880         ULLONG_MAX doesn't work with 2.7.2.1.
21881
21882 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
21883
21884         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
21885         From Ben Pfaff.
21886
21887         * modules/exclude (Depends-on): Depend on verify.
21888         * modules/strtoimax (Depends-on): Likewise.
21889         * modules/utimecmp (Depends-on): Likewise.
21890
21891 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
21892
21893         * lib/exclude.c: Include verify.h.
21894         (verify): Remove.  All callers changed to use verify.h's version.
21895         * lib/strtoimax.c: Likewise.
21896         * lib/utimecmp.c: Likewis.e
21897
21898         Sync from coreutils.
21899         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
21900         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
21901         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
21902         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
21903         bother returning ENOSYS if settimeofday or stime fails; just let
21904         them return whatever errno they want to return.
21905         * lib/utimens.c: Include unistd.h, for dup2.
21906         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
21907         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
21908
21909 2005-10-02  Jim Meyering  <jim@meyering.net>
21910
21911         Sync from coreutils.
21912         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
21913         from glibc-2.2.5 that fails for read-only files.
21914
21915 2005-10-02  Jim Meyering  <jim@meyering.net>
21916
21917         Sync from coreutils.
21918         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
21919         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
21920         `#if HAVE_CONFIG_H'.
21921         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
21922         Remove AT_FDCWD test.
21923         Do not consume the fd unless successful.
21924         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
21925         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
21926         block, so that we don't even try to compile it if settimeofday is
21927         available.  This works around a compilation failure on OSF1 V5.1,
21928         due to stime requiring a `long int*' while tv_sec is `int'.
21929
21930 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
21931
21932         Sync from coreutils.
21933         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
21934         against `yes', rather than just testing for nonempty.
21935
21936 2005-10-01  Simon Josefsson  <jas@extundo.com>
21937
21938         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
21939         and Darwin.
21940
21941         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
21942         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
21943         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
21944         freeaddrinfo and gai_strerror are declared by the POSIX headers.
21945         Check if struct addrinfo is declared.
21946
21947 2005-10-01  Simon Josefsson  <jas@extundo.com>
21948
21949         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
21950         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
21951         AI_* and EAI_* definitions.  Protect function declarations.
21952
21953 2005-10-01  Jim Meyering  <jim@meyering.net>
21954
21955         Sync from coreutils.
21956
21957         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
21958         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
21959         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
21960         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
21961         in the inet and nsl libraries.  Required on Solaris 5.7.
21962
21963 2005-10-01  Jim Meyering  <jim@meyering.net>
21964
21965         Sync from coreutils.
21966         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
21967         in the inet and nsl libraries.  Required on Solaris 5.7.
21968
21969 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
21970
21971         * lib/getdelim.c (getdelim): Remove unused variables.
21972
21973 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
21974
21975         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
21976         so that the code works even with ancient cpp.  Portability problem
21977         with GCC 2.7.2.1 reported by Thomas M.Ott.
21978
21979 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
21980
21981         * modules/regex (Depends-on): Add strcase.
21982
21983         * modules/gethostname (Licence): Change from GPL to LGPL, since
21984         gethostname.c is a trivial implementation of a standard library
21985         function.
21986         * modules/poll (License): Change from GPL to LGPL, since it's
21987         derived from LGPL code.
21988
21989 2005-09-27  Jim Meyering  <jim@meyering.net>
21990
21991         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
21992         HAVE_CONFIG_H.
21993
21994         * lib/intprops.h (signed_type_or_expr__): Define.
21995         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
21996         for unsigned types.
21997
21998 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
21999
22000         * lib/verify.h (verify_expr): Remove, replacing with:
22001         (verify_true): New macro that returns true instead of void.
22002         (verify_type__): Remove.
22003         (verify): Use verify_true rather than verify_type__.
22004
22005 2005-09-26  Bruno Haible  <bruno@clisp.org>
22006
22007         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
22008         is necessary.
22009         (lib_SOURCES): Remove mbchar.c.
22010         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
22011         (Files): Add m4/mbrtowc.m4.
22012         * modules/mbiter: Likewise.
22013         * modules/mbuiter: Likewise.
22014
22015 2005-09-26  Bruno Haible  <bruno@clisp.org>
22016
22017         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
22018         compile mbchar.c if they are not both present.
22019         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
22020         * m4/mbiter.m4 (gl_MBITER): Likewise.
22021         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
22022         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
22023         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
22024
22025 2005-09-25  Jim Meyering  <jim@meyering.net>
22026
22027         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
22028         also uses socklen_t.
22029
22030 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
22031
22032         * lib/utimens.c (ENOSYS): Define if not already defined.
22033         (futimens): Support having a null PATH if the file descriptor
22034         is nonnegative.
22035
22036         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
22037         Remove.
22038         (__attribute): Define to empty unless GCC 3.1 or later.
22039         This works around a core dump on OpenBSD 3.4, which has GCC
22040         2.95.3, which dumps core when given __attribute__(()).  It also
22041         simplifies other tests, since we really don't want to bother with
22042         worrying about which ancient version of GCC supported what.
22043         Original problem reported by Yoann Vandoorselaere, with part of
22044         the fix suggested by Derek Price.
22045
22046 2005-09-24  Jim Meyering  <jim@meyering.net>
22047
22048         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
22049         so we can once again use a positive bitfield width of 1 -- now we
22050         don't have to explain why we were using a bitfield width of 2.
22051
22052 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
22053
22054         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
22055         and similarly for the other external symbols.  Problem reported
22056         by James Gallager.
22057
22058         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
22059         bug reported by Jim Meyering.
22060
22061         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
22062         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
22063         not needed, since socklen is a prerequisite module.
22064
22065 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
22066
22067         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
22068         Problem reported by Eric Blake.
22069         (getaddrinfo): Initialize se so that it's not garbage.
22070         Redo internal storage allocation so that it doesn't make unportable
22071         assumptions about alignment.
22072         Fix a memory leak.
22073
22074         * lib/utimens.c (futimens): Use futimesat if available.
22075         Prefer it to futimes since it doesn't have the futimes bug.
22076
22077         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
22078         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
22079         Instead, declare a function that returns a pointer to an array,
22080         and use verify_type__ to declare the size of the array.
22081         Problem and germ of a solution reported by Bruno Haible.
22082         (verify_type__): Use 2, not 1, for bitfield size, to avoid
22083         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
22084
22085 2005-09-23  Jim Meyering  <jim@meyering.net>
22086
22087         Sync from coreutils.
22088         Correct build failure (socklen_t not defined) on at least
22089         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
22090         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
22091
22092 2005-09-23  Jim Meyering  <jim@meyering.net>
22093
22094         * modules/getaddrinfo (Depends-on): Add socklen.
22095
22096 2005-09-23  Bruno Haible  <bruno@clisp.org>
22097
22098         * tests/test-verify.c: New file.
22099
22100 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
22101
22102         Sync from coreutils.
22103
22104         * modules/argmatch (Depends-on): Add verify.
22105         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
22106         unistd-safer.
22107         * modules/save-cwd (Depends-on): Likewise.
22108
22109         * modules/openat (Files): Add lib/openat-die.c.
22110         (Depends-on): Remove error, exitfail.
22111         Add dirname.
22112
22113         * modules/verify: New file.
22114         * MODULES.html.sh (Diagnostics <assert.h>): New section,
22115         with "verify" module.
22116
22117 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
22118
22119         Sync from coreutils.
22120
22121         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
22122         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
22123         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
22124         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
22125         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
22126         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
22127         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
22128         Don't bother checking for string.h, stdlib.h, unistd.h.
22129         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
22130         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
22131         module's job.
22132         * m4/jm-macros.m4 (gl_MACROS): Likewise.
22133         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
22134
22135         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
22136         (gl_GETDATE): Use it.
22137
22138         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
22139
22140 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
22141
22142         Sync from coreutils.
22143
22144         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
22145         stat-time.h.
22146         * lib/argmatch.h: Include verify.h
22147         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
22148         (ARGMATCH_ASSERT): Remove; unused.
22149         * lib/canonicalize.c: Assume STDC_HEADERS.
22150         * lib/exclude.c: Include "strcase.h".
22151         * lib/regex_internal.h [!defined _LIBC]: Likewise.
22152         * lib/getusershell.c: Include stdio--.h rather than stdio.h
22153         and stdio-safer.h.
22154         (getusershell): Call fopen, not fopen_safer.
22155         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
22156         Do not include unistd-safer.h.
22157         (save_cwd): Don't call fd_safer; no longer needed
22158         now that we include fcntl--.h.
22159
22160         * lib/getdate.y (relative_time): New type.
22161         (RELATIVE_TIME_0): New constant.
22162         (parser_control): Use relative_time instead of doing it ourselves.
22163         (%union): Add new relative_time rel member.
22164         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
22165         Now typeless.
22166         (relunit, relunit_snumber): Now of type rel.
22167         (zone, rel, relunit, get_date): Adjust to above changes.
22168
22169         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
22170         Do not include unistd-safer.h.
22171         (getloadavg): Don't call fd_safer; no longer needed
22172         now that we include fcntl--.h.
22173
22174         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
22175         (make_dir_parents): Treat ENOSYS like EEXIST.
22176
22177         Improve quality of diagnostics on restore_cwd failure.
22178         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
22179         (make_dir_parents): Last arg is now int * (for errno), not bool *.
22180         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
22181         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
22182         each time through the loop.  Do not diagnose restore_cwd failure;
22183         that is the caller's job (and perhaps the caller does not care).
22184
22185         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
22186         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
22187         If the file already exists but is not a directory, don't bother
22188         to try to make its parents.
22189         Close potential file descriptor leak if we can't chdir("/") (!).
22190         Don't always return true if chdir($PWD) fails; return true only
22191         if the requested action was done successfully (except for the
22192         chdir($PWD)).
22193         Don't log final directory unless we actually made it.
22194         Refactor to avoid duplicate code to fix up permissions.
22195         Don't attempt to fix up parent permissions if chdir($PWD) fails.
22196
22197         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
22198         to make it a bit faster and (I hope) clearer.
22199         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
22200         Fix bug in formats like %2N.
22201
22202         * lib/verify.h: New file.
22203
22204 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
22205
22206         Sync from coreutils.
22207         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
22208
22209 2005-09-22  Jim Meyering  <jim@meyering.net>
22210
22211         Sync from coreutils.
22212
22213         * m4/lstat.m4 (gl_FUNC_LSTAT):
22214         Use AC_LIBSOURCES to require lstat.c and lstat.h.
22215         Remove obsolete comment.
22216         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
22217         * m4/xstrtod.m4: Likewise.
22218
22219         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
22220
22221 2005-09-22  Jim Meyering  <jim@meyering.net>
22222
22223         Sync from coreutils.
22224
22225         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
22226
22227         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
22228         the .tm_year member, since otherwise gcc-4.0 would now warn about
22229         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
22230
22231         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
22232         order to avoid an unsuppressible warning from gcc on 64-bit systems.
22233
22234         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
22235         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
22236         when run in a time zone for which daylight savings time is in effect
22237         for the starting date.
22238
22239         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
22240         stop us from restricting permissions of just-created absolute-named
22241         directories.
22242         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
22243         to restore initial working directory.
22244         * lib/mkdir-p.c (make_dir_parents): New parameter:
22245         different_working_dir, to tell caller if/when we change the working
22246         directory and are unable to return to the initial one.
22247         * lib/mkdir-p.h (make_dir_parents): Update prototype.
22248         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
22249         `return false'.  This fixes a bug introduced on 2004-07-30.
22250
22251         * lib/openat.c (fdopendir): Be sure to close the supplied
22252         file descriptor before returning.  This makes our replacement
22253         implementation a little closer to Solaris's, where fdopendir
22254         ties the file descriptor to the returned DIR* pointer.
22255         * lib/openat.c (unlinkat): New function.
22256         * lib/openat.h (unlinkat): Add prototype.
22257         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
22258         (openat_restore_fail): Rename from openat_restore_die.
22259         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
22260
22261         Provide an alternative to exiting immediately upon save_cwd or
22262         restore_cwd failure.  Now, an application can arrange e.g.,
22263         to perform a longjump in that case.
22264         * lib/openat.c: Include dirname.h.
22265         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
22266         (rpl_openat, fdopendir, fstatat): Call openat_save_die
22267         and openat_restore_die rather than calling error directly.
22268         Don't include "error.h" or "exitfail.h"; they're no longer needed.
22269
22270         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
22271         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
22272         define.
22273
22274         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
22275         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
22276                             int utc, int nanoseconds);
22277         Background:
22278         date should not have to allocate a megabyte of virtual memory to
22279         handle a format argument like +%1048575T.  When implemented with
22280         strftime, it must allocate such a buffer, use strftime to fill it
22281         in, print it, then free it.
22282         With fprintftime, it simply prints everything and exits.
22283         With no need for memory allocation, that's one fewer way to fail.
22284         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
22285         optional field width, not before, so we accept %9:z, not %:9z.
22286         (my_strftime): Be sure to use L_('x') for literals.
22287
22288         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
22289         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
22290         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
22291         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
22292         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
22293         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
22294         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
22295         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
22296         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
22297         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
22298         * lib/xgethostname.c, lib/xreadlink.c:
22299         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
22300
22301         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
22302         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
22303         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
22304         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
22305         and don't include <sys/file.h>).
22306
22307 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
22308
22309         Sync from coreutils.
22310
22311         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
22312         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
22313         [!LDAV_DONE]: Avoid unused variable warning.
22314
22315 2005-09-21  Bruno Haible  <bruno@clisp.org>
22316
22317         * lib/unicodeio.h (unicode_to_mb): New declaration.
22318
22319 2005-09-20  Derek Price  <derek@ximbiot.com>
22320
22321         * lib/getaddrinfo.c: Don't include <netdb.h> included from
22322         getaddrinfo.h.
22323
22324 2005-09-20  Bruno Haible  <bruno@clisp.org>
22325
22326         * gnulib-tool: Remove trailing slashes from the values specified for
22327         --source-base, --m4-base, --tests-base, --aux-dir.
22328         Suggested by Simon Josefsson <jas@extundo.com>.
22329
22330 2005-09-20  Bruno Haible  <bruno@clisp.org>
22331
22332         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
22333         func_modules_to_filelist, func_import, func_create_testdir): Make all
22334         sorting results locale-independent, so that gnulib-cache.m4 doesn't
22335         change when gnulib-tool is invoked in a different locale.
22336
22337 2005-09-19  Simon Josefsson  <jas@extundo.com>
22338
22339         * m4/socklen.m4: Fix typo.
22340
22341 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22342
22343         Use a consistent style for including <config.h>.
22344         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
22345         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
22346         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
22347         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
22348         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
22349         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
22350         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
22351         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
22352         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
22353         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
22354         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
22355         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
22356         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
22357         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
22358         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
22359         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
22360         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
22361         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
22362         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
22363         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
22364         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
22365         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
22366         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
22367         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
22368         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
22369         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
22370         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
22371         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
22372         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
22373         lib/xstrtoumax.c, lib/yesno.c:
22374         Standardize inclusion of config.h.
22375         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
22376         lib/inttostr.h:  Removed inclusion of config.h from header files.
22377         * lib/inttostr.c:  Adjusted in-tree users.
22378         * lib/timespec.h: Remove superfluous warning to include config.h.
22379         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
22380         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
22381         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
22382         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
22383         config.h with HAVE_CONFIG_H.
22384
22385 2005-09-19  Jim Meyering  <jim@meyering.net>
22386
22387         * modules/pathmax (License): Change to LGPL.
22388
22389 2005-09-19  Derek Price  <derek@ximbiot.com>
22390
22391         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
22392
22393 2005-09-19  Bruno Haible  <bruno@clisp.org>
22394
22395         * gnulib-tool (import): Provide default for --tests-base.
22396
22397 2005-09-19  Bruno Haible  <bruno@clisp.org>
22398
22399         * doc/quote.texi: New file, extracted from gnulib.texi.
22400         * doc/ctime.texi: New file, extracted from gnulib.texi.
22401         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
22402         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
22403         * doc/gnulib.texi: Include them.
22404
22405 2005-09-18  Bruno Haible  <bruno@clisp.org>
22406
22407         Portability fix.
22408         * gnulib-tool (func_readlink): New function.
22409         (func_ln_if_changed): Use it.
22410
22411 2005-09-18  Bruno Haible  <bruno@clisp.org>
22412
22413         * gnulib-tool: Support --with-tests also with --import.
22414         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
22415         (func_import): Use variables $testsbase and $inctests. Emit a
22416         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
22417         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
22418         SUBDIRS += $testsdir.
22419         (func_create_testdir): Update.
22420
22421 2005-09-18  Bruno Haible  <bruno@clisp.org>
22422
22423         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
22424         instead of $dry_run.
22425         (func_cp_if_changed, func_mv_if_changed): Remove functions.
22426         (func_ln_if_changed): Don't handle dry-run here.
22427         (func_import): In dry-run mode, detect more precisely which actions
22428         would be performed, and don't use "...ing" verbs.
22429
22430 2005-09-18  Bruno Haible  <bruno@clisp.org>
22431
22432         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
22433         (func_import): Use join on two temporary files instead of three nested
22434         loops, in order to determine which files are new or old.
22435
22436 2005-09-18  Bruno Haible  <bruno@clisp.org>
22437
22438         * gnulib-tool (func_import): Comment out code that spits out the
22439         new files with --dry-run.
22440
22441 2005-09-18  Bruno Haible  <bruno@clisp.org>
22442
22443         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
22444
22445 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
22446
22447         * lib/stat-time.h: New file.
22448         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
22449         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
22450         in a different way.
22451         (timespec_cmp): New function.
22452         * lib/utimecmp.c: Include stat-time.h.
22453         (SYSCALL_RESOLUTION): Depend on whether various struct stat
22454         members exist, not on the obsolescent ST_MTIM_NSEC.
22455         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
22456
22457 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
22458
22459         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
22460
22461 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
22462
22463         * MODULES.html.sh (File system functions): Add stat-time.
22464         * modules/stat-time: New file.
22465         * modules/timespec (Files): Remove m4/st_mtim.m4; this
22466         is now done in a different way, by the stat-time module.
22467         * modules/utimecmp (Depends-on): Add stat-time.
22468
22469 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
22470
22471         * m4/st_mtim.m4: Remove.  Superseded by...
22472         * m4/stat-time.m4: New file.
22473         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
22474         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
22475
22476 2005-09-15  Derek Price  <derek@ximbiot.com>
22477
22478         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
22479
22480 2005-09-15  Derek Price  <derek@ximbiot.com>
22481
22482         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
22483         * lib/regex_internal.c: Ditto, using this...
22484         (__GNUC_PREREQ): ...new macro.
22485         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
22486         using...
22487         (__GNUC_PREREQ): ...this new macro.
22488
22489         * lib/strstr.h: Include string.h. Define strstr as a macro here.
22490
22491 2005-09-15  Derek Price  <derek@ximbiot.com>
22492             Paul Eggert  <eggert@cs.ucla.edu>
22493
22494         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
22495         changes, consolidating in...
22496         * lib/regex_internal.h: ...this file.
22497
22498 2005-09-13  Jim Meyering  <jim@meyering.net>
22499
22500         * lib/canon-host.c: Filter through gnu indent and reword comments
22501         slightly.
22502         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
22503
22504 2005-09-13  Derek Price  <derek@ximbiot.com>
22505
22506         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
22507         failure.
22508         Reported by Jim Meyering  <jim@meyering.net>.
22509
22510 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
22511
22512         * lib/base64.c: Typo.
22513         (base64_encode): Put b64str in initialized data section.
22514
22515 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
22516
22517         Merge glibc and coreutils changes into gnulib, plus a few
22518         extra fixes.
22519         * lib/md5.c: Use #error rather than a string.
22520         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
22521         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
22522         (__attribute__): Define to empty for non recent-GCC.
22523         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
22524         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
22525         Renamed from their non-__ counterparts, with new macros replacing
22526         them if not _LIBC.  Add __THROW attribute.
22527         (rol): Remove.
22528         (struct md5_ctx): Align buffer if using GCC.
22529         * lib/sha1.h (struct sha1_ctx): Likewise.
22530         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
22531         The old name was backwards.
22532         (NOTSWAP): Remove; not used.
22533         (rol): New macro, moved here from md5.h.
22534         (sha1_process_block): Remove a FIXME that doesn't make sense.
22535
22536 2005-09-12  Derek Price  <derek@ximbiot.com>
22537
22538         Return usable errors from canon-host.
22539         * lib/canon-host.h: New file.
22540         * lib/canon-host.c (canon_host): Wrap...
22541         (canon_host_r): ...this new function, which now relies exclusively on
22542         getaddrinfo.
22543         (ch_strerror): New function.
22544         (last_cherror): New global.
22545         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
22546         interface.
22547         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
22548         void *.
22549         (freeaddrinfo): Free ai->ai_canonname when set.
22550
22551 2005-09-12  Derek Price  <derek@ximbiot.com>
22552
22553         Make canon-host require getaddrinfo.
22554         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
22555         AC_LIBSOURCE canon-host.h.  Call...
22556         (gl_PREREQ_CANON_HOST): ...this new function, which requires
22557         gl_GETADDRINFO.
22558         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
22559
22560 2005-09-12  Derek Price  <derek@ximbiot.com>
22561
22562         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
22563         LGPL.
22564         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
22565
22566 2005-09-12  Derek Price  <derek@ximbiot.com>
22567
22568         * lib/gai_strerror.c: Include config.h when available.  Include
22569         getaddrinfo.h before other headers to test interface.
22570         Reported by Larry Jones <lawrence.jones@ugs.com>.
22571
22572 2005-09-12  Derek Price  <derek@ximbiot.com>
22573             Paul Eggert  <eggert@cs.ucla.edu>
22574
22575         * modules/glob (Files): Add glob-libc.h.
22576
22577 2005-09-12  Derek Price  <derek@ximbiot.com>
22578             Paul Eggert  <eggert@cs.ucla.edu>
22579
22580         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
22581         glob_.h, glob-libc.h.
22582         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
22583
22584 2005-09-12  Derek Price  <derek@ximbiot.com>
22585             Paul Eggert  <eggert@cs.ucla.edu>
22586
22587         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
22588         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
22589         protecting things that should be done only in gnulib contexts.
22590         * lib/glob_.h: New file, containing only the glob things needed for
22591         gnulib.
22592         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
22593         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
22594         (glob, globfree, glob_pattern_p): Now defined simply in terms of
22595         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
22596         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
22597         and to respect the namespace rules better.
22598
22599 2005-09-08  Simon Josefsson  <jas@extundo.com>
22600
22601         * modules/socklen: New file.
22602
22603 2005-09-08  Simon Josefsson  <jas@extundo.com>
22604
22605         * m4/socklen.m4: New file.
22606
22607 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
22608
22609         * modules/utimens (Files): Add m4/utimbuf.m4, since
22610         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
22611         Reported by Sergey Poznyakoff.
22612
22613 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
22614
22615         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
22616         definitions, since that's the preferred style in glibc.
22617         Fix a minor spacing issue, and update copyright notice to match
22618         glibc's.
22619
22620 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
22621
22622         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
22623
22624 2005-09-06  Simon Josefsson  <jas@extundo.com>
22625
22626         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
22627         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
22628
22629 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
22630
22631         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
22632         warning.
22633
22634 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
22635
22636         * config/srclist.txt: Add glibc bug 1302.
22637
22638 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
22639
22640         Change bitset word type from unsigned int to unsigned long int,
22641         as this has better performance on typical 64-bit hosts.
22642         Port bitset code to hosts with unusual word sizes.
22643         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
22644         (build_collating_symbol):
22645         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
22646         argument is a bitset.  This is merely a style issue, but it makes
22647         it clearer that an entire array is expected.
22648         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
22649         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
22650         Port to the case where bitset_word is not the same as unsigned int.
22651         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
22652         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
22653         Likewise.
22654         * lib/regexec.c (check_dst_limits_calc_pos_1,
22655         check_subexp_matching_top):
22656         (build_trtable, group_nodes_into_DFAstates):
22657         Likewise.
22658         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
22659         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
22660         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
22661         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
22662         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
22663         * lib/regcomp.c (optimize_subexps, lower_subexp):
22664         Work even if bitset_word has holes in its bitwise representation.
22665         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
22666         * lib/regexec.c (check_dst_limits_calc_pos_1,
22667         check_subexp_matching_top):
22668         Likewise.
22669         * lib/regex_internal.c (re_string_reconstruct):
22670         Don't assume UCHAR_MAX == 255.
22671         * lib/regex_internal.h (bitset_set_all): Likewise.
22672         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
22673         All uses changed.
22674         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
22675         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
22676         All uses changed.
22677         (BITSET_WORD_MAX): New macro.
22678         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
22679         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
22680         (bitset_empty, bitset_copy):
22681         Prefer sizeof (bitset) to multiplying it out ourselves.
22682         (bitset_not_merge): Remove; unused.
22683         (bitset_contain): Return bool, not unsigned int with one bit on.
22684         All callers changed.
22685         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
22686         alignment than re_node_set; do this by defining a new internal
22687         type struct dests_alloc and using it to allocate memory.
22688
22689 2005-09-05  Bruno Haible  <bruno@clisp.org>
22690
22691         * gnulib-tool (func_import): Fix comparison in handling of symbolic
22692         links.
22693
22694 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
22695
22696         * modules/size_max (Makefile.am): Add size_max.h
22697
22698 2005-09-04  Derek Price  <derek@ximbiot.com>
22699
22700         * gnulib-tool (func_import): Fix reversed $symbolic logic.
22701
22702 2005-09-03  Simon Josefsson  <jas@extundo.com>
22703
22704         * gnulib-tool: Fix typo.
22705
22706 2005-09-03  Simon Josefsson  <jas@extundo.com>
22707
22708         * config/srclist.txt: Add glibc bug 1293.
22709
22710 2005-09-03  Derek Price  <derek@ximbiot.com>
22711
22712         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
22713         From Larry Jones <lawrence.jones@ugs.com>.
22714
22715 2005-09-02  Simon Josefsson  <jas@extundo.com>
22716
22717         * modules/socklen: New file.
22718
22719 2005-09-02  Simon Josefsson  <jas@extundo.com>
22720
22721         * modules/havelib: New module.
22722
22723         * modules/gettext, modules/iconv, modules/lock, modules/readline:
22724         Use havelib.
22725
22726 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
22727
22728         Check for arithmetic overflow when calculating sizes, to prevent
22729         some buffer-overflow issues.  These patches are conservative, in the
22730         sense that when I couldn't determine whether an overflow was possible,
22731         I inserted a run-time check.
22732         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
22733         macros.
22734         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
22735         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
22736         (re_xnrealloc, re_x2nrealloc): New inline functions.
22737         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
22738         parse_bracket_exp):
22739         (build_equiv_class, build_charclass): Check for arithmetic overflow
22740         in size expression calculations.
22741         * lib/regex_internal.c (re_string_realloc_buffers):
22742         (build_wcs_upper_buffer, re_node_set_add_intersect):
22743         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
22744         (re_dfa_add_node, register_state): Likewise.
22745         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
22746         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
22747         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
22748         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
22749
22750 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
22751
22752         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
22753         m4/ulonglong.m4.  Problem reported by Martin Lambers.
22754
22755 2005-09-02  Bruno Haible  <bruno@clisp.org>
22756
22757         Support for lib vs. lib64 distinction on biarch platforms.
22758         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
22759         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
22760         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
22761
22762 2005-09-02  Bruno Haible  <bruno@clisp.org>
22763
22764         * gnulib-tool (import): In the other first-use case, provide defaults
22765         as well.
22766
22767 2005-09-02  Bruno Haible  <bruno@clisp.org>
22768
22769         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
22770         patches not yet found in the latest gettext release.
22771
22772 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22773
22774         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
22775         to avoid a collision with bits/local_lim.h in glibc.
22776         All uses changed.  Problem reported by Dmitry V. Levin in
22777         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
22778
22779         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
22780         bugs in int versus size_t comparisons.
22781         (re_string_context_at): Fix bug where the code assumed that
22782         Idx is signed.
22783
22784         Use bool where appropriate.
22785         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
22786         All callers changed.
22787         (calc_eclosure_iter): Likewise, for ROOT arg.
22788         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
22789         (build_charclass_op): Likewise, for NON_MATCH arg.
22790         * lib/regex_internal.c (re_string_allocate, re_string_construct):
22791         (re_string_construct_common): Likewise, for ICASE arg.
22792         * lib/regexec.c (re_search_2_stub, re_search_stub):
22793         Likewise, for RET_LEN arg.
22794         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
22795         (set_regs): Likewise, for FL_BACKTRACK arg.
22796         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
22797         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
22798         (calc_eclosure_iter, parse_bracket_exp):
22799         Use bool for internal variables that are booleans.
22800         * lib/regexec.c (re_search_internal, check_matching,
22801         proceed_next_node):
22802         (set_regs, build_sifted_states, sift_states_bkref):
22803         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
22804         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
22805         (find_collation_sequence_value):
22806         Likewise.
22807         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
22808         (re_node_set_compare):
22809         Return bool, not int. All callers changed.
22810         * lib/regexec.c (check_halt_node_context, check_dst_limits):
22811         (build_trtable, check_node_accept): Likewise.
22812         * lib/regex_internal.h: Include stdbool.h.
22813
22814         Fix bugs uncovered when converting to bool.
22815         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
22816         failure instead of charging ahead blindly.
22817         * lib/regex_internal.c (register_state): Likewise.
22818         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
22819         for freeing internal storage.
22820         (group_nodes_into_DFA_states): Use unsigned int, not int, for
22821         bitset pieces used as boolean, to avoid undefined behavior
22822         on hosts that do int overflow checking.
22823
22824 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22825
22826         * config/srclist.txt: Add glibc bugs 1285-1287.
22827
22828 2005-09-01  Jim Meyering  <jim@meyering.net>
22829
22830         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
22831         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
22832         Require gl_STAT_MACROS, too.
22833
22834 2005-09-01  Bruno Haible  <bruno@clisp.org>
22835
22836         * gnulib-tool (import): In the first-use case, provide defaults.
22837
22838 2005-09-01  Bruno Haible  <bruno@clisp.org>
22839
22840         * gnulib-tool (func_import): Remove the .tmp files.
22841
22842 2005-09-01  Bruno Haible  <bruno@clisp.org>
22843
22844         * gnulib-tool (func_import): Fix handling of symbolic links.
22845
22846 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22847
22848         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
22849         old glibc regex code mishandles strings longer than 2**31 bytes.
22850         This patch fixes this when the regex code is used in gnulib
22851         (i.e., outside glibc).
22852
22853         This patch should not affect the use of the regex code inside
22854         glibc.  No doubt this problem also needs to be handled for glibc
22855         as well, but the result will be an incompatible change to the
22856         glibc ABI, and the old ABI will have to be supported too.  That
22857         can be the the subject for another patch.
22858
22859         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
22860         governing whether the rest of this patch is active.  By default,
22861         the macro is disabled and the patch has no effect.
22862         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
22863         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
22864         (struct re_pattern_buffer, re_search, re_search_2, re_match):
22865         (re_match_2, re_set_registers): Use the new types.
22866         * lib/regex_internal.h (Idx, re_hashval_t): New types.
22867         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
22868         New macros.
22869         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
22870         (re_string_context_at, bin_tree_t, re_dfastate_t):
22871         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
22872         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
22873         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
22874         (re_string_char_size_at, re_string_wchar_at):
22875         (re_string_elem_size_at):
22876         Use the new types and macros to port to 64-bit hosts.
22877         Use unsigned types for internal values, so that the code
22878         mostly works even for arrays larger than SSIZE_MAX.
22879         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
22880         (search_duplicated_node, calc_eclosure_iter, fetch_number):
22881         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
22882         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
22883         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
22884         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
22885         (calc_inveclosure, parse_dup_op, build_range_exp):
22886         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
22887         (fetch_number, create_token_tree, mark_opt_subexp):
22888         Likewise.
22889         * lib/regex_internal.c (re_string_construct_common,
22890         create_ci_newstate):
22891         (create_cd_newstate, re_string_allocate, re_string_construct):
22892         (re_string_realloc_buffers, build_wcs_upper_buffer):
22893         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
22894         (re_string_reconstruct, re_string_peek_byte_case):
22895         (re_string_fetch_byte_case, re_string_context_at):
22896         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
22897         (re_node_set_init_copy, re_node_set_add_intersect):
22898         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
22899         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
22900         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
22901         (re_acquire_state, re_acquire_state_context, register_state):
22902         Likewise.
22903         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
22904         search_cur_bkref_entry):
22905         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
22906         (re_search_internal, re_search_2_stub, re_search_stub)
22907         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
22908         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
22909         (update_cur_sifted_state, check_dst_limits):
22910         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
22911         (check_subexp_limits, sift_states_bkref, merge_state_array):
22912         (check_subexp_matching_top, get_subexp, get_subexp_sub):
22913         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
22914         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
22915         (expand_bkref_cache, check_node_accept_bytes):
22916         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
22917         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
22918         (acquire_init_state_context, check_halt_node_context):
22919         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
22920         (sift_states_backward, clean_state_log_if_needed):
22921         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
22922         (find_recover_state, transit_state_sb, transit_state_mb):
22923         (transit_state_bkref, build_trtable, match_ctx_clean):
22924         Likewise.
22925         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
22926         to work around an assumption that REG_MISSING is negative.
22927
22928         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
22929         (seek_collating_symbol_entry) [defined _LIBC]:
22930         (lookup_collation_sequence_value) [defined _LIBC]:
22931         (build_range_exp, build_collating_symbol) [defined _LIBC]:
22932         Use prototypes rather than old-style function definitions.
22933         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
22934         (transit_state_sb) [0]:
22935         (find_collation_sequence_value) [defined _LIBC]: Likewise.
22936
22937         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
22938         rm_eo.
22939
22940         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
22941         (optimize_subexps, lower_subexp):
22942         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
22943         since the signed shift might overflow.  Use 1u<<31 instead.
22944         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
22945         Likewise.
22946         * lib/regexec.c (check_dst_limits_calc_pos_1,
22947         check_subexp_matching_top): Likewise.
22948
22949         * lib/regcomp.c (optimize_subexps, lower_subexp):
22950         Use CHAR_BIT rather than 8, for clarity.
22951         * lib/regexec.c (check_dst_limits_calc_pos_1):
22952         (check_subexp_matching_top): Likewise.
22953         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
22954         have to worry about portability issues when shifting it left.
22955         Remove no-longer-needed test for table_size > 0.
22956         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
22957         in a word, as the resulting behavior is undefined.
22958         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
22959         in one case, a <= should have been an <, and in another case the
22960         whole test was missing.
22961         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
22962         the standard name CHAR_BIT.
22963         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
22964         this is not true on one's complement and signed-magnitude hosts.
22965
22966         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
22967         next_last_offset.
22968         (struct re_dfa_t): Remove unused member states_alloc.
22969         * lib/regcomp.c (init_dfa): Don't initialize unused members.
22970
22971 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22972
22973         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
22974         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
22975         and large-file glibc and in 32-bit large-file Solaris.
22976
22977 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22978
22979         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
22980         lengths fit in regoff_t; this isn't true if regoff_t is the same
22981         width as size_t.
22982         * lib/regex.c (re_search_internal): 5th arg is LAST_START
22983         (= START + RANGE) instead of RANGE.  This avoids overflow
22984         problems when regoff_t is the same width as size_t.
22985         All callers changed.
22986         (re_search_2_stub): Check for overflow when adding the
22987         sizes of the two strings.
22988         (re_search_stub): Check for overflow when adding START
22989         to RANGE; if it occurs, substitute the extreme value.
22990
22991 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22992
22993         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
22994
22995 2005-08-31  Jim Meyering  <jim@meyering.net>
22996
22997         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
22998         a pointer-to-const.
22999         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
23000         (register_state): Likewise.
23001         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
23002         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
23003         (group_nodes_into_DFAstates): Likewise.
23004
23005 2005-08-31  Jim Meyering  <jim@meyering.net>
23006
23007         * check-module: Add a FIXME comment.
23008
23009 2005-08-31  Eric Blake  <ebb9@byu.net>
23010
23011         * modules/unistd-safer (Files): Add unistd--.h.
23012         * modules/stdio-safer (Files): Add stdio--.h.
23013
23014 2005-08-31  Derek Price  <derek@ximbiot.com>
23015
23016         * lib/getdelim.c (getdelim): Return EOF on EOF.
23017         Reported by Larry Jones <lawrence.jones@ugs.com>.
23018
23019 2005-08-31  Bruno Haible  <bruno@clisp.org>
23020
23021         Avoid unnecessary diffs in the generated lib/Makefile.am.
23022         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
23023         the generated files.
23024         (func_import): Don't set cmd.
23025
23026 2005-08-31  Bruno Haible  <bruno@clisp.org>
23027
23028         * lib/strstr.c: Include <stddef.h>, for NULL.
23029         * lib/strcasestr.c: Likewise.
23030         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
23031
23032 2005-08-31  Bruno Haible  <bruno@clisp.org>
23033
23034         * gnulib-tool: New option --macro-prefix.
23035         (func_import): Use macro_prefix.
23036         (import): Handle option --macro-prefix.
23037
23038 2005-08-31  Bruno Haible  <bruno@clisp.org>
23039
23040         * gnulib-tool (import): Rename most ac_* variables to cached_*.
23041         Also use new variables cached_lgpl, cached_libtool.
23042
23043 2005-08-31  Bruno Haible  <bruno@clisp.org>
23044
23045         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
23046         always instantiating them.
23047
23048 2005-08-31  Bruno Haible  <bruno@clisp.org>
23049
23050         * gnulib-tool (func_import): Read the previous cached settings
23051         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
23052         earlier added by gnulib but are now dropped. Warn when a gnulib file
23053         overwrites a non-gnulib file.
23054
23055 2005-08-31  Bruno Haible  <bruno@clisp.org>
23056
23057         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
23058         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
23059         projects that don't keep autogenerated files in CVS. Put into
23060         actioncmd only the specified modules, not the transitive closure.
23061
23062 2005-08-31  Bruno Haible  <bruno@clisp.org>
23063
23064         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
23065         Create directories that shall be filled.
23066         (import): Don't look for gl_* macros in configure.ac. Recurse across
23067         all directories containing a gnulib-cache.m4 files, if meaningful.
23068
23069 2005-08-31  Bruno Haible  <bruno@clisp.org>
23070
23071         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
23072         (import): Set seen_libtool when we see gl_LIBTOOL.
23073
23074 2005-08-31  Bruno Haible  <bruno@clisp.org>
23075
23076         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
23077         declaration macro definitions from generated gnulib.m4.
23078
23079 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
23080
23081         * lib/iconvme.h: Add prototype for iconv_alloc.
23082
23083 2005-08-29  Simon Josefsson  <jas@extundo.com>
23084
23085         * lib/iconvme.c: Fix errno.
23086
23087 2005-08-29  Bruno Haible  <bruno@clisp.org>
23088
23089         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
23090         that it works when the directory contains spaces.
23091
23092 2005-08-29  Bruno Haible  <bruno@clisp.org>
23093
23094         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
23095
23096 2005-08-29  Bruno Haible  <bruno@clisp.org>
23097
23098         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
23099         Emit more advice.
23100
23101 2005-08-29  Bruno Haible  <bruno@clisp.org>
23102         and Stepan Kasal  <kasal@ucw.cz>
23103
23104         * check-module: If more parameters are given, check each of them
23105         separately; add more exceptions, as noted by Jim Meyering.
23106         (check_module): New procedure.
23107         (%exempt_header): Now contains all exceptions.
23108
23109 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
23110
23111         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
23112
23113 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
23114
23115         * lib/iconvme.c: Split iconv_string into iconv_alloc.
23116
23117 2005-08-28  Bruno Haible  <bruno@clisp.org>
23118
23119         * m4/gnulib-tool.m4: New file.
23120
23121 2005-08-27  Jim Meyering  <jim@meyering.net>
23122
23123         * modules/unistd-safer (Files): Add pipe-safer.c.
23124         * modules/fcntl-safer (Files): Add creat-safer.c.
23125
23126 2005-08-27  Jim Meyering  <jim@meyering.net>
23127
23128         * m4/stdlib-safer.m4: New file.  From coreutils.
23129         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
23130         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
23131         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
23132         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
23133         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
23134
23135 2005-08-27  Jim Meyering  <jim@meyering.net>
23136
23137         * lib/fopen-safer.c: Merge minor changes from coreutils.
23138         * lib/dup-safer.c: Likewise.
23139         * lib/fd-safer.c: Likewise.
23140
23141         Merge from coreutils.
23142         * lib/stdio--.h: New file.
23143         * lib/stdlib--.h: New file.
23144         * lib/mkstemp-safer.c: New file.
23145
23146         GNU tar needs these.
23147         * lib/pipe-safer.c: New file.
23148         * lib/creat-safer.c: New file.
23149         * lib/fcntl--.h (creat): Define to creat_safer.
23150         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
23151         * lib/unistd--.h (pipe): Define to pipe_safer.
23152         * lib/unistd-safer.h: Declare pipe_safer.
23153
23154 2005-08-26  Simon Josefsson  <jas@extundo.com>
23155
23156         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
23157         Haible <bruno@clisp.org>.
23158
23159 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
23160
23161         * lib/regex_internal.h: Remove all references to
23162         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
23163         or better.
23164         (bitset_not, bitset_merge, bitset_not_merge):
23165         (bitset_mask, re_string_allocate, re_string_construct):
23166         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
23167         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
23168         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
23169         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
23170         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
23171         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
23172         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
23173         (re_acquire_state_context):
23174         Remove unnecessary forward decls.
23175         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
23176         Put __attribute at function definition,
23177         now that the function decl has been removed.
23178         * lib/regex_internal.c (re_string_peek_byte_case):
23179         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
23180         Likewise.
23181
23182 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
23183
23184         * m4/regex.m4: Add AC_PREREQ(2.50).
23185         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
23186
23187 2005-08-25  Simon Josefsson  <jas@extundo.com>
23188
23189         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
23190         __fsetlocking.
23191
23192 2005-08-25  Simon Josefsson  <jas@extundo.com>
23193
23194         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
23195         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
23196         GLIBC specific code.
23197
23198 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
23199
23200         Make regex safe for g++.  This fixes one real bug (an "err"
23201         that should have been "*err").  g++ problem reported by
23202         Sam Steingold.
23203         * lib/regex_internal.h (re_calloc): New macro, consistent with
23204         re_malloc etc.  All callers of calloc changed to use re_calloc.
23205         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
23206         not int.  All callers changed.
23207         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
23208         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
23209         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
23210         (find_recover_state): Change "err" to "*err"; this fixes what
23211         appears to be a real bug.
23212         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
23213         versus int.
23214
23215 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
23216
23217         * modules/regex (Depends-on): Add malloc, since the code
23218         assumes that !malloc(0) means failure.
23219
23220 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
23221
23222         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
23223
23224         alloca modernization/simplification for regex.
23225         * lib/regex.c: Remove portability cruft for alloca.  This no longer
23226         needs to be at the start of the file, and can be moved into
23227         regex_internal.h and simplified.
23228         * lib/regex_internal.h: Include <alloca.h>.
23229         (__libc_use_alloca) [!defined _LIBC]: New macro.
23230         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
23231         now works outside glibc.
23232
23233 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
23234
23235         * config/srclist.txt: Add glibc bugs 1241, 1245.
23236
23237 2005-08-25  Jim Meyering  <jim@meyering.net>
23238
23239         * lib/open-safer.c: Include <config.h>.
23240         Otherwise, we'd lose LARGEFILE support in any file using
23241         e.g. "fcntl--.h"
23242
23243 2005-08-25  Bruno Haible  <bruno@clisp.org>
23244
23245         * m4/minmax.m4: Require autoconf 2.52.
23246         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
23247         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
23248         alternatives of translit over the alphabet.
23249         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
23250
23251 2005-08-24  Simon Josefsson  <jas@extundo.com>
23252
23253         * tests/test-getpass.c: New file.
23254
23255 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23256
23257         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
23258         for GNU regex features.
23259
23260 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23261
23262         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
23263         * lib/regex.h (regerror): Likewise.
23264
23265         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
23266         requires this.  (The code never needed it.)
23267
23268         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
23269         All uses of recently-renamed identifiers changed to use the new,
23270         POSIX-compliant names.  The code will build and run just fine
23271         without these changes, but it's better to eat our own dog food
23272         and use the standard-conforming names.
23273
23274         * lib/regex.h: Fix a multitude of POSIX name space violations.
23275         These changes have an effect only for programs that define
23276         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
23277         do not change anything for programs compiled in the normal way.
23278         Also, there is no effect on the ABI.
23279
23280         (_REGEX_SOURCE): New macro.
23281         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
23282         defined and _GNU_SOURCE is not; this fixes a name space violation.
23283
23284         Rename the following macros to obey POSIX requirements.
23285         The old names are still visible as macros if _REGEX_SOURCE is defined.
23286         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
23287         RE_BACKSLASH_ESCAPE_IN_LISTS.
23288         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
23289         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
23290         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
23291         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
23292         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
23293         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
23294         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
23295         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
23296         (REG_INTERVALS): renamed from RE_INTERVALS.
23297         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
23298         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
23299         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
23300         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
23301         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
23302         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
23303         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
23304         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
23305         RE_UNMATCHED_RIGHT_PAREN_ORD.
23306         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
23307         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
23308         (REG_DEBUG): renamed from RE_DEBUG.
23309         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
23310         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
23311         unusual, since we can't clash with the POSIX REG_ICASE.
23312         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
23313         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
23314         (REG_NO_SUB): renamed from RE_NO_SUB.
23315         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
23316         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
23317         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
23318         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
23319         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
23320         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
23321         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
23322         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
23323         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
23324         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
23325         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
23326         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
23327         RE_SYNTAX_POSIX_MINIMAL_BASIC.
23328         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
23329         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
23330         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
23331         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
23332         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
23333         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
23334         (REG_FIXED): Renamed from REGS_FIXED.
23335         (REG_NREGS): Renamed from RE_NREGS.
23336
23337         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
23338         of other REG_* macros, since POSIX says the user is allowed to
23339         #undef these macros selectively.
23340
23341         (reg_errcode_t): Update comment stating what other tables need
23342         to be consistent.
23343
23344         Rename the following enum values to obey POSIX requirements.
23345         The old names are still visible as macros.
23346         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
23347         is not defined, since GNU is supposed to be a superset of POSIX as
23348         much as possible, and since we want reg_errcode_t to be a signed
23349         type for implementation consistency.
23350         (_REG_NOERROR): Renamed from REG_NOERROR.
23351         (_REG_NOMATCH): Renamed from REG_NOMATCH.
23352         (_REG_BADPAT): Renamed from REG_BADPAT.
23353         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
23354         (_REG_ECTYPE): Renamed from REG_ECTYPE.
23355         (_REG_EESCAPE): Renamed from REG_EESCAPE.
23356         (_REG_ESUBREG): Renamed from REG_ESUBREG.
23357         (_REG_EBRACK): Renamed from REG_EBRACK.
23358         (_REG_EPAREN): Renamed from REG_EPAREN.
23359         (_REG_EBRACE): Renamed from REG_EBRACE.
23360         (_REG_BADBR): Renamed from REG_BADBR.
23361         (_REG_ERANGE): Renamed from REG_ERANGE.
23362         (_REG_ESPACE): Renamed from REG_ESPACE.
23363         (_REG_BADRPT): Renamed from REG_BADRPT.
23364         (_REG_EEND): Renamed from REG_EEND.
23365         (_REG_ESIZE): Renamed from REG_ESIZE.
23366         (_REG_ERPAREN): Renamed from REG_ERPAREN.
23367         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
23368         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
23369         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
23370         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
23371
23372         (_REG_RE_NAME, _REG_RM_NAME): New macros.
23373         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
23374         changed.  But support the old name if the new one is not defined
23375         and if _REGEX_SOURCE.
23376
23377         Change the following member names in struct re_pattern_buffer.
23378         The old names are still supported if !_REGEX_SOURCE.
23379         The new names are always supported, regardless of _REGEX_SOURCE.
23380         (re_buffer): Renamed from buffer.
23381         (re_allocated): Renamed from allocated.
23382         (re_used): Renamed from used.
23383         (re_syntax): Renamed from syntax.
23384         (re_fastmap): Renamed from fastmap.
23385         (re_translate): Renamed from translate.
23386         (re_can_be_null): Renamed from can_be_null.
23387         (re_regs_allocated): Renamed from regs_allocated.
23388         (re_fastmap_accurate): Renamed from fastmap_accurate.
23389         (re_no_sub): Renamed from no_sub.
23390         (re_not_bol): Renamed from not_bol.
23391         (re_not_eol): Renamed from not_eol.
23392         (re_newline_anchor): Renamed from newline_anchor.
23393
23394         Change the following member names in struct re_registers.
23395         The old names are still supported if !_REGEX_SOURCE.
23396         The new names are always supported, regardless of _REGEX_SOURCE.
23397         (rm_num_regs): Renamed from num_regs.
23398         (rm_start): Renamed from start.
23399         (rm_end): Renamed from end.
23400
23401         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
23402         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
23403         Prepend __ to parameter names.
23404
23405         Undo yesterday's changes.
23406
23407 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23408
23409         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
23410         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
23411         lib/regex.c.
23412
23413 2005-08-24  Jim Meyering  <jim@meyering.net>
23414
23415         Sync from coreutils.
23416         * m4/fcntl-safer.m4: New file.
23417
23418         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
23419         and object files for this module.
23420
23421 2005-08-24  Jim Meyering  <jim@meyering.net>
23422
23423         Sync from coreutils.
23424         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
23425
23426 2005-08-24  Jim Meyering  <jim@meyering.net>
23427
23428         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
23429         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
23430
23431 2005-08-24  Jim Meyering  <jim@meyering.net>
23432
23433         * modules/fcntl-safer: New module.
23434         * modules/fts (Depends-on): Add fcntl-safer.
23435         * MODULES.html.sh (File descriptor based Input/Output):
23436         Add fcntl-safer.
23437
23438 2005-08-24  Bruno Haible  <bruno@clisp.org>
23439
23440         Support for unit test modules.
23441         * modules/README: Mention tests modules.
23442         * modules/TEMPLATE-TESTS: New file.
23443         * gnulib-tool: New options --extract-tests-module, --with-tests and
23444         --tests-base (unused for the moment).
23445         (testsbase, inctests): New variables.
23446         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
23447         (func_verify_module): Exclude TEMPLATE-TESTS.
23448         (func_verify_nontests_module, func_verify_tests_module): New functions.
23449         (func_get_dependencies): Add implicit dependency for tests modules.
23450         (func_get_tests_module): New function.
23451         (func_modules_transitive_closure): When --with-tests was specified,
23452         include the unit tests as well, unless explicitly avoided.
23453         (func_emit_lib_Makefile_am): Ignore the tests modules here.
23454         (func_emit_tests_Makefile_am): New function.
23455         (func_create_testdir): When --with-tests was specified, emit a
23456         tests/ directory.
23457         * MODULES.html.sh (Future developments): Update.
23458
23459 2005-08-24  Bruno Haible  <bruno@clisp.org>
23460
23461         * modules/tls-tests: New file.
23462         * tests/test-tls.c: New file, from GNU gettext.
23463
23464 2005-08-24  Bruno Haible  <bruno@clisp.org>
23465
23466         * modules/lock-tests: New file.
23467         * tests/test-lock.c: New file, from GNU gettext.
23468
23469 2005-08-24  Bruno Haible  <bruno@clisp.org>
23470
23471         * lib/lock.h: Add multiple inclusion guard.
23472         * lib/tls.h: Add multiple inclusion guard.
23473
23474 2005-08-24  Bruno Haible  <bruno@clisp.org>
23475
23476         * gnulib-tool: Add support for the --aux-dir option to
23477         --create-testdir, --create-megatestdir, --test, --megatest.
23478         (func_create_testdir, func_create_megatestdir): Optionally emit a
23479         AC_CONFIG_AUX_DIR directive.
23480         (create-testdir, create-megatestdir, test, megatest): Provide a
23481         default value for $auxdir.
23482
23483 2005-08-24  Bruno Haible  <bruno@clisp.org>
23484
23485         * gnulib-tool (import): Use compound statement instead of subshell
23486         where possible.
23487
23488 2005-08-24  Bruno Haible  <bruno@clisp.org>
23489
23490         * gnulib-tool (import): Change --aux-dir default to "build-aux".
23491
23492 2005-08-24  Bruno Haible  <bruno@clisp.org>
23493
23494         * gnulib-tool (func_version): Update.
23495
23496 2005-08-24  Bruno Haible  <bruno@clisp.org>
23497
23498         * gnulib-tool (func_import, func_create_testdir,
23499         func_create_megatestdir): Quote all autoconf macro arguments.
23500
23501 2005-08-24  Bruno Haible  <bruno@clisp.org>
23502
23503         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
23504         option --force, because --force causes the aclocal.m4 of each
23505         subdirectory to be newer than the corresponding config.h.in.
23506
23507 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
23508
23509         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
23510         All contents moved to gl_REGEX.
23511         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
23512         assume that it does.
23513
23514 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
23515
23516         * lib/regex.h (REG_NOSYS)
23517         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
23518         Define, since POSIX requires it as of 2001.
23519         (_REG_ENOSYS)
23520         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
23521         New private symbol, used to keep the enum signed in all cases.
23522         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
23523         Youngman in
23524         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
23525
23526         * lib/regex_internal.c (re_string_skip_chars, register_state):
23527         (calc_state_hash):
23528         Remove forward decls; no longer needed now that we use prototypes.
23529         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
23530         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
23531         (clean_state_log_if_needed): Likewise.
23532
23533 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
23534
23535         * config/srclist.txt: Add glibc bugs 1231-1233.
23536
23537 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
23538
23539         Fix problems reported by Sam Steingold in
23540         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
23541         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
23542         assumed that reg_errcode_t is a signed type, which is not
23543         necessarily true if _XOPEN_SOURCE is not defined.
23544         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
23545         since some compilers warn about it otherwise.
23546
23547 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
23548
23549         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
23550         (init_word_char, create_initial_state, duplicate_node_closure):
23551         (fetch_token, peek_token_bracket, build_range_exp):
23552         (build_collating_symbol): Remove forward decls; no longer needed
23553         now that we use prototypes.
23554
23555         * lib/regcomp.c:
23556         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
23557         (re_compile_fastmap_iter, regcomp, regerror, regfree):
23558         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
23559         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
23560         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
23561         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
23562         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
23563         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
23564         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
23565         (build_range_exp, build_collating_symbol, parse_bracket_exp):
23566         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
23567         (build_charclass, build_charclass_op, fetch_number, create_tree):
23568         (create_token_tree, mark_opt_subexp, duplicate_tree):
23569         Use prototypes rather than old-style definitions.
23570
23571         * lib/regex_internal.c:
23572         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
23573         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
23574         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
23575         (re_string_reconstruct, re_string_peek_byte_case):
23576         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
23577         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
23578         (re_node_set_init_copy, re_node_set_add_intersect):
23579         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
23580         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
23581         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
23582         (re_acquire_state, re_acquire_state_context, register_state):
23583         (create_ci_newstate, create_cd_newstate, free_state):
23584         Likewise.
23585         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
23586         re_search_2):
23587         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
23588         (re_search_internal, prune_impossible_nodes):
23589         (acquire_init_state_context, check_matching, static):
23590         (check_halt_node_context, check_halt_state_context, proceed_next_node):
23591         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
23592         (update_regs, sift_states_backward, build_sifted_states):
23593         (clean_state_log_if_needed, merge_state_array):
23594         (update_cur_sifted_state, add_epsilon_src_nodes):
23595         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
23596         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
23597         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
23598         (find_recover_state, check_subexp_matching_top, transit_state_mb):
23599         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
23600         (check_arrival, check_arrival_add_next_nodes):
23601         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
23602         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
23603         (check_node_accept_bytes, check_node_accept, extend_buffers):
23604         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
23605         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
23606         (sift_ctx_init):
23607         Likewise.
23608
23609         * lib/regex_internal.h:
23610         (re_string_allocate, re_string_construct, re_string_reconstruct):
23611         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
23612         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
23613         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
23614         (re_string_context_at, re_string_peek_byte_case):
23615         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
23616         is defined, since we now use prototypes always.
23617
23618         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
23619         C89 or better.  All uses removed.
23620
23621 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
23622
23623         * config/srclist.txt: Add glibc bugs 1220-1227.
23624
23625 2005-08-20  Jim Meyering  <jim@meyering.net>
23626
23627         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
23628         of unused local, dfa.
23629
23630 2005-08-20  Bruno Haible  <bruno@clisp.org>
23631
23632         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
23633
23634 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
23635
23636         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
23637         (re_node_set_insert_last, re_dfa_add_node):
23638         Rename local variables to avoid GCC shadowing warnings.
23639
23640 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
23641
23642         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
23643         [defined lint]: Suppress bogus uninitialized-variable warnings.
23644
23645         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
23646         and let the caller return REG_ESPACE if out of space.  This
23647         removes an uninitialied-variable warning with GCC 4.0.1, and also
23648         avoids taking the address of a local variable.  All callers
23649         changed.
23650
23651 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
23652
23653         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
23654         $LIBCSRC/posix/regexec.c.
23655         Add glibc bug 1217 for regcomp.c.
23656
23657 2005-08-19  Jim Meyering  <jim@meyering.net>
23658
23659         * lib/regexec.c (proceed_next_node): Redo local variables to
23660         avoid GCC shadowing warnings.
23661
23662 2005-08-18  Bruno Haible  <bruno@clisp.org>
23663
23664         * lib/strstr.c (strstr): Fix return value in multibyte case.
23665         * lib/strcasestr.c (strcasestr): Likewise.
23666
23667 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
23668
23669         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
23670
23671 2005-08-17  Jim Meyering  <jim@meyering.net>
23672
23673         Make the %s format (seconds since the epoch) work for a negative
23674         number and when used with a zero-padded field width, e.g. %015s.
23675
23676         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
23677         label so that it precedes the code to set `digits'.  Otherwise,
23678         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
23679         print `00-22'.  Now, it prints `-0022', as it should.
23680
23681 2005-08-17  Bruno Haible  <bruno@clisp.org>
23682
23683         * modules/strstr (Files): Add m4/mbrtowc.m4.
23684         (Depends-on): Add mbuiter.
23685
23686 2005-08-17  Bruno Haible  <bruno@clisp.org>
23687
23688         * modules/strcasestr: New file.
23689         * MODULES.html.sh (String handling, based on ANSI C 89): Add
23690         strcasestr.
23691
23692 2005-08-17  Bruno Haible  <bruno@clisp.org>
23693
23694         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
23695
23696 2005-08-17  Bruno Haible  <bruno@clisp.org>
23697
23698         * modules/mbuiter: New file.
23699         * MODULES.html.sh (Extended multibyte and wide character utilities):
23700         Add mbuiter.
23701
23702 2005-08-17  Bruno Haible  <bruno@clisp.org>
23703
23704         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
23705         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
23706
23707 2005-08-17  Bruno Haible  <bruno@clisp.org>
23708
23709         * m4/strcasestr.m4: New file.
23710
23711 2005-08-17  Bruno Haible  <bruno@clisp.org>
23712
23713         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
23714         * lib/strstr.c: Completely rewritten, with multibyte locale support.
23715
23716 2005-08-17  Bruno Haible  <bruno@clisp.org>
23717
23718         * lib/strcasestr.h: New file.
23719         * lib/strcasestr.c: New file.
23720
23721 2005-08-17  Bruno Haible  <bruno@clisp.org>
23722
23723         * lib/strcasecmp.c: Use mbuiter.h.
23724
23725 2005-08-17  Bruno Haible  <bruno@clisp.org>
23726
23727         * lib/mbuiter.h: New file.
23728
23729 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
23730
23731         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
23732         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
23733         and gl_GETOPT are both invoked via different paths (as happens
23734         with GNU tar CVS because it uses both argp and getopt), the former
23735         wins.
23736
23737 2005-08-16  Bruno Haible  <bruno@clisp.org>
23738
23739         * modules/tls: New file.
23740         * MODULES.html.sh (Multithreading): Add tls.
23741
23742 2005-08-16  Bruno Haible  <bruno@clisp.org>
23743
23744         * modules/strnlen1: New file.
23745         * MODULES.html.sh (String handling): Add strnlen1.
23746
23747 2005-08-16  Bruno Haible  <bruno@clisp.org>
23748
23749         * modules/strcase (Files): Add m4/mbrtowc.m4.
23750         (Depends-on): Add strnlen1, mbchar.
23751
23752 2005-08-16  Bruno Haible  <bruno@clisp.org>
23753
23754         * modules/mbiter: New file.
23755         * MODULES.html.sh (Extended multibyte and wide character utilities):
23756         Add mbiter.
23757
23758 2005-08-16  Bruno Haible  <bruno@clisp.org>
23759
23760         * modules/mbfile: New file.
23761         * MODULES.html.sh (Extended multibyte and wide character utilities):
23762         Add mbfile.
23763
23764 2005-08-16  Bruno Haible  <bruno@clisp.org>
23765
23766         * modules/mbchar: New file.
23767         * MODULES.html.sh (Extended multibyte and wide character utilities):
23768         New section.
23769
23770 2005-08-16  Bruno Haible  <bruno@clisp.org>
23771
23772         * m4/tls.m4: New file, from GNU gettext.
23773
23774 2005-08-16  Bruno Haible  <bruno@clisp.org>
23775
23776         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
23777         always.
23778         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
23779
23780 2005-08-16  Bruno Haible  <bruno@clisp.org>
23781
23782         * m4/mbiter.m4: New file.
23783
23784 2005-08-16  Bruno Haible  <bruno@clisp.org>
23785
23786         * m4/mbfile.m4: New file.
23787
23788 2005-08-16  Bruno Haible  <bruno@clisp.org>
23789
23790         * m4/mbchar.m4: New file.
23791
23792 2005-08-16  Bruno Haible  <bruno@clisp.org>
23793
23794         * lib/tls.h: New file, from GNU gettext.
23795         * lib/tls.c: New file, from GNU gettext.
23796
23797 2005-08-16  Bruno Haible  <bruno@clisp.org>
23798
23799         * lib/strnlen1.h: New file.
23800         * lib/strnlen1.c: New file.
23801
23802 2005-08-16  Bruno Haible  <bruno@clisp.org>
23803
23804         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
23805         (mbi_init): Update.
23806         (mbi_avail, mbi_advance): Let the iteration end before the terminating
23807         NUL byte, not after it.
23808
23809 2005-08-16  Bruno Haible  <bruno@clisp.org>
23810
23811         * lib/strcase.h (strcasecmp): Add note in comments.
23812         * lib/strncasecmp.c: Use code from strcasecmp.c.
23813         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
23814         (strcasecmp): Work correctly in multibyte locales.
23815
23816 2005-08-16  Bruno Haible  <bruno@clisp.org>
23817
23818         * lib/mbiter.h: New file.
23819
23820 2005-08-16  Bruno Haible  <bruno@clisp.org>
23821
23822         * lib/mbfile.h: New file.
23823
23824 2005-08-16  Bruno Haible  <bruno@clisp.org>
23825
23826         * lib/mbchar.h: New file.
23827         * lib/mbchar.c: New file.
23828
23829 2005-08-16  Bruno Haible  <bruno@clisp.org>
23830
23831         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
23832         the valid ones. Makes the comparison operations transitive:
23833         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
23834         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
23835
23836 2005-08-15  Simon Josefsson  <jas@extundo.com>
23837
23838         * modules/ssize_t (License): Change to 'unlimited'.
23839
23840         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
23841
23842 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
23843
23844         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
23845         Add comments for each pending glibc patch.
23846
23847 2005-08-15  Bruno Haible  <bruno@clisp.org>
23848
23849         * lib/regex.h (__restrict_arr): Don't define to __restrict if
23850         __cplusplus is defined.
23851
23852 2005-08-14  Jim Meyering  <jim@meyering.net>
23853
23854         Sync from coreutils.
23855
23856         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
23857         Use the hash-table-based cycle-detection code not just when
23858         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
23859         Reported by James Youngman in
23860         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
23861         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
23862         FTS_TIGHT_CYCLE_CHECK.
23863         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
23864         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
23865         once again.
23866         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
23867         * lib/fts.c (fd_safer): Remove decl.
23868         Include fcntl--.h rather than unistd-safer.h
23869         (fts_safe_changedir): Don't call fd_safer; no longer needed
23870         now that we include fcntl--.h.
23871
23872 2005-08-12  Simon Josefsson  <jas@extundo.com>
23873
23874         * modules/getndelim2: Use ssize_t module.
23875         * modules/getnline: Likewise.
23876         * modules/safe-read: Likewise.
23877         * modules/xreadlink: Likewise.
23878
23879         * modules/ssize_t: New file.
23880
23881 2005-08-12  Simon Josefsson  <jas@extundo.com>
23882
23883         * m4/readline.m4: Look for termcap, curses or ncurses if required.
23884
23885 2005-08-12  Simon Josefsson  <jas@extundo.com>
23886
23887         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23888         ssize_t.
23889
23890 2005-08-12  Simon Josefsson  <jas@extundo.com>
23891
23892         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
23893         readline, getdelim and check_version.
23894         (Support for systems lacking ISO C 99: Sizes of integer types):
23895         Add size_max.
23896
23897 2005-08-12  Bruno Haible  <bruno@clisp.org>
23898
23899         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
23900
23901 2005-08-11  Simon Josefsson  <jas@extundo.com>
23902
23903         * modules/readline: New file.
23904
23905         * modules/strnlen (Files): Add strnlen.h.
23906
23907 2005-08-11  Simon Josefsson  <jas@extundo.com>
23908
23909         * m4/readline.m4: New file.
23910
23911 2005-08-11  Simon Josefsson  <jas@extundo.com>
23912
23913         * lib/readline.h, readline.c: New file.
23914
23915 2005-08-11  Simon Josefsson  <jas@extundo.com>
23916
23917         * doc/gnulib.texi (Initial import, Finishing touches): Mention
23918         gl_AVOID.
23919
23920 2005-08-11  Bruno Haible  <bruno@clisp.org>
23921
23922         * lib/strnlen.h (strnlen): Change parameter name to match comment.
23923
23924 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
23925
23926         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
23927
23928 2005-08-10  Simon Josefsson  <jas@extundo.com>
23929
23930         * tests/test-iconvme.c: New file.
23931
23932 2005-08-10  Simon Josefsson  <jas@extundo.com>
23933
23934         * m4/strnlen.m4: New file.
23935
23936         * m4/strndup.m4: Don't check for strnlen declaration, done in
23937         strnlen.m4.
23938
23939 2005-08-10  Simon Josefsson  <jas@extundo.com>
23940
23941         * lib/strndup.c: Use strnlen.h.
23942
23943         * lib/strnlen.h: New file.
23944
23945 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
23946
23947         * README: Typos.
23948
23949 2005-08-02  Simon Josefsson  <jas@extundo.com>
23950
23951         * modules/readline: New file.
23952
23953 2005-08-02  Simon Josefsson  <jas@extundo.com>
23954
23955         * modules/getdelim: New file.
23956
23957         * modules/getline: Rewrite, don't use getndelim2.
23958
23959 2005-08-02  Simon Josefsson  <jas@extundo.com>
23960
23961         * m4/getline.m4: Separate out getdelim stuff into separate module.
23962
23963         * m4/getdelim.m4: New file.
23964
23965 2005-08-02  Simon Josefsson  <jas@extundo.com>
23966
23967         * lib/getline.h, getline.c: Rewrite.
23968
23969         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
23970
23971 2005-07-31  Bruno Haible  <bruno@clisp.org>
23972
23973         * lib/lock.h (gl_lock_initializer): New macro.
23974         (gl_lock_define_initialized): Use it.
23975         (gl_rwlock_initializer): New macro.
23976         (gl_rwlock_define_initialized): Use it.
23977         (gl_recursive_lock_initializer): New macro.
23978         (gl_recursive_lock_define_initialized): Use it.
23979
23980 2005-07-30  Karl Berry  <karl@gnu.org>
23981
23982         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
23983         Report from Ben Pfaff, regarding getopt.
23984
23985 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
23986
23987         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
23988         normal way.
23989         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
23990         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
23991         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
23992         (gl_GETOPT): Use the new macros.  Most of the implementation
23993         is moved to the new macros.  This is for programs like Emacs
23994         that don't want all the functionality of gl_GETOPT.
23995
23996 2005-07-26  Bruno Haible  <bruno@clisp.org>
23997
23998         * m4/lock.m4: Update from GNU gettext.
23999
24000 2005-07-26  Bruno Haible  <bruno@clisp.org>
24001
24002         * lib/lock.h: Update from GNU gettext.
24003         * lib/lock.c: Update from GNU gettext.
24004
24005 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
24006
24007         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
24008         obsolescent AC_TRY_RUN.  Include the default includes files, for
24009         'exit'.
24010
24011 2005-07-24  Bruno Haible  <bruno@clisp.org>
24012
24013         * modules/visibility: New file.
24014         * MODULES.html.sh (Misc): Add visibility.
24015
24016 2005-07-24  Bruno Haible  <bruno@clisp.org>
24017
24018         * m4/visibility.m4: New file.
24019
24020 2005-07-24  Bruno Haible  <bruno@clisp.org>
24021
24022         * doc/visibility.texi: New file.
24023
24024 2005-07-22  Bruno Haible  <bruno@clisp.org>
24025
24026         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
24027         $(ALLOCA_H), redundant through BUILT_SOURCES.
24028         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
24029         redundant through BUILT_SOURCES.
24030         * modules/byteswap (Makefile.am): Remove explicit dependency on
24031         $(BYTESWAP_H), redundant through BUILT_SOURCES.
24032         * modules/fnmatch (Makefile.am): Remove explicit dependency on
24033         $(FNMATCH_H), redundant through BUILT_SOURCES.
24034         * modules/getopt (Makefile.am): Remove explicit dependency on
24035         $(GETOPT_H), redundant through BUILT_SOURCES.
24036         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
24037         redundant through BUILT_SOURCES.
24038         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
24039         redundant through BUILT_SOURCES.
24040         * modules/stdbool (Makefile.am): Remove explicit dependency on
24041         $(STDBOOL_H), redundant through BUILT_SOURCES.
24042         * modules/stdint (Makefile.am): Remove explicit dependency on
24043         $(STDINT_H), redundant through BUILT_SOURCES.
24044         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
24045         Remove explicit dependency on $(SYSEXITS_H).
24046         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
24047
24048 2005-07-18  Simon Josefsson  <jas@extundo.com>
24049
24050         * lib/check-version.c (check_version): Accept identical versions too.
24051
24052 2005-07-18  Bruno Haible  <bruno@clisp.org>
24053
24054         * modules/lock: New file.
24055         * MODULES.html.sh (Multithreading): New section.
24056
24057 2005-07-18  Bruno Haible  <bruno@clisp.org>
24058
24059         * m4/lock.m4: New file, from GNU gettext.
24060
24061 2005-07-18  Bruno Haible  <bruno@clisp.org>
24062
24063         * lib/lock.h: New file, from GNU gettext.
24064         * lib/lock.c: New file, from GNU gettext.
24065
24066 2005-07-18  Bruno Haible  <bruno@clisp.org>
24067
24068         * lib/lock.h (gl_once_t): New type.
24069         (gl_once_define, gl_once): New macros.
24070         * lib/lock.c (fresh_once): New variable.
24071         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
24072         functions.
24073
24074 2005-07-16  Simon Josefsson  <jas@extundo.com>
24075
24076         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
24077         workaround, suggested by Bruno.
24078
24079 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
24080
24081         * modules/xalloc (Depends-on): Add xalloc-die.
24082         * modules/xvasprintf (Depends-on): Add xalloc-die.
24083
24084 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
24085
24086         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
24087         with a minor change.
24088
24089 2005-07-15  Bruno Haible  <bruno@clisp.org>
24090
24091         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
24092         When using lib/poll.c, define poll as rpl_poll.
24093
24094 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
24095
24096         * modules/argp (Depends-on): Remove unlocked-io.
24097
24098 2005-07-14  Derek Price  <derek@ximbiot.com>
24099
24100         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
24101         for glob symlink bug.
24102
24103 2005-07-14  Bruno Haible  <bruno@clisp.org>
24104
24105         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
24106         Instead, test for *_unlocked function declarations directly.
24107
24108 2005-07-11  Simon Josefsson  <jas@extundo.com>
24109
24110         * modules/size_max: New file.
24111
24112         * modules/xsize: Depend on size_max module for size_max.m4.
24113
24114 2005-07-11  Simon Josefsson  <jas@extundo.com>
24115
24116         * lib/size_max.h: New file.
24117
24118 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
24119
24120         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
24121         copyright symbol and the year.
24122         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
24123         (version_etc_va): Use parameterized copyright notice.
24124         Reword to conform to the current GNU coding standards.
24125
24126 2005-07-11  Karl Berry  <karl@gnu.org>
24127
24128         * doc/gnulib.texi (Quoting): new node.
24129         (Initial import): more info, from Patrice.
24130
24131 2005-07-11  Bruno Haible  <bruno@clisp.org>
24132
24133         * gnulib-tool (func_usage): Document option --avoid.
24134         (Command line options): Handle --avoid.
24135         (func_acceptable): New function.
24136         (func_modules_transitive_closure): Use it.
24137
24138 2005-07-11  Bruno Haible  <bruno@clisp.org>
24139
24140         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
24141         Reported by Jim Meyering.
24142
24143 2005-07-10  Bruno Haible  <bruno@clisp.org>
24144
24145         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
24146         Needed when size_t is smaller than 'unsigned int'.
24147         Reported by Paul Eggert.
24148
24149 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
24150
24151         * modules/argp (Depends-on): Add unlocked-io
24152
24153 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
24154
24155         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
24156         block of defines.
24157
24158 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
24159
24160         * config/srclist.txt: Comment out regcomp.c, since we have a porting
24161         fix now.
24162
24163 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
24164         and Paul Eggert  <eggert@cs.ucla.edu>
24165
24166         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
24167         in wint_t, not wchar_t.  Remove now-unnecessary cast.
24168
24169 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
24170
24171         * modules/regex (Files): Add lib/regex_internal.c,
24172         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
24173         (Depends-on): Add extensions.
24174         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
24175
24176 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
24177
24178         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
24179         pathconf.
24180         * m4/same.m4 (gl_SAME): Likewise.
24181         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
24182
24183         * m4/regex.m4: Adjust to new libc regex implementation.
24184         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
24185         all the .c and .h parts of (the new) regex.
24186         Quote the m4 stuff better.
24187         Check for RE_ICASE bug of old gnulib.
24188         Check for REG_STARTEND of recent libc.
24189         Rename local variables from jm_* to gl_*.
24190         Quote operand of "test -f".
24191         Say "recent enough" version of libc, not "version 2".
24192         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
24193         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
24194         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
24195         Remove check for btowc, isascii.
24196         Require AM_LANGINFO_CODESET.
24197
24198 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
24199
24200         * lib/regex.c, regex.h: Sync from libc.
24201         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
24202         * lib/regexec.c:
24203         New files, synced from libc, except that regex_internal.h
24204         currently has a small porting fix.
24205
24206 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
24207
24208         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
24209         regex_internal.c, regexec.c.
24210         Add regex_internal.h too, but as a comment, since the libc version
24211         is currently broken in gnulib mode.
24212
24213 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
24214
24215         Support programs like Emacs that use gnulib but not gettext.
24216         * MODULES.html.sh (Internationalization functions): Add gettext-h.
24217         * modules/gettext-h: New file.
24218         * modules/gettext (Files): Remove lib/gettext.h.
24219         (Depends-on): Add gettext-h.
24220         (Makefile.am): Remove lib_SOURCES.
24221         * modules/argmatch, modules/c-stack, modules/closeout:
24222         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
24223         * modules/execute, modules/file-type, modules/getaddrinfo:
24224         * modules/getopt, modules/human, modules/javacomp:
24225         * modules/javaexec, modules/mkdir-p, modules/obstack:
24226         * modules/openat, modules/pagealign_alloc, modules/pipe:
24227         * modules/quotearg, modules/regex, modules/rpmatch:
24228         * modules/unicodeio, modules/userspec, modules/version-etc:
24229         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
24230         * modules/xsetenv:
24231         Depend on gettext-h, not gettext.
24232
24233 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
24234
24235         * gnulib-tool (func_import): Add support for 'public domain' license.
24236         * modules/alloca, modules/atexit, modules/memmove:
24237         Now public domain, not GPL.
24238         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
24239         * modules/realloc, modules/strerror, modules/strtod:
24240         Now LGPL, not GPL.
24241
24242 2005-07-05  Bruno Haible  <bruno@clisp.org>
24243
24244         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
24245         autoconf CVS. Needed for mingw.
24246
24247 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24248
24249         Remove the dependency of the strftime module on the tzset module.
24250         * modules/strftime (Depends-on): Remove dependency on tzset.
24251
24252 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24253
24254         Remove the dependency of the strftime module on the tzset module.
24255         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
24256         gl_FUNC_TZSET_CLOBBER.
24257
24258 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24259
24260         Remove the dependency of the strftime module on the tzset module.
24261         * lib/strftime.c (my_strftime)
24262         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
24263         Copy the input structure, to work around some of the bug with
24264         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
24265         Solaris releases, you should also use the tzset module, but we won't
24266         require it as a dependency any more since we don't want LGPLed code
24267         to depend on GPLed code.
24268
24269 2005-07-02  Jim Meyering  <jim@meyering.net>
24270
24271         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
24272         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
24273         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
24274         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
24275
24276 2005-07-02  Jim Meyering  <jim@meyering.net>
24277
24278         * lib/backupfile.c (backup_args): Change a `0' to NULL.
24279
24280 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
24281
24282         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
24283         declares only 'struct timespec;' (!).
24284
24285 2005-07-01  Jim Meyering  <jim@meyering.net>
24286
24287         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
24288         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
24289         * lib/save-cwd.c, tempname.c:
24290         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
24291         and don't include <sys/file.h>).
24292
24293 2005-06-29  Jim Meyering  <jim@meyering.net>
24294
24295         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
24296         type name.  Use the variable name instead.
24297         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
24298         Likewise.
24299
24300 2005-06-28  Simon Josefsson  <jas@extundo.com>
24301
24302         * modules/check-version (Files): Add check-version.m4.
24303
24304 2005-06-28  Simon Josefsson  <jas@extundo.com>
24305
24306         * m4/check-version.m4: New file, suggested by Jim Meyering
24307         <jim@meyering.net>.
24308
24309 2005-06-28  Simon Josefsson  <jas@extundo.com>
24310
24311         * lib/check-version.h, lib/check-version.c: New files.
24312
24313 2005-06-28  Simon Josefsson  <jas@extundo.com>
24314
24315         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
24316         collision with global variable.  Better indentation.  Don't
24317         increment buffer pointer beyond buffer end.  Based on comments
24318         from Paul Eggert <eggert@cs.ucla.edu>.
24319
24320         * lib/base64.h: Indent.
24321
24322 2005-06-28  Simon Josefsson  <jas@extundo.com>
24323
24324         * doc/gnulib.texi (Library version handling): New section.
24325
24326 2005-06-28  Jim Meyering  <jim@meyering.net>
24327
24328         * check-module (find_included_lib_files): Hard-code another
24329         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
24330         but modules/fts-lgpl (correctly) does not list those files.
24331
24332         * modules/canonicalize (Files): Add lib/pathmax.h.
24333
24334 2005-06-25  Simon Josefsson  <jas@extundo.com>
24335
24336         * modules/check-version: New file.
24337
24338 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
24339
24340         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
24341         initializer of struct addrinfo, as an indication that we don't
24342         care how many members the structure has.
24343
24344 2005-06-24  Derek Price  <derek@ximbiot.com>
24345         and Bruno Haible  <bruno@clisp.org>
24346
24347         Remove stat module & update lstat.
24348         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
24349         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
24350         * m4/stat.m4: Remove this file.
24351
24352 2005-06-24  Derek Price  <derek@ximbiot.com>
24353         and Bruno Haible  <bruno@clisp.org>
24354
24355         Remove stat module & update lstat.
24356         * lib/stat.c: Remove this file...
24357         (slash_aware_lstat): ...moving this content and its support...
24358         * lib/lstat.c (rpl_lstat): ...into here.
24359         * lib/lstat.h: New file.
24360
24361 2005-06-24  Derek Price  <derek@ximbiot.com>
24362         and Bruno Haible  <bruno@clisp.org>
24363
24364         Remove stat module & update lstat.
24365         * config/srclist.txt (libc sources): Remove stat.
24366
24367 2005-06-24  Derek Price  <derek@ximbiot.com>
24368         and Bruno Haible  <bruno@clisp.org>
24369
24370         Remove stat module & update lstat.
24371         * MODULES.html.sh (stat): Remove.
24372         * MODULES.html: Regenerated.
24373         * modules/lstat (Description): Correct function name.
24374         (Files): Add "lstat.h".
24375         (Depends-on): Remove stat, add xalloc, stat-macros.
24376         * modules/stat: Remove this file.
24377         (Include): Add "lstat.h", remove <sys/stat.h>.
24378
24379 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
24380
24381         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
24382         (ranged_convert): Don't save conversion in a temporary struct.
24383         This causes a warning with GCC 4.0.0, and anyway in the typical
24384         case it's not worth the extra 100 bytes or so of code.
24385         (ranged_convert, __mktime_internal): When calling a function via a
24386         pointer P, use P () rather than (*P) (), as we now assume C89 or
24387         better.
24388
24389 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
24390
24391         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
24392         "who -r" failed to give output.  Problem reported by Tim Waugh.
24393
24394         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
24395         (xcalloc): Use it to avoid needless tests.
24396         Problem reported by Jim Meyering.
24397
24398 2005-06-20  Derek Price  <derek@ximbiot.com>
24399
24400         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
24401         unnecessary for Autoconfs > 2.59c.
24402
24403 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
24404
24405         * lib/argp.h (__option_is_short): Check upper limit of
24406         __key. Isprint() requires its argument to have the value
24407         of an unsigned char or EOF.
24408
24409 2005-06-16  Jim Meyering  <jim@meyering.net>
24410
24411         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
24412         when either N or S is zero.
24413
24414 2005-06-16  Derek Price  <derek@ximbiot.com>
24415
24416         * m4/bison.m4: Declare YACC & YFLAGS precious.
24417
24418 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
24419
24420         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
24421         multibyte string or pattern, fall back on unibyte matching.
24422         Problem reported by James Youngman.
24423
24424 2005-06-08  Bruno Haible  <bruno@clisp.org>
24425
24426         * modules/csharpcomp: New file.
24427         * MODULES.html.sh (C#): Add csharpcomp.
24428
24429 2005-06-08  Bruno Haible  <bruno@clisp.org>
24430
24431         * m4/csharpcomp.m4: New file, from GNU gettext.
24432
24433 2005-06-08  Bruno Haible  <bruno@clisp.org>
24434
24435         * lib/csharpcomp.h: New file, from GNU gettext.
24436         * lib/csharpcomp.c: New file, from GNU gettext.
24437         * lib/csharpcomp.sh.in: New file, from GNU gettext.
24438
24439 2005-06-08  Bruno Haible  <bruno@clisp.org>
24440
24441         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
24442         warning on mingw.
24443
24444 2005-06-07  Derek Price  <derek@ximbiot.com>
24445
24446         Sync from CVS.
24447         * lib/glob_.h: Indent nested #ifdef.
24448
24449 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
24450
24451         Sync from coreutils.
24452         Use "file name" when talking about file names, instead of "filename"
24453         or "path", as per the GNU coding standards.
24454         * lib/mkdir-p.c: Renamed from makepath.c.
24455         (make_dir_parents): Renamed from make_path.  All callers changed.
24456         * lib/mkdir-p.h: Likewise.  All includers changed.
24457         * lib/filenamecat.c: Renamed from path-concat.c.
24458         (file_name_concat): Renamed from path_concat.  All callers changed.
24459         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
24460         * lib/filenamecat.h: Likewise.  All includers changed.
24461         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
24462         in comments or local variable names.
24463         * lib/basename.c: Likewise.
24464         * lib/canonicalize.c, canonicalize.h: Likewise.
24465         * lib/dirname.c, dirname.h: Likewise.
24466         * lib/euidaccess.c: Likewise.
24467         * lib/exclude.c: Likewise
24468         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
24469         * lib/fsusage.c, fsuage.h: Likewise.
24470         * lib/fts.c, fts_.h: Likewise.
24471         * lib/getcwd.c: Likewise.
24472         * lib/getloadavg.c: Likewise.
24473         * lib/mkstemp.c: Likewise.
24474         * lib/mountlist.c, mountlist.h: Likewise.
24475         * lib/openat.c, openat.h: Likewise.
24476         * lib/readlink-stub.c: Likewise.
24477         * lib/readutmp.c, readutmp.h: Likewise.
24478         * lib/rename.c: Likewise.
24479         * lib/rmdir.c: Likewise.
24480         * lib/same.c: Likewise.
24481         * lib/savedir.c: Likewise.
24482         * lib/stripslash.c: Likewise.
24483         * lib/tempname.c: Likewise.
24484         * lib/xreadlink.c: Likewise.
24485         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
24486         All uses changed.
24487         * lib/exclude.h: Likewise.
24488
24489         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
24490         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
24491         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
24492         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
24493         * lib/pathmax.h: Include <limits.h> unconditionally, since other
24494         files have been getting away with it for years (MORE/BSD 4.3
24495         is extinct now).
24496         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
24497         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
24498
24499         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
24500         Define to 256, not 255, as per modern POSIX.
24501
24502 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
24503
24504         Sync from coreutils.
24505         Use "file name" when talking about file names, instead of "filename"
24506         or "path", as per the GNU coding standards.
24507         * MODULES.html.sh: mkdir-p renamed from makepath.
24508         filenamecat renamed from path-concat.
24509         * modules/filenamecat: Renamed from modules/path-concat.
24510         (Files): filenamecat.h and filenamecat.c renamed from
24511         path-concat.h and path-concat.c.
24512         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
24513         (Include): filenamecat.h, not path-concat.h.
24514         * modules/mkdir-p: Renamed from modules/makepath.
24515         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
24516         makepath.c.
24517         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
24518         (Include): mkdir-p.h, not makepath.h.
24519
24520 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
24521
24522         Sync from coreutils.
24523         * m4/mkdir-p.m4: Renamed from makepath.m4.
24524         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
24525         Rename files from makepath.c to mkdir-p.c, and from
24526         makepath.h to mkdir-p.h.
24527         * m4/filenamecat.m4: Renamed from path-concat.m4.
24528         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
24529         Rename files from path-concat.c to filenamecat.c,
24530         and from path-concat.h to filenamecat.h.
24531         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
24532         "file name" in local variables or comments.
24533         * m4/rename.m4: Likewise.
24534
24535 2005-06-01  Bruno Haible  <bruno@clisp.org>
24536
24537         * modules/csharpexec: New file.
24538         * MODULES.html.sh (C#): New section.
24539
24540 2005-06-01  Bruno Haible  <bruno@clisp.org>
24541
24542         * m4/csharp.m4: New file, from GNU gettext.
24543         * m4/csharpexec.m4: New file, from GNU gettext.
24544
24545 2005-06-01  Bruno Haible  <bruno@clisp.org>
24546
24547         * lib/csharpexec.h: New file, from GNU gettext.
24548         * lib/csharpexec.c: New file, from GNU gettext.
24549         * lib/csharpexec.sh.in: New file, from GNU gettext.
24550
24551 2005-05-31  Derek Price  <derek@ximbiot.com>
24552             Paul Eggert  <eggert@cs.ucla.edu>
24553
24554         Sync from cvs.
24555         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
24556
24557 2005-05-31  Derek Price  <derek@ximbiot.com>
24558             Paul Eggert  <eggert@cs.ucla.edu>
24559
24560         Sync from cvs.
24561         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
24562
24563 2005-05-29  Derek Price  <derek@ximbiot.com>
24564
24565         * config/srclist.txt (glob_.h, glob.c): Add these files.
24566
24567 2005-05-29  Derek Price  <derek@ximbiot.com>
24568
24569         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
24570         * modules/glob: New file.
24571         * modules/getlogin_r: Add link to POSIX spec in description.
24572
24573 2005-05-29  Derek Price  <derek@ximbiot.com>
24574             Paul Eggert  <eggert@cs.ucla.edu>
24575
24576         * m4/glob.m4: New file.
24577
24578 2005-05-29  Derek Price  <derek@ximbiot.com>
24579             Paul Eggert  <eggert@cs.ucla.edu>
24580
24581         * lib/glob_.h, lib/glob.c: New files.
24582
24583 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
24584
24585         * modules/fts (Files): Remove m4/inttypes-pri.m4.
24586         * modules/fts-lgpl (Depends-on): Remove gettext.
24587
24588 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
24589
24590         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
24591         and don't require gt_INTTYPES_PRI.
24592
24593 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
24594
24595         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
24596
24597         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
24598         the configuration hassle isn't worth it.
24599         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
24600         (LONGEST_MODIFIER, PRIuMAX): Remove.
24601
24602 2005-05-27  Bruno Haible  <bruno@clisp.org>
24603
24604         * lib/getlogin_r.h: Remove second include of <stddef.h>.
24605
24606 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
24607
24608         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
24609         _POSIX_PTHREAD_SEMANTICS for Solaris.
24610
24611 2005-05-25  Derek Price  <derek@ximbiot.com>
24612
24613         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
24614
24615 2005-05-25  Derek Price  <derek@ximbiot.com>
24616             Paul Eggert  <eggert@cs.ucla.edu>
24617
24618         * modules/getlogin_r, m4/getlogin_r.m4: New files.
24619         * lib/getlogin_r.c, getlogin_r.h: New files.
24620
24621 2005-05-25  Bruno Haible  <bruno@clisp.org>
24622             Derek Price  <derek@ximbiot.com>
24623
24624         * lib/getlogin_r.h: Simplify API documentation.
24625
24626 2005-05-23  Derek Price  <derek@ximbiot.com>
24627
24628         * modules/minmax (Files): Add m4/minmax.m4.
24629         (configure.ac): Add gl_MINMAX.
24630
24631 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
24632
24633         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
24634         so that unistd-safer.h (GPL'ed code) need not be included.
24635
24636 2005-05-22  Bruno Haible  <bruno@clisp.org>
24637
24638         * m4/minmax.m4: New file.
24639         Based on a patch by Derek Price <derek@ximbiot.com>.
24640
24641 2005-05-22  Bruno Haible  <bruno@clisp.org>
24642
24643         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
24644         (INT64_MIN): Fix definition.
24645         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
24646
24647         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
24648         NEED_SIGNED_INT_TYPES.
24649
24650         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
24651         HAVE_SYSTEM_INTTYPES.
24652
24653 2005-05-22  Bruno Haible  <bruno@clisp.org>
24654
24655         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
24656         Also include <sys/param.h> if it defines MIN, MAX.
24657         Based on a patch by Derek Price <derek@ximbiot.com>.
24658
24659 2005-05-21  Jim Meyering  <jim@meyering.net>
24660
24661         * modules/fts (Files): Add m4/inttypes-pri.m4.
24662         (Depends-on): Add lstat and remove gettext.  Alphabetize.
24663
24664 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
24665
24666         New fts module.
24667         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
24668         (setup_dir, free_dir): New functions.
24669         (enter_dir, leave_dir): Define trivial
24670         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
24671         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
24672         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
24673         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
24674         Move to fts-cycle.c.
24675         (fts_open): Use setup_dir.
24676         (fts_close): Use free_dir.
24677         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
24678         This adds a label and some gotos, but the alternatives were messier.
24679         Check for memory allocation failure when entering a dir.
24680         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
24681         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
24682         (FTS): New member fts_cycle, that is a union that contains the
24683         old active_dir_ht and cycle_state.  All uses changed to mention
24684         fts_cycle.ht and fts_cycle.state.
24685         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
24686         fts.c, with the following changes:
24687         (setup_dir, free_dir): New functions.
24688         (enter_dir): Now returns bool.  Return true if successful, false
24689         if memory exhausted.  All callers changed.
24690         Do not bother partly cleaning up on
24691         memory allocation failure; that is free_dir's job.
24692         However, free ad if hash_insert fails, to avoid memory leak.
24693         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
24694         fts->fts_options to see which union member to use.
24695
24696 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
24697
24698         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
24699         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
24700
24701 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
24702
24703         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
24704
24705 2005-05-20  Jim Meyering  <jim@meyering.net>
24706
24707         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
24708         Now a macro, to pacify GCC.
24709
24710 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
24711
24712         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
24713         of -1.
24714
24715 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
24716
24717         * lib/chown.c (rpl_chown): Return -1 on failure.
24718
24719 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
24720
24721         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
24722         Don't check for stddef.h.
24723         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
24724         don't use its results.
24725         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
24726         since we include them unconditionally.  Don't require
24727         AM_STDBOOL_H, since stdbool is a prerequisite.
24728         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
24729         since we assume C89 or better.
24730         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
24731         as we don't use their results.
24732         Don't check for fchdir, memmove, memset, strrchr, as we use
24733         them unconditionally.
24734         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
24735         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
24736
24737 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
24738
24739         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
24740         Include <stddef.h> unconditionally, since we assume C89 now.
24741         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
24742         * lib/fts.c: Include fts_.h first, to check interface.
24743         Do not include intprops.h; no longer needed.
24744         Include cycle-check.h and hash.h, since fts_.h no longer does.
24745         Remove unnecessary casts of closedir to void.
24746         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
24747         decide whether to decrement nlinks.
24748         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
24749         (FTS): Use struct hash_table * instead of Hash_table, so that
24750         we no longer need to include hash.h here.
24751
24752 2005-05-18  Jim Meyering  <jim@meyering.net>
24753
24754         * modules/dirfd (License): Change to LGPL.  Most of the code
24755         is already in the public domain.
24756
24757 2005-05-18  Jim Meyering  <jim@meyering.net>
24758
24759         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
24760         Reported by Yoann Vandoorselaere.
24761
24762 2005-05-17  Jim Meyering  <jim@meyering.net>
24763
24764         * m4/fts.m4: New file, from coreutils.
24765
24766 2005-05-17  Jim Meyering  <jim@meyering.net>
24767
24768         * lib/fts.c, lib/fts_.h: New files, from coreutils.
24769
24770 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
24771
24772         Sync from coreutils.
24773         * m4/unlinkdir.m4: New file.
24774
24775 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
24776
24777         Sync from coreutils.
24778         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
24779         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
24780         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
24781         White space changes only.
24782         * lib/makepath.c (make_path): Port to hosts where leading "//" is
24783         special.
24784         * lib/yesno.c: Include getline.h, not ctype.h.
24785         (yesno): Don't remove leading white space; POSIX doesn't allow it.
24786         Use getline to remove arbitrary restriction on response length.
24787
24788 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
24789
24790         * config/srclist-update: Spell out "Street" in FSF postal
24791         mail address; this is the style the FSF seems to prefer.
24792
24793         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
24794         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
24795         this updates FSF postal mail address.
24796
24797         Sync from coreutils.
24798         * modules/unlinkdir: New file.
24799         * modules/yesno (Depends-on): Add getline.
24800         * MODULES.html.sh (File system functions): Add unlinkdir.
24801
24802 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
24803
24804         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
24805         lib/strsep.h:
24806         Change the initial comment to refer to GPL, not LGPL.
24807         gnulib-tool will change it to LGPL as needed.
24808
24809         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
24810         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
24811         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
24812         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
24813         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
24814         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
24815         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
24816         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
24817         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
24818         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
24819         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
24820         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
24821         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
24822         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
24823         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
24824         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
24825         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
24826         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
24827         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
24828         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
24829         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
24830         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
24831         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
24832         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
24833         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
24834         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
24835         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
24836         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
24837         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
24838         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
24839         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
24840         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
24841         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
24842         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
24843         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
24844         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
24845         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
24846         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
24847         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
24848         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
24849         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
24850         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
24851         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
24852         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
24853         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
24854         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
24855         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
24856         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
24857         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
24858         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
24859         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
24860         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
24861         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
24862         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
24863         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
24864         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
24865         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
24866         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
24867         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
24868         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
24869         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
24870         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
24871         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
24872         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
24873         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
24874         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
24875         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
24876         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
24877         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
24878         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
24879         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
24880         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
24881         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
24882         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
24883         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
24884         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
24885         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
24886         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
24887         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
24888         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
24889         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
24890         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
24891         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
24892         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
24893         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
24894         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
24895         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
24896         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
24897         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
24898         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
24899         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
24900         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
24901         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
24902         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
24903         lib/yesno.c, lib/yesno.h:
24904         Update FSF postal mail address.
24905
24906 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
24907
24908         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
24909         tests/test-memmem.c, tests/test-stpncpy.c:
24910         Update FSF postal mail address.
24911
24912 2005-05-13  Bruno Haible  <bruno@clisp.org>
24913
24914         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
24915         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
24916         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
24917         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
24918         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
24919         Add support for 64-bit integers in the MSVC compiler.
24920
24921 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
24922
24923         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
24924
24925 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
24926
24927         * gnulib-tool (func_import): Sort and uniquify recommended includes.
24928
24929 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
24930
24931         * doc/getdate.texi (General date syntax): Don't say that date
24932         date --iso-8601=ns generates acceptable dates; it doesn't yet.
24933         Problem reported by Nic Ferrier.
24934
24935 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24936
24937         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
24938         specified in ai_socktype. Fix invalid ai_protocol
24939         check. ai_protocol is usually set to 0 or depending on
24940         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
24941         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
24942         ai_socktype / ai_protocol in the returned addrinfo structure.
24943
24944 2005-05-10  Simon Josefsson  <jas@extundo.com>
24945
24946         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
24947         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24948
24949 2005-05-10  Karl Berry  <karl@gnu.org>
24950
24951         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
24952         (from http://www.gnu.org/licenses).
24953         * doc/COPYING.LIB: also rename to COPYING.LESSER.
24954         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
24955         fdl.texi suffices.
24956
24957 2005-05-10  Karl Berry  <karl@gnu.org>
24958
24959         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
24960         (COPYING.DOC): remove.
24961
24962         * config/srclist-update: new FSF address.
24963
24964 2005-05-10  Derek Price  <derek@ximbiot.com>
24965
24966         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
24967         possible.
24968
24969 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24970             Bruno Haible  <bruno@clisp.org>
24971
24972         * modules/inet_ntop: New file.
24973         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24974         inet_ntop.
24975
24976 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24977             Bruno Haible  <bruno@clisp.org>
24978
24979         * m4/inet_ntop.m4: New file.
24980
24981 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24982             Bruno Haible  <bruno@clisp.org>
24983
24984         * lib/inet_ntop.h: New file.
24985         * lib/inet_ntop.c: New file, from glibc with modifications.
24986
24987 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
24988
24989         * modules/time_r (License): Change to LGPL.
24990         * modules/extensions (License): Change to LGPL.  Actually,
24991         the license is more permissive than that, but currently gnulib-tool
24992         doesn't know how to handle more-permissive licenses.
24993
24994         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
24995         Problem reported by Dave Love.
24996
24997 2005-05-08  Jim Meyering  <jim@meyering.net>
24998
24999         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
25000         blank.
25001
25002 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
25003
25004         * modules/argmatch (Depends-on): Add stdbool.
25005         * modules/backupfile (Depends-on): Likewise.
25006         * modules/chdir-long (Depends-on): Likewise.
25007         * modules/closeout (Depends-on): Likewise.
25008         * modules/cycle-check (Depends-on): Likewise.
25009         * modules/dirname (Depends-on): Likewise.
25010         * modules/fnmatch (Depends-on): Likewise.
25011         * modules/fsusage (Depends-on): Likewise.
25012         * modules/fwriteerror (Depends-on): Likewise.
25013         * modules/getcwd (Depends-on): Likewise.
25014         * modules/getloadavg (Depends-on): Likewise.
25015         * modules/hard-locale (Depends-on): Likewise.
25016         * modules/makepath (Depends-on): Likewise.
25017         * modules/mountlist (Depends-on): Likewise.
25018         * modules/nanosleep (Depends-on): Likewise.
25019         * modules/posixtm (Depends-on): Likewise.
25020         * modules/quotearg (Depends-on): Likewise.
25021         * modules/readtokens (Depends-on): Likewise.
25022         * modules/readtokens0 (Depends-on): Likewise.
25023         * modules/readutmp (Depends-on): Likewise.
25024         * modules/save-cwd (Depends-on): Likewise.
25025         * modules/strftime (Depends-on): Likewise.
25026         * modules/userspec (Depends-on): Likewise.
25027         * modules/utimecmp (Depends-on): Likewise.
25028         * modules/xgetcwd (Depends-on): Likewise.
25029         * modules/xnanosleep (Depends-on): Likewise.
25030         * modules/xstrtod (Depends-on): Likewise.
25031         * modules/yesno (Depends-on): Likewise.
25032
25033 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
25034
25035         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
25036         needless checks.
25037
25038 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
25039
25040         Merge from coreutils.  Among other things,
25041         add bulletproofing for cases where stdin, stdout, or stderr are closed.
25042         * lib/fd-safer.c: New file.
25043         * lib/fcntl-safer.h, open-safer.c: Remove.
25044         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
25045         * lib/dup-safer.c: Include unistd-safer.h first.
25046         Don't include errno.h.
25047         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
25048         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
25049         * lib/file-type.c: Rely on file-type.h change.
25050         * lib/getloadavg.c: Include unistd-safer.h.
25051         (getloadavg): Use safer open.
25052         * lib/getusershell.c: Include "stdio-safer.h".
25053         (getusershell): Use safer fopen.
25054         * lib/long-options.c (long_options): Use NULL rather than 0.
25055         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
25056         'free'.
25057         * lib/modechange.c: Likewise.
25058         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
25059         (MODE_DONE): New constant.
25060         (struct mode_change): Remove 'next' member.
25061         (make_node_op_equals): New function; like the old one of the
25062         same name, except it allocates an array.
25063         (mode_compile, mode_create_from_ref): Use it.
25064         (mode_compile): Allocate result as an array, not a linked list.
25065         Parse octal string ourself, so that we catch mistakes like "+0".
25066         (mode_adjust): Arg is an array, not a linked list.
25067         * lib/modechange.c: Include stat-macros.h, xalloc.h.
25068         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
25069         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
25070         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
25071         Remove.  This is now stat-macros.h's job.
25072         (talloc): Remove.  All callers replaced by xalloc, so that
25073         our invokers don't have to worry about reporting memory failures.
25074         (make_node_op_equals): Remove.
25075         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
25076         New constants.
25077         (struct mode_change): Moved here from modechange.h.
25078         (mode_append_entry): Remove.
25079         (mode_compile): Remove MASKED_OPS arg, since it encouraged
25080         apps to have incorrect behavior.  Use simpler algorithm for head
25081         and tail.  Don't futz with umask; that's now the job of mode_adjust.
25082         Detect more invalid usages rather than having somewhat-random behavior.
25083         Don't insert an "a=" action, as that leads to incorrect behavior.
25084         (mode_compile, mode_create_from_ref): Return NULL on error instead
25085         of an enum, since now there's only one way to have an error.  All
25086         callers changed.
25087         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
25088         at the correct time.  Simplify calculation of "+u" and its ilk.
25089         Don't mishandle "+X".
25090         (mode_free): Remove "register" and localize decls.
25091         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
25092         (struct mode_change): Move to modechange.c; callers don't
25093         need to see this stuff.
25094         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
25095         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
25096         (mode_change, mode_adjust): Reflect the new signatures noted above.
25097         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
25098         that might redefine system include files.
25099         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
25100         (my_usleep): Use NULL rather than (void *) 0.
25101         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
25102         Use siginterrupt to specify that system calls should be interrupted.
25103         (rpl_nanosleep): Move initialization of suspended closer to call of
25104         my_usleep.
25105         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
25106         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
25107         (desirable_utmp_entry): New function.
25108         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
25109         using x2nrealloc, to simplify logic.
25110         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
25111         size calculation.  Do not assume utmp file is a regular file.
25112         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
25113         (READ_UTMP_CHECK_PIDS): New constant.
25114         * lib/save-cwd.c: Include unistd-safer.h.
25115         (save_cwd): Use fd_safer.
25116         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
25117         [!_LIBC] Include "stat-macros.h" instead.
25118         * lib/unistd-safer.h (fd_safer): New decl.
25119
25120 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
25121
25122         * modules/getloadavg (Depends-on): Add unistd-safer.
25123         * modules/getusershell (Depends-on): Add stdio-safer.
25124         * modules/lstat (Depends-on): Remove xalloc.
25125         * modules/mkstemp (Depends-on): Add stat-macros.
25126         * modules/modechange (Depends-on): Remove xstrtol.
25127         Add stat-macros, xalloc.
25128         * modules/save-cwd (Depends-on): Add unistd-safer.
25129         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
25130         * modules/unistd-safer (Files): Add lib/fd-safer.c
25131         (Makefile.am): Remove lib_SOURCES.
25132
25133         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
25134         Remove fcntl-safer; unistd-safer supersedes it.
25135
25136 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
25137
25138         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
25139         AC_HEADER_STAT.
25140         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
25141         (gl_PREREQ_CHOWN): Remove.
25142         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
25143         it.  Don't require AC_HEADER_STAT.
25144         (gl_PREREQ_LSTAT): Remove.
25145         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
25146         Don't require AC_HEADER_STAT.
25147         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
25148         (gl_PREREQ_RMDIR): Remove.
25149         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
25150         mention stat-macros.h or AC_HEADER_STAT, since we'll make
25151         the stat-macros module a prerequisite.
25152         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
25153         * m4/filemode.m4 (gl_FILEMODE): Likewise.
25154         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
25155         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
25156         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
25157         variable names.
25158         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
25159         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
25160         variable prefixes.
25161         * m4/fcntl-safer.m4: Remove.
25162         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
25163         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
25164         Invoke gl_PREREQ_FD_SAFER.
25165         (gl_PREREQ_FD_SAFER): New macro.
25166         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
25167         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
25168         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
25169         Remove duplicate call to AC_LIBOBJ(readutmp).
25170         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
25171
25172         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
25173         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
25174
25175 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
25176
25177         * MODULES.html.sh (Misc): Add byteswap.
25178
25179 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
25180
25181         * modules/getcwd (Depends-on): Add extensions.
25182         * modules/openat (Depends-on): Likewise.
25183
25184 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
25185
25186         * modules/byteswap: New file.
25187
25188 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
25189
25190         * m4/byteswap.m4: New file.
25191
25192 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
25193
25194         * lib/byteswap_.h: New file.
25195
25196 2005-04-25  Karl Berry  <karl@gnu.org>
25197
25198         * m4/gettext.m4: Update from GNU gettext 0.14.4.
25199
25200 2005-04-25  Albert Chin  <china@thewrittenword.com>
25201
25202         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
25203         Toolkit C bug.
25204
25205 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
25206
25207         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
25208         (func_ln_if_changed) Remove forcibly for no error message
25209         in case file does not exist.
25210
25211 2005-04-19  Simon Josefsson  <jas@extundo.com>
25212
25213         * gnulib-tool (Options): Make --symlink mean --symbolic.
25214
25215 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
25216
25217         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
25218
25219 2005-04-16  Simon Josefsson  <jas@extundo.com>
25220
25221         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
25222
25223 2005-04-15  Simon Josefsson  <jas@extundo.com>
25224
25225         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
25226
25227 2005-04-15  Simon Josefsson  <jas@extundo.com>
25228
25229         * gnulib-tool: Rename --symlink to --symbolic.
25230
25231 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
25232
25233         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
25234         symbolic links to files instead of copying/moving.  Add --aux-dir,
25235         specifying directory relative --dir where auxiliary build tools
25236         are placed.
25237
25238 2005-04-14  Bruno Haible  <bruno@clisp.org>
25239
25240         * modules/allocsa (License): Change to LGPL.
25241         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25242
25243 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
25244
25245         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
25246         that "UTC +1 second" continues to work.  Problem reported
25247         by Dmitry V. Levin.
25248         (relunit_snumber): New rule.
25249         (relunit): Use it.
25250
25251 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
25252
25253         * lib/getdate.y (universal_time_zone_table): New constant.
25254         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
25255         universal_time_zone_table.
25256         (lookup_zone): Prefer universal_time_zone_table to
25257         local_time_zone_table, so that "GMT" time stamps are allowed in
25258         London during the summer.  Problem reported by Ian Abbott.
25259
25260 2005-04-12  Jim Meyering  <jim@meyering.net>
25261
25262         * lib/human.c (humblock): Set *options even when returning due to
25263         xstrtoumax conversion failure.  Thanks to a used-uninitialized
25264         warning from gcc-4.
25265
25266 2005-04-09  Jim Meyering  <jim@meyering.net>
25267
25268         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
25269         -Wuninitialized: initialize tm0.tm_year.
25270
25271 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
25272
25273         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
25274         count, since there's no maximum.  All uses changed.
25275         Add member dsts_seen.
25276         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
25277         not being INT_MAX.
25278         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
25279         Use pc_rels_seen to decide whther a date is absolute.
25280
25281         * lib/getdate.y (number): Don't overwrite year.
25282         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
25283         check.
25284
25285 2005-04-02  Simon Josefsson  <jas@extundo.com>
25286
25287         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
25288         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
25289
25290 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
25291
25292         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
25293         where no absolute path name can be longer than PATH_MAX.
25294
25295 2005-03-27  Jim Meyering  <jim@meyering.net>
25296
25297         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
25298
25299 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
25300
25301         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
25302         "one's complement" -> "ones' complement" in comment, as per Knuth.
25303         "value of type" -> "type or expression" in comment.
25304         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
25305
25306 2005-03-26  Jim Meyering  <jim@meyering.net>
25307
25308         Comment nits.
25309         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
25310         Correct typos: s/or/of/.
25311
25312 2005-03-26  Jim Meyering  <jim@meyering.net>
25313
25314         * modules/check-include-files: Move to ../ and rename to...
25315         * check-module: ...this.
25316
25317 2005-03-25  Jim Meyering  <jim@meyering.net>
25318
25319         * modules/xvasprintf (Files): Add xalloc.h.
25320
25321 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
25322
25323         * modules/gettext (Files): config/config.rpath ->
25324         build-aux/config.rpath
25325         * modules/iconv (Files): Likewise.
25326         Problem reported by Oskar Liljeblad.
25327
25328 2005-03-23  Jim Meyering  <jim@meyering.net>
25329
25330         * modules/check-include-files: New script to check for
25331         missing dependencies, multiple includes, etc.
25332
25333         * modules/c-strtold (Depends-on): Add xalloc.
25334         * modules/c-strtod (Depends-on): Add xalloc.
25335         * modules/hash (Depends-on): Add xalloc.
25336         (Files): Remove lib/xalloc.h.
25337
25338         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
25339         * modules/userspec (Files): Add lib/inttostr.h.
25340
25341 2005-03-23  Jim Meyering  <jim@meyering.net>
25342
25343         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
25344
25345 2005-03-22  Jim Meyering  <jim@meyering.net>
25346
25347         * modules/stat-macros: New module.
25348         * modules/canonicalize, modules/euidaccess, modules/file-type,
25349         * modules/filemode, modules/lchown, modules/makepath,
25350         * modules/rmdir, modules/stat: Depend on new stat-macros module
25351         rather than listing lib/stat-macros.h manually.
25352         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
25353
25354 2005-03-22  Jim Meyering  <jim@meyering.net>
25355
25356         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
25357
25358 2005-03-22  Bruno Haible  <bruno@clisp.org>
25359
25360         * config/srclist.txt: Replace target directory 'config' with
25361         'build-aux'.
25362         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
25363         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
25364         ../build-aux/.
25365
25366 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
25367
25368         * modules/chdir-long (Depends-on): Add mempcpy.
25369
25370         * modules/acl, modules/backupfile, modules/c-strtod,
25371         modules/c-strtold, modules/canon-host, modules/canonicalize,
25372         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
25373         modules/exclude, modules/exitfail, modules/file-type,
25374         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
25375         modules/getdate, modules/getline, modules/getpagesize,
25376         modules/getpass, modules/getugroups, modules/group-member,
25377         modules/hard-locale, modules/hash, modules/human, modules/idcache,
25378         modules/inttostr, modules/long-options, modules/makepath,
25379         modules/md5, modules/memcasecmp, modules/memcoll,
25380         modules/modechange, modules/mountlist, modules/path-concat,
25381         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
25382         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
25383         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
25384         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
25385         modules/strftime, modules/strndup, modules/strverscmp,
25386         modules/timespec, modules/unlocked-io, modules/userspec,
25387         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
25388         modules/yesno:
25389         Remove lib_SOURCES line from Makefile.am section, as this is now
25390         done automatically by the corresponding Autoconf macro.
25391
25392 2005-03-21  Jim Meyering  <jim@meyering.net>
25393
25394         Changes imported from coreutils.
25395
25396         * lib/cycle-check.c: Don't include xalloc.h.
25397
25398         * lib/path-concat.c: Don't include assert.h.
25399         (path_concat): Remove assertion that would have triggered
25400         for ABASE starting with more than one slash.
25401         Reported by Andreas Schwab.
25402
25403         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
25404         properly when ABASE is an absolute file name.
25405         Correct the description of this function.
25406         Include <assert.h>.
25407         Add an assertion and a test driver.
25408         This fixes a bug introduced on 2004-07-02.
25409         Andreas Schwab reported the resulting failure of cp --parents:
25410         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
25411
25412 2005-03-21  Jim Meyering  <jim@meyering.net>
25413
25414         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
25415         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
25416
25417 2005-03-21  Jim Meyering  <jim@meyering.net>
25418         and  Paul Eggert  <eggert@cs.ucla.edu>
25419
25420         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
25421         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
25422         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
25423         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
25424         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
25425         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
25426         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
25427         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
25428         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
25429         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
25430         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
25431         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
25432         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
25433         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
25434         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
25435         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
25436         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
25437         for these modules.
25438
25439 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
25440
25441         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
25442         (which shouldn't happen), generate nothing instead of returning 0
25443         immediately, so that nstrftime (NULL, ...) doesn't return 0.
25444
25445 2005-03-16  Bruno Haible  <bruno@clisp.org>
25446
25447         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
25448         HAVE_LONGLONG_64BIT.
25449
25450 2005-03-16  Bruno Haible  <bruno@clisp.org>
25451
25452         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
25453         HAVE_LONGLONG_64BIT.
25454
25455 2005-03-16  Bruno Haible  <bruno@clisp.org>
25456
25457         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
25458         HAVE_LONGLONG_64BIT.
25459
25460 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
25461
25462         * lib/strftime.c (my_strftime): Prepend space to format so that we can
25463         reliably distinguish strftime failure from empty output on POSIX
25464         hosts.
25465
25466 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
25467
25468         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
25469         (iconv_string): Don't guess a size-zero buffer, as that might cause
25470         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
25471         result would be 'too large', where 'too large' is (heuristically)
25472         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
25473         overflow concerns.  This will prevent some unwanted malloc failures
25474         when the inputs are very large.
25475
25476 2005-03-15  Karl Berry  <karl@gnu.org>
25477
25478         * config/srclist.txt (config.rpath): from gettext.
25479         * config/config.rpath: update.
25480
25481 2005-03-15  Bruno Haible  <bruno@clisp.org>
25482
25483         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
25484         to 'negate'.
25485
25486         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
25487         variable.
25488
25489         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
25490         results.
25491
25492 2005-03-14  Simon Josefsson  <jas@extundo.com>
25493
25494         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
25495         <fx@gnu.org>.
25496
25497 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
25498
25499         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
25500         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
25501         intprops.h.
25502         * lib/strtol.c: Likewise.
25503
25504 2005-03-14  Jim Meyering  <jim@meyering.net>
25505
25506         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
25507         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
25508         to be nonzero so that we (and caller) can detect the difference
25509         between a valid zero-length expansion and an error return, even
25510         when the underlying strftime fails before writing anything into
25511         that location.
25512
25513 2005-03-14  Bruno Haible  <bruno@clisp.org>
25514
25515         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
25516         Update from GNU gettext 0.14.3.
25517
25518 2005-03-10  Jim Meyering  <jim@meyering.net>
25519
25520         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
25521
25522 2005-03-10  Jim Meyering  <jim@meyering.net>
25523
25524         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
25525         so that this module works on systems without fchdir.
25526
25527 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
25528
25529         Factor int-properties macros into a single file, except for
25530         glibc-related files.
25531         * lib/intprops.h: New file.
25532         * lib/getloadavg.c: Include it instead of limits.h.
25533         (INT_STRLEN_BOUND): Remove.
25534         * lib/human.c: Include intprops.h.
25535         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
25536         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
25537         302/1000.
25538         * lib/inttostr.h: Include intprops.h instead of limits.h.
25539         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
25540         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
25541         for consistency with intprops.h.
25542         (time_t_is_integer, twos_complement_arithmetic): Use them.
25543         * lib/sig2str.h: Include <signal.h>, intprops.h.
25544         (INT_STRLEN_BOUND): Remove.
25545         * lib/strftime.c (TYPE_SIGNED): Remove.
25546         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
25547         * lib/strtol.c: Adjust comments to match intprops.h.
25548         * lib/userspec.c: Include intprops.h.
25549         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
25550         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
25551         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
25552         instead of rolling our own expressions.
25553         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
25554
25555         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
25556         instead of int.
25557         (my_strftime): Do not mishandle years close to INT_MAX, by doing
25558         the right thing even if adding 1900 would overflow.  Similarly
25559         for tm_mon + 1 and tm_yday + 1.
25560         Make %Y always equivalent to %C%y, and similarly for %G and %g.
25561         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
25562         (DO_SIGNED_NUMBER): New macro.
25563         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
25564
25565 2005-03-07  Bruno Haible  <bruno@clisp.org>
25566
25567         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
25568
25569 2005-03-07  Bruno Haible  <bruno@clisp.org>
25570
25571         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
25572
25573 2005-03-04  Derek R. Price  <derek@ximbiot.com>
25574
25575         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
25576         (func_import): Only replace files via --import when they have actually
25577         changed.
25578
25579 2005-03-03  Derek R. Price  <derek@ximbiot.com>
25580
25581         * m4/mmap-anon.m4: New file.
25582         * m4/pagealign_alloc.m4: New file.
25583
25584 2005-03-03  Derek R. Price  <derek@ximbiot.com>
25585             Bruno Haible  <bruno@clisp.org>
25586
25587         * modules/pagealign_alloc: New file.
25588         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
25589
25590 2005-03-03  Derek R. Price  <derek@ximbiot.com>
25591             Bruno Haible  <bruno@clisp.org>
25592
25593         * lib/pagealign_alloc.h: New file.
25594         * lib/pagealign_alloc.c: New file.
25595
25596 2005-03-03  Bruno Haible  <bruno@clisp.org>
25597
25598         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
25599         Use an all-permissive copyright notice, recommended by RMS.
25600
25601 2005-03-02  Bruno Haible  <bruno@clisp.org>
25602
25603         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
25604         of AIX, the replacement has to be done only after <string.h> is
25605         included, therefore not in config.h. stpncpy.h does the replacement,
25606         and stpncpy.c uses it.
25607
25608 2005-03-02  Bruno Haible  <bruno@clisp.org>
25609
25610         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
25611         stpncpy.c uses it.
25612
25613 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
25614
25615         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
25616         The workaround isn't strictly needed for POSIX conformance, and
25617         it's too much of a pain to configure and maintain.  We'll ask
25618         people to fix their kernels instead.
25619         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
25620         (NANOSLEEP_BUG_WORKAROUND): Remove.
25621         (xnanosleep): Remove the workaround.
25622
25623 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
25624
25625         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
25626         Reported by Derek Price.
25627         (Include): Add "timespec.h".
25628
25629         * modules/xnanosleep (Depends-on): Remove gethrxtime.
25630
25631 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
25632
25633         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
25634         to detect nanosleep bug.
25635
25636 2005-03-01  Bruno Haible  <bruno@clisp.org>
25637
25638         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
25639
25640 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
25641
25642         * modules/gethrxtime: New file.
25643         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
25644         (Depends-on): Add gethrxtime.
25645         (configure.ac): Add gl_XNANOSLEEP.
25646         (Makefile.am): Remove lib_SOURCES line.
25647
25648 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
25649
25650         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
25651         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
25652
25653 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
25654
25655         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
25656         * lib/timespec.h (gettime): Return void, since it always
25657         succeeds now.  All uses changed.
25658         * lib/gettime.c (gettime) Likewise.
25659         [HAVE_NANOTIME]: Prefer nanotime.
25660         Assume gettimeofday succeeds, as POSIX requires.
25661         Assime time () succeeds, since other code already does.
25662         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
25663         (timespec_subtract): Remove.
25664         (NANOSLEEP_BUG_WORKAROUND): New constant.
25665         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
25666         things considerably.  Use it only on GNU/Linux hosts, since the
25667         workaround shouldn't be needed elsewhere.
25668
25669 2005-02-24  Bruno Haible  <bruno@clisp.org>
25670
25671         * modules/gettext (Files): Add m4/glibc2.m4.
25672
25673 2005-02-24  Bruno Haible  <bruno@clisp.org>
25674
25675         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
25676         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
25677         * m4/progtest.m4:
25678         Update from GNU gettext 0.14.2.
25679         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
25680
25681 2005-02-24  Bruno Haible  <bruno@clisp.org>
25682
25683         * lib/localcharset.c: Update from GNU gettext 0.14.2.
25684         * lib/config.charset: Update from GNU gettext 0.14.2.
25685
25686 2005-02-24  Bruno Haible  <bruno@clisp.org>
25687
25688         * lib/gettext.h: Update from GNU gettext 0.14.2.
25689
25690 2005-02-23  Simon Josefsson  <jas@extundo.com>
25691
25692         * m4/iconvme.m4: New file.
25693
25694 2005-02-23  Jim Meyering  <jim@meyering.net>
25695
25696         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
25697         change.
25698         Thanks to Bruno Haible for catching it.
25699
25700 2005-02-22  Simon Josefsson  <jas@extundo.com>
25701
25702         * modules/iconvme: New file.
25703
25704         * MODULES.html.sh: Add iconvme.
25705
25706 2005-02-22  Simon Josefsson  <jas@extundo.com>
25707
25708         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
25709
25710 2005-02-22  Simon Josefsson  <jas@extundo.com>
25711
25712         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
25713
25714 2005-02-22  Jim Meyering  <jim@meyering.net>
25715
25716         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
25717         s/ifndef/ifdef/.
25718
25719 2005-02-20  Neil Conway  <neilc@samurai.com>
25720
25721         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
25722         returned by OSX/Darwin if the specified buffer is not large
25723         enough for the hostname.
25724
25725 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
25726
25727         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
25728         pass it to _help, otherwise the latter coredumps trying to
25729         dereference state.root_argp.
25730
25731 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
25732
25733         * modules/chdir-long (Depends-on): Add memrchr.
25734         * modules/memrchr (Files): Add lib/memrchr.h.
25735         (Include): "memrchr.h".
25736
25737 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
25738
25739         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
25740
25741 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
25742
25743         * lib/memrchr.h: New file.
25744         * lib/chdir-long.c: Include it.
25745         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
25746         Don't bother including stddef.h.
25747
25748 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
25749
25750         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
25751         inclusion.
25752         Include <sys/types.h>, for dev_t.
25753         (ME_DUMMY, ME_REMOTE): Move from here....
25754         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
25755         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
25756         Dmitry V. Levin.
25757         Include mountlist.h first, to test the interface.
25758
25759 2005-01-29  Bruno Haible  <bruno@clisp.org>
25760
25761         * lib/progname.c (program_name): Initialize.
25762         Needed when linking statically on MacOS X.
25763
25764 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
25765
25766         Sync from coreutils.
25767         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
25768         (Depends-on): Add c-strtod.
25769         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
25770
25771 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
25772
25773         Sync from coreutils.
25774         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
25775
25776         Remove files that are specific to coreutils.
25777         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
25778
25779 2005-01-28  Bruno Haible  <bruno@clisp.org>
25780
25781         * modules/javacomp: New file.
25782         * MODULES.html.sh (Java): Add javacomp.
25783
25784 2005-01-28  Bruno Haible  <bruno@clisp.org>
25785
25786         * m4/javacomp.m4: New file, from GNU gettext.
25787
25788 2005-01-28  Bruno Haible  <bruno@clisp.org>
25789
25790         * lib/javacomp.sh.in: New file, from GNU gettext.
25791         * lib/javacomp.h: New file, from GNU gettext.
25792         * lib/javacomp.c: New file, from GNU gettext.
25793
25794 2005-01-26  Simon Josefsson  <jas@extundo.com>
25795
25796         * lib/gai_strerror.c: Use GPL in header.
25797
25798 2005-01-26  Bruno Haible  <bruno@clisp.org>
25799
25800         * modules/javaexec: New file.
25801         * MODULES.html.sh (Java): Add javaexec.
25802
25803 2005-01-26  Bruno Haible  <bruno@clisp.org>
25804
25805         * m4/javaexec.m4: New file, from GNU gettext.
25806
25807 2005-01-26  Bruno Haible  <bruno@clisp.org>
25808
25809         * lib/javaexec.sh.in: New file, from GNU gettext.
25810         * lib/javaexec.h: New file, from GNU gettext.
25811         * lib/javaexec.c: New file, from GNU gettext.
25812
25813 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
25814
25815         * modules/lchown (Depends-on): Remove lchown.h
25816
25817 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
25818
25819         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
25820         must be defined if the header file was not found, in order
25821         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
25822
25823 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
25824
25825         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
25826         initializers for struct pentry_state.
25827         (__argp_error): Check return value of __asprintf
25828         (__argp_failure): Translate error message
25829
25830         * lib/argp-parse.c: Removed braces around the expansion of N_()
25831
25832 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25833
25834         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
25835         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
25836         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
25837         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
25838         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
25839         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
25840         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
25841         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
25842         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
25843         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
25844         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
25845         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
25846         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
25847         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
25848         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
25849         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
25850         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
25851         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
25852         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
25853         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
25854         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
25855         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
25856         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
25857         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
25858         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
25859         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
25860         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
25861         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
25862         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
25863         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
25864         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
25865         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
25866         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
25867         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
25868         xstrtol.m4, xstrtoumax.m4, yesno.m4:
25869         Use an all-permissive copyright notice, recommended by RMS.
25870
25871 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
25872
25873         * modules/chdir-long (Depends-on): Remove mempcpy.
25874
25875 2005-01-21  Jim Meyering  <jim@meyering.net>
25876
25877         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
25878         same value as for Solaris 9.
25879
25880         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
25881         component length.  This included changing the parameter to be
25882         of type `char *' rather than `char const *'.
25883         * lib/chdir-long.h (chdir_long): Update prototype.
25884
25885         * lib/openat.c (fdopendir, fstatat): New functions.
25886         * lib/openat.h: Include headers required for use of DIR and struct
25887         stat.
25888         [AT_SYMLINK_NOFOLLOW]: Define.
25889         (fdopendir, fstatat): Add prototypes.
25890
25891 2005-01-21  Bruno Haible  <bruno@clisp.org>
25892
25893         * modules/classpath: New file.
25894         * MODULES.html.sh (Java): Add classpath.
25895
25896 2005-01-21  Bruno Haible  <bruno@clisp.org>
25897
25898         * lib/classpath.h: New file, from GNU gettext.
25899         * lib/classpath.c: New file, from GNU gettext.
25900
25901 2005-01-20  Simon Josefsson  <jas@extundo.com>
25902
25903         * modules/version-etc-fsf: New file.
25904
25905 2005-01-20  Simon Josefsson  <jas@extundo.com>
25906
25907         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
25908         * lib/version-etc.c: Remove version_etc_copyright.
25909         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
25910         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
25911
25912 2005-01-20  Simon Josefsson  <jas@extundo.com>
25913
25914         * lib/base64.h (isbase64): Add.
25915
25916         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
25917         using a unsigned prototype, don't inline.
25918         (base64_decode): Use it.
25919
25920 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
25921
25922         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
25923         it.
25924
25925 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
25926
25927         * lib/save-cwd.c (save_cwd): Remove code to support the case
25928         where fchdir is missing or flaky.
25929
25930 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
25931
25932         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
25933
25934 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
25935
25936         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
25937         AC_LIBSOURCES now does this.
25938         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
25939         with new ullong_max module.
25940
25941 2005-01-19  Bruno Haible  <bruno@clisp.org>
25942
25943         * modules/sh-quote: New file.
25944         * MODULES.html.sh (Executing programs): Add sh-quote.
25945
25946 2005-01-19  Bruno Haible  <bruno@clisp.org>
25947
25948         * lib/sh-quote.h: New file, from GNU gettext.
25949         * lib/sh-quote.c: New file, from GNU gettext.
25950
25951 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25952
25953         Merge from coreutils.
25954         * m4/ullong_max.m4: New file.
25955         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
25956         (gl_MACROS): Assume localeconv exists.
25957
25958 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25959
25960         Merge changes from coreutils, as described below in several
25961         changelogs dated today.
25962
25963         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
25964         (O_DIRECTORY): Remove; not needed here, since "." must be
25965         a directory.  All uses removed.
25966         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
25967         universal on Suns, and we also need to test for IRIX.
25968         Revamp code to use 'if' rather than '#if'.
25969         Avoid unnecessary comparison of cwd->desc to 0.
25970
25971         * lib/utimens.c (futimens): Robustify the previous patch, by checking
25972         for known valid error numbers rather than observed invalid ones.
25973
25974 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25975
25976         * modules/ullong_max: New file.
25977
25978         * modules/chdir-long, modules/openat: New files.
25979         * modules/save-cwd (Depends-on): Depend on chdir-long.
25980         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
25981
25982 2005-01-18  Jim Meyering  <jim@meyering.net>
25983
25984         Merge from coreutils.
25985         * m4/chdir-long.m4, m4/openat.m4: New files.
25986         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
25987         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
25988         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
25989         is sane and DOES follow symlinks.  Besides, testing 20 different
25990         systems found no broken chown implementations.
25991         Prompted by a change in rsync's copy of this macro.
25992         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
25993
25994         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
25995
25996         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
25997         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
25998         NULL-means-set-to-current-time semantics.
25999         Remove temporary file immediately, rather than waiting
26000         for configure's at-exit trap code to do it.
26001
26002 2005-01-18  Jim Meyering  <jim@meyering.net>
26003
26004         * lib/version-etc.c (version_etc_copyright): Update copyright date.
26005
26006         * lib/utimens.c (futimens): Account for the fact that futimes
26007         can also fail with errno == ENOSYS or errno == ENOENT.
26008         Patch from Dmitry V. Levin.
26009
26010         Change the name of the robust chdir function from chdir to chdir_long.
26011         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
26012         (restore_cwd): Use chdir_long, not chdir.
26013         * lib/chdir-long.c: Renamed from chdir.c.
26014         * lib/chdir-long.h: Renamed from chdir.h.
26015         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
26016         Hurd.
26017
26018 2005-01-18  Bruno Haible  <bruno@clisp.org>
26019
26020         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
26021         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
26022         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
26023         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
26024         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
26025         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
26026         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
26027         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
26028         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
26029         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
26030         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
26031         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
26032         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
26033         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
26034         Use an all-permissive copyright notice, recommended by RMS.
26035
26036 2005-01-18  Bob Proulx  <bob@proulx.com>
26037
26038         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
26039         simplify offsetof() macro construct to avoid compile failure with
26040         native HP-UX 11.0 ANSI C compiler.
26041
26042 2005-01-17  Bruno Haible  <bruno@clisp.org>
26043
26044         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
26045         redundant because stpncpy.m4 takes care of it.
26046
26047 2005-01-17  Bruno Haible  <bruno@clisp.org>
26048
26049         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
26050
26051 2005-01-17  Bruno Haible  <bruno@clisp.org>
26052
26053         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
26054         used.
26055
26056 2005-01-17  Bruno Haible  <bruno@clisp.org>
26057
26058         * lib/fwriteerror.h (fwriteerror): Change specification to include
26059         fclose.
26060         * lib/fwriteerror.c: Include <stdbool.h>.
26061         (fwriteerror): At the end, close the file stream. Record whether
26062         stdout was already closed.
26063
26064 2005-01-17  Bruno Haible  <bruno@clisp.org>
26065
26066         * lib/execute.c (environ): Declare if needed.
26067         * lib/pipe.c (environ): Likewise.
26068         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
26069
26070 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
26071
26072         * modules/argp: Depend on vsnprintf
26073
26074 2005-01-10  Jim Meyering  <jim@meyering.net>
26075
26076         * modules/closeout (Depends-on): Add atexit.
26077
26078 2005-01-06  Bruno Haible  <bruno@clisp.org>
26079
26080         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
26081
26082 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
26083
26084         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
26085         definitions to be after all include files, to avoid collisions.
26086         Problem reported by Bob Proulx.
26087
26088 2005-01-04  Jim Meyering  <jim@meyering.net>
26089
26090         Changes imported from coreutils.
26091         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
26092         as the mkstemp template, use a temporary directory and an
26093         8.3-friendly template to avoid trouble on systems like DJGPP.
26094         Reported by Juan M. Guerrero via Stepan Kasal.
26095         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
26096         close. Remove the temporary directory right away, rather than waiting
26097         for configure's at-exit trap code to do it.
26098         Suggestion from Stepan Kasal.
26099
26100 2005-01-01  Simon Josefsson  <jas@extundo.com>
26101
26102         * gnulib-tool: Print #include directives when --import'ing.
26103
26104 2004-12-28  Simon Josefsson  <jas@extundo.com>
26105
26106         * tests/test-base64.c: Include required header files.  Remove
26107         unused variables.
26108
26109 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
26110
26111         * modules/error (Depends-on): Remove gettext.
26112
26113 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
26114
26115         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
26116         not needed.  This removes a dependency on the gettext module.
26117         [defined _LIBC]: Do not include <libintl.h>; not needed.
26118
26119 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
26120
26121         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
26122         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
26123
26124 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
26125
26126         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
26127         HAVE_DECL_STRTOLD.
26128
26129 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26130
26131         * modules/getdate (Depends-on): Remove alloca-opt.
26132
26133 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26134
26135         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
26136
26137 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26138
26139         * lib/argp-parse.c: Include <stddef.h>.
26140         (alignof, alignto): New macros.
26141         (parser_init): Don't assume that void * is aligned sufficiently
26142         for struct option.
26143
26144         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
26145         need to extend the stack.
26146         (YYINITDEPTH): New macro, so that the initial stack isn't overly
26147         large.
26148
26149 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
26150
26151         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
26152
26153 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
26154
26155         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
26156         (2004-10-24) change.  Apparently this was a false alarm.
26157
26158         * modules/getdate: Depend on alloca-opt, not alloca.
26159
26160 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
26161
26162         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
26163         Remove now-obsolete comment about AIX.
26164         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
26165         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
26166         (YYMAXDEPTH): New macro.
26167
26168 2004-12-18  Simon Josefsson  <jas@extundo.com>
26169
26170         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
26171
26172 2004-12-18  Bruno Haible  <bruno@clisp.org>
26173
26174         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
26175
26176 2004-12-18  Bruno Haible  <bruno@clisp.org>
26177
26178         * lib/fatal-signal.c (fatal_signals): Make non-const.
26179         (init_fatal_signals): New function.
26180         (uninstall_handlers, install_handlers): Ignore signals that were set to
26181         SIG_IGN.
26182         (at_fatal_signal): Call init_fatal_signals.
26183         (init_fatal_signal_set): Likewise. Ignore signals that were set to
26184         SIG_IGN.
26185         Reported by Paul Eggert.
26186
26187 2004-12-18  Bruno Haible  <bruno@clisp.org>
26188
26189         * doc/alloca.texi: New file.
26190         * doc/alloca-opt.texi: New file.
26191
26192 2004-12-17  Jim Meyering  <jim@meyering.net>
26193
26194         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
26195         Otherwise, install-sh could exit with improper exit status when
26196         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
26197
26198 2004-12-16  Simon Josefsson  <jas@extundo.com>
26199
26200         * tests/test-base64.c: Add license.
26201
26202 2004-12-15  Stepan Kasal  <address@hidden>
26203
26204         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
26205
26206 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
26207
26208         * modules/getcwd (Files): Add m4/d-ino.m4.
26209         Suggested by Mark D. Baushke.
26210
26211 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
26212
26213         * lib/getdate.y (textint): New member "negative".
26214         (time_zone_hhmm): New function.
26215         Expect 14 shift-reduce conflicts, not 13.
26216         (o_colon_minutes): New rule.
26217         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
26218         (yylex): Set the "negative" member of signed numbers.
26219
26220 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
26221
26222         * doc/getdate.texi (Time of day items, Time zone items):
26223         Describe new formats +00:00, UTC+00:00.
26224
26225 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
26226
26227         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
26228         spurious "-l"s.  Problem reported by Stepan Kasal.
26229
26230 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
26231
26232         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
26233         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
26234
26235 2004-12-04  Simon Josefsson  <jas@extundo.com>
26236
26237         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
26238         Vandoorselaere <yoann@prelude-ids.org>.
26239
26240 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
26241
26242         Changes imported from coreutils.
26243         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
26244         exist.
26245         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
26246
26247 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
26248
26249         Changes imported from coreutils.
26250         * lib/hard-locale.c: Assume <locale.h> exists.
26251         Include "strdup.h".
26252         (GLIBC_VERSION): New macro.
26253         (hard_locale): Assume setlocale exists.
26254         Rewrite to avoid #ifdef.
26255         Use strdup rather than malloc + strcpy.
26256         * lib/human.c: Assume <locale.h> exists.
26257         (human_readable): Assume localeconv exists.
26258
26259 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
26260
26261         * modules/hard-locale (Depends-on): Add strdup.
26262
26263 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
26264
26265         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
26266         convert T2, not T.  (Imported from libc.)
26267
26268 2004-11-30  Simon Josefsson  <jas@extundo.com>
26269
26270         * modules/restrict (License): Change to LGPL.
26271
26272 2004-11-30  Simon Josefsson  <jas@extundo.com>
26273
26274         * m4/restrict.m4: Add copyright and copying conditions.
26275
26276 2004-11-30  Simon Josefsson  <jas@extundo.com>
26277
26278         * m4/base64.m4: New file.
26279
26280 2004-11-30  Simon Josefsson  <jas@extundo.com>
26281
26282         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
26283         base64.
26284
26285         * tests/test-base64.c: New file.
26286
26287         * modules/base64: New file.
26288
26289 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
26290
26291         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
26292         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
26293
26294         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
26295
26296 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
26297
26298         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
26299         (__getcwd.c): Don't restore errno; glibc doesn't.
26300         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
26301         first, falling back to our code only if its results look suspicious.
26302         Ensure that the resulting buffer is only as large as necessary.
26303
26304         * lib/readutmp.c: Include readutmp.h first.
26305         Include <errno.h>, since readutmp.h no longer does that.
26306         * lib/readutmp.h: Don't include <errno.h>,
26307         <sys/param.h>, <time.h>; not needed to establish interface.
26308         (errno): Remove decl.
26309         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
26310         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
26311         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
26312
26313 2004-11-28  Simon Josefsson  <jas@extundo.com>
26314
26315         * lib/base64.h, base64.c: New file.
26316
26317 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
26318
26319         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
26320
26321 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
26322
26323         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
26324         (Depends-on): Remove pathmax, same.  Add mempcpy.
26325         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
26326         (Makefile.am): Append getcwd.h to lib_SOURCES.
26327         (Include): Add getcwd.h.
26328         (Maintainer): Change from Jim Meyering to "all, glibc",
26329         since getdate now uses intended-for-glibc code.
26330         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
26331         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
26332
26333 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26334
26335         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
26336         HP's ANSI C compiler.
26337         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
26338         Declaring int functions causes warnings on some modern systems and
26339         shouldn't be needed to compile on ancient ones.
26340         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
26341         defined.
26342
26343         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
26344         with the following changes.
26345         (__set_errno): Parenthesize properly.
26346         Include <stdbool.h>.
26347         (MIN, MAX, MATCHING_INO): New macros.
26348         (__getcwd): Define with prototype, not K&R form.
26349         Use heuristics to allocate default buffer on stack if possible.
26350         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
26351         behavior, and to avoid the PATH_MAX limit when computing
26352         ../../../../...
26353         Use MATCHING_INO to compare inode number to file.
26354         Check for arithmetic overflow in size calculations.
26355         Fix bug in reallocation of dot array that caused getcwd to fail
26356         on directories nested deeper than 75.
26357         Be more careful about saving errno on error.
26358         Do not use realloc; use only free+malloc, as this is a bit
26359         more flexible and avoids a needless copy operation.
26360         Do not inspect st_dev and st_ino for symbolic links; POSIX
26361         doesn't specify the latter.
26362         Check for closedir errors.
26363         Avoid needless casts.
26364         Use "#ifdef weak_alias" around weak_alias, to be like other
26365         glibc code.
26366         The following changes to getcwd.c have effect only when used in
26367         gnulib; they have no effect inside glibc proper.
26368         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
26369         as alloca isn't used.
26370         (alloca, __alloca): Likewise.
26371         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
26372         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
26373         unconditionally, as gnulib assumes C89 or better.
26374         Do not include <sys/param.h>.
26375         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
26376         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
26377         better.
26378         (NULL) [!defined NULL]: Remove; we assume C89 or better.
26379         Include <dirent.h> in a way that is compatible with modern Autoconf.
26380         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
26381         New macros, if not already defined.
26382         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
26383         Use "_LIBC", not "defined _LIBC", for consistency.
26384         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
26385         a mempcpy module.
26386         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
26387         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
26388         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
26389         credit only to Jim Meyering and adjust the copyright dates.
26390         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
26391         <stdlib.h>, <unistd.h>, "pathmax.h".
26392         Instead, include "xgetcwd.h" (first) and "getcwd.h".
26393         (INITIAL_BUFFER_SIZE): Remove.
26394         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
26395
26396 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26397
26398         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
26399         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
26400         Use the _ONCE methods, for efficiency.
26401         Check for fcntl.h.  In test program, include <errno.h>
26402         and <fcntl.h> if available.  Remove old K&R cruft from
26403         test program.  Check for common errors in GNU/Linux,
26404         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
26405         don't do AC_LIBOBJ, as that's getcwd.m4's job.
26406         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
26407         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
26408         name accordingly.
26409         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
26410         accommodate new getcwd.c.
26411         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
26412         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
26413         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
26414         that's all we need now.
26415
26416 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
26417
26418         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
26419         argp-parse.c depends on getopt internals, that means we should
26420         always use our getopt, to be on the safe side.
26421         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
26422         order not to spoil the result of an eventual previous invocation
26423         of gl_GETOPT_SUBSTITUTE.
26424
26425 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
26426
26427         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
26428         redefinition warnings. To avoid them, include the defines
26429         in `#if !defined __need_getopt ... #endif'. The only place
26430         where __getopt_argv_const is used is in definitions
26431         of getopt_long and getopt_long_only below, which are as well
26432         protected by `#ifndef __need_getopt'.
26433         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
26434         __need_getopt after including <stdio.h> and <unistd.h> These
26435         headers might have defined it.
26436
26437 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
26438
26439         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
26440
26441 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
26442
26443         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
26444         (futimens): New function, which uses futimes if available.
26445         (futimens, utimens): Support timespec==NULL, with same semantics
26446         as utime and utimens.
26447         * lib/utimens.h (futimens): New decl.
26448
26449 2004-11-23  Jim Meyering  <jim@meyering.net>
26450
26451         * lib/getopt_.h: Remove trailing blanks.
26452
26453 2004-11-23  Jim Meyering  <jim@meyering.net>
26454
26455         * lib/__fpending.c: Add comment.
26456
26457 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
26458
26459         * modules/canonicalize (Depends-on): Add xreadlink.
26460         Problem reported by James Youngman.
26461
26462 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
26463
26464         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
26465         New macros.
26466         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
26467         optopt): Use them instead of invoking ## directly; otherwise, the
26468         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
26469
26470 2004-11-19  Bruno Haible  <bruno@clisp.org>
26471
26472         * lib/strtok_r.c: Move comments from here...
26473         * lib/strtok_r.h: ... to here.
26474
26475 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
26476
26477         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
26478         implementations that mishandle size_t overflow.
26479
26480 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
26481
26482         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
26483         might fail.  Problem reported by Yoann Vandoorselaere.
26484         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
26485         implementations that mishandle size_t overflow.
26486
26487 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
26488
26489         * modules/canon-host (Depends-on): Add strdup.
26490
26491 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
26492
26493         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
26494
26495 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
26496
26497         * lib/canon-host.c: Include "strdup.h".
26498         (canon_host): Use getaddrinfo if available, so that IPv6 works.
26499         Use strdup instead of malloc/strcpy to duplicate strings.
26500
26501         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
26502         (human_space_before_unit): New constant.
26503         * lib/human.c (human_readable): Support it.
26504
26505         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
26506         (xgetcwd): Set errno correctly when failing.
26507         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
26508         the failure is actually due to a PATH_MAX problem.
26509
26510         Further getopt changes to make it more likely that glibc will
26511         buy the changes back.
26512         * lib/getopt.c (POSIXLY_CORRECT): New constant.
26513         (getopt): Use it, so to preserve glibc semantic
26514         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
26515         when compiling for libc.
26516         * lib/getopt_.h (__getopt_argv_const): Bring it back.
26517         (getopt_long, getopt_long_only): Use it.
26518
26519         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
26520         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
26521         (getopt): Argv is now char * const *, as per standard.
26522         (_getopt_internal_r, _getopt_internal): Argv is now char **,
26523         not char *__getopt_argv_const *.
26524         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
26525         _getopt_long_only_r): Likewise.
26526         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
26527         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
26528         _getopt_long_r, _getopt_long_only_r): Likewise.
26529         * lib/getopt_.h (__getopt_argv_const): Remove.
26530         (getopt): Argv is now char * const *, as per standard.
26531
26532         * lib/getdate.y (tORDINAL): New token.
26533         (day, relunit): Allow it for relative times.
26534         (relative_time_table): Use tORDINAL for ordinals.
26535
26536 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
26537
26538         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
26539         Document that "second" isn't allowed as an ordinal number.
26540
26541 2004-11-16  Jim Meyering  <jim@meyering.net>
26542
26543         * modules/closeout (Depends-on): Add fpending.
26544
26545 2004-11-15  Jim Meyering  <jim@meyering.net>
26546
26547         * lib/closeout.c: Include "__fpending.h" once again.
26548         Include <stdbool.h>.
26549         (close_stdout): Don't fail just because stdout was closed initially,
26550         since some programs don't write to stdout in the normal course of
26551         operation (other than --version and --help), and we don't want this
26552         function to make e.g. `touch file >&-' fail.
26553         But do fail if it was closed and someone has tried to write to it.
26554         E.g., `printf foo >&-' must fail.
26555
26556 2004-11-13  Jim Meyering  <jim@meyering.net>
26557
26558         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
26559
26560 2004-11-12  Simon Josefsson  <jas@extundo.com>
26561
26562         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
26563         small doc fix is still pending.
26564
26565 2004-11-11  Simon Josefsson  <jas@extundo.com>
26566
26567         * modules/strtok_r: New file.
26568
26569         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26570         strtok_r.
26571
26572 2004-11-11  Simon Josefsson  <jas@extundo.com>
26573
26574         * m4/strtok_r.m4: New file.
26575
26576         * m4/getopt.m4: Replace opterr.
26577
26578 2004-11-11  Simon Josefsson  <jas@extundo.com>
26579
26580         * lib/strtok_r.h, strtok_r.c: New file.
26581
26582 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
26583
26584         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
26585         of replacing opterr, getopt, etc.  This should handle the
26586         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
26587
26588 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
26589
26590         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
26591         we can stop lying to compilers about the constness of argv when we
26592         are compiled outside glibc.
26593         (getopt, getopt_long, getopt_long_only): Use it.
26594         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
26595         _getopt_internal, getopt): Likewise.
26596         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
26597         _getopt_long_only_r): Likewise.
26598         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
26599         _getopt_long_r, _getopt_long_only_r): Likewise.
26600
26601         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
26602         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
26603         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
26604         the other external symbols.
26605         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
26606         declaration, since the above renaming now works around collisions.
26607
26608 2004-11-11  Jim Meyering  <jim@meyering.net>
26609
26610         * lib/linebreak.c: Remove trailing blanks.
26611         * lib/alloca_.h: Likewise.
26612         * lib/acosl.c: Likewise.
26613         * lib/euidaccess.c: Likewise.
26614         * lib/allocsa.h: Likewise.
26615
26616 2004-11-10  Simon Josefsson  <jas@extundo.com>
26617
26618         * m4/getaddrinfo.m4: New file.
26619
26620 2004-11-10  Simon Josefsson  <jas@extundo.com>
26621
26622         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
26623
26624 2004-11-10  Simon Josefsson  <jas@extundo.com>
26625
26626         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26627         getaddrinfo.
26628
26629         * modules/getaddrinfo: New file.
26630
26631 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26632
26633         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
26634
26635 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26636
26637         * lib/mktime.c (SHR): New macro, which is a portable
26638         substitute for >> that should work even on Crays.
26639         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
26640         Problem reported by Mark D. Baushke in
26641         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
26642         * lib/getdate.y (SHR): Likewise.
26643         (tm_diff): Use it.
26644         * lib/strftime.c (SHR): Likewise.
26645         (tm_diff): Use it.
26646         * lib/quotearg.c (struct quoting_options): Use unsigned int for
26647         quote_these_too, so that right shifts are well defined.  All uses
26648         changed.
26649
26650 2004-11-10  Jim Meyering  <jim@meyering.net>
26651
26652         Ensure that no close failure goes unreported.
26653         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
26654         return early when it seems there's nothing to flush.
26655         Don't include __fpending.h.
26656
26657 2004-11-10  Jim Meyering  <jim@meyering.net>
26658
26659         * modules/closeout (Depends-on): Remove fpending.
26660
26661 2004-11-10  Jim Meyering  <jim@meyering.net>
26662
26663         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
26664
26665 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
26666
26667         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
26668         gl_FUNC_STRFTIME.
26669         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
26670         and AC_REQUIRE when possible, to avoid duplicate checks.
26671         Check for <wchar.h>.
26672
26673 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
26674
26675         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
26676
26677 2004-11-09  Bruno Haible  <bruno@clisp.org>
26678
26679         * m4/sockpfaf.m4: New file.
26680
26681 2004-11-05  Bruno Haible  <bruno@clisp.org>
26682
26683         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
26684         Reported by Mark D. Baushke <mdb@cvshome.org>.
26685
26686 2004-11-04  Bruno Haible  <bruno@clisp.org>
26687
26688         2004-09-11  Bruno Haible  <bruno@clisp.org>
26689                 * allocsa.valgrind: New file.
26690         2004-02-06  Bruno Haible  <bruno@clisp.org>
26691                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
26692                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
26693                 Reported by Christopher Seip <chris.seip@hp.com>.
26694
26695 2004-11-04  Bruno Haible  <bruno@clisp.org>
26696
26697         * modules/allocsa (Files): Add lib/allocsa.valgrind.
26698         (Makefile.am): Distribute it.
26699
26700 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
26701
26702         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
26703         with errno == ERANGE if the buffer is too small.
26704         Problem reported by Mark D. Baushke.
26705
26706 2004-11-03  Albert Chin  <china@thewrittenword.com>
26707             Paul Eggert  <eggert@cs.ucla.edu>
26708
26709         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
26710         equivalent, substitute $ac_type for equivalent type rather than
26711         blindly using uint32_t *always* which won't work if uint32_t is not
26712         available.  Define _UINT32_T to work around typedef of uint32_t if
26713         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
26714         2.5.1.
26715
26716 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
26717
26718         * m4/jm-macros.m4: Sync from coreutils.
26719         (gl_MACROS): Check for mbrlen, for pathchk.
26720         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
26721
26722 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
26723
26724         * lib/xreadlink.c (MAXSIZE): New macro.
26725         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
26726         size does not exceed MAXSIZE.  Avoid cast.
26727         As suggested by Mark D. Baushke in
26728         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
26729         if readlink fails with buffer size just under MAXSIZE, try again
26730         with MAXSIZE.
26731
26732 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
26733
26734         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
26735
26736 2004-11-02  Derek R. Price  <derek@ximbiot.com>
26737         and  Paul Eggert  <eggert@cs.ucla.edu>
26738
26739         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
26740         (get_date): Overparenthesize to avoid GCC warning.
26741
26742 2004-11-02  Bruno Haible  <bruno@clisp.org>
26743
26744         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
26745         returns void.
26746
26747 2004-11-02  Bruno Haible  <bruno@clisp.org>
26748
26749         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
26750         function returns void.
26751
26752 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
26753
26754         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
26755         fflush_unlocked, flockfile, funlockfile, funlockfile,
26756         fputs_unlocked, putc_unlocked.
26757
26758 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
26759
26760         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
26761         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
26762         already declared.
26763
26764 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
26765
26766         * modules/getdate (Files): Add doc/getdate.texi.
26767         (Depends-on): Add setenv, xalloc.
26768
26769 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
26770
26771         * lib/getdate.y: Add support for TZ="foo" within a date string.
26772         Fix some bugs near time_t boundaries.  Reject dates with
26773         out-of-range components, e.g., "Sept 31".
26774         Include <stdlib.h>, "setenv.h", "xalloc.h".
26775         (ISDIGIT_LOCALE): Remove; unused.
26776         Note that the TZ and time functions used here are not reentrant.
26777         (mktime_ok, get_tz): New functions.
26778         (TZBUFSIZE): New constant.
26779         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
26780         This requires that we sometimes generate our own TZ="XXX..." setting.
26781
26782 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
26783
26784         * doc/getdate.texi: New file, from coreutils with modifications for
26785         the new TZ parsing.
26786
26787 2004-10-27  Derek R. Price  <derek@ximbiot.com>
26788
26789         * lib/mktime.c (not_equal_tm): Remove redundant check.
26790
26791 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
26792
26793         * modules/regex (lib_SOURCES): Add regex.c.
26794         Reported by James Youngman in
26795         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
26796
26797 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
26798
26799         * lib/getdate.y: Use Bison 1.875 features, and some minor
26800         code cleanups.  This change does not affect semantics.
26801         Don't include <stdlib.h>; no longer needed.
26802         Don't include unlocked-io.h; only the "#if TEST" code uses
26803         stdio, and performance isn't crucial there.
26804         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
26805         Bison 1.875 features as described below.
26806         All uses of "PC." replaced by "pc->".
26807         (YYSTYPE): Add a forward declaration.
26808         (yylex, yyerror): Use full prototypes in forward decls.
26809         Use "%pure-parser" rather than obsolescent "%pure_parser".
26810         Use %parse-param and %lex-param instead of obsolescent
26811         YYPARSE_PARAM and YYLEX_PARAM.
26812         (meridian_table, month_and_day_table, time_units_table,
26813         relative_time_table, time_zone_table, military_table,
26814         lookup_zone, lookup_word, get_date):
26815         Use NULL instead of 0 where appropriate.
26816         (to_hour): Avoid abort (), to avoid a dependency on
26817         stdlib.h.
26818         (yyerror, yylex): Now accepts parser_control * arg.
26819         (main) [TEST]: Use '\0' rather than 0 for char.
26820
26821 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
26822
26823         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
26824
26825 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
26826
26827         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
26828         It's now the caller's responsibility to handle the case where
26829         !HAVE_GETPAGESIZE && !defined getpagesize.
26830
26831         * lib/mktime.c (leapyear): Arg is long int, not int.
26832
26833 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
26834
26835         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
26836
26837 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
26838
26839         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
26840         missing.  Problem reported by James Youngman.
26841
26842 2004-10-16  Simon Josefsson  <jas@extundo.com>
26843
26844         * gnulib-tool: Fix comments.  Fix parse problem.
26845         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
26846
26847 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
26848
26849         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
26850         implementation of getopt_long.  Problem reported by Alexander Taler in:
26851         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
26852
26853 2004-10-15  Bruno Haible  <bruno@clisp.org>
26854
26855         * gnulib-tool: Untabify. Initialize supplied_libname.
26856         (func_usage): More homogenous output.
26857         (func_modules_transitive_closure, func_modules_to_filelist,
26858         func_emit_lib_Makefile_am): New functions.
26859         (func_import): New function, extracted from big case statement. Use
26860         func_get_license, func_modules_transitive_closure,
26861         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
26862         opt_lgpl. Don't use test -a, as it's not portable.
26863         (func_create_testdir): Use func_modules_transitive_closure,
26864         func_modules_to_filelist, func_emit_lib_Makefile_am.
26865
26866 2004-10-15  Bruno Haible  <bruno@clisp.org>
26867
26868         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
26869
26870 2004-10-15  Bruno Haible  <bruno@clisp.org>
26871
26872         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
26873         the portions belonging to each module.
26874         Suggested by Derek Robert Price <derek@ximbiot.com>.
26875
26876 2004-10-12  Simon Josefsson  <jas@extundo.com>
26877
26878         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
26879         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
26880         to real functions.
26881
26882 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
26883
26884         * modules/vsnprintf: New file.
26885
26886 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
26887
26888         * m4/vsnprintf.m4: New file.
26889
26890 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
26891
26892         * lib/vsnprintf.h: New file.
26893         * lib/vsnprintf.c: New file.
26894
26895 2004-10-11  Bruno Haible  <bruno@clisp.org>
26896
26897         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
26898         vsnprintf.
26899
26900 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
26901
26902         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
26903
26904 2004-10-07  Bruno Haible  <bruno@clisp.org>
26905
26906         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
26907         fits into the provided buffer.
26908
26909 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
26910
26911         * lib/diacrit.c, diacrit.h: Add GPL notice.
26912
26913         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
26914         notice.
26915         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
26916         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
26917         This avoids a potential constant-folding bug.
26918
26919 2004-10-05  Bruno Haible  <bruno@clisp.org>
26920
26921         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
26922         for the declaration of strsep.
26923
26924 2004-10-05  Bruno Haible  <bruno@clisp.org>
26925
26926         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
26927
26928 2004-10-04  Simon Josefsson  <jas@extundo.com>
26929
26930         * modules/memmem: New file.
26931         * tests/test-memmem.c: New file.
26932         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
26933
26934 2004-10-04  Simon Josefsson  <jas@extundo.com>
26935
26936         * m4/memmem.m4: New file.
26937
26938 2004-10-04  Simon Josefsson  <jas@extundo.com>
26939
26940         * lib/memmem.h: New file.
26941         * lib/memmem.c: New file, taken from glibc.
26942
26943 2004-10-04  Simon Josefsson  <jas@extundo.com>
26944
26945         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
26946         '#ifdef USE_UNLOCKED_IO'.
26947
26948 2004-10-04  Simon Josefsson  <jas@extundo.com>
26949
26950         * config/srclist.txt: Add memmem from glibc.
26951
26952 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
26953
26954         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
26955
26956         * modules/argmatch, modules/argp, modules/closeout, modules/error,
26957         modules/exclude, modules/getdate, modules/getline,
26958         modules/getndelim2, modules/getpass, modules/getpass-gnu,
26959         modules/getusershell, modules/linebuffer, modules/md5,
26960         modules/mountlist, modules/posixtm, modules/readtokens,
26961         modules/readutmp, modules/regex, modules/sha1,
26962         modules/version-etc, modules/yesno:
26963         Remove dependency on unlocked-io.
26964
26965 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
26966
26967         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
26968
26969         * m4/unlocked-io.m4: Add copyright notice.
26970         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
26971
26972 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
26973
26974         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
26975         * lib/xmalloc.c (xmemdup): Likewise.
26976         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
26977         XFREE): Remove these long-obsolescent macros.
26978         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
26979         * lib/xstrdup.c: Remove.
26980
26981         * lib/regex.c (re_comp): Cast gettext return value to char *,
26982         Problem reported by Martin Neitzel via Mark D. Baushke.
26983
26984 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
26985
26986         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
26987         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
26988         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
26989         regex.c, sha1.c, version-etc.c, yesno.c:
26990         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
26991         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
26992         the includer's responsibility.
26993
26994         Sync from coreutils.
26995
26996         * lib/modechange.c (mode_compile): Don't decrement a pointer that
26997         points to the start of a string, as the C Standard says the
26998         resulting behavior is undefined.
26999
27000         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
27001         simple -> simple_backups, numbered_existing ->
27002         numbered_existing_backups, numbered -> numbered_backups
27003         to avoid shadowing problems.  All uses changed.
27004         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
27005         * lib/backupfile.c (check_extension, numbered_backup):
27006         Rename locals to avoid shadowing 'basename'.
27007         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
27008         once.
27009
27010         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
27011         * lib/.cvsignore: Add getopt.h.
27012
27013 2004-10-04  Bruno Haible  <bruno@clisp.org>
27014
27015         * modules/README: New file.
27016         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
27017         not a module.
27018
27019 2004-10-02  Jim Meyering  <jim@meyering.net>
27020
27021         * lib/dirfd.h, getpagesize.h: Add copyright notice.
27022
27023 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27024
27025         * modules/strsep: New file.
27026
27027 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27028
27029         * m4/strsep.m4: New file.
27030
27031 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27032
27033         * lib/strsep.h: New file.
27034         * lib/strsep.c: New file.
27035
27036 2004-10-01  Simon Josefsson  <jas@extundo.com>
27037
27038         * lib/snprintf.c (snprintf): Handle size==0.
27039
27040 2004-10-01  Simon Josefsson  <jas@extundo.com>
27041             Bruno Haible  <bruno@clisp.org>
27042
27043         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
27044         (snprintf): Declare 'args'.
27045
27046 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
27047
27048         * lib/snprintf.c: Remove comments as to why each header is needed.
27049
27050 2004-10-01  Bruno Haible  <bruno@clisp.org>
27051
27052         * MODULES.html.sh: Add strsep.
27053
27054 2004-09-30  Simon Josefsson  <jas@extundo.com>
27055
27056         * modules/snprintf: New file.
27057
27058 2004-09-30  Simon Josefsson  <jas@extundo.com>
27059
27060         * m4/snprintf.m4: New file.
27061
27062 2004-09-30  Simon Josefsson  <jas@extundo.com>
27063
27064         * lib/snprintf.h, lib/snprintf.c: New files.
27065
27066 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27067
27068         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
27069         (hol_entry_help): Never translate an empty string.
27070         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
27071         * lib/argp.h (OPTION_NO_TRANS): New option.
27072
27073 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
27074
27075         * modules/argp (Maintainer): Replace Simon Josefsson
27076         by Sergey Poznyakoff.
27077
27078 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
27079
27080         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
27081         changes merged back into glibc.
27082
27083 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
27084
27085         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
27086
27087 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
27088
27089         * lib/xvasprintf.c: Include xalloc.h.
27090         (xvasprintf): Use xalloc_die, not xmalloc_die.
27091
27092 2004-09-29  Bruno Haible  <bruno@clisp.org>
27093
27094         * modules/alloca-opt: New file, derived from modules/alloca.
27095         * modules/allocsa: Depend on alloca-opt instead of alloca.
27096         * modules/setenv: Likewise.
27097         * modules/vasnprintf: Likewise.
27098         * MODULES.html.sh: Add alloca-opt.
27099
27100 2004-09-28  Simon Josefsson  <jas@extundo.com>
27101
27102         * gnulib-tool: New parameter --lgpl, to asseert that modules are
27103         LGPL, and to replace license template from GPL to LGPL.
27104
27105 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
27106
27107         * modules/dummy: Change license to LGPL.
27108
27109 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
27110
27111         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
27112
27113 2004-09-24  Simon Josefsson  <jas@extundo.com>
27114
27115         * modules/minmax (License): Change from GPL to LGPL.
27116
27117 2004-09-23  Simon Josefsson  <jas@extundo.com>
27118
27119         * gnulib-tool (--import): Typo.
27120
27121 2004-09-23  Simon Josefsson  <jas@extundo.com>
27122
27123         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
27124
27125 2004-09-22  Bruno Haible  <bruno@clisp.org>
27126
27127         * modules/*: Add 'License' field.
27128         * gnulib-tool: Accept --extract-license option.
27129         (func_get_license): New function.
27130
27131 2004-09-21  Bruno Haible  <bruno@clisp.org>
27132
27133         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
27134         Reported by Simon Josefsson.
27135
27136 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
27137
27138         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
27139         gl_AC_TYPE_LONG_LONG.
27140
27141 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
27142
27143         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
27144
27145 2004-09-18  Simon Josefsson  <jas@extundo.com>
27146         and  Paul Eggert  <eggert@cs.ucla.edu>
27147
27148         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
27149         calls with autoreconf.  Define GL_LIB.
27150
27151 2004-09-14  Karl Berry  <karl@gnu.org>
27152
27153         * config/srclist.txt: unsync setenv.c, sigh.
27154
27155 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27156
27157         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
27158         Problem reported by Bruno Haible in:
27159         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
27160
27161 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27162
27163         * config/srclist.txt: Comment out argp-pvh.c.
27164
27165 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
27166
27167         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
27168         in case some system header has #define'd it.  Problem reported by
27169         Soeren D. Schulze in
27170         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
27171
27172 2004-09-09  Karl Berry  <karl@gnu.org>
27173
27174         * regex.[ch]: delete from the root.  These were supposed to be
27175                 synced with emacs cvs, but this has not happened for about
27176                 a year, and anyway nothing else uses emacs regex.[ch].
27177                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
27178                 lib/regex[.ch] is untouched.
27179
27180 2004-09-09  Bruno Haible  <bruno@clisp.org>
27181
27182         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
27183
27184 2004-09-09  Bruno Haible  <bruno@clisp.org>
27185
27186         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
27187         modifications.
27188         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
27189
27190 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
27191
27192         * modules/xvasprintf: New file.
27193         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
27194
27195 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
27196
27197         * lib/xvasprintf.h: New file.
27198         * lib/xvasprintf.c: New file.
27199         * lib/xasprintf.c: New file.
27200
27201 2004-09-08  Bruno Haible  <bruno@clisp.org>
27202
27203         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
27204
27205 2004-09-08  Bruno Haible  <bruno@clisp.org>
27206
27207         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
27208         length is > INT_MAX.
27209         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
27210         more.
27211
27212 2004-09-08  Bruno Haible  <bruno@clisp.org>
27213
27214         * lib/stdint_.h: New file, taken from GNU clisp.
27215
27216 2004-09-08  Bruno Haible  <bruno@clisp.org>
27217             Oskar Liljeblad  <oskar@osk.mine.nu>
27218
27219         * modules/stdint: New file.
27220         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
27221
27222 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
27223
27224         Import from coreutils.
27225         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
27226         strings on unbounded length.  alloca's performance benefits aren't
27227         that important here.
27228         (V_STRDUP): Remove.
27229         (parse_with_separator): New function, with most of the internals
27230         of the old parse_user_spec.  Allow user to omit both user and group,
27231         for compatibility with FreeBSD.
27232         Clone only the user name, not the entire spec.
27233         Do not set *uid, *gid unless entirely successful.
27234         Avoid memory leak in some failing cases.
27235         Fix regression for USER.GROUP reported by Dmitry V. Levin in
27236         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
27237         (parse_user_spec): Rewrite to use parse_with_separator.
27238
27239 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
27240
27241         * modules/userspec: Don't depend on alloca.
27242
27243 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
27244
27245         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
27246
27247 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
27248
27249         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
27250         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
27251         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
27252
27253 2004-08-16  Simon Josefsson  <jas@extundo.com>
27254
27255         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
27256         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
27257         Add --dry-run for --import.
27258         Let user provided command line parameters override configure.ac
27259         settings.
27260
27261 2004-08-12  Simon Josefsson  <jas@extundo.com>
27262
27263         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
27264         as discussed with Paul Eggert in threads rooted at
27265         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
27266         and
27267         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
27268         Before, the test was empty, and relied on ELIDE_CODE in source
27269         code.)
27270         (gl_PREREQ_GETOPT): New macro.
27271         (gl_GETOPT): Use them.
27272
27273 2004-08-12  Simon Josefsson  <jas@extundo.com>
27274
27275         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
27276         * lib/getopt_.h: Renamed from getopt.h.
27277
27278 2004-08-12  Simon Josefsson  <jas@extundo.com>
27279
27280         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
27281         Change default library name from libfoo to libgnu.
27282         Now, if you have a configure.ac that says:
27283                 gl_SOURCE_BASE(gl)
27284                 gl_M4_BASE(gl/m4)
27285                 gl_MODULES(error getopt etcetera)
27286                 gl_INIT
27287         you can import all you need by running:
27288                 ../gnulib/gnulib-tool --import
27289
27290         * modules/getopt (Files): Rename getopt.h to getopt_.h.
27291         (Makefile.am): Rewrite, use logic from argz.
27292         (Include): Use <getopt.h> instead of "getopt.h".
27293
27294 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
27295
27296         * modules/argp (Files): Add m4/unlocked-io.m4.
27297         (Depends-on): Add extensions.
27298
27299 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
27300
27301         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
27302         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
27303         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
27304         Check for program_invocation_name, program_invocation_short_name,
27305         flockfile, funlockfile, features.h, _getopt_long_only_r.
27306
27307 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
27308
27309         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
27310         its complicated substitute.
27311         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
27312         and program_invocation_name.
27313         (__argp_basename) [!_LIBC]: Remove; the only use was
27314         replaced by its body.
27315         (__argp_short_program_name): Change condition from
27316         !defined __argp_short_program_name to
27317         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
27318         to match argp-namefrob.h.
27319         (__argp_failure): Don't assume strerror_r returns char *.
27320         * lib/argp-parse.c (N_): Define unconditionally.
27321         (argp_default_options): Fill out initializers with 0 to avoid
27322         gcc warnings.
27323
27324 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
27325
27326         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
27327         getopt1.c.
27328
27329 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
27330
27331         Merge from coreutils.
27332
27333         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
27334
27335         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
27336         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
27337
27338 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
27339
27340         Merge from coreutils.
27341
27342         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
27343         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
27344         for Reliant Unix 5.43.
27345
27346         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
27347         (union fooround): Use uintmax_t, not long int.
27348         The rest is a merge from libc:
27349         [defined _LIBC]: Include <shlib-compat.h>.
27350         (_obstack) [defined _LIBC]: Remove after 2.3.4.
27351
27352         * lib/settime.c (settime): Recode to avoid warning with
27353         Sun Forte C 6U2.
27354
27355         * lib/strverscmp.c: Convert to UTF-8.
27356
27357 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
27358
27359         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
27360         m4/uintmax_t.m4.
27361
27362 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
27363
27364         * modules/xalloc-die: New file.
27365         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
27366
27367         * modules/md5 (Files): Add m4/uint32_t.m4.
27368         * modules/sha1: Renamed from modules/sha.
27369         (Files):
27370         Rename lib/sha.h to lib/sha1.h.
27371         Rename lib/sha.c to lib/sha1.c.
27372         Rename m4/sha.m4 to m4/sha1.m4.
27373         (lib_SOURCES): Likewise.
27374         (configure.ac): Rename gl_SHA to gl_SHA1.
27375         (Include): sha.h -> sha1.h.
27376
27377 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
27378
27379         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
27380         * m4/sha1.m4: Renamed from sha.m4.
27381         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
27382
27383 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
27384
27385         * lib/obstack.h (obstack_empty_p):
27386         Don't assume that chunk->contents is suitably aligned.
27387         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
27388         Likewise. Problem reported by Benno in
27389         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
27390
27391         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
27392         readable.  This could be improved further but it'd take some work.
27393
27394 2004-08-08  Simon Josefsson  <jas@extundo.com>
27395
27396         * modules/xgethostname (Depends-on): Remove exit and error (not
27397         used).
27398
27399         * modules/getpass-gnu: Add getpass.h.
27400         (Depends-on): Add stdbool.
27401         * modules/getpass: Add getpass.h.
27402
27403 2004-08-08  Simon Josefsson  <jas@extundo.com>
27404
27405         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
27406         Check getpass declaration.
27407
27408 2004-08-08  Simon Josefsson  <jas@extundo.com>
27409
27410         * lib/xgethostname.c: Don't include error.h (not used).
27411
27412         * lib/getpass.h: Add.
27413         * lib/getpass.c: Include getpass.h first.
27414
27415 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
27416
27417         * lib/xalloc-die.c: New file.
27418         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
27419         All uses removed.
27420         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
27421         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
27422         xalloc-die.c.
27423         (_, N_, xalloc_die): Move to xalloc-die.c.
27424         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
27425         so that we needn't mess with xalloc_msg_memory_exhausted.
27426
27427         * lib/sha1.h: Renamed from sha.h.
27428         (SHA1_H): Renamed from _SHA_H.
27429         (sha1_ctx): Renamed from sha_ctx.
27430         (sha1_init_ctx): Renamed from sha_init_ctx.
27431         (sha1_process_block): Renamed from sha_process_block.
27432         (sha1_process_bytes): Renamed from sha_process_bytes.
27433         (sha1_finish_ctx): Renamed from sha_finish_ctx.
27434         (sha1_read_ctx): Renamed from sha_read_ctx.
27435         (sha1_stream): Renamed from sha_stream.
27436         (sha1_buffer): Renamed from sha_buffer.
27437         * lib/sha1.c: Likewise; renamed from sha.c.
27438         Do not include <sys/types.h>.
27439         Include <stddef.h> rather than <stdlib.h>.
27440
27441 2004-08-08  Bruno Haible  <bruno@clisp.org>
27442
27443         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
27444         FILESYSTEM_PREFIX_LEN.
27445         * lib/progreloc.c: Likewise.
27446         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
27447
27448 2004-08-06  Simon Josefsson  <jas@extundo.com>
27449
27450         * modules/progname (Depends-on): Don't depend on stdbool.
27451
27452 2004-08-06  Simon Josefsson  <jas@extundo.com>
27453
27454         * modules/getsubopt: New file.
27455         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27456         getsubopt.
27457
27458 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
27459
27460         More merge from coreutils.
27461
27462         * m4/utimens.m4, m4/utimecmp.m4: New files.
27463         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
27464         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
27465         prereq.m4, sha.m4: Import changes from coreutils.
27466
27467 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
27468
27469         More merge from coreutils.
27470         * modules/raise, modules/readtokens0, modules/utimens:
27471         * modules/utimecmp, module/xnanosleep: New files.
27472         * modules/strftime: Add lib/strftime.h.
27473         Change include from <time.h> to "strftime.h".
27474         * modules/yesno: Add lib/yesno.h.
27475         * modules/backupfile: Remove lib/addext.c.
27476         * modules/euidaccess: Add stat-macros.h.
27477         * modules/canonicalize, modules/euidaccess,
27478         modules/filemode, modules/lchown, modules/makepath,
27479         modules/rmdir, modules/stat: Likewise.
27480
27481 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
27482
27483         Merge from tar.
27484         * lib/argp-help.c (make_hol, hol_append): Don't assume that
27485         SIZE_MAX is a valid preprocessor constant.
27486         (__argp_basename): Change from "#ifndef _LIBC"
27487         to "#ifndef __argp_short_program_name", so that
27488         we don't compile these functions for tar.
27489
27490         More merges from coreutils.
27491         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
27492         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
27493         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
27494         * lib/addext.c: Remove; no longer needed.
27495         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
27496         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
27497         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
27498         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
27499         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
27500         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
27501         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
27502         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
27503         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
27504         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
27505         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
27506         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
27507         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
27508         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
27509         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
27510         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
27511         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
27512         Import changes from coreutils.
27513
27514 2004-08-05  Simon Josefsson  <jas@extundo.com>
27515
27516         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
27517
27518 2004-08-05  Simon Josefsson  <jas@extundo.com>
27519
27520         * m4/getsubopt.m4: New file.
27521
27522 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
27523
27524         Merge from coreutils.
27525
27526         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
27527         * m4/getcwd-path-max.m4: New files.
27528
27529         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
27530         FILESYSTEM_PREFIX_LEN ->
27531         FILE_SYSTEM_PREFIX_LEN.
27532         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
27533         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
27534         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
27535         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
27536
27537         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
27538         prerequisite modules now handle the DOS stuff.
27539         Don't check for unistd.h.
27540
27541 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
27542
27543         Merge from coreutils.
27544
27545         * lib/.gdb-history: Remove; this doesn't belong here.
27546
27547         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
27548         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
27549         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
27550         * lib/getcwd.c: New files.
27551
27552         * lib/dirname.h: Include <stdbool.h>.
27553         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
27554         for consistency with POSIX terminology.  All uses changed.
27555         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
27556         (strip_trailing_slashes): Use bool for booleans.
27557         * lib/stripslash.c (strip_trailing_slashes): Likewise.
27558
27559         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
27560         sometimes returns a positive errno value even when it succeeds.
27561         (print_errno_message) [!LIBC]: Fall back on strerror if
27562         __strerror_r fails.
27563
27564         * lib/path-concat.c (mempcpy): Don't define if a system header defines
27565         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
27566         (longest_relative_suffix): New function.
27567         (path_concat): Use it.  Assume first argument is not NULL.
27568         Port to DOS.  Omit redundant separators.
27569         Report an error instead of returning NULL.
27570         Use mempcpy instead of memcpy.
27571         (xpath_concat): Remove: not declared or used.
27572
27573         * lib/same.h: Include <stdbool.h>
27574         (same_name): Return bool, not int.
27575         * lib/same.c (same_name): Likewise.
27576         (errno): Don't declare; we assume C89 or better now.
27577
27578         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
27579         if not already defined.
27580
27581         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
27582         * lib/dup-safer.c (errno): Likewise.
27583
27584 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
27585
27586         Merge from coreutils.
27587         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
27588         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
27589         * modules/path-concat: Don't depend on strdup.
27590
27591 2004-08-03  Simon Josefsson  <jas@extundo.com>
27592
27593         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
27594         * lib/progname.h: Don't include stdbool.h.
27595
27596 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
27597
27598         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
27599         * MODULES.html.sh (func_all_modules): Remove fatal.
27600
27601 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
27602
27603         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
27604
27605 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
27606
27607         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
27608         working.
27609
27610 2004-08-02  Simon Josefsson  <jas@extundo.com>
27611
27612         * lib/getsubopt.h: New file, with comments from Bruno Haible.
27613         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
27614         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
27615
27616 2004-08-01  Simon Josefsson  <jas@extundo.com>
27617
27618         * lib/xgetdomainname.c: Include stdlib.h, for free().
27619
27620 2004-07-19  Bruno Haible  <bruno@clisp.org>
27621
27622         * MODULES.html.sh (func_all_modules): Add dummy.
27623
27624 2004-07-16  Simon Josefsson  <jas@extundo.com>
27625
27626         * modules/dummy: New file.
27627
27628 2004-07-16  Simon Josefsson  <jas@extundo.com>
27629
27630         * lib/dummy.c: New file.
27631
27632 2004-07-16  Bruno Haible  <bruno@clisp.org>
27633
27634         * lib/backupfile.h: Add extern "C" for C++.
27635         * lib/closeout.h: Likewise.
27636         * lib/copy-file.h: Likewise.
27637         * lib/findprog.h: Likewise.
27638         * lib/full-write.h: Likewise.
27639         * lib/pathname.h: Likewise.
27640         * lib/progname.h: Likewise.
27641         * lib/stpcpy.h: Likewise.
27642         * lib/stpncpy.h: Likewise.
27643         * lib/strcase.h: Likewise.
27644         * lib/strstr.h: Likewise.
27645         * lib/xalloc.h: Likewise.
27646
27647         * lib/mbswidth.h: Add extern "C" for C++.
27648         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
27649
27650 2004-07-13  Robert Millan  <robertmh@gnu.org>
27651
27652         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
27653
27654 2004-07-09  Simon Josefsson  <jas@extundo.com>
27655
27656         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
27657         failed without this.)
27658
27659 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
27660
27661         * modules/chown (Files): Add lib/fchown-stub.c, since
27662         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
27663
27664 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
27665
27666         * lib/fchown-stub.c: New file.
27667
27668 2004-06-24  Jim Meyering  <jim@meyering.net>
27669
27670         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
27671
27672 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
27673
27674         * modules/argz: Omit "#include".
27675
27676         * MODULES.html.sh (func_all_modules): Add calloc, to match
27677         2004-06-01 addition of calloc module.
27678
27679 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
27680
27681         * m4/argz.m4: New file, which is autoupdated from libtool.
27682
27683 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
27684
27685         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
27686         libtool.
27687
27688 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
27689
27690         * config/srclist-update: Don't insist on "USA." before the
27691         close-comment, as libtool omits the period and puts the */ on a
27692         separate line.
27693         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
27694         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
27695
27696 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
27697
27698         * modules/argz: New file.
27699         * MODULES.html.sh (func_all_modules): Add argz.
27700
27701 2004-06-12  Jim Meyering  <jim@meyering.net>
27702         and  Paul Eggert  <eggert@cs.ucla.edu>
27703
27704         * modules/hash (Files): Add lib/xalloc.h.
27705         * modules/pipe (Depends-on): Add wait-process.
27706         * modules/stat (Depends-on): Add xalloc.
27707         * modules/userspec (Files): Add lib/userspec.h.
27708         * modules/xstrto
27709
27710         Upgrade from gettext-0.13.
27711         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
27712         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
27713         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
27714
27715 2004-06-10  Jim Meyering  <jim@meyering.net>
27716
27717         * lib/calloc.c: New file.
27718
27719 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
27720
27721         * lib/getdate.y (yylex): Allow space between sign and number.
27722         Problem reported by Dan Jacobson.
27723
27724 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
27725
27726         Merge from coreutils CVS.
27727
27728         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
27729         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
27730         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
27731         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
27732         xstrtol.m4: Fix copyright date and/or serial number.
27733
27734         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
27735         See if we need an fchown replacement.
27736         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
27737         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
27738         and use the replacement function if we detect either defect.
27739
27740         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
27741         gl_UTIMECMP.
27742
27743 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
27744         and  Jim Meyering  <jim@meyering.net>
27745
27746         Merge from coreutils CVS.
27747
27748         * lib/stat-macros.h: New file, with contents from file-type.h
27749         and coreutils' system.h.
27750         * lib/file-type.c: Include "stat-macros.h".
27751         * lib/file-type.h (file_type): Move all macro definitions to new file,
27752         stat-macros.h.
27753
27754         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
27755         Wrap old code with this conditional.
27756         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
27757         function that does not dereference symlinks.
27758         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
27759
27760         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
27761         dependency problems.
27762         (xreadlink): Accept new arg SIZE, for efficiency.
27763         All decls and uses changed.
27764         * lib/xreadlink.h: Include <stddef.h>, for size_t.
27765
27766         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
27767         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
27768
27769         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
27770         sysexits.h.
27771
27772 2004-06-01  Jim Meyering  <jim@meyering.net>
27773
27774         * m4/calloc.m4: New file.
27775
27776 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
27777
27778         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
27779         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
27780         Also, fix a typo in a diagnostic.
27781
27782 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
27783
27784         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
27785         or AC_FUNC_REALLOC.
27786
27787 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
27788
27789         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
27790         macros to be defined.
27791         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
27792         the allocator returns NULL because the requested size is zero.
27793
27794 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
27795
27796         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
27797         var.  Add comment explaining why libc still defines it.  This
27798         merges the following patch from glibc:
27799         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
27800
27801 2004-05-20  Andreas Schwab  <schwab@suse.de>
27802
27803         * m4/free.m4: Replace free if it not known to work, not the other
27804         way round.
27805
27806 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
27807
27808         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
27809         present in glibc since revision 1.1 of this file.
27810         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
27811         obstack_alignment_mask, obstack_alloc, obstack_base,
27812         obstack_blank, obstack_blank_fast, obstack_chunk_size,
27813         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
27814         obstack_grow0, obstack_init, obstack_int_grow,
27815         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
27816         obstack_next_free, obstack_object_size, obstack_ptr_grow,
27817         obstack_ptr_grow_fast, obstack_room): Remove declarations of
27818         nonexistent functions.
27819
27820 2004-05-18  Karl Berry  <karl@gnu.org>
27821
27822         * config/srclist.txt: break link for vasnprintf.c.
27823
27824 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
27825
27826         Port obstack to the AS/400, where pointers are 16 bytes wide and
27827         you cannot cast an integer to a valid pointer.  This patch is
27828         currently waiting to be integrated into glibc; see
27829         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
27830
27831         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
27832         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
27833         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
27834         (struct obstack): temp member is now a union of a pointer and
27835         an integer, instead of an integer.  All integer uses changed.
27836         This does not affect the physical layout of struct obstack,
27837         except on hosts (like the AS/400) where the size or alignment of
27838         void * is greater than that of ptrdiff_t.
27839         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
27840         __STDC__)]: Store temporary in pointer member of union, not
27841         integer member.
27842         * lib/obstack.c: Include <stddef.h>, for offsetof.
27843         (struct fooalign): Remove; it doesn't need a name.
27844         (union fooround): Change double to long double, and add void *.
27845         (DEFAULT_ALIGNMENT): Use offsetof to compute.
27846         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
27847         not a macro.  Hence the values are always int; so remove all
27848         casts-to-int in uses.
27849
27850 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
27851
27852         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
27853         we can get this patch merged into glibc.
27854
27855 2004-05-17  Derek R. Price  <derek@ximbiot.com>
27856             Paul Eggert  <eggert@cs.ucla.edu>
27857
27858         * m4/argp: Depend on alloca.
27859
27860 2004-05-17  Derek R. Price  <derek@ximbiot.com>
27861             Paul Eggert  <eggert@cs.ucla.edu>
27862
27863         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
27864         freecoding.
27865
27866 2004-05-17  Bruno Haible  <bruno@clisp.org>
27867
27868         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
27869         precision that consists of a '.' followed by an empty digit string.
27870         Patch by Tor Lillqvist <tml@iki.fi>.
27871
27872 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
27873
27874         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
27875         for backward compatibility with older code.  We need our own
27876         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
27877         it under some other name, and our alloca.h will define it.
27878
27879 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
27880             Derek Price  <derek@ximbiot.com>
27881
27882         * lib/alloca.c: Include <alloca.h>, to get our interface.
27883         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
27884         include <alloca.h> first.  Use C89 prototype for alloca; this
27885         requires including <stddef.h> for size_t.  Use extern "C" if C++.
27886         Use #elif for simplicity, since we can assume C89 now.
27887         Don't try to source the system alloca.h since it will not be found
27888         and to prevent recursively including its replacement.
27889         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
27890         * lib/regex.c: Likewise.
27891
27892 2004-05-16  Derek Price  <derek@ximbiot.com>
27893             Paul Eggert  <eggert@cs.ucla.edu>
27894
27895         getline cleanup.  This changes the getndelim2 API: both order of
27896         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
27897         no delimiter).
27898
27899         * lib/getline.c: Don't include stddef.h or stdio.h, since our
27900         interface does that.
27901         (getline): Always use getdelim, so that we don't have two
27902         copies of this code.
27903         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
27904         if available.
27905         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
27906         (GETNDELIM2_MAXIMUM): New macro.
27907         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
27908         instead of the old practice of delim2==0.  All callers changed.
27909         Return -1 on overflow, instead of returning junk.
27910         Do not set *linesize unless allocation succeeds.
27911         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
27912         that we include sys/types.h.
27913         * lib/getnline.h: Likewise.
27914         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
27915         (getndelim2): Reorder arguments.
27916         * lib/getnline.c (getnline, getndelim):
27917         Don't discard the NMAX argument.
27918         (getnline): Invoke getndelim, to avoid code duplication.
27919         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
27920         of (size_t) -1 by callers of the getnline family.
27921
27922 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
27923
27924         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
27925         Check for gettimeofday.
27926         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
27927         Check for settimeofday, stime.
27928
27929 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
27930
27931         * lib/nanosleep.c (suspended): Change its type from int to
27932         sig_atomic_t volatile.
27933         (first_call): Make it private to rpl_nanosleep, and have it
27934         be zero initially as that's a bit faster.
27935         (my_usleep): Round up fractional times instead of truncating them,
27936         as this is the usual meaning for 'sleep'.
27937
27938         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
27939         doesn't work.
27940         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
27941         (ENOSYS): Define if not defined.
27942         (settime): Fall back on stime if it exists and settimeofday fails.
27943         But don't bother with fallbacks if a method fails with errno == EPERM.
27944
27945 2004-05-11  Jim Meyering  <jim@meyering.net>
27946
27947         Prior to this change, the save_cwd caller required read access to the
27948         current directory on most systems (ones with the fchdir function).
27949
27950         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
27951         fails, try write-only, and finally, resort to using xgetcwd.
27952
27953 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
27954
27955         * lib/obstack.c, obstack.h: Import changes from libc.
27956
27957 2004-04-28  Bruno Haible  <bruno@clisp.org>
27958
27959         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
27960         also implicitly appends .exe to executables.
27961         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
27962         accepts Windows pathnames.
27963         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
27964         Treat Cygwin like Windows, since it now accepts Windows pathnames.
27965         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
27966         Treat Cygwin like Windows, since it now accepts Windows pathnames.
27967         Reported by Derek Robert Price <derek@ximbiot.com>.
27968
27969 2004-04-21  Karl Berry  <karl@gnu.org>
27970
27971         * config/srclist.txt (localcharset.c): break sync.
27972
27973 2004-04-20  Paul Eggert  <eggert@twinsun.com>
27974
27975         * m4/host-os.m4: Add a copyright notice.
27976
27977 2004-04-20  Jim Meyering  <jim@meyering.net>
27978
27979         Change UTILS_ to gl_ in AC_DEFINE'd names.
27980         Change utils_- and jm_-prefixed variables, too.
27981         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
27982         UTILS_FUNC_MKDIR_TRAILING_SLASH.
27983         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
27984
27985         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
27986         Don't emit trailing blanks.
27987         Also rename jm_-prefixed variables to have gl_ prefix.
27988
27989         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
27990         Also rename jm_-prefixed variables to have gl_ prefix.
27991
27992         * m4/jm-macros.m4: Reflect the renamings.
27993         * m4/prereq.m4: Likewise.
27994
27995 2004-04-20  Jim Meyering  <jim@meyering.net>
27996
27997         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
27998         memory.
27999
28000 2004-04-20  Jim Meyering  <jim@meyering.net>
28001             Bruno Haible  <bruno@clisp.org>
28002
28003         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
28004         memory when realloc fails.
28005
28006 2004-04-19  Jim Meyering  <jim@meyering.net>
28007
28008         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
28009         now that readutmp.c may call `free (0)'.
28010
28011 2004-04-19  Bruno Haible  <bruno@clisp.org>
28012
28013         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
28014         * m4/inttypes_h.m4: Likewise.
28015         * m4/stdint_h.m4: Likewise.
28016         * m4/intmax_t.m4: Likewise.
28017         * m4/uintmax_t.m4: Likewise.
28018
28019 2004-04-18  Jim Meyering  <jim@meyering.net>
28020
28021         * m4/prereq.m4: Don't forbid jm_ prefix.
28022
28023         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
28024         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
28025         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
28026         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
28027         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
28028         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
28029         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
28030         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
28031         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
28032         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
28033         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
28034         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
28035         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
28036         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
28037         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
28038         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
28039         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
28040         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
28041         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
28042
28043 2004-04-18  Jim Meyering  <jim@meyering.net>
28044
28045         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
28046         failure, don't leak memory and do call END_UTMP_ENT.
28047
28048 2004-04-16  Jim Meyering  <jim@meyering.net>
28049
28050         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
28051         coreutils' stat program.
28052         (gl_PREREQ): Don't require jm_PREREQ_STAT.
28053
28054 2004-04-11  Paul Eggert  <eggert@twinsun.com>
28055
28056         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
28057         C89.
28058         (CHAR_BIT): Remove, since we assume C89.
28059         Include <stdint.h> if available, as per current Autoconf CVS advice.
28060
28061 2004-03-31  Jim Meyering  <jim@meyering.net>
28062
28063         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
28064         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
28065         * m4/xalloc.m4: Likewise.
28066
28067 2004-03-30  Paul Eggert  <eggert@twinsun.com>
28068
28069         Merge from coreutils.
28070
28071         * m4/inttostr.m4: New file.
28072         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
28073         Require AM_STDBOOL_H and gl_TIMESPEC instead.
28074         Require gl_CLOCK_TIME.
28075         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
28076
28077 2004-03-30  Paul Eggert  <eggert@twinsun.com>
28078
28079         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
28080         not bool, to be more consistent with Unix conventions.
28081         Suggested by Bruno Haible.
28082
28083         Merge from coreutils.
28084
28085         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
28086         * lib/umaxtostr.c: New files.
28087
28088         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
28089         the usual <time.h> dance.
28090         (get_date): Change signature to support fractional time stamps.
28091         All callers changed.
28092         * lib/getdate.y: Include "getdate.h" first, as we can now
28093         assume C89 and don't need to worry about 'const'.
28094         Similarly, include "unlocked-io.h" near start, not in middle.
28095         Include <limits.h>.
28096         (textint.value): Use long int rather than int.
28097         (textint.digits): Use size_t rather than int.
28098         (BILLION, LOG10_BILLION): New constants.
28099         (parser_control): New member rel_ns.  Members day_ordinal,
28100         time_zone, month, day, hour, minutes, rel_year, rel_month,
28101         rel_day, rel_hour, rel_minutes, rel_seconds
28102         are now long int, not int.  Member seconds is now struct timespec,
28103         not int.  New member timespec_seen.  Members dates_seen, days_seen,
28104         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
28105         not int.
28106         (%union.intval): Now long int, not int.
28107         New member timespec.
28108         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
28109         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
28110         (spec): Now is a timespec or an item list.
28111         (timespec, items): New nonterminals.
28112         (time, rel, relunit, number, get_date):
28113         Add support for fractional seconds.
28114         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
28115         (gmtime, localtime, mktime): Remove decls; not needed with C89.
28116         (to_hour): First arg is now long int, not int.
28117         (to_year): Returns long int, not int.
28118         Don't treat year -70 like 70.
28119         (tm_diff): Returns long int, not int.
28120         (lookup_word): Use bool instead of int when appropriate.
28121         (yylex): Use size_t for count, not int.
28122         Detect overflow when parsing large integer constants.
28123         Add support for fractions.
28124         (get_date): Make pointers 'const' if possible.
28125         Use more-portable code to detect integer overflow.
28126         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
28127         Don't use ctime; it's not reliable if the year has >4 digits.
28128
28129         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
28130         This is for compatibility with BSD.
28131
28132         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
28133         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
28134         From coreutils' system.h.
28135
28136         * lib/userspec.c: Don't include "posixver.h".
28137         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
28138         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
28139         compatible extension.  Simplify code by removing a boolean int
28140         that was always nonzero if a string was nonnull.
28141
28142 2004-03-30  Jim Meyering  <jim@meyering.net>
28143
28144         Merge from coreutils.
28145
28146         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
28147         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
28148         on some systems one must include <grp.h> before it.
28149         Reported by Christian Krackowizer.
28150
28151 2004-03-30  Jim Meyering  <jim@meyering.net>
28152
28153         Merge from coreutils.
28154
28155         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
28156
28157         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
28158         an empty input stream.
28159
28160         * lib/readtokens.c: Include <stdbool.h>.
28161         (readtoken): Use `size_t' rather than int/long.
28162         All callers adjusted.
28163         Use `bool' rather than `int' where appropriate.
28164         Use memset rather than an explicit loop.
28165         Use x2nrealloc rather than xrealloc.
28166         Allow the use of `\0' as a delimiter.
28167         (readtokens): Likewise.
28168         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
28169
28170 2004-03-30  Jim Meyering  <jim@meyering.net>
28171
28172         * m4/realloc.m4: Remove file, since now it does no more than
28173         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
28174         the `configure.ac' section of module/realloc.
28175         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
28176
28177 2004-03-30  Bruno Haible  <bruno@clisp.org>
28178
28179         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
28180         nonnull.
28181
28182 2004-03-29  Paul Eggert  <eggert@twinsun.com>
28183
28184         Merge changes to getloadavg.c from coreutils and Emacs.
28185
28186         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
28187         Define to an expression, not to the empty string.
28188         Include cloexec.h and xalloc.h.
28189         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
28190         Use set_cloexec_flag rather than rolling our own.
28191         * lib/cloexec.c, lib/cloexec.h: New files.
28192
28193 2004-03-29  Paul Eggert  <eggert@twinsun.com>
28194
28195         * m4/cloexec.m4: New file.
28196
28197 2004-03-18  Paul Eggert  <eggert@twinsun.com>
28198
28199         * lib/getopt.h: Sync with libc CVS.
28200
28201 2004-03-18  Paul Eggert  <eggert@twinsun.com>
28202             Bruno Haible  <bruno@clisp.org>
28203
28204         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
28205         mbswidth.
28206
28207 2004-03-18  Paul Eggert  <eggert@twinsun.com>
28208             Bruno Haible  <bruno@clisp.org>
28209
28210         * lib/mbswidth.h: Include <wchar.h> only if
28211         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
28212         <wchar.h>.
28213         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
28214
28215 2004-03-09  Paul Eggert  <eggert@twinsun.com>
28216
28217         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
28218         Sync with libc CVS.
28219         * lib/getopt_int.h: New file, also synced from libc.
28220
28221 2004-03-09  Paul Eggert  <eggert@twinsun.com>
28222
28223         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
28224         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
28225         Bring back getopt.c, getopt.h, getopt1.c.
28226
28227 2004-03-07  Paul Eggert  <eggert@twinsun.com>
28228
28229         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
28230         All uses changed.  Check for sa_sigaction member; this fixes
28231         a bug first reported by Jason Andrade in
28232         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
28233
28234 2004-03-07  Paul Eggert  <eggert@twinsun.com>
28235
28236         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
28237         '#if' expressions.  Unlike the code it replaces, it does not
28238         depend on (defined _SC_PAGESIZE).  However, it does depend on
28239         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
28240         first reported by Jason Andrade in
28241         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
28242
28243 2004-02-25  Simon Josefsson  <jas@extundo.com>
28244
28245         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
28246
28247 2004-02-25  Simon Josefsson  <jas@extundo.com>
28248
28249         * lib/strdup.h: New file.
28250         * lib/strdup.c: Include it.
28251         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
28252         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
28253
28254 2004-02-23  Karl Berry  <karl@gnu.org>
28255
28256         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
28257         (from fencepost.gnu.org:/gd/gnuorg).
28258
28259 2004-02-23  Karl Berry  <karl@gnu.org>
28260
28261         * config/srclistvars.sh (GNUORG) [karl]: redefine.
28262         * config/srclist.txt: add maintain/standards documents.
28263
28264 2004-02-18  Bruno Haible  <bruno@clisp.org>
28265
28266         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
28267         Reported by Derek Robert Price <derek@ximbiot.com>.
28268
28269 2004-02-16  Karl Berry  <karl@gnu.org>
28270
28271         * config/mkinstalldirs, install-sh: update from automake.
28272
28273 2004-02-06  Karl Berry  <karl@gnu.org>
28274
28275         * m4/po.m4: update from gettext 0.14.1.
28276
28277 2004-02-06  Karl Berry  <karl@gnu.org>
28278
28279         * lib/config.charset: update from gettext 0.14.1.
28280
28281 2004-02-05  Paul Eggert  <eggert@twinsun.com>
28282
28283         Add comments and code, prompted by suggestions from Bruno Haible
28284         for sh-quote.
28285         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
28286         describing the enum quoting_style values.
28287         * lib/quotearg.c (quotearg_alloc): New function.
28288         (quotearg_buffer_restyled): Treat lone { and } as special.
28289         Treat = as special.  Work around bug with older shells
28290         that "see" a '\' that is really the 2nd byte of a multibyte char.
28291         Quote empty string with shell_quoting_style.
28292
28293 2004-02-03  Bruno Haible  <bruno@clisp.org>
28294
28295         * m4/pipe.m4: New file, from GNU gettext.
28296
28297 2004-02-03  Bruno Haible  <bruno@clisp.org>
28298
28299         * lib/pipe.h: New file, from GNU gettext.
28300         * lib/pipe.c: New file, from GNU gettext.
28301
28302 2004-01-27  Bruno Haible  <bruno@clisp.org>
28303
28304         * m4/execute.m4: New file, from GNU gettext.
28305
28306 2004-01-27  Bruno Haible  <bruno@clisp.org>
28307
28308         * lib/execute.h: New file, from GNU gettext.
28309         * lib/execute.c: New file, from GNU gettext.
28310         * lib/w32spawn.h: New file, from GNU gettext.
28311
28312 2004-01-24  Paul Eggert  <eggert@twinsun.com>
28313
28314         Merge from diffutils.
28315
28316         * lib/file-type.c (file_type): Add typed memory objects.
28317         * lib/file-type.h (S_TYPEISTMO): New macro.
28318
28319         * lib/c-stack.h (c_stack_action): Remove argv argument.
28320         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
28321         (die): Don't calculate message unless segv_action returns.
28322         (get_stack_location, min_address_from_argv, max_address_from_argv,
28323         volatile stack_base, volatile_stack_size): Remove.
28324         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
28325         that every segmentation violation is a stack overflow.  (Ouch!)
28326         See Debian bug 136249 (still outstanding) for more info about why
28327         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
28328
28329 2004-01-24  Paul Eggert  <eggert@twinsun.com>
28330
28331         Exit-status fix from coreutils.
28332
28333         Use exit_failure consistently in place of EXIT_FAILURE,
28334         so that program exit statuses are consistent on failure.
28335
28336         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
28337         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
28338         * lib/argmatch.h: Comment fix to match the above.
28339         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
28340         Now a macro referring to exit_failure, instead of a separate
28341         variable.  Include "exitfail.h" to get it.
28342         * lib/xstrtol.h: Include "exitfail.h".
28343         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
28344
28345         * lib/long-options.c (parse_long_options): Use prototype
28346         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
28347         for clarity.
28348
28349 2004-01-21  Jim Meyering  <jim@meyering.net>
28350
28351         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
28352         so as not to conflict with a different-sized __mktime_internal
28353         function in GNU libc.
28354         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
28355         Problem building statically-linked `ls' reported by Michael Brunnbauer.
28356
28357 2004-01-20  Karl Berry  <karl@gnu.org>
28358
28359         * config/config.guess: update from config.
28360
28361         * config/srclistvars.sh: GNUWWWLICENSES for karl.
28362
28363 2004-01-20  Bruno Haible  <bruno@clisp.org>
28364
28365         Safer stack allocation.
28366         * lib/setenv.c: Include allocsa.h.
28367         (alloca): Remove fallback definition.
28368         (freea): Remove macro.
28369         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
28370         instead of freea.
28371
28372 2004-01-20  Bruno Haible  <bruno@clisp.org>
28373
28374         * m4/eealloc.m4: New file, from GNU gettext.
28375
28376 2004-01-20  Bruno Haible  <bruno@clisp.org>
28377
28378         * m4/allocsa.m4: New file, from GNU gettext.
28379
28380 2004-01-20  Bruno Haible  <bruno@clisp.org>
28381
28382         * lib/xallocsa.h: New file, from GNU gettext.
28383         * lib/xallocsa.c: New file, from GNU gettext.
28384
28385 2004-01-20  Bruno Haible  <bruno@clisp.org>
28386
28387         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
28388
28389 2004-01-20  Bruno Haible  <bruno@clisp.org>
28390
28391         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
28392         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
28393         specially.
28394
28395 2004-01-20  Bruno Haible  <bruno@clisp.org>
28396
28397         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
28398         patch.
28399
28400 2004-01-20  Bruno Haible  <bruno@clisp.org>
28401
28402         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
28403
28404 2004-01-20  Bruno Haible  <bruno@clisp.org>
28405
28406         * lib/eealloc.h: New file.
28407
28408 2004-01-20  Bruno Haible  <bruno@clisp.org>
28409
28410         * lib/binary-io.h: Avoid warnings on Cygwin.
28411
28412 2004-01-20  Bruno Haible  <bruno@clisp.org>
28413
28414         * lib/allocsa.h: New file, from GNU gettext.
28415         * lib/allocsa.c: New file, from GNU gettext.
28416
28417 2004-01-18  Karl Berry  <karl@gnu.org>
28418
28419         * doc/gpl.texi, doc/lgpl.texi: new files.
28420
28421 2004-01-18  Karl Berry  <karl@gnu.org>
28422
28423         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
28424         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
28425
28426 2004-01-15  Paul Eggert  <eggert@twinsun.com>
28427
28428         Merge from coreutils.
28429
28430         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
28431         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
28432         (gl_DEFAULT_POSIX2_VERSION): Move
28433         the documentation from 'configure' into 'config.hin',
28434         so that 'configure --help' isn't burdened by it and
28435         we don't have to worry about its formatting there.
28436         Reword the documentation so that it's more succinct
28437         and can be run together into a single paragraph.
28438         * m4/same.m4 (gl_SAME): Check for pathconf.
28439
28440 2004-01-15  Paul Eggert  <eggert@twinsun.com>
28441
28442         Merge from coreutils.
28443
28444         * lib/posixver.c: Include posixver.h.
28445
28446         * lib/same.c: Include <stdbool.h>, <limits.h>.
28447         (_POSIX_NAME_MAX): Define if not defined.
28448         (MIN): New macro.
28449         (same_name): If file names are silently truncated, report
28450         that the file names are the same if they are the same after
28451         the silent truncation.
28452
28453         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
28454         conversion function.
28455         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
28456         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
28457         longer needed.
28458
28459 2004-01-15  Jim Meyering  <jim@meyering.net>
28460
28461         Merge from coreutils.
28462
28463         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
28464         if no library is required.
28465         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
28466         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
28467         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
28468         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
28469         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
28470         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
28471         value, $ac_cv_search_crypt, if it's "none required".
28472         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
28473         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
28474         not gl_FUNC_GETLOADAVG.
28475         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
28476         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
28477
28478 2004-01-15  Jim Meyering  <jim@meyering.net>
28479
28480         Merge from coreutils.
28481
28482         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
28483         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
28484         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
28485
28486         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
28487         optional configure-time default.
28488
28489         * lib/version-etc.c (version_etc_copyright): Update copyright date.
28490
28491         * lib/xreadlink.c (xreadlink): Correct outdated comment.
28492
28493 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
28494
28495         Merge from coreutils.
28496
28497         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
28498         value, $ac_cv_search_nanosleep, if it's "none required".
28499
28500 2004-01-14  Paul Eggert  <eggert@twinsun.com>
28501
28502         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
28503         with like-named macro in fnmatch.c.
28504         (EXT): Use an internal constant instead.
28505
28506         Merge fnmatch patches from glibc.
28507         * lib/fnmatch.c (mbsinit): Remove define.
28508         Add libc_hidden_ver (__fnmatch, fnmatch).
28509         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
28510         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
28511
28512 2004-01-14  Karl Berry  <karl@gnu.org>
28513
28514         * config/install-sh: update from automake.
28515
28516 2004-01-13  Karl Berry  <karl@gnu.org>
28517
28518         * config/install-sh: update from automake.
28519
28520 2004-01-09  Karl Berry  <karl@gnu.org>
28521
28522         * config/install-sh: update from automake.
28523
28524 2004-01-05  Karl Berry  <karl@gnu.org>
28525
28526         * config/config.{sub,guess}: update from config.
28527
28528 2003-12-31  Karl Berry  <karl@gnu.org>
28529
28530         * config/depcomp: update from automake.
28531
28532 2003-12-14  Karl Berry  <karl@gnu.org>
28533
28534         * lib/config.charset: update from gettext-runtime.
28535
28536 2003-12-03  Paul Eggert  <eggert@twinsun.com>
28537
28538         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
28539         Bug reported by Alfred M. Szmidt.
28540
28541 2003-12-03  Bruno Haible  <bruno@clisp.org>
28542
28543         * m4/gettext.m4: Upgrade from gettext-0.13.
28544         * m4/po.m4: Upgrade from gettext-0.13.
28545         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
28546         * m4/intmax.m4: New file, from gettext-0.13.
28547         * m4/printf-posix.m4: New file, from gettext-0.13.
28548
28549 2003-11-29  Karl Berry  <karl@gnu.org>
28550
28551         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
28552
28553 2003-11-25  Paul Eggert  <eggert@twinsun.com>
28554             Bruno Haible  <bruno@clisp.org>
28555
28556         * lib/printf-parse.h: Don't include sys/types.h.
28557         (ARG_NONE): New macro.
28558         (char_directive): Change type of *arg_index fields to size_t.
28559         * lib/printf-parse.c: Don't include sys/types.h.
28560         (SSIZE_MAX): Remove macro.
28561         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
28562         Remove unnecessary overflow check.
28563         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
28564         fields.
28565
28566 2003-11-25  Bruno Haible  <bruno@clisp.org>
28567
28568         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
28569
28570 2003-11-25  Bruno Haible  <bruno@clisp.org>
28571
28572         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
28573         gt_TYPE_SSIZE_T.
28574
28575 2003-11-24  Paul Eggert  <eggert@twinsun.com>
28576
28577         * modules/alloca: Remove dependency on xalloc.
28578
28579 2003-11-24  Paul Eggert  <eggert@twinsun.com>
28580
28581         * lib/alloca.c: Remove dependency on xalloc module.
28582         (xalloc_die): Remove.
28583         (memory_full) [!defined emacs]: New macro.
28584         [!defined emacs]: Don't include xalloc.h.
28585         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
28586         address arithmetic overflows.  Change datatypes a bit to avoid
28587         unnecessary casts.
28588
28589 2003-11-22  Jim Meyering  <jim@meyering.net>
28590
28591         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
28592         s/size/size_t/.
28593
28594 2003-11-21  Karl Berry  <karl@gnu.org>
28595
28596         * config/config.{sub,guess}: update from config.
28597
28598 2003-11-18  Karl Berry  <karl@gnu.org>
28599
28600         * config/config.{sub,guess}: update from config.
28601
28602         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
28603
28604 2003-11-17  Paul Eggert  <eggert@twinsun.com>
28605
28606         * README: Mention that S+T cannot overflow if S is the size of
28607         an existing object and T is sufficiently small.
28608
28609 2003-11-17  Jim Meyering  <jim@meyering.net>
28610
28611         On systems without utime and without a utimes function capable of
28612         dealing with a NULL struct utimbuf* argument, this utime replacement
28613         could -- in unusual circumstances -- leak a file descriptor.
28614         * lib/utime.c: Include <unistd.h> and <errno.h>.
28615         (utime_null): Be sure to close `fd' and to preserve errno.
28616         Reported by Geoff Collyer via Arnold Robbins.
28617
28618 2003-11-17  Bruno Haible  <bruno@clisp.org>
28619
28620         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
28621         (Depends-on): Add xsize.
28622
28623 2003-11-17  Bruno Haible  <bruno@clisp.org>
28624
28625         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
28626
28627 2003-11-17  Bruno Haible  <bruno@clisp.org>
28628
28629         * lib/vasnprintf.c (alloca): Remove fallback definition.
28630         (freea): Remove definition.
28631         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
28632         Reported by Paul Eggert.
28633
28634 2003-11-16  Paul Eggert  <eggert@twinsun.com>
28635             Bruno Haible  <bruno@clisp.org>
28636
28637         Protect against address arithmetic overflow.
28638         * lib/printf-args.h: Include stddef.h.
28639         (arguments): Change type of field 'count' to size_t.
28640         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
28641         'unsigned int' where appropriate.
28642         * lib/printf-parse.h: Include sys/types.h.
28643         (char_directive): Change type of *arg_index fields to ssize_t.
28644         (char_directives): Change type of fields 'count', max_*_length to
28645         size_t.
28646         * lib/printf-parse.c: Include sys/types.h and xsize.h.
28647         (SSIZE_MAX): Define fallback value.
28648         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
28649         instead of 'int' where appropriate. Check a_allocated, d_allocated
28650         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
28651         * lib/vasnprintf.c: Include xsize.h.
28652         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
28653         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
28654         overflow. Avoid wraparound when converting a width or precision from
28655         decimal to binary.
28656
28657 2003-11-16  Bruno Haible  <bruno@clisp.org>
28658
28659         Update from GNU gettext.
28660         * lib/printf-parse.c: Generalize to it can be compiled for wide
28661         strings.
28662         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
28663         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
28664         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
28665         SNPRINTF): New macros.
28666         Don't include <alloca.h> if the file is used inside libintl.
28667         (local_wcslen): New function, for Solaris 2.5.1.
28668         (VASNPRINTF): Use it instead of wcslen.
28669
28670 2003-11-16  Bruno Haible  <bruno@clisp.org>
28671
28672         * lib/xsize.h (xmax): New function.
28673         (xsum, xsum3, xsum4): Declare as "pure" functions.
28674
28675 2003-11-12  Paul Eggert  <eggert@twinsun.com>
28676
28677         * modules/xalloc (Files): Undo latest change, since xalloc.h
28678         no longer needs SIZE_MAX or PTRDIFF_MAX.
28679
28680 2003-11-12  Paul Eggert  <eggert@twinsun.com>
28681
28682         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
28683         gl_PTRDIFF_MAX.
28684
28685 2003-11-12  Paul Eggert  <eggert@twinsun.com>
28686
28687         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
28688         "return", to pacify some unknown compiler.  Problem reported
28689         by Joerg Schilling.
28690
28691 2003-11-12  Paul Eggert  <eggert@twinsun.com>
28692
28693         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
28694         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
28695         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
28696         heuristic is just as accurate as far as we know, and it removes a
28697         dependency on size_max.m4 and ptrdiff_max.m4.
28698
28699 2003-11-11  Bruno Haible  <bruno@clisp.org>
28700
28701         * modules/xsize (Files): Add m4/size_max.m4.
28702         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
28703
28704 2003-11-11  Bruno Haible  <bruno@clisp.org>
28705
28706         * m4/size_max.m4: New file.
28707         * m4/ptrdiff_max.m4: New file.
28708         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
28709         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
28710         (gl_XALLOC): Invoke it.
28711
28712 2003-11-11  Bruno Haible  <bruno@clisp.org>
28713
28714         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
28715         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
28716         defined.
28717
28718 2003-11-10  Paul Eggert  <eggert@twinsun.com>
28719
28720         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
28721         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
28722         rejected some allocations of exactly SIZE_MAX - 2 bytes.
28723         From Bruno Haible.
28724         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
28725         not (size_t) -1, since it's defined here.
28726
28727 2003-11-09  Karl Berry  <karl@gnu.org>
28728
28729         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
28730
28731 2003-11-06  Paul Eggert  <eggert@twinsun.com>
28732
28733         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
28734         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
28735         Reject sizes of exactly SIZE_MAX bytes.
28736         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
28737         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
28738
28739 2003-11-05  Bruno Haible  <bruno@clisp.org>
28740
28741         * lib/xsize.h: Include limits.h, to avoid a possible collision with
28742         SIZE_MAX defined in <limits.h> on Solaris.
28743
28744 2003-11-04  Jim Meyering  <jim@meyering.net>
28745
28746         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
28747         variable names, rather than @VAR@.
28748         * modules/poll: Likewise.
28749
28750 2003-11-04  Bruno Haible  <bruno@clisp.org>
28751
28752         * modules/xsize: New file.
28753         * modules/linebreak: Depend on xsize.
28754         * MODULES.html.sh (func_all_modules): Add xsize.
28755
28756 2003-11-04  Bruno Haible  <bruno@clisp.org>
28757
28758         * m4/xsize.m4: New file.
28759
28760 2003-11-04  Bruno Haible  <bruno@clisp.org>
28761
28762         * lib/xsize.h: New file.
28763         * lib/linebreak.c: Include xsize.h.
28764         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
28765         argument for overflow.
28766         Suggested by Paul Eggert.
28767
28768 2003-11-03  Karl Berry  <karl@gnu.org>
28769
28770         * config/config.{guess,sub}: update from config.
28771
28772 2003-11-03  Jim Meyering  <jim@meyering.net>
28773
28774         * modules/userspec (lib_SOURCES): Add userspec.h.
28775         (Include): Add "userspec.h".
28776         Improve description.
28777
28778 2003-11-03  Jim Meyering  <jim@meyering.net>
28779
28780         * lib/userspec.c: Include "userspec.h".
28781         * lib/userspec.h: New file.
28782
28783 2003-11-03  Bruno Haible  <bruno@clisp.org>
28784
28785         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
28786
28787 2003-11-03  Bruno Haible  <bruno@clisp.org>
28788
28789         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
28790         available, to avoid (extremely rare) race condition.
28791         Suggested by Paul Eggert.
28792
28793 2003-11-02  Karl Berry  <karl@gnu.org>
28794
28795         * config/srclist.txt (vasprintf.c): sync broken, sigh.
28796
28797 2003-10-31  Paul Eggert  <eggert@twinsun.com>
28798
28799         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
28800         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
28801         (read_filesystem_list): Set and use me_type_malloced.
28802         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
28803         whatever the type happens to be), for brevity and consistency.
28804         Check for size calculation overflow on Alphas running OSF/1.
28805
28806 2003-10-31  Jim Meyering  <jim@meyering.net>
28807
28808         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
28809
28810         * lib/linebuffer.c: Include <string.h> for declaration of memset.
28811
28812 2003-10-30  Paul Eggert  <eggert@twinsun.com>
28813             Bruno Haible  <bruno@clisp.org>
28814
28815         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
28816         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
28817
28818 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
28819
28820         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
28821         netbsd*-gnu*.  Suggested by Robert Millan.
28822
28823 2003-10-29  Paul Eggert  <eggert@twinsun.com>
28824
28825         * modules/group-member: Depend on stdbool.
28826
28827 2003-10-29  Paul Eggert  <eggert@twinsun.com>
28828
28829         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
28830
28831 2003-10-29  Paul Eggert  <eggert@twinsun.com>
28832
28833         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
28834         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
28835         after the 'gnu' in these cases.  This fixes some bugs in the
28836         previous change, and is based on suggestions by Robert Millan.
28837
28838 2003-10-29  Paul Eggert  <eggert@twinsun.com>
28839
28840         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
28841         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
28842         no longer needed.
28843         * lib/quotearg.c (quotearg_n_options): Use it.
28844         * lib/group-member.c: Include <stdbool.h>.
28845         (free_group_info): Arg is now const *; don't free arg.
28846         (get_group_info): Now returns bool and accepts struct group_info *,
28847         rather than returning a malloc'ed struct group_info *.
28848         All uses changed.  Check for overflow in internal size calculation.
28849
28850         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
28851         rather than xmalloc/xrealloc.
28852         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
28853         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
28854         conformance bug: the old code used a pointer after freeing the
28855         storage that it addressed.
28856         * lib/hash.c (hash_initialize): Simplify the code by using
28857         xalloc_oversized rather than doing it by hand.
28858         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
28859         the buffer preserved.  Use free and xmalloc instead.
28860         * lib/quotearg.c (quotearg_n_options): Likewise.
28861         Use a simpler test for size overflow.  Don't use xalloc_oversized
28862         because unsigned int might be wider than size_t (!); this suggests
28863         that we should switch from unsigned int to size_t for slot numbers.
28864
28865 2003-10-28  Paul Eggert  <eggert@twinsun.com>
28866
28867         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
28868         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
28869         NetBSD kernels.  Requested by Richard Stallman.
28870
28871 2003-10-27  Paul Eggert  <eggert@twinsun.com>
28872
28873         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
28874         to allocate the returned structure.  Do not allocate a subarray,
28875         as x2nrealloc will do that.
28876         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
28877         instead of xnrealloc.
28878         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
28879
28880 2003-10-27  Bruno Haible  <bruno@clisp.org>
28881
28882         * lib/stdbool_.h: Better support for BeOS.
28883
28884 2003-10-26  Paul Eggert  <eggert@twinsun.com>
28885
28886         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
28887         now uses inline.
28888
28889 2003-10-26  Paul Eggert  <eggert@twinsun.com>
28890
28891         * lib/xalloc.h (xalloc_oversized): New static inline function, for
28892         callers that want to do their own size-overflow checking.  Include
28893         <stdbool.h>, since xalloc_oversized returns bool.
28894         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
28895         to use xalloc_oversized.
28896
28897         Add two functions x2realloc, x2nrealloc, for programs that grow
28898         arrays dynamically by doubling their sizes.
28899         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
28900         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
28901         New functions.
28902
28903         Port to C99 semantics for 'inline' of external functions.
28904         Bug reported by Bruno Haible.
28905         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
28906         with the old contents of xnmalloc.
28907         (xnmalloc, xmalloc): Use it.
28908         (xnrealloc_inline): New static inline function,
28909         with the old contents of xnrealloc.
28910         (xnrealloc, xrealloc): Use it.
28911
28912         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
28913         that.
28914
28915 2003-10-26  Karl Berry  <karl@gnu.org>
28916
28917         * config/srclist.txt (COPYING.DOC): no longer available from
28918         /gd/gnuorg; don't know where the ultimate source is.
28919
28920 2003-10-25  Paul Eggert  <eggert@twinsun.com>
28921
28922         Fix several address-calculation bugs in the hash modules,
28923         plus some minor code cleanup.
28924
28925         * lib/hash.h: Include <stdbool.h>, for bool.
28926         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
28927         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
28928         hash_get_n_entries, hash_get_max_bucket_length,
28929         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
28930         hash_rehash): Use size_t rather than unsigned.
28931         * lib/hash.c (struct hash_table, hash_get_n_buckets,
28932         hash_get_n_buckets_used, hash_get_n_entries,
28933         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
28934         hash_get_entries, hash_do_for_each, hash_string, is_prime,
28935         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
28936         Likewise.
28937         (SIZE_MAX): Define if not defined.
28938         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
28939         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
28940         hash_print):
28941         Use const * when possible.
28942         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
28943         (check_tuning): Fix bug: if tuning parameters were very close to
28944         0 or 1, rounding errors could have caused subscript violations.
28945         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
28946         (hash_initialize): Add 'fail:' label
28947         to free table and return NULL, and use it to simplify code.
28948         Use calloc rather than clearing the storage ourself.
28949         (hash_initialize, hash_rehash): Check for arithmetic overflow in
28950         buffer size calculations.
28951         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
28952         Include <stddef.h>, for size_t.
28953         * lib/hash-pjw.c (hash_pjw): Likewise.
28954         Switch to method described by Bruno Haible.
28955         Include <limits.h>, for CHAR_BIT.
28956         (SIZE_BITS): New macro.
28957
28958 2003-10-23  Paul Eggert  <eggert@twinsun.com>
28959
28960         * m4/getline.m4 (AM_FUNC_GETLINE):
28961         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
28962         hosts.  Problem reported by Derek Robert Price in
28963         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
28964         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
28965         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
28966
28967 2003-10-21  Paul Eggert  <eggert@twinsun.com>
28968
28969         * lib/getndelim2.c (getndelim2): When size calculation overflows,
28970         ceiling the allocation at NMAX bytes rather than silently
28971         discarding input bytes before NMAX is reached.  This makes
28972         a difference only if NMAX exceeds SIZE_MAX / 2.
28973
28974         * lib/obstack.c: Merge from glibc.
28975         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
28976         Add libc_hidden_def (_obstack_newchunk).
28977         (_obstack_free) [! defined _LIBC]: Remove.
28978         [defined _LIBC]: Make a strong alias from obstack_free, rather than
28979         a clone of the function body.
28980         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
28981         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
28982
28983         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
28984         glibc.
28985         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
28986         arg to memcpy.
28987
28988         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
28989         (obstack_ptr_grow_fast, obstack_int_grow_fast):
28990         Don't use lvalue casts, as GCC plans to remove support for them
28991         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
28992         was also present in the non-GCC version, indicating that this
28993         code had always been buggy and had never been widely used.
28994         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
28995         Use the fast variant of each macro, rather than copying the
28996         definiens of the fast variant; that way, we'll be more likely to
28997         catch future bugs in the fast variants.
28998
28999 2003-10-20  Bruno Haible  <bruno@clisp.org>
29000
29001         * modules/wait-process: New file.
29002         * MODULES.html.sh (func_all_modules): Add wait-process.
29003
29004 2003-10-20  Bruno Haible  <bruno@clisp.org>
29005
29006         * m4/wait-process.m4: New file.
29007
29008 2003-10-20  Bruno Haible  <bruno@clisp.org>
29009
29010         * lib/wait-process.h: New file, from GNU gettext.
29011         * lib/wait-process.c: New file, from GNU gettext.
29012
29013 2003-10-19  Jim Meyering  <jim@meyering.net>
29014
29015         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
29016         HPUX 10.20.
29017
29018 2003-10-18  Karl Berry  <karl@gnu.org>
29019
29020         * config/config.guess: update from config.
29021
29022 2003-10-16  Paul Eggert  <eggert@twinsun.com>
29023
29024         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
29025         (getgroups): First arg is int, not size_t.
29026         Don't let 'free' mangle errno.
29027
29028 2003-10-16  Paul Eggert  <eggert@twinsun.com>
29029
29030         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
29031
29032 2003-10-16  Karl Berry  <karl@gnu.org>
29033
29034         * config/config.{guess,sub}: update from config.
29035
29036 2003-10-16  Jim Meyering  <jim@meyering.net>
29037
29038         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
29039         memcpy.
29040
29041 2003-10-15  Paul Eggert  <eggert@twinsun.com>
29042
29043         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
29044         (SIZE_MAX): Remove.
29045         (new_exclude, add_exclude_file): Initial size no longer needs to
29046         be a power of 2.
29047         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
29048         our own address arithmetic overflow checking.
29049
29050         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
29051         (fnmatch): Do not alloca more than 2000 wide characters;
29052         instead, use malloc for large buffers.
29053         Check for address arithmetic overflow, and return -1
29054         with errno set to ENOMEM in that case.
29055         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
29056         (NEW_PATTERN): Do not alloca more than 8000 bytes;
29057         instead, return -1.  Check for address arithmetic overflow.
29058
29059 2003-10-14  Paul Eggert  <eggert@twinsun.com>
29060
29061         Handle invalid suffixes and overflow independently, so that
29062         callers can treat them independently as needed.  Fix some bugs in
29063         suffix handling, e.g., "100k@" was not diagnosed as an invalid
29064         suffix for a human-readable blocksize.  The major caller-visible
29065         change is the addition of a new
29066         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
29067         that both overflow and suffix chars were found.
29068
29069         * lib/human.c (humblock): Don't check separately for invalid suffix
29070         char; that is xstrtoumax's job (now that its bug is fixed).
29071         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
29072         INTMAX_MAX]: New macros.
29073         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
29074         TYPE_MAXIMUM): New macros.
29075         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
29076         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
29077         if overflow occurs, as it's what __strtol does and it's more useful
29078         in practice.
29079         (__xstrtol): If __strtol reports some error other than ERANGE,
29080         reflect it to the caller as LONGINT_INVALID.  If it reports
29081         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
29082         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
29083         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
29084         value.
29085         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
29086         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
29087         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
29088         [defined UINTMAX_MAX]: New macros.
29089
29090 2003-10-14  Bruno Haible  <bruno@clisp.org>
29091
29092         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
29093
29094 2003-10-14  Bruno Haible  <bruno@clisp.org>
29095
29096         * m4/sig_atomic_t: New file, from GNU gettext.
29097         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
29098
29099 2003-10-14  Bruno Haible  <bruno@clisp.org>
29100
29101         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
29102         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
29103         Also use volatile where needed.
29104
29105 2003-10-12  Paul Eggert  <eggert@twinsun.com>
29106
29107         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
29108         Change maintainer from Bruno Haible to 'all'.
29109
29110 2003-10-12  Paul Eggert  <eggert@twinsun.com>
29111
29112         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
29113
29114 2003-10-12  Paul Eggert  <eggert@twinsun.com>
29115
29116         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
29117         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
29118         and define in terms of the other primitives.
29119         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
29120         (SIZE_MAX): Define if not already defined.
29121         (array_size_overflow): New function.
29122         (xalloc_die): Abort instead of exiting if 'error' returns.
29123         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
29124         (xmalloc, xrealloc): Use them.
29125         (xcalloc): Check for address arithmetic overflow.
29126         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
29127         a bit faster than strcpy.
29128
29129 2003-10-10  Simon Josefsson  <jas@extundo.com>
29130
29131         * modules/argp (Depends-on): Add restrict and strcase.
29132
29133 2003-10-10  Simon Josefsson  <jas@extundo.com>
29134
29135         * m4/argp.m4: Add AC_C_INLINE.
29136
29137 2003-10-08  Paul Eggert  <eggert@twinsun.com>
29138
29139         Merge getpass from libc, plus a few fixes.
29140
29141         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
29142         Include <stdbool.h>.
29143         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
29144         __fsetlocking to empty.
29145         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
29146         do include <bits/libc-lock.h>.
29147         Do not include <fcntl.h>; not needed.
29148         [_LIBC]: Include <wchar.h>.
29149         (NOTCANCEL_MODE): New macro.
29150         (flockfile, funlockfile) [_LIBC]: New macros.
29151         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
29152         [!_LIBC]: New macros.
29153         (call_fclose): New function.
29154         (getpass): Use it.  Save tty stream separately; this simplifies the
29155         code and makes it more reliable if stdin happens to equal stdout.
29156         Invoke __fsetlocking on tty.
29157         Handle thread cancellation if needed.
29158         Namespace cleanup (use __tcgetattr, __getline).
29159         Use bool for Booleans.
29160         [USE_IN_LIBIO]: Handle wide streams.
29161         [!_LIBC]: Unconditionally do the fseek, since we don't know what
29162         stream might go where.
29163
29164         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
29165         doesn't have to include <stdio.h> before us.
29166         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
29167         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
29168         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
29169         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
29170         if not declared, so that we can use getpass.c code from libc without
29171         rewriting it.
29172         (flockfile, ftrylockfile, funlockfile): New macros.
29173
29174 2003-10-08  Paul Eggert  <eggert@twinsun.com>
29175
29176         * modules/getpass: Depend on stdbool.
29177
29178 2003-10-08  Paul Eggert  <eggert@twinsun.com>
29179
29180         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
29181
29182 2003-10-07  Karl Berry  <karl@gnu.org>
29183
29184         * config/config.{guess,sub}: update from config.
29185
29186 2003-10-06  Jim Meyering  <jim@meyering.net>
29187             Bruno Haible  <bruno@clisp.org>
29188
29189         This lets translators provide better translations for the
29190         "Written by ..." part of --version output.
29191         * lib/version-etc.h: Include stdarg.h.
29192         (version_etc_copyright): Declare as readonly.
29193         (version_etc): Make this function variadic with a NULL-terminated list
29194         of author name strings.
29195         (version_etc_va): New declaration.
29196         * lib/version-etc.c: Include stdarg.h, stdlib.h.
29197         (version_etc_copyright): Declare as readonly.
29198         (version_etc_va): New function. Provide a different translatable string
29199         for each possible number of authors < 10. Abbreviate when there are 10
29200         authors or more.
29201         (version_etc): Make this function variadic. Call version_etc_va.
29202         Suggestion from Gary V. Vaughan.
29203
29204         * lib/long-options.h (parse_long_options): Change prototype: the
29205         authors string is moved to the end and becomes variadic.
29206         * lib/long-options.c: Include stdarg.h.
29207         (parse_long_options): Make this function variadic, too.
29208         Call version_etc_va, not version_etc.
29209
29210 2003-10-06  Bruno Haible  <bruno@clisp.org>
29211
29212         * modules/version-etc-2: Remove file.
29213         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
29214
29215 2003-10-06  Bruno Haible  <bruno@clisp.org>
29216
29217         * modules/fatal-signal: New file.
29218         * MODULES.html.sh (func_all_modules): Add fatal-signal.
29219
29220 2003-10-06  Bruno Haible  <bruno@clisp.org>
29221
29222         * m4/fatal-signal.m4: New file.
29223         * m4/signalblocking.m4: New file, from GNU gettext.
29224
29225 2003-10-06  Bruno Haible  <bruno@clisp.org>
29226
29227         * lib/version-etc-2.h: Remove file.
29228         * lib/version-etc-2.c: Remove file.
29229
29230 2003-10-06  Bruno Haible  <bruno@clisp.org>
29231
29232         * lib/fatal-signal.h: New file, from GNU gettext.
29233         * lib/fatal-signal.c: New file, from GNU gettext.
29234
29235 2003-10-05  Paul Eggert  <eggert@twinsun.com>
29236
29237         * README: Rework advice for preventing empty .o files.
29238         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
29239         not <sys/types.h>.
29240
29241 2003-10-04  Karl Berry  <karl@gnu.org>
29242
29243         * lib/argp*: update from libc.
29244
29245 2003-10-04  Karl Berry  <karl@gnu.org>
29246
29247         * config/config.{guess,sub}: update from config.
29248
29249 2003-10-02  Bruno Haible  <bruno@clisp.org>
29250
29251         * modules/lchown (Include): Add lchown.h.
29252         * modules/time_r (Include): Use "..." syntax.
29253         * modules/xgetdomainname (Include): Add xgetdomainname.h.
29254
29255 2003-10-01  Simon Josefsson  <jas@extundo.com>
29256
29257         * MODULES.html.sh (func_all_modules): Move gethostname from section
29258         'based on' to section 'lacking' POSIX:2001.
29259
29260 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
29261
29262         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
29263         to output mode on the same stream.
29264
29265 2003-09-29  Paul Eggert  <eggert@twinsun.com>
29266
29267         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
29268         Fix arg typo in previous patch.
29269
29270 2003-09-28  Jim Meyering  <jim@meyering.net>
29271
29272         * lib/error.c: Correct cpp indentation.
29273
29274 2003-09-27  Paul Eggert  <eggert@twinsun.com>
29275
29276         * modules/free: New file.
29277
29278 2003-09-27  Paul Eggert  <eggert@twinsun.com>
29279
29280         * m4/free.m4: New file.
29281
29282 2003-09-27  Paul Eggert  <eggert@twinsun.com>
29283
29284         * lib/minmax.h (MIN, MAX)
29285         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
29286         Omit the special code that used __typeof__, since we worry that
29287         it could be more trouble than it's worth.  See:
29288         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
29289         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
29290
29291         * lib/free.c: New file.
29292
29293 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
29294
29295         Trivial fixes to Makefile.am parts of module listings.
29296         * modules/strstr: Append strstr.h to lib_SOURCES.
29297         * modules/strcase: Likewise, for strcase.h.
29298
29299 2003-09-27  Karl Berry  <karl@gnu.org>
29300
29301         * config/mkinstalldirs: update from automake.
29302
29303 2003-09-26  Paul Eggert  <eggert@twinsun.com>
29304
29305         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
29306         (error_tail): Do not loop, reallocating temporary buffer, since
29307         the output cannot contain more wide characters than the input
29308         contains bytes, the size must be big enough already.  This avoids
29309         one potential size overflow calculation.  Check for size overflow
29310         when calculating temporary buffer size.  Free temporary buffer
29311         when done, if it was allocated with malloc; this plugs a memory
29312         leak.  Remove casts from void * to pointers, that are no longer
29313         needed now that we're assuming C89 or better.
29314
29315         Merge error changes from glibc.
29316
29317         * lib/error.c, error.h: Update copyright notice header to match glibc.
29318         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
29319         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
29320         Disable cancellation while printing error.
29321         * lib/error.h: Prepend __ to parameter names.
29322
29323 2003-09-26  Jim Meyering  <jim@meyering.net>
29324
29325         * lib/error.c (error_tail): Move some declarations
29326         into inner scope where the local variables are used.
29327
29328 2003-09-26  Bruno Haible  <bruno@clisp.org>
29329
29330         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
29331         stpncpy().
29332         Don't define stpncpy through config.h; it's now done through stpncpy.h.
29333
29334 2003-09-26  Bruno Haible  <bruno@clisp.org>
29335
29336         * lib/stpncpy.h (gnu_stpncpy): New declaration.
29337         (stpncpy): Define as alias for gnu_stpncpy.
29338         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
29339
29340 2003-09-25  Simon Josefsson  <jas@extundo.com>
29341
29342         * lib/xgetdomainname.h: New file.
29343         * lib/xgetdomainname.c: New file.
29344
29345 2003-09-25  Simon Josefsson  <jas@extundo.com>
29346             Bruno Haible  <bruno@clisp.org>
29347
29348         * modules/getdomainname: New file.
29349         * modules/xgetdomainname: New file.
29350         * MODULES.html.sh (func_all_modules): Add getdomainname,
29351         xgetdomainname.
29352
29353 2003-09-25  Simon Josefsson  <jas@extundo.com>
29354             Bruno Haible  <bruno@clisp.org>
29355
29356         * m4/getdomainname.m4: New file.
29357
29358 2003-09-25  Simon Josefsson  <jas@extundo.com>
29359             Bruno Haible  <bruno@clisp.org>
29360
29361         * lib/getdomainname.h: New file.
29362         * lib/getdomainname.c: New file.
29363
29364 2003-09-25  Karl Berry  <karl@gnu.org>
29365
29366         * lib/argp-fmtstream.c, argp-help.c: update from libc.
29367
29368 2003-09-25  Karl Berry  <karl@gnu.org>
29369
29370         * config/install-sh: update from automake.
29371
29372 2003-09-25  Bruno Haible  <bruno@clisp.org>
29373
29374         * modules/version-etc-2: New file, from modules/version-etc with
29375         modifications.
29376         * MODULES.html.sh (func_all_modules): Add version-etc-2.
29377
29378 2003-09-25  Bruno Haible  <bruno@clisp.org>
29379
29380         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
29381         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
29382
29383 2003-09-24  Simon Josefsson  <jas@extundo.com>
29384
29385         * modules/xgethostname: Add xgethostname.h.
29386
29387 2003-09-24  Paul Eggert  <eggert@twinsun.com>
29388
29389         * lib/linebuffer.c (freebuffer): Don't free the argument, just
29390         the buffer associated with the argument.  Bug reported by
29391         Simon Josefsson.
29392
29393 2003-09-24  Paul Eggert  <eggert@twinsun.com>
29394
29395         * README: Document assumptions that 'int' is at least 32 bits
29396         wide, that integer arithmetic is 2's complement without overflow,
29397         that there are no holes in integer values, that adding sizes of
29398         two nonoverlapping objects can't overflow, and that all-bits-zero
29399         yields scalar zero.  Fix spelling and capitalization typos.
29400
29401 2003-09-19  Karl Berry  <karl@gnu.org>
29402
29403         * lib/argp.h: update from libc.
29404
29405 2003-09-17  Paul Eggert  <eggert@twinsun.com>
29406
29407         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
29408         to avoid spurious warnings like "AC_RUN_IFELSE was called before
29409         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
29410
29411 2003-09-17  Paul Eggert  <eggert@twinsun.com>
29412
29413         * gnulib-tool: Use "test -h", not "test -L", for portability
29414         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
29415         (tags_regexp): Remove, since \| doesn't conform to POSIX.
29416         (sed_extract_prog): Issue s commands one-by-one, rather than
29417         using \| in one s command.
29418
29419 2003-09-16  Paul Eggert  <eggert@twinsun.com>
29420
29421         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
29422         input error, instead of returning NULL the next time we are called
29423         (and therefore losing track of errno).
29424
29425 2003-09-16  Bruno Haible  <bruno@clisp.org>
29426
29427         * gnulib-tool (func_create_testdir): Warn about duplicated
29428         dependencies.
29429
29430 2003-09-15  Paul Eggert  <eggert@twinsun.com>
29431
29432         * modules/argmatch, modules/fatal, modules/obstack,
29433         modules/xalloc, modules/xgethostname: Sort dependencies by
29434         importance, not alphabetically.
29435
29436 2003-09-15  Paul Eggert  <eggert@twinsun.com>
29437
29438         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
29439         fails, so that the caller gets the proper errno.
29440
29441         * lib/readutmp.c (read_utmp): Likewise.
29442         Check for fstat error.  Close stream and free storage
29443         when failing.
29444
29445 2003-09-14  Karl Berry  <karl@gnu.org>
29446
29447         * config/srclist.txt (strdup.c): disable for c89 changes.
29448
29449 2003-09-14  Jim Meyering  <jim@meyering.net>
29450
29451         * lib/getloadavg.c: Correct cpp indentation.
29452         * lib/strdup.c: Likewise.
29453         * lib/vasnprintf.c: Likewise.
29454
29455 2003-09-14  Bruno Haible  <bruno@clisp.org>
29456
29457         * modules/fwriteerror: New file.
29458         * MODULES.html.sh (func_all_modules): Add fwriteerror.
29459
29460 2003-09-14  Bruno Haible  <bruno@clisp.org>
29461
29462         * lib/fwriteerror.h: New file.
29463         * lib/fwriteerror.c: New file.
29464
29465 2003-09-12  Paul Eggert  <eggert@twinsun.com>
29466
29467         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
29468         modules/xgethostname, modules/xalloc: Depend on exit.
29469
29470 2003-09-12  Paul Eggert  <eggert@twinsun.com>
29471
29472         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
29473
29474         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
29475         and AC_MINIX, too, so that their extensions are available.
29476
29477         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
29478         This macro has been superseded by gl_BACKUPFILE.
29479
29480         More patches to assume C89 or better.
29481
29482         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
29483
29484         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
29485         unconditionally.
29486         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
29487         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
29488         Include <string.h>, <stdlib.h> unconditionally.
29489         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
29490         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
29491         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
29492         headers or for string.h.
29493         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
29494         or strtoul.
29495
29496         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
29497         headers.
29498         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
29499         * m4/userspec.m4 (gl_USERSPEC): Likewise.
29500         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
29501         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
29502         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
29503         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
29504         memcpy, memset.
29505         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
29506         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
29507         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
29508         strtol.
29509         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
29510         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
29511         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
29512         strtoul.
29513
29514 2003-09-12  Paul Eggert  <eggert@twinsun.com>
29515
29516         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
29517         * lib/obstack.c [!defined _LIBC]: Likewise.
29518         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
29519         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
29520         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
29521
29522         More changes to assume C89 or better.
29523
29524         * lib/error.c (error_tail): Assume vprintf.
29525
29526         * lib/argmatch.c (getenv): Remove decl.
29527         * lib/progreloc.c (get_full_program_name): Define via prototype.
29528         * lib/setenv.c (clearenv): Likewise.
29529         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
29530         needed.
29531         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
29532         (malloc, memcpy): Remove decls.
29533         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
29534         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
29535         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
29536         (memcpy): Remove macro.
29537         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
29538         (__P): Remove.  All uses removed.
29539         (PTR): Remove.  All uses changed to void *.
29540         (CHAR_BIT, NULL): Remove.
29541         (spaces, zeros, memset_space, memset_zero)
29542         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
29543         Remove.
29544         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
29545         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
29546         Define with prototype.
29547         Remove now-unnecessary prototype decl.
29548         (extra_args_spec): Assume ANSI C.  All uses changed.
29549         (extra_args_spec_iso): Remove.
29550         (my_strftime, emacs_strftimeu): Define via prototype.
29551         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
29552         unconditionally.
29553         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
29554         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
29555         (strtoul, strtol): Remove decls.
29556         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
29557         LONG_MAX): Remove.
29558         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
29559         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
29560         (LOCALE_PARAM_PROTO): New macro.
29561         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
29562         (INTERNAL (strtol), strtol): Define with a prototype.
29563         (PARAMS): Remove.  All uses removed.
29564         * lib/tempname.c: Include <string.h> unconditionally.
29565         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
29566         * lib/xgethostname.c (main): Define with a prototype.
29567         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
29568         Include <stdlib.h> unconditionally.
29569         (calloc, malloc, realloc, free): Remove decls.
29570         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
29571         Include <stdlib.h> unconditionally.  Sort include file names.
29572         (strtod): Remove.
29573         (xstrtod): Define with a prototype.
29574         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
29575         (strtol, strtoul): Remove decls.
29576
29577 2003-09-11  Paul Eggert  <eggert@twinsun.com>
29578
29579         More patches to assume C89 or better.
29580         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
29581         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
29582         string.h, memchr, STDC_HEADERS.
29583
29584 2003-09-11  Paul Eggert  <eggert@twinsun.com>
29585
29586         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
29587         Include <stdlib.h>, <string.h> unconditionally.
29588         Remove now-unnecessary cast to char *.
29589         * lib/strnlen.c: Include <string.h> unconditionally.
29590         * lib/yesno.c (yesno): Define with a prototype.
29591
29592 2003-09-11  Bruno Haible  <bruno@clisp.org>
29593
29594         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
29595
29596 2003-09-10  Jim Meyering  <jim@meyering.net>
29597
29598         * lib/error.c: Correct indentation of cpp directives.
29599
29600 2003-09-10  Bruno Haible  <bruno@clisp.org>
29601
29602         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
29603         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
29604         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
29605         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
29606         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
29607         <stdlib.h> and <string.h> checks.
29608         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
29609         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
29610
29611 2003-09-10  Bruno Haible  <bruno@clisp.org>
29612
29613         * lib/strcspn.c: Include <string.h> unconditionally.
29614         * lib/strpbrk.c: Include <string.h> unconditionally.
29615         * lib/strstr.c: Include <string.h> unconditionally.
29616         * lib/unicodeio.c: Include <string.h> unconditionally.
29617         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
29618         * lib/unsetenv.c: Likewise.
29619         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
29620         * lib/yesno.c: Include <stdlib.h> unconditionally.
29621         (rpmatch): Add prototype.
29622
29623 2003-09-09  Paul Eggert  <eggert@twinsun.com>
29624
29625         More patches to assume C89 or better.
29626         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
29627         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
29628         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
29629         or for string.h.
29630         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
29631         stdlib.h.
29632         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
29633         C headers.
29634         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
29635         string.h.
29636         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
29637         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
29638         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
29639         or for string.h.
29640         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
29641         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
29642         C headers.
29643         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
29644         memcpy.
29645         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
29646         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
29647         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
29648         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
29649         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
29650         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
29651         string.h, free.
29652         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
29653         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
29654         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
29655         C headers, or for string.h.
29656         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
29657         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
29658         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
29659         headers, memory.h, stdlib.h, string.h, strings.h.
29660         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
29661         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
29662         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
29663         strchr.
29664         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
29665         headers, memory.h, string.h.
29666         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
29667         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
29668         free.
29669         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
29670         headers.
29671         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
29672         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
29673         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
29674         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
29675         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
29676
29677 2003-09-09  Paul Eggert  <eggert@twinsun.com>
29678
29679         More K&R removal.
29680
29681         * lib/acosl.c (main): Use a prototype.
29682         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
29683         tanl.c: Likewise.
29684
29685         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
29686
29687         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
29688         (getopt, etopt_long, getopt_long_only, _getopt_internal)
29689         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
29690         with a prototype.
29691         * lib/getopt.c (const): Remove macro.
29692         Include <string.h> unconditionally.
29693         (my_index): Remove; all uses changed to strchr.
29694         (strlen): Remove decl.
29695         (exchange): Remove forward decl; no longer needed.
29696         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
29697         Define with prototype.
29698         * lib/getopt1.c (const): Remove macro.
29699         (getopt_long, getopt_long_only, main): Define with prototype.
29700
29701         * lib/getugroups.c: Include <string.h> unconditionally.
29702
29703         * lib/getusershell.c: Include <stdlib.h> unconditionally.
29704         (getusershell, setusershell, endusershell, readname, main):
29705         Define with prototypes.
29706
29707         * lib/group-member.c: Include group-member.h first.
29708         Include <stdlib.h> unconditionally.
29709
29710         * lib/hard-locale.c: Include hard-locale.h first.
29711         Include <stdlib.h>, <string.h> unconditionally.
29712
29713         * lib/hash.c (free, malloc): Remove decls.
29714         Include <stdlib.h> unconditionally.
29715
29716         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
29717         (getenv): Do not declare.
29718
29719         * lib/idcache.c: Include <string.h> unconditionally.
29720
29721         * lib/long-options.c: Include long-options.h first, to test interface.
29722         Include <stdlib.h> unconditionally.
29723
29724         * lib/makepath.c: Include makepath.h first, to test interface.
29725         Include <stdlib.h> and <string.h> unconditionally.
29726
29727         * lib/linebuffer.c: Include <stdlib.h>.
29728         (free): Remove decl.
29729
29730         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
29731         stddef.h. rpl_malloc returns void *, not char *.
29732         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
29733         prototype.
29734
29735         * lib/md5.h: Include <limits.h> unconditionally.
29736         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
29737         (__P): Remove; all uses removed.
29738         * lib/md5.c: Include "md5.h" first.
29739         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
29740         md5_buffer, md5_process_bytes, md5_process_block):
29741         Define with prototypes.
29742         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
29743         * lib/sha.c: Include "sha.h" first.
29744         Include <stdlib.h>, <string.h> unconditionally.
29745
29746         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
29747         * lib/memcmp.c (__ptr_t): Likewise.
29748         * lib/memrchr.c (__ptr_t): Likewise.
29749         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
29750         Include <string.h> unconditionally.
29751         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
29752         * lib/memchr.c: Include <stdlib.h> unconditionally.
29753         * lib/memchr.c (LONG_MAX): Remove.
29754         * lib/memrchr.c (LONG_MAX): Likewise.
29755         * lib/memchr.c (__memchr): Define via a prototype.
29756         * lib/memrchr.c (__memrchr): Likewise.
29757         * lib/memcmp.c (__P): Remove, and remove all uses.
29758         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
29759         Remove forward decls; no longer needed.
29760         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
29761         Use types required by C89 in prototype.
29762
29763         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
29764         * lib/savedir.c: Likewise.
29765         * lib/mkdir.c (free): Remove decl.
29766         * lib/rmdir.c (rmdir): Define with a prototype.
29767         * lib/savedir.c: Include savedir.h first, to test interface.
29768
29769         * lib/mktime.c (STDC_HEADERS): Remove.
29770         Include <stdlib.h>, <string.h> unconditionally.
29771
29772         * lib/modechange.c: Include <stdlib.h> unconditionally.
29773         (malloc): Remove decl.
29774
29775         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
29776         (free): Remove decl.
29777
29778         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
29779         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
29780         (This type really should be intptr_t, but that's a C99ism.)
29781         (_obstack_memcpy): Remove: all uses changed to memcpy.
29782         Include <string.h> unconditionally.
29783         (struct obstack): Assume __STDC__ for types of members
29784         chunkfun, freefun, extra_arg.
29785         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
29786         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
29787         obstack_begin, obstack_specify_allocation,
29788         obstack_specify_allocation_with_arg, obstack_chunkfun,
29789         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
29790         Remove unprototyped decls and the macros that use them.
29791         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
29792         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
29793         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
29794         (defined __STDC__ && __STDC__)]:
29795         Remove nonprototyped code.
29796         Include <stdlib.h> unconditionally.
29797         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
29798         _obstack_allocated_p, _obstack_free, obstack_free,
29799         _obstack_memory_used, print_and_abort):
29800         Define using prototypes.
29801         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
29802         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
29803         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
29804         obstack_next_free, obstack_object_size, obstack_room) [0]:
29805         Remove unused, unprototyped code.
29806
29807         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
29808
29809         * lib/physmem.c (physmem_total, physmem_available, main): Define
29810         with prototypes.
29811
29812         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
29813         (main): Define with a prototype.
29814
29815         * lib/posixver.c (getenv): Remove decl.
29816
29817         * lib/putenv.c (malloc): Returns void *, not char *.
29818         Include <string.h> unconditionally.
29819         (strchr, memcpy, NULL): Do not define.
29820
29821         * lib/readtokens.c: Include readtokens.h first, to test interface.
29822         Include <stdlib.h>, <string.h> unconditionally.
29823         (init_tokenbuffer): Define with a prototype.
29824
29825         * lib/regex.c (PARAMS): Remove.  All uses removed.
29826         All uses of _RE_ARGS removed, too.
29827         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
29828         unconditionally.
29829         (bzero): Assume memset exists.
29830         (memcmp, memcpy, NULL): Remove.
29831         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
29832         char, or assignments to local vars of type signed char.
29833         (init_syntax_once, PREFIX(extract_number_and_incr),
29834         PREFIX(print_partial_compiled_pattern),
29835         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
29836         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
29837         PREFIX(regex_grow_registers), PREFIX(regex_compile),
29838         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
29839         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
29840         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
29841         wcs_compile_range, byte_compile_range, truncate_wchar,
29842         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
29843         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
29844         count_mbs_length, wcs_re_match_2_internal,
29845         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
29846         PREFIX(alt_match_null_string_p),
29847         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
29848         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
29849         regfree, PREFIX(extract_number)): Define with prototype.  Remove
29850         now-unnecessary declaration, if any.
29851         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
29852         regcomp, regexec):
29853         Remove now-unnecessary casts among pointer types.
29854         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
29855
29856         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
29857         (free): Remove decl.
29858
29859         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
29860
29861         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
29862         (free): Remove decl.
29863
29864         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
29865         * lib/xgetcwd.c: Likewise.
29866
29867         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
29868         (free): Remove decl.
29869
29870         * lib/strchrnul.c (strchrnul): Define with a prototype.
29871         Fix bug: c_in was not converted to char before searching.
29872
29873         The following changes are not K&R related:
29874
29875         * lib/group-member.h: Include <sys/types.h>, so that this file is
29876         self-contained.
29877         * lib/makepath.h: Likewise.
29878
29879         * lib/getusershell.c (readname, default_index, line_size, readname):
29880         Use size_t, not int, for sizes.
29881         (readname): If the size overflows, report an error instead of
29882         looping forever.
29883
29884 2003-09-09  Paul Eggert  <eggert@twinsun.com>
29885
29886         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
29887         libc.
29888
29889 2003-09-09  Paul Eggert  <eggert@twinsun.com>
29890
29891         * README: New section: portability guidelines.
29892
29893 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
29894
29895         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
29896         C89 spec.
29897
29898 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
29899
29900         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
29901
29902 2003-09-08  Paul Eggert  <eggert@twinsun.com>
29903
29904         Assume C89 or better; remove K&R cruft.
29905         A few of these changes were first proposed by Derek Robert Price
29906         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
29907
29908         * lib/addext.c: Include <string.h> unconditionally.
29909         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
29910         Don't declare getenv or malloc.
29911
29912         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
29913         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
29914         (NULL): Remove.
29915         (find_stack_direction, alloca): Use prototypes.
29916
29917         * lib/atexit.c (atexit): Define using a prototype.
29918
29919         * lib/basename.c, dirname.c, stripslash.c:
29920         Include <string.h> unconditionally.
29921
29922         * lib/bcopy.c: Include <stddef.h>.
29923         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
29924
29925         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
29926
29927         * lib/error.h (error, error_at_line, error_print_progname)
29928         [! (defined (__STDC__) && __STDC__)]: Remove decls.
29929         * lib/error.c: Include error.h first, to check interface.
29930         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
29931         (VA_START): Remove; all uses changeed to va_start.
29932         (exit, strerror): Remove decls.
29933         (error_print_progname): Prototype uncondionally.
29934         Don't include <errno.h>; no longer needed.
29935         (private_strerror): Remove.
29936         (error_tail): Always define.
29937         (error, error_at_line): Assume C89 or better; always use prototypes.
29938         * lib/fatal.c: Include "fatal.h" first, to test interface.
29939         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
29940         (VA_START): Remove; all uses changed to va_start.
29941         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
29942         this case.
29943         (exit): Remove decl.
29944         (fatal): Prototype unconditionally.  Assume va_start works.
29945         Abort at end, to pacify gcc.
29946
29947         * lib/euidaccess.c (main): Define with a prototype.
29948
29949         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
29950
29951         * lib/exitfail.c: Include <stdlib.h> unconditionally.
29952
29953         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
29954         prototypes.
29955         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
29956         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
29957         (getenv): Remove decl.
29958         (fnmatch): Define using a prototype.
29959         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
29960         (FCT): Define using a prototype.
29961
29962         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
29963
29964         * lib/gethostname.c: Include <stddef.h>.
29965         (gethostname): Define with prototype.  Length is size_t, not int.
29966
29967 2003-09-08  Paul Eggert  <eggert@twinsun.com>
29968
29969         Assume C89 or better; remove K&R cruft.
29970         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
29971         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
29972         string.h, getenv, malloc.
29973         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
29974         headers.
29975         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
29976         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
29977         do not check for strerror.
29978         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
29979         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
29980         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
29981         do not check for doprnt or vprintf.
29982         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
29983         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
29984
29985 2003-09-08  Paul Eggert  <eggert@twinsun.com>
29986
29987         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
29988         getversion.c should have been removed then, but was accidentally
29989         preserved.
29990
29991         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
29992         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
29993
29994 2003-09-08  Karl Berry  <karl@gnu.org>
29995
29996         * config/config.sub, config.guess, srclistvars.sh: update from savannah
29997                 config, forget about prep.
29998
29999         * config/depcomp, missing: update from automake.
30000
30001 2003-09-07  Paul Eggert  <eggert@twinsun.com>
30002
30003         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
30004         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
30005
30006 2003-09-07  Paul Eggert  <eggert@twinsun.com>
30007
30008         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
30009         copy_tm_result.  Bug reported by Simon Josefsson in
30010         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
30011
30012 2003-09-06  Paul Eggert  <eggert@twinsun.com>
30013
30014         * m4/time_r.m4: New file.
30015         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
30016         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
30017         is. Check for timegm declaration.
30018         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
30019         Do not check for gmtime_r.
30020         Replace mktime if __mktime_internal does not exist and if mktime
30021         hasn't been replaced already.
30022
30023 2003-09-06  Paul Eggert  <eggert@twinsun.com>
30024
30025         * lib/time_r.c, lib/time_r.h: New files.
30026
30027         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
30028         __localtime_r.
30029         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
30030         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
30031
30032         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
30033         __gmtime_r.
30034         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
30035         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
30036         Include <time_r.h>.
30037
30038         * lib/timegm.c: Switch to glibc implementation, with the following
30039         changes:
30040         [defined HAVE_CONFIG_H]: Include <config.h>.
30041         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
30042         (__mktime_internal) [!defined _LIBC]: New decl.
30043         (__gmtime_r) [!defined _LIBC]: New macro and function.
30044         (timegm): Use a prototype, since gnulib assumes C89.
30045         Do not bother declaring tmp to be const, as it's not really usefu.
30046         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
30047         (timegm): Declare only if HAVE_DECL_TIMEGM.
30048
30049 2003-09-06  Paul Eggert  <eggert@twinsun.com>
30050
30051         * MODULES.html.sh (func_all_modules): Add time_r.
30052         * modules/time_r: New file.
30053         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
30054         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
30055
30056 2003-09-03  Paul Eggert  <eggert@twinsun.com>
30057
30058         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
30059         Bug reported by Lute Kamstra in
30060         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
30061
30062         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
30063         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
30064         course with correspondingly smaller numbers for tomorrow and
30065         yesterday.  From Tadayoshi Funaba.  Originally installed into
30066         sh-utils on 1999-08-07, but the patch got lost (I guess during the
30067         coreutils merge?).
30068
30069 2003-08-31  Simon Josefsson  <jas@extundo.com>
30070
30071         * modules/timegm: New file.
30072         * MODULES.html.sh (func_all_modules): Add timegm.
30073
30074 2003-08-31  Simon Josefsson  <jas@extundo.com>
30075
30076         * m4/timegm.m4: New file.
30077
30078 2003-08-31  Simon Josefsson  <jas@extundo.com>
30079
30080         * lib/timegm.h: New file.
30081         * lib/timegm.c: New file.  Based on
30082         wget-1.8.2/src/http.c:mktime_from_utc.
30083
30084 2003-08-31  Karl Berry  <karl@gnu.org>
30085
30086         * lib/argp.h: update from libc.
30087
30088 2003-08-28  Bruno Haible  <bruno@clisp.org>
30089
30090         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
30091         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
30092         followed by '#define fnmatch fnmatch_posix' gives an error.
30093
30094 2003-08-28  Bruno Haible  <bruno@clisp.org>
30095
30096         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
30097         warning on QNX, which defines O_BINARY to 000000.
30098
30099 2003-08-27  Jim Meyering  <jim@meyering.net>
30100
30101         * m4/mkstemp.m4: Require that the system mkstemp be able to create
30102         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
30103         would fail after 32.  Reported by Danny Levinson.  Details here:
30104         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
30105
30106 2003-08-24  Bruno Haible  <bruno@clisp.org>
30107
30108         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
30109         MSVC7 <stdio.h> is included later.
30110
30111 2003-08-22  Simon Josefsson  <jas@extundo.com>
30112
30113         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
30114
30115 2003-08-20  Karl Berry  <karl@gnu.org>
30116
30117         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
30118
30119 2003-08-20  Bruno Haible  <bruno@clisp.org>
30120
30121         * modules/progname: New file.
30122         * MODULES.html.sh (func_all_modules): Add progname.
30123
30124 2003-08-20  Bruno Haible  <bruno@clisp.org>
30125
30126         * lib/progname.h: New file, from GNU gettext.
30127         * lib/progname.c: New file, from GNU gettext.
30128         * lib/progreloc.c: New file, from GNU gettext.
30129
30130 2003-08-19  Jim Meyering  <jim@meyering.net>
30131
30132         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
30133         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
30134
30135 2003-08-19  Bruno Haible  <bruno@clisp.org>
30136
30137         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
30138         more.
30139
30140 2003-08-19  Bruno Haible  <bruno@clisp.org>
30141
30142         * lib/xstrdup.c: Assume <string.h> exists.
30143
30144 2003-08-18  Paul Eggert  <eggert@twinsun.com>
30145
30146         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
30147         in makefile rules.
30148
30149 2003-08-18  Jim Meyering  <jim@meyering.net>
30150
30151         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
30152         * m4/lib-ld.m4: Likewise.
30153
30154 2003-08-18  Jim Meyering  <jim@meyering.net>
30155
30156         * lib/setenv.h: Indent nested cpp directive.
30157         * lib/vasnprintf.c: Remove trailing blanks.
30158
30159 2003-08-17  Simon Josefsson  <jas@extundo.com>
30160
30161         * modules/xstrndup: New file.
30162         * MODULES.html.sh (func_all_modules): Add xstrndup.
30163
30164 2003-08-17  Simon Josefsson  <jas@extundo.com>
30165
30166         * modules/argp: Fix autoconf macro name. Add more dependencies.
30167
30168 2003-08-17  Simon Josefsson  <jas@extundo.com>
30169
30170         * m4/xstrndup.m4: New file.
30171
30172 2003-08-17  Simon Josefsson  <jas@extundo.com>
30173
30174         * m4/argp.m4: New file.
30175
30176 2003-08-17  Simon Josefsson  <jas@extundo.com>
30177             Bruno Haible  <bruno@clisp.org>
30178
30179         * lib/xstrndup.h: New file.
30180         * lib/xstrndup.c: New file.
30181
30182 2003-08-17  Bruno Haible  <bruno@clisp.org>
30183
30184         * modules/strndup (Files, Include): Add lib/strndup.h.
30185
30186 2003-08-17  Bruno Haible  <bruno@clisp.org>
30187
30188         * modules/euidaccess (Files): Add lib/euidaccess.h.
30189
30190 2003-08-17  Bruno Haible  <bruno@clisp.org>
30191
30192         * lib/strndup.h: New file.
30193
30194 2003-08-17  Bruno Haible  <bruno@clisp.org>
30195
30196         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
30197         like AC_GNU_SOURCE.
30198         * modules/extensions (configure.ac): Comment out the invocation of
30199         gl_USE_SYSTEM_EXTENSIONS.
30200
30201 2003-08-16  Paul Eggert  <eggert@twinsun.com>
30202
30203         Merges from coreutils, etc.
30204         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
30205         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
30206         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
30207         fixing a typo.
30208         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
30209         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
30210
30211 2003-08-16  Paul Eggert  <eggert@twinsun.com>
30212
30213         Document merge from coreutils.
30214         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
30215         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
30216         * modules/utime: Add m4/utimes-null.m4.
30217
30218 2003-08-16  Paul Eggert  <eggert@twinsun.com>
30219
30220         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
30221         space, undoing this 2003-08-12 change:
30222         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
30223
30224 2003-08-16  Paul Eggert  <eggert@twinsun.com>
30225
30226         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
30227         strtoul.c from libc, undoing this 2003-08-12 change:
30228         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
30229
30230 2003-08-16  Jim Meyering  <jim@meyering.net>
30231
30232         Merges from coreutils.
30233         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
30234         prefix.  Adjust cache variables similarly.  Create 500 rather than
30235         just 300 files, to exercise bug on Darwin6.5, too.
30236         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
30237         $missing_dir.
30238         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
30239         AM_SYS_POSIX_TERMIOS.
30240         Reported by mkc@mathdogs.com.
30241         Also change use of $am_cv_sys_posix_termios
30242         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
30243         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
30244         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
30245         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
30246         in /proc/mounts until it finds one with matching device number.  This
30247         is unnecessary when the FILE argument *is* a mount point.  No stat call
30248         is necessary in that case.  So, disable the statvfs-testing code on
30249         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
30250         as RedHat bug# 84846.
30251         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
30252         to 1MB, so as not to render systems with no stack size limit (e.g.,
30253         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
30254         Include <unistd.h>.  On some systems,
30255         it is required for the definition of _SC_PAGESIZE.
30256
30257 2003-08-16  Jim Meyering  <jim@meyering.net>
30258
30259         Merge from coreutils.
30260         * lib/xstrtoimax.c: #else #if -> #elif.
30261         * lib/xstrtoumax.c: Likewise.
30262
30263 2003-08-16  Jim Meyering  <jim@meyering.net>
30264
30265         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
30266         * m4/utimes.m4: Removed.
30267         * m4/utimes-null.m4: Renamed from utimes.m4.
30268
30269         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
30270         to 1MB, so as not to render systems with no stack size limit (e.g.,
30271         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
30272         Include <unistd.h>.  On some systems,
30273         it is required for the definition of _SC_PAGESIZE.
30274
30275 2003-08-16  Jim Meyering  <jim@meyering.net>
30276         and Paul Eggert  <eggert@cs.ucla.edu>
30277
30278         Merges from coreutils, etc.
30279
30280         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
30281         using the latest version from cvs.  This avoids problems with #line
30282         directives using a vendor (Sun) compiler.
30283         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
30284         Don't set GETGROUPS_LIB here; now it's
30285         done via getgroups.m4's wrapper function.
30286         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
30287         rather than just in sh-util/configure.in, so that the
30288         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
30289         same.
30290         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
30291         AC_FUNC_GETLOADAVG where to find getloadavg.c.
30292         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
30293         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
30294         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
30295         Remove code that is now done by the newly-required macros.
30296         Append $(EXEEXT) to DF_PROG.
30297         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
30298         Do not invoke or require the following here,
30299         since prereq.m4 or some gnulib .m4 now does this for us:
30300         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
30301         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
30302         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
30303         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
30304         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
30305         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
30306         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
30307         AC_FUNC_OBSTACK.
30308         Do not replace the following functions, as this is now the job
30309         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
30310         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
30311         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
30312         atexit getpass, strdup, getpagesize.
30313         Replace 'raise'.
30314         Do not check for the following functions, as this is now the job
30315         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
30316         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
30317         setregid.
30318         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
30319         Check for sys/sysctl.h.
30320         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
30321         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
30322         of checking for ssize_t ourselves.
30323
30324         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
30325         Require every macro that gnulib/modules/* suggests for us.
30326         (jm_PREREQ_ADDEXT): New macro.
30327         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
30328         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
30329
30330         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
30331         (gl_PHYSMEM): Use it.
30332         Also check for `table' function.
30333         Check for new headers and functions.
30334         Add check for sys/sysmp.h.
30335         With suggestions from Kaveh Ghazi.
30336         Ignore headers that are present but cannot be compiled.  This
30337         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
30338         C 5.4.
30339
30340 2003-08-15  Paul Eggert  <eggert@twinsun.com>
30341
30342         Document merge from coreutils.
30343         * modules/userspec: Depend on posixver.
30344         * modules/strftime: Depend on tzset.
30345
30346 2003-08-15  Paul Eggert  <eggert@twinsun.com>
30347
30348         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
30349         rather than tab, after '#' in shell-script copyright notices.
30350         Suggested by Bruno Haible.
30351
30352 2003-08-15  Paul Eggert  <eggert@twinsun.com>
30353
30354         * config/srclist-update: Use three spaces, rather than tab, after '#'
30355         in shell-script copyright notices.  Suggested by Bruno Haible.
30356         Remove unnecessary parenthesization in regular expression.
30357
30358 2003-08-15  Jim Meyering  <jim@meyering.net>
30359
30360         Merge from coreutils.
30361         * lib/xgethostname.c: Include <stdlib.h>.
30362         (xghostname): Don't exit for anything other than memory-related
30363         failure; just return NULL.
30364         * lib/userspec.c: Include "posixver.h".
30365         (parse_user_spec): Accept `.' as a separator only
30366         in pre-POSIX-200112 mode.
30367         * lib/strtoimax.c: Use #elif rather than #else #if.
30368         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
30369         Remove function, now that we can rely on a working tzset function.
30370         [!_LIBC]: Ensure that the required autoconf test has been run.
30371         [!defined _NL_CURRENT && HAVE_STRFTIME]:
30372         Use underlying_strftime for %r.
30373         * lib/sha.c: Merge in some clean-up and optimization changes from
30374         glibc.
30375         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
30376         Ensure that it is a multiple of 64.
30377         Rearrange loop exit tests so as to avoid performing an
30378         additional fread after encountering an error or EOF.
30379         * lib/realloc.c: Update copyright date.
30380
30381 2003-08-15  Jim Meyering  <jim@meyering.net>
30382         and Paul Eggert  <eggert@twinsun.com>
30383
30384         Merge from coreutils.
30385         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
30386         member but strut utmpx does not.  Needed for AIX 4.3.3.
30387         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
30388
30389 2003-08-15  Jim Meyering  <jim@meyering.net>
30390         and Paul Eggert  <eggert@cs.ucla.edu>
30391
30392         Merges from coreutils, etc.
30393         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
30394         Require gl_FUNC_TZSET_CLOBBER.
30395         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
30396         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
30397         members.
30398
30399 2003-08-14  Paul Eggert  <eggert@twinsun.com>
30400
30401         Help the merge from coreutils.
30402         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
30403         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
30404         * m4/tzset.m4: Use it too.
30405
30406 2003-08-14  Paul Eggert  <eggert@twinsun.com>
30407
30408         * modules/tzset: New file.
30409
30410 2003-08-14  Jim Meyering  <jim@meyering.net>
30411
30412         Merges from coreutils.
30413         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
30414         variable names, rather than @FNMATCH_H@.
30415         * modules/alloca: Likewise for $(ALLOCA_H).
30416
30417         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
30418         the three copies of the literal target, `fnmatch.h'.
30419         * modules/alloca (alloca.h): Likewise.
30420
30421 2003-08-14  Jim Meyering  <jim@meyering.net>
30422
30423         Merge from coreutils.
30424         * m4/tzset.m4: New file.
30425         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
30426         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
30427         otherwise, AIX 5.1 systems would end up using the latter.
30428         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
30429         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
30430         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
30431         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
30432
30433 2003-08-14  Jim Meyering  <jim@meyering.net>
30434
30435         Merge from coreutils.
30436         * lib/obstack.h: Whitespace changes.
30437         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
30438         and xcalloc return values.
30439         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
30440         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
30441         hang on OSF/1 5.1 for DIR on both local and remote file systems.
30442         Reported by (and fix confirmed by) Nelson H. F. Beebe.
30443         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
30444         error from mntctl.
30445         Use mntctl's return value to drive the entry-processing loop, since
30446         we can't rely on the value of the vmt_length member in the last
30447         entry.  On some systems doing so could result in exhausting
30448         virtual memory.  Based in part on a patch from Mike Jetzer.
30449
30450 2003-08-14  Jim Meyering  <jim@meyering.net>
30451         and Paul Eggert  <eggert@twinsun.com>
30452
30453         Merges from coreutils, plus other fixes.
30454         * lib/physmem.c: Merge in portability changes from gcc/libiberty
30455         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
30456         for credits and details.  Thanks to Kaveh Ghazi for helping
30457         to keep these files in sync.
30458         (ARRAY_SIZE): Define it.
30459         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
30460         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
30461         (memcasecmp): Don't assume size_t fits in unsigned int.
30462         Remove casts and duplicate code.
30463         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
30464         (memcpy): Remove definition.
30465         Merge in some clean-up and optimization changes from glibc.
30466         [BLOCKSIZE]: Move definition to top of file.
30467         Ensure that it is a multiple of 64.
30468         Rearrange loop exit tests so as to avoid performing an
30469         additional fread after encountering an error or EOF.
30470         * lib/md5.h (md5_uintptr): Define.
30471         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
30472         return to the initial working directory.  Preserve errno
30473         for caller.
30474         * lib/idcache.c: Include "xalloc.h".
30475         (xmalloc, xrealloc): Remove decls.
30476         (getuser): Remove casts no longer required in C89.
30477         * lib/human.c: Include stdio.h, for sprintf.
30478         * lib/group-member.c: Include "xalloc.h".
30479         (xmalloc, xrealloc): Remove decls.
30480         (get_group_info): Remove casts no longer required in C89.
30481         * lib/getusershell.c (readname): Remove casts no longer required in
30482         C89.
30483         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
30484         * lib/getline.c: Whitespace fix, from coreutils.
30485
30486 2003-08-13  Paul Eggert  <eggert@twinsun.com>
30487
30488         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
30489         Check for isascii.
30490
30491         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
30492         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
30493         Undo previous (whitespace-only) change.
30494
30495 2003-08-13  Paul Eggert  <eggert@twinsun.com>
30496
30497         * lib/exclude.c: Include <ctype.h>
30498         (IN_CTYPE_DOMAIN): New macro.
30499         (is_space): New fn.
30500         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
30501         and empty lines.
30502
30503         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
30504         Undo previous (whitespace-only) change.
30505
30506 2003-08-13  Paul Eggert  <eggert@twinsun.com>
30507
30508         * config/srclist-update: Change update back to the old behavior,
30509         leaving whitespace alone.  Use one 'sed' command rather than a
30510         pipeline.
30511         (fixlicense): Now a variable, not a function.
30512         (remove_trailing_blanks): Remove.
30513         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
30514         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
30515         Undo previous (whitespace-only) change.
30516
30517 2003-08-12  Paul Eggert  <eggert@twinsun.com>
30518
30519         Merge from coreutils.
30520         * modules/euidaccess: Add lib_SOURCES, include for new
30521         file euidaccess.h
30522
30523 2003-08-12  Paul Eggert  <eggert@twinsun.com>
30524
30525         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
30526         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
30527         Normalize leading white space and remove trailing white space.
30528
30529         Merge from coreutils
30530         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
30531
30532         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
30533         0.12.1.  These files are now being upgraded automatically by
30534         ../config/srclist-update.
30535
30536 2003-08-12  Paul Eggert  <eggert@twinsun.com>
30537
30538         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
30539         Normalize leading white space and remove trailing white space.
30540         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
30541         notice, as per ../config/srclist-update.
30542
30543         Merge from coreutils.
30544         * lib/euidaccess.h: New file.
30545         * lib/euidaccess.c: Include it.
30546         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
30547         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
30548         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
30549
30550 2003-08-12  Paul Eggert  <eggert@twinsun.com>
30551
30552         * config/srclist-update: Add copyright notice.
30553         (remove_id_lines, remove_trailing_blanks): New constants.
30554         (fixfile): Use them to normalize spacing a bit in copied files.
30555         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
30556         Normalize leading white space and remove trailing white space.
30557
30558         * config/texinfo.tex: Sync with texinfo.
30559
30560         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
30561         strtoul.c from libc, to merge coreutils whitespace changes.
30562
30563         * config/srclist.txt: Get the following m4 files from gettext:
30564         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
30565         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
30566         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
30567         wint_t.m4.
30568
30569 2003-08-12  Karl Berry  <karl@gnu.org>
30570
30571         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
30572         been made.
30573
30574 2003-08-11  Paul Eggert  <eggert@twinsun.com>
30575
30576         * modules/gnu-source, m4/gnu-source.m4:
30577         Remove; we're assuming Autoconf 2.54 or later now.
30578         Suggested by Bruno Haible.
30579         * MODULES.html.sh (func_all_modules): Remove gnu-source.
30580
30581 2003-08-11  Bruno Haible  <bruno@clisp.org>
30582
30583         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
30584
30585 2003-08-11  Bruno Haible  <bruno@clisp.org>
30586
30587         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
30588         (vasnprintf): Use it instead of wcslen.
30589
30590 2003-08-11  Bruno Haible  <bruno@clisp.org>
30591
30592         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
30593         value to ensure that _Bool promotes to int. Use #define for _Bool when
30594         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
30595
30596 2003-08-10  Karl Berry  <karl@gnu.org>
30597
30598         * lib/regex.h: update from libc (whitespace fix).
30599
30600 2003-08-09  Paul Eggert  <eggert@twinsun.com>
30601
30602         Merge some files from coreutils.  These changes were
30603         originally made by Jim Meyering.
30604         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
30605         many older Unixes require this.
30606         * lib/alloca.c (alloca): Remove cast to argument of free;
30607         no longer needed in C89.
30608         * lib/alloca_.h, regex.h: Fix white space to match
30609         what GNU indent does.
30610
30611 2003-08-09  Paul Eggert  <eggert@twinsun.com>
30612
30613         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
30614         apparently Emacs's Unicode mode got confused before my 2003-08-05
30615         checkin.
30616
30617 2003-08-08  Paul Eggert  <eggert@twinsun.com>
30618
30619         * m4/extensions.m4: New file.
30620         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
30621         Require gl_USE_SYSTEM_EXTENSIONS.
30622         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
30623         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
30624
30625 2003-08-08  Paul Eggert  <eggert@twinsun.com>
30626
30627         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
30628         * modules/extensions, modules/gnu-source: New files.
30629         * modules/timespec, modules/unlocked-io: Depend on extensions.
30630
30631 2003-08-07  Paul Eggert  <eggert@twinsun.com>
30632
30633         * modules/restrict: New file.
30634         * MODULES.html.sh (func_all_modules): Add restrict.
30635         * modules/regex: Depend on restrict.
30636
30637 2003-08-07  Paul Eggert  <eggert@twinsun.com>
30638
30639         * m4/restrict.m4: New file.
30640         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
30641
30642 2003-08-07  Bruno Haible  <bruno@clisp.org>
30643
30644         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
30645         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
30646
30647 2003-08-07  Bruno Haible  <bruno@clisp.org>
30648
30649         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
30650         makes the module 'getndelim2' compatible with the module 'getline'.
30651
30652 2003-08-05  Paul Eggert  <eggert@twinsun.com>
30653
30654         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
30655         byte with "\201" to avoid glitches when editing that source file
30656         with multi-gnome-terminal.
30657
30658 2003-08-05  Paul Eggert  <eggert@twinsun.com>
30659
30660         * lib/bumpalloc.h: Remove.
30661
30662 2003-08-05  Paul Eggert  <eggert@twinsun.com>
30663
30664         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
30665         * modules/bumpalloc: Remove.
30666
30667 2003-08-04  Paul Eggert  <eggert@twinsun.com>
30668
30669         * lib/getloadavg.c: Change copyright notice and spacing to conform to
30670         GNU coding style.
30671
30672         Merge from coreutils.
30673         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
30674         1. From glibc.
30675         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
30676         from Karl Berry, implemented by Jim Meyering.
30677         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
30678         from Dmitry V. Levin.
30679         Remove anachronistic cast of xrealloc.
30680         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
30681         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
30682         type. Otherwise, it wouldn't compile with at least /bin/cc on
30683         ymp-cray-unicos9.0.2.X.
30684         Combine two mostly-identical uses of alloca into one.
30685         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
30686
30687 2003-08-04  Dave Love  <d.love@dl.ac.uk>
30688
30689         [From Emacs.]
30690
30691         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
30692         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
30693         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
30694         obsolete NLIST_NAME_UNION.
30695         [__GNU__]: Undef BSD and FSCALE.
30696         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
30697
30698 2003-08-03  Paul Eggert  <eggert@twinsun.com>
30699
30700         * lib/stdbool_.h (_Bool): Make it signed char, instead of
30701         an enum type, so that it's guaranteed to promote to int.  See:
30702         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
30703
30704 2003-08-03  Karl Berry  <karl@gnu.org>
30705
30706         * config/depcomp: update from automake.
30707
30708 2003-07-31  Paul Eggert  <eggert@twinsun.com>
30709
30710         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
30711         (strerror): Don't assume that a printable int fits in 14 bytes.
30712
30713 2003-07-31  Bruno Haible  <bruno@clisp.org>
30714
30715         * modules/getpass-gnu: New file.
30716         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
30717
30718 2003-07-31  Bruno Haible  <bruno@clisp.org>
30719
30720         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
30721
30722 2003-07-24  Karl Berry  <karl@gnu.org>
30723
30724         * config/missing: update from automake.
30725
30726 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
30727             Bruno Haible  <bruno@clisp.org>
30728
30729         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
30730         * lib/getline.c (getline, getdelim): Likewise.
30731         Remove _GNU_SOURCE define; now it's defined in config.h through
30732         m4/getline.m4.
30733
30734 2003-07-23  Karl Berry  <karl@gnu.org>
30735
30736         * config/config.sub: update from prep.
30737
30738 2003-07-22  Paul Eggert  <eggert@twinsun.com>
30739
30740         * modules/xalloc (Depends-on): Add exitfail.
30741         * modules/xmemcoll: Likewise.
30742
30743 2003-07-22  Paul Eggert  <eggert@twinsun.com>
30744
30745         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
30746         over-parenthesization in macros.
30747
30748         Sync with coreutils.
30749
30750         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
30751         required by C99.
30752
30753         Use `exit_failure' for xalloc and xmemcoll instead of their own
30754         private exit-failure variables.
30755         * lib/xalloc.h (xalloc_exit_failure): Remove.
30756         * lib/xmalloc.c: Likewise.  Include exitfail.h.
30757         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
30758         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
30759         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
30760         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
30761
30762 2003-07-20  Jim Meyering  <jim@meyering.net>
30763
30764         * modules/closeout (Depends-on): Add exitfail.
30765         Suggestion from Bruno Haible.
30766
30767 2003-07-19  Karl Berry  <karl@gnu.org>
30768
30769         * config/config.sub: update from prep.
30770
30771 2003-07-18  Paul Eggert  <eggert@twinsun.com>
30772
30773         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
30774         Remove.
30775         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
30776         to test that it can stand by itself.  Include "exitfail.h".
30777         Clients should set exit_failure instead.
30778         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
30779
30780 2003-07-18  Bruno Haible  <bruno@clisp.org>
30781
30782         * modules/getndelim2: New file.
30783         * modules/getline: Share files with module getndelim2.
30784         * modules/getnline: Depend on getndelim2 instead of sharing files with
30785         it. Add getnline.c to lib_SOURCES.
30786         * MODULES.html.sh (func_all_modules): Add getndelim2.
30787
30788 2003-07-18  Bruno Haible  <bruno@clisp.org>
30789
30790         * m4/getndelim2.m4: New file.
30791         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
30792         invoke gl_PREREQ_GETNDELIM2.
30793         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
30794         gl_PREREQ_GETNDELIM2.
30795         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
30796         gl_GETNDELIM2.
30797
30798 2003-07-18  Bruno Haible  <bruno@clisp.org>
30799
30800         * lib/getndelim2.h: New file.
30801         * lib/getndelim2.c: Make into a module of its own. Include config.h,
30802         getndelim2.h.
30803         (getndelim2): Make non-static. Change return type to ssize_t.
30804         * lib/getline.h: Change argument names.
30805         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
30806         * lib/getnline.c: Include getndelim2.h.
30807
30808 2003-07-18  Andreas Schwab  <schwab@suse.de>
30809
30810         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
30811
30812 2003-07-17  Karl Berry  <karl@gnu.org>
30813
30814         * config/config.sub: update from prep.
30815
30816 2003-07-17  Bruno Haible  <bruno@clisp.org>
30817
30818         * modules/getnline: New file.
30819         * modules/getline: Add lib/getndelim2.c to source file list.
30820         * MODULES.html.sh (func_all_modules): Add getnline.
30821
30822 2003-07-17  Bruno Haible  <bruno@clisp.org>
30823
30824         * m4/getnline.m4: New file.
30825
30826 2003-07-17  Bruno Haible  <bruno@clisp.org>
30827
30828         * m4/Makefile.am.in: Remove file.
30829         * m4/Makefile.am: Remove file.
30830         * m4/Makefile.in: Remove file.
30831
30832 2003-07-17  Bruno Haible  <bruno@clisp.org>
30833
30834         * lib/getnline.h: New file.
30835         * lib/getnline.c: New file.
30836         * lib/getndelim2.c: New file, extracted from getline.c.
30837         (getndelim2): Renamed from getdelim2, with added nmax argument.
30838         * lib/getline.c: Include getndelim2.c.
30839         (getdelim2): Moved out to getndelim2.c.
30840         (getline, getdelim): Update.
30841
30842 2003-07-17  Bruno Haible  <bruno@clisp.org>
30843
30844         * lib/Makefile.am: Remove file.
30845         * lib/Makefile.in: Remove file.
30846
30847 2003-07-17  Bruno Haible  <bruno@clisp.org>
30848
30849         * configure.in: Remove file.
30850         * Makefile.in: Remove file.
30851
30852 2003-07-17  Bruno Haible  <bruno@clisp.org>
30853
30854         * MODULES.html.sh: Put the </BODY> right before </HTML>.
30855
30856 2003-07-16  Karl Berry  <karl@gnu.org>
30857
30858         * config/srclist-update: was running fixlicense twice, which caused
30859                 texinfo.tex to be nullified for some reason.  Simplify,
30860                 $gplsrc is no longer needed as far as I can see?
30861
30862 2003-07-16  Jim Meyering  <jim@meyering.net>
30863
30864         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
30865
30866 2003-07-15  Paul Eggert  <eggert@twinsun.com>
30867
30868         * config/srclist.txt: Get the following files from gettext-runtime/intl
30869         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
30870         ref-del.sin.  From Bruno Haible.
30871         * config/srclist-update (fixfile): Change grep pattern again, since the
30872         previous fix didn't work (there was another trailing $).  Use
30873         '[$]' to escape the $s.
30874
30875 2003-07-15  Karl Berry  <karl@gnu.org>
30876
30877         * lib/vasnprintf.c: update from gettext.
30878
30879 2003-07-15  Karl Berry  <karl@gnu.org>
30880
30881         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
30882         gets expanded when surrounded by '$'.
30883
30884 2003-07-15  Jim Meyering  <jim@meyering.net>
30885
30886         * modules/save-cwd: Don't depend on error.  From Derek Price.
30887
30888 2003-07-15  Jim Meyering  <jim@meyering.net>
30889
30890         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
30891
30892 2003-07-14  Simon Josefsson  <jas@extundo.com>
30893
30894         * modules/mempcpy: New file.
30895         * MODULES.html.sh (func_all_modules): Add mempcpy.
30896
30897 2003-07-14  Simon Josefsson  <jas@extundo.com>
30898
30899         * m4/mempcpy.m4: New file.
30900
30901 2003-07-14  Simon Josefsson  <jas@extundo.com>
30902
30903         * lib/mempcpy.h: New file.
30904         * lib/mempcpy.c: New file.
30905
30906 2003-07-14  Paul Eggert  <eggert@twinsun.com>
30907
30908         * modules/getdate, modules/posixtm: Depend on mktime.
30909
30910 2003-07-14  Paul Eggert  <eggert@twinsun.com>
30911
30912         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
30913         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
30914         unicodeio.c, unicodeio.h, unlocked-io.h:
30915         Switch from LGPL to GPL.
30916
30917 2003-07-14  Paul Eggert  <eggert@twinsun.com>
30918
30919         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
30920         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
30921         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
30922         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
30923         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
30924         updated automatically by ../config/srclist-update.  This changes
30925         their license from LPGL to GPL.
30926
30927 2003-07-14  Paul Eggert  <eggert@twinsun.com>
30928
30929         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
30930         assumed to refer to the root of the most recent stable gettext version.
30931         * config/srclistvars.sh: Add defaults for eggert.
30932         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
30933         Match "This program" as well as "The program".  This is needed
30934         for gettext.
30935
30936 2003-07-14  Jim Meyering  <jim@meyering.net>
30937
30938         Don't emit diagnostics.  Let callers do that.
30939         * lib/save-cwd.c: Don't include "error.h".
30940         (save_cwd): Don't call error.  Ensure that errno is valid
30941         when returning nonzero.
30942
30943         * lib/save-cwd.h (restore_cwd): Update prototype.
30944         * lib/save-cwd.c (restore_cwd): Remove two parameters.
30945         Simplify.  Don't call error upon failure.  Let callers do that.
30946         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
30947         when auditing is enabled.  But don't bother updating the #if.
30948
30949 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
30950
30951         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
30952         it breaks C++ compilation.
30953         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
30954
30955 2003-07-10  Simon Josefsson  <jas@extundo.com>
30956
30957         * modules/strchrnul (Makefile.am): Add strchrnul.h.
30958
30959 2003-07-10  Jim Meyering  <jim@meyering.net>
30960
30961         * m4/clock_time.m4: Remove trailing blank.
30962         * m4/intmax_t.m4: Likewise.
30963
30964 2003-07-10  Jim Meyering  <jim@meyering.net>
30965
30966         * lib/vasnprintf.c: Remove trailing blanks.
30967         Make cpp indentation consistent.
30968
30969 2003-07-09  Paul Eggert  <eggert@twinsun.com>
30970
30971         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
30972         posixver.c, strftime.c, strnlen.c, strverscmp.c:
30973         Switch from LGPL to GPL.
30974
30975 2003-07-09  Paul Eggert  <eggert@twinsun.com>
30976
30977         * config/srclist.txt: Sort sublists.  Add
30978         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
30979         that differ from gnulib for one reason or another; we'd like this list
30980         to be smaller but for now let's document what we have.
30981
30982 2003-07-08  Paul Eggert  <eggert@twinsun.com>
30983
30984         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
30985         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
30986         and sweeter "eval x=$x".
30987         * config/srclist.txt: Get lib/argp* from glibc.
30988
30989 2003-07-07  Paul Eggert  <eggert@twinsun.com>
30990
30991         * lib/mktime.c: Fix some boundary cases and remove need for floating
30992         point.
30993
30994         Issue a compile-time diagnostic if time_t is floating point, or if
30995         two's complement arithmetic is not in effect, or if arithmetic
30996         right shift does not propagate the sign.  These assumptions were
30997         all in the original code but they weren't checked.
30998
30999         (TIME_T_MIDPOINT, verify): New macros.
31000         (__isleap): Remove; it has integer overflow problems.
31001         (leapyear): New function, without those problems.
31002         (ydhms_tm_diff): Remove; splitting into two parts.
31003         (ydhms_diff): New function, containing the arithmetic part of
31004         the old ydhms_tm_diff function.  Issue a compile-time
31005         diagnostic if we are not using C99 integer division.
31006         Avoid casts when possible.
31007         (guess_time_tm): New function, containing the checking part of
31008         the old ydhms_tm_diff function.  Return the new value, rather than
31009         the difference between it and the old.  Accept a new argument T
31010         so that *T specifies the old value.  Check for overflow in the result.
31011
31012         (__mktime_internal): Use a time_t offset, not a long int offset.
31013         This undoes the 2003-06-04 change, which is no longer needed now
31014         that we have better overflow checking.
31015         (localtime_offset): Likewise.
31016
31017         (__mktime_internal): Avoid harmful overflow on hosts where time_t
31018         and long are 64-bit but int is only 32-bit.
31019         (ydhms_diff): Use long int to store year1 and yday1.
31020         Issue a compile-time diagnostic if long int is not wide enough.
31021
31022         (__mktime_internal): Use long int to store adjusted year and yday.
31023         Use plain C rather than preprocessor commands, if that doesn't
31024         affect efficiency.
31025         Check for overflow (and try to repair) after each probe
31026         rather than checking only at the very end.  This avoids some bugs
31027         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
31028         does not equal GMT offset at maximum time).
31029         Use integer to check for overflow rather than floating point; this
31030         is more portable to non-IEEE hosts, and is a tad faster.
31031         When we detect that we are oscillating between two values,
31032         don't check whether tm_isdst has the requested value, since
31033         we already know the answer.  When tm_isdst has the wrong value,
31034         use a different heuristic to find the right one, based on the
31035         extreme values actually observed in practice in tz2003a,
31036         rather than the (overly optimistic) "previous 3 calendar quarters".
31037
31038         (not_equal_tm, print_tm, check_result): Use "const T" rather than
31039         "T const" to accommodate glibc style.
31040         (check_result): Use less-confusing report format.  "long" -> "long int.
31041         (main): Likewise.
31042         Don't loop if the iteration overflows time_t.
31043         Allow a negative step in the iteration.
31044
31045 2003-07-06  Karl Berry  <karl@gnu.org>
31046
31047         * config/depcomp: update from automake.
31048         * config/config.sub: update from prep.
31049
31050 2003-07-03  Karl Berry  <karl@gnu.org>
31051
31052         * config/config.guess: update from prep.
31053
31054 2003-07-01  Paul Eggert  <eggert@twinsun.com>
31055
31056         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
31057         xreadlink.c now includes it unconditionally.
31058
31059 2003-07-01  Paul Eggert  <eggert@twinsun.com>
31060
31061         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
31062         having it depend on HAVE_SYS_TYPES_H.
31063
31064 2003-07-01  Bruno Haible  <bruno@clisp.org>
31065
31066         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
31067         <sys/types.h> should be sufficient.
31068         Reported by Paul Eggert.
31069
31070 2003-06-26  Karl Berry  <karl@gnu.org>
31071
31072         * config/depcomp: update from automake.
31073
31074 2003-06-26  Bruno Haible  <bruno@clisp.org>
31075
31076         * modules/human: Depend on module stdbool.
31077
31078 2003-06-25  Bruno Haible  <bruno@clisp.org>
31079
31080         * modules/readlink: New file.
31081         * modules/xreadlink: Depend on it.
31082         * MODULES.html.sh (func_all_modules): Add readlink.
31083
31084 2003-06-25  Bruno Haible  <bruno@clisp.org>
31085
31086         * m4/readlink.m4: New file.
31087
31088 2003-06-25  Bruno Haible  <bruno@clisp.org>
31089
31090         * lib/readlink.c: New file.
31091
31092 2003-06-22  Karl Berry  <karl@gnu.org>
31093
31094         * config/srclist.txt: update mkinstalldirs from automake.
31095         * config/mkinstalldirs: update.
31096
31097 2003-06-22  Bruno Haible  <bruno@clisp.org>
31098
31099         Portability to mingw32.
31100         * m4/ssize_t.m4: New file, from GNU gettext.
31101         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
31102         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
31103
31104 2003-06-22  Bruno Haible  <bruno@clisp.org>
31105
31106         * modules/safe-read: Add m4/ssize_t.m4.
31107         * modules/xreadlink: Add m4/ssize_t.m4.
31108
31109 2003-06-20  Bruno Haible  <bruno@clisp.org>
31110
31111         Assume C89, so PARAMS isn't needed.
31112         * lib/unicodeio.h (PARAMS): Remove.
31113         * lib/unicodeio.c: Don't use PARAMS.
31114
31115 2003-06-18  Karl Berry  <karl@gnu.org>
31116
31117         * config/config.{guess,sub}: update from prep.
31118
31119 2003-06-18  Jim Meyering  <jim@meyering.net>
31120
31121         Merge changes from coreutils.
31122         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
31123         Remove explicit declarations of xmalloc and realloc.
31124         Include xalloc.h.
31125         (read_utmp): Remove anachronistic cast of xmalloc.
31126
31127 2003-06-17  Paul Eggert  <eggert@twinsun.com>
31128
31129         Assume C89, so PARAMS isn't needed.
31130         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
31131         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
31132         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
31133         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
31134         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
31135         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
31136         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
31137         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
31138         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
31139         lib/xstrtod.h, lib/xstrtol.h: Likewise.
31140         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
31141         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
31142         no longer needed. Anyway, config.h should always be included before any
31143         other file.
31144
31145 2003-06-11  Simon Josefsson  <jas@extundo.com>
31146
31147         * modules/sysexits: New file.
31148         * MODULES.html.sh (func_all_modules): Add sysexits.
31149
31150 2003-06-11  Simon Josefsson  <jas@extundo.com>
31151
31152         * lib/sysexit_.h: New file.
31153
31154 2003-06-11  Derek Price  <derek@ximbiot.com>
31155
31156         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
31157         necessary.
31158
31159 2003-06-11  Bruno Haible  <bruno@clisp.org>
31160
31161         * m4/sysexits.m4: New file.
31162
31163 2003-06-10  Simon Josefsson  <jas@extundo.com>
31164
31165         * lib/argp.h: New file, from glibc.
31166         * lib/argp-ba.c: New file, from glibc.
31167         * lib/argp-eexst.c: New file, from glibc.
31168         * lib/argp-fmtstream.c: New file, from glibc.
31169         * lib/argp-fmtstream.h: New file, from glibc.
31170         * lib/argp-fs-xinl.c: New file, from glibc.
31171         * lib/argp-help.c: New file, from glibc.
31172         * lib/argp-namefrob.h: New file, from glibc.
31173         * lib/argp-parse.c: New file, from glibc.
31174         * lib/argp-pv.c: New file, from glibc.
31175         * lib/argp-pvh.c: New file, from glibc.
31176         * lib/argp-xinl.c: New file, from glibc.
31177
31178 2003-06-10  Simon Josefsson  <jas@extundo.com>
31179
31180         * modules/strchrnul: New file.
31181
31182 2003-06-10  Simon Josefsson  <jas@extundo.com>
31183
31184         * modules/argp: New file.
31185
31186 2003-06-10  Simon Josefsson  <jas@extundo.com>
31187
31188         * m4/strchrnul.m4: New file.
31189
31190 2003-06-10  Simon Josefsson  <jas@extundo.com>
31191
31192         * lib/strchrnul.h: New file.
31193         * lib/strchrnul.c: New file.
31194
31195 2003-06-10  Bruno Haible  <bruno@clisp.org>
31196
31197         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
31198
31199 2003-06-07  Karl Berry  <karl@gnu.org>
31200
31201         * config/config.{guess,sub}: update from prep.
31202
31203 2003-06-07  Jim Meyering  <jim@meyering.net>
31204
31205         * modules/strtod: Use $(...) notation, not @...@ for
31206         AC_REPLACE'd variables.
31207         * modules/localcharset: Likewise.
31208
31209 2003-06-07  Jim Meyering  <jim@meyering.net>
31210
31211         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
31212         in place of my name in the copyright comment.
31213         Remove definition and uses of __P.
31214
31215         From coreutils.
31216         * lib/stat.c: Don't declare xmalloc explicitly.
31217         Instead, include "xalloc.h".
31218         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
31219         xrealloc, and xcalloc return values.
31220         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
31221         Improve comment.
31222         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
31223
31224 2003-06-07  Bruno Haible  <bruno@clisp.org>
31225
31226         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
31227         avoid AC_CONFIG_LINKS.
31228         * modules/fnmatch (Makefile.am): Use explicit creation rule for
31229         fnmatch.h, to avoid AC_CONFIG_LINKS.
31230         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
31231
31232 2003-06-07  Bruno Haible  <bruno@clisp.org>
31233
31234         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
31235         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
31236         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
31237         directory.
31238         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
31239         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
31240         directory.
31241
31242 2003-06-06  Jim Meyering  <jim@meyering.net>
31243
31244         Merge from coreutils.
31245         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
31246         Consolidate declarations and initializations of *_base* locals.
31247
31248         Merge from coreutils.
31249         This avoids a core dump on systems without GNU putenv,
31250         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
31251         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
31252         (unsetenv): New static function, from GNU libc.
31253         (rpl_putenv): Use it.
31254
31255         * lib/modechange.c: Remove trailing blanks.
31256
31257         Merge from coreutils.
31258         * lib/fsusage.c: Remove declaration of statfs.
31259         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
31260
31261         * lib/posixtm.c: Include <stdbool.h> unconditionally.
31262
31263 2003-06-06  Jim Meyering  <jim@meyering.net>
31264
31265         * lib/stdbool_.h: Renamed from stdbool.h.in.
31266
31267 2003-06-06  Jim Meyering  <jim@meyering.net>
31268             Bruno Haible  <bruno@clisp.org>
31269
31270         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
31271         Adjust Makefile.am snippet not to redirect directly to target.
31272         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
31273
31274 2003-06-05  Paul Eggert  <eggert@twinsun.com>
31275
31276         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
31277         mismatch, look in future quarters as well as past.  This fixes a
31278         bug when processing fall-backwards gaps immediately after a long
31279         period of daylight-saving time.
31280
31281         * lib/mktime.c: Assume freestanding C89 or better.
31282         (HAVE_LIMITS_H): Remove.  Assume it's 1.
31283         (__P): Remove; not used.
31284         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
31285         (mktime, not_equal_tm, print_tm, check_result,
31286         main): Use prototypes.  Use const * where appropriate.
31287         (main): Fix typo in testing code that uncovered by above changes.
31288         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
31289
31290 2003-06-04  Paul Eggert  <eggert@twinsun.com>
31291
31292         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
31293         locale.h, localeconv.  This merges changes from coreutils.
31294
31295         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
31296         It can be removed after the next Autoconf is released.
31297         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
31298         needed.
31299
31300 2003-06-04  Paul Eggert  <eggert@twinsun.com>
31301
31302         * lib/mktime.c: Fix Debian bug 177940
31303         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
31304         (localtime_offset): Now long int, not time_t, because we want it
31305         to be guaranteed to be signed.  All uses changed.
31306         (__mktime_internal): If overflow would occur when adding offset,
31307         don't add it.
31308
31309         Merge 'human' changes from coreutils.  Rewrite to support
31310         locale-specific notations like thousands separators.
31311         * lib/human.c: Simplify authorship notice.
31312         Include human.h immediately after config.h.
31313         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
31314         <limits.h>: Do not include, since human.h does.
31315         (SIZE_MAX, UINTMAX_MAX): New macros.
31316         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
31317         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
31318         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
31319         (power_letter): Renamed from suffixes.
31320         (generate_suffix_backwards): Remove.
31321         (adjust_value): Now takes int style (because of human.h changes)
31322         and long double value (for greater precision on some platforms).
31323         (group_number): New function.
31324         (human_readable): Use it.  Use integer options, not enum.
31325         Put the options before the sizes in the arg list.
31326         Support all the new options.
31327         The old human_readable function has been removed;
31328         use inttostr.h instead.
31329         (human_readable, default_block_size, humblock):
31330         Use uintmax_t, not int, for block sizes.
31331         (human_readable_inexact, block_size_types): Remove.
31332         (block_size_opts): New constant.
31333         (human_options): Renamed from human_block_size, with new signature
31334         that allows block sizes up to UINTMAX_MAX.  All callers changed.
31335         * lib/human.h: Add copyright and authorship notice.
31336         Include <limits.h> and <stdbool.h> unconditionally.
31337         (PARAMS): Remove.  All uses removed.
31338         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
31339         (enum human_inexact_style): Remove tag; now a nameless enum.
31340         (human_floor, human_ceiling, human_round_to_even): Now have
31341         values 2, 0, 1 rather than -1, 1, 0.
31342         (human_group_digits, human_suppress_point_zero, human_autoscale,
31343         human_base_1024, human_SI, human_B): New constants.
31344         (human_readable_inexact, human_block_size): Remove.
31345         (human_readable): Size args are now uintmax_t, not int.
31346         (human_options): New decl.
31347
31348         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
31349         unnecessary now that we assume C89 or better.  This change
31350         imported from coreutils.
31351
31352         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
31353         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
31354         in the 2003-05-30 sync from glibc.
31355
31356         .h files should stand alone, but we shouldn't include <sys/types.h>
31357         if we can get away with just <stddef.h>.
31358
31359         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
31360         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
31361         rather than <sys/types.h>, as we merely need size_t.
31362         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
31363         to get size_t.
31364         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
31365         Include <stdio.h>, to get FILE.
31366         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
31367         memcasecmp.h has included <stddef.h> and all we need is size_t.
31368         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
31369         our interface, instead of including <sys/types.h>
31370
31371 2003-06-04  Paul Eggert  <eggert@twinsun.com>
31372
31373         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
31374         now, as glibc mktime is buggy on non-glibc systems.
31375
31376 2003-06-03  Karl Berry  <karl@gnu.org>
31377
31378         * config/config.sub: update from prep.
31379
31380 2003-06-02  Paul Eggert  <eggert@twinsun.com>
31381
31382         [from coreutils]
31383         Fix some minor time-related bugs with POSIX time arguments.
31384         Some valid time stamps were being rejected (notably -1, and
31385         time stamps before 1900 on 64-bit hosts).  And some invalid
31386         time stamps were being accepted, e.g. September 31.
31387
31388         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
31389         that we can return (time_t) -1 successfully.
31390         * lib/posixtm.c: Likewise.
31391         [HAVE_STDBOOL_H]: Include <stdbool.h>.
31392         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
31393         (t): Remove static var.
31394         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
31395         of static var.  All uses changed.
31396         (year): Do not reject years before 1900; they can occur with
31397         64-bit time_t.
31398         (posix_time_parse): Do not check for out-of-range components;
31399         that is now the caller's responsibility, since our checks were
31400         only approximations.
31401         (posixtime): Use mktime to check for out-of-range components,
31402         since it knows them exactly.
31403         If mktime returns (time_t) -1, check whether an error actually occurred
31404         by invoking localtime on -1.
31405         (main) [TEST_POSIXTIME]: Check for input data errors, and report
31406         posixtime failures better.
31407         Improve the test data (in comments only).
31408
31409 2003-06-02  Karl Berry  <karl@gnu.org>
31410
31411         * config/mkinstalldirs (version): new variable.
31412         (--version): new option.
31413         (usage): improve message.
31414
31415 2003-05-30  Karl Berry  <karl@gnu.org>
31416
31417         * lib/mktime.c: update from libc.
31418
31419 2003-05-30  Bruno Haible  <bruno@clisp.org>
31420
31421         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
31422         * config/config.rpath: Upgrade to gettext-0.12.1.
31423
31424 2003-05-30  Bruno Haible  <bruno@clisp.org>
31425
31426         * m4/gettext.m4: Upgrade to gettext-0.12.1.
31427         * m4/nls.m4: New file, from gettext-0.12.1.
31428         * m4/po.m4: New file, from gettext-0.12.1.
31429         * m4/progtest.m4: Upgrade to gettext-0.12.1.
31430
31431 2003-05-30  Bruno Haible  <bruno@clisp.org>
31432
31433         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
31434         * lib/localcharset.h: Likewise.
31435         * lib/localcharset.c: Likewise.
31436
31437 2003-05-29  Karl Berry  <karl@gnu.org>
31438
31439         * config/config.rpath: update from gettext.
31440
31441 2003-05-28  Paul Eggert  <eggert@twinsun.com>
31442
31443         Assume the headers required for C89 freestanding compilers.
31444         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
31445         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
31446         * m4/human.m4 (gl_HUMAN): Likewise.
31447         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
31448         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
31449         * m4/userspec.m4 (gl_USERSPEC): Likewise.
31450         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
31451         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
31452         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
31453
31454 2003-05-28  Paul Eggert  <eggert@twinsun.com>
31455
31456         Assume the headers required for C89 freestanding compilers.
31457         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
31458         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
31459         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
31460         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
31461         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
31462         define, since <limits.h> is guaranteed to do that.
31463         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
31464         * lib/exclude.c: Include <stdbool.h> unconditionally.
31465         * lib/tempname.c: Include <stddef.h> unconditionally.
31466         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
31467         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
31468         <stddef.h> does that.
31469         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
31470         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
31471         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
31472         needed.
31473         * lib/xstrtol.c: Likewise.
31474         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
31475         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
31476
31477         * lib/addext.c (addext): Use assignment rather than cast, to avoid
31478         warnings on some platforms.
31479
31480         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
31481         arbitrarily.
31482
31483 2003-05-26  Jim Meyering  <jim@meyering.net>
31484
31485         Merge in a change from coreutils:
31486         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
31487         that is guaranteed to be `no'.  Use `no_such_member' to indicate
31488         that condition, rather than `-1' which is slightly misleading.
31489         Change the name of the cache variable to have the gl_ prefix.
31490         Prompted by a patch from Richard Dawe for DJGPP.
31491
31492 2003-05-24  Karl Berry  <karl@gnu.org>
31493
31494         * config/config.guess: update from prep.
31495
31496 2003-05-22  Karl Berry  <karl@gnu.org>
31497
31498         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
31499
31500 2003-05-20  Karl Berry  <karl@gnu.org>
31501
31502         * config/config.guess: update from prep.
31503
31504 2003-05-18  Karl Berry  <karl@gnu.org>
31505
31506         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
31507         might actually be set by the user.
31508
31509         * config/depcomp, install-sh, mdate-sh: update from automake.
31510
31511 2003-05-17  Bruno Haible  <bruno@clisp.org>
31512
31513         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
31514         invalid expansion for AC_EGREP_CPP.
31515         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
31516         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
31517         Suggested by Akim Demaille <akim@epita.fr> in
31518         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
31519
31520 2003-05-12  Jim Meyering  <jim@meyering.net>
31521
31522         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
31523         the space-padded-by-default conversion specifiers, %e, %k, %l.
31524
31525 2003-05-12  Bruno Haible  <bruno@clisp.org>
31526
31527         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
31528         the string is longer than 4 KB.
31529
31530 2003-05-11  Karl Berry  <karl@gnu.org>
31531
31532         * config/config.{guess,sub}: update from prep.
31533
31534 2003-05-09  Bruno Haible  <bruno@clisp.org>
31535
31536         * modules/error: Add m4/strerror_r.m4 to file list.
31537
31538 2003-05-03  Bruno Haible  <bruno@clisp.org>
31539
31540         Upgrade to Unicode-4.0.
31541         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
31542         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
31543         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
31544         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
31545         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
31546         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
31547         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
31548         Change width of U+E0100..U+E01EF from 1 to 0.
31549
31550 2003-04-25  Jim Meyering  <jim@meyering.net>
31551
31552         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
31553         of type size_t, not int.
31554
31555 2003-04-25  Bruno Haible  <bruno@clisp.org>
31556
31557         * lib/copy-file.c: Include <stddef.h>, for size_t.
31558
31559 2003-04-21  Paul Eggert  <eggert@twinsun.com>
31560
31561         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
31562         code which expansion is under static control.  Patch imported from
31563         Akim Demaille's patch to Bison; see
31564         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
31565
31566 2003-04-14  Bruno Haible  <bruno@clisp.org>
31567
31568         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
31569
31570 2003-04-11  Jim Meyering  <jim@meyering.net>
31571
31572         Merge changes from Coreutils.
31573
31574         2003-03-22  Jim Meyering  <jim@meyering.net>
31575
31576         * lib/strftime.c (widen): Cast alloca return value to proper type.
31577
31578         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
31579
31580         From GNU libc.
31581         * lib/strftime.c (my_strftime): Handle very large width
31582         specifications for numeric values correctly.  Improve checks for
31583         overflow.
31584
31585         2003-01-19  Jim Meyering  <jim@meyering.net>
31586
31587         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
31588         definitions.
31589         (nl_get_alt_digit) [! defined my_strftime]: Define.
31590         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
31591         _nl_get_alt_digit and _nl_get_walt_digit.
31592
31593         * lib/strftime.c (my_strftime): Merge in locale-related changes from
31594         libc. These changes have no effect outside of _LIBC.
31595
31596 2003-04-10  Bruno Haible  <bruno@clisp.org>
31597
31598         * modules/findprog: New file.
31599         * MODULES.html.sh (func_all_modules): Add it.
31600
31601 2003-04-10  Bruno Haible  <bruno@clisp.org>
31602
31603         * m4/findprog.m4: New file.
31604         * m4/eaccess.m4: New file.
31605
31606 2003-04-10  Bruno Haible  <bruno@clisp.org>
31607
31608         * lib/findprog.h: New file, from GNU gettext.
31609         * lib/findprog.c: New file, from GNU gettext.
31610
31611 2003-04-05  Jim Meyering  <jim@meyering.net>
31612
31613         Merge changes from Coreutils.
31614
31615         * lib/exclude.h (PARAMS): Remove definition and uses.
31616         * lib/exclude.c: Remove uses of `PARAMS'.
31617
31618         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
31619         Add test-cases for DOS filenames. Declare program_name.
31620         (main): Set up program_name.  Patch by Rich Dawe.
31621
31622         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
31623         error from mntctl.
31624         Use mntctl's return value to drive the entry-processing loop, since
31625         we can't rely on the value of the vmt_length member in the last
31626         entry.  On some systems doing so could result in exhausting
31627         virtual memory.  Based in part on a patch from Mike Jetzer.
31628
31629 2003-04-04  Bruno Haible  <bruno@clisp.org>
31630
31631         * modules/linebreak: New file.
31632         * MODULES.html.sh (func_all_modules): Add it.
31633
31634 2003-04-04  Bruno Haible  <bruno@clisp.org>
31635
31636         * m4/linebreak.m4: New file.
31637
31638 2003-04-04  Bruno Haible  <bruno@clisp.org>
31639
31640         * lib/linebreak.h: New file, from GNU gettext.
31641         * lib/linebreak.c: New file, from GNU gettext with slight
31642         modifications.
31643         * lib/lbrkprop.h: New file, from GNU gettext.
31644
31645 2003-04-03  Bruno Haible  <bruno@clisp.org>
31646
31647         * modules/utf8-ucs4: New file.
31648         * modules/utf16-ucs4: New file.
31649         * modules/ucs4-utf8: New file.
31650         * modules/ucs4-utf16: New file.
31651         * MODULES.html.sh (func_all_modules): Add them.
31652
31653 2003-04-03  Bruno Haible  <bruno@clisp.org>
31654
31655         * m4/utf-ucs4.m4: New file.
31656         * m4/ucs4-utf.m4: New file.
31657
31658 2003-04-03  Bruno Haible  <bruno@clisp.org>
31659
31660         * lib/utf8-ucs4.h: New file, from GNU gettext.
31661         * lib/utf16-ucs4.h: New file, from GNU gettext.
31662         * lib/ucs4-utf8.h: New file, from GNU gettext.
31663         * lib/ucs4-utf16.h: New file, from GNU gettext.
31664
31665 2003-04-02  Bruno Haible  <bruno@clisp.org>
31666
31667         * modules/binary-io: New file.
31668         * MODULES.html.sh (func_all_modules): Add it.
31669
31670 2003-04-02  Bruno Haible  <bruno@clisp.org>
31671
31672         * lib/binary-io.h: New file, from GNU gettext.
31673
31674 2003-04-01  Bruno Haible  <bruno@clisp.org>
31675
31676         * modules/pathname: New file.
31677         * MODULES.html.sh (func_all_modules): Add it.
31678
31679 2003-04-01  Bruno Haible  <bruno@clisp.org>
31680
31681         * lib/pathname.h: New file, from GNU gettext.
31682         * lib/concatpath.c: New file, from GNU gettext.
31683
31684 2003-03-30  Bruno Haible  <bruno@clisp.org>
31685
31686         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
31687
31688 2003-03-30  Bruno Haible  <bruno@clisp.org>
31689
31690         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
31691         function chown() doesn't exist.
31692
31693 2003-03-28  Bruno Haible  <bruno@clisp.org>
31694
31695         * modules/copy-file: New file.
31696         * MODULES.html.sh (func_all_modules): Add it.
31697
31698 2003-03-28  Bruno Haible  <bruno@clisp.org>
31699
31700         * m4/copy-file.m4: New file.
31701
31702 2003-03-28  Bruno Haible  <bruno@clisp.org>
31703
31704         * lib/copy-file.h: New file, from GNU gettext.
31705         * lib/copy-file.c: New file, from GNU gettext.
31706
31707 2003-03-18  Jim Meyering  <jim@meyering.net>
31708
31709         * lib/quote.c (quote_n): Fix typo in comment.
31710
31711 2003-03-18  Bruno Haible  <bruno@clisp.org>
31712
31713         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
31714         checking.
31715         * m4/onceonly_2_57.m4: Likewise.
31716
31717 2003-03-17  Bruno Haible  <bruno@clisp.org>
31718
31719         * m4/onceonly.m4: Require autoconf 2.54 or newer.
31720         (m4_quote): Remove macro.
31721         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
31722
31723 2003-03-14  Jim Meyering  <jim@meyering.net>
31724
31725         Merge changes from Coreutils.
31726         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
31727         to be const, in order to avoid warnings.
31728         (obstack_room): Likewise.
31729         (obstack_empty_p): Likewise.
31730
31731 2003-03-14  Bruno Haible  <bruno@clisp.org>
31732
31733         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
31734         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
31735
31736 2003-03-13  Paul Eggert  <eggert@twinsun.com>
31737
31738         Merge changes from Bison.
31739         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
31740         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
31741         when compiling Bison 1.875's `bitset bset = obstack_alloc
31742         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
31743         * lib/hash.c: Include <stdbool.h> unconditionally.
31744
31745 2003-03-13  Paul Eggert  <eggert@twinsun.com>
31746
31747         * m4/onceonly.m4 (m4_quote): New macro.
31748         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
31749         Quote AC_FOREACH variable-expansions properly.
31750
31751 2003-03-13  Paul Eggert  <eggert@twinsun.com>
31752
31753         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
31754
31755 2003-03-09  Paul Eggert  <eggert@twinsun.com>
31756
31757         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
31758         Reported by Bruce Becker; see:
31759         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
31760
31761 2003-03-03  Paul Eggert  <eggert@twinsun.com>
31762             Bruno Haible  <bruno@clisp.org>
31763
31764         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
31765         Reported by John Hughes, see
31766         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
31767
31768 2003-02-20  Bruno Haible  <bruno@clisp.org>
31769
31770         * MODULES.html.sh (func_all_modules): Add poll.
31771
31772 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
31773
31774         * modules/poll: New file.
31775
31776 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
31777
31778         * lib/poll_.h: New file.
31779         * lib/poll.c: New file.
31780
31781 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
31782
31783         * m4/poll.m4: New file.
31784
31785 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
31786
31787         * modules/mathl: New file.
31788
31789 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
31790
31791         * lib/mathl.h: New file.
31792         * lib/acosl.c: New file.
31793         * lib/asinl.c: New file.
31794         * lib/atanl.c: New file.
31795         * lib/ceill.c: New file.
31796         * lib/cosl.c: New file.
31797         * lib/expl.c: New file.
31798         * lib/floorl.c: New file.
31799         * lib/frexpl.c: New file.
31800         * lib/ldexpl.c: New file.
31801         * lib/logl.c: New file.
31802         * lib/sincosl.c: New file.
31803         * lib/sinl.c: New file.
31804         * lib/sqrtl.c: New file.
31805         * lib/tanl.c: New file.
31806         * lib/trigl.c: New file.
31807         * lib/trigl.h: New file.
31808
31809 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
31810
31811         * m4/mathl.m4: New file.
31812
31813 2003-02-18  Bruno Haible  <bruno@clisp.org>
31814
31815         * MODULES.html.sh (func_all_modules): Add mathl.
31816
31817 2003-02-17  Bruno Haible  <bruno@clisp.org>
31818
31819         * modules/mkdtemp: New module.
31820         * MODULES.html.sh (func_all_modules): Add it.
31821
31822 2003-02-17  Bruno Haible  <bruno@clisp.org>
31823
31824         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
31825
31826 2003-02-17  Bruno Haible  <bruno@clisp.org>
31827
31828         * lib/mkdtemp.h: New file, from GNU gettext.
31829         * lib/mkdtemp.c: New file, from GNU gettext.
31830
31831 2003-02-02  Jim Meyering  <jim@meyering.net>
31832
31833         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
31834         e.g. glibc-2.2.93.
31835
31836 2003-01-31  Bruno Haible  <bruno@clisp.org>
31837
31838         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
31839         'rpl_rename'.
31840         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
31841         'rpl_strnlen'.
31842         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
31843         'rpl_strtod'.
31844         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
31845         'rpl_utime'.
31846
31847 2003-01-31  Bruno Haible  <bruno@clisp.org>
31848
31849         * lib/rename.c: #undef rename before defining rpl_rename.
31850         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
31851
31852 2003-01-30  Bruno Haible  <bruno@clisp.org>
31853
31854         * modules/vasnprintf, modules/vasprintf: New modules.
31855         * MODULES.html.sh (func_all_modules): Add them.
31856
31857 2003-01-30  Bruno Haible  <bruno@clisp.org>
31858
31859         * m4/signed.m4: New file, from GNU gettext.
31860         * m4/longdouble.m4: New file, from GNU gettext.
31861         * m4/wchar_t.m4: New file, from GNU gettext.
31862         * m4/wint_t.m4: New file, from GNU gettext.
31863         * m4/vasnprintf.m4: New file.
31864         * m4/vasprintf.m4: New file.
31865
31866 2003-01-30  Bruno Haible  <bruno@clisp.org>
31867
31868         * lib/printf-args.h: New file, from GNU gettext.
31869         * lib/printf-args.c: New file, from GNU gettext.
31870         * lib/printf-parse.h: New file, from GNU gettext.
31871         * lib/printf-parse.c: New file, from GNU gettext.
31872         * lib/vasnprintf.h: New file, from GNU gettext.
31873         * lib/vasnprintf.c: New file, from GNU gettext.
31874         * lib/asnprintf.c: New file, from GNU gettext.
31875         * lib/vasprintf.h: New file, from GNU gettext with modifications.
31876         * lib/vasprintf.c: New file, from GNU gettext.
31877         * lib/asprintf.c: New file, from GNU gettext.
31878
31879 2003-01-29  Bruno Haible  <bruno@clisp.org>
31880
31881         * modules/stpncpy: New module.
31882         * MODULES.html.sh (func_all_modules): Add it.
31883
31884 2003-01-29  Bruno Haible  <bruno@clisp.org>
31885
31886         * m4/stpncpy.m4: New file.
31887
31888 2003-01-29  Bruno Haible  <bruno@clisp.org>
31889
31890         * lib/stpncpy.h: New file, from GNU gettext with modifications.
31891         * lib/stpncpy.c: New file, from GNU gettext with modifications.
31892
31893 2003-01-28  Bruno Haible  <bruno@clisp.org>
31894
31895         * modules/c-ctype: New module.
31896         * MODULES.html.sh (func_all_modules): Add it.
31897
31898 2003-01-28  Bruno Haible  <bruno@clisp.org>
31899
31900         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
31901         Paul Eggert.
31902         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
31903         Paul Eggert.
31904
31905 2003-01-27  Bruno Haible  <bruno@clisp.org>
31906
31907         * modules/xsetenv: New module.
31908         * MODULES.html.sh (func_all_modules): Add it.
31909
31910 2003-01-27  Bruno Haible  <bruno@clisp.org>
31911
31912         * lib/xsetenv.h: New file, from GNU gettext.
31913         * lib/xsetenv.c: New file, from GNU gettext.
31914
31915 2003-01-23  Jim Meyering  <jim@meyering.net>
31916
31917         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
31918         from working on systems without dirfd (at least Irix and OSF1/Tru64).
31919
31920 2003-01-23  Bruno Haible  <bruno@clisp.org>
31921
31922         * modules/minmax: New module.
31923         * MODULES.html.sh (func_all_modules): Add it.
31924
31925 2003-01-23  Bruno Haible  <bruno@clisp.org>
31926
31927         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
31928         Eggert.
31929
31930 2003-01-22  Bruno Haible  <bruno@clisp.org>
31931
31932         * modules/exit: New module.
31933         * MODULES.html.sh (func_all_modules): Add it.
31934
31935 2003-01-22  Bruno Haible  <bruno@clisp.org>
31936
31937         * lib/exit.h: New file, from GNU gettext.
31938
31939 2003-01-19  Bruno Haible  <bruno@clisp.org>
31940
31941         * gnulib-tool: Recognize option --extract-maintainer.
31942         (func_get_maintainer): New function.
31943         * modules/*: Add Maintainer entry.
31944
31945 2003-01-16  Jim Meyering  <jim@meyering.net>
31946
31947         * m4/regex.m4: The `regex' struct is both input and output.
31948         Initialize it before each use.  Patch by Tim Waugh.
31949
31950 2003-01-16  Bruno Haible  <bruno@clisp.org>
31951
31952         * MODULES.html.sh: Add a table of contents. Add the module name as
31953         leftmost column. Add hyperlinks.
31954
31955 2003-01-15  Bruno Haible  <bruno@clisp.org>
31956
31957         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
31958
31959 2003-01-15  Bruno Haible  <bruno@clisp.org>
31960
31961         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
31962         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
31963         suffix.
31964
31965 2003-01-15  Bruno Haible  <bruno@clisp.org>
31966
31967         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
31968
31969 2003-01-15  Bruno Haible  <bruno@clisp.org>
31970
31971         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
31972         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
31973
31974 2003-01-14  Jim Meyering  <jim@meyering.net>
31975
31976         * lib/same.c (same_name): Tweak a comment.
31977
31978 2003-01-14  Bruno Haible  <bruno@clisp.org>
31979
31980         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
31981         when a string comparison is sufficient.
31982
31983 2003-01-14  Bruno Haible  <bruno@clisp.org>
31984
31985         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
31986         'unsigned int'.
31987
31988 2003-01-14  Bruno Haible  <bruno@clisp.org>
31989
31990         * lib/hash-pjw.c: Add comment about low quality of this function.
31991
31992 2003-01-13  Bruno Haible  <bruno@clisp.org>
31993
31994         * modules/stpcpy: Distribute lib/stpcpy.h.
31995         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
31996
31997 2003-01-13  Bruno Haible  <bruno@clisp.org>
31998
31999         * modules/*: Add a description.
32000         * modules/strpbrk: Fix Makefile.am snippet.
32001         * modules/strtoimax: Fix dependencies.
32002         * modules/strtoumax: Likewise.
32003
32004 2003-01-13  Bruno Haible  <bruno@clisp.org>
32005
32006         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
32007         * modules/alloca (Makefile.am): All object files depend on alloca.h.
32008         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
32009
32010 2003-01-13  Bruno Haible  <bruno@clisp.org>
32011
32012         * gnulib-tool (func_create_testdir): Store config/* files in the main
32013         directory.
32014         * config.rpath: Move to ...
32015         * config/config.rpath: ... here.
32016         * modules/gettext: Contains config/config.rpath, not config.rpath.
32017         * modules/iconv: Likewise.
32018
32019 2003-01-12  Paul Eggert  <eggert@twinsun.com>
32020
32021         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
32022         to avoid collisions with libcurses and libreadline.
32023
32024         * m4/getstr.m4: Remove.
32025         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
32026
32027 2003-01-12  Paul Eggert  <eggert@twinsun.com>
32028
32029         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
32030         to avoid collisions with libcurses and libreadline.
32031
32032         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
32033         * lib/getstr.h, getstr.c: Remove.
32034         * lib/getline.c: Include "getline.h", to check interface.
32035         Move body of old getstr.c here: this defines MIN_CHUNK and
32036         declares getdelim2, which is renamed from getstr.
32037         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
32038
32039         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
32040         All uses changed.
32041         * lib/linebuffer.h: Likewise.
32042         (readline): Remove backward-compatibility macro.
32043
32044 2003-01-12  Paul Eggert  <eggert@twinsun.com>
32045
32046         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
32047         to avoid collisions with libcurses and libreadline.
32048         * getstr: Remove.
32049         * MODULES.html.sh: Remove getstr.
32050         * modules/getline: Depend on unlocked-io, not getstr.
32051
32052 2003-01-12  Jim Meyering  <jim@meyering.net>
32053
32054         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
32055
32056 2003-01-10  Bruno Haible  <bruno@clisp.org>
32057
32058         * modules/alloca: Change Makefile.am requirements. Simplify Include
32059         requirements. Add lib/alloca_.h to file list.
32060
32061 2003-01-10  Bruno Haible  <bruno@clisp.org>
32062
32063         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
32064
32065 2003-01-10  Bruno Haible  <bruno@clisp.org>
32066
32067         * lib/alloca_.h: New file.
32068         * lib/getdate.y: Unconditionally include alloca.h.
32069         * lib/makepath.c: Likewise.
32070         * lib/setenv.c: Likewise.
32071         * lib/userspec.c: Likewise.
32072
32073 2003-01-09  Karl Berry  <karl@gnu.org>
32074
32075         * MODULES.html.sh: include `dirname $0` in PATH, to find
32076         gnulib-tool.
32077
32078 2003-01-09  Bruno Haible  <bruno@clisp.org>
32079
32080         * modules/stdbool: Change configure.ac, Makefile.am requirements.
32081         Simplify Include requirements. Add lib/stdbool.h.in to file list.
32082
32083 2003-01-09  Bruno Haible  <bruno@clisp.org>
32084
32085         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
32086
32087 2003-01-09  Bruno Haible  <bruno@clisp.org>
32088
32089         * lib/stdbool.h.in: New file.
32090
32091 2003-01-09  Bruno Haible  <bruno@clisp.org>
32092
32093         * gnulib-tool (func_all_modules): Ignore files ending in ~.
32094         * MODULES.html.sh: Likewise.
32095
32096 2003-01-08  Jim Meyering  <jim@meyering.net>
32097
32098         * lib/full-write.c: Undefine and define-away `const' after inclusion
32099         of errno.h, not before.  Suggestion from Bruno Haible.
32100
32101 2003-01-08  Bruno Haible  <bruno@clisp.org>
32102
32103         * modules/full-read: Depend on full-write.
32104
32105 2003-01-08  Bruno Haible  <bruno@clisp.org>
32106
32107         * lib/safe-read.c: Include specification header first, to ensure its
32108         selfcontainedness.
32109         * lib/full-write.c: Likewise.
32110
32111 2003-01-07  Jim Meyering  <jim@meyering.net>
32112
32113         * lib/full-write.c: Rework so that it may serve to define full_read,
32114         too.
32115         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
32116
32117 2003-01-07  Bruno Haible  <bruno@clisp.org>
32118
32119         * lib/strtoimax.c: Include <stdint.h> as an alternative to
32120         <inttypes.h>.
32121         * lib/xstrtol.h: Likewise.
32122         * lib/xstrtoimax.c: Likewise.
32123         * lib/xstrtoumax.c: Likewise.
32124         * lib/human.h: Likewise.
32125
32126         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
32127         on systems that have <inttypes.h> but not <stdint.h>.
32128
32129 2003-01-07  Bruno Haible  <bruno@clisp.org>
32130
32131         * MODULES.html.sh: Add copyright notice.
32132         (missed_files): Omit CVS directory entries.
32133         (func_module): Make it work with sed-3.02.
32134         * MODULES.txt: Remove file.
32135
32136 2003-01-06  Jim Meyering  <jim@meyering.net>
32137
32138         * lib/version-etc.c: Update year in translatable copyright string.
32139
32140 2003-01-03  Karl Berry  <karl@gnu.org>
32141
32142         * config/config.{guess,sub}: update from prep.
32143
32144 2003-01-02  Karl Berry  <karl@gnu.org>
32145
32146         * doc/COPYING.DOC: belatedly updated to 1.2.
32147
32148 2003-01-01  Karl Berry  <karl@gnu.org>
32149
32150         * gnulib-tool (func_verify_module): report module name $module in
32151         error message, not $1.
32152         * gnulib-tool (create-testdir): don't complain if destdir couldn't
32153         be created, only if it doesn't exist.
32154         * gnulib-tool (last_checkin_date): don't expand the $Date here.
32155
32156 2002-12-31  Paul Eggert  <eggert@twinsun.com>
32157
32158         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
32159
32160 2002-12-31  Paul Eggert  <eggert@twinsun.com>
32161
32162         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
32163         memcmp if strcoll doesn't work.
32164
32165 2002-12-31  Bruno Haible  <bruno@clisp.org>
32166
32167         * lib/utime.c (utime_null): No need to call ftruncate if the file was
32168         nonempty.
32169
32170 2002-12-31  Bruno Haible  <bruno@clisp.org>
32171
32172         * lib/memcoll.c (STRCOLL): New macro.
32173         (memcoll): Use it.
32174
32175 2002-12-31  Bruno Haible  <bruno@clisp.org>
32176
32177         * lib/localcharset.h: New file.
32178         * lib/localcharset.c: Include it.
32179         * lib/unicodeio.c: Likewise.
32180
32181 2002-12-31  Bruno Haible  <bruno@clisp.org>
32182
32183         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
32184         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
32185
32186 2002-12-31  Bruno Haible  <bruno@clisp.org>
32187
32188         * lib/getline.h: Include <stddef.h>, for size_t.
32189
32190         * lib/unicodeio.h: Include <stddef.h>, for size_t.
32191         * lib/unicodeio.c: Don't include <stddef.h>.
32192
32193 2002-12-31  Bruno Haible  <bruno@clisp.org>
32194
32195         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
32196         HAVE_TM_ZONE.
32197
32198 2002-12-24  Karl Berry  <karl@gnu.org>
32199
32200         * config/config.guess: update from prep.
32201
32202 2002-12-24  Bruno Haible  <bruno@clisp.org>
32203
32204         General infrasructure.
32205         * m4/README: Rewritten.
32206         * m4/onceonly.m4: New file.
32207         * m4/onceonly_2_57.m4: New file.
32208
32209         Module atexit.
32210         * m4/atexit.m4: New file.
32211
32212         Module strtod.
32213         * m4/strtod.m4: New file.
32214
32215         Module strtol.
32216         * m4/strtol.m4: New file.
32217
32218         Module strtoul.
32219         * m4/strtoul.m4: New file.
32220
32221         Module memchr.
32222         * m4/memchr.m4: New file.
32223
32224         Module memcmp.
32225         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
32226         (jm_FUNC_MEMCMP): Invoke it.
32227
32228         Module memcpy.
32229         * m4/memcpy.m4: New file.
32230
32231         Module memmove.
32232         * m4/memmove.m4: New file.
32233
32234         Module memset.
32235         * m4/memset.m4: New file.
32236
32237         Module strcspn.
32238         * m4/strcspn.m4: New file.
32239
32240         Module strpbrk.
32241         * m4/strpbrk.m4: New file.
32242
32243         Module strstr.
32244         * m4/strstr.m4: New file.
32245
32246         Module strerror.
32247         * m4/strerror.m4: New file.
32248
32249         Module mktime.
32250         * m4/mktime.m4: Renamed from jm-mktime.m4.
32251         (gl_PREREQ_MKTIME): New macro.
32252         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
32253
32254         Module malloc.
32255         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
32256         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
32257         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
32258
32259         Module realloc.
32260         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
32261         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
32262         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
32263
32264         Module strftime.
32265         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
32266         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
32267         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
32268         gl_TM_GMTOFF.
32269         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
32270
32271         Module xalloc.
32272         * m4/xalloc.m4: New file.
32273
32274         Module alloca.
32275         * m4/alloca.m4: New file.
32276
32277         Module putenv.
32278         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
32279         (jm_FUNC_PUTENV): Invoke it.
32280
32281         Module setenv.
32282         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
32283         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
32284         when invoked twice.
32285         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
32286         gt_FUNC_SETENV.
32287
32288         Module memrchr.
32289         * m4/memrchr.m4: New file.
32290
32291         Module stpcpy.
32292         * m4/stpcpy.m4: New file.
32293
32294         Module strcase.
32295         * m4/strcase.m4: New file.
32296
32297         Module strdup.
32298         * m4/strdup.m4: New file.
32299
32300         Module strnlen.
32301         * m4/strnlen.m4: New file.
32302
32303         Module strndup.
32304         * m4/strndup.m4: New file.
32305
32306         Module xstrtod.
32307         * m4/xstrtod.m4: New file.
32308
32309         Module xstrtol.
32310         * m4/xstrtol.m4: New file.
32311
32312         Module getdate.
32313         * m4/getdate.m4: New file.
32314
32315         Module unlocked-io.
32316         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
32317         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
32318         * m4/jm-glibc-io.m4n: Remove file.
32319
32320         Module long-options.
32321         * m4/long-options.m4: New file.
32322
32323         Module md5.
32324         * m4/md5.m4: New file.
32325
32326         Module sha.
32327         * m4/sha.m4: New file.
32328
32329         Module getstr.
32330         * m4/getstr.m4: New file.
32331
32332         Module getline.
32333         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
32334         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
32335         <sys/types.h>, for size_t. Use the function name gnu_getline, not
32336         simply getline. Infoke gl_PREREQ_GETLINE.
32337
32338         Module obstack.
32339         * m4/obstack.m4: New file.
32340
32341         Module hash.
32342         * m4/hash.m4: New file.
32343
32344         Module readtokens.
32345         * m4/readtokens.m4: New file.
32346
32347         Module strverscmp.
32348         * m4/strverscmp.m4: New file.
32349
32350         Module stdbool.
32351         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
32352         OSF/1.
32353
32354         Module strtoll.
32355         * m4/strtoll.m4: New file.
32356
32357         Module strtoull.
32358         * m4/strtoull.m4: New file.
32359
32360         Module strtoimax.
32361         * m4/strtoimax.m4: New file.
32362
32363         Module strtoumax.
32364         * m4/strtoumax.m4: New file.
32365
32366         Module xstrtoimax.
32367         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
32368         jm_AC_PREREQ_XSTRTOIMAX.
32369         Moved the strtol prerequisites to strtol.m4.
32370         Moved the strtoll prerequisites to strtoll.m4.
32371         Moved the strtoimax prerequisites to strtoimax.m4.
32372
32373         Module xstrtoumax.
32374         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
32375         jm_AC_PREREQ_XSTRTOUMAX.
32376         Moved the strtoul prerequisites to strtoul.m4.
32377         Moved the strtoull prerequisites to strtoull.m4.
32378         Moved the strtoumax prerequisites to strtoumax.m4.
32379
32380         Module chown.
32381         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
32382         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
32383
32384         Module dup2.
32385         * m4/dup2.m4: New file.
32386
32387         Module ftruncate.
32388         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
32389         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
32390
32391         Module getgroups.
32392         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
32393         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
32394
32395         Module gettimeofday.
32396         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
32397         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
32398         gl_PREREQ_GETTIMEOFDAY.
32399
32400         Module mkdir.
32401         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
32402         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
32403
32404         Module mkstemp.
32405         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
32406         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
32407         jm_AC_TYPE_UINTMAX_T.
32408         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
32409
32410         Module stat.
32411         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
32412         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
32413
32414         Module lstat.
32415         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
32416         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
32417
32418         Module timespec.
32419         * m4/timespec.m4 (gl_TIMESPEC): New macro.
32420         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
32421         * m4/st_mtim.m4: Indentation.
32422
32423         Module nanosleep.
32424         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
32425         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
32426         gl_PREREQ_NANOSLEEP.
32427
32428         Module regex.
32429         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
32430         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
32431         (gl_REGEX): New macro.
32432
32433         Module rename.
32434         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
32435         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
32436
32437         Module rmdir.
32438         * m4/rmdir.m4: New file.
32439
32440         Module utime.
32441         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
32442         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
32443         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
32444
32445         Module dirname.
32446         * m4/dirname.m4: New file.
32447
32448         Module getopt.
32449         * m4/getopt.m4: New file.
32450
32451         Module unistd-safer.
32452         * m4/unistd-safer.m4: New file.
32453
32454         Module fnmatch.
32455         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
32456         declaration.
32457         (gl_PREREQ_FNMATCH_EXTRA): New macro.
32458         (gl_FUNC_FNMATCH_POSIX): New macro.
32459         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
32460         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
32461         simply fnmatch.
32462
32463         Module exclude.
32464         * m4/exclude.m4: New file.
32465
32466         Module human.
32467         * m4/human.m4: New file.
32468
32469         Module acl.
32470         * m4/acl.m4: Nop.
32471
32472         Module backupfile.
32473         * m4/backupfile.m4: New file.
32474         * m4/d-ino.m4: Indentation.
32475
32476         Module fsusage.
32477         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
32478         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
32479         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
32480
32481         Module dirfd.
32482         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
32483         requirements.
32484
32485         Module euidaccess.
32486         * m4/euidaccess.m4: New file.
32487
32488         Module file-type.
32489         * m4/file-type.m4: New file.
32490
32491         Module fileblocks.
32492         * m4/fileblocks.m4: New file.
32493
32494         Module filemode.
32495         * m4/filemode.m4: New file.
32496
32497         Module isdir.
32498         * m4/isdir.m4: New file.
32499
32500         Module lchown.
32501         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
32502         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
32503
32504         Module makepath.
32505         * m4/makepath.m4: New file.
32506
32507         Module modechange.
32508         * m4/modechange.m4: New file.
32509
32510         Module mountlist.
32511         * m4/mountlist.m4: New file.
32512         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
32513         Indentation.
32514
32515         Module path-concat.
32516         * m4/path-concat.m4: New file.
32517
32518         Module pathmax.
32519         * m4/pathmax.m4: New file.
32520
32521         Module same.
32522         * m4/same.m4: New file.
32523
32524         Module save-cwd.
32525         * m4/save-cwd.m4: New file.
32526
32527         Module savedir.
32528         * m4/savedir.m4: New file.
32529
32530         Module xgetcwd.
32531         * m4/xgetcwd.m4: New file.
32532         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
32533
32534         Module xreadlink.
32535         * m4/xreadlink.m4: New file.
32536
32537         Module safe-read.
32538         * m4/safe-read.m4: New file.
32539
32540         Module safe-write.
32541         * m4/safe-write.m4: New file.
32542
32543         Module closeout.
32544         * m4/closeout.m4: New file.
32545
32546         Module stdio-safer.
32547         * m4/stdio-safer.m4: New file.
32548
32549         Module getpass.
32550         * m4/getpass.m4: New file.
32551
32552         Module getugroups.
32553         * m4/getugroups.m4: New file.
32554
32555         Module group-member.
32556         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
32557         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
32558
32559         Module idcache.
32560         * m4/idcache.m4: New file.
32561
32562         Module userspec.
32563         * m4/userspec.m4: New file.
32564
32565         Module gettime.
32566         * m4/clock_time.m4: New file.
32567         * m4/gettime.m4: New file.
32568
32569         Module settime.
32570         * m4/settime.m4: New file.
32571
32572         Module posixtm.
32573         * m4/posixtm.m4: New file.
32574
32575         Module gethostname.
32576         * m4/gethostname.m4: New file.
32577
32578         Module canon-host.
32579         * m4/canon-host.m4: New file.
32580
32581         Module gettext.
32582         * m4/codeset.m4: New file, from gettext-0.11.5.
32583         * m4/gettext.m4: New file, from gettext-0.11.5.
32584         * m4/glibc21.m4: New file, from gettext-0.11.5.
32585         * m4/iconv.m4: New file, from gettext-0.11.5.
32586         * m4/intdiv0.m4: New file, from gettext-0.11.5.
32587         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
32588         * m4/inttypes.m4: New file, from gettext-0.11.5.
32589         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
32590         * m4/isc-posix.m4: New file, from gettext-0.11.5.
32591         * m4/lcmessage.m4: New file, from gettext-0.11.5.
32592         * m4/lib-ld.m4: New file, from gettext-0.11.5.
32593         * m4/lib-link.m4: New file, from gettext-0.11.5.
32594         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
32595         * m4/progtest.m4: New file, from gettext-0.11.5.
32596         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
32597         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
32598         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
32599
32600         Module localcharset.
32601         * m4/localcharset.m4: New file.
32602
32603         Module hard-locale.
32604         * m4/hard-locale.m4: New file.
32605
32606         Module mbswidth.
32607         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
32608         onceonly macros.
32609         * m4/mbrtowc.m4: Add comment.
32610
32611         Module memcasecmp.
32612         * m4/memcasecmp.m4: New file.
32613
32614         Module memcoll.
32615         * m4/memcoll.m4: New file.
32616
32617         Module unicodeio.
32618         * m4/unicodeio.m4: New file.
32619
32620         Module rpmatch.
32621         * m4/rpmatch.m4: New file.
32622
32623         Module yesno.
32624         * m4/yesno.m4: New file.
32625
32626         Module exitfail.
32627         * m4/exitfail.m4: New file.
32628
32629         Module c-stack.
32630         * m4/c-stack.m4 (gl_C_STACK): New macro.
32631         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
32632
32633         Module error.
32634         * m4/error.m4 (gl_ERROR): New macro.
32635         (jm_PREREQ_ERROR): Use onceonly macros.
32636
32637         Module fatal.
32638         * m4/fatal.m4: New file.
32639
32640         Module getloadavg.
32641         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
32642         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
32643
32644         Module getpagesize.
32645         * m4/getpagesize.m4: New file.
32646
32647         Module getusershell.
32648         * m4/getusershell.m4: New file.
32649
32650         Module physmem.
32651         * m4/physmem.m4: New file.
32652
32653         Module posixver.
32654         * m4/posixver.m4: New file.
32655
32656         Module quotearg.
32657         * m4/quotearg.m4: New file.
32658
32659         Module quote.
32660         * m4/quote.m4: New file.
32661
32662         Module readutmp.
32663         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
32664
32665         Module sig2str.
32666         * m4/sig2str.m4: New file.
32667
32668         Other.
32669         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
32670         ulonglong.m4.
32671         * m4/intmax_t.m4: New file.
32672         * m4/d-type.m4: Indentation.
32673         * m4/jm-macros.m4: Update.
32674         * m4/prereq.m4 (jm_PREREQ): Update.
32675         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
32676         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
32677         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
32678         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
32679         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
32680         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
32681         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
32682         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
32683         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
32684         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
32685         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
32686         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
32687         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
32688         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
32689         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
32690         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
32691         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
32692         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
32693         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
32694
32695 2002-12-24  Bruno Haible  <bruno@clisp.org>
32696
32697         * MODULES.txt: Update according to m4/ changes.
32698
32699         Module gettext.
32700         * config.rpath: New file, from gettext-0.11.5.
32701
32702         * modules/*: New module descriptions.
32703         * gnulib-tool: New file.
32704         * MODULES.html.sh: New file.
32705
32706 2002-12-21  Karl Berry  <karl@gnu.org>
32707
32708         * doc/fdl.texi: update to version 1.2.
32709
32710 2002-12-19  Karl Berry  <karl@gnu.org>
32711
32712         * config/config.guess: update from prep.
32713
32714 2002-12-18  Bruno Haible  <bruno@clisp.org>
32715
32716         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
32717         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
32718
32719 2002-12-17  Bruno Haible  <bruno@clisp.org>
32720
32721         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
32722         stdlib.h, string.h.
32723
32724 2002-12-17  Bruno Haible  <bruno@clisp.org>
32725
32726         * lib/canon-host.c (strdup): Remove unused declaration.
32727
32728         * lib/fsusage.c: Include full_read.h.
32729         (get_fs_usage): Use full_read instead of safe_read.
32730
32731         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
32732
32733 2002-12-12  Karl Berry  <karl@gnu.org>
32734
32735         * config/config.guess: update from prep.
32736
32737 2002-12-11  Bruno Haible  <bruno@clisp.org>
32738
32739         * m4/setenv.m4: New file, from gettext-0.11.5.
32740
32741 2002-12-11  Bruno Haible  <bruno@clisp.org>
32742
32743         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
32744         not unsetenv().
32745         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
32746         modifications:
32747
32748         2002-12-11  Bruno Haible  <bruno@clisp.org>
32749
32750                 * setenv.c (alloca): Fall back to malloc.
32751                 (freea): New macro.
32752                 (setenv): Use freea() to free memory allocated with alloca().
32753
32754         2002-11-13  Bruno Haible  <bruno@clisp.org>
32755
32756                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
32757                 function declarations.
32758                 * unsetenv.c (unsetenv): Likewise.
32759
32760         2002-03-04  Bruno Haible  <bruno@clisp.org>
32761
32762                 Portability to AIX 4.3.3.
32763                 * unsetenv.c: New file, extracted from setenv.c.
32764                 * setenv.c: Move the unsetenv() function to unsetenv.c.
32765
32766         2001-12-20  Bruno Haible  <bruno@clisp.org>
32767
32768                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
32769                 use malloc instead. For SunOS 4.
32770
32771         2001-12-11  Bruno Haible  <bruno@clisp.org>
32772
32773                 * setenv.c: Declare alloca.
32774                 (compar_fn_t): New typedef.
32775                 (KNOWN_VALUE, STORE_VALUE): Use it.
32776
32777         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
32778         setenv.h.
32779
32780 2002-12-10  Paul Eggert  <eggert@twinsun.com>
32781
32782         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
32783         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
32784         Choose values that are less likely to collide with system fnmatch
32785         options.
32786         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
32787         defined (e.g., a pure POSIX system).
32788         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
32789         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
32790
32791 2002-12-06  Paul Eggert  <eggert@twinsun.com>
32792
32793         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
32794         a pain in practice to deal with generated m4 files.  This change
32795         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
32796
32797         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
32798         and jm-glibc-io.m4, as they are no longer a special case.
32799         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
32800         kludge and the auto-generation stuff.  Check only whether the
32801         functions are declared, not whether they exist, since older hosts
32802         that don't declare the functions can't use the optimization anyway.
32803
32804 2002-12-06  Jim Meyering  <jim@meyering.net>
32805
32806         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
32807
32808         Merge in changes from libc's misc/error.c, in preparation
32809         for the merge of gnulib's changes back into libc.
32810
32811         * lib/error.c (_): Define only if not already defined.
32812         Move definition to follow all #include directives.
32813         Include unlocked-io.h only if !_LIBC.
32814         [_LIBC]: Include <libio/libioP.h>.
32815         [USE_IN_LIBIO]: Include <libio/iolibio.h>
32816         (fflush): Tweak definition to use INTUSE.
32817         (putc): Define.
32818
32819 2002-12-05  Paul Eggert  <eggert@twinsun.com>
32820
32821         * lib/alloca.c [defined emacs]: Include "lisp.h".
32822         (xalloc_die) [defined emacs]: New macro.
32823         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
32824         [! defined emacs]: Include <xalloc.h>.
32825         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
32826         (pointer): Typedef to POINTER_TYPE *.
32827         (malloc): Remove decl; we now always use xmalloc.
32828         (alloca): Use old-style definition, since Emacs needs this.
32829         Check for arithmetic overflow when computing combined size.
32830
32831 2002-12-04  Paul Eggert  <eggert@twinsun.com>
32832
32833         Do not generate unlocked-io.h automatically, since it's easier to
32834         maintain it by hand.
32835
32836         * lib/unlocked-io.h: New file, from GNU diffutils,
32837         but with proper copyright notice and attribution.
32838         * lib/gen-uio: Remove.
32839         * lib/Makefile.am: Add copyright notice.
32840         (libfetish_a_SOURCES): Add unlocked-io.h.
32841         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
32842         (DISTCLEANFILES, io_functions): Remove macros.
32843         (EXTRA_DIST): Remove gen_uio.
32844         (unlocked-io.h): Remove rule.
32845
32846 2002-12-04  Jim Meyering  <jim@meyering.net>
32847
32848         Reflect the fact that stat.c and lstat.c are no longer generated.
32849         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
32850         (DISTCLEANFILES): Likewise.
32851         (EXTRA_DIST): Likewise.
32852         (all_local): Don't depend on stat.c or lstat.c.
32853         (stat.c, lstat.c): Remove rules.
32854         (EXTRA_DIST): Remove xstat.in.
32855
32856         * lib/xstat.in: Remove file.  Contents moved into stat.c.
32857         * lib/stat.c: New file.  Contents mostly from xstat.in.
32858         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
32859         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
32860
32861         * lib/safe-read.c: Rework so that it may serve to define safe_write,
32862         too.
32863         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
32864
32865 2002-12-03  Jim Meyering  <jim@meyering.net>
32866
32867         * lib/safe-read.c, safe-write.c: Change variable names and comments,
32868         but not semantics, to minimize the differences between these two files.
32869         (safe_read): Change comment to mention SAFE_READ_ERROR.
32870
32871         * lib/safe-read.c (IS_EINTR): Define.
32872         (safe_read): Use IS_EINTR in place of in-function cpp directives.
32873
32874 2002-12-02  Jim Meyering  <jim@meyering.net>
32875
32876         * lib/safe-read.c (EINTR): Define.
32877         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
32878         (INT_MAX): Provide fallback.
32879         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
32880
32881         * lib/safe-read.h (SAFE_READ_ERROR): Define.
32882
32883 2002-12-02  Bruno Haible  <bruno@clisp.org>
32884
32885         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
32886         Define, taken from safe-read.c.
32887         (INT_MAX): Provide fallback.
32888         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
32889         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
32890
32891         * lib/safe-read.c (EINTR): Remove definition.
32892         (safe_read): Don't use EINTR if it is absent.
32893
32894 2002-12-01  Jim Meyering  <jim@meyering.net>
32895
32896         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
32897         zero.
32898         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
32899
32900 2002-11-27  Paul Eggert  <eggert@twinsun.com>
32901
32902         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
32903         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
32904         with `if (! (value < limit)) abort ();', for readability.
32905
32906 2002-11-26  Karl Berry  <karl@gnu.org>
32907
32908         * lib/strdup.c: copy from libc again, with jim's ok.
32909         * lib/.cppi-disable: re-add strdup.c
32910
32911 2002-11-25  Karl Berry  <karl@gnu.org>
32912
32913         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
32914         instead of "strtol.c".
32915
32916 2002-11-25  Karl Berry  <karl@gnu.org>
32917
32918         * config/install-sh: update from automake for variable quoting, $0 in
32919         error msgs, etc.
32920
32921         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
32922         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
32923         entry.
32924
32925 2002-11-25  Jim Meyering  <jim@meyering.net>
32926
32927         * lib/mktime.c: Sync from libc, now that it has the latest fix.
32928
32929 2002-11-24  Karl Berry  <karl@gnu.org>
32930
32931         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
32932         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
32933
32934 2002-11-24  Jim Meyering  <jim@meyering.net>
32935
32936         Update from coreutils:
32937
32938         * lib/mktime.c: Merge in changes from libc.
32939
32940         Avoid a link-time failure on some Linux systems.
32941         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
32942         (otherwise).
32943         (__mon_yday): Declare with the STATIC attribute.
32944         (__mktime_internal): Likewise.
32945         Based on a report from Greg Schafer.
32946
32947 2002-11-23  Jim Meyering  <jim@meyering.net>
32948
32949         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
32950         Use `unsigned', not `int', as type of index.
32951
32952         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
32953
32954         * lib/fsusage.c: Remove unneeded parentheses around operands of
32955         `defined'.
32956
32957 2002-11-22  Paul Eggert  <eggert@twinsun.com>
32958
32959         * lib/quotearg.h: Allow multiple inclusion by surrounding with
32960         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
32961         so that we can be included first.
32962         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
32963         * lib/quotearg.c: Include quotearg.h immediately after config.h.
32964         No need to include stddef.h or sys/types.h any more.
32965         Surround local include files with "", not "<>".
32966         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
32967         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
32968         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
32969         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
32970         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
32971         (ISPRINT): Remove; no longer needed now that we assume C89.
32972
32973         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
32974         Preserve errno.
32975
32976         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
32977         quotearg_char): Use SIZE_MAX rather than
32978         (size_t) -1 when we are talking about "infinity".
32979
32980         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
32981
32982 2002-11-22  Paul Eggert  <eggert@twinsun.com>
32983
32984         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
32985         hint that one should use `if (! x) abort ();' rather than `assert
32986         (x);', and anyway it's one less thing to worry about configuring.
32987         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
32988         hash_rehash, hash_insert): Use abort rather than assert.
32989
32990 2002-11-22  Bruno Haible  <bruno@clisp.org>
32991
32992         * lib/safe-read.h: Assume C89. Add comments.
32993         (safe_read): Change return type to size_t.
32994         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
32995         byte counts > SSIZE_MAX correctly.
32996         * lib/safe-write.h: New file.
32997         * lib/safe-write.c: New file.
32998         * lib/full-read.h: New file.
32999         * lib/full-read.c: New file.
33000         * lib/full-write.h: Assume C89. Add comments.
33001         * lib/full-write.c: Include safe-write.h.
33002         (full_write): Rewritten to use safe_write.
33003         Suggested by Jim Meyering and Paul Eggert.
33004
33005 2002-11-21  Jim Meyering  <jim@meyering.net>
33006
33007         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
33008
33009         Merge in changes from the coreutils.
33010
33011         2002-09-25  Paul Eggert  <eggert@twinsun.com>
33012         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
33013         <stdint.h>.
33014         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
33015         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
33016         int.  Work more efficiently if X is the same width as uintmax_t.
33017         Do not compare X to -1, to avoid bogus compiler warning.
33018         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
33019         Don't assume that f_frsize and f_bsize are the same type.
33020
33021         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
33022         warning on FreeBSD.
33023
33024         * lib/makepath.c (make_path): Restore umask *before* creating the final
33025         component.
33026         (make_path): Minor reformatting.
33027
33028         * lib/xmalloc.c: Adjust to work with new autoconf macros,
33029         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
33030         HAVE_MALLOC/HAVE_REALLOC.
33031
33032         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
33033         dummy ones.  At least on GNU/Linux systems, `auto' means something
33034         else.
33035         From Michael Stone.
33036
33037 2002-11-21  Bruno Haible  <bruno@clisp.org>
33038
33039         Remove case insensitive option matching.
33040         * lib/argmatch.h (argcasematch): Remove declaration.
33041         (ARGCASEMATCH): Remove macro.
33042         (__xargmatch_internal): Remove case_sensitive argument.
33043         (XARGMATCH): Update.
33044         (XARGCASEMATCH): Remove macro.
33045         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
33046         case_sensitive argument.
33047         (argcasematch): Remove function.
33048         (__xargmatch_internal): Remove case_sensitive argument.
33049         (main): Use XARGMATCH instead of XARGCASEMATCH.
33050
33051         * lib/xmalloc.c: Change compile-time error message. Add comment about
33052         required autoconf version.
33053
33054 2002-11-20  Paul Eggert  <eggert@twinsun.com>
33055
33056         Merge argmatch cleanups from Bison.  Assume C89.
33057
33058         * lib/argmatch.c: Include config.h here, not in argmatch.h.
33059         Include stdlib.h, for EXIT_FAILURE.
33060         Always include <string.h>, since we assume C89.
33061         (EXIT_FAILURE): Remove pre-C89 bug workaround.
33062         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
33063         Include <stddef.h> instead, since it's all we need for size_t.
33064         (PARAMS): Remove.  All uses removed.
33065         (ARRAY_CARDINALITY): Do not bother to #undef.
33066         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
33067         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
33068         Remove unnecessary parentheses.
33069         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
33070         Insert necessary parentheses.
33071         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
33072         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
33073
33074 2002-11-19  Bruno Haible  <bruno@clisp.org>
33075
33076         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
33077         * lib/mbswidth.h: Include <stddef.h>, for size_t.
33078
33079         * lib/mbswidth.h (PARAMS): Remove macro.
33080         (mbswidth, mbsnwidth): Use ANSI C function declarations.
33081         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
33082
33083         * lib/gcd.h (PARAMS): Remove macro.
33084         (gcd): Use ANSI C function declarations.
33085         * lib/gcd.c (gcd): Likewise.
33086
33087 2002-11-15  Bruno Haible  <bruno@clisp.org>
33088
33089         * lib/strcspn.c: Include <stddef.h>.
33090         (strcspn): Use ANSI C function declaration. Change return type to
33091         size_t. Use NULL.
33092         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
33093         (strpbrk): Use NULL.
33094         * lib/strpbrk.h (PARAMS): Remove macro.
33095         (strpbrk): Use ANSI C function declaration.
33096         * lib/strstr.c: Don't include <sys/types.h>.
33097         * lib/strstr.h (PARAMS): Remove macro.
33098         (strstr): Use ANSI C function declarations.
33099
33100 2002-11-14  Karl Berry  <karl@gnu.org>
33101
33102         * config/mkinstalldirs: `do' on separate line, instead of
33103         `for var; do'.
33104
33105 2002-11-06  Bruno Haible  <bruno@clisp.org>
33106
33107         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
33108         * lib/gcd.c (gcd): Likewise.
33109
33110 2002-11-05  Bruno Haible  <bruno@clisp.org>
33111
33112         * lib/gcd.h: New file, from gettext-0.11.5.
33113         * lib/gcd.c: New file, from gettext-0.11.5.
33114
33115 2002-11-05  Bruno Haible  <bruno@clisp.org>
33116
33117         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
33118         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
33119         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
33120         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
33121
33122         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
33123         <libintl.h>.
33124         * lib/makepath.c: Include gettext.h instead of <locale.h> and
33125         <libintl.h>.
33126
33127         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
33128         * lib/human.c: Include gettext.h instead of <libintl.h>.
33129         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
33130         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
33131         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
33132         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
33133         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
33134         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
33135         (textdomain): Remove definition.
33136         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
33137
33138         * lib/long-options.c: Remove include of <libintl.h> and definition of
33139         _.
33140         * lib/same.c: Remove include of <libintl.h> and definition of _.
33141
33142 2002-11-04  Owen Taylor  <otaylor@redhat.com>
33143
33144         * lib/config.charset: A few additions for Solaris.
33145
33146 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
33147
33148         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
33149         * lib/localcharset.c (locale_charset): Declare as extern "C".
33150
33151 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
33152
33153         * lib/config.charset: msdos in uk_UA uses CP1125.
33154
33155 2002-11-04  Bruno Haible  <bruno@clisp.org>
33156
33157         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
33158         * lib/strcase.h: New file, from GNU gettext-0.11.5.
33159         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
33160         * lib/strstr.h: New file, from GNU gettext-0.11.5.
33161         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
33162
33163 2002-11-04  Bruno Haible  <bruno@clisp.org>
33164
33165         * lib/localcharset.c (locale_charset): Don't return an empty string.
33166
33167 2002-11-04  Bruno Haible  <bruno@clisp.org>
33168
33169         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
33170         aliases.
33171
33172 2002-11-04  Bruno Haible  <bruno@clisp.org>
33173
33174         * lib/config.charset: Update for newest glibc. Add canonical names
33175         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
33176
33177 2002-11-04  Bruno Haible  <bruno@clisp.org>
33178
33179         * lib/config.charset: Add support for NetBSD.
33180
33181 2002-11-04  Bruno Haible  <bruno@clisp.org>
33182
33183         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
33184
33185 2002-11-01  Bruno Haible  <bruno@clisp.org>
33186
33187         * configure.in: Add AC_CONFIG_AUX_DIR call.
33188         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
33189         test/Makefile.
33190         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
33191
33192 2002-09-28  Karl Berry  <karl@gnu.org>
33193
33194         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
33195         installed automake until the next release, since changes have been
33196         made.
33197
33198 2002-09-25  Karl Berry  <karl@gnu.org>
33199
33200         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
33201         * lib/getopt*: copy from libc/posix.
33202         * lib/gettext.h: copy from gettext.
33203         * lib/.cppi-disable: add strdup.c, gettext.h.
33204
33205 2002-09-25  Karl Berry  <karl@gnu.org>
33206
33207         * config/srclist.txt: enable gettext.h check.
33208         * config/config.{guess,sub}: update from prep.
33209         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
33210                 from automake 1.6.3.
33211         See srclist*.
33212
33213 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
33214
33215         * regex.c (PATFETCH): Remove the translating fetch.
33216         (PATFETCH_RAW): Rename to PATFETCH.
33217         (set_image_of_range): New fun.
33218         (SET_RANGE_TABLE_WORK_AREA): Use it.
33219         (regex_compile): Don't translate the pattern chars so eagerly.
33220         Only do it when inserting an `exactn' bytecode or when handling
33221         a char-range.
33222         (mutually_exclusive_p): Avoid empty statement.
33223
33224 2002-07-06  Jim Meyering  <meyering@lucent.com>
33225
33226         * m4/README: Don't mention Makefile.am.in.
33227         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
33228
33229 2002-07-01  Jim Meyering  <meyering@lucent.com>
33230
33231         * lib/c-stack.c: Include sys/time.h.
33232         From Volker Borchert.
33233
33234 2002-06-26  Paul Eggert  <eggert@twinsun.com>
33235
33236         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
33237
33238 2002-06-26  Paul Eggert  <eggert@twinsun.com>
33239
33240         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
33241         New macro.  Use it uniformly instead of
33242         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
33243         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
33244         reported by Vin Shelton.
33245
33246 2002-06-22  Paul Eggert  <eggert@twinsun.com>
33247
33248         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
33249         Do not assume SA_SIGINFO behavior.
33250         Bug reported by Jim Meyering on NetBSD 1.5.2.
33251
33252 2002-06-22  Jim Meyering  <meyering@lucent.com>
33253
33254         * m4/c-stack.m4: New file, from diffutils-2.8.2.
33255         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
33256
33257         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
33258         now that configure.ac uses AC_GNU_SOURCE.
33259         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
33260         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
33261
33262         Update to latest tools.  Suggestions from Paul Eggert.
33263         * m4/stdbool.m4: New file, from diffutils-2.8.2.
33264         * m4/gnu-source.m4: Update from diffutils-2.8.2.
33265         * m4/fnmatch.m4: Likewise.
33266         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
33267         to AC_HEADER_STDBOOL
33268
33269 2002-06-22  Jim Meyering  <meyering@lucent.com>
33270
33271         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
33272         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
33273
33274 2002-06-22  Jim Meyering  <meyering@lucent.com>
33275
33276         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
33277
33278         * lib/exitfail.c, exitfail.h: Likewise.
33279         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
33280
33281         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
33282         of fnmatch.h.
33283         (EXTRA_DIST): Add fnmatch_loop.c.
33284         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
33285
33286         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
33287         * lib/fnmatch.c: Update from diffutils-2.8.2.
33288         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
33289         * lib/fnmatch.h: Remove file.
33290
33291 2002-06-21  Jim Meyering  <meyering@lucent.com>
33292
33293         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
33294         * m4/mbrtowc.m4: Likewise.
33295
33296         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
33297         * m4/mbswidth.m4: Reflect name change:
33298         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
33299         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
33300
33301         * m4/lib-link.m4: Update from gettext-0.11.2.
33302         * m4/gettext.m4: Likewise.
33303
33304         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
33305         From Alfred M. Szmidt.
33306
33307 2002-06-18  Paul Eggert  <eggert@twinsun.com>
33308
33309         * lib/file-type.h: Report an error if neither S_ISREG nor
33310         S_IFREG is defined, instead of using a test specific to glibc
33311         2.2.  This should be safe, since POSIX requires S_ISREG and
33312         Unix Version 7 had S_IFREG.  We don't need to check for
33313         <sys/types.h> since we don't use any symbols that it defines.
33314
33315 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
33316
33317         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
33318         $@-t, so that each temporary file name is unique and valid in the first
33319         8 characters, for operation under DOS.
33320
33321 2002-06-15  Paul Eggert  <eggert@twinsun.com>
33322
33323         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
33324
33325 2002-06-15  Jim Meyering  <meyering@lucent.com>
33326
33327         Work even with DJGPP 2.03, which lacks support for symlinks.
33328         From Richard Dawe.
33329         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
33330         is defined.
33331         * lib/lchown.c (S_ISLNK): Likewise.
33332
33333 2002-06-15  Jim Meyering  <meyering@lucent.com>
33334
33335         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
33336         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
33337         have been included before this file.
33338
33339 2002-06-14  Jim Meyering  <meyering@lucent.com>
33340
33341         * lib/file-type.h: Use the version from diffutils-2.8.2.
33342         * lib/file-type.c: Likewise.
33343
33344 2002-06-07  Jim Meyering  <meyering@lucent.com>
33345
33346         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
33347         They're needed at least for NetBSD 1.5.2.
33348         ($statxfs_includes): Include those same headers.
33349         ($statxfs_includes): Include sys/vfs.h if available.
33350         ($statxfs_includes): Likewise for sys/statvfs.h.
33351         Check for the following members in both structs statfs and statvfs:
33352         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
33353
33354 2002-06-01  Jim Meyering  <meyering@lucent.com>
33355
33356         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
33357         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
33358
33359 2002-05-28  Jim Meyering  <meyering@lucent.com>
33360
33361         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
33362         Reported by Volker Borchert.
33363
33364 2002-05-27  Jim Meyering  <meyering@lucent.com>
33365
33366         Fix a problem seen only on nonconforming systems whereby ls.c's
33367         use of localtime, and then of gettimeofday would cause trouble:
33368         the localtime call used to initialize rpl_gettimeofday's save
33369         mechanism would clobber ls's current local time information so
33370         that in any long listing the first file would always be listed
33371         with date 1970-01-01.  Analysis by Volker Borchert.
33372
33373         * lib/gettimeofday.c (localtime): Undefine.
33374         (rpl_localtime): New function.
33375
33376 2002-05-27  Jim Meyering  <meyering@lucent.com>
33377
33378         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
33379         localtime.
33380
33381         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
33382         use the replacement function; it wouldn't resolve at link time.
33383         Reported by Volker Borchert.
33384
33385 2002-05-22  Jim Meyering  <meyering@lucent.com>
33386
33387         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
33388         file-type.h.
33389         * lib/file-type.h: New file.
33390         * lib/file-type.c (file_type): New file/function.  Extracted from
33391         diffutils.
33392
33393 2002-04-30  Jim Meyering  <meyering@lucent.com>
33394
33395         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
33396
33397 2002-04-29  Paul Eggert  <eggert@twinsun.com>
33398
33399         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
33400
33401 2002-04-29  Paul Eggert  <eggert@twinsun.com>
33402
33403         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
33404         Do not check for alloca.h (no longer used) or stdbool.h (was never
33405         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
33406
33407 2002-04-29  Paul Eggert  <eggert@twinsun.com>
33408
33409         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
33410
33411 2002-04-29  Jim Meyering  <meyering@lucent.com>
33412
33413         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
33414         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
33415         Use AC_FUNC_STRNLEN here instead.
33416
33417         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
33418         With autoconf-2.53a, it's part of AC_PROG_CC.
33419
33420 2002-04-28  Paul Eggert  <eggert@twinsun.com>
33421
33422         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
33423         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
33424
33425 2002-04-28  Paul Eggert  <eggert@twinsun.com>
33426
33427         * lib/sig2str.h, lib/sig2str.c: New files.
33428         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
33429
33430 2002-04-28  Paul Eggert  <eggert@twinsun.com>
33431
33432         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
33433         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
33434         of 127, since 64 is the largest conceivable number for ancient
33435         nonstandard hosts.
33436         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
33437
33438 2002-04-28  Jim Meyering  <meyering@lucent.com>
33439
33440         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
33441
33442 2002-04-24  Jim Meyering  <meyering@lucent.com>
33443
33444         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
33445         (jm_PREREQ): Use it.
33446
33447         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
33448         mach/mach.h fcntl.h.
33449         Check for this function: setlocale.
33450
33451 2002-04-24  Jim Meyering  <meyering@lucent.com>
33452
33453         * lib/gettext.h: New file, from Gettext.
33454         * lib/Makefile.am (INCLUDES): Remove -I../intl.
33455         (libfetish_a_SOURCES): Add gettext.h.
33456
33457 2002-04-16  Jim Meyering  <meyering@lucent.com>
33458
33459         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
33460         ut_pid, ut_id, ut_exit.
33461
33462 2002-04-16  Jim Meyering  <meyering@lucent.com>
33463
33464         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
33465         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
33466         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
33467
33468 2002-04-12  Jim Meyering  <meyering@lucent.com>
33469
33470         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
33471         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
33472         existence of the getmntinfo function.  Needed for Darwin 5.3.
33473
33474         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
33475         This is necessary at least on Darwin 5.3.
33476
33477         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
33478         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
33479         strnlen.o in the library, and that makes some versions of ranlib
33480         object.
33481
33482 2002-04-12  Jim Meyering  <meyering@lucent.com>
33483
33484         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
33485
33486 2002-04-09  Jim Meyering  <meyering@lucent.com>
33487
33488         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
33489         to be more precise.  Rather than saying we're checking whether the
33490         function `works', say what we're testing.
33491         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
33492         Reported by Bruno Haible.
33493
33494 2002-03-10  Jim Meyering  <meyering@lucent.com>
33495
33496         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
33497         Suggestion from Santiago Vila.
33498
33499 2002-03-08  Jim Meyering  <meyering@lucent.com>
33500
33501         * lib/rename.c: Mention that this wrapper is needed also on
33502         mips-dec-ultrix4.4 systems.
33503
33504 2002-03-02  Jim Meyering  <meyering@lucent.com>
33505
33506         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
33507         not HAVE_CLOCK_SETTIME.
33508
33509 2002-02-27  Paul Eggert  <eggert@twinsun.com>
33510
33511         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
33512         Check for clock_settime.
33513
33514 2002-02-27  Paul Eggert  <eggert@twinsun.com>
33515
33516         * lib/nanosleep.h: Rename to....
33517         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
33518
33519         * lib/gettime.c: New file.
33520         * lib/settime.c: New file.
33521         * lib/stime.c: Remove.
33522
33523         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
33524         timespec.h.  Remove nanosleep.h.
33525
33526 2002-02-25  Paul Eggert  <eggert@twinsun.com>
33527
33528         * m4/acl.m4: New file.
33529         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
33530         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
33531
33532 2002-02-25  Paul Eggert  <eggert@twinsun.com>
33533
33534         * lib/acl.c, lib/acl.h: New files.
33535         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
33536
33537 2002-02-24  Jim Meyering  <meyering@lucent.com>
33538
33539         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
33540         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
33541         cause trouble.  Reported by Nelson Beebe.
33542
33543 2002-02-23  Paul Eggert  <eggert@twinsun.com>
33544
33545         * lib/path-concat.c (xpath_concat): Reorder code to pacify
33546         compilers that don't know that xalloc_die never returns.
33547
33548 2002-02-20  Jim Meyering  <meyering@lucent.com>
33549
33550         * lib/getdate.c: Regenerate using bison-1.33.
33551
33552 2002-02-17  Jim Meyering  <meyering@lucent.com>
33553
33554         * config/config.guess (main): Don't use `head -1'; it's no longer
33555         portable. Use `sed 1q' instead.
33556
33557 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
33558
33559         * m4/codeset.m4: Upgrade to gettext-0.11.
33560         * m4/gettext.m4: Upgrade to gettext-0.11.
33561         * m4/glibc21.m4: Upgrade to gettext-0.11.
33562         * m4/iconv.m4: Upgrade to gettext-0.11.
33563         * m4/isc-posix.m4: Upgrade to gettext-0.11.
33564         * m4/lcmessage.m4: Upgrade to gettext-0.11.
33565         * m4/lib-ld.m4: New file, from gettext-0.11.
33566         * m4/lib-link.m4: New file, from gettext-0.11.
33567         * m4/lib-prefix.m4: New file, from gettext-0.11.
33568         * m4/progtest.m4: Upgrade to gettext-0.11.
33569
33570 2002-02-15  Paul Eggert  <eggert@twinsun.com>
33571
33572         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
33573         (jm_PREREQ): Use it.
33574
33575 2002-02-15  Paul Eggert  <eggert@twinsun.com>
33576
33577         * lib/posixver.c, lib/posixver.h: New files.
33578         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
33579
33580 2002-02-02  Paul Eggert  <eggert@twinsun.com>
33581             Bruno Haible  <bruno@clisp.org>
33582
33583         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
33584         (fwrite_success_callback): New declaration.
33585         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
33586         print_unicode_char. Call failure callback instead of error.
33587         (fwrite_success_callback): New function.
33588         (exit_failure_callback): New function.
33589         (fallback_failure_callback): New function.
33590         (print_unicode_char): Call unicode_to_mb.
33591
33592 2002-01-26  Jim Meyering  <meyering@lucent.com>
33593
33594         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
33595         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
33596
33597 2002-01-26  Jim Meyering  <meyering@lucent.com>
33598
33599         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
33600
33601 2002-01-22  Paul Eggert  <eggert@twinsun.com>
33602
33603         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
33604
33605 2002-01-22  Jim Meyering  <meyering@lucent.com>
33606
33607         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
33608         Otherwise, some versions of automake would omit the rule that makes
33609         Makefile from Makefile.in.
33610
33611 2002-01-21  Paul Eggert  <eggert@twinsun.com>
33612
33613         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
33614         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
33615         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
33616         (memcoll): Set errno to zero if there is no error.
33617
33618         * lib/quotearg.c (quotearg_buffer_restyled):
33619         Fix bug with quoting buffers containing NUL when backslashing escapes.
33620         This bug was exposed by the other changes in this patch.
33621         (quotearg_n_options): New arg ARGSIZE.
33622         All callers changed.
33623         (quoting_options_from_style): New function.
33624         (quotearg_n_style): Use it.
33625         (quotearg_n_style_mem): New function.
33626
33627         * lib/quotearg.h (quotearg_n_style_mem): New function.
33628
33629 2002-01-19  Jim Meyering  <meyering@lucent.com>
33630
33631         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
33632         Remove useless quotes: DF_PROG="df".
33633         * m4/strnlen.m4: New file.
33634
33635 2002-01-16  Paul Eggert  <eggert@twinsun.com>
33636
33637         * lib/backupfile.c (ISDIGIT): Comment fix.
33638         * lib/getdate.y (ISDIGIT): Likewise.
33639         * lib/posixtm.c (ISDIGIT, year): Likewise.
33640         * lib/strverscmp.c (ISDIGIT): Likewise.
33641         * lib/userspec.c (ISDIGIT): Likewise.
33642
33643 2002-01-16  Jim Meyering  <meyering@lucent.com>
33644
33645         * lib/getdate.y: Add three semicolons, each just before a closing
33646         brace. Bison (as of version 1.31) no longer papers over that mistake.
33647
33648 2002-01-05  Jim Meyering  <meyering@lucent.com>
33649
33650         * lib/version-etc.c (version_etc_copyright): Update copyright year.
33651
33652 2001-12-19  Paul Eggert  <eggert@twinsun.com>
33653
33654         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
33655         not silently exit merely because the output buffer happens to
33656         have nothing pending.
33657
33658 2001-12-18  Paul Eggert  <eggert@twinsun.com>
33659
33660         See the big note in ../ChangeLog.
33661         * lib/human.c (suffixes): Prefer K to k for 1024.
33662         (generate_suffix_backwards): New function.
33663         (human_readable_inexact): Use it.
33664         * lib/xstrtol.c (__xstrtol): If there is no number but there
33665         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
33666         Accept 'K' as well as 'k'.
33667
33668 2001-12-15  Jim Meyering  <meyering@lucent.com>
33669
33670         * lib/regex.h (__restrict_arr): Update from libc.
33671
33672         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
33673         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
33674         (STREQ): Define.
33675
33676 2001-12-14  Jim Meyering  <meyering@lucent.com>
33677
33678         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
33679         Suggestion from Bruno Haible.
33680
33681 2001-12-10  Jim Meyering  <meyering@lucent.com>
33682
33683         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
33684         xrealloc, Instead, include "xalloc.h".
33685         (initbuffer): Don't cast xmalloc return value to char*.
33686         (readline): Reword comment.
33687         Don't cast xrealloc return value to char*
33688         Return NULL, not 0.
33689
33690 2001-12-09  Jim Meyering  <meyering@lucent.com>
33691
33692         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
33693         about `signed and unsigned type in conditional expression'.
33694         * lib/posixtm.c (posix_time_parse): Likewise.
33695
33696         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
33697
33698         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
33699         to avoid a pedantic warning.
33700
33701         * lib/getstr.c: Don't include assert.h.
33702         (getstr): Remove warning-evoking assertions.
33703         Return -1 if offset parameter is out of bounds.
33704         Change the type of a local from int to size_t.
33705
33706         * lib/strftime.c (my_strftime_localtime_r): Include this function
33707         definition in the `#if ! HAVE_TM_GMTOFF' block.
33708
33709         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
33710         Include xalloc.h instead.
33711
33712 2001-12-02  Jim Meyering  <meyering@lucent.com>
33713
33714         * lib/tempname.c: Don't declare getenv, thus reverting the change of
33715         2001-11-18.  It's no longer necessary, now that stdlib.h is always
33716         included.
33717
33718         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
33719         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
33720
33721 2001-11-30  Akim Demaille  <akim@epita.fr>
33722
33723         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
33724         before being defined.
33725
33726 2001-11-27  Paul Eggert  <eggert@twinsun.com>
33727
33728         * lib/quotearg.h (quotearg_n, quotearg_n_style):
33729         First arg is int, not unsigned.
33730         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
33731         (SIZE_MAX, UINT_MAX): New macros.
33732         (quotearg_n_options): Abort if N is negative.
33733         Avoid overflow check on hosts where size_t is 64 bits and int
33734         is 32 bits, as overflow is impossible there.
33735         Fix off-by-one typo that caused unnecessary reallocation.
33736
33737 2001-11-27  Jim Meyering  <meyering@lucent.com>
33738
33739         * lib/tempname.c: Merge with version from libc.
33740         * lib/regex.c: Likewise.
33741
33742         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
33743         systems for which STDC_HEADERS is 0, it was not included, resulting in
33744         a warning about an integer-to-pointer conversion problem with getenv.
33745         Reported by Volker Borchert.
33746
33747 2001-11-26  Jim Meyering  <meyering@lucent.com>
33748
33749         * lib/gtod.h: Remove file.
33750         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
33751         * lib/gettimeofday.c: Don't include gtod.h.
33752         (GTOD_init): Remove function.
33753         (rpl_gettimeofday): Do its job here instead, rather than aborting.
33754         Suggestion from Volker Borchert.
33755
33756 2001-11-23  Jim Meyering  <meyering@lucent.com>
33757
33758         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
33759         it.
33760         * lib/hash.c (struct hash_table): Define it here instead.
33761
33762 2001-11-22  Jim Meyering  <meyering@lucent.com>
33763
33764         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
33765
33766 2001-11-20  Jim Meyering  <meyering@lucent.com>
33767
33768         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
33769         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
33770
33771 2001-11-19  Jim Meyering  <meyering@lucent.com>
33772
33773         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
33774         directory.  Use "conftestXXXXXX" as the template.
33775         Suggestion from Paul Eggert.
33776
33777         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
33778         immediately, so the test doesn't mistakenly hit the max-open-files
33779         limit.
33780
33781 2001-11-18  Paul Eggert  <eggert@twinsun.com>
33782
33783         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
33784         (TEMPORARIES): New macro.
33785         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
33786         removes an artificial limitation (e.g. HP-UX 10.20, where
33787         TMP_MAX is 17576).
33788
33789 2001-11-18  Jim Meyering  <meyering@lucent.com>
33790
33791         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
33792
33793 2001-11-18  Jim Meyering  <meyering@lucent.com>
33794
33795         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
33796         on SunOS 4.
33797
33798         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
33799         files will be created before anything else.
33800
33801 2001-11-17  Paul Eggert  <eggert@twinsun.com>
33802
33803         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
33804         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
33805
33806 2001-11-17  Jim Meyering  <meyering@lucent.com>
33807
33808         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
33809         Prompted by a report from Bob Proulx.
33810
33811         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
33812         Instead, require UTILS_FUNC_MKSTEMP.
33813
33814 2001-11-17  Jim Meyering  <meyering@lucent.com>
33815
33816         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
33817         Now, that's done as part of AC_FUNC_STRTOD.
33818
33819 2001-11-17  Jim Meyering  <meyering@lucent.com>
33820
33821         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
33822         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
33823         rather than group writable.  Patch by Juan F. Codagnone.
33824
33825         * lib/readtokens.c: Remove explicit declarations of xmalloc and
33826         xrealloc, Instead, include "xalloc.h".
33827
33828         * lib/mountlist.c: Include unlocked-io.h after all system headers.
33829         Remove explicit declarations of xmalloc, xrealloc,
33830         and xstrdup.  Instead, include "xalloc.h".
33831
33832         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
33833         unlocked-io.h.
33834         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
33835         Likewise.
33836         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
33837
33838         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
33839         Reported by Padraig Brady.
33840
33841         * lib/mkstemp.c: #undef mkstemp.
33842         Include config.h.
33843         (rpl_mkstemp): Rename from mkstemp.
33844         Protoize.
33845
33846 2001-11-16  Jim Meyering  <meyering@lucent.com>
33847
33848         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
33849         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
33850         determine the amount of total physical memory, use pstat_getstatic.
33851         HPUX-11 doesn't define _SC_PHYS_PAGES.
33852         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
33853         If sysconf couldn't be used to determine the amount of available
33854         physical memory, use both pstat_getstatic and pstat_getdynamic.
33855         Based on a patch from Bob Proulx.
33856
33857 2001-11-10  Jim Meyering  <meyering@lucent.com>
33858
33859         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
33860         (jm_PREREQ): Use it.
33861
33862 2001-11-09  Jim Meyering  <meyering@lucent.com>
33863
33864         * m4/jm-macros.m4: Require autoconf-2.52f.
33865         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
33866         Use these AC_-prefixed names, not the AM_-prefixed ones.
33867
33868         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
33869
33870 2001-11-05  Jim Meyering  <meyering@lucent.com>
33871
33872         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
33873
33874 2001-11-04  Jim Meyering  <meyering@lucent.com>
33875
33876         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
33877         $DEFS.
33878
33879 2001-11-03  Jim Meyering  <meyering@lucent.com>
33880
33881         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
33882         of AC_DEFUN.
33883
33884         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
33885         know the name of the variable in the macro definition.
33886
33887 2001-11-03  Jim Meyering  <meyering@lucent.com>
33888
33889         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
33890         in argmatch_to_argument call.
33891
33892         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
33893         argument.
33894
33895         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
33896         e.g., a fault due to an attempt to free a NULL pointer.
33897
33898 2001-11-01  Jim Meyering  <meyering@lucent.com>
33899
33900         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
33901         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
33902
33903 2001-11-01  Jim Meyering  <meyering@lucent.com>
33904
33905         * lib/dirfd.c, lib/dirfd.h: New files.
33906         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
33907
33908         * lib/hash.c (hash_print) [TESTING]: Clean up.
33909
33910 2001-10-22  Paul Eggert  <eggert@twinsun.com>
33911
33912         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
33913         to avoid a warning if -Wall.
33914
33915 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
33916
33917         * README: New file
33918         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
33919         (per RMS's instructions, this is now the canonical source)
33920         * lgpl/, gpl/: New directories.
33921
33922 2001-10-21  Paul Eggert  <eggert@twinsun.com>
33923
33924         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
33925
33926 2001-10-21  Jim Meyering  <meyering@lucent.com>
33927
33928         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
33929         this code would end up calling gettext even in packages built
33930         with --disable-nls.
33931         * lib/getopt.c (_): Likewise.
33932         * lib/regex.c (_): Likewise.
33933
33934 2001-10-20  Paul Eggert  <eggert@twinsun.com>
33935
33936         * m4/error.m4 (jm_PREREQ_ERROR):
33937         Do not invoke AC_CHECK_FUNCS with strerror_r, as
33938         AC_FUNC_STRERROR_R does that.
33939         Check for strerror declaration.
33940
33941         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
33942         are supposed to have them these days.
33943         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
33944         Merge changes from latest Autoconf CVS.
33945         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
33946         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
33947         POSIX decided to standardize on the int flavor of strerror_r.
33948
33949 2001-10-20  Paul Eggert  <eggert@twinsun.com>
33950
33951         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
33952         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
33953         Use strerror_r that is only a macro, even if it is not a function.
33954         (strerror): Check for HAVE_DECL_STRERROR before declaring.
33955         (private_strerror): Use prototypes, not old-style function definition.
33956         (print_errno_message): New function.
33957         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
33958         char*-flavored one.
33959         (error_tail, error, error_at_line): Use it.
33960
33961 2001-10-11  Jim Meyering  <meyering@lucent.com>
33962
33963         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
33964         and quote_n (1, ... to avoid clobbering a buffer.
33965
33966 2001-10-05  Jim Meyering  <meyering@lucent.com>
33967
33968         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
33969         hash-pjw.h.
33970         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
33971         * lib/hash-pjw.h: New file.
33972
33973 2001-09-30  Jim Meyering  <meyering@lucent.com>
33974
33975         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
33976         `struct fsstat' has the `f_fstypename' member.
33977         Use that to define FS_TYPE, which is now used to make
33978         the getfsstat link test tighter.
33979
33980 2001-09-30  Jim Meyering  <meyering@lucent.com>
33981
33982         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
33983         Include <sys/ucred.h>, for Apple Darwin.
33984         Include sys/mount.h and sys/fs_types.h only if available.
33985         (FS_TYPE): Define.
33986         (read_filesystem_list): Use FS_TYPE.
33987
33988 2001-09-29  Paul Eggert  <eggert@twinsun.com>
33989
33990         * lib/exclude.c (excluded_filename): 0 -> false, since it's
33991         a boolean context.
33992
33993 2001-09-29  Jim Meyering  <meyering@lucent.com>
33994
33995         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
33996         [one-argument getmntent function]): Include stdio.h before mntent.h.
33997         SunOS 4.1.x needs it for the declaration of `FILE'.
33998         Patch by Volker Borchert.
33999
34000         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
34001         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
34002         sys/fs_types.h, and make the link-test for getfsstat guard #include
34003         directives with appropriate #if HAVE_*_H tests so that we can
34004         detect getfsstat on Apple Darwin1.3.7 systems.
34005         Reported by Nelson Beebe.
34006         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
34007
34008 2001-09-28  Paul Eggert  <eggert@twinsun.com>
34009
34010         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
34011         #defines strtoimax.  Also treat the other strto* functions
34012         like strtoimax.
34013
34014         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
34015         Check for strtoul and strtoumax,
34016         as those declarations are made even in the signed case.
34017         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
34018         Likewise, for strtol and strtoimax.
34019
34020 2001-09-28  Paul Eggert  <eggert@twinsun.com>
34021
34022         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
34023         #defines strtoimax.  Also treat the other strto* functions
34024         like strtoimax.
34025
34026         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
34027         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
34028         (strtoimax, strtoumax): Do not declare if already defined as a macro.
34029
34030 2001-09-26  Jim Meyering  <meyering@lucent.com>
34031
34032         Most macros in unlocked-io.h had the wrong number of arguments.
34033         * lib/gen-uio: New script.
34034         (USE_UNLOCKED_IO): Define to 1 if not already defined.
34035         * lib/unlocked-io.hin: Remove file.
34036         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
34037         rather than trying to embed it here.
34038         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
34039         Reported by Padraig Brady.
34040
34041 2001-09-25  Volker Borchert  <bt@teknon.de>
34042
34043         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
34044         `result'.
34045
34046 2001-09-24  Jim Meyering  <meyering@lucent.com>
34047
34048         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
34049
34050 2001-09-23  Jim Meyering  <meyering@lucent.com>
34051
34052         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
34053         instead of the mere test for existence of mntent.h.  The latter
34054         would get a false-positive on AIX 3.4 systems.
34055         In the outer getmntent if-block, don't die if neither of the getmntent
34056         tests succeeds.  Instead, just fall through and continue with the
34057         remaining tests.
34058
34059 2001-09-23  Jim Meyering  <meyering@lucent.com>
34060
34061         * lib/mountlist.c: Remove useless parentheses in #if directives.
34062         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
34063         the deprecated MOUNTED symbol is no longer defined in mntent.h.
34064
34065 2001-09-22  Jim Meyering  <meyering@lucent.com>
34066
34067         * m4/gettext.m4: New file.  From gettext.
34068         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
34069         * m4/progtest.m4: Likewise
34070         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
34071         * m4/glibc21.m4: Likewise.
34072
34073         * m4/libintl.m4: Remove.  No longer used.
34074
34075 2001-09-22  Jim Meyering  <meyering@lucent.com>
34076
34077         * lib/localcharset.c: Update from latest gettext.
34078         * lib/config.charset: Likewise.
34079
34080 2001-09-20  Jim Meyering  <meyering@lucent.com>
34081
34082         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
34083         strtoimax.
34084         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
34085         strtoumax.
34086
34087 2001-09-20  Jim Meyering  <meyering@lucent.com>
34088
34089         * lib/xstrtol.c (strtoimax): Guard declaration with
34090         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
34091         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
34092         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
34093         (strtoumax): Likewise, for completeness (it wasn't necessary).
34094
34095 2001-09-17  Paul Eggert  <eggert@twinsun.com>
34096
34097         * lib/strtoimax.c (HAVE_LONG_LONG):
34098         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
34099         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
34100         to work around bug in IBM C compiler.
34101
34102 2001-09-17  Jim Meyering  <meyering@lucent.com>
34103
34104         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
34105         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
34106         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
34107         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
34108         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
34109         whenever the right hand side need not be expanded by the shell.
34110
34111 2001-09-16  Paul Eggert  <eggert@twinsun.com>
34112
34113         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
34114         library.  It's not correct, as some older glibcs are buggy.
34115         fnmatch wasn't fixed until glibc 2.2.
34116
34117         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
34118         special shell magic here.
34119
34120 2001-09-16  Jim Meyering  <meyering@lucent.com>
34121
34122         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
34123         * m4/jm-macros.m4: Require it.
34124
34125 2001-09-16  Jim Meyering  <meyering@lucent.com>
34126
34127         * lib/mkdir.c: New file.
34128
34129 2001-09-15  Jim Meyering  <meyering@lucent.com>
34130
34131         * m4/jm-macros.m4: Check for help2man.
34132
34133 2001-09-11  Jim Meyering  <meyering@lucent.com>
34134
34135         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
34136         The body, by Paul Eggert, was moved here from configure.in.
34137         * m4/jm-macros.m4: Require UTILS_HOST_OS.
34138
34139 2001-09-04  Paul Eggert  <eggert@twinsun.com>
34140
34141         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
34142         (jm_PREREQ): Use it.
34143
34144 2001-09-04  Paul Eggert  <eggert@twinsun.com>
34145
34146         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
34147         Use ssize_t, not int, to store result of readlink.
34148         Check for ssize_t overflow as well as size_t overflow,
34149         as POSIX says the result of readlink is implementation-defined
34150         when ssize_t overflows.
34151         Remove unnecessary cast to char*.
34152         Use free+malloc instead of realloc, as the storage doesn't need
34153         to be preserved and it's clearer and can be more efficient that way.
34154         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
34155         * lib/xreadlink.h (xreadlink): Update prototype.
34156
34157 2001-09-04  Paul Eggert  <eggert@twinsun.com>
34158
34159         * lib/xgetcwd.c: Revert some of the previous change; intead,
34160         fix the HAVE_GETCWD_NULL code to behave more like the
34161         !HAVE_GETCWD_NULL code used to.
34162
34163         Include "xalloc.h".
34164         (xgetcwd): Do not return NULL when memory is exhausted; instead,
34165         invoke xalloc_die.
34166
34167 2001-09-03  Paul Eggert  <eggert@twinsun.com>
34168
34169         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
34170         sys/param.h, as pathmax.h includes them.
34171
34172 2001-09-03  Paul Eggert  <eggert@twinsun.com>
34173
34174         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
34175         (jm_PREREQ_XGETCWD): New macro.
34176
34177         * m4/getcwd.m4: New file.
34178
34179 2001-09-03  Paul Eggert  <eggert@twinsun.com>
34180
34181         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
34182         like the HAVE_GETCWD_NULL code.
34183         Include pathmax.h if not HAVE_GETCWD.
34184         Do not include xalloc.h.
34185         (INITIAL_BUFFER_SIZE): New symbol.
34186         Do not use xmalloc / xrealloc, since the caller is responsible for
34187         handling errors.  Preserve errno around `free' during failure.
34188         Do not overrun buffer when using getwd.
34189
34190 2001-09-03  Paul Eggert  <eggert@twinsun.com>
34191
34192         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
34193         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
34194         getcwd (NULL, 0).
34195
34196 2001-09-03  Paul Eggert  <eggert@twinsun.com>
34197
34198         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
34199         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
34200         spotted by Jim Meyering.
34201
34202 2001-09-03  Jim Meyering  <meyering@lucent.com>
34203
34204         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
34205         failure.
34206
34207 2001-09-02  Jim Meyering  <meyering@lucent.com>
34208
34209         * lib/error.c: Update from GNU libc.
34210
34211 2001-09-01  Jim Meyering  <meyering@lucent.com>
34212
34213         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
34214         Used by df.
34215
34216 2001-09-01  Jim Meyering  <meyering@lucent.com>
34217
34218         * lib/xreadlink.c: New file.
34219         * lib/xreadlink.h: New file.
34220         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
34221         xreadlink.h.
34222
34223         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
34224         doesn't conflict with sparc Solaris 7's definition in
34225         /usr/include/sys/int_types.h.
34226
34227         * lib/exclude.c: Use `""', not `<>' to #include non-system header
34228         files.
34229         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
34230         and strncasecmp as r-values.  Unixware didn't have declarations.
34231
34232 2001-08-31  Paul Eggert  <eggert@twinsun.com>
34233
34234         * lib/xstrtol.h: Add copyright notice.
34235         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
34236         LONGINT_INVALID_SUFFIX_CHAR.
34237
34238 2001-08-31  Paul Eggert  <eggert@twinsun.com>
34239
34240         * lib/xstrtol.c (strtoimax): New decl.
34241
34242 2001-08-31  Paul Eggert  <eggert@twinsun.com>
34243
34244         * lib/xgetcwd.c: Don't include pathmax.h.
34245         Include stdlib.h and unistd.h if available.
34246         Include xalloc.h.
34247         (xmalloc, xstrdup, free): Remove decls.
34248         (xgetcwd): Don't assume sizes fit in unsigned.
34249         Check for overflow when computing sizes.
34250         Simplify reallocation code.
34251
34252 2001-08-31  Paul Eggert  <eggert@twinsun.com>
34253
34254         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
34255         a directory's st_size can have an arbitrary value, so the old
34256         usage could waste an arbitrary amount of memory.  All uses
34257         changed.
34258         * lib/savedir.h: Update prototype.
34259
34260 2001-08-31  Paul Eggert  <eggert@twinsun.com>
34261
34262         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
34263
34264         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
34265         old strtoimax.c.
34266
34267         Also, make the following further changes to make this file's
34268         configuration more similar to that of strtol.c:
34269         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
34270         (strtoumax, uintmax_t, strtoull, strtol): Remove.
34271         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
34272         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
34273         changed to signed values.
34274
34275         And make the following changes as well:
34276         Fix copyright notice, as 1999 was missing.
34277         (verify): New macro.
34278         (strtoimax): Check sizes at compile-time, not run-time.
34279         Prefer strtol to strtoll if both work.
34280         (main): Remove; it was not that useful and was a pain to maintain.
34281
34282         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
34283
34284 2001-08-31  Jim Meyering  <meyering@lucent.com>
34285
34286         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
34287         Use an initial, malloc'd, buffer of length 128 rather than
34288         a statically allocated one of length 1024.
34289
34290 2001-08-30  Paul Eggert  <eggert@twinsun.com>
34291
34292         Simplify code, partly by assuming autoconf 2.52 semantics.
34293
34294         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
34295
34296         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
34297         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
34298         All uses removed.
34299         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
34300         Move AC_REQUIRE to next-to-top level, to avoid confusion.
34301         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
34302         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
34303         jm_AC_HEADER_INTTYPES_H.
34304         * m4/jm-macros.m4 (jm_MACROS): Likewise.
34305
34306         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
34307
34308         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
34309         Quote first arg of AC_DEFUN.
34310         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
34311         since they are needed to parse the include file even if we need
34312         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
34313         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
34314         but with opposite signedness.
34315
34316 2001-08-30  Paul Eggert  <eggert@twinsun.com>
34317
34318         Merge 'exclude' changes from tar 1.13.22.
34319         This fixes one or two unlikely storage allocation overflow bugs,
34320         but doesn't change user-visible behavior otherwise.
34321
34322 2001-08-30  Paul Eggert  <eggert@twinsun.com>
34323
34324         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
34325         (jm_PREREQ_EXCLUDE): New macro.
34326
34327 2001-08-30  Paul Eggert  <eggert@twinsun.com>
34328
34329         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
34330         tm to be declared.
34331
34332 2001-08-30  Paul Eggert  <eggert@twinsun.com>
34333
34334         * lib/hash.c: Remove '2001' from copyright notice.
34335
34336 2001-08-30  Paul Eggert  <eggert@twinsun.com>
34337
34338         * lib/full-write.h: New file.
34339         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
34340         * lib/full-write.c: Correct credits, as cccp.c no longer
34341         exists and anyway it was so heavily changed from the old cccp
34342         code as to be unrecognizable.  Include full-write.h.
34343         (full_write) Return size_t, with short writes meaning failure.
34344         All callers changed.  This fixes a bug with large buffers
34345         on 64-bit hosts.
34346         * lib/utime.c: Include full-write.h.
34347
34348 2001-08-30  Paul Eggert  <eggert@twinsun.com>
34349
34350         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
34351         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
34352         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
34353         Include if available.
34354         (<xalloc.h>): Include
34355         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
34356         (verify): New macro.  Use it to verify that EXCLUDE macros do not
34357         collide with FNM macros.
34358         (struct patopts): New struct.
34359         (struct exclude): Use it, as exclude patterns now come with options.
34360         (new_exclude): Support above changes.
34361         (new_exclude, add_exclude_file):
34362         Initial size must now be a power of two to simplify overflow checking.
34363         (free_exclude, fnmatch_no_wildcards): New function.
34364         (excluded_filename): No longer requires options arg, as the options
34365         are determined by add_exclude.  Now returns bool, not int.
34366         (excluded_filename, add_exclude):
34367         Add support for the fancy new exclusion options.
34368         (add_exclude, add_exclude_file): Now takes int options arg.
34369         Check for arithmetic overflow when computing sizes.
34370         (add_exclude_file): xrealloc might modify errno, so don't
34371         realloc until after errno might be used.
34372
34373         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
34374         New macros.
34375         (free_exclude): New decl.
34376         (add_exclude, add_exclude_file): Now takes int options arg.
34377         (excluded_filename): No longer requires options arg, as the options
34378         are determined by add_exclude.  Now returns bool, not int.
34379
34380 2001-08-30  Paul Eggert  <eggert@twinsun.com>
34381
34382         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
34383
34384 2001-08-27  Jim Meyering  <meyering@lucent.com>
34385
34386         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
34387
34388         * lib/version-etc.c (N_): Remove definition.
34389         Revert most of last change.
34390         Instead, simply don't mark the `Copyright...' string for translation.
34391         Based on advice from Paul Eggert.
34392
34393         * lib/strtoxmax.c: Tweak comment.
34394
34395 2001-08-26  Jim Meyering  <meyering@lucent.com>
34396
34397         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
34398
34399         * m4/xstrtoimax.m4: New file.
34400         * m4/xstrtoumax.m4: Add comments explaining why we
34401         AC_REPLACE_FUNCS(strtol).
34402
34403 2001-08-26  Jim Meyering  <meyering@lucent.com>
34404
34405         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
34406         of copyright with `%s' so translators don't get an untranslated
34407         message in 2002.
34408         (COPYRIGHT_YEAR): Define.
34409         (version_etc): Use fprintf rather than fputs.
34410         Suggestion from Ulrich Drepper.
34411
34412         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
34413
34414         * lib/strtoll.c: New file, from GNU libc.
34415         * lib/xstrtoimax.c: New file.
34416
34417         * lib/xstrtol.h: Add xstrtoimax.
34418         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
34419         * lib/strtoimax.c: New file.  Likewise, but first define
34420         STRTOUXMAX_SIGNED.
34421
34422         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
34423         ...
34424         * lib/strtoxmax.c: ... then renamed to this.
34425
34426 2001-08-18  Paul Eggert  <eggert@twinsun.com>
34427
34428         * m4/inttypes.m4: Add AC_PREREQ(2.13).
34429         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
34430         (jm_AC_TYPE_INTMAX_T): New macro.
34431         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
34432
34433         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
34434
34435         * m4/longlong.m4: Renamed from ulonglong.m4.
34436         * m4/inttypes.m4: Renamed from inttypes_h.m4.
34437         * m4/uintmax_t.m4: Removed.
34438
34439 2001-08-13  Paul Eggert  <eggert@twinsun.com>
34440
34441         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
34442         Port to Solaris 8, where 'sed' requires a space after the 'r'
34443         command, and where sh dislikes "$/".  Clean up the spacing a bit.
34444         Redirect output to $tmp just once.
34445
34446 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
34447
34448         * lib/addext.c (<errno.h>): Include.
34449         (errno): Declare if not defined.
34450         (addext): Work correctly when pathconf returns -1 and leaves
34451         errno alone because there is no limit.  Also, work even if
34452         pathconf returns a value greater than SIZE_MAX.
34453
34454 2001-08-12  Jim Meyering  <meyering@lucent.com>
34455
34456         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
34457         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
34458         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
34459         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
34460         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
34461         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
34462         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
34463         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
34464         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
34465         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
34466         utime.m4, utimes.m4, xstrtoumax.m4:
34467         Quote the first argument in each use of AC_DEFUN.
34468
34469 2001-08-12  Jim Meyering  <meyering@lucent.com>
34470
34471         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
34472         Simply `return getcwd (NULL, 0);'.
34473         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
34474         Use 1300 as initial value for length, not PATH_MAX.
34475
34476         * lib/pathmax.h: Clean up cpp syntax.
34477
34478 2001-08-12  Jim Meyering  <meyering@lucent.com>
34479
34480         * lib/gettimeofday.c: New file.
34481         * lib/gtod.h: New file.
34482         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
34483
34484 2001-08-05  Jim Meyering  <meyering@lucent.com>
34485
34486         * m4/jm-macros.m4: Require autoconf-2.52.
34487
34488 2001-08-04  Jim Meyering  <meyering@lucent.com>
34489
34490         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
34491         stmt, to get in sync with glibc.
34492
34493 2001-08-03  Paul Eggert  <eggert@twinsun.com>
34494
34495         The following changes are from gettext 0.10.39 as maintained by
34496         Bruno Haible.
34497
34498         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
34499         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
34500         with inverted sense.  All uses changed.
34501
34502         * lib/mbswidth.c: Don't include <limits.h>.
34503         Include <stdlib.h> and <string.h> unconditionally.
34504         (iswcntrl, mbsinit, ISCNTRL): New macros.
34505         (mbsnwidth): Use K&R style function declarations.
34506         Don't bother checking for MB_LEN_MAX == 1, since the compiler
34507         can optimize it when MB_CUR_MAX == 1.
34508         The width of control characters is zero, not 1.
34509
34510 2001-08-03  Paul Eggert  <eggert@twinsun.com>
34511
34512         The following changes are from gettext 0.10.39 as maintained by
34513         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
34514
34515         * m4/codeset.m4: Upgrade to serial AM1.
34516         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
34517         all uses changed.  Quote first arg of AC_DEFUN.
34518         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
34519
34520         * m4/iconv.m4: Upgrade to serial AM2.
34521         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
34522         Add --with-libconv-prefix.
34523         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
34524         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
34525         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
34526         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
34527         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
34528
34529         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
34530         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
34531         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
34532         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
34533         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
34534         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
34535         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
34536         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
34537         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
34538
34539         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
34540         string.h any more.
34541
34542         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
34543         not the default value.
34544
34545         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
34546         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
34547         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
34548         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
34549         Also check for iswcntrl, used for wcwidth fallback.
34550         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
34551         to Autoconf 2.13.
34552
34553 2001-08-03  Jim Meyering  <meyering@lucent.com>
34554
34555         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
34556         as it was in the original.  Reported by Paul Eggert.
34557
34558 2001-07-16  Jim Meyering  <meyering@lucent.com>
34559
34560         * m4/gettimeofday.m4: New file.
34561         Prompted by a report from Bernhard Baehr.
34562
34563 2001-07-15  Jim Meyering  <meyering@lucent.com>
34564
34565         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
34566         stuff. Now it's in ../Makefile.cfg.
34567
34568 2001-07-15  Jim Meyering  <meyering@lucent.com>
34569
34570         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
34571         (BUILT_SOURCES): Add unlocked-io.h.
34572         (io_functions): Define.
34573         (unlocked-io.h): New rule.
34574         (DISTCLEANFILES): Add unlocked-io.h.
34575         (all-local): Depend on unlocked-io.h, to ensure it is created.
34576
34577         * lib/unlocked-io.hin: New file
34578
34579         * lib/regex.c: Update from glibc.
34580
34581 2001-07-05  Jim Meyering  <meyering@lucent.com>
34582
34583         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
34584         recommendation.
34585         (libfetish_a_SOURCES): Put all .h files here instead.
34586         Remove a thus-exposed (better checks in automake) duplicate and
34587         two unnecessary .h files.
34588
34589 2001-07-04  Jim Meyering  <meyering@lucent.com>
34590
34591         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
34592         that generates jm-glibc-io.m4 so that it doesn't trigger any make
34593         distcheck failure.
34594
34595 2001-07-02  Jim Meyering  <meyering@lucent.com>
34596
34597         The following changes were prompted by suggestions from Bruno Haible.
34598
34599         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
34600         is now generated.
34601         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
34602         definition of EXTRA_DIST.
34603         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
34604         ensure that the generated file is created/updated whenever the list
34605         of $(unlocked_functions) is changed.
34606         (jm-glibc-io.m4): New rule.
34607         (unlocked-io.h): New rule -- currently unused.
34608
34609 2001-06-24  Jim Meyering  <meyering@lucent.com>
34610
34611         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
34612         unmatched right bracket, rather than kludging it with an extra,
34613         falsely-matching quote in a comment.  Patch by Akim Demaille.
34614
34615 2001-06-11  Jim Meyering  <meyering@lucent.com>
34616
34617         * lib/regex.c: Update from GNU libc.
34618
34619 2001-05-27  Jim Meyering  <meyering@lucent.com>
34620
34621         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
34622         Check for ut_type in struct utmp.
34623
34624 2001-05-27  Jim Meyering  <meyering@lucent.com>
34625
34626         * lib/readutmp.h (UT_TYPE): Define.
34627
34628 2001-05-24  Jim Meyering  <meyering@lucent.com>
34629
34630         * lib/argmatch.c: Include "quote.h".
34631         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
34632         quote function.  Reported by Göran Uddeborg.
34633
34634 2001-05-22  Jim Meyering  <meyering@lucent.com>
34635
34636         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
34637         now that we use the package-supplied version unconditionally.
34638         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
34639
34640 2001-05-21  Jim Meyering  <meyering@lucent.com>
34641
34642         * m4/regex.m4: Change a couple backticks to single quotes to avoid
34643         shell syntax errors.
34644
34645 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
34646
34647         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
34648
34649 2001-05-20  Paul Eggert  <eggert@twinsun.com>
34650
34651         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
34652         Don't bother to check library strftime, since
34653         we'll be using our own my_strftime function anyway.
34654         Define my_strftime instead of strftime.
34655
34656 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
34657
34658         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
34659         which is not yet declared.
34660
34661 2001-05-15  Jim Meyering  <meyering@lucent.com>
34662
34663         * m4/regex.m4: Use proper quoting so brackets appear in the test
34664         program.
34665         Reported by, and with help from, Bruno Haible.
34666
34667 2001-05-13  Jim Meyering  <meyering@lucent.com>
34668
34669         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
34670         undefined.
34671
34672 2001-05-11  Paul Eggert  <eggert@twinsun.com>
34673
34674         dirname code cleanup.  base_name now behaves more compatibly
34675         with POSIX basename when given file names that have trailing
34676         slashes, and similarly for dir_name.  Add new primitives
34677         base_len and dir_len.  Put the directory-name-related decls
34678         into dirname.h.
34679
34680         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
34681         * lib/backupfile.c (base_name): Likewise.
34682         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
34683         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
34684         * lib/makepath.c (strip_trailing_slashes): Likewise.
34685         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
34686         ISSLASH): Likewise.
34687         * lib/rename.c (strip_trailing_slashes): Likewise.
34688         * lib/same.c (base_name): Likewise.
34689         * lib/stripslash.c (ISSLASH): Likewise.
34690
34691         * lib/addext.c: Include <dirname.h> after size_t is defined.
34692         * lib/backupfile.c: Likewise.
34693
34694         * lib/addext.c (addext): Use base_len to trim redundant
34695         trailing slashes instead of doing it ourselves.
34696         But do not trim the last slash if it is not redundant.
34697
34698         * lib/backupfile.c (find_backup_file_name,
34699         max_backup_version): Use base_len instead of rolling it ourselves.
34700         Handle the case of "" and (on DOS) "C:" correctly.
34701
34702         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
34703         needed. Include <string.h>, <dirname.h>.
34704         (base_name): Allow file names ending in slashes, other than names
34705         that are all slashes.  In this case, return the basename followed
34706         by the slashes.  This is more general, and can be used in places
34707         where the original base_name purposely had an assertion failure.
34708         (base_len): New function.
34709
34710         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
34711         Do not include <assert.h>; no longer needed.
34712         Include xalloc.h.
34713         (memrchr): Remove decl.
34714         (dir_name_r): Remove.
34715         (dir_len): Renamed from dirlen.  All callers changed.
34716         Rewrite in terms of base_name, for simplicity and consistency.
34717         (dir_name): Never return NULL.  All callers changed.
34718         Do not include <stdlib.h> in test program; no longer needed.
34719         return 0; is fine for test program.
34720
34721         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
34722         New macros.
34723         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
34724
34725         * lib/path-concat.c (path_concat): Use base_len to compute
34726         base length, not strlen; this means we cannot rely on memcpy
34727         to null-terminate.
34728
34729         * lib/same.c (STREQ): Remove.
34730         (same_name): Handle the case where the basename ends in trailing '/'.
34731
34732         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
34733         a slash was stripped.  Do not strip the last slash after a
34734         file system prefix.
34735
34736 2001-05-11  Paul Eggert  <eggert@twinsun.com>
34737
34738         * lib/Makefile.am (libfetish_a_SOURCES):
34739         Add strftime.c, since we now compile it on all hosts.
34740
34741         * lib/strftime.c (my_strftime):
34742         Define to nstrftime if emacs, but only if my_strftime is not defined.
34743         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
34744         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
34745         Add one more extra argument: a nanoseconds value.
34746         All uses changed.
34747         (ns): New macro.
34748         (my_strftime function): Add %N format.
34749         (emacs_strftimeu): Renamed from emacs_strftime,
34750         with extra ut argument.
34751
34752 2001-05-09  Paul Eggert  <eggert@twinsun.com>
34753
34754         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
34755
34756 2001-04-21  Jim Meyering  <meyering@lucent.com>
34757
34758         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
34759         doesn't interfere.
34760
34761 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
34762
34763         * m4/ftruncate.m4: Check for chsize.
34764         Link with ftruncate.o unconditionally if ftruncate is missing.
34765         This was required when cross-compiling to i586-mingw32msvc.
34766
34767 2001-04-08  Jim Meyering  <meyering@lucent.com>
34768
34769         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
34770         recomputed; that's necessary when the offset spans a DST transition.
34771         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
34772
34773 2001-04-02  Jim Meyering  <meyering@lucent.com>
34774
34775         * lib/regex.h, regex.c: Update from GNU libc.
34776
34777 2001-03-24  Jim Meyering  <meyering@lucent.com>
34778
34779         * m4/jm-macros.m4: Require autoconf-2.49d.
34780
34781 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
34782
34783         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
34784
34785 2001-03-19  Paul Eggert  <eggert@twinsun.com>
34786
34787         * lib/version-etc.c (version_etc_copyright): Update to 2001.
34788
34789 2001-03-17  Jim Meyering  <meyering@lucent.com>
34790
34791         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
34792         now that the version in autoconf is equivalent.
34793         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
34794
34795         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
34796         Suggestion from Akim Demaille.
34797
34798         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
34799         (jm_PREREQ_TEMPNAME): New function.
34800
34801 2001-03-16  Paul Eggert  <eggert@twinsun.com>
34802
34803         * lib/tempname.c (uint64_t): Define to uintmax_t if
34804         not defined, and if UINT64_MAX is not defined.
34805         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
34806         Reported by John David Anglin.
34807
34808 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
34809
34810         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
34811         resolve alias if codeset is empty.
34812         * lib/config.charset (BeOS): Use wildcard syntax.
34813
34814 2001-03-13  Jim Meyering  <meyering@lucent.com>
34815
34816         * lib/path-concat.c (path_concat)
34817         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
34818         concatenating e.g., `C:' and `foo'.
34819         From Bruno Haible.
34820
34821 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
34822
34823         * lib/localcharset.c (locale_charset): Don't use
34824         setlocale(LC_CTYPE,NULL). Don't return NULL.
34825         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
34826
34827 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
34828
34829         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
34830         support for DOS/DJGPP.
34831
34832 2001-03-01  Paul Eggert  <eggert@twinsun.com>
34833
34834         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
34835         lacks mkstemp.  Compile our own tempname.c if we compile our own
34836         mkstemp.c, as mkstemp relies on tempname.
34837
34838 2001-03-01  Jim Meyering  <meyering@lucent.com>
34839
34840         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
34841         AH_VERBATIM really does output its argument verbatim.
34842
34843 2001-02-28  Paul Eggert  <eggert@twinsun.com>
34844
34845         * lib/Makefile.am (libfetish_a_SOURCES):
34846         Add dup-safer.c, fopen-safer.c.
34847         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
34848
34849         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
34850         * lib/unistd-safer.h: New files.
34851
34852 2001-02-25  Paul Eggert  <eggert@twinsun.com>
34853
34854         The mkstemp replacement is taken from glibc 2.2.2, with some
34855         portability fixes for use outside glibc, as follows:
34856
34857         * lib/tempname.c (struct_stat64): New macro.
34858         (direxists, __gen_tempname): Use it.
34859         This avoids a portability problem with Solaris 8.
34860
34861         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
34862         (<stddef.h>, <stdint.h>, <string.h>):
34863         Include only if STDC_HEADERS || _LIBC.
34864         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
34865         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
34866         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
34867         (__set_errno): Define this macro if <errno.h> doesn't.
34868         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
34869         Define these macros if <stdio.h> doesn't.
34870         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
34871         Define these macros if <sys/stat.h>
34872         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
34873         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
34874         __xstat64): Define if not _LIBC.
34875         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
34876         (__gen_tempname): Invoke gettimeofday only if
34877         HAVE_GETTIMEOFDAY || _LIBC;
34878         otherwise, fall back on plain "time".
34879         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
34880
34881         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
34882
34883         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
34884
34885 2001-02-18  Paul Eggert  <eggert@twinsun.com>
34886
34887         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
34888
34889 2001-02-17  Paul Eggert  <eggert@twinsun.com>
34890
34891         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
34892         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
34893         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
34894         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
34895
34896 2001-02-17  Paul Eggert  <eggert@twinsun.com>
34897
34898         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
34899         Remove workaround macros for hosts that have mbrtowc but not
34900         mbstate_t, as we now insist on proper declarations for both
34901         before using mbrtowc.
34902
34903 2001-02-17  Jim Meyering  <meyering@lucent.com>
34904
34905         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
34906         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
34907         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
34908         UnixWare 7.1.1.
34909
34910         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
34911         rather than AC_CACHE_VAL.
34912
34913 2001-02-17  Jim Meyering  <meyering@lucent.com>
34914
34915         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
34916         around included file name.
34917
34918         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
34919
34920         * lib/strftime.c: Update from GNU libc (the only changes were to
34921         comments).
34922
34923 2001-02-17  Jim Meyering  <meyering@lucent.com>
34924
34925         * lib/regex.c: Update from libc.
34926
34927 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
34928
34929         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
34930         clash.
34931
34932 2001-02-16  Paul Eggert  <eggert@twinsun.com>
34933
34934         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
34935         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
34936         Reported by Mark Hounschell via Paul Eggert.
34937
34938 2001-02-07  Jim Meyering  <meyering@lucent.com>
34939
34940         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
34941
34942 2001-02-05  Jim Meyering  <meyering@lucent.com>
34943
34944         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
34945         it includes the patch required for `large file' support with at least
34946         HP-UX's 10.20 /bin/cc.
34947
34948 2001-02-03  Jim Meyering  <meyering@lucent.com>
34949
34950         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
34951         AS_IF, now that it works once again (mysteriously).
34952         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
34953
34954 2001-01-30  Jim Meyering  <meyering@lucent.com>
34955
34956         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
34957         * m4/chown.m4: Rename conftestchown to conftest.chown.
34958         * m4/rename.m4: s/conftestdir/conftest.d1/ and
34959         s/conftestdir2/conftest.d2/.
34960         * m4/utimes.m4: s/conftestdata/conftest.data/
34961         Inspired by Pavel Roskin's change in autoconf.
34962
34963 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
34964
34965         * lib/config.charset: Update for FreeBSD 4.2.
34966
34967 2001-01-27  Jim Meyering  <meyering@lucent.com>
34968
34969         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
34970         a use of AS_IF.
34971         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
34972
34973 2001-01-26  Jim Meyering  <meyering@lucent.com>
34974
34975         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
34976         quotearg.c includes it.
34977
34978 2001-01-26  Jim Meyering  <meyering@lucent.com>
34979
34980         * lib/quotearg.c: Include stddef.h.
34981         * lib/quote.c: Include stddef.h.
34982         Reported by Axel Kittenberger.
34983
34984         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
34985         line in double quotes so that it evokes a better diagnostic.
34986         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
34987         Reported by Axel Kittenberger.
34988
34989 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
34990
34991         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
34992         as if it was a `charset'.
34993
34994 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
34995
34996         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
34997         has const.
34998
34999 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
35000
35001         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
35002         to avoid a warning.  Add back 'const' to inptr.
35003
35004 2001-01-20  Jim Meyering  <meyering@lucent.com>
35005
35006         Be sure that headers are checked before used in code compiled
35007         for the type checks.
35008         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
35009         In place of that, invoke jm_CHECK_ALL_TYPES.
35010         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
35011         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
35012         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
35013         The check for ssize_t was mistakenly run before the test for unistd.h.
35014
35015         The configure-time check for stdbool.h was missing.
35016         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
35017         (jm_PREREQ_HASH): New function.
35018
35019 2001-01-17  Jim Meyering  <meyering@lucent.com>
35020
35021         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
35022         for autoconf-2.49c.
35023         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
35024
35025 2001-01-16  Jim Meyering  <meyering@lucent.com>
35026
35027         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
35028         From Bruno Haible.
35029
35030 2001-01-14  Jim Meyering  <meyering@lucent.com>
35031
35032         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
35033         foo and bar.  Create conftestdir/ in the script, not in the C code.
35034         Remove directories in the script, not in the C code.
35035         Remove conftestdir{,2} before trying to create the directory.
35036         Make the entire configure script fail if the mkdir fails.
35037
35038 2001-01-14  Jim Meyering  <meyering@lucent.com>
35039
35040         * lib/rename.c: New file.  From Volker Borchert.
35041         Include stdlib.h, string.h or strings.h, and xalloc.h.
35042         Use strip_trailing_slashes rather than open-coding it.
35043
35044 2001-01-03  Paul Eggert  <eggert@twinsun.com>
35045
35046         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
35047
35048 2001-01-03  Jim Meyering  <meyering@lucent.com>
35049
35050         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
35051         of local `inptr' to avoid warning with some system declarations of
35052         iconv.
35053
35054 2001-01-02  Volker Borchert  <bt@teknon.de>
35055
35056         * m4/rename.m4: New file.
35057         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
35058
35059 2001-01-01  Jim Meyering  <meyering@lucent.com>
35060
35061         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
35062         even on systems with utmpx.h.  It's necessary for the declaration of
35063         utmp's ut_user member.  Reported by Andreas Jaeger.
35064
35065         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
35066         available. They are required for the declarations of getgrgid and
35067         getpwuid resp.
35068         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
35069         Reported by Andreas Jaeger.
35070
35071 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
35072
35073         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
35074         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
35075         so `make install' also works in VPATH builds.
35076
35077 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
35078
35079         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
35080         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
35081         can be used in subdirectories.
35082
35083 2000-12-29  Paul Eggert  <eggert@twinsun.com>
35084
35085         * lib/modechange.c: Do not assume that mode_t uses the
35086         traditional octal encoding.  E.g. "chmod 1 FOO" should set
35087         the other-execute bit of FOO even if S_IXOTH != 1.
35088
35089         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
35090         WOTH, XOTH, ALLM): New macros.
35091         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
35092          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
35093         Use them.
35094         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
35095         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
35096         (mode_compile):
35097         No need to use uintmax_t; unsigned long is long enough.
35098         Don't bother to get suffix since we don't use it.
35099
35100 2000-12-26  Jim Meyering  <meyering@lucent.com>
35101
35102         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
35103         better with autoheader.
35104
35105 2000-12-24  Jim Meyering  <meyering@lucent.com>
35106
35107         * lib/hash.c (is_prime): Return explicit boolean values.
35108         (hash_get_first): Return NULL to appease Irix5.6's 89.
35109         Reported by Nelson Beebe.
35110
35111 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
35112
35113         * lib/localcharset.c (locale_charset): Add support for Win32.
35114
35115 2000-12-18  Paul Eggert  <eggert@twinsun.com>
35116
35117         * lib/physmem.h, lib/physmem.c: New files.
35118
35119         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
35120         (noinst_HEADERS): Add physmem.h.
35121
35122         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
35123         't' for compatibility with Solaris 8 sort.
35124
35125 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
35126
35127         * lib/config.charset: Add support for BeOS.
35128
35129 2000-12-17  Jim Meyering  <meyering@lucent.com>
35130
35131         * m4/dos.m4 (jm_AC_DOS): New file and macro.
35132         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
35133
35134 2000-12-16  Jim Meyering  <meyering@lucent.com>
35135
35136         This bug had a serious impact on chown: `chown N:M FILE' (for integer
35137         N and M) would have treated it like `chown N:N FILE'.
35138
35139         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
35140
35141 2000-12-16  Jim Meyering  <meyering@lucent.com>
35142
35143         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
35144         SHELLS_FILE to a file name that's useful on djgpp systems.
35145         Include stdlib.h.
35146         (ADDITIONAL_DEFAULT_SHELLS): Define.
35147         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
35148         Based mostly on a patch from Prashant TR.
35149
35150 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
35151
35152         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
35153         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
35154         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
35155
35156 2000-12-08  Andreas Schwab  <schwab@suse.de>
35157
35158         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
35159         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
35160
35161 2000-12-07  Jim Meyering  <meyering@lucent.com>
35162
35163         * lib/stripslash.c (ISSLASH): Define.
35164         (strip_trailing_slashes): Use ISSLASH rather than comparing against
35165         `/'.
35166         From Prashant TR.
35167
35168         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
35169         (dir_name_r): Declare this function as static.
35170         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
35171         manifest itself on a name containing a mix of slashes and
35172         backslashes.
35173         Make this function work with names starting with a DOS-style
35174         drive letter and colon prefix.
35175         (dir_name): Append `.' if necessary.
35176         Based mostly on patches from Prashant TR and Eli Zaretskii.
35177
35178         * lib/dirname.h (dir_name_r): Remove prototype.
35179
35180 2000-12-06  Paul Eggert  <eggert@twinsun.com>
35181
35182         * m4/off_t-format.m4: Remove this file.
35183         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
35184
35185 2000-12-06  Jim Meyering  <meyering@lucent.com>
35186
35187         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
35188         replacement strtoull, we may well need the replacement strtoul, too.
35189         Check for declarations of strtoul and strtoull.
35190         Check for strtol.  Mainly as a cue to cause automake to include
35191         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
35192         Check for limits.h -- strtol.c needs it.
35193
35194 2000-12-05  Jim Meyering  <meyering@lucent.com>
35195
35196         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
35197
35198 2000-12-04  Jim Meyering  <meyering@lucent.com>
35199
35200         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
35201         Also include memory.h, stdlib.h, unistd.h if appropriate.
35202         Reported by Andreas Jaeger (conflicting declaration of malloc).
35203
35204 2000-12-02  Jim Meyering  <meyering@lucent.com>
35205
35206         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
35207         * m4/jm-macros.m4 (jm_MACROS): require it.
35208
35209 2000-12-02  Jim Meyering  <meyering@lucent.com>
35210
35211         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
35212
35213 2000-12-01  Paul Eggert  <eggert@twinsun.com>
35214
35215         * lib/memrchr.c: Include <config.h> before any system include file.
35216
35217 2000-11-30  Jim Meyering  <meyering@lucent.com>
35218
35219         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
35220
35221 2000-11-30  Jim Meyering  <meyering@lucent.com>
35222
35223         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
35224
35225 2000-11-29  Paul Eggert  <eggert@twinsun.com>
35226
35227         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
35228
35229 2000-11-26  Jim Meyering  <meyering@lucent.com>
35230
35231         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
35232
35233 2000-11-22  Paul Eggert  <eggert@twinsun.com>
35234
35235         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
35236         size of (size_t) -1; it's not portable.
35237
35238 2000-11-17  Jim Meyering  <meyering@lucent.com>
35239
35240         * lib/strstr.c: Update from GNU libc.
35241
35242 2000-11-17  Akim Demaille  <akim@epita.fr>
35243
35244         * lib/obstack.h: Formatting changes.
35245         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
35246         prevent type checking.
35247         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
35248         cast the value to (void *): assigning a `foo *' to a `void *'
35249         variable is valid.
35250         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
35251
35252 2000-11-16  Jim Meyering  <meyering@lucent.com>
35253
35254         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
35255
35256 2000-11-11  Jim Meyering  <meyering@lucent.com>
35257
35258         * lib/error.c: Add a couple #includes, merging from GNU libc version.
35259
35260 2000-11-10  Jim Meyering  <meyering@lucent.com>
35261
35262         * lib/obstack.h: Update from GNU libc.
35263         * lib/obstack.c: Likewise.
35264
35265 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
35266
35267         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
35268
35269 2000-11-06  Paul Eggert  <eggert@twinsun.com>
35270
35271         * lib/getusershell.c (setusershell): Use rewind rather than
35272         fseek/fseeko, to avoid configuration hassles with fseeko.
35273         Don't bother opening SHELLS_FILE if shellstream is NULL;
35274         it's not necessary.
35275
35276 2000-11-05  Jim Meyering  <meyering@lucent.com>
35277
35278         * lib/makepath.h (make_dir): Declare.
35279         * lib/makepath.c (make_dir): Remove `static' attribute.
35280         Tweak a comment.
35281
35282 2000-11-04  Jim Meyering  <meyering@lucent.com>
35283
35284         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
35285
35286 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
35287
35288         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
35289         last one in a bucket, advance to the next bucket.
35290
35291 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
35292
35293         * lib/fnmatch.c: Do not comment out all the code if we are using
35294         the GNU C library, because in some cases we are replacing buggy
35295         code in the GNU C library itself.
35296
35297 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
35298
35299         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
35300         (regex_compile): Catch bogus \(\1\).
35301
35302 2000-10-30  Paul Eggert  <eggert@twinsun.com>
35303
35304         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
35305         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
35306         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
35307
35308 2000-10-30  Paul Eggert  <eggert@twinsun.com>
35309
35310         * lib/error.h, getline.h, modechange.h:
35311         Remove "2000" from Copyright line, as the file hasn't been
35312         changed this year other than in the copyright notice.
35313
35314         * lib/xalloc.h: Add "2000" to Copyright line, as this file
35315         was changed this year.
35316
35317 2000-10-29  Jim Meyering  <meyering@lucent.com>
35318
35319         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
35320         renaming.
35321         * m4/ls-mntd-fs.m4: Likewise
35322
35323 2000-10-29  Jim Meyering  <meyering@lucent.com>
35324
35325         * lib/xstat.in: Fix grammar in comment.
35326
35327 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
35328
35329         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
35330         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
35331         doesn't define __restrict_arr.
35332
35333 2000-10-28  Jim Meyering  <meyering@lucent.com>
35334
35335         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
35336         (jm_PREREQ_MEMCHR): New function.
35337
35338 2000-10-28  Jim Meyering  <meyering@lucent.com>
35339
35340         * lib/memchr.c: Update from libc.
35341         Adjust for portability:
35342         [HAVE_STDLIB_H]: Include stdlib.h.
35343         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
35344         Undef __memchr, too.
35345         [!weak_alias]: Define __memchr to memchr.
35346
35347         * lib/regex.c: Update from libc.
35348         * lib/regex.h: Likewise.
35349         * lib/getopt1.c: Likewise.
35350         * lib/memcmp.c: Likewise.
35351
35352         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
35353         Avoid using fseek, when possible -- it's broken by design.
35354         Patch by Ulrich Drepper.
35355
35356 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
35357
35358         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
35359         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
35360         Giving in to popular pressure to shut up the compiler with casts.
35361
35362 2000-10-26  Jim Meyering  <meyering@lucent.com>
35363
35364         * lib/strftime.c: Update from libc.
35365
35366 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
35367
35368         * regex.c: More `unsigned char' -> `re_char' changes.
35369         Also change several `int' into `re_wchar_t'.
35370         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
35371         (PUSH_FAILURE_POINTER): Don't cast any more.
35372         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
35373         We want GCC to complain, since this piece of code makes
35374         re_match non-reentrant, which *should* be fixed.
35375         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
35376         (EXTEND_BUFFER): Use RETALLOC.
35377         (SET_LIST_BIT): Don't cast.
35378         (re_wchar_t): New type.
35379         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
35380         that those two functions will always properly return.
35381         (IMMEDIATE_QUIT_CHECK): Cast to void.
35382         (analyse_first): Use recursion rather than an explicit stack.
35383         (re_compile_fastmap): Can't fail anymore.
35384         (re_search_2): Don't check re_compile_fastmap for failure.
35385         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
35386         Now also sets the new value (passed in a new argument).
35387         (re_match_2_internal): Use it.
35388         Also, use a new var `reg' of type size_t when looping through regs
35389         rather than reuse the inappropriate `mcnt'.
35390
35391 2000-10-25  Jim Meyering  <meyering@lucent.com>
35392
35393         * lib/obstack.c: Update from libc.
35394
35395 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
35396
35397         * regex.c (regex_compile): Change the way of handling a range from
35398         a char less than 256 to a char not less than 256.
35399
35400 2000-10-24  Andrew Innes  <andrewi@gnu.org>
35401
35402         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
35403         NT-Emacs only.
35404         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
35405         so that re_search functions only quit when callers expect them to.
35406
35407 2000-10-23  Jim Meyering  <meyering@lucent.com>
35408
35409         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
35410         wrong.  That set_locale call must not have any side effects.
35411         From Paul Eggert.
35412
35413 2000-10-22  Jim Meyering  <meyering@lucent.com>
35414
35415         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
35416         [CYCLIC]: Remove now-unused definition.
35417
35418         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
35419         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
35420         Suggestion from Ulrich Drepper.
35421
35422 2000-10-21  Jim Meyering  <meyering@lucent.com>
35423
35424         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
35425         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
35426         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
35427
35428 2000-10-21  Jim Meyering  <meyering@lucent.com>
35429
35430         * lib/dirname.c (memrchr): Declare if necessary.
35431         (dir_name): Remove the restriction that there be no
35432         trailing slashes.  Now, this code skips past them, effectively
35433         ignoring them.
35434         [TEST_DIRNAME] (main): New unit tests.
35435
35436         * lib/memrchr.c: New file from GNU libc.
35437         Undef __memrchr, too.
35438         [!weak_alias]: Define __memrchr to memrchr.
35439         Guard weak_alias use with `#ifdef weak_alias'.
35440
35441 2000-10-21  Jim Meyering  <meyering@lucent.com>
35442
35443         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
35444         (dir_name): Use dir_name_r.
35445         * lib/dirname.h (dir_name_r): Declare it.
35446
35447 2000-10-17  Jim Meyering  <meyering@lucent.com>
35448
35449         * lib/quote.h (PARAMS): Define and use.
35450         Reported by Akim Demaille.
35451
35452         * lib/getopt.c: Update from libc.
35453
35454 2000-10-16  Jim Meyering  <meyering@lucent.com>
35455
35456         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
35457         setlocale.
35458         From Jan Fedak.
35459
35460 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
35461
35462         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
35463
35464 2000-09-25  Jim Meyering  <meyering@lucent.com>
35465
35466         * lib/md5.h (rol): Define (from GnuPG).
35467
35468         * lib/sha.c: Give credit (GnuPG) where due.
35469         (M): Use rol rather than open-coding it.
35470         Add a FIXME comment.
35471
35472 2000-09-21  Jim Meyering  <meyering@lucent.com>
35473
35474         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
35475         Reported by Michael Stone.
35476
35477 2000-09-20  Jim Meyering  <meyering@lucent.com>
35478
35479         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
35480         (noinst_HEADERS): Add sha.h.
35481         Based on code from Scott G. Miller and from GnuPG.
35482
35483 2000-09-18  Jim Meyering  <meyering@lucent.com>
35484
35485         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
35486         LIBS. Otherwise, everyone ends up linking with -lelf for some
35487         configurations.
35488         Reported by Mike Stone.
35489
35490 2000-09-15  Jim Meyering  <meyering@lucent.com>
35491
35492         * lib/regex.c: Update from libc.
35493
35494 2000-09-10  Jim Meyering  <meyering@lucent.com>
35495
35496         * lib/getopt.c (_getopt_internal): Update from glibc.
35497
35498 2000-09-09  Jim Meyering  <meyering@lucent.com>
35499
35500         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
35501         think it should be used as a general replacement for isascii.
35502         * lib/fnmatch.c: Likewise.
35503         * lib/mbswidth.c: Likewise
35504         * lib/regex.c: Likewise.
35505
35506         Don't use atoi.
35507         * lib/userspec.c: Include sys/param.h and limits.h.
35508         Include xstrtol.h.
35509         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
35510         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
35511         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
35512         UID, GID.  Check range.
35513
35514 2000-09-06  Jim Meyering  <meyering@lucent.com>
35515
35516         * lib/getopt.c (_getopt_internal): Update from glibc.
35517
35518 2000-08-30  Jim Meyering  <meyering@lucent.com>
35519
35520         * lib/strftime.c: Merge in changes from GNU libc.
35521
35522 2000-08-26  Jim Meyering  <meyering@lucent.com>
35523
35524         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
35525         * m4/fpending.m4: New file.
35526
35527 2000-08-26  Jim Meyering  <meyering@lucent.com>
35528
35529         * lib/closeout.c: Include "__fpending.h".
35530         (close_stdout_status): Return right away if there's nothing to flush.
35531
35532         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
35533         * lib/__fpending.c: New file.
35534         * lib/__fpending.h: New file.
35535
35536 2000-08-20  Jim Meyering  <meyering@lucent.com>
35537
35538         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
35539         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
35540         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
35541
35542 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
35543
35544         Improve fileutils installation on systems where running
35545         programs (like install) can't be unlinked.
35546         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
35547         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
35548
35549 2000-08-07  Paul Eggert  <eggert@twinsun.com>
35550
35551         Standardize on "memory exhausted" instead of "Memory exhausted"
35552         or "virtual memory exhausted".
35553         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
35554         "virtual memory exhausted".
35555         * lib/same.c (same_name): Invoke xalloc_die instead of printing
35556         our own message.
35557         * lib/userspec.c (parse_user_spec): Likewise.
35558         * lib/bumpalloc.h: comment fix
35559         * lib/same.c, userspec.c: Include xalloc.h.
35560
35561         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
35562         not char *const and pointing to a constant array.
35563         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
35564         (xrealloc): Comment fix.
35565
35566         * lib/userspec.c (parse_user_spec):
35567         Don't translate a message until just before returning,
35568         to avoid unnecessary translation.
35569
35570 2000-08-07  Jim Meyering  <meyering@lucent.com>
35571
35572         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
35573         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
35574         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
35575         getgroups.c, gethostname.c, getopt.h, group-member.c,
35576         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
35577         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
35578         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
35579         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
35580         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
35581         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
35582         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
35583         yesno.c: Back out Copyright date changes for each file with no change
35584         this year.  This eases coordination with other programs using the same
35585         source code modules.  From Paul Eggert.
35586
35587 2000-08-06  Paul Eggert  <eggert@twinsun.com>
35588
35589         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
35590         not char, for compatibility with glibc 2.1.3 strftime.c.
35591
35592 2000-08-03  Greg McGary  <greg@mcgary.org>
35593
35594         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
35595         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
35596         (EXTEND_BUFFER): Use them.
35597
35598 2000-08-01  Jim Meyering  <meyering@lucent.com>
35599
35600         * lib/dirname.c (ISSLASH): Define.
35601         (BACKSLASH_IS_PATH_SEPARATOR): Define.
35602         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
35603         both `\' and `/' may be use as path separators.
35604         Based on a patch from Prashant TR.
35605
35606 2000-07-31  Paul Eggert  <eggert@twinsun.com>
35607
35608         * lib/quotearg.c (quotearg_n_options): Don't make the initial
35609         slot vector a constant, since it might get modified.
35610
35611 2000-07-31  Jim Meyering  <meyering@lucent.com>
35612
35613         * lib/xmalloc.c: Use `virtual memory exhausted', not
35614         `Memory exhausted'.
35615         * lib/obstack.c (print_and_abort): Likewise.
35616
35617 2000-07-30  Paul Eggert  <eggert@twinsun.com>
35618
35619         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
35620         buffer, so that the caller can always quote one small
35621         component of a "memory exhausted" message in slot 0.
35622         From a suggestion by Jim Meyering.
35623
35624 2000-07-30  Jim Meyering  <meyering@lucent.com>
35625
35626         * lib/makepath.c (make_path): Quote the other instance, too.
35627
35628         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
35629         (STATIC_BUF_SIZE): Define.
35630         (quotearg_n_options): Use only statically allocated storage when
35631         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
35632         than STATIC_BUF_SIZE.
35633
35634 2000-07-29  Jim Meyering  <meyering@lucent.com>
35635
35636         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
35637         * lib/dirname.c (dir_name): Likewise.
35638
35639         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
35640         `/'.
35641
35642         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
35643         (dir_name): Assert that there are no trailing slashes.
35644
35645 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
35646
35647         * lib/mbswidth.h (mbswidth): Add a flags argument.
35648         (mbswidth): New declaration.
35649         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
35650         * lib/mbswidth.c (mbswidth): Add a flags argument.
35651         (mbsnwidth): New function.
35652
35653 2000-07-24  Jim Meyering  <meyering@lucent.com>
35654
35655         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
35656
35657 2000-07-23  Paul Eggert  <eggert@twinsun.com>
35658
35659         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
35660
35661 2000-07-23  Paul Eggert  <eggert@twinsun.com>
35662
35663         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
35664         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
35665         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
35666         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
35667         invoke multibyte primitives.
35668
35669 2000-07-23  Paul Eggert  <eggert@twinsun.com>
35670
35671         * lib/quotearg.c:
35672         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
35673         so that mbstate_t is always defined.
35674
35675         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
35676         be 1 in at least one GCC installation, and this configuration
35677         error is likely to be common.  Ignoring MB_LEN_MAX hurts
35678         performance on hosts that have mbrtowc but have only unibyte
35679         locales, but I assume these hosts are rare.
35680
35681 2000-07-23  Paul Eggert  <eggert@twinsun.com>
35682
35683         * lib/mbswidth.c (_XOPEN_SOURCE):
35684         Don't define; this causes problems on Solaris 7.
35685         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
35686
35687 2000-07-23  Jim Meyering  <meyering@lucent.com>
35688
35689         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
35690         too: getgrgid, getpwuid, getuid.
35691
35692 2000-07-23  Jim Meyering  <meyering@lucent.com>
35693
35694         * lib/basename.c (base_name): Add an assertion.
35695
35696 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
35697
35698         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
35699         shadow its mbsinit function.
35700
35701 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
35702
35703         * lib/mbswidth.h: New file.
35704         * lib/mbswidth.c: New file.
35705         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
35706         (noinst_HEADERS): Add mbswidth.h.
35707
35708 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
35709
35710         * lib/config.charset: Add support for FreeBSD. Improve support for
35711         HP-UX and IRIX 6.
35712
35713 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
35714
35715         * m4/mbswidth.m4: New file.
35716         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
35717
35718 2000-07-15  Jim Meyering  <meyering@lucent.com>
35719
35720         * lib/makepath.c: Include quote.h.
35721         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
35722         corresponding argument in a `quote (...)' call.
35723         Give better diagnostics.
35724
35725         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
35726         (noinst_HEADERS): Add quote.h.
35727
35728         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
35729         from tar's src/misc.c.
35730         * lib/quote.h: New file.  Prototypes for same.
35731
35732 2000-07-14  Paul Eggert  <eggert@twinsun.com>
35733
35734         From a suggestion by Bruno Haible.
35735         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
35736         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
35737         to decide whether to define the BeOS workaround macro;
35738         this adjusts to the change to AC_MBSTATE_T.
35739
35740 2000-07-14  Jim Meyering  <meyering@lucent.com>
35741
35742         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
35743         jm_AC_TYPE_UINTMAX_T.
35744
35745 2000-07-13  Paul Eggert  <eggert@twinsun.com>
35746
35747         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
35748
35749         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
35750         quotearg_buffer_restyled): Add support for
35751         clocale_quoting_style.  Undo previous change to
35752         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
35753         and "{RIGHT QUOTATION MARK}" msgids.
35754
35755 2000-07-10  Paul Eggert  <eggert@twinsun.com>
35756
35757         From a suggestion by Bruno Haible.
35758         * m4/mbstate_t.m4 (AC_MBSTATE_T):
35759         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
35760         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
35761         and mbstate_t, to a single-part test that simply defines mbstate_t.
35762         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
35763         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
35764
35765 2000-07-10  Jim Meyering  <meyering@lucent.com>
35766
35767         * m4/strerror_r.m4: Mirror the correction made in autoconf.
35768
35769         * m4/gnu-source.m4: Output to confdefs.h directly.
35770         Suggestion from Akim Demaille.
35771
35772 2000-07-09  Paul Eggert  <eggert@twinsun.com>
35773
35774         The old behavior of quoting `like this' doesn't look good with
35775         newer, ISO-style fonts.  See:
35776         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
35777
35778         Instead, quote "like this" by default.  Let the translator
35779         tailor the locale-specific quoting behavior by providing
35780         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
35781
35782         * lib/quotearg.c (N_): New macro.
35783         (gettext_default): New function.
35784         (quotearg_buffer_restyled): Use
35785         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
35786         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
35787
35788 2000-07-09  Jim Meyering  <meyering@lucent.com>
35789
35790         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
35791         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
35792
35793         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
35794         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
35795
35796 2000-07-09  Jim Meyering  <meyering@lucent.com>
35797
35798         * lib/Most files: Update copyright dates to include 2000.
35799
35800 2000-07-08  Jim Meyering  <meyering@lucent.com>
35801
35802         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
35803         if not defined.
35804         (xgethostname): Remove now-unnecessary #ifdef.
35805         Move declaration of `err' into loop where it's used.
35806
35807 2000-07-05  Paul Eggert  <eggert@twinsun.com>
35808         and Bruno Haible  <haible@clisp.cons.org>
35809
35810         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
35811         only if the test for an object-type mbstate_t fails.  This
35812         prevents us from mistakenly reporting that mbstate_t is a
35813         system object type after we "#define mbstate_t int" to work
35814         around its lack.
35815
35816 2000-07-05  Paul Eggert  <eggert@twinsun.com>
35817         and Bruno Haible  <haible@clisp.cons.org>
35818
35819         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
35820
35821 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
35822
35823         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
35824         to strerror_r.
35825         Include <ctype.h> for use of isalpha.
35826
35827 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
35828
35829         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
35830         by allocating a larger buffer. Test the gethostname return value for
35831         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
35832         returns an error and ENAMETOOLONG isn't defined.
35833
35834 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
35835
35836         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
35837         dimension.
35838
35839 2000-07-04  Jim Meyering  <meyering@lucent.com>
35840
35841         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
35842         of the deprecated AC_CHECKING.
35843
35844 2000-07-04  Jim Meyering  <meyering@lucent.com>
35845
35846         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
35847         Reported by Bruno Haible.
35848
35849 2000-07-04  Jim Meyering  <meyering@lucent.com>
35850
35851         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
35852         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
35853         lacks mbrtowc.
35854
35855 2000-07-03  Paul Eggert  <eggert@twinsun.com>
35856
35857         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
35858         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
35859
35860 2000-07-03  Paul Eggert  <eggert@twinsun.com>
35861         and Bruno Haible  <haible@clisp.cons.org>
35862
35863         * lib/quotearg.c (mbrtowc):
35864         Assign to *pwc, and return 1 only if result is nonzero.
35865         (iswprint): Use ISPRINT when substituting our own mbrtowc.
35866
35867 2000-07-03  Jim Meyering  <meyering@lucent.com>
35868
35869         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
35870
35871 2000-07-03  Jim Meyering  <meyering@lucent.com>
35872
35873         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
35874         This is necessary to get a definition of e.g., UTMP_FILE on
35875         HP-UX 10.20.
35876         From Bob Proulx.
35877
35878 2000-07-02  Jim Meyering  <meyering@lucent.com>
35879
35880         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
35881
35882         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
35883         AC_LIBOBJ(function_name).
35884         * m4/chown.m4: Likewise.
35885         * m4/fnmatch.m4: Likewise.
35886         * m4/ftruncate.m4: Likewise.
35887         * m4/getgroups.m4: Likewise.
35888         * m4/getline.m4: Likewise.
35889         * m4/group-member.m4: Likewise.
35890         * m4/jm-macros.m4: Likewise.
35891         * m4/lstat.m4: Likewise.
35892         * m4/malloc.m4: Likewise.
35893         * m4/memcmp.m4: Likewise.
35894         * m4/nanosleep.m4: Likewise.
35895         * m4/putenv.m4: Likewise.
35896         * m4/realloc.m4: Likewise.
35897         * m4/regex.m4: Likewise.
35898         * m4/stat.m4: Likewise.
35899         * m4/strftime.m4: Likewise.
35900
35901 2000-07-02  Jim Meyering  <meyering@lucent.com>
35902
35903         * lib/quotearg.c (mbstate_t): Don't define here.
35904
35905 2000-07-02  Jim Meyering  <meyering@lucent.com>
35906
35907         * lib/nanosleep.c (SIGCONT): Define if not already defined.
35908
35909 2000-07-01  Jim Meyering  <meyering@lucent.com>
35910
35911         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
35912
35913 2000-07-01  Jim Meyering  <meyering@lucent.com>
35914
35915         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
35916         problem.
35917
35918 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
35919
35920         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
35921         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
35922
35923 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
35924
35925         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
35926         per change in ../m4/ls-mntd-fs.m4.
35927         (read_filesystem_list): Ignore symbolic links.
35928
35929 2000-06-29  Jim Meyering  <meyering@lucent.com>
35930
35931         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
35932         for declaration of strcmp.
35933
35934         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
35935
35936         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
35937         Avoid warning by casting result to `char *' to remove `const'.
35938
35939 2000-06-28  Jim Meyering  <meyering@lucent.com>
35940
35941         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
35942         included by quotearg.c, for which we perform this test.  From
35943         Bruno Haible.
35944
35945 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
35946
35947         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
35948         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
35949         <utmpx.h> exists, put readutmp.o into LIBOBJS.
35950
35951 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
35952
35953         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
35954
35955 2000-06-26  Paul Eggert  <eggert@twinsun.com>
35956
35957         savedir now sets errno on failure and invokes xmalloc to get memory.
35958         Fix a couple of other minor bugs while we're at it.
35959
35960         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
35961         (NAMLEN): Remove macro.
35962         (malloc, realloc): Remove decls.
35963         (stpcpy): Likewise.
35964         ("xalloc.h"): Include.
35965         (NAME_SIZE_DEFAULT): New macro.
35966         (savedir): Use xmalloc / xrealloc to allocate memory.
35967         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
35968         Skip "" directory entries.
35969         Use strlen to calculate directory entry length, since the old method
35970         is rarely used these days and isn't worth supporting.
35971         Don't use a pointer after freeing it.
35972         Check for integer overflow when calculating allocation size.
35973         Use memcpy to copy entries, instead of stpcpy.
35974         Set errno properly when returning NULL.
35975         Check for readdir error.
35976
35977 2000-06-26  Jim Meyering  <meyering@lucent.com>
35978
35979         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
35980
35981 2000-06-25  Jim Meyering  <meyering@lucent.com>
35982
35983         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
35984         Linux header bug when _XOPEN_SOURCE is defined to 500.
35985
35986 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
35987
35988         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
35989         deficiency.
35990
35991 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
35992
35993         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
35994         Include xalloc.h.
35995         Don't include <stdlib.h>.  Don't declare malloc, realloc.
35996
35997 2000-06-24  Jim Meyering  <meyering@lucent.com>
35998
35999         * m4/strerror_r.m4: Revive this file -- to try out an experimental
36000         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
36001         for which strerror does return char*, but which lacks a conveniently
36002         accessible declaration of the function.  If the compile-test says
36003         strerror_r doesn't work, then resort to a `run'-test that works on
36004         BeOS and segfaults on DEC Unix.
36005
36006 2000-06-24  Jim Meyering  <meyering@lucent.com>
36007
36008         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
36009
36010 2000-06-23  Paul Eggert  <eggert@twinsun.com>
36011
36012         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
36013         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
36014
36015 2000-06-23  Paul Eggert  <eggert@twinsun.com>
36016
36017         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
36018         (mbrtowc, mbstate_t): Define substitutes if
36019         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
36020         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
36021         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
36022
36023 2000-06-23  Jim Meyering  <meyering@lucent.com>
36024
36025         * m4/afs.m4: Add missing AC_MSG_RESULT.
36026         Reported by Bruno Haible.
36027
36028         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
36029         Suggestion from Bruno Haible.
36030
36031 2000-06-23  Jim Meyering  <meyering@lucent.com>
36032
36033         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
36034
36035 2000-06-21  Jim Meyering  <meyering@lucent.com>
36036
36037         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
36038
36039 2000-06-21  Jim Meyering  <meyering@lucent.com>
36040
36041         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
36042         (noinst_HEADERS): Add getstr.h.
36043
36044         * lib/getline.c (getstr): Move into a separate file.
36045         * lib/getstr.c (getstr): New file, extracted from getline.c, with
36046         the following changes: new parameter, delim2; both delim[12]
36047         parameters have type `int', not `char'.  The latter would lose
36048         with 8-bit delimiters.
36049         * lib/getstr.h: New file.
36050
36051 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
36052
36053         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
36054         than 1024, return a memory chunk of least possible size, instead
36055         of size PATH_MAX + 2. In the loop, increment the size proportionally.
36056         Use free/xmalloc instead of xrealloc to avoid copying for very long
36057         paths.
36058
36059 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
36060
36061         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
36062         the empty string.
36063
36064 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
36065
36066         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
36067         address, not strdup.  Include <stdlib.h> and don't declare free().
36068
36069 2000-06-19  Jim Meyering  <meyering@lucent.com>
36070
36071         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
36072
36073 2000-06-18  Jim Meyering  <meyering@lucent.com>
36074
36075         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
36076
36077         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
36078         `checking whether...' message to be consistent with that of the
36079         lstat test.
36080
36081 2000-06-18  Jim Meyering  <meyering@lucent.com>
36082
36083         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
36084         Besides, these days every porting target provides a mkdir function.
36085
36086         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
36087         needed. (this snippet comes from src/system.h).
36088
36089 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
36090
36091         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
36092
36093 2000-06-15  Paul Eggert  <eggert@twinsun.com>
36094
36095         * lib/human.c (adjust_value): New function.
36096         (human_readable_inexact): Apply rounding style even when
36097         printing approximate values.
36098
36099 2000-06-14  Paul Eggert  <eggert@twinsun.com>
36100
36101         * lib/human.c (human_readable_inexact): Allow an input block
36102         size that is not a multiple of the output block size, and vice versa.
36103         Reported by Piergiorgio Sartor.
36104
36105 2000-06-14  Paul Eggert  <eggert@twinsun.com>
36106
36107         * lib/getdate.y (get_date): Apply relative times after time
36108         zone indicator, not before.  Reported by Todd A. Jacobs.
36109
36110 2000-06-13  Jim Meyering  <meyering@lucent.com>
36111
36112         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
36113
36114         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
36115
36116 2000-06-12  Paul Eggert  <eggert@twinsun.com>
36117
36118         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
36119
36120 2000-06-12  Jim Meyering  <meyering@lucent.com>
36121
36122         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
36123         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
36124         optional argument.
36125         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
36126         the optional argument, `lib'.
36127
36128 2000-06-08  Jim Meyering  <meyering@lucent.com>
36129
36130         * m4/largefile.m4: Remove file (now that it's part of autoconf).
36131
36132 2000-06-04  Paul Eggert  <eggert@twinsun.com>
36133
36134         Rewrite largefile configuration so that we don't need to run
36135         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
36136         AC_CANONICAL_HOST in configure.in -- jmm]
36137
36138         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
36139         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
36140         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
36141         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
36142         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
36143         All uses changed.
36144         Instead of inspecting the output of getconf, try to compile the
36145         test program without and with the macro definition.
36146         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
36147         for getconf.  Instead, check for the needed flags by compiling
36148         test programs.
36149
36150 2000-06-04  Paul Eggert  <eggert@twinsun.com>
36151
36152         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
36153
36154 2000-06-04  Jim Meyering  <meyering@lucent.com>
36155
36156         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
36157         SunOS 4.1.4 for which gid_t is an unsigned type.
36158
36159 2000-06-03  Jim Meyering  <meyering@lucent.com>
36160
36161         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
36162         now that autoconf requires that.
36163
36164         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
36165         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
36166         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
36167
36168 2000-06-03  Jim Meyering  <meyering@lucent.com>
36169
36170         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
36171
36172 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
36173
36174         * m4/glibc21.m4: New file.
36175         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
36176
36177 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
36178
36179         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
36180         newer, don't install charset.alias.
36181         * lib/config.charset: Change the Linux/glibc rules so they become empty
36182         on glibc-2.1 or newer.
36183
36184 2000-06-02  Jim Meyering  <meyering@lucent.com>
36185
36186         * lib/mountlist.c: Back out last change.  Instead, do this...
36187         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
36188         me_dummy member using the same `ignore'-testing code.
36189         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
36190         fs_type strings.
36191         From Mark D. Roth.
36192
36193 2000-05-29  Jim Meyering  <meyering@lucent.com>
36194
36195         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
36196         mounts with the `ignore' attribute.  Based on a patch from
36197         Mark D. Roth.
36198
36199 2000-05-28  Jim Meyering  <meyering@lucent.com>
36200
36201         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
36202         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
36203         * m4/stat.m4: Likewise.
36204         * m4/lstat.m4: Likewise.
36205         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
36206
36207         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
36208         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
36209
36210 2000-05-26  Jim Meyering  <meyering@lucent.com>
36211
36212         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
36213
36214 2000-05-24  Jim Meyering  <meyering@lucent.com>
36215
36216         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
36217         autoconf requires that.
36218         * m4/lib-check.m4: Likewise.
36219         * m4/jm-macros.m4: Likewise.
36220         * m4/strftime.m4: Likewise.
36221
36222         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
36223         AC_CHECK_DECLS, now that autoconf requires that.
36224
36225 2000-05-22  Jim Meyering  <meyering@lucent.com>
36226
36227         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
36228         * m4/lstat.m4: Likewise.
36229
36230 2000-05-22  Jim Meyering  <meyering@lucent.com>
36231
36232         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
36233
36234 2000-05-20  Jim Meyering  <meyering@lucent.com>
36235
36236         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
36237         (jm_PREREQ): Use it.
36238
36239 2000-05-18  Jim Meyering  <meyering@lucent.com>
36240
36241         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
36242         back, too, since it may have been modified by allocate_entry.
36243         (hash_delete): Rewrite to use neither the assignment operator
36244         nor the comma operator in an if-expression.
36245
36246 2000-05-15  Paul Eggert  <eggert@twinsun.com>
36247
36248         * lib/closeout.c:
36249         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
36250         Remove; no longer needed.
36251         "quotearg.h": Add include.
36252         (file_name): Do not bother to explicitly initialize to NULL; it's less
36253         efficient on some hosts.
36254         (close_stdout_status): Remove test as to whether stdout was already
36255         closed; it breaks for the case "echo x | sort >&-".
36256         Quote file name colons.
36257         Do not assume that _("write error") lacks format strings.
36258
36259 2000-05-15  Jim Meyering  <meyering@lucent.com>
36260
36261         * lib/version-etc.c (version_etc_copyright): Update the copyright
36262         string used in all --version output.
36263
36264 2000-05-14  Jim Meyering  <meyering@lucent.com>
36265
36266         * lib/closeout.c (close_stdout_set_file_name): New function.
36267         (close_stdout_status): Use new file-scoped global.
36268         Return right away if fstat says the stdout file descriptor is invalid.
36269         * lib/closeout.h (close_stdout_set_file_name): Declare.
36270
36271 2000-05-10  Jim Meyering  <meyering@lucent.com>
36272
36273         * lib/closeout.c [default_exit_status]: New file-scoped variable.
36274         (close_stdout_set_status): New function.
36275         * lib/closeout.h (close_stdout_set_status): Declare.
36276
36277 2000-05-09  Jim Meyering  <meyering@lucent.com>
36278
36279         * m4/gettext.m4: Rename this...
36280         * m4/libintl.m4: ...to this.
36281
36282 2000-05-08  Jim Meyering  <meyering@lucent.com>
36283
36284         * lib/long-options.c: Don't include closeout.h.
36285         (parse_long_options): Don't call close_stdout for --version.
36286
36287 2000-05-06  Paul Eggert  <eggert@twinsun.com>
36288
36289         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
36290         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
36291         2.1.3 bug.  This avoids a clash when files like regex.c define
36292         _GNU_SOURCE.
36293
36294 2000-05-06  Jim Meyering  <meyering@lucent.com>
36295
36296         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
36297         (AC_REPLACE_FUNCS): Add strnlen.
36298
36299         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
36300         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
36301
36302         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
36303         AC_SEARCH_LIBS call for nanosleep.
36304         (LIB_NANOSLEEP): Set and AC_SUBST.
36305
36306 2000-05-06  Jim Meyering  <meyering@lucent.com>
36307
36308         * lib/strnlen.c: Undefine __strnlen and strnlen.
36309         [!weak_alias]: Define __strnlen to strnlen.
36310
36311         * lib/atexit.c: New file, from libiberty.
36312
36313 2000-05-06  Jim Meyering  <meyering@lucent.com>
36314
36315         * lib/closeout.c (close_stdout_status): Also check for errors on the
36316         stderr stream.
36317
36318 2000-05-05  Jim Meyering  <meyering@lucent.com>
36319
36320         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
36321         AC_SEARCH_LIBS call for clock_gettime.
36322         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
36323
36324         * m4/search-libs.m4: Update from autoconf.
36325
36326         su doesn't work on Solaris 2.6.
36327         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
36328         <shadow.h>.  Reported by Dragos Harabor.
36329
36330 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
36331
36332         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
36333         memcpy instead of xmalloc, xrealloc, path_concat.
36334         (locale_charset): Treat empty environment variables as absent.
36335         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
36336
36337 2000-05-04  Jim Meyering  <meyering@lucent.com>
36338
36339         * lib/getopt.c: Update from glibc.
36340         * lib/obstack.c: Likewise.
36341         * lib/obstack.h: Likewise.
36342         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
36343         file
36344
36345         * lib/regex.h: Likewise.
36346         * lib/strndup.c: Likewise.
36347         * lib/strnlen.c: New file, from glibc.
36348
36349 2000-05-03  Jim Meyering  <meyering@lucent.com>
36350
36351         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
36352
36353 2000-05-02  Paul Eggert  <eggert@twinsun.com>
36354
36355         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
36356         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
36357         compile-time test, rather than inspecting host and OS, to
36358         decide whether to define _LARGEFILE_SOURCE.
36359
36360 2000-05-01  Jim Meyering  <meyering@lucent.com>
36361
36362         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
36363
36364         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
36365         Based on a patch from Bruno Haible.
36366
36367 2000-05-01  Jim Meyering  <meyering@lucent.com>
36368
36369         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
36370
36371 2000-04-29  Jim Meyering  <meyering@lucent.com>
36372
36373         * lib/path-concat.c: Declare strdup only if it's not defined.
36374         * lib/canon-host.c: Likewise.
36375
36376 2000-04-28  Jim Meyering  <meyering@lucent.com>
36377
36378         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
36379         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
36380         is included first, then limits.h is included by locale.h by libintl.h.
36381         From John David Anglin.
36382
36383 2000-04-25  Jim Meyering  <meyering@lucent.com>
36384
36385         * lib/makepath.c (S_IRWXUGO): Define.
36386         (make_path): Always perform explicit chmod if MODE specifies any
36387         of the `special' permission bits.  Prompted by a bug report against
36388         install from Mate Wierdl and Joost van Baal.
36389
36390 2000-04-18  Jim Meyering  <meyering@lucent.com>
36391
36392         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
36393         (jm_PREREQ): Use it.
36394
36395 2000-04-18  Jim Meyering  <meyering@lucent.com>
36396
36397         * lib/README: New file.
36398
36399         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
36400         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
36401
36402 2000-04-17  Jim Meyering  <meyering@lucent.com>
36403
36404         Get it right :-)
36405         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
36406         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
36407         Suggestion from Akim Demaille.
36408
36409 2000-04-17  Jim Meyering  <meyering@lucent.com>
36410
36411         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
36412         the definition of it to rpl_strftime also defined-away the system's
36413         declaration.
36414
36415 2000-04-15  Jim Meyering  <meyering@lucent.com>
36416
36417         Use `C' to denote so-called `contiguous' files, the same way
36418         that tar does.
36419         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
36420         (ftypelet): Use S_ISCTG.
36421         From Michael Deutschmann.
36422
36423 2000-04-14  Jim Meyering  <meyering@lucent.com>
36424
36425         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
36426         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
36427         clobbered.
36428
36429 2000-04-14  Jim Meyering  <meyering@lucent.com>
36430
36431         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
36432
36433 2000-04-13  Jim Meyering  <meyering@lucent.com>
36434
36435         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
36436         AH_VERBATIM to insert required #ifndef into config.h.in.
36437         Suggestion from Akim Demaille.
36438
36439 2000-04-12  Jim Meyering  <meyering@lucent.com>
36440
36441         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
36442         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
36443         Christian Krackowizer.
36444
36445         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
36446         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
36447         (AC_SYS_LARGEFILE): Require.
36448         (AM_C_PROTOTYPES): Require.
36449
36450 2000-04-08  Jim Meyering  <meyering@lucent.com>
36451
36452         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
36453         names don't conflict.  Reported by Eli Zaretskii.
36454
36455 2000-04-07  Jim Meyering  <meyering@lucent.com>
36456
36457         * lib/putenv.c: Move inclusion of errno.h so it follows that of
36458         sys/types.h, to work around system header problems on AIX 3.2.5.
36459         From Bruno Haible.
36460
36461 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
36462
36463         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
36464         bug.  Deal with the different error behavior of Irix iconv.
36465
36466 2000-04-05  Paul Eggert  <eggert@twinsun.com>
36467
36468         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
36469         IRIX if the installer said otherwise.
36470
36471 2000-04-05  Jim Meyering  <meyering@lucent.com>
36472
36473         Portability tweaks required for ultrix4.3.
36474         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
36475         (jm_CHECK_DECLS): Add getutent to the list of functions.
36476         (_jm_DECL_HEADERS): Add utmpx.h.
36477         From John David Anglin.
36478
36479         * m4/strftime.m4: Back out the 2000-04-02 change.
36480         Instead of that change, simply undefine putenv in the test program.
36481
36482 2000-04-05  Jim Meyering  <meyering@lucent.com>
36483
36484         Portability tweaks required for ultrix4.3.
36485         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
36486         getutent.
36487         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
36488         * lib/canon-host.c: Declare strdup.
36489         * lib/path-concat.c: Likewise.
36490         From John David Anglin.
36491
36492 2000-04-04  Jim Meyering  <meyering@lucent.com>
36493
36494         Be more DOS 8.3-friendly.
36495         * lib/ref-add.sin: Renamed from ref-add.sed.in.
36496         * lib/ref-del.sin: Renamed from ref-del.sed.in.
36497         * lib/Makefile.am: Reflect renaming.
36498         Reported by Eli Zaretskii.
36499
36500         Use a temporary file name that won't clash with `charset.alias'
36501         in the DOS 8.3 name space.
36502         * lib/Makefile.am (charset_tmp): Define.
36503         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
36504         (uninstall-local): Likewise.
36505         Reported by Eli Zaretskii.
36506
36507 2000-04-03  Jim Meyering  <meyering@lucent.com>
36508
36509         * m4/gettext.m4: Fix typo in comment.
36510
36511         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
36512         textutils/configure.in).  Suggestion from Paul Eggert.
36513         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
36514
36515 2000-04-02  Paul Eggert  <eggert@twinsun.com>
36516
36517         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
36518         variable in the shell rather than using putenv, which isn't
36519         portable.  This avoids the configure-time inter-test dependency
36520         on the potentially-renamed putenv function.
36521
36522 2000-03-30  Paul Eggert  <eggert@twinsun.com>
36523
36524         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
36525         before checking struct stat.st_blksize, so that
36526         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
36527
36528 2000-03-29  Paul Eggert  <eggert@twinsun.com>
36529
36530         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
36531         since strftime.c uses HAVE_STRFTIME to decide whether to use
36532         the underlying strftime.
36533
36534 2000-03-29  Paul Eggert  <eggert@twinsun.com>
36535
36536         * lib/time/strftime.c (my_strftime): Make sure we call the system
36537         strftime, not ourselves, when invoking the underlying strftime.
36538
36539 2000-03-24  Jim Meyering  <meyering@lucent.com>
36540
36541         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
36542         (charset_alias): Define.
36543         (install-exec-local): Factor out common code.
36544         (uninstall-local): Split lines longer than 80.
36545         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
36546         (SUFFIXES): Define.
36547         (.sed.in.sed): New rule.  Don't redirect directly to $@.
36548         (CLEANFILES): Add ref-add.sed and ref-del.sed.
36549
36550 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
36551
36552         * lib/config.charset: Output a line containing "Packages using this
36553         file".
36554         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
36555         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
36556         ref-del.sed): New rules.
36557
36558 2000-03-17  Jim Meyering  <meyering@lucent.com>
36559
36560         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
36561         Otherwise, include <strings.h>
36562
36563 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
36564
36565         * lib/unicodeio.c (utf8_wctomb): New function.
36566         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
36567         format instead of in UCS-4 with platform dependent endianness.
36568
36569 2000-03-10  Jim Meyering  <meyering@lucent.com>
36570
36571         * m4/lib-check.m4: Look for getspnam in -lgen, too.
36572         From Marco Franzen.
36573
36574 2000-03-07  Paul Eggert  <eggert@twinsun.com>
36575
36576         * lib/savedir.c (savedir): Work even if directory size is
36577         negative; this can happen with some screwy NFS configurations.
36578
36579 2000-03-06  Jim Meyering  <meyering@lucent.com>
36580
36581         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
36582         if it's NULL (because we ran out of memory).  From Bruno Haible.
36583
36584 2000-03-05  Jim Meyering  <meyering@lucent.com>
36585
36586         * lib/localcharset.c ("path-concat.h"): Include.
36587         (get_charset_aliases): Use path_concat instead of ANSI string
36588         concatenation.
36589
36590         * lib/unicodeio.h (PARAMS): Define.
36591         Use it to guard prototype.
36592
36593 2000-03-04  Jim Meyering  <meyering@lucent.com>
36594
36595         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
36596         for lib/localcharset.c.
36597
36598 2000-03-04  Jim Meyering  <meyering@lucent.com>
36599
36600         * lib/Makefile.am (install-exec-local): Create $(libdir) before
36601         installing into it.
36602         (uninstall-local): Uncomment this rule so `make distcheck' works
36603         once again.
36604
36605         * lib/unicodeio.c (<errno.h>): Include it.
36606         (errno): Declare if not defined.
36607
36608         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
36609
36610         * lib/config.charset: New version, incorporating remarks from a linux
36611         i18n mailing list.  From Bruno Haible.
36612
36613 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
36614
36615         * m4/codeset.m4: New file.
36616         * m4/iconv.m4: New file.
36617         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
36618
36619 2000-03-03  Jim Meyering  <meyering@lucent.com>
36620
36621         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
36622
36623 2000-03-02  Jim Meyering  <meyering@lucent.com>
36624
36625         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
36626         the messages come out on separate lines.
36627
36628         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
36629         rather than jm_CHECK_DECLARATIONS.
36630         * m4/decl.m4: Remove now-unused file.
36631
36632         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
36633         geteuid.
36634
36635 2000-03-02  Jim Meyering  <meyering@lucent.com>
36636
36637         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
36638
36639 2000-03-01  Jim Meyering  <meyering@lucent.com>
36640
36641         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
36642         * lib/unicodeio.c: Likewise.
36643
36644 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
36645
36646         * lib/config.charset: New file.
36647         * lib/localcharset.c: New file.
36648         * lib/unicodeio.h, lib/unicodeio.c: New files.
36649         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
36650         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
36651         (noinst_HEADERS): Add unicodeio.h.
36652         (all-local, install-exec-local, charset.alias): New targets.
36653
36654 2000-02-28  Paul Eggert  <eggert@twinsun.com>
36655
36656         * lib/quotearg.c (ALERT_CHAR): New macro.
36657         (quotearg_buffer_restyled): Use it.
36658
36659 2000-02-27  Jim Meyering  <meyering@lucent.com>
36660
36661         * m4/check-decl.m4: Add getenv to the list.
36662
36663 2000-02-27  Jim Meyering  <meyering@lucent.com>
36664
36665         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
36666         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
36667
36668         * lib/backupfile.c: Guard inclusion of stdlib.h with
36669         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
36670         Declare malloc if needed.
36671
36672         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
36673         `#ifndef HAVE_DECL..'
36674         now that autoconf always defines the HAVE_DECL_ symbols.
36675         * lib/human.c: Likewise.
36676         * lib/same.c: Likewise.
36677         * lib/strtoumax.c: Likewise.
36678
36679         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
36680         declaration check was not run.
36681         * lib/hash.c: Likewise.
36682         * lib/human.c: Likewise.
36683         * lib/same.c: Likewise.
36684         * lib/strtoumax.c: Likewise.
36685
36686         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
36687         `.', then first look up the entire `.'-containing string as a login
36688         name.
36689
36690 2000-02-23  Jim Meyering  <meyering@lucent.com>
36691
36692         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
36693         in place of my hack.
36694
36695 2000-02-18  Paul Eggert  <eggert@twinsun.com>
36696
36697         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
36698         (textint): New typedef.
36699         (parser_control): Member year changed from int to textint.
36700         All uses changed.
36701         (YYSTYPE): Removed; replaced by %union with int and textint members.
36702         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
36703         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
36704         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
36705         (tSNUMBER, tUNUMBER): Now of type <textintval>.
36706         (date, number, to_year): Use width of number in digits, not its value,
36707         to determine whether it's a 2-digit year, or a 2-digit time.
36708         (yylex): Store number of digits of numeric tokens.
36709         Reported by John Kendall.
36710
36711         (parser_control): Changed from struct parser_control to typedef (for
36712         consistency).  All uses changed.
36713
36714         (tID): Removed; not used.
36715         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
36716
36717 2000-02-14  Paul Eggert  <eggert@twinsun.com>
36718
36719         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
36720         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
36721
36722 2000-02-12  Jim Meyering  <meyering@lucent.com>
36723
36724         * lib/userspec.c (ISDIGIT): Define it.
36725         (isdigit): Remove definition.
36726         (is_number): Use ISDIGIT, not isdigit.
36727         <libintl.h>: Include.
36728         (_ and N_): Define.
36729         (parse_user_spec): Mark translatable strings.
36730
36731 2000-02-10  Jim Meyering  <meyering@lucent.com>
36732
36733         With these changes, nanosleep.[ch] are finally enough like the other
36734         lib/* replacement files to compile on a few more losing systems.
36735
36736         * lib/nanosleep.h: Don't include config.h.
36737         Remove prototype from declaration of nanosleep.
36738         (PARAMS): Remove now-unneeded definition.
36739         * lib/nanosleep.c: #undef nanosleep.
36740         (rpl_nanosleep): Rename from nanosleep.
36741
36742 2000-02-10  Jim Meyering  <meyering@lucent.com>
36743
36744         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
36745         gnu_nanosleep to rpl_nanosleep.
36746
36747 2000-02-09  Jim Meyering  <meyering@lucent.com>
36748
36749         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
36750         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
36751
36752 2000-02-08  Akim Demaille  <akim@epita.fr>
36753
36754         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
36755         `[' and `]' and remove uses of `changequote'.
36756         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
36757         (AC_SYS_LARGEFILE): Likewise.
36758         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
36759         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
36760         of changequote.
36761         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
36762         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
36763         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
36764         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
36765
36766 2000-02-05  Jim Meyering  <meyering@lucent.com>
36767
36768         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
36769         Remove explicit use of AC_HEADER_TIME.  It is required by
36770         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
36771         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
36772         in autoconf whereby the expansion of the latter ended up preceding
36773         the expansion of its prerequisite, AC_HEADER_TIME.
36774         Reported by Volker Borchert.
36775
36776 2000-02-03  Jim Meyering  <meyering@lucent.com>
36777
36778         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
36779
36780 2000-02-03  Jim Meyering  <meyering@lucent.com>
36781
36782         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
36783         rather than with `#if HAVE_UTMPNAME'.
36784
36785 2000-02-02  Jim Meyering  <meyering@lucent.com>
36786
36787         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
36788         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
36789         Reported by Eli Zaretskii.
36790
36791 2000-02-01  Jim Meyering  <meyering@lucent.com>
36792
36793         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
36794
36795 2000-01-31  Jim Meyering  <meyering@lucent.com>
36796
36797         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
36798         functions.  Add the time.h and sys/time.h headers along with the
36799         AC_REQUIRE'ment of AC_HEADER_TIME.
36800
36801 2000-01-31  Jim Meyering  <meyering@lucent.com>
36802
36803         * lib/nanosleep.h (nanosleep): Guard declaration with
36804         `#if ! HAVE_DECL_NANOSLEEP'.
36805         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
36806         the declaration in that vendor's sys/timers.h.
36807         Reported by Christian Krackowizer.
36808
36809         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
36810         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
36811         (ISPRINT): Likewise.
36812         Reported by Tom Tromey.
36813
36814 2000-01-30  Jim Meyering  <meyering@lucent.com>
36815
36816         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
36817
36818         * m4/prereq.m4 (utmp_includes): Define.
36819         Check for ut_user and ut_name members in both struct utmpx
36820         and struct utmp.
36821
36822 2000-01-30  Jim Meyering  <meyering@lucent.com>
36823
36824         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
36825         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
36826         header files where only utmpx.ut_user is declared.
36827
36828         * lib/readutmp.h (UT_USER): Define.
36829
36830 2000-01-29  Jim Meyering  <meyering@lucent.com>
36831
36832         * m4/lib-check.m4: New file containing library-related checks from
36833         fileutils and sh-utils (textutils had none).
36834
36835 2000-01-28  Jim Meyering  <meyering@lucent.com>
36836
36837         * m4/perl.m4: Change format of warning message to look more like that
36838         from the missing script.  Suggestion from François Pinard.
36839
36840 2000-01-25  Jim Meyering  <meyering@lucent.com>
36841
36842         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
36843         well as time.h in the compile check.
36844         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
36845         Fix typo in cross-compiling case: s/yes/no/.
36846
36847 2000-01-23  Jim Meyering  <meyering@lucent.com>
36848
36849         * m4/jm-macros.m4: Move df-related tests here from
36850         fileutils/configure.in
36851
36852         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
36853         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
36854
36855         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
36856         s/space/ac_fsusage_space/.
36857         (jm_FILE_SYSTEM_USAGE): Take two parameters.
36858
36859         * m4/ftruncate.m4: New file (derived from part of
36860         fileutils/configure.in).
36861         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
36862         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
36863
36864         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
36865         AC_SUBST these here, rather than just in sh-util/configure.in, so
36866         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
36867         all the same.
36868         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
36869         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
36870         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
36871         (AC_SUBST(POW_LIBM)): Likewise.
36872         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
36873
36874 2000-01-23  Jim Meyering  <meyering@lucent.com>
36875
36876         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
36877         obstack.c.
36878
36879 2000-01-22  Jim Meyering  <meyering@lucent.com>
36880
36881         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
36882
36883         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
36884
36885         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
36886         configure.in
36887         (AC_CHECK_HEADERS): Likewise for sh-utils.
36888         (AC_CHECK_HEADERS): Likewise for textutils.
36889         Merge the three lists of headers.
36890
36891         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
36892         from fileutils' configure.in.
36893
36894         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
36895         code. Moved tests into their own function (_jm_DECL_HEADERS) in
36896         check-decl.m4.
36897
36898         * m4/check-decl.m4: Use #if rather than #ifdef.
36899         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
36900         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
36901         (_jm_DECL_HEADERS): Define new function.
36902         (jm_CHECK_DECLARATIONS): Require it.
36903
36904 2000-01-22  Jim Meyering  <meyering@lucent.com>
36905
36906         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
36907         [! HAVE_DECL_STRTOULL]: Declare strtoull.
36908         Required for some AIX systems.  Reported by Christian Krackowizer.
36909         [TESTING] (main): New function.
36910
36911         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
36912         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
36913         letters.
36914
36915         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
36916         iswprint.
36917
36918         * lib/strverscmp.c (ISDIGIT): Define.
36919         (strverscmp): Use ISDIGIT, not isdigit.
36920
36921 2000-01-19  Jim Meyering  <meyering@lucent.com>
36922
36923         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
36924         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
36925         defines `struct timespec' in <sys/time.h>
36926
36927         * m4/c-bs-a.m4: Remove uses of changequote altogether.
36928         Thanks to Akim for explaining.
36929
36930 2000-01-17  Paul Eggert  <eggert@twinsun.com>
36931
36932         * lib/nanosleep.c (nanosleep):
36933         Don't use SA_INTERRUPT to decide whether to call sigaction, as
36934         POSIX.1 doesn't require SA_INTERRUPT and some systems
36935         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
36936         it's been part of POSIX.1 since day 1 (in 1988).
36937
36938 2000-01-17  Jim Meyering  <meyering@lucent.com>
36939
36940         * lib/interlock: Remove unused file.  Reported by François Pinard.
36941
36942 2000-01-16  Paul Eggert  <eggert@twinsun.com>
36943
36944         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
36945         alert, backslash, formfeed, and vertical tab unnecessarily in
36946         shell quoting style.
36947
36948 2000-01-16  Jim Meyering  <meyering@lucent.com>
36949
36950         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
36951         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
36952         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
36953         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
36954
36955 2000-01-16  Jim Meyering  <meyering@lucent.com>
36956
36957         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
36958         because the latter didn't work.
36959
36960 2000-01-15  Jim Meyering  <meyering@lucent.com>
36961
36962         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
36963         (AC_REPLACE_FUNCS): Add memcpy and memset.
36964         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
36965         Add strpbrk.
36966         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
36967
36968 2000-01-12  Jim Meyering  <meyering@lucent.com>
36969
36970         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
36971         (jm_PREREQ): Use it.
36972         (jm_PREREQ_READUTMP): New macro.
36973         (jm_PREREQ): Use it.
36974
36975 2000-01-11  Paul Eggert  <eggert@twinsun.com>
36976
36977         Quote multibyte characters correctly.
36978         * m4/c-bs-a.m4: New file.
36979         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
36980         (jm_PREREQ): Use it.
36981
36982 2000-01-11  Paul Eggert  <eggert@twinsun.com>
36983
36984         * m4/uintmax_t.m4: Port to autoconf 2.13.
36985
36986 2000-01-08  Jim Meyering  <meyering@ascend.com>
36987
36988         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
36989         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
36990
36991 2000-01-04  Jim Meyering  <meyering@ascend.com>
36992
36993         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
36994         jm_STRUCT_DIRENT_D_TYPE.
36995         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
36996         jm_STRUCT_DIRENT_D_INO.
36997         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
36998         jm_STRUCT_UTIMBUF.
36999         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
37000         renamings.
37001         * m4/utime.m4: Likewise.
37002
37003         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
37004         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
37005
37006 2000-01-03  Paul Eggert  <eggert@twinsun.com>
37007
37008         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
37009         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
37010
37011 2000-01-02  Jim Meyering  <meyering@ascend.com>
37012
37013         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
37014         remember if this is necessary.
37015
37016 1999-12-26  Jim Meyering  <meyering@ascend.com>
37017
37018         * m4/jm-macros.m4: Use it here.
37019         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
37020
37021 1999-12-23  Jim Meyering  <meyering@ascend.com>
37022
37023         * m4/jm-macros.m4: Check for clock_gettime (moved from
37024         fileutils/configure.in)
37025         Check for gettimeofday.
37026
37027 1999-12-20  Jim Meyering  <meyering@ascend.com>
37028
37029         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
37030         autoconf-2.14a-1999-12-20.
37031
37032 1999-12-19  Jim Meyering  <meyering@ascend.com>
37033
37034         * m4/lstat-slash.m4: New file.
37035         * m4/jm-macros.m4: Use the new macro:
37036         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
37037
37038 1999-12-07  Jim Meyering  <meyering@ascend.com>
37039
37040         * m4/perl.m4: Require that File::Compare be available, too.
37041         Too many systems seem to lack it.
37042
37043         * m4/strftime.m4: Add checks for most of the cpp macros tested in
37044         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
37045
37046 1999-11-18  Paul Eggert  <eggert@twinsun.com>
37047
37048         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
37049         problem with the QNX 4.25 shell, which doesn't propagate exit
37050         status of failed commands inside shell assignments.
37051
37052 1999-11-17  Jim Meyering  <meyering@ascend.com>
37053
37054         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
37055
37056 1999-11-07  Jim Meyering  <meyering@ascend.com>
37057
37058         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
37059
37060 1999-11-06  Jim Meyering  <meyering@ascend.com>
37061
37062         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
37063         * m4/jm-macros.m4 (jm_MACROS): Use it here.
37064
37065 1999-11-05  Jim Meyering  <meyering@ascend.com>
37066
37067         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
37068         configure.in of textutils, fileutils, and sh-utils into this one
37069         (shared between those packages) file.
37070         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
37071         AC_STRUCT_ST_BLKSIZE.
37072
37073 1999-11-03  Jim Meyering  <meyering@ascend.com>
37074
37075         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
37076         of AC_CHECK_TYPE checks includes unistd.h.
37077         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
37078         Suggestion from Akim Demaille.
37079
37080 1999-10-30  Jim Meyering  <meyering@ascend.com>
37081
37082         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
37083         m4-quoted string.
37084         * m4/ls-mntd-fs.m4: Likewise.
37085         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
37086         * m4/jm-winsz1.m4: Likewise.
37087
37088         * m4/const.m4: Remove file, since the fix made it into the experimental
37089         version of autoconf.
37090         * m4/mktime.m4: Likewise.
37091
37092         * m4/check-type.m4: Remove file, now that the latest version of
37093         AC_CHECK_TYPE takes a third arg to specify additional #includes.
37094
37095         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
37096         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
37097         AC_CHECK_TYPE.
37098
37099 1999-10-04  Jim Meyering  <meyering@ascend.com>
37100
37101         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
37102
37103 1999-09-22  Paul Eggert  <eggert@twinsun.com>
37104
37105         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
37106         2.95.1 bug with HP-UX 10.20.
37107
37108 1999-09-17  Jim Meyering  <meyering@ascend.com>
37109
37110         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
37111         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
37112         due to missing strdup (against sh-utils-2.0).
37113
37114 1999-08-29  Jim Meyering  <meyering@ascend.com>
37115
37116         * m4/jm-macros.m4: Require jm_BISON.
37117         * m4/bison.m4: New file.
37118
37119 1999-08-17  Paul Eggert  <eggert@twinsun.com>
37120
37121         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
37122         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
37123
37124 1999-08-05  Jim Meyering  <meyering@ascend.com>
37125
37126         * m4/getline.m4: Rename test file from conftestdata to conftest.data
37127         to avoid conflicts with `conftest' on 8+3 filesystems.
37128         Suggestion from Eli Zaretskii.
37129
37130 1999-08-04  Jim Meyering  <meyering@ascend.com>
37131
37132         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
37133         fileutils and sh-utils (textutils's getline test was inadequate).
37134         (AM_FUNC_GETLINE): Run this test.
37135         (AC_CHECK_FUNCS): Check for getdelim.
37136         Reported by Bob Proulx.
37137
37138 1999-08-02  Jim Meyering  <meyering@ascend.com>
37139
37140         * m4/jm-macros.m4: Add a comment.
37141
37142 1999-08-01  Paul Eggert  <eggert@twinsun.com>
37143
37144         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
37145         <inttypes.h> defines strtoumax as a macro (and not as a
37146         function).
37147
37148 1999-08-01  Paul Eggert  <eggert@twinsun.com>
37149
37150         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
37151         that we can shift, multiply and divide unsigned long long
37152         values; Ultrix cc can't do it.
37153
37154 1999-08-01  Paul Eggert  <eggert@twinsun.com>
37155
37156         * m4/mktime.m4: New file, which is a preview of what should appear
37157         in the next public autoconf release.
37158
37159 1999-08-01  Paul Eggert  <eggert@twinsun.com>
37160
37161         * m4/lfs.m4: Remove this file.
37162         * m4/largefile.m4: New file.  It contains the old contents of
37163         lfs.m4, except that all names with prefix AC_LFS have been
37164         changed to use the prefix AC_SYS_LARGEFILE instead, to be
37165         compatible with future autoconf versions.  Also, some minor m4
37166         quoting problems have been fixed.
37167
37168 1999-08-01  Paul Eggert  <eggert@twinsun.com>
37169
37170         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
37171         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
37172         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
37173         and simplify the shell code.
37174
37175 1999-08-01  Jim Meyering  <meyering@ascend.com>
37176
37177         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
37178         m4.
37179
37180 1999-07-20  Jim Meyering  <meyering@ascend.com>
37181
37182         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
37183
37184 1999-07-15  Jim Meyering  <meyering@ascend.com>
37185
37186         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
37187
37188 1999-05-22  Jim Meyering  <meyering@ascend.com>
37189
37190         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
37191
37192 1999-05-20  Jim Meyering  <meyering@ascend.com>
37193
37194         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
37195         Add a colon after each `then' in case $4 is empty.
37196
37197 1999-05-16  Jim Meyering  <meyering@ascend.com>
37198
37199         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
37200
37201 1999-05-10  Jim Meyering  <meyering@ascend.com>
37202
37203         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
37204
37205         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
37206         AC_FUNC_MKTIME.
37207
37208 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
37209
37210         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
37211
37212 1999-05-04  Paul Eggert  <eggert@twinsun.com>
37213
37214         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
37215         not CPPFLAGS, so that linking works correctly in IRIX.
37216
37217 1999-04-30  Paul Eggert  <eggert@twinsun.com>
37218
37219         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
37220
37221 1999-04-20  Paul Eggert  <eggert@twinsun.com>
37222
37223         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
37224         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
37225         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
37226         jm_AC_TYPE_UNSIGNED_LONG_LONG.
37227         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
37228
37229         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
37230
37231 1999-04-20  Jim Meyering  <meyering@ascend.com>
37232
37233         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
37234         AC_REPLACE xstroull if necessary.  From Paul Eggert.
37235         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
37236
37237 1999-04-18  Jim Meyering  <meyering@ascend.com>
37238
37239         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
37240         * m4/jm-macros.m4: Use it.
37241
37242 1999-04-06  Jim Meyering  <meyering@ascend.com>
37243
37244         * m4/strftime.m4: Remove test for %f.
37245
37246 1999-03-29  Jim Meyering  <meyering@ascend.com>
37247
37248         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
37249         superset of the AC_TYPE_* checks in the textutils, fileutils,
37250         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
37251         AC_TYPE_PID_T.
37252
37253 1999-03-28  Jim Meyering  <meyering@ascend.com>
37254
37255         * m4/jm-macros.m4: Define GNU_PACKAGE here.
37256         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
37257         replaced e.g., in the *.sh files of the sh-utils.
37258
37259 1999-03-20  Jim Meyering  <meyering@ascend.com>
37260
37261         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
37262         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
37263         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
37264
37265 1999-03-19  Jim Meyering  <meyering@ascend.com>
37266
37267         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
37268
37269 1999-03-12  Jim Meyering  <meyering@ascend.com>
37270
37271         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
37272
37273 1999-03-07  Jim Meyering  <meyering@ascend.com>
37274
37275         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
37276         declared.
37277
37278 1999-02-17  Jim Meyering  <meyering@ascend.com>
37279
37280         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
37281         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
37282
37283 1999-02-07  Jim Meyering  <meyering@ascend.com>
37284
37285         * m4/group-member.m4: New file -- extracted from sh-utils'
37286         configure.in.
37287
37288         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
37289         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
37290
37291 1999-02-06  Jim Meyering  <meyering@ascend.com>
37292
37293         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
37294         * m4/fnmatch.m4: Likewise.
37295         * m4/getgroups.m4: Likewise.
37296         * m4/lstat.m4: Likewise.
37297         * m4/malloc.m4: Likewise.
37298         * m4/putenv.m4: Likewise.
37299         * m4/realloc.m4: Likewise.
37300         * m4/regex.m4: Likewise.
37301         * m4/stat.m4: Likewise.
37302         * m4/strftime.m4: Likewise.
37303         Suggestion from Alain Magloire.
37304
37305         * m4/chown.m4: Use `.$ac_objext', not `.o'.
37306         * m4/fnmatch.m4: Likewise.
37307         * m4/getgroups.m4: Likewise.
37308         * m4/getline.m4: Likewise.
37309         * m4/lstat.m4: Likewise.
37310         * m4/malloc.m4: Likewise.
37311         * m4/memcmp.m4: Likewise.
37312         * m4/putenv.m4: Likewise.
37313         * m4/realloc.m4: Likewise.
37314         * m4/regex.m4: Likewise.
37315         * m4/stat.m4: Likewise.
37316         * m4/strftime.m4: Likewise.
37317         Suggestion from Alain Magloire.
37318
37319         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
37320         an argument.
37321
37322         * m4/regex.m4: Add a run-time Test for proper operation of
37323         re_compile_pattern.
37324
37325 1999-01-31  Jim Meyering  <meyering@ascend.com>
37326
37327         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
37328
37329 1999-01-30  Jim Meyering  <meyering@ascend.com>
37330
37331         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
37332
37333         * m4/jm-mktime.m4: Make this a wrapper around the official
37334         AM_FUNC_MKTIME rather than my private copy, now that the official one
37335         is up to date.
37336         * m4/mktime.m4: Remove file.
37337
37338         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
37339         * m4/uptime.m4: Likewise.
37340         * m4/uintmax_t.m4: Likewise.
37341
37342 1999-01-28  Jim Meyering  <meyering@ascend.com>
37343
37344         * m4/jm-macros.m4: Use jm_AFS.
37345         * m4/afs.m4: New file (from fileutils' configure.in).
37346
37347         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
37348         * m4/chown.m4: Likewise.
37349         * m4/d-ino.m4: Likewise.
37350         * m4/d-type.m4: Likewise.
37351         * m4/fnmatch.m4: Likewise.
37352         * m4/getgroups.m4: Likewise.
37353         * m4/gettext.m4: Likewise.
37354         * m4/jm-mktime.m4: Likewise.
37355         * m4/jm-winsz2.m4: Likewise.
37356         * m4/lcmessage.m4: Likewise.
37357         * m4/ls-mntd-fs.m4: Likewise.
37358         * m4/malloc.m4: Likewise.
37359         * m4/memcmp.m4: Likewise.
37360         * m4/putenv.m4: Likewise.
37361         * m4/realloc.m4: Likewise.
37362         * m4/st_mtim.m4: Likewise.
37363         * m4/strftime.m4: Likewise.
37364
37365 1999-01-16  Jim Meyering  <meyering@ascend.com>
37366
37367         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
37368         (ARGMATCH_DIE_DECL): Define.
37369
37370 1999-01-12  Jim Meyering  <meyering@ascend.com>
37371
37372         * m4/Makefile.am.in: Rewrite to avoid using fmt.
37373         Reported by Lars Hecking.
37374
37375 1999-01-10  Jim Meyering  <meyering@ascend.com>
37376
37377         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
37378         gross kludge.
37379         * m4/inttypes_h.m4: Likewise.
37380         * m4/lstat.m4: Likewise.
37381         * m4/malloc.m4: Likewise.
37382         * m4/readdir.m4: Likewise.
37383         * m4/realloc.m4: Likewise.
37384         * m4/st_dm_mode.m4: Likewise.
37385         * m4/stat.m4: Likewise.
37386         * m4/utimbuf.m4: Likewise.
37387         * m4/utimes.m4: Likewise.
37388
37389         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
37390         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
37391         comments in config.h.in are meaningful.
37392
37393         * m4/jm-macros.m4: Require autoconf-2.13 here.
37394
37395         * m4/regex.m4: By default, don't use the included regex.c on systems
37396         with glibc 2.  Suggestion from Uli Drepper.
37397
37398 1999-01-02  Jim Meyering  <meyering@ascend.com>
37399
37400         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
37401
37402 1998-12-18  Jim Meyering  <meyering@ascend.com>
37403
37404         * m4/Makefile.am.in (Makefile.am): Simplify rule.
37405         Based on a suggestion from Lars Hecking.
37406
37407 1998-11-16  Paul Eggert  <eggert@twinsun.com>
37408
37409         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
37410
37411 1998-11-16  Jim Meyering  <meyering@ascend.com>
37412
37413         * m4/lfs.m4: Double-quote the `uname...` expression.
37414
37415 1998-11-14  Jim Meyering  <meyering@ascend.com>
37416
37417         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
37418         * m4/stat.m4: Likewise.
37419
37420 1998-11-03  Jim Meyering  <meyering@ascend.com>
37421
37422         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
37423         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
37424
37425 1998-10-18  Jim Meyering  <meyering@ascend.com>
37426
37427         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
37428
37429 1998-10-17  Jim Meyering  <meyering@ascend.com>
37430
37431         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
37432         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
37433         calls for those previously hard-coded headers.  Instead, take a new
37434         parameter.
37435         (jm_CHECK_DECLARATIONS): Reflect interface change.
37436         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
37437         (jm_CHECK_DECL_LOCALTIME_R): New macro.
37438
37439         * m4/mktime.m4: Test for spring-forward gap before long-running test.
37440
37441 1998-10-14  Jim Meyering  <meyering@ascend.com>
37442
37443         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
37444         instead of "TZ=America/Vancouver".  From Paul Eggert.
37445
37446 1998-10-11  Jim Meyering  <meyering@ascend.com>
37447
37448         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
37449         This adds a test for a recently added compatibility fix for mktime.c.
37450         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
37451
37452 1998-09-27  Jim Meyering  <meyering@ascend.com>
37453
37454         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
37455
37456         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
37457         ../configure.in, including a change from Gordon Matzigkeit to allow
37458         cross-compiling for the Hurd.
37459
37460         * m4/glibc.m4: New file/macro to test for the GNU C Library
37461         versions 1 and 2.  From Gordon Matzigkeit.
37462         Indent.
37463
37464 1998-09-21  Jim Meyering  <meyering@ascend.com>
37465
37466         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
37467
37468 1998-08-18  Paul Eggert  <eggert@twinsun.com>
37469
37470         Port nanosecond-resolution times to UnixWare 2.1.2 and
37471         pedantic Solaris 2.6.
37472
37473         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
37474         AC_STRUCT_ST_MTIM.
37475         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
37476         Generate name of ns member, instead of just 1 or undef.
37477         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
37478
37479 1998-08-15  Jim Meyering  <meyering@ascend.com>
37480
37481         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
37482         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
37483         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
37484         instead of jm_TYPE_SSIZE_T.
37485
37486 1998-08-12  Jim Meyering  <meyering@ascend.com>
37487
37488         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
37489
37490 1998-08-02  Jim Meyering  <meyering@ascend.com>
37491
37492         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
37493         in acconfig.h manually.
37494
37495 1998-07-31  Paul Eggert  <eggert@twinsun.com>
37496
37497         * m4/st_mtim.m4: New file.
37498
37499 1998-07-28  Jim Meyering  <meyering@ascend.com>
37500
37501         * m4/utimes.m4: Undef stat.
37502
37503 1998-07-25  Jim Meyering  <meyering@ascend.com>
37504
37505         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
37506         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
37507
37508 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
37509
37510         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
37511         uid and gid actually remain unchanged.
37512
37513 1998-07-07  Jim Meyering  <meyering@ascend.com>
37514
37515         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
37516
37517 1998-07-04  Jim Meyering  <meyering@ascend.com>
37518
37519         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
37520         to prove that this macro can be used in packages without regex.c.
37521
37522 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
37523
37524         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
37525         is to be used.
37526
37527 1998-07-03  Jim Meyering  <meyering@ascend.com>
37528
37529         * m4/gettext.m4: Add -lintl if it's found to be necessary.
37530
37531         * m4/gettext.m4: New file -- from gettext-0.10.35.
37532         * m4/lcmessage.m4: Likewise.
37533         * m4/progtest.m4: Likewise.
37534
37535         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
37536         * m4/jm-macros.m4: Require the new macro.
37537
37538 1998-06-29  Jim Meyering  <meyering@ascend.com>
37539
37540         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
37541         for the definition of NGROUPS (used in a system header included
37542         by sys/mount.h).
37543
37544 1998-06-28  Jim Meyering  <meyering@ascend.com>
37545
37546         * m4/ls-mntd-fs.m4: New file.
37547         * m4/fstypename.m4: New file.
37548
37549         * m4/jm-macros.m4: Require the new macro.
37550         * m4/jm-glibc-io.m4: New file.
37551
37552 1998-05-19  Jim Meyering  <meyering@ascend.com>
37553
37554         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
37555         * m4/lchown.m4: New file.
37556
37557         * m4/Makefile.am.in: New file.
37558         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
37559
37560 1998-05-14  Jim Meyering  <meyering@ascend.com>
37561
37562         * m4/Makefile.am (EXTRA_DIST): Add them.
37563         * m4/jm-macros.m4: New file.
37564         * m4/utimbuf.m4: New file.
37565
37566 1998-05-12  Jim Meyering  <meyering@ascend.com>
37567
37568         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
37569
37570 1998-05-11  Jim Meyering  <meyering@ascend.com>
37571
37572         * m4/isc-posix.m4: New file.
37573
37574 1998-05-10  Jim Meyering  <meyering@ascend.com>
37575
37576         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
37577
37578 1998-05-09  Jim Meyering  <meyering@ascend.com>
37579
37580         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
37581         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
37582         with automake.
37583
37584         * m4/ssize_t.m4: New file.
37585         * m4/mktime.m4: Remove file -- the new automake has this now.
37586
37587 1998-04-26  Jim Meyering  <meyering@ascend.com>
37588
37589         * m4/assert.m4: New file.
37590         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
37591
37592 1998-04-05  Jim Meyering  <meyering@ascend.com>
37593
37594         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
37595         (jm_PREREQ): Use it here.
37596
37597 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
37598
37599         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
37600         in acconfig.h.
37601
37602 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
37603
37604         * m4/prereq.m4: New file.
37605         * m4/error.m4: New file.
37606         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
37607
37608 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
37609
37610         * m4/getline.m4: Don't set am_cv_func_working_getline before the
37611         cache-check for the same variable -- that defeated the purpose of
37612         the test; the test program was never run.  This was a problem only
37613         on systems with losing getline functions -- HP-UX 10.20 is one.
37614         Reported by Bjorn Helgaas.
37615
37616 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
37617
37618         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
37619
37620 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
37621
37622         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
37623
37624         * m4/const.m4: New file.  Use an initializer in this declaration
37625         typedef int charset[2]; const charset x;
37626         Reported by Bob Glickstein.
37627
37628 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
37629
37630         * m4/chown.m4: Fix reversed types on -1 args to chown.
37631         From Kaveh Ghazi.
37632
37633 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
37634
37635         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
37636         Add lseek and memchr.
37637
37638         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
37639         T.E.Dickey <dickey@clark.net> said that some older preprocessors
37640         have a 20-character limit on names.
37641
37642 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
37643
37644         * m4/inttypes_h.m4: New file.
37645         * m4/uintmax_t.m4: New file.
37646         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
37647
37648 Copyright (C) 1997-2008 Free Software Foundation, Inc.
37649 Copying and distribution of this file, with or without modification,
37650 are permitted provided the copyright notice and this notice are preserved.