avoid unaligned access errors, e.g., on sparc
[gnulib.git] / ChangeLog
1 2008-05-26  Jim Meyering  <meyering@redhat.com>
2
3         avoid unaligned access errors, e.g., on sparc
4         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
5         direct access through a possibly-unaligned uint64* pointer.
6         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
7         direct access through a possibly-unaligned uint32* pointer.
8         Prompted by this patch from Tom "spot" Callaway:
9         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
10
11         sha512.c: fix typo in comment
12         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
13
14 2008-05-25  Bruno Haible  <bruno@clisp.org>
15
16         * lib/set-mode-acl.c: Renamed from lib/acl.c.
17         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
18         (Makefile.am): Update lib_SOURCES.
19
20 2008-05-25  Bruno Haible  <bruno@clisp.org>
21
22         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
23
24 2008-05-25  Jim Meyering  <meyering@redhat.com>
25
26         useless-if-before-free: freed expr may have white-space differences
27         * build-aux/useless-if-before-free: Recognize cases in which the
28         freed expression differs from the tested one in embedded white
29         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
30         $1 was used, so we can't make any regexp shy.  Improved tests now
31         detect this.
32
33         useless-if-before-free: accept white space in the expression.
34         * build-aux/useless-if-before-free: For now, any white space
35         in the expression must be identical in the free argument.
36
37         useless-if-before-free: efficiency tweak
38         * build-aux/useless-if-before-free: Make the expression-matching
39         regexp "shy".
40         Make the *outer* regexp shy, not the expr-matching one.
41
42         update code-in-comment to accept cast of free arg
43         * build-aux/useless-if-before-free: Update regexp.
44
45 2008-05-25  Bruno Haible  <bruno@clisp.org>
46
47         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
48         * modules/copy-file-tests (Files, Makefile.am): Update.
49         * tests/test-copy-file.c (func_test_copy): Update.
50
51 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
52
53         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
54
55 2008-05-23  Bruno Haible  <bruno@clisp.org>
56
57         Improve support for ACLs on OSF/1.
58         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
59         Remove fallback for unknown flavors of ACLs.
60
61 2008-05-22  Bruno Haible  <bruno@clisp.org>
62
63         Add support for ACLs on OSF/1.
64         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
65         replacements.
66         (acl_free_text): New macro fallback.
67         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
68         acl_free.
69         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
70         acl_free_text function. Require AC_C_INLINE.
71
72 2008-05-22  Bruno Haible  <bruno@clisp.org>
73
74         Make copy_acl work on MacOS X 10.5.
75         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
76         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
77         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
78         If MODE_INSIDE_ACL, don't assume that every system has the same text
79         representation for ACLs as FreeBSD.
80         * lib/copy-acl.c (copy_acl): Add support for platforms with
81         !MODE_INSIDE_ACL.
82         * lib/file-has-acl.c (file_has_acl): Likewise.
83         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
84         FreeBSD, MacOS X, or IRIX, respectively.
85
86 2008-05-22  Bruno Haible  <bruno@clisp.org>
87
88         * lib/acl.h: Don't include <sys/acl.h>.
89         (GETACLCNT): Move fallback to lib/acl-internal.h.
90         * lib/acl-internal.h: Include <sys/acl.h> here.
91         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
92
93 2008-05-22  Bruno Haible  <bruno@clisp.org>
94
95         Split off copy_acl function to separate file.
96         * lib/copy-acl.c: New file, extracted from lib/acl.c.
97         * lib/acl.c (copy_acl): Moved function to separate file.
98         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
99         * modules/acl (Files): Add lib/copy-acl.c.
100         (Makefiles.am): Augment lib_SOURCES.
101
102 2008-05-22  Bruno Haible  <bruno@clisp.org>
103
104         * modules/copy-file-tests: New file.
105         * tests/test-copy-file.sh: New file.
106         * tests/test-copy-file.c: New file.
107         * tests/test-copy-file-sameacls.c: New file.
108
109 2008-05-22  Eric Blake  <ebb9@byu.net>
110
111         Avoid gcc warning.
112         * tests/test-memcmp.c (main): Pass NULL indirectly.
113
114 2008-05-21  Bruno Haible  <bruno@clisp.org>
115
116         Add reference doc about ACLs.
117         * doc/acl-resources.txt: New file.
118         * doc/acl-cygwin.txt: New file.
119
120 2008-05-21  Bruno Haible  <bruno@clisp.org>
121
122         Avoid one more warning from gcc.
123         * lib/vasnprintf.c (IF_LINT): Update comments.
124         (VASNPRINTF): Use it also for the 'prefix' array initializer.
125
126 2008-05-21  Jim Meyering  <meyering@redhat.com>
127
128         avoid a warning from gcc
129         * lib/vasnprintf.c (IF_LINT): Define.
130         (scale10_round_decimal_long_double):
131         Use it to avoid a "may be used uninitialized" warning.
132         (scale10_round_decimal_double): Likewise.
133
134 2008-05-21  Simon Josefsson  <simon@josefsson.org>
135
136         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
137         declared.
138
139 2008-05-20  Bruno Haible  <bruno@clisp.org>
140
141         * tests/test-memcmp.c (main): Test also the sign of the result. Test
142         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
143
144 2008-05-20  Simon Josefsson  <simon@josefsson.org>
145
146         * modules/memcmp-tests: New file.
147         * tests/test-memcmp.c: New file.
148
149 2008-05-19  Bruno Haible  <bruno@clisp.org>
150
151         * modules/propername (Notice, configure.ac): Put quoted "..." into
152         --keyword option.
153         * lib/propername.h: Update comments accordingly.
154         Reported by Eric Blake.
155
156 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
157
158         * modules/getpass-gnu (Depends-on): Add fseeko.
159
160 2008-05-19  Simon Josefsson  <simon@josefsson.org>
161
162         * modules/base64-tests: New file.
163
164 2008-05-19  Bo Borgerson <gigabo@gmail.com>
165
166         * lib/base64.c (base64_decode_ctx): If a decode context structure
167         was passed in use it to ignore newlines.  If a context structure
168         was _not_ passed in, continue to treat newlines as garbage (this
169         is the historical behavior).  Formerly base64_decode.
170         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
171         takes a decode context structure.
172         * lib/base64.h (base64_decode): Macro for four-argument calls.
173         (base64_decode_alloc): Likewise.
174         * lib/base64.c (base64_decode_ctx): If a decode context structure
175         was passed in use it to ignore newlines.  If a context structure
176         was _not_ passed in, continue to treat newlines as garbage (this
177         is the historical behavior).  Formerly base64_decode.
178         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
179         takes a decode context structure.
180         * lib/base64.h (base64_decode): Macro for four-argument calls.
181         (base64_decode_alloc): Likewise.
182
183 2008-05-19  Jim Meyering  <meyering@redhat.com>
184
185         avoid a warning from gcc
186         * lib/trim.c (IF_LINT): Define.
187         (trim2): Use it to avoid a "may be used uninitialized" warning.
188
189         Fix doc typo.
190         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
191
192 2008-05-19  Bruno Haible  <bruno@clisp.org>
193
194         * doc/glibc-functions/getpass.texi: Document limits of other
195         implementations.
196
197 2008-05-19  Simon Josefsson  <simon@josefsson.org>
198             Bruno Haible <bruno@clisp.org>
199
200         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
201
202 2008-05-18  Bruno Haible  <bruno@clisp.org>
203
204         * modules/propername: New file, from GNU gettext.
205         * lib/propername.h: New file, from GNU gettext.
206         * lib/propername.c: New file, from GNU gettext.
207         * MODULES.html.sh (Internationalization functions): Add propername.
208
209 2008-05-16  Jim Meyering  <meyering@redhat.com>
210             Bruno Haible  <bruno@clisp.org>
211
212         Avoid some warnings from "gcc -Wshadow".
213         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
214
215 2008-05-15  Eric Blake  <ebb9@byu.net>
216
217         Extend previous patch to cygwin 1.7.0.
218         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
219         fast implementation in cygwin >= 1.7.0.
220         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
221         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
222
223 2008-05-15  Bruno Haible  <bruno@clisp.org>
224
225         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
226         implementation in glibc >= 2.9.
227         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
228         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
229
230 2008-05-15  Bruno Haible  <bruno@clisp.org>
231
232         * MODULES.html.sh (Internationalization functions): Remove linebreak.
233         (Unicode string functions): Add unilbrk/*.
234         Reported by Karl Berry.
235
236 2008-05-15  Eric Blake  <ebb9@byu.net>
237
238         Fix violation of <stdbool.h> replacement in regex.
239         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
240         * lib/regexec.c (re_search_internal): Likewise.
241         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
242
243 2008-05-15  Jim Meyering  <meyering@redhat.com>
244
245         avoid distracting test output when git or cvs is not found
246         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
247         * tests/test-vc-list-files-git.sh: Likewise.
248
249 2008-05-15  Eric Blake  <ebb9@byu.net>
250
251         Glibc finally accepted the memmem speedup code, bugzilla #5514.
252         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
253         glibc version.
254         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
255         * doc/posix-functions/strstr.texi (strstr): Likewise.
256         * lib/str-two-way.h (MAX): Sychronize with glibc.
257
258 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
259
260         * lib/regcomp.c (optimize_utf8): Add a note on why we test
261         opr.ctx_type.
262         (calc_first): Initialize constraint field.
263         (duplicate_node_closure): Use it instead of special casing ANCHORS.
264         Fix grammar.
265         (duplicate_node): Merge constraint field for all node types.
266         (calc_eclosure_iter): Look at constraint field for all node types.
267         * lib/regex_internal.c (create_cd_newstate): Don't look at
268         opr.ctx_type.
269
270 2008-05-14  Bruno Haible  <bruno@clisp.org>
271
272         Help GCC to do better code generation.
273         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
274         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
275         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
276         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
277         Declare with attribute 'malloc' if supported.
278
279 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
280
281         use "echo STR|wc -c" rather than unportable "expr length STR"
282         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
283         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
284
285 2008-05-14  Jim Meyering  <meyering@redhat.com>
286
287         use dd ibs=$n count=1 ... rather than less-portable head -c$n
288         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
289         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
290         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
291         via Collin Lasse.
292
293 2008-05-14  Eric Blake  <ebb9@byu.net>
294
295         Avoid quadratic growth in gl_LIBSOURCES.
296         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
297         Suggested by Bruno Haible.
298
299         Test xmemdup0.
300         * modules/xmemdup0-tests: New file.
301         * tests/test-xmemdup0.c: Likewise.
302
303 2008-05-13  Eric Blake  <ebb9@byu.net>
304
305         Split xmemdup0 into its own module.
306         * modules/xmemdup0: New file.
307         * lib/xmemdup0.h: Likewise.
308         * lib/xmemdup0.c: Likewise.
309         * MODULES.html.sh (Memory management functions): Add xmemdup0.
310         * lib/xalloc.h (xmemdup0): Remove.
311         * lib/xmalloc.c (xmemdup0): Likewise.
312
313 2008-05-13  Eric Blake  <ebb9@byu.net>
314             Bruno Haible  <bruno@clisp.org>
315
316         Reduce number of forks required during autoconf.
317         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
318         and gl_LIBSOURCES_DIR.
319         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
320         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
321         m4_syscmd per file.
322         <m4_foreach_w>: Move...
323         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
324
325 2008-05-13  Eric Blake  <ebb9@byu.net>
326
327         * gnulib-tool: Fix various comment typos.
328
329 2008-05-12  Bruno Haible  <bruno@clisp.org>
330
331         Tailor the linebreaking algorithm.
332         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
333
334 2008-05-12  Bruno Haible  <bruno@clisp.org>
335
336         Update to Unicode 5.0.0.
337         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
338         LBP_JV, LBP_JT. Redistribute values.
339         (unilbrk_table): Change size.
340         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
341         Unicode TR#14 rev. 22.
342         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
343         LBP_JV, LBP_JT. Redistribute values.
344         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
345         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
346         Update.
347         * lib/unilbrk/lbrkprop1.h: Regenerated.
348         * lib/unilbrk/lbrkprop2.h: Regenerated.
349         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
350         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
351         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
352         Likewise.
353         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
354         Likewise.
355         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
356         result.
357         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
358         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
359         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
360         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
361         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
362         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
363
364 2008-05-11  Bruno Haible  <bruno@clisp.org>
365
366         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
367
368 2008-05-11  Bruno Haible  <bruno@clisp.org>
369
370         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
371         * modules/unilbrk/gen-lbrk: New file.
372
373 2008-05-11  Bruno Haible  <bruno@clisp.org>
374
375         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
376         * m4/sha512.m4 (gl_SHA512): Likewise.
377
378 2008-05-11  Jim Meyering  <meyering@redhat.com>
379
380         New modules: crypto/sha256, crypto/sha512 (from coreutils)
381         * modules/crypto/sha256: New file.
382         * modules/crypto/sha512: Likewise.
383         * lib/sha256.c: Likewise.
384         * lib/sha256.h: Likewise.
385         * lib/sha512.c: Likewise.
386         * lib/sha512.h: Likewise.
387         * lib/u64.h: Likewise.
388         * m4/sha256.m4: Likewise.
389         * m4/sha512.m4: Likewise.
390         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
391
392 2008-05-10  Bruno Haible  <bruno@clisp.org>
393
394         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
395         (Input/Output <stdio.h>): Add xprintf.
396         (Signal handling <signal.h>): Add strsignal.
397         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
398         (Core language properties): Add func.
399         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
400         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
401         strings.
402         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
403         (Input/output): New section.
404         (File system functions): Add openat-die, stat-macros.
405         (Networking functions): Add sockets.
406         (Unicode string functions): Add unictype/*.
407         (Support for building libraries and executables): Add gperf.
408         (Support for building documentation): Add agpl-3.0.
409         (Misc): Add nocrash.
410
411 2008-05-10  Bruno Haible  <bruno@clisp.org>
412
413         * modules/unictype/gen-ctype: New file.
414
415 2008-05-10  Jim Meyering  <meyering@redhat.com>
416
417         Make chdir-safer.c more efficient on a system with no symlinks.
418         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
419         also if ELOOP is zero.  Suggested by Bruno Haible.
420
421         Make chdir-safer.c slightly safer.
422         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
423         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
424
425         Avoid compile failure on systems without ELOOP (like mingw).
426         * lib/chdir-safer.c (ELOOP): Define if not already defined.
427         Reported by Bruno Haible.
428
429 2008-05-10  Bruno Haible  <bruno@clisp.org>
430
431         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
432         (is_utf8_encoding): Use a case-insensitive comparison.
433         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
434         streq.
435
436 2008-05-10  Bruno Haible  <bruno@clisp.org>
437
438         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
439         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
440         * lib/unilbrk/ulc-common.h (iconv_string_length,
441         iconv_string_keeping_offsets): Remove declarations.
442         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
443         Don't include <iconv.h>, streq.h, xsize.h.
444         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
445         conversion.
446         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
447         <iconv.h>, streq.h, xsize.h.
448         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
449         conversion.
450         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
451         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
452         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
453         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
454
455 2008-05-10  Bruno Haible  <bruno@clisp.org>
456
457         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
458         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
459
460         * modules/unilbrk/u32-width-linebreaks-tests: New file.
461         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
462
463         * modules/unilbrk/u16-width-linebreaks-tests: New file.
464         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
465
466         * modules/unilbrk/u8-width-linebreaks-tests: New file.
467         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
468
469         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
470         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
471
472         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
473         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
474
475         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
476         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
477
478         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
479         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
480
481 2008-05-10  Bruno Haible  <bruno@clisp.org>
482
483         Split up 'linebreak' module.
484         * lib/unilbrk.h: New file, based on lib/linebreak.h.
485         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
486         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
487         modifications.
488         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
489         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
490         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
491         lib/linebreak.c.
492         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
493         lib/linebreak.c.
494         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
495         lib/linebreak.c.
496         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
497         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
498         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
499         lib/linebreak.c.
500         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
501         lib/linebreak.c.
502         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
503         lib/linebreak.c.
504         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
505         lib/linebreak.c.
506         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
507         lib/linebreak.c.
508         * modules/unilbrk/base: New file.
509         * modules/unilbrk/tables: New file.
510         * modules/unilbrk/u8-possible-linebreaks: New file.
511         * modules/unilbrk/u16-possible-linebreaks: New file.
512         * modules/unilbrk/u32-possible-linebreaks: New file.
513         * modules/unilbrk/ulc-common: New file.
514         * modules/unilbrk/ulc-possible-linebreaks: New file.
515         * modules/unilbrk/u8-width-linebreaks: New file.
516         * modules/unilbrk/u16-width-linebreaks: New file.
517         * modules/unilbrk/u32-width-linebreaks: New file.
518         * modules/unilbrk/ulc-width-linebreaks: New file.
519         * lib/linebreak.h: Remove file.
520         * lib/linebreak.c: Remove file.
521         * m4/linebreak.m4: Remove file.
522         * modules/linebreak: Remove file.
523         * NEWS: Mention the changes.
524
525 2008-05-09  Eric Blake  <ebb9@byu.net>
526
527         Add xmemdup0.
528         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
529         implementation.
530         * lib/xmalloc.c (xmemdup0): New C implementation.
531
532 2008-05-08  Bruno Haible  <bruno@clisp.org>
533
534         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
535
536 2008-05-07  Eric Blake  <ebb9@byu.net>
537
538         Support cross-compilation of <wctype.h>.
539         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
540         AC_CACHE_CHECK.
541
542 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
543
544         * build-aux/vc-list-files: Add support for bzr.
545
546 2008-05-03  Jim Meyering  <meyering@redhat.com>
547
548         avoid failed assertion with tight malloc
549         * tests/test-getndelim2.c: Correct an off-by-one assertion.
550
551 2008-05-03  Simon Josefsson  <simon@josefsson.org>
552
553         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
554         are needed from arpa/inet.h.
555         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
556         Reported by Bruno Haible.
557
558 2008-05-02  Jim Meyering  <meyering@redhat.com>
559
560         avoid compilation error on FreeBSD 6
561         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
562
563 2008-05-01  Jim Meyering  <meyering@redhat.com>
564
565         useless-if-before-free: correct --help's exit status description
566         * build-aux/useless-if-before-free (usage): Like grep, exit 0
567         for one or more matches, etc.  Reported by Bruno Haible.
568
569         vc-list-files: make the stand-alone gnulib test work
570         * modules/vc-list-files-tests (configure.ac):
571         Define and AC_SUBST abs_aux_dir.
572         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
573         $(abs_top_srcdir) to each script and having each of them
574         duplicate the work of setting PATH, set PATH here, using
575         the new variable, abs_aux_dir instead.
576         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
577         * tests/test-vc-list-files-git.sh: Likewise.
578         Reported by Bruno Haible.
579
580 2008-05-01  Bruno Haible  <bruno@clisp.org>
581
582         * lib/getndelim2.c (getndelim2): Fix newsize computation during
583         reallocation. Rename 'done' to 'found_delimiter'.
584
585 2008-05-01  Jim Meyering  <meyering@redhat.com>
586
587         vc-list-files: accommodate /bin/sh like the one from Solaris 10
588         * build-aux/vc-list-files: Use `...`, not $(...).
589
590 2008-04-30  Jim Meyering  <meyering@redhat.com>
591
592         add tests for vc-list-files
593         * modules/vc-list-files-tests: New module.
594         * tests/test-vc-list-files-cvs.sh: New file.
595         * tests/test-vc-list-files-git.sh: New file.
596
597         avoid a warning from gcc
598         * lib/getndelim2.c (IF_LINT): Define.
599         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
600
601         vc-list-files: work properly with build-aux/cvsu, too
602         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
603         to all cvs-based clauses.
604
605         vc-list-files: work properly in the CVS+awk case, too
606         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
607
608         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
609         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
610         take more than one file argument, so .  Add quotes, just in case $dir
611         ever contains a shell meta-character.  Prompted by Soren Hansen in
612         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
613
614 2008-04-29  Eric Blake  <ebb9@byu.net>
615
616         Optimize getndelim2 to use block operations when possible.
617         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
618         freadseek, and memchr2.
619         * lib/getndelim2.c (getndelim2): Use them for block reads.
620
621 2008-04-29  Bruno Haible  <bruno@clisp.org>
622
623         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
624         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
625         * modules/inet_ntop (Depends-on): Add extensions.
626         * modules/inet_pton (Depends-on): Likewise.
627         Reported by Simon Josefsson.
628
629 2008-04-29  Jim Meyering  <meyering@redhat.com>
630
631         When the is more than one match in a block, match all of them.
632         * build-aux/useless-if-before-free: Iterate through each block
633         until there are no more matches.
634
635         Fix broken useless-if-before-free script.
636         * build-aux/useless-if-before-free: Fix typo: missing "?" after
637         the expression to match cast of argument to free-like function.
638
639 2008-04-29  Eric Blake  <ebb9@byu.net>
640
641         Use new header.
642         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
643
644 2008-04-29  Jim Meyering  <meyering@redhat.com>
645
646         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
647         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
648         by gnulib to exist and to declare e.g., inet_ntop.
649         Don't include "inet_ntop.h", now removed.
650
651         * m4/arpa_inet_h.m4: Remove trailing blanks.
652
653 2008-04-29  Eric Blake  <ebb9@byu.net>
654
655         Silence valgrind on safe reads beyond potential array bounds.
656         * lib/rawmemchr.valgrind: New file.
657         * lib/strchrnul.valgrind: Likewise.
658         * modules/rawmemchr (Files): Distribute new file.
659         * modules/strchrnul (Files): Likewise.
660         Suggested by Bruno Haible.
661
662 2008-04-29  Bruno Haible  <bruno@clisp.org>
663
664         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
665         (inet_ntop, inet_pton): Change portability warning's wording.
666         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
667         Invoke gl_CHECK_NEXT_HEADERS.
668         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
669         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
670         set ARPA_INET_H.
671         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
672         * modules/arpa_inet (Description): No longer only for systems that
673         lack it.
674         (Depends-on): Add include_next.
675         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
676         HAVE_ARPA_INET_H.
677
678 2008-04-29  Jim Meyering  <meyering@redhat.com>
679
680         * modules/mkdir (License): Re-license as LGPLv2+.
681
682 2008-04-29  Bruno Haible  <bruno@clisp.org>
683
684         * modules/rawmemchr (Maintainer): Set to Eric.
685         * modules/strchrnul (Maintainer): Likewise.
686
687 2008-04-29  Simon Josefsson  <simon@josefsson.org>
688
689         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
690         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
691
692         * modules/arpa_inet (arpa/inet.h): Use them.
693
694 2008-04-28  Eric Blake  <ebb9@byu.net>
695
696         Test getndelim2.
697         * modules/getndelim2-tests: New file.
698         * tests/test-getndelim2.c: Likewise.
699         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
700         stream.
701         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
702
703         * MODULES.html.sh: Document new module.
704
705 2008-04-20  Bruno Haible  <bruno@clisp.org>
706
707         * lib/c-stack.c (die): Use raise.
708         * modules/c-stack (Depends-on): Add raise.
709
710 2008-04-28  Bruno Haible  <bruno@clisp.org>
711
712         Expect rpmatch to be declared.
713         * lib/yesno.c (rpmatch): Remove declaration.
714
715         Declare rpmatch.
716         * lib/stdlib.in.h (rpmatch): New declaration.
717         * lib/rpmatch.c: Include <stdlib.h> first.
718         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
719         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
720         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
721         HAVE_RPMATCH.
722         * modules/rpmatch (Depends-on): Add stdlib, extensions.
723         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
724         (Include): Set to <stdlib.h>.
725         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
726         HAVE_RPMATCH.
727         * NEWS: Document the change.
728
729 2008-04-28  Bruno Haible  <bruno@clisp.org>
730
731         Change rpmatch to use nl_langinfo when appropriate.
732         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
733         (N_): New macro.
734         (localized_pattern): New function/macro.
735         (try): Remove match, nomatch arguments. Copy the pattern into safe
736         memory before caching it.
737         (rpmatch): Use localized_pattern. Add translator comments.
738         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
739         Suggested by Eric Blake.
740         * modules/rpmatch (Depends-on): Add stdbool.
741
742 2008-04-28  Eric Blake  <ebb9@byu.net>
743
744         Add rawmemchr module, matching glibc.
745         * modules/string (Makefile.am): New indicator.
746         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
747         * lib/string.in.h (rawmemchr): Declare when appropriate.
748         * modules/rawmemchr: New file.
749         * m4/rawmemchr.m4: Likewise.
750         * lib/rawmemchr.c: Likewise.
751         * modules/rawmemchr-tests: Likewise.
752         * tests/test-rawmemchr.c: Likewise.
753         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
754         module.
755         * modules/strchrnul (Depends-on): Add rawmemchr.
756         * lib/strchrnul.c (strchrnul): Optimize a corner case.
757
758         Whitespace cleanup.
759         * tests/test-strchrnul.c: Reindent.
760         * lib/strchrnul.c: Likewise.
761
762         Optimize and test strchrnul.
763         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
764         * modules/strchrnul-tests: New file.
765         * tests/test-strchrnul.c: Likewise.
766
767         Remove intprops dependency.
768         * modules/memchr (Depends-on): Remove intprops.
769         * modules/memrchr (Depends-on): Likewise.
770         * modules/memchr2 (Depends-on): Likewise.
771         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
772         * lib/memrchr.c (__memrchr): Likewise.
773         * lib/memrchr2.c (memchr2): Likewise.
774         Reported by Simon Josefsson.
775
776 2008-04-28  Simon Josefsson  <simon@josefsson.org>
777
778         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
779         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
780
781 2008-04-28  Simon Josefsson  <simon@josefsson.org>
782
783         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
784
785         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
786
787         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
788
789         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
790         declarations.
791         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
792
793         * m4/inet_pton.m4: Don't check for header files.
794
795         * m4/inet_ntop.m4: Don't check for header files.
796
797 2008-04-28  Simon Josefsson  <simon@josefsson.org>
798
799         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
800         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
801         trigger for cygwin).
802         Reported by Bruno Haible  <bruno@clisp.org>.
803
804 2008-04-28  Bruno Haible  <bruno@clisp.org>
805
806         * doc/posix-functions/strdup.texi: Mention mingw problem.
807
808 2008-04-27  Bruno Haible  <bruno@clisp.org>
809
810         * modules/stat-time-tests (Depends-on): Add sleep.
811         * tests/test-stat-time.c (force_unlink): New function.
812         (cleanup): Use it.
813         (test_mtime): Remove the ctime related tests.
814         (test_ctime): New function, containing the ctime related tests.
815         (main): Call test_ctime, except on native Windows platforms.
816
817 2008-04-27  Bruno Haible  <bruno@clisp.org>
818
819         * lib/rpmatch.c (rpmatch): Add some comments.
820         Reported by James Youngman <jay@gnu.org>.
821
822 2008-04-27  Bruno Haible  <bruno@clisp.org>
823
824         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
825         quiet NaNs.
826
827 2008-04-27  Bruno Haible  <bruno@clisp.org>
828
829         Make test-yesno.sh work on mingw.
830         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
831         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
832         (main): Set stdin to binary mode.
833         * modules/yesno-tests (Depends-on): Add binary-io.
834
835 2008-04-27  Bruno Haible  <bruno@clisp.org>
836
837         Fix 'isfinite' on x86, x86_64, ia64 platforms.
838         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
839         argument that lie outside the IEEE 854 domain.
840         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
841         (gl_ISFINITE): Use it.
842         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
843
844 2008-04-27  Bruno Haible  <bruno@clisp.org>
845
846         Allow local renaming in config.h.
847         * lib/memrchr.c (memrchr): Don't undefine outside libc.
848
849 2008-04-27  Bruno Haible  <bruno@clisp.org>
850
851         * lib/memchr.c (__memchr): Change type of 'i'.
852         * lib/memchr2.c (memchr2): Likewise.
853
854 2008-04-26  Eric Blake  <ebb9@byu.net>
855         and Bruno Haible  <bruno@clisp.org>
856
857         Optimize and test memrchr.
858         * modules/memrchr (Depends-on): Add intprops.
859         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
860         * modules/memrchr-tests: New file.
861         * tests/test-memrchr.c: New file.
862
863 2008-04-26  Bruno Haible  <bruno@clisp.org>
864
865         Add tentative support for DragonFly BSD.
866         * lib/stdio-impl.h: Add macros for DragonFly BSD.
867         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
868         fp.
869         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
870         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
871         * lib/fpurge.c (fpurge): Likewise.
872         * lib/freadable.c (freaadable): Likewise.
873         * lib/freadahead.c (freadahead): Likewise.
874         * lib/freading.c (freading): Likewise.
875         * lib/freadptr.c (freadptr): Likewise.
876         * lib/freadseek.c (freadptrinc): Likewise.
877         * lib/fseeko.c (fseeko): Likewise.
878         * lib/fseterr.c (fseterr): Likewise.
879         * lib/fwritable.c (fwritable): Likewise.
880         * lib/fwriting.c (fwriting): Likewise.
881
882 2008-04-26  Bruno Haible  <bruno@clisp.org>
883
884         * lib/stdio-impl.h: New file.
885         * lib/fbufmode.c: Include stdio-impl.h.
886         (fbufmode): Use fp_, remove redundant #defines.
887         * lib/fflush.c: Include stdio-impl.h.
888         (clear_ungetc_buffer): Remove redundant #defines.
889         * lib/fpurge.c: Include stdio-impl.h.
890         (fpurge): Remove redundant #defines.
891         * lib/freadable.c: Include stdio-impl.h.
892         (freadable): Remove redundant #defines.
893         * lib/freadahead.c: Include stdio-impl.h.
894         (freadahead): Remove redundant #defines.
895         * lib/freading.c: Include stdio-impl.h.
896         (freading): Remove redundant #defines.
897         * lib/freadptr.c: Include stdio-impl.h.
898         (freadptr): Remove redundant #defines.
899         * lib/freadseek.c: Include stdio-impl.h.
900         (freadptrinc): Remove redundant #defines.
901         * lib/fseeko.c: Include stdio-impl.h.
902         (rpl_fseeko): Remove redundant #defines.
903         * lib/fseterr.c: Include stdio-impl.h.
904         (fseterr): Remove redundant #defines.
905         * lib/fwritable.c: Include stdio-impl.h.
906         (fwritable: Remove redundant #defines.
907         * lib/fwriting.c: Include stdio-impl.h.
908         (fwriting): Remove redundant #defines.
909         * modules/fbufmode (Files): Add lib/stdio-impl.h.
910         * modules/fflush (Files): Likewise.
911         * modules/fpurge (Files): Likewise.
912         * modules/freadable (Files): Likewise.
913         * modules/freadahead (Files): Likewise.
914         * modules/freading (Files): Likewise.
915         * modules/freadptr (Files): Likewise.
916         * modules/freadseek (Files): Likewise.
917         * modules/fseeko (Files): Likewise.
918         * modules/fseterr (Files): Likewise.
919         * modules/fwritable (Files): Likewise.
920         * modules/fwriting (Files): Likewise.
921
922 2008-04-26  Bruno Haible  <bruno@clisp.org>
923
924         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
925         restore_seek_optimization, update_fpos_cache): New functions, extracted
926         from rpl_fflush.
927         (rpl_fflush): Use them.
928         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
929         (gl_REPLACE_FFLUSH): Use it.
930
931 2008-04-26  Bruno Haible  <bruno@clisp.org>
932
933         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
934         on Solaris.
935         * tests/test-xstrtoimax.sh: Likewise.
936         * tests/test-xstrtoumax.sh: Likewise.
937         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
938
939 2008-04-26  Bruno Haible  <bruno@clisp.org>
940
941         * modules/memchr-tests: New file.
942         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
943
944 2008-04-26  Eric Blake  <ebb9@byu.net>
945             Bruno Haible  <bruno@clisp.org>
946
947         * lib/memchr.c: Include intprops.h.
948         (__memchr): Optimize parallel detection of matching bytes. Rename local
949         variables. Add explanatory comments.
950
951 2008-04-26  Bruno Haible  <bruno@clisp.org>
952
953         Fix module 'memchr', broken since 2000-10-28.
954         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
955
956 2008-04-26  Bruno Haible  <bruno@clisp.org>
957
958         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
959         comments.
960
961 2008-04-25  Eric Blake  <ebb9@byu.net>
962
963         Use native fstatat on cygwin 1.7.0.
964         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
965         first.
966
967 2008-04-23  Eric Blake  <ebb9@byu.net>
968
969         Improve memchr2 performance.
970         * lib/memchr2.c (memchr2): Further optimize parallel detection of
971         NUL bytes.
972         * modules/memchr2 (Depends-on): Use intprops.h.
973
974 2008-04-23  Simon Josefsson  <simon@josefsson.org>
975
976         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
977         an inline function instead of a CPP macro.  Patch by Ben Pfaff
978         <blp@cs.stanford.edu>.
979
980 2008-04-23  Simon Josefsson  <simon@josefsson.org>
981
982         * lib/arpa_inet.in.h: New file.
983
984         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
985         (Makefile.am): Sed in substitute header file.
986
987         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
988         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
989
990         * modules/inet_ntop (configure.ac): Use
991         gl_ARPA_INET_MODULE_INDICATOR.
992
993         * modules/inet_pton (configure.ac): Use
994         gl_ARPA_INET_MODULE_INDICATOR.
995
996 2008-04-22  Jim Meyering  <meyering@redhat.com>
997
998         * modules/verify (License): Re-license as LGPLv2+.
999
1000 2008-04-22  Simon Josefsson  <simon@josefsson.org>
1001
1002         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
1003         parameter to void* as per POSIX standard (MinGW uses char*).
1004
1005 2008-04-21  Bruno Haible  <bruno@clisp.org>
1006
1007         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
1008         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
1009         Define to replacements if REPLACE_ISWCNTRL is 1.
1010         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
1011         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
1012         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
1013         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
1014         what it fixes.
1015         * doc/posix-functions/iswalpha.texi: Likewise.
1016         * doc/posix-functions/iswblank.texi: Likewise.
1017         * doc/posix-functions/iswcntrl.texi: Likewise.
1018         * doc/posix-functions/iswdigit.texi: Likewise.
1019         * doc/posix-functions/iswgraph.texi: Likewise.
1020         * doc/posix-functions/iswlower.texi: Likewise.
1021         * doc/posix-functions/iswprint.texi: Likewise.
1022         * doc/posix-functions/iswpunct.texi: Likewise.
1023         * doc/posix-functions/iswspace.texi: Likewise.
1024         * doc/posix-functions/iswupper.texi: Likewise.
1025         * doc/posix-functions/iswxdigit.texi: Likewise.
1026         Reported by Alain Guibert.
1027
1028 2008-04-21  Bruno Haible  <bruno@clisp.org>
1029
1030         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
1031         Patch by Alain Guibert.
1032
1033 2008-04-21  Bruno Haible  <bruno@clisp.org>
1034
1035         Fix test failures on mingw.
1036         * tests/test-xstrtol.c (print_no_progname): New function.
1037         (main): Install it in error_print_progname hook.
1038         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
1039         * tests/test-xstrtoimax.sh: Likewise.
1040         * tests/test-xstrtoumax.sh: Likewise.
1041
1042 2008-04-21  Bruno Haible  <bruno@clisp.org>
1043
1044         Fix test failure on mingw.
1045         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
1046
1047 2008-04-21  Bruno Haible  <bruno@clisp.org>
1048
1049         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
1050         Actually assign a value.
1051
1052 2008-04-20  Bruno Haible  <bruno@clisp.org>
1053
1054         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
1055         take 2.
1056         * lib/canonicalize.c (canonicalize_file_name): Elide if the
1057         'canonicalize-lgpl' module is also used.
1058         * lib/canonicalize-lgpl.c: Undo last change.
1059         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
1060
1061 2008-04-20  Bruno Haible  <bruno@clisp.org>
1062
1063         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
1064         config.h. Provide _mkdir based fallback for mingw.
1065         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
1066         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
1067         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
1068         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
1069         rather than defining mkdir in config.h.
1070         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
1071         (gl_SYS_STAT_H_DEFAULTS): New macro.
1072         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
1073         HAVE_IO_H any more.
1074         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
1075         HAVE_DECL_MKDIR and HAVE_IO_H.
1076
1077 2008-04-20  Bruno Haible  <bruno@clisp.org>
1078
1079         * lib/isapipe.c: Port to native Windows platforms.
1080
1081 2008-04-20  Bruno Haible  <bruno@clisp.org>
1082
1083         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
1084
1085 2008-04-21  Eric Blake  <ebb9@byu.net>
1086
1087         Work around preprocessors that don't handle UINTMAX_MAX.
1088         * lib/memchr2.c (memchr2): Avoid embedded #if.
1089         Reported by Alain Guibert, fix suggested by Bruno Haible.
1090
1091 2008-04-21  Simon Josefsson  <simon@josefsson.org>
1092
1093         * doc/posix-functions/strftime.texi (strftime): Explain better
1094         Windows incompatibility.  Suggested by Micah Cowan
1095         <micah@cowan.name>.
1096
1097 2008-04-20  Bruno Haible  <bruno@clisp.org>
1098
1099         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
1100         unistr/u8-mblen.
1101
1102 2008-04-20  Bruno Haible  <bruno@clisp.org>
1103
1104         Fix test failure on platforms with non-GNU iconv.
1105         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
1106         (U_TO_U8): Use it, rather than u16_to_u8.
1107         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
1108         units at the end of the input string.
1109         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
1110
1111 2008-04-20  Bruno Haible  <bruno@clisp.org>
1112
1113         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
1114         when the resulting length is 0.
1115         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
1116
1117 2008-04-20  Bruno Haible  <bruno@clisp.org>
1118
1119         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
1120         works.
1121         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
1122
1123 2008-04-20  Bruno Haible  <bruno@clisp.org>
1124
1125         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
1126         * modules/tsearch-tests (configure.ac): Test for initstate function.
1127
1128 2008-04-20  Bruno Haible  <bruno@clisp.org>
1129
1130         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
1131         for nlink_t if missing.
1132         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
1133
1134 2008-04-19  Bruno Haible  <bruno@clisp.org>
1135
1136         Work around snprintf bug on Linux libc5.
1137         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
1138         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
1139         gl_SNPRINTF_SIZE1.
1140         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1141         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
1142         that test failed.
1143         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
1144         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
1145         * modules/snprintf (Files): Add m4/printf.m4.
1146         * modules/vsnprintf (Files): Likewise.
1147         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
1148         * doc/posix-functions/vsnprintf.texi: Likewise.
1149
1150 2008-04-19  Bruno Haible  <bruno@clisp.org>
1151
1152         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
1153         from 0.0058 to less than 10^-7.
1154
1155 2008-04-19  Bruno Haible  <bruno@clisp.org>
1156
1157         Fix rounding when a precision is given.
1158         * lib/vasnprintf.c (is_borderline): New function.
1159         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
1160         9...9x.
1161         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
1162         %e, %g.
1163         * tests/test-vasprintf-posix.c (test_function): Likewise.
1164         * tests/test-snprintf-posix.h (test_function): Likewise.
1165         * tests/test-sprintf-posix.h (test_function): Likewise.
1166         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
1167         * tests/test-printf-posix.h (test_function): Likewise.
1168         * tests/test-printf-posix.output: Update.
1169         Reported by John Darrington <john@darrington.wattle.id.au> via
1170         Ben Pfaff <blp@cs.stanford.edu>.
1171
1172 2008-04-18  Simon Josefsson  <simon@josefsson.org>
1173
1174         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
1175         Suggested by Bruno Haible <bruno@clisp.org>.
1176
1177 2008-04-17  Bruno Haible  <bruno@clisp.org>
1178
1179         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
1180         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
1181         implementation.
1182         Patch by Bruce Merry <bmerry@gmail.com>.
1183
1184 2008-04-17  Simon Josefsson  <simon@josefsson.org>
1185
1186         * doc/posix-functions/strftime.texi (strftime): Mention that %e
1187         doesn't work under Windows.
1188
1189 2008-04-16  Bruno Haible  <bruno@clisp.org>
1190
1191         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
1192         New macros.
1193         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
1194         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
1195         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
1196         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
1197         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
1198         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
1199         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
1200         macros.
1201         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
1202         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
1203         Northern Sotho, Uighur.
1204
1205 2008-04-16  Bruno Haible  <bruno@clisp.org>
1206
1207         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
1208         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
1209         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
1210         Reported by Daniel Bergström <daniel@octocode.com>.
1211
1212 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
1213             Bruno Haible  <bruno@clisp.org>
1214
1215         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
1216         function.
1217         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
1218         New functions, mostly extracted from gl_locale_name_default.
1219         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
1220
1221 2008-04-16  Eric Blake  <ebb9@byu.net>
1222
1223         Adjust strtod detection to catch glibc 2.7 bug.
1224         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
1225         Reported by John Gatewood Ham.
1226
1227 2008-04-16  Bruno Haible  <bruno@clisp.org>
1228
1229         Add tentative support for Linux libc5.
1230         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
1231         * lib/fpurge.c (fpurge): Likewise.
1232         * lib/freadable.c (freadable): Likewise.
1233         * lib/freadahead.c (freadahead): Likewise.
1234         * lib/freading.c (freading): Likewise.
1235         * lib/freadptr.c (freadptr): Likewise.
1236         * lib/freadseek.c (freadptrinc): Likewise.
1237         * lib/fseeko.c (rpl_fseeko): Likewise.
1238         * lib/fseterr.c (fseterr): Likewise.
1239         * lib/fwritable.c (fwritable): Likewise.
1240         * lib/fwriting.c (fwriting): Likewise.
1241         Reported by Alain Guibert <alguibert+bts@free.fr>.
1242
1243 2008-04-15  Bruno Haible  <bruno@clisp.org>
1244
1245         * modules/mathl (configure.ac): Define module indicator.
1246
1247 2008-04-15  Bruno Haible  <bruno@clisp.org>
1248
1249         * lib/logl.c (logl): Remove unused variables.
1250
1251 2008-04-15  Bruno Haible  <bruno@clisp.org>
1252
1253         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
1254         fails.
1255
1256 2008-04-15  Bruno Haible  <bruno@clisp.org>
1257
1258         * lib/trim.c (trim2): Fix argument of isspace() macro.
1259
1260 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
1261
1262         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
1263         to 0.
1264         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
1265
1266 2008-04-14  Bruno Haible  <bruno@clisp.org>
1267
1268         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
1269         AC_LANG_PROGRAM argument.
1270         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
1271         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
1272         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
1273         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1274         * m4/math_h.m4 (gl_MATH_H): Likewise.
1275         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
1276         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
1277         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
1278         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
1279         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
1280         * m4/regex.m4 (gl_REGEX): Likewise.
1281         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
1282         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
1283         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1284         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
1285         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
1286         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
1287         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1288         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1289
1290 2008-04-14  Jim Meyering  <meyering@redhat.com>
1291
1292         test-strtod: fix typos: s/abs/fabs/
1293         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
1294
1295 2008-04-13  Bruno Haible  <bruno@clisp.org>
1296
1297         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
1298         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
1299         module is also used and while not building the reloc-wrapper.
1300
1301 2008-04-13  Bruno Haible  <bruno@clisp.org>
1302
1303         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
1304
1305 2008-04-13  Bruno Haible  <bruno@clisp.org>
1306
1307         Fix AIX compilation failure introduced on 2008-04-02.
1308         * tests/test-frexp.c (exp): Undefine before redefining.
1309         * tests/test-frexpl.c (exp): Likewise.
1310
1311 2008-04-13  Bruno Haible  <bruno@clisp.org>
1312
1313         Work around a HP-UX stdio bug.
1314         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
1315         * tests/test-ftello.c (main): Likewise.
1316         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
1317         * doc/posix-functions/ftello.texi: Likewise.
1318
1319 2008-04-13  Bruno Haible  <bruno@clisp.org>
1320
1321         Make test-signbit pass on HP-UX/hppa.
1322         * tests/test-signbit.c (minus_zerol): New variable.
1323         (test_signbitl): Use it.
1324
1325 2008-04-13  Bruno Haible  <bruno@clisp.org>
1326
1327         Make truncl work on OSF/1 4.0.
1328         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
1329         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
1330         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
1331         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
1332         HAVE_DECL_TRUNCL.
1333         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
1334         HAVE_DECL_TRUNCL.
1335         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
1336
1337 2008-04-13  Bruno Haible  <bruno@clisp.org>
1338
1339         * lib/unictype.h: Remove trailing comma from enumeration definitions.
1340
1341 2008-04-13  Bruno Haible  <bruno@clisp.org>
1342
1343         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
1344         expression, so as to avoid HP-UX 11 cc compiler bug.
1345
1346 2008-04-13  Bruno Haible  <bruno@clisp.org>
1347
1348         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
1349
1350 2008-04-13  Bruno Haible  <bruno@clisp.org>
1351
1352         * lib/git-merge-changelog.c: Remove empty declaration outside of
1353         functions.
1354
1355 2008-04-13  Bruno Haible  <bruno@clisp.org>
1356
1357         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
1358
1359 2008-04-13  Bruno Haible  <bruno@clisp.org>
1360
1361         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
1362         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
1363         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
1364         also if it exists but lacks definitions of the SHUT_* macros.
1365         * modules/sys_socket (Description): Update.
1366         Reported by Elbert Pol <e.pol@chello.nl>.
1367
1368 2008-04-13  Bruno Haible  <bruno@clisp.org>
1369
1370         * lib/localcharset.c (OS2): Don't redefine if already defined.
1371         Reported by Elbert Pol <e.pol@chello.nl>.
1372
1373 2008-04-13  Bruno Haible  <bruno@clisp.org>
1374
1375         * lib/binary-io.h [__EMX__]: Include <io.h>.
1376         Reported by Elbert Pol <e.pol@chello.nl>.
1377
1378 2008-04-12  Bruno Haible  <bruno@clisp.org>
1379
1380         * lib/fpucw.h: Enable the definitions also for x86_64.
1381         Needed for NetBSD/x86_64.
1382         Reported by Thomas Klausner <tk@giga.or.at>.
1383
1384 2008-04-12  Bruno Haible  <bruno@clisp.org>
1385
1386         * tests/test-strtod.c: Include isnand.h.
1387         (main): Use isnand instead of isnan.
1388         Reported by Jim Meyering.
1389
1390 2008-04-12  Bruno Haible  <bruno@clisp.org>
1391
1392         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
1393         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
1394
1395 2008-04-12  Jim Meyering  <meyering@redhat.com>
1396
1397         * m4/math_h.m4 (gl_MATH_H): Fix typos.
1398
1399 2008-04-12  Bruno Haible  <bruno@clisp.org>
1400
1401         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
1402         Reported by Elbert Pol <e.pol@chello.nl>.
1403
1404 2008-04-12  Eric Blake  <ebb9@byu.net>
1405
1406         Work around Solaris 10 math.h bug.
1407         * m4/math_h.m4 (gl_MATH_H): Check for bug.
1408         (gl_MATH_H_DEFAULTS): Set up default.
1409         * modules/math (Makefile.am): Replace new indicators.
1410         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
1411         * tests/test-math.c (main): Test this.
1412         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
1413         * doc/posix-headers/math.texi (math.h): Mention bug.
1414         Reported by Nelson H. F. Beebe and Jim Meyering.
1415
1416 2008-04-11  Bruno Haible  <bruno@clisp.org>
1417
1418         Adapt to future versions of Apple GCC.
1419         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
1420         Reported by Peter O'Gorman <peter@pogma.com>.
1421
1422 2008-04-11  Bruno Haible  <bruno@clisp.org>
1423
1424         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
1425
1426 2008-04-11  Bruno Haible  <bruno@clisp.org>
1427
1428         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
1429
1430         * modules/getaddrinfo-tests (Makefile.am): Define
1431         test_getaddrinfo_LDADD.
1432
1433 2008-04-11  Bruno Haible  <bruno@clisp.org>
1434
1435         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
1436         (init): Fix syntax error.
1437         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
1438         is declared.
1439
1440 2008-04-11  Bruno Haible  <bruno@clisp.org>
1441
1442         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
1443         * modules/glob (Depends-on): Add stdbool.
1444
1445 2008-04-11  Bruno Haible  <bruno@clisp.org>
1446
1447         * lib/trim.c: Include <string.h>.
1448
1449 2008-04-11  Eric Blake  <ebb9@byu.net>
1450
1451         Avoid compile failure on OS/2.
1452         * lib/regex_internal.h (internal_function): Disable optimization
1453         on OS/2 (__EMX__), where it caused compiler error.
1454         Reported by Elbert Pol.
1455
1456 2008-04-11  Bruno Haible  <bruno@clisp.org>
1457
1458         Flush the standard error stream before aborting. Needed on mingw.
1459         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
1460         * tests/test-array_list.c (ASSERT): Likewise.
1461         * tests/test-array_oset.c (ASSERT): Likewise.
1462         * tests/test-avltree_list.c (ASSERT): Likewise.
1463         * tests/test-avltree_oset.c (ASSERT): Likewise.
1464         * tests/test-avltreehash_list.c (ASSERT): Likewise.
1465         * tests/test-binary-io.c (ASSERT): Likewise.
1466         * tests/test-byteswap.c (ASSERT): Likewise.
1467         * tests/test-c-ctype.c (ASSERT): Likewise.
1468         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
1469         * tests/test-c-strcasestr.c (ASSERT): Likewise.
1470         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
1471         * tests/test-c-strstr.c (ASSERT): Likewise.
1472         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
1473         * tests/test-canonicalize.c (ASSERT): Likewise.
1474         * tests/test-carray_list.c (ASSERT): Likewise.
1475         * tests/test-ceilf1.c (ASSERT): Likewise.
1476         * tests/test-ceilf2.c (ASSERT): Likewise.
1477         * tests/test-ceill.c (ASSERT): Likewise.
1478         * tests/test-count-one-bits.c (ASSERT): Likewise.
1479         * tests/test-fbufmode.c (ASSERT): Likewise.
1480         * tests/test-fflush2.c (ASSERT): Likewise.
1481         * tests/test-floorf1.c (ASSERT): Likewise.
1482         * tests/test-floorf2.c (ASSERT): Likewise.
1483         * tests/test-floorl.c (ASSERT): Likewise.
1484         * tests/test-fopen.c (ASSERT): Likewise.
1485         * tests/test-fpending.c (ASSERT): Likewise.
1486         * tests/test-fprintf-posix.c (ASSERT): Likewise.
1487         * tests/test-fpurge.c (ASSERT): Likewise.
1488         * tests/test-freadable.c (ASSERT): Likewise.
1489         * tests/test-freadahead.c (ASSERT): Likewise.
1490         * tests/test-freading.c (ASSERT): Likewise.
1491         * tests/test-freadptr.c (ASSERT): Likewise.
1492         * tests/test-freadptr2.c (ASSERT): Likewise.
1493         * tests/test-freadseek.c (ASSERT): Likewise.
1494         * tests/test-freopen.c (ASSERT): Likewise.
1495         * tests/test-frexp.c (ASSERT): Likewise.
1496         * tests/test-frexpl.c (ASSERT): Likewise.
1497         * tests/test-fseek.c (ASSERT): Likewise.
1498         * tests/test-fseeko.c (ASSERT): Likewise.
1499         * tests/test-fstrcmp.c (ASSERT): Likewise.
1500         * tests/test-ftell.c (ASSERT): Likewise.
1501         * tests/test-ftello.c (ASSERT): Likewise.
1502         * tests/test-func.c (ASSERT): Likewise.
1503         * tests/test-fwritable.c (ASSERT): Likewise.
1504         * tests/test-fwriting.c (ASSERT): Likewise.
1505         * tests/test-getdelim.c (ASSERT): Likewise.
1506         * tests/test-getline.c (ASSERT): Likewise.
1507         * tests/test-i-ring.c (ASSERT): Likewise.
1508         * tests/test-iconv-utf.c (ASSERT): Likewise.
1509         * tests/test-iconv.c (ASSERT): Likewise.
1510         * tests/test-isfinite.c (ASSERT): Likewise.
1511         * tests/test-isnand.c (ASSERT): Likewise.
1512         * tests/test-isnanf.c (ASSERT): Likewise.
1513         * tests/test-isnanl.h (ASSERT): Likewise.
1514         * tests/test-ldexpl.c (ASSERT): Likewise.
1515         * tests/test-linked_list.c (ASSERT): Likewise.
1516         * tests/test-linkedhash_list.c (ASSERT): Likewise.
1517         * tests/test-localename.c (ASSERT): Likewise.
1518         * tests/test-lseek.c (ASSERT): Likewise.
1519         * tests/test-mbscasecmp.c (ASSERT): Likewise.
1520         * tests/test-mbscasestr1.c (ASSERT): Likewise.
1521         * tests/test-mbscasestr2.c (ASSERT): Likewise.
1522         * tests/test-mbscasestr3.c (ASSERT): Likewise.
1523         * tests/test-mbscasestr4.c (ASSERT): Likewise.
1524         * tests/test-mbschr.c (ASSERT): Likewise.
1525         * tests/test-mbscspn.c (ASSERT): Likewise.
1526         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
1527         * tests/test-mbspbrk.c (ASSERT): Likewise.
1528         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
1529         * tests/test-mbsrchr.c (ASSERT): Likewise.
1530         * tests/test-mbsspn.c (ASSERT): Likewise.
1531         * tests/test-mbsstr1.c (ASSERT): Likewise.
1532         * tests/test-mbsstr2.c (ASSERT): Likewise.
1533         * tests/test-mbsstr3.c (ASSERT): Likewise.
1534         * tests/test-memchr2.c (ASSERT): Likewise.
1535         * tests/test-memmem.c (ASSERT): Likewise.
1536         * tests/test-open.c (ASSERT): Likewise.
1537         * tests/test-printf-frexp.c (ASSERT): Likewise.
1538         * tests/test-printf-frexpl.c (ASSERT): Likewise.
1539         * tests/test-printf-posix.c (ASSERT): Likewise.
1540         * tests/test-quotearg.c (ASSERT): Likewise.
1541         * tests/test-rbtree_list.c (ASSERT): Likewise.
1542         * tests/test-rbtree_oset.c (ASSERT): Likewise.
1543         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
1544         * tests/test-round1.c (ASSERT): Likewise.
1545         * tests/test-roundf1.c (ASSERT): Likewise.
1546         * tests/test-roundl.c (ASSERT): Likewise.
1547         * tests/test-signbit.c (ASSERT): Likewise.
1548         * tests/test-sleep.c (ASSERT): Likewise.
1549         * tests/test-snprintf-posix.c (ASSERT): Likewise.
1550         * tests/test-snprintf.c (ASSERT): Likewise.
1551         * tests/test-sprintf-posix.c (ASSERT): Likewise.
1552         * tests/test-stat-time.c (ASSERT): Likewise.
1553         * tests/test-strcasestr.c (ASSERT): Likewise.
1554         * tests/test-strerror.c (ASSERT): Likewise.
1555         * tests/test-striconv.c (ASSERT): Likewise.
1556         * tests/test-striconveh.c (ASSERT): Likewise.
1557         * tests/test-striconveha.c (ASSERT): Likewise.
1558         * tests/test-strsignal.c (ASSERT): Likewise.
1559         * tests/test-strstr.c (ASSERT): Likewise.
1560         * tests/test-strtod.c (ASSERT): Likewise.
1561         * tests/test-trunc1.c (ASSERT): Likewise.
1562         * tests/test-trunc2.c (ASSERT): Likewise.
1563         * tests/test-truncf1.c (ASSERT): Likewise.
1564         * tests/test-truncf2.c (ASSERT): Likewise.
1565         * tests/test-truncl.c (ASSERT): Likewise.
1566         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
1567         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
1568         * tests/test-vasnprintf.c (ASSERT): Likewise.
1569         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
1570         * tests/test-vasprintf.c (ASSERT): Likewise.
1571         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
1572         * tests/test-vprintf-posix.c (ASSERT): Likewise.
1573         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
1574         * tests/test-vsnprintf.c (ASSERT): Likewise.
1575         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
1576         * tests/test-wcwidth.c (ASSERT): Likewise.
1577         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
1578         * tests/test-xprintf-posix.c (ASSERT): Likewise.
1579         * tests/test-xvasprintf.c (ASSERT): Likewise.
1580         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
1581         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
1582         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
1583         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
1584         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
1585         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
1586         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
1587         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
1588         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
1589         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
1590         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
1591         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
1592         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
1593         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
1594         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
1595         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
1596         * tests/unictype/test-block_list.c (ASSERT): Likewise.
1597         * tests/unictype/test-block_of.c (ASSERT): Likewise.
1598         * tests/unictype/test-block_test.c (ASSERT): Likewise.
1599         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
1600         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
1601         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
1602         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
1603         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
1604         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
1605         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
1606         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
1607         * tests/unictype/test-combining.c (ASSERT): Likewise.
1608         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
1609         * tests/unictype/test-digit.c (ASSERT): Likewise.
1610         * tests/unictype/test-mirror.c (ASSERT): Likewise.
1611         * tests/unictype/test-numeric.c (ASSERT): Likewise.
1612         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
1613         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
1614         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
1615         * tests/unictype/test-scripts.c (ASSERT): Likewise.
1616         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
1617         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
1618         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
1619         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
1620         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
1621         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
1622         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
1623         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
1624         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
1625         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
1626         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
1627         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
1628         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
1629         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
1630         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
1631         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
1632         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
1633         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
1634         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
1635         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
1636         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
1637         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
1638         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
1639         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
1640         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
1641         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
1642         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
1643         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
1644         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
1645         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
1646         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
1647         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
1648         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
1649         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
1650         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
1651         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
1652         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
1653         Reported by Eric Blake.
1654
1655 2008-04-11  Bruno Haible  <bruno@clisp.org>
1656
1657         * lib/wchar.in.h: Tweak comment.
1658
1659 2008-04-11  Bruno Haible  <bruno@clisp.org>
1660
1661         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
1662         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
1663         gl_COMMON.
1664         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
1665
1666 2008-04-11  Bruno Haible  <bruno@clisp.org>
1667
1668         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
1669
1670 2008-04-11  Simon Josefsson  <simon@josefsson.org>
1671
1672         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
1673         of attempting to use non-existing /dev/*random.  Based on patch
1674         from Adam Strzelecki <ono@java.pl> in
1675         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
1676
1677 2008-04-08  Bruno Haible  <bruno@clisp.org>
1678
1679         Add tentative support for emx+gcc.
1680         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
1681         * lib/fpurge.c (fpurge): Likewise.
1682         * lib/freadable.c (freadable): Likewise.
1683         * lib/freadahead.c (freadahead): Likewise.
1684         * lib/freading.c (freading): Likewise.
1685         * lib/freadptr.c (freadptr): Likewise.
1686         * lib/freadseek.c (freadptrinc): Likewise.
1687         * lib/fseeko.c (rpl_fseeko): Likewise.
1688         * lib/fseterr.c (fseterr): Likewise.
1689         * lib/fwritable.c (fwritable): Likewise.
1690         * lib/fwriting.c (fwriting): Likewise.
1691         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
1692
1693 2008-04-09  Eric Blake  <ebb9@byu.net>
1694
1695         Avoid some autoconf warnings.
1696         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
1697         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
1698         * m4/afs.m4 (gl_AFS): Likewise.
1699         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
1700         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
1701         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
1702         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
1703         (gl_INTEGER_TYPE_SUFFIX): Likewise.
1704         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
1705         (AC_CHECK_DECLS_ONCE): Likewise.
1706         Rename file...
1707         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
1708         gnulib-tool requires autoconf 2.59 or better.
1709         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
1710
1711 2008-04-08  Eric Blake  <ebb9@byu.net>
1712
1713         Use 'git describe --match' if present (added in git 1.5.5).
1714         * build-aux/git-version-gen: Limit result to tags that match 'v*'
1715         if possible.
1716
1717 2008-04-08  Bruno Haible  <bruno@clisp.org>
1718
1719         Add tentative support for OpenServer.
1720         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
1721         _ptr, _cnt.
1722         * lib/fpurge.c (fpurge): Likewise.
1723         * lib/freadable.c (freadable): Likewise.
1724         * lib/freadahead.c (freadahead): Likewise.
1725         * lib/freading.c (freading): Likewise.
1726         * lib/freadptr.c (freadptr): Likewise.
1727         * lib/freadseek.c (freadptrinc): Likewise.
1728         * lib/fseeko.c (rpl_fseeko): Likewise.
1729         * lib/fseterr.c (fseterr): Likewise.
1730         * lib/fwritable.c (fwritable): Likewise.
1731         * lib/fwriting.c (fwriting): Likewise.
1732         Reported by Roger Cornelius <rac@tenzing.org> and
1733         Brian K. White <brian@aljex.com>.
1734
1735 2008-04-06  Jim Meyering  <meyering@redhat.com>
1736
1737         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
1738
1739 2008-04-06  Bruno Haible  <bruno@clisp.org>
1740
1741         Avoid possible error with non-ASCII bytes in UTF-8 locales.
1742         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
1743         * tests/test-printf-posix.sh: Likewise.
1744         * tests/test-vfprintf-posix.sh: Likewise.
1745         * tests/test-vprintf-posix.sh: Likewise.
1746         * tests/test-xprintf-posix.sh: Likewise.
1747
1748 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1749
1750         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
1751         hide error from 'ls', needed on OS/2.
1752         Report by Elbert Pol <elbert.pol@gmail.com>.
1753
1754 2008-04-04  Eric Blake  <ebb9@byu.net>
1755
1756         Make test-fseeko.c failures meaningful.
1757         * tests/test-fseeko.c: Print line number on failure.
1758         * tests/test-fseek.c: Likewise.
1759         Reported by Nelson H. F. Beebe.
1760
1761         Improve strtod bug detection check.
1762         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
1763         required for Solaris 10.
1764         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
1765
1766 2008-04-04  Bruno Haible  <bruno@clisp.org>
1767
1768         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
1769         by m4/setenv.m4.
1770
1771 2008-04-03  Eric Blake  <ebb9@byu.net>
1772
1773         Ensure sane .version contents.
1774         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
1775         version string.
1776         * build-aux/git-version-gen: Improve documentation.
1777
1778         Make GNU make output nicer.
1779         * top/GNUmakefile [!_have-Makefile]: Add dependency on
1780         MAKECMDGOALS to enforce message for all command line targets.  Set
1781         srcdir for use in maint.mk.
1782
1783         Another maintainer tweak.
1784         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
1785         a target that regenerates version.
1786
1787 2008-04-03  Jim Meyering  <meyering@redhat.com>
1788
1789         vc-list-files: don't cause coreutils "make po-check" failure
1790         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
1791
1792 2008-04-03  Eric Blake  <ebb9@byu.net>
1793
1794         Allow VPATH usage of vc-list-files.
1795         * build-aux/vc-list-files (scriptversion): Add timestamp.
1796         (options): Add --help, --version, -C.
1797         (CVS): Support installed cvsu.
1798
1799 2008-04-02  Bruno Haible  <bruno@clisp.org>
1800
1801         Avoid some "statement with no effect" warnings from gcc.
1802         * tests/test-wctype.c (main): Explicitly ignore unused values.
1803         Reported by Jim Meyering.
1804
1805 2008-04-02  Jim Meyering  <meyering@redhat.com>
1806
1807         Avoid some warnings from "gcc -Wshadow".
1808         * tests/test-frexp.c (exp): Define to a different identifier.
1809         * tests/test-frexpl.c (exp): Likewise.
1810
1811 2008-04-03  Jim Meyering  <meyering@redhat.com>
1812
1813         bootstrap: remove dangling *.[ch] symlinks from lib
1814         * build-aux/bootstrap [dangling symlink removal]: Move find's
1815         -depth option to precede all others, to avoid a warning.
1816         Remove *.[ch] files too, and from "$source_base" (usually lib/).
1817
1818 2008-04-02  Bruno Haible  <bruno@clisp.org>
1819
1820         Avoid some warnings from "gcc -Wshadow".
1821         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
1822         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
1823         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
1824         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
1825         Reported by Jim Meyering.
1826
1827 2008-04-01  Bruno Haible  <bruno@clisp.org>
1828
1829         Fix test to work on IRIX 6.5 with cc.
1830         * tests/test-math.c (numeric_equal): New function.
1831         (main): Use it.
1832
1833 2008-04-01  Bruno Haible  <bruno@clisp.org>
1834
1835         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
1836
1837 2008-04-01  Bruno Haible  <bruno@clisp.org>
1838
1839         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
1840         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
1841         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
1842         (Depends-on): Remove math.
1843
1844         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
1845         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
1846         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
1847         (Depends-on): Remove math.
1848
1849         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
1850         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
1851         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
1852         (Depends-on): Remove math.
1853         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
1854         (Depends-on): Remove math.
1855
1856         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
1857         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
1858         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
1859         (Depends-on): Remove math.
1860         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
1861         (Depends-on): Remove math.
1862
1863         * tests/test-round1.c: Include nan.h.
1864         (main): Use NaNd instead of NAN.
1865         * modules/round-tests (Files): Add tests/nan.h.
1866
1867         * tests/test-trunc1.c: Include nan.h.
1868         (main): Use NaNd instead of NAN.
1869         * modules/trunc-tests (Files): Add tests/nan.h.
1870
1871         * tests/test-roundf1.c: Include nan.h.
1872         (main): Use NaNf instead of NAN.
1873         * modules/roundf-tests (Files): Add tests/nan.h.
1874
1875         * tests/test-truncf1.c: Include nan.h.
1876         (main): Use NaNf instead of NAN.
1877         * modules/truncf-tests (Files): Add tests/nan.h.
1878
1879         * tests/test-ceilf1.c: Include nan.h.
1880         (main): Use NaNf instead of NAN.
1881         * modules/ceilf-tests (Files): Add tests/nan.h.
1882
1883         * tests/test-floorf1.c: Include nan.h.
1884         (main): Use NaNf instead of NAN.
1885         * modules/floorf-tests (Files): Add tests/nan.h.
1886
1887         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
1888         (main): Use NaNf instead of NAN.
1889         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
1890
1891         * tests/test-isnand.c: Include nan.h instead of <math.h>.
1892         (main): Use NaNd instead of NAN.
1893         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
1894
1895         * tests/test-frexp.c: Include nan.h.
1896         (main): Use NaNd instead of NAN.
1897         * modules/frexp-tests (Files): Add tests/nan.h.
1898
1899         * lib/isnan.c: Don't include <math.h>.
1900         (FUNC): Don't use NAN macro.
1901         * modules/isnand-nolibm (Depends-on): Remove math.
1902         * modules/isnanf-nolibm (Depends-on): Remove math.
1903         * modules/isnanl (Depends-on): Remove math.
1904         * modules/isnanl-nolibm (Depends-on): Remove math.
1905
1906         * tests/nan.h: New file.
1907
1908 2008-04-01  Eric Blake  <ebb9@byu.net>
1909
1910         Fix typos.
1911         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
1912         values to be the right type.
1913
1914         For now, cater to gnulib strtod inaccuracies.
1915         * tests/test-strtod.c (main): Allow 1-ulp error on expected
1916         fractional results.  While not as nice from a QoI perspective, it
1917         is a quicker patch than correctly implementing decimal to binary
1918         rounding.
1919
1920 2008-03-31  Eric Blake  <ebb9@byu.net>
1921
1922         Guarantee a definition of NAN.
1923         * lib/math.in.h (NAN): Define if missing.
1924         * tests/test-math.c (main): Test it.
1925         * doc/posix-headers/math.texi (math.h): Document this.
1926         * lib/isnan.c (rpl_isnand): Use it.
1927         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
1928         * tests/test-floorf1.c (NaN): Likewise.
1929         * tests/test-frexp.c (NaN): Likewise.
1930         * tests/test-isnand.c (NaN): Likewise.
1931         * tests/test-isnanf.c (NaN): Likewise.
1932         * tests/test-round1.c (NaN): Likewise.
1933         * tests/test-roundf1.c (NaN): Likewise.
1934         * tests/test-snprintf-posix.h (NaN): Likewise.
1935         * tests/test-sprintf-posix.h (NaN): Likewise.
1936         * tests/test-trunc1.c (NaN): Likewise.
1937         * tests/test-truncf1.c (NaN): Likewise.
1938         * tests/test-vasnprintf-posix.c (NaN): Likewise.
1939         * tests/test-vasprintf-posix.c (NaN): Likewise.
1940         * modules/isnand-nolibm (Depends-on): Add math.
1941         * modules/isnanf-nolibm (Depends-on): Likewise.
1942         * modules/isnanl (Depends-on): Likewise.
1943         * modules/isnanl-nolibm (Depends-on): Likewise.
1944         * modules/snprintf-posix-tests (Depends-on): Likewise.
1945         * modules/sprintf-posix-tests (Depends-on): Likewise.
1946         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
1947         * modules/vsprintf-posix-tests (Depends-on): Likewise.
1948         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
1949         * modules/vasprintf-posix-tests (Depends-on): Likewise.
1950
1951 2008-03-31  Bruno Haible  <bruno@clisp.org>
1952
1953         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
1954         * doc/posix-functions/strtod.texi: Likewise.
1955
1956 2008-03-31  Bruno Haible  <bruno@clisp.org>
1957
1958         * tests/test-strtod.c (main): Don't use C99 syntax.
1959
1960 2008-03-31  Bruno Haible  <bruno@clisp.org>
1961
1962         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
1963         Reported by Eric Blake.
1964
1965 2008-03-31  Jim Meyering  <meyering@redhat.com>
1966
1967         Don't compare actual signbit return values.
1968         * tests/test-strtod.c (main): Rather, compare only their
1969         zero/non-zero nature.
1970
1971 2008-03-31  Eric Blake  <ebb9@byu.net>
1972
1973         More strtod documentation.
1974         * doc/posix-functions/strtod.texi (strtod): Interpret more test
1975         failures as distinct bugs.
1976
1977 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1978
1979         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
1980         Problem reported by Erik Benada in
1981         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
1982
1983 2008-03-30  Bruno Haible  <bruno@clisp.org>
1984
1985         * tests/test-strtod.c: Add comments about which assertion fails on which
1986         platform.
1987         * doc/posix-functions/strtod.texi: Add info about many more platforms.
1988
1989 2008-03-30  Eric Blake  <ebb9@byu.net>
1990
1991         Test signbit behavior on zeros.
1992         * tests/test-signbit.c (test_signbitf): Add tests for zero.
1993         (test_signbitd, test_signbitl): Likewise.
1994
1995         More strtod touchups.
1996         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
1997         sign of negative underflow, for now.  Use .5, not .1.
1998         * doc/posix-functions/strtod.texi (strtod): Mention these
1999         limitations.
2000         Reported by Jim Meyering.
2001
2002 2008-03-30  Bruno Haible  <bruno@clisp.org>
2003
2004         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
2005         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
2006
2007 2008-03-30  Bruno Haible  <bruno@clisp.org>
2008
2009         Avoid failure when attempting to return empty iconv results on some
2010         platforms.
2011         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
2012         allocation, don't report ENOMEM when the resulting string is empty.
2013
2014 2008-03-30  Bruno Haible  <bruno@clisp.org>
2015
2016         Fix buffer overrun.
2017         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
2018         Don't consider the width for tmp_length. Check count against tmp_length
2019         before doing the padding. Ensure enough allocation during padding.
2020
2021 2008-03-30  Eric Blake  <ebb9@byu.net>
2022
2023         strtod touchups.
2024         * lib/strtod.c (strtod): Avoid compiler warnings.
2025         Reported by Jim Meyering.
2026
2027 2008-03-30  Bruno Haible  <bruno@clisp.org>
2028
2029         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
2030         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
2031         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
2032         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
2033         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
2034         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
2035         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
2036         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
2037
2038         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
2039         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
2040         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
2041         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
2042         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
2043         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
2044         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
2045         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
2046
2047         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
2048         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
2049         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
2050         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
2051         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
2052         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
2053         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
2054         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
2055
2056         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
2057         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
2058
2059         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
2060         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
2061
2062         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
2063         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
2064
2065         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
2066         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
2067         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
2068
2069         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
2070         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
2071         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
2072
2073         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
2074         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
2075         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
2076
2077         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
2078         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
2079         * modules/vasprintf (Depends-on): Add EOVERFLOW.
2080
2081         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
2082         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
2083         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
2084         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
2085         (Depends-on): Add EOVERFLOW.
2086         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
2087         (Depends-on): Add EOVERFLOW.
2088         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
2089         (Depends-on): Add EOVERFLOW.
2090         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
2091         (Depends-on): Add EOVERFLOW.
2092         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
2093         (Depends-on): Add EOVERFLOW.
2094         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
2095         (Depends-on): Add EOVERFLOW.
2096         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
2097         (Depends-on): Add EOVERFLOW.
2098         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
2099         (Depends-on): Add EOVERFLOW.
2100
2101         * lib/sprintf.c (EOVERFLOW): Remove fallback.
2102         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
2103         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
2104
2105         * lib/snprintf.c (EOVERFLOW): Remove fallback.
2106         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
2107         * modules/snprintf (Depends-on): Add EOVERFLOW.
2108
2109         * lib/poll.c (EOVERFLOW): Remove fallback.
2110         * modules/poll (Depends-on): Add EOVERFLOW.
2111
2112         * lib/getugroups.c (EOVERFLOW): Remove fallback.
2113         * modules/getugroups (Depends-on): Add EOVERFLOW.
2114
2115         * lib/getdelim.c (EOVERFLOW): Remove fallback.
2116         * modules/getdelim (Depends-on): Add EOVERFLOW.
2117
2118         * lib/ftell.c (EOVERFLOW): Remove fallback.
2119         * modules/ftell (Depends-on): Add EOVERFLOW.
2120
2121         * lib/fprintf.c (EOVERFLOW): Remove fallback.
2122         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
2123         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
2124
2125         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
2126
2127         * modules/EOVERFLOW-tests: New file.
2128         * tests/test-EOVERFLOW.c: New file.
2129
2130         * modules/EOVERFLOW: New file.
2131         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
2132
2133 2008-03-30  Bruno Haible  <bruno@clisp.org>
2134
2135         Fix bug introduced on 2007-06-10.
2136         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
2137         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
2138
2139 2008-03-30  Bruno Haible  <bruno@clisp.org>
2140
2141         Improve freadseek's efficiency after ungetc.
2142         * lib/freadseek.c: Include freadahead.h.
2143         (freadptrinc): New function, extracted from freadseek.
2144         (freadseek): Use it in a loop. Use freadahead to determine the number
2145         of loop iterations.
2146         * modules/freadseek (Depends-on): Add freadahead.
2147         (configure.ac): Require AC_C_INLINE.
2148
2149 2008-03-30  Bruno Haible  <bruno@clisp.org>
2150
2151         * lib/freadseek.c (freadseek): Don't ignore the return value of
2152         freadptr.
2153
2154 2008-03-29  Eric Blake  <ebb9@byu.net>
2155
2156         Add hex float support.
2157         * modules/strtod (Depends-on): Add c-ctype.
2158         (Link): Mention POW_LIB.
2159         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
2160         whitespace between 'e' and exponent.
2161         * tests/test-strtod.c (main): Enable hex float tests.
2162         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
2163         now provides.
2164
2165         Document various strtod bugs, with some fixes.
2166         * doc/posix-functions/strtod.texi (strtod): Document bugs with
2167         "-0x", "inf", "nan", and hex constants.
2168         * doc/posix-functions/atof.texi (atof): Likewise.
2169         * modules/stdlib (Makefile.am): Support strtod.
2170         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
2171         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
2172         detect additional strtod bugs.
2173         * lib/stdlib.in.h (rpl_strtod): Add declarations.
2174         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
2175         bool where appropriate.  Parse 'inf' and 'nan'.
2176         * tests/test-strtod.c: New file.
2177         * modules/strtod (Depends-on): Add stdbool, stdlib.
2178         (configure.ac): Turn on module indicator.
2179         * modules/strtod-tests: New module.
2180
2181 2008-03-29  Eric Blake  <ebb9@byu.net>
2182
2183         Fix ftell on mingw.
2184         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
2185         * modules/ftell-tests (Depends-on): Add binary-io.
2186         * modules/ftello-tests (Depends-on): Likewise.
2187         * tests/test-ftell.c (main): Enhance test to cover behavior after
2188         ungetc.  Enforce binary mode.
2189         * tests/test-ftello.c (main): Likewise.
2190
2191         Pass test-freadseek on cygwin.
2192         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
2193         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
2194         ungetc buffer.
2195
2196         * tests/test-fflush2.c (main): Fix typo.
2197
2198 2008-03-29  Bruno Haible  <bruno@clisp.org>
2199
2200         * tests/test-fflush2.c (main): Temporarily disable the contents of
2201         this test.
2202         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
2203         Reported by Eric Blake.
2204
2205 2008-03-28  Simon Josefsson  <simon@josefsson.org>
2206
2207         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
2208         (GC_SHA224_DIGEST_SIZE): Add.
2209
2210         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
2211         (gc_hash_digest_length): Likewise.
2212         (gc_hash_buffer): Likewise.
2213
2214 2008-03-25  Bruno Haible  <bruno@clisp.org>
2215
2216         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
2217         detail which gettext release to use.
2218         Reported by Simon Josefsson.
2219
2220 2008-03-26  Jim Meyering  <meyering@redhat.com>
2221
2222         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
2223         * modules/gnumakefile (clean-GNUmakefile): Also, use
2224         test ... && ... || : syntax rather than if-then ... fi.
2225
2226         gnumakefile: Don't double-quote-expand $(VPATH) value.
2227         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
2228
2229 2008-03-24  Eric Blake  <ebb9@byu.net>
2230
2231         Alter GNUmakefile to install into top directory.
2232         * modules/maintainer-makefile: Split, and add dependency...
2233         * modules/gnumakefile: to this new module.
2234         * build-aux/GNUmakefile: Move...
2235         * top/GNUmakefile: ...here.
2236         * build-aux/maint.mk: Move...
2237         * top/maint.mk: ...here.
2238         * MODULES.html.sh (Support for maintaining...): Document new
2239         module.
2240
2241 2008-03-23  Bruno Haible  <bruno@clisp.org>
2242
2243         * gnulib-tool: New options --vc-files, --no-vc-files.
2244         (func_usage): Document them.
2245         (vc_files): New variable.
2246         (func_import): Consider vc_files.
2247         (func_create_testdir): Set vc_files to empty.
2248         Suggested by Jim Meyering and Karl Berry.
2249
2250 2008-03-23  Bruno Haible  <bruno@clisp.org>
2251
2252         Fix regex compilation error on HP-UX 11.
2253         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
2254         * modules/regex (Files): Add m4/mbstate_t.m4.
2255         Reported by Ton Voon <ton.voon@altinity.com>.
2256
2257 2008-03-23  Bruno Haible  <bruno@clisp.org>
2258
2259         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
2260
2261 2008-03-23  Eric Blake  <ebb9@byu.net>
2262             Bruno Haible  <bruno@clisp.org>
2263
2264         Install files from top/ in the destination directory.
2265         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
2266         augmentation also for the files from top/.
2267         (func_import, func_create_testdir): Rewrite file names:
2268         top/filename -> filename.
2269
2270 2008-03-23  Bruno Haible  <bruno@clisp.org>
2271
2272         Tweak "gnulib --version" output.
2273         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
2274
2275 2008-03-23  Bruno Haible  <bruno@clisp.org>
2276
2277         Tweak "gnulib --version" output.
2278         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
2279         rather than contents of ChangeLog, when possible.
2280
2281 2008-03-21  Eric Blake  <ebb9@byu.net>
2282
2283         More --version tweaks.
2284         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
2285         date of last ChangeLog entry.
2286
2287 2008-03-21  Jim Meyering  <meyering@redhat.com>
2288
2289         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
2290
2291 2008-03-20  Eric Blake  <ebb9@byu.net>
2292
2293         VPATH fix.
2294         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
2295
2296 2008-03-20  Simon Josefsson  <simon@josefsson.org>
2297
2298         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
2299         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
2300
2301 2008-03-20  Eric Blake  <ebb9@byu.net>
2302
2303         Sync GNUmakefile with coreutils.
2304         * build-aux/GNUmakefile (have-Makefile): Rename...
2305         (_have-Makefile): ...to this, for namespace consideration.
2306         (GNUmakefile.cfg): Include, if present.
2307         (_autoreconf): Define a default.
2308         (_is-dist-target): New rule for rebuilds to pick up intra-release
2309         version.
2310         (maint-cfg.mk): Rename...
2311         (cfg.mk): ...to this.
2312
2313 2008-03-18  Jim Meyering  <meyering@redhat.com>
2314
2315         New script and module: mktempd
2316         * MODULES.html.sh (maint+release support): Add mktempd.
2317         * build-aux/mktempd: New file.
2318         * modules/mktempd: New file.
2319
2320 2008-03-15  Jim Meyering  <meyering@redhat.com>
2321
2322         Undo last change.
2323         * lib/sha1.c, lib/md5.c: 63 != ~63.
2324         Reported by Andreas Schwab.
2325
2326         sha1.c, md5.c: Hoist a redundant expression.
2327         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
2328         "ctx->buflen" only once, before calling *_process_block.
2329         * lib/md5.c (md5_process_bytes): Likewise.
2330
2331 2008-03-14  Eric Blake  <ebb9@byu.net>
2332
2333         Bump copyright year in files generated by gnulib-tool.
2334         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
2335         gnulib-tool, rather than hard-coding it.
2336
2337         Fix 'gnulib-tool --version' output to work with git.
2338         * gnulib-tool (func_gnulib_dir): New function, extracted from...
2339         (startup): ...here.
2340         (func_version): Use it to invoke git-version-gen, rather than
2341         relying on CVS keyword expansion.  Modernize wording.
2342         (cvsdatestamp, last_checkin_date, version): Kill unused
2343         variables.
2344
2345 2008-03-12  Jim Meyering  <meyering@redhat.com>
2346
2347         Recognize optional cast of the argument to free.
2348         * build-aux/useless-if-before-free: Update regexps.
2349
2350         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
2351
2352 2008-03-11  Bruno Haible  <bruno@clisp.org>
2353
2354         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
2355         by a single package.
2356         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
2357         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
2358         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
2359         Reported by Sam Steingold <sds@gnu.org>.
2360
2361 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
2362
2363         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
2364         repositories.
2365
2366 2008-03-11  Bruno Haible  <bruno@clisp.org>
2367
2368         Avoid conflicts between local macro definitions.
2369         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
2370         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
2371
2372 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
2373             Bruno Haible  <bruno@clisp.org>
2374
2375         Make va_copy work with some version of xlc on AIX 5.1.
2376         * lib/stdarg.in.h: New file.
2377         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
2378         On AIX, use a <stdarg.h> file substitute.
2379         * modules/stdarg (Files): Add lib/stdarg.in.h.
2380         (Depends-on): Add include_next.
2381         (Makefile.am): Build a stdarg.h substitute if requested.
2382         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
2383
2384 2008-03-10  Bruno Haible  <bruno@clisp.org>
2385
2386         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
2387         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
2388         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
2389
2390 2008-03-10  Bruno Haible  <bruno@clisp.org>
2391
2392         * modules/stdlib (Depends-on): Add include_next, remove
2393         absolute-header.
2394
2395 2008-03-09  Bruno Haible  <bruno@clisp.org>
2396
2397         * lib/freadahead.h (freadahead): Document more precisely.
2398         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
2399         the sum of both buffer sizes.
2400         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
2401         * NEWS: Document the change.
2402
2403 2008-03-09  Bruno Haible  <bruno@clisp.org>
2404
2405         Extend freadptr to return also the buffer size.
2406         * lib/freadptr.h (freadptr): Add sizep argument.
2407         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
2408         (freadptr): Add sizep argument. Determine buffer size like freadahead
2409         does.
2410         * tests/test-freadptr.c: Don't include freadahead.h.
2411         (main): Adapt for new calling convention of freadptr.
2412         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
2413         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
2414         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
2415         tests/test-freadptr2.sh.
2416         (Depends): Remove freadahead.
2417         (TESTS): Add test-freadptr2.sh.
2418         (check_PROGRAMS): Add test-freadptr2.
2419
2420 2008-03-09  Bruno Haible  <bruno@clisp.org>
2421
2422         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
2423         Report and solution by Simon Josefsson.
2424
2425 2008-03-06  Bruno Haible  <bruno@clisp.org>
2426
2427         Make fflush after ungetc work on BSD platforms.
2428         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
2429         * tests/test-fflush2.c: New file.
2430         * tests/test-fflush2.sh: New file.
2431         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
2432         tests/test-fflush2.c.
2433         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
2434         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
2435
2436 2008-03-06  Eric Blake  <ebb9@byu.net>
2437
2438         Likewise for ftello.
2439         * modules/ftello (Dependencies): Add extensions.
2440         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
2441
2442 2008-03-06  Bruno Haible  <bruno@clisp.org>
2443
2444         * modules/fseeko (Dependencies): Add extensions.
2445         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
2446         Needed on glibc systems.
2447
2448 2008-03-06  Bruno Haible  <bruno@clisp.org>
2449
2450         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
2451         email address.
2452         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
2453
2454 2008-03-06  Bruno Haible  <bruno@clisp.org>
2455
2456         * users.txt: Add libgnupdf.
2457
2458 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
2459
2460         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
2461         (Header File Substitutes, Function Substitutes,
2462         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
2463         (Build robot for gnulib): Fix typo.
2464
2465 2008-03-06  Bruno Haible  <bruno@clisp.org>
2466
2467         * doc/gnulib-tool.texi (VCS Issues): Small updates.
2468         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
2469
2470 2008-03-06  Bruno Haible  <bruno@clisp.org>
2471
2472         * doc/func.texi: New file, extracted from doc/gnulib.texi.
2473         * doc/gnulib.texi: Include it.
2474
2475 2008-03-06  Simon Josefsson  <simon@josefsson.org>
2476
2477         * modules/func (License): Change license to unlimited; there was
2478         no LGPL parts in the module anyway.
2479
2480 2008-03-06  Simon Josefsson  <simon@josefsson.org>
2481
2482         * modules/__func__: Renamed to modules/func.
2483         * modules/__func__-tests: Renamed to modules/func-tests.
2484         * tests/test-__func__.c: Renamed to tests/test-func.c.
2485         * m4/__func__.m4: Renamed to m4/func.m4.
2486         * doc/gnulib.texi (__func__): Section renamed to func.
2487         Suggested by Eric Blake <ebb9@byu.net>.
2488
2489 2008-03-06  Simon Josefsson  <simon@josefsson.org>
2490
2491         * doc/gnulib.texi (__func__): Use C99 terminology when talking
2492         about __func__.  Make example self-contained.  Suggested by Eric
2493         Blake <ebb9@byu.net>.
2494
2495         * tests/test-__func__.c (main): Avoid extraneous () around __func.
2496         Suggested by Eric Blake <ebb9@byu.net>.
2497
2498 2008-03-06  Simon Josefsson  <simon@josefsson.org>
2499
2500         * modules/__func__: New file.
2501         * modules/__func__-tests: New file.
2502         * tests/test-__func__.c: New file.
2503         * m4/__func__.m4: New file.
2504         * doc/gnulib.texi (__func__): Document __func__ module.
2505
2506 2008-03-05  Simon Josefsson  <simon@josefsson.org>
2507
2508         * modules/byteswap (License): Re-license as LGPLv2+.
2509
2510 2008-03-05  Simon Josefsson  <simon@josefsson.org>
2511
2512         * doc/Makefile: Add pdf target.
2513
2514 2008-03-05  Simon Josefsson  <simon@josefsson.org>
2515
2516         * modules/inline (License): Use 'unlimited', since there are only
2517         *.m4 files in this module.
2518
2519 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
2520             Bruno Haible  <bruno@clisp.org>
2521
2522         Add support for HP C 7.1 on OpenVMS 8.3.
2523         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
2524
2525 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
2526
2527         Update VMS specifics.
2528         * lib/getopt.c [VMS]: Remove include of unixlib.h.
2529
2530 2008-03-02  Jim Meyering  <meyering@redhat.com>
2531
2532         Remove the last dependency on the "free" module.
2533         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
2534         Reported by Bob Proulx.
2535
2536         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
2537
2538         Remove useless "if" tests before free.  Deprecate "free" module.
2539         * doc/posix-functions/free.texi: Mention that this
2540         module is no longer useful.
2541         * modules/free (Notice): Say this module is obsolete.
2542         * modules/readutmp (Depends-on): Remove free.
2543         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
2544         * lib/putenv.c (putenv): Likewise.
2545         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
2546         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
2547         * tests/test-c-strcasestr.c (main): Likewise.
2548         * tests/test-c-strstr.c (main): Likewise.
2549         * tests/test-mbscasestr1.c (main): Likewise.
2550         * tests/test-mbscasestr2.c (main): Likewise.
2551         * tests/test-mbsstr1.c (main): Likewise.
2552         * tests/test-mbsstr2.c (main): Likewise.
2553         * tests/test-memmem.c (main): Likewise.
2554         * tests/test-strcasestr.c (main): Likewise.
2555         * tests/test-striconv.c (main): Likewise.
2556         * tests/test-striconveh.c (main): Likewise.
2557         * tests/test-striconveha.c (main): Likewise.
2558         * tests/test-strstr.c (main): Likewise.
2559
2560         * build-aux/git-version-gen: Adjust a comment and the Usage string.
2561
2562         bootstrap: sync from coreutils again
2563         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
2564
2565 2008-03-01  Jim Meyering  <meyering@redhat.com>
2566
2567         bootstrap: sync from coreutils
2568         * build-aux/bootstrap (update_po_files): Copy a .po file into place
2569         also when the target doesn't exist.
2570
2571 2008-03-01  Eric Blake  <ebb9@byu.net>
2572
2573         Fix bugs in last patch.
2574         * lib/memchr2.c (memchr2): Fix typo.
2575         * tests/test-memchr2.c: Test previous bug, and don't use GNU
2576         extension.
2577         Reported by Bruce Korb.
2578
2579         New module 'memchr2'.
2580         * modules/memchr2: New file.
2581         * modules/memchr2-tests: Likewise.
2582         * lib/memchr2.h: Likewise.
2583         * lib/memchr2.c: Likewise, based on memchr.c.
2584         * tests/test-memchr2.c: New test.
2585         * MODULES.html.sh (String handling): Add memchr2.
2586
2587 2008-02-29  Bruno Haible  <bruno@clisp.org>
2588
2589         * modules/freadseek-tests: New file.
2590         * tests/test-freadseek.sh: New file.
2591         * tests/test-freadseek.c: New file.
2592
2593         New module 'freadseek'.
2594         * modules/freadseek: New file.
2595         * lib/freadseek.h: New file.
2596         * lib/freadseek.c: New file.
2597         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
2598
2599 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
2600
2601         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
2602         wydawca.
2603
2604         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
2605         program_invocation_name and program_invocation_short_name are
2606         present.
2607
2608 2008-02-28  Bruno Haible  <bruno@clisp.org>
2609
2610         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
2611         * tests/test-freadptr.sh: Also test non-seekable stdin.
2612
2613 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
2614
2615         * build-aux/bootstrap (source_base, m4_base)
2616         (doc_base, tests_base): New variables.
2617         (gnulib_tool_options): Do not hardcode base directories, use
2618         the above variables instead.
2619
2620 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
2621
2622         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
2623
2624 2008-02-28  Bruno Haible  <bruno@clisp.org>
2625
2626         * modules/freadptr-tests: New file.
2627         * tests/test-freadptr.sh: New file.
2628         * tests/test-freadptr.c: New file.
2629
2630         New module 'freadptr'.
2631         * modules/freadptr: New file.
2632         * lib/freadptr.h: New file.
2633         * lib/freadptr.c: New file.
2634         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
2635
2636 2008-02-26  Karl Berry  <karl@freefriends.org>
2637
2638         Sync from Libtool:
2639         * libltdl/argz.c (argz_add, argz_count): New functions.
2640         * libltdl/argz.in.h: Declare them.
2641         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
2642
2643 2008-02-22  Bruno Haible  <bruno@clisp.org>
2644
2645         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
2646         is a pointer type.  Needed for HP-UX 10.
2647         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
2648         * doc/posix-functions/gmtime_r.texi: Likewise.
2649         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
2650
2651 2008-02-24  Bruno Haible  <bruno@clisp.org>
2652
2653         * modules/environ-tests: New file.
2654         * tests/test-environ.c: New file.
2655
2656         New module 'environ'.
2657         * modules/environ: New file.
2658         * lib/unistd.in.h (environ): New declaration.
2659         * m4/environ.m4: New file.
2660         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
2661         after use.
2662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
2663         HAVE_DECL_ENVIRON.
2664         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
2665         HAVE_DECL_ENVIRON.
2666         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
2667         wrong claim that 'environ' is missing on some systems.
2668         * modules/execute (Depends-on): Add environ.
2669         * lib/execute.c (environ): Remove fallback declaration.
2670         * modules/pipe (Depends-on): Add environ.
2671         * lib/pipe.c (environ): Remove fallback declaration.
2672         * modules/setenv (Depends-on): Add environ.
2673         * lib/setenv.c (environ): Remove fallback declaration.
2674         * modules/unsetenv (Depends-on): Add environ.
2675         * lib/unsetenv.c (environ): Remove fallback declaration.
2676         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
2677         m4/environ.m4.
2678         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
2679         (gl_PREREQ_UNSETENV): Likewise.
2680
2681 2008-02-24  Bruno Haible  <bruno@clisp.org>
2682
2683         * doc/posix-functions/environ.texi: Document the MacOS X problem.
2684
2685 2008-02-20  Bob Proulx  <bob@proulx.com>
2686
2687         Enable use of older two part flavor 'git describe'.
2688         * build-aux/git-version-gen: If using the older two part flavor of
2689         git version then recreate the third part now present in the
2690         newer three part flavor of git describe.
2691
2692 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
2693
2694         * lib/fts.c (fts_build): Typo correction to comment.
2695
2696 2008-02-17  Bruno Haible  <bruno@clisp.org>
2697
2698         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
2699         generating no-op conflicts.
2700
2701 2008-02-17  Bruno Haible  <bruno@clisp.org>
2702
2703         Speed up by 10%.
2704         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
2705         result_entries, rather than an index-based loop.
2706
2707 2008-02-17  Bruno Haible  <bruno@clisp.org>
2708
2709         Speed up by 25%.
2710         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
2711         'hashcode_cached'.
2712         (entry_create): New function.
2713         (entry_hashcode): Use the cached hashcode if possible.
2714         (read_changelog_file, try_split_merged_entry): Use entry_create.
2715
2716 2008-02-17  Bruno Haible  <bruno@clisp.org>
2717
2718         Speed up from O(n^2) to O(n) for long ChangeLog files.
2719         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
2720         (read_changelog_file): Change implementation of entries_reversed list
2721         to rbtreehash.
2722         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
2723
2724 2008-02-17  Bruno Haible  <bruno@clisp.org>
2725
2726         New option --split-merged-entry.
2727         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
2728         (find_paragraph_end, try_split_merged_entry): New functions.
2729         (long_options): Add option --split-merged-entry.
2730         (usage): Document option --split-merged-entry.
2731         (main): Implement option --split-merged-entry.
2732         Reported by Eric Blake.
2733
2734 2008-02-17  Bruno Haible  <bruno@clisp.org>
2735
2736         * lib/git-merge-changelog.c: Include c-strstr.h.
2737         (main): Support the "git pull --rebase" situation.
2738         * modules/git-merge-changelog (Depends-on): Add c-strstr.
2739         Reported by Eric Blake.
2740
2741 2008-02-16  Eric Blake  <ebb9@byu.net>
2742
2743         Avoid doubling \ in common case of "c-maybe" quoting style.
2744         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
2745         eliding outer quotes.
2746         * lib/quotearg.h: Document this.
2747         * tests/test-quotearg.c (result_strings, inputs, results_g)
2748         (flag_results, locale_results): Test it by adding a new string to
2749         each test group.
2750         (compare_strings): Test new string.
2751
2752 2008-02-13  Eric Blake  <ebb9@byu.net>
2753
2754         Avoid trigraph quoting in default output.
2755         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
2756         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
2757         unless explicitly requested.
2758         * tests/test-quotearg.c (flag_results, main): Add additional tests.
2759
2760 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
2761
2762         Don't rely on signed integer overflowing to negative value.
2763         * lib/getugroups.c (getugroups): Include <limits.h>.
2764         Instead, compare against INT_MAX, and increment only if the test passes.
2765
2766 2008-02-13  Jim Meyering  <meyering@redhat.com>
2767         and Eric Blake  <ebb9@byu.net>
2768
2769         Avoid shadowing warning and compile errors on Linux.
2770         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
2771         forwarding macros on Linux.
2772         (dcgettext): Define a stub, for Linux.
2773         (results_g, main): Avoid warnings.
2774
2775 2008-02-12  Eric Blake  <ebb9@byu.net>
2776
2777         Silence warning in last patch.
2778         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
2779
2780         Quotearg part 4: add tests, fix c-maybe colon quoting.
2781         * lib/quotearg.h: Improve documentation.
2782         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
2783         escapes when adding outer quotes.  When quoting trigraphs, use
2784         valid C notation.  When quoting NUL, omit extra characters if next
2785         character is not digit.  Alter prototype.
2786         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
2787         callers.
2788         * modules/quotearg-tests: New module.
2789         * tests/test-quotearg.c: New test.
2790
2791 2008-02-07  Eric Blake  <ebb9@byu.net>
2792
2793         Quotearg part 3: add flag to control outer quote elision.
2794         * lib/quotearg.h (c_maybe_quoting_style): New style.
2795         (enum quoting_flags): Better documentation of flags.
2796         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
2797         c-maybe style.
2798         (quotearg_buffer_restyled): Handle new flag to elide outer
2799         quotes.
2800
2801         Quotearg part 2: add flag that can control NUL elision.
2802         * lib/quotearg.h (set_quoting_flags): New prototype.
2803         * lib/quotearg.c (struct quoting_options): Add flag field.
2804         (set_quoting_flags): New function.
2805         (quotearg_buffer_restyled): Add flags parameter.
2806         (quotearg_alloc_mem): Set the flag if length cannot be returned.
2807         (quotearg_n_options): Set the flag, since length cannot be
2808         returned.
2809         (quoting_options_from_style): Default flags correctly.
2810
2811         Quotearg part 1: more wrappers, restore quotearg_char state.
2812         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
2813         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
2814         (quotearg_colon_mem): New wrappers.
2815         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
2816         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
2817         functions.
2818         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
2819         (quotearg_colon_mem): New functions.
2820
2821 2008-02-11  Bruno Haible  <bruno@clisp.org>
2822
2823         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
2824         library in the current directory: it does not work with parallel make.
2825         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2826
2827 2008-02-11  Bruno Haible  <bruno@clisp.org>
2828
2829         * .gitattributes: New file.
2830
2831 2008-02-11  Jim Meyering  <meyering@redhat.com>
2832
2833         useless-if-before-free: Fix reversed exit values.
2834         * build-aux/useless-if-before-free: Use correct values
2835         for EXIT_MATCH and EXIT_NO_MATCH.
2836
2837         * build-aux/useless-if-before-free: Close stdout carefully.
2838
2839 2008-02-10  Bruno Haible  <bruno@clisp.org>
2840
2841         New module 'git-merge-changelog'.
2842         * modules/git-merge-changelog: New file.
2843         * lib/git-merge-changelog.c: New file.
2844
2845 2008-02-10  Jim Meyering  <meyering@redhat.com>
2846
2847         useless-if-before-free: New option: --list (-l).
2848
2849         useless-if-before-free: Don't exit immediately upon open failure.
2850         * build-aux/useless-if-before-free: Exit 2 for errors.
2851         Upon failure to open a file, don't exit immediately.
2852         Rather, just warn and continue with any remaining files.
2853
2854 2008-02-10  Bruno Haible  <bruno@clisp.org>
2855
2856         New abstract list operation 'node_set_value'.
2857         * lib/gl_list.h (gl_list_node_set_value): New function.
2858         (struct gl_list_implementation): New field node_set_value.
2859         * lib/gl_list.c (gl_list_node_set_value): New function.
2860         * lib/gl_array_list.c (gl_array_node_set_value): New function.
2861         (gl_array_list_implementation): Update.
2862         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
2863         (gl_carray_list_implementation): Update.
2864         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
2865         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
2866         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
2867         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
2868         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
2869         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
2870         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
2871         Update.
2872         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
2873         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
2874         (gl_sublist_list_implementation): Update.
2875
2876 2008-02-10  Bruno Haible  <bruno@clisp.org>
2877
2878         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
2879         Needed when ELEMENT is #defined to 'some_type *'.
2880
2881 2008-02-10  Jim Meyering  <meyering@redhat.com>
2882
2883         New script and module: useless-if-before-free
2884         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
2885         * build-aux/useless-if-before-free: New file.
2886         * modules/useless-if-before-free: New file.
2887
2888         * build-aux/gitlog-to-changelog: Use committer date, not author date.
2889
2890         xstrtol_error: Fix typo.
2891         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
2892         s/exit_failure/exit_status/.
2893
2894 2008-02-09  Jim Meyering  <meyering@redhat.com>
2895
2896         New script and module: gitlog-to-changelog
2897         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
2898         * modules/gitlog-to-changelog: New file.
2899         * build-aux/gitlog-to-changelog: New file.
2900
2901 2008-02-08  Jim Meyering  <meyering@redhat.com>
2902
2903         Avoid two "parameter unused" warnings.
2904         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
2905         Mark "st" as used.
2906
2907         Use "git COMMAND", not "git-COMMAND".
2908         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
2909         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
2910         * build-aux/git-version-gen: Use "git status", not "git-status".
2911
2912 2008-02-07  Bruno Haible  <bruno@clisp.org>
2913
2914         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
2915         Avoids a crash on Windows Vista.
2916         Reported by Adam Strzelecki <ono@java.pl> via
2917         Simon Josefsson <simon@josefsson.org>.
2918
2919 2008-02-06  Bruno Haible  <bruno@clisp.org>
2920
2921         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
2922         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
2923         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
2924         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
2925         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
2926         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2927         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
2928         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
2929         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2930         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2931         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2932         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2933         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2934         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2935         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2936         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
2937         left-adjust flag.
2938         * tests/test-snprintf-posix.h (test_function): Likewise.
2939         * tests/test-sprintf-posix.h (test_function): Likewise.
2940         * tests/test-vasprintf-posix.c (test_function): Likewise.
2941         * doc/posix-functions/fprintf.texi: Update.
2942         * doc/posix-functions/printf.texi: Update.
2943         * doc/posix-functions/snprintf.texi: Update.
2944         * doc/posix-functions/sprintf.texi: Update.
2945         * doc/posix-functions/vfprintf.texi: Update.
2946         * doc/posix-functions/vprintf.texi: Update.
2947         * doc/posix-functions/vsnprintf.texi: Update.
2948         * doc/posix-functions/vsprintf.texi: Update.
2949         Reported by Peter Fales <psfales@alcatel-lucent.com>.
2950
2951 2008-02-06  Bruno Haible  <bruno@clisp.org>
2952
2953         Fix bug introduced on 2008-01-26.
2954         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
2955
2956 2008-02-06  Bruno Haible  <bruno@clisp.org>
2957
2958         Fix bug introduced on 2007-06-10.
2959         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
2960         !NEED_PRINTF_FLAG_ZERO.
2961
2962 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
2963
2964         getloadavg: use libperfstat on AIX5
2965         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
2966
2967 2008-02-03  Bruno Haible  <bruno@clisp.org>
2968
2969         * lib/diffseq.h: Add comments about required #includes.
2970         Reported by Michael Biggs <gnulib@doubleplum.net>.
2971
2972 2008-02-01  Bruno Haible  <bruno@clisp.org>
2973
2974         * users.txt: Add gnuit.
2975
2976 2008-01-31  Bruno Haible  <bruno@clisp.org>
2977
2978         * lib/md4.c (set_uint32): Mark as inline.
2979         * lib/md5.c (set_uint32): Likewise.
2980         * lib/sha1.c (set_uint32): Likewise.
2981         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
2982         * m4/md5.m4 (gl_MD5): Likewise.
2983         * m4/sha1.m4 (gl_SHA1): Likewise.
2984
2985 2008-01-31  Jim Meyering  <meyering@redhat.com>
2986
2987         Use "sizeof VAR", rather than a literal "4".
2988         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
2989         * lib/md4.c (md4_read_ctx): Likewise.
2990         * lib/sha1.c (sha1_read_ctx): Likewise.
2991
2992 2008-01-31  Simon Josefsson  <simon@josefsson.org>
2993
2994         * tests/test-sha1.c: New file, based on test-md5.c.
2995
2996         * modules/crypto/sha1-tests: New file.
2997
2998 2008-01-31  Simon Josefsson  <simon@josefsson.org>
2999
3000         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
3001
3002 2008-01-31  Jim Meyering  <meyering@redhat.com>
3003
3004         Prefer "sizeof v" over the equivalent "4".
3005         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
3006         * lib/md5.c (set_uint32): Likewise.
3007         * lib/sha1.c (set_uint32): Likewise.
3008
3009 2008-01-31  Simon Josefsson  <simon@josefsson.org>
3010
3011         * lib/sha1.c (set_uint32): Mark function as static.
3012
3013 2008-01-31  Simon Josefsson  <simon@josefsson.org>
3014
3015         md2: clarify comments to say that alignment is not required.
3016         * lib/md2.h: Remove warning about alignment in comment.
3017         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
3018         never been required.
3019
3020 2008-01-31  Simon Josefsson  <simon@josefsson.org>
3021
3022         md4: adapt alignment constraint fix from sha1.
3023         * lib/md4.c (set_uint32): New function, from sha1.c
3024         (md4_read_ctx): Use it.
3025         (md4_finish_ctx): Doc fix.
3026         * lib/md4.h: Doc fix.
3027
3028 2008-01-31  Simon Josefsson  <simon@josefsson.org>
3029
3030         md5: adapt alignment constraint fix from sha1.
3031         * lib/md5.c (set_uint32): New function, from sha1.c
3032         (md5_read_ctx): Use it.
3033         (md5_finish_ctx): Doc fix.
3034         * lib/md5.h: Doc fix.
3035
3036 2008-01-30  Peter Palfrader  <weasel@debian.org>
3037
3038         sha1: remove the result buffer alignment constraint
3039         * lib/sha1.c (set_uint32): New function.
3040         (sha1_read_ctx): Rewrite to remove the result buffer alignment
3041         constraint.
3042         (sha1_finish_ctx): Remove comment warning about alignment constraint.
3043         * lib/sha1.h: Likewise.
3044
3045 2008-01-30  Andreas Schwab  <schwab@suse.de>
3046             Bruno Haible  <bruno@clisp.org>
3047
3048         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
3049         correct definition of LDBL_MIN_EXP.
3050
3051 2008-01-30  Karl Berry  <karl@gnu.org>
3052
3053         * config/srclist-update: try to preserve x bit on updates.
3054         * config/srclistvars.sh: update for karl.
3055
3056 2008-01-29  Jim Meyering  <meyering@redhat.com>
3057
3058         vasnprintf.c: Avoid warning about unused label
3059         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
3060         "overflow" label definition and associated code with the
3061         same cpp condition that guards the sole use of that label.
3062
3063 2008-01-26  Bruno Haible  <bruno@clisp.org>
3064
3065         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
3066         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
3067         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
3068         * lib/isnanl-nolibm.h (isnanl): Likewise.
3069         Reported by Paul Eggert <eggert@cs.ucla.edu>.
3070
3071 2008-01-26  Bruno Haible  <bruno@clisp.org>
3072
3073         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
3074         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
3075
3076 2008-01-26  Bruno Haible  <bruno@clisp.org>
3077
3078         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
3079         GCC >= 4.0 built-in.
3080         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
3081
3082 2008-01-26  Bruno Haible  <bruno@clisp.org>
3083
3084         Rename isnan, applicable to 'double' only, to isnand.
3085         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
3086         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
3087         (configure.ac): Update.
3088         (Include): Replace "isnan.h" with "isnand.h".
3089         * m4/isnand.m4: Renamed from m4/isnan.m4.
3090         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
3091         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
3092         instead of isnan.c.
3093         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
3094         instead of HAVE_ISNAN_IN_LIBC.
3095         (isnand): Renamed from isnan.
3096         * lib/isnand.c: New file.
3097         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
3098         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
3099         (Makefile.am): Update.
3100         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
3101         Include isnand.h instead of isnan.h.
3102         (main): Test isnand instead of isnan.
3103         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
3104         isnan-nolibm.
3105         * modules/frexp (Depends-on): Likewise.
3106         * modules/frexp-tests (Depends-on): Likewise.
3107         * modules/frexp-nolibm (Depends-on): Likewise.
3108         * modules/frexp-nolibm-tests (Depends-on): Likewise.
3109         * modules/isfinite (Depends-on): Likewise.
3110         * modules/round-tests (Depends-on): Likewise.
3111         * modules/signbit (Depends-on): Likewise.
3112         * modules/signbit-tests (Depends-on): Likewise.
3113         * modules/snprintf-posix (Depends-on): Likewise.
3114         * modules/sprintf-posix (Depends-on): Likewise.
3115         * modules/trunc-tests (Depends-on): Likewise.
3116         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
3117         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3118         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3119         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3120         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3121         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3122         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3123         * modules/vasnprintf-posix (Depends-on): Likewise.
3124         * modules/vasprintf-posix (Depends-on): Likewise.
3125         * modules/vfprintf-posix (Depends-on): Likewise.
3126         * modules/vsnprintf-posix (Depends-on): Likewise.
3127         * modules/vsprintf-posix (Depends-on): Likewise.
3128         * lib/frexp.c: Include isnand.h instead of isnan.h.
3129         (ISNAN): Set to isnand instead of isnan.
3130         * lib/isfinite.c: Include isnand.h instead of isnan.h.
3131         (gl_isfinited): Use isnand instead of isnan.
3132         * lib/signbitd.c: Include isnand.h instead of isnan.h.
3133         (gl_signbitd): Use isnand instead of isnan.
3134         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
3135         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
3136         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
3137         (main): Use isnand instead of isnan.
3138         * tests/test-round1.c: Include isnand.h.
3139         (main): Use isnand instead of isnan.
3140         * tests/test-round2.c: Include isnand.h instead of isnan.h.
3141         (ISNAN): Set to isnand instead of isnan.
3142         * tests/test-trunc1.c: Include isnand.h.
3143         (main): Use isnand instead of isnan.
3144         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
3145         (equal): Use isnand instead of isnan.
3146         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
3147         isnand-nolibm.
3148         * NEWS: Mention the change.
3149
3150 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
3151             Bruno Haible  <bruno@clisp.org>
3152
3153         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
3154         the GCC builtins for signbits are present and set
3155         REPLACE_SIGNBIT_USING_GCC if so.
3156         * lib/math.in.h (signbit): Define using GCC builtins if
3157         REPLACE_SIGNBIT_USING_GCC is set.
3158         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
3159         REPLACE_SIGNBIT_USING_GCC.
3160         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
3161
3162 2008-01-25  Jim Meyering  <meyering@redhat.com>
3163
3164         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
3165         * lib/poll.c: Include <config.h>, not "config.h".
3166         * tests/test-getaddrinfo.c: Likewise.
3167
3168 2008-01-25  Simon Josefsson  <simon@josefsson.org>
3169
3170         * modules/sockets-tests: New file.
3171
3172 2008-01-24  Simon Josefsson  <simon@josefsson.org>
3173
3174         * modules/sockets: New module, can be used to call WSA_Startup and
3175         WSA_Cleanup when needed.
3176
3177         * lib/sockets.h, lib/sockets.c: New files.
3178
3179         * m4/sockets.m4: New file.
3180
3181         * tests/test-sockets.c: New file.
3182
3183 2008-01-19  Bruno Haible  <bruno@clisp.org>
3184
3185         * doc/posix-headers: Renamed from doc/headers.
3186         * doc/posix-functions: Renamed from doc/functions.
3187         * doc/gnulib.texi: Update.
3188
3189 2008-01-19  Bruno Haible  <bruno@clisp.org>
3190
3191         * doc/glibc-functions/strcasestr.texi: Include contents of
3192         doc/functions/strcasestr.texi, fixing the list of platforms.
3193         * doc/functions/strcasestr.texi: Remove file.
3194
3195 2008-01-19  Bruno Haible  <bruno@clisp.org>
3196
3197         * doc/glibc-functions/memmem.texi: Include contents of
3198         doc/functions/memmem.texi.
3199         * doc/functions/memmem.texi: Remove file.
3200
3201 2008-01-18  Bruno Haible  <bruno@clisp.org>
3202
3203         * doc/glibc-functions/*.texi: New files.
3204         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
3205         to use the new files.
3206
3207 2008-01-17  Bruno Haible  <bruno@clisp.org>
3208
3209         * tests/test-gethostname.c (main): Fix printf statement.
3210
3211 2008-01-17  Simon Josefsson  <simon@josefsson.org>
3212
3213         * modules/gethostname-tests: New file.
3214
3215         * tests/test-gethostname.c: New file.
3216
3217 2008-01-17  Simon Josefsson  <simon@josefsson.org>
3218
3219         * lib/gethostname.c: Include string.h unconditionally, strncpy is
3220         used by the UNAME case.  Reported by Bruno Haible
3221         <bruno@clisp.org>.
3222
3223 2008-01-17  Eric Blake  <ebb9@byu.net>
3224
3225         Convert c-strcasestr to be more efficient.
3226         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
3227         (Depends-on): Add c-strcase, remove malloca, strnlen.
3228         * tests/test-c-strcasestr.c (main): Enhance test.
3229         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
3230
3231 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
3232
3233         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
3234         Use it in creating po/Makevars.
3235
3236 2008-01-15  Simon Josefsson  <simon@josefsson.org>
3237
3238         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
3239         Applications that requires it should initialize libgcrypt
3240         manually.
3241
3242 2008-01-16  Simon Josefsson  <simon@josefsson.org>
3243
3244         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
3245
3246 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
3247
3248         Fix problem with getdate on mingw32 reported by Simon Josefsson
3249         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
3250         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
3251         tzname", when deciding whether to declare tzname.
3252         * lib/strftime.c (tzname): Likewise.
3253
3254 2008-01-15  Bruno Haible  <bruno@clisp.org>
3255
3256         Work around a MacOS X 10.5 bug in frexpl().
3257         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
3258         * doc/functions/frexpl.texi: Document the bug.
3259         Reported by Elias Pipping <pipping@gentoo.org>.
3260
3261 2008-01-14  Eric Blake  <ebb9@byu.net>
3262
3263         Touch up previous patch.
3264         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
3265         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
3266
3267         Convert strcasestr module to use Two-Way algorithm.
3268         * modules/strcasestr-simple: New module, based on the old
3269         strcasestr, but with Two-Way rather than KMP.
3270         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
3271         * lib/string.in.h (rpl_strcasestr): Declare.
3272         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
3273         performance.
3274         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
3275         * modules/string (Makefile.am): Support strcasestr.
3276         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
3277         * modules/strcasestr-tests (Depends-on): Check for alarm.
3278         * tests/test-strcasestr.c: Augment test.
3279         * lib/str-two-way.h: Clean up stray macro.
3280         * NEWS: Document new module.
3281         * MODULES.html.sh (string handling): Likewise.
3282         * doc/functions/strcasestr.texi: New file.
3283         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
3284         here, since it is not a POSIX function.
3285
3286 2008-01-14  Colin Watson  <cjwatson@debian.org>
3287             Bruno Haible  <bruno@clisp.org>
3288
3289         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
3290         works fine; if not, set REPLACE_STRSIGNAL.
3291         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
3292         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3293         REPLACE_STRSIGNAL.
3294         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
3295         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
3296         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
3297
3298 2008-01-14  Bruno Haible  <bruno@clisp.org>
3299
3300         * modules/strsignal (Include): Change to <string.h>.
3301
3302 2008-01-14  Colin Watson  <cjwatson@debian.org>
3303
3304         * modules/argp (Notice): Add a notice recommending to change
3305         XGETTEXT_OPTIONS.
3306         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
3307
3308 2008-01-13  Colin Watson  <cjwatson@debian.org>
3309
3310         * modules/strsignal-tests: New file.
3311         * tests/test-strsignal.c: New file.
3312
3313         * lib/strsignal.c: New file, from glibc with modifications.
3314         * lib/siglist.h: New file, from glibc with modifications.
3315         * lib/string.in.h (strsignal): New declaration.
3316         * m4/strsignal.m4: New file.
3317         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3318         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
3319         * modules/strsignal: New file.
3320         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
3321         HAVE_DECL_STRSIGNAL.
3322
3323 2008-01-13  Bruno Haible  <bruno@clisp.org>
3324
3325         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
3326         locale encoding is not ASCII. Needed for OpenBSD 4.0.
3327         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3328         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3329
3330 2008-01-13  Bruno Haible  <bruno@clisp.org>
3331
3332         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
3333         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
3334         * lib/argp.h (__attribute__): Likewise.
3335         * lib/c-stack.c (__attribute__): Likewise.
3336         * lib/error.h (__attribute__): Likewise.
3337         * lib/fts.c (__attribute__): Likewise.
3338         * lib/openat.h (__attribute__): Likewise.
3339         * lib/stdio.in.h (__attribute__): Likewise.
3340         * lib/string.in.h (__attribute__): Likewise.
3341         * lib/utimens.c (__attribute__): Likewise.
3342         * lib/vasnprintf.h (__attribute__): Likewise.
3343         * lib/xalloc.h (__attribute__): Likewise.
3344         * lib/xprintf.h (__attribute__): Likewise.
3345         * lib/xstrtol.h (__attribute__): Likewise.
3346         * lib/xvasprintf.h (__attribute__): Likewise.
3347
3348 2008-01-12  Bruno Haible  <bruno@clisp.org>
3349
3350         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
3351         * doc/glibc-headers/a.out.texi: New file.
3352         * doc/glibc-headers/aliases.texi: New file.
3353         * doc/glibc-headers/alloca.texi: New file.
3354         * doc/glibc-headers/ar.texi: New file.
3355         * doc/glibc-headers/argp.texi: New file.
3356         * doc/glibc-headers/argz.texi: New file.
3357         * doc/glibc-headers/byteswap.texi: New file.
3358         * doc/glibc-headers/crypt.texi: New file.
3359         * doc/glibc-headers/endian.texi: New file.
3360         * doc/glibc-headers/envz.texi: New file.
3361         * doc/glibc-headers/err.texi: New file.
3362         * doc/glibc-headers/error.texi: New file.
3363         * doc/glibc-headers/execinfo.texi: New file.
3364         * doc/glibc-headers/fpu_control.texi: New file.
3365         * doc/glibc-headers/fstab.texi: New file.
3366         * doc/glibc-headers/fts.texi: New file.
3367         * doc/glibc-headers/getopt.texi: New file.
3368         * doc/glibc-headers/ieee754.texi: New file.
3369         * doc/glibc-headers/ifaddrs.texi: New file.
3370         * doc/glibc-headers/libintl.texi: New file.
3371         * doc/glibc-headers/mcheck.texi: New file.
3372         * doc/glibc-headers/mntent.texi: New file.
3373         * doc/glibc-headers/obstack.texi: New file.
3374         * doc/glibc-headers/paths.texi: New file.
3375         * doc/glibc-headers/printf.texi: New file.
3376         * doc/glibc-headers/pty.texi: New file.
3377         * doc/glibc-headers/resolv.texi: New file.
3378         * doc/glibc-headers/shadow.texi: New file.
3379         * doc/glibc-headers/sysexits.texi: New file.
3380         * doc/glibc-headers/ttyent.texi: New file.
3381
3382 2008-01-12  Jim Meyering  <meyering@redhat.com>
3383
3384         announce-gen: emit Gnulib's git-based version string.
3385         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
3386         New option --gnulib-version=V, where V is expected to be
3387         the output of running git describe in the gnulib directory.
3388         (get_tool_versions): Request feedback on xdelta.  I suspect it's
3389         not useful, and plan to stop publishing an xdelta file with each
3390         coreutils release.
3391
3392         * build-aux/announce-gen: Also check for lzma-compressed files.
3393
3394 2008-01-11  Bruno Haible  <bruno@clisp.org>
3395
3396         * tests/test-memmem.c (main): Increase maximum allowed time.
3397         * tests/test-strstr.c (main): Likewise.
3398
3399 2008-01-11  Bruno Haible  <bruno@clisp.org>
3400
3401         * doc/functions/memmem.texi: Add more precisions about platforms.
3402         * doc/functions/strstr.texi: Likewise.
3403
3404 2008-01-10  Eric Blake  <ebb9@byu.net>
3405
3406         * m4/strstr.m4: Delete cruft from copy-n-paste.
3407         Reported by Bruno Haible.
3408
3409 2008-01-10  Bruno Haible  <bruno@clisp.org>
3410
3411         Make c-strstr rely on strstr.
3412         * lib/c-strstr.c: Don't include str-kmp.h.
3413         (c_strstr): Define in terms of strstr.
3414         * modules/c-strstr (Files): Remove lib/str-kmp.h.
3415         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
3416
3417 2008-01-10  Bruno Haible  <bruno@clisp.org>
3418
3419         * doc/gnulib.texi (String Functions in C Locale): New section.
3420         * doc/c-ctype.texi: New file.
3421         * doc/c-strcase.texi: New file.
3422         * doc/c-strcaseeq.texi: New file.
3423         * doc/c-strcasestr.texi: New file.
3424         * doc/c-strstr.texi: New file.
3425         * doc/c-strtod.texi: New file.
3426         * doc/c-strtold.texi: New file.
3427
3428 2008-01-10  Eric Blake  <ebb9@byu.net>
3429
3430         * lib/relocatable.h: Fix a comment.
3431
3432 2008-01-10  Eric Blake  <ebb9@byu.net>
3433
3434         Share two-way algorithm.
3435         * lib/str-two-way.h: New file, merged from...
3436         * lib/memmem.c: ...here...
3437         * lib/strstr.c: ...and here.
3438         * modules/memmem (Files): Use it.
3439         * modules/strstr (Files): Likewise.
3440
3441         Avoid quadratic strstr implementations.
3442         * lib/strstr.c: New file.
3443         * m4/strstr.m4: Likewise.
3444         * modules/strstr: Likewise.
3445         * modules/strstr-tests: Likewise.
3446         * tests/test-strstr.c: Likewise.
3447         * lib/string.in.h (rpl_strstr): Declare.
3448         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
3449         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
3450         * modules/string (Makefile.am): Likewise.
3451         * MODULES.html.sh (string handling): Mention new module.
3452         * doc/functions/strstr.texi (strstr): Document the bug.
3453
3454 2008-01-10  Bruno Haible  <bruno@clisp.org>
3455
3456         * lib/relocatable.h (relocate): State whether result is freshly
3457         allocated or not.
3458         * lib/relocatable.c (relocate): Return a freshly allocated string
3459         instead of a pointer to a privately held string.
3460         Reported by Sylvain Beucler <beuc@gnu.org>.
3461
3462 2008-01-10  Colin Watson  <cjwatson@debian.org>
3463
3464         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
3465         s/S_ISNLK/S_ISLNK/.
3466
3467 2008-01-09  Bruno Haible  <bruno@clisp.org>
3468
3469         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
3470         and other files.
3471         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
3472         if it's only a guess.
3473         * modules/memmem: Simplify by depending on memmem-simple.
3474
3475 2008-01-09  Bruno Haible  <bruno@clisp.org>
3476
3477         Work around OpenBSD 4.0 tdelete() bug.
3478         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
3479         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
3480         macros and don't redefine the enum values.
3481         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
3482         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
3483         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
3484
3485 2008-01-09  Bruno Haible  <bruno@clisp.org>
3486
3487         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
3488         (main): Don't perform the tests if setlocale did not install a UTF-8
3489         locale. Needed on OpenBSD 4.0.
3490         * modules/wcwidth-tests (Depends-on): Add localcharset.
3491
3492 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
3493
3494         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
3495         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
3496         * NEWS: announce this.
3497         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
3498
3499 2008-01-09  Simon Josefsson  <simon@josefsson.org>
3500         and Eric Blake  <ebb9@byu.net>
3501
3502         Add memmem-simple module.
3503         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
3504         (gl_FUNC_MEMMEM): Separate performance from presence checks.
3505         * modules/memmem-simple: New file.
3506         * modules/memmem (Description): Tweak.
3507         * MODULES.html.sh (string handling): Mention new module.
3508         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
3509         addressed by memmem-simple.
3510         * NEWS: Document the difference.
3511
3512 2008-01-09  Eric Blake  <ebb9@byu.net>
3513
3514         Give gcc some memmem optimization hints.
3515         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
3516         (strcasestr): Declare as pure.
3517         * modules/memmem (Maintainer): Claim my implementation.
3518
3519 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3520
3521         Support AIX 6.1 and higher.
3522         * build-aux/config.libpath: Likewise.
3523         * build-aux/config.rpath: Likewise.
3524
3525 2008-01-08  Jim Meyering  <meyering@redhat.com>
3526             Bruno Haible  <bruno@clisp.org>
3527
3528         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
3529         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
3530         Reported by Peter Fales in
3531         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
3532
3533 2008-01-08  Bruno Haible  <bruno@clisp.org>
3534
3535         * modules/unictype/category-of (Depends-on): Add
3536         unictype/category-none.
3537         * modules/unictype/category-and-tests (Depends-on): Add
3538         unictype/category-{L,N,Lu,Nd}.
3539         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
3540         * modules/unictype/category-or-tests (Depends-on): Add
3541         unictype/category-{L,N}.
3542         * modules/unictype/category-name-tests (Depends-on): Add
3543         unictype/category-{Z,Nl}.
3544         Reported by Simon Josefsson.
3545
3546 2008-01-08  Bruno Haible  <bruno@clisp.org>
3547
3548         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
3549         convention better.
3550         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
3551         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
3552         Reported by Peter Miller <millerp@canb.auug.org.au>.
3553
3554 2008-01-08  Eric Blake  <ebb9@byu.net>
3555
3556         Rewrite memmem to guarantee linear complexity without malloc.
3557         * lib/memmem.c (memmem): Use Two-Way rather than
3558         Knuth-Morris-Pratt, to allow O(1) space usage.
3559         (critical_factorization, two_way_short_needle)
3560         (two_way_long_needle): New functions.
3561         (knuth_morris_pratt): Delete.
3562         * modules/memmem (Depends-on): No longer need malloca or stdbool.
3563         Add stdint.
3564         * tests/test-memmem.c (main): Add tests for periodic needle and
3565         sublinear performance.
3566         * doc/functions/memmem.texi (memmem): Document other deficiencies
3567         in cygwin and older glibc.
3568
3569 2008-01-08  Bruno Haible  <bruno@clisp.org>
3570
3571         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
3572         augmentation.
3573
3574 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
3575
3576         Add a configure time option: --disable-acl.
3577         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
3578         AC_ARG_ENABLE(acl).
3579
3580 2008-01-06  Simon Josefsson  <simon@josefsson.org>
3581
3582         * tests/test-localename.c: Don't include obsolete "setenv.h".
3583
3584         * modules/localename-tests (Depends-on): Need unsetenv.
3585
3586 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3587
3588         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
3589
3590 2008-01-06  Colin Watson  <cjwatson@debian.org>
3591
3592         * users.txt: Add man-db.
3593
3594 2008-01-07  Bruno Haible  <bruno@clisp.org>
3595
3596         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
3597         previous section name.
3598
3599 2008-01-07  Bruno Haible  <bruno@clisp.org>
3600
3601         * lib/progname.c (set_program_name): Don't strip off a leading
3602         "lt-" prefix outside a .libs directory.
3603         Suggested by Paul Eggert.
3604
3605 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
3606             Bruno Haible  <bruno@clisp.org>
3607
3608         Improve memory cleanup in 'relocatable' module.
3609         * lib/relocatable.h (compute_curr_prefix): Change return type to
3610         'char *'.
3611         * lib/relocatable.c (compute_curr_prefix): Change return type to
3612         'char *'. Free curr_installdir after use.
3613         (relocate): Free curr_prefix_better after use.
3614         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
3615
3616 2008-01-01  Bruno Haible  <bruno@clisp.org>
3617
3618         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
3619         failure on older glibc systems.
3620         Reported by Peter Fales <psfales@alcatel-lucent.com>.
3621
3622 2008-01-05  Eric Blake  <ebb9@byu.net>
3623
3624         Avoid quadratic system memmem.
3625         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
3626         Reported by Ralf Wildenhues.
3627
3628         Fix memmem test for mingw.
3629         * modules/memmem-tests (configure.ac): Check for alarm.
3630         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
3631         it.
3632         * doc/functions/memmem.texi: New file.
3633         * doc/gnulib.texi (Function Substitutes): Add memmem.
3634         Reported by Bruno Haible.
3635
3636 2008-01-04  Bruno Haible  <bruno@clisp.org>
3637
3638         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
3639         Require gl_HEADER_STRINGS_H_DEFAULTS, not
3640         gl_HEADER_STRING_H_DEFAULTS.
3641
3642 2008-01-04  Eric Blake  <ebb9@byu.net>
3643
3644         Shorten duration of memmem test.
3645         * tests/test-memmem.c (main): Use alarm to declare failure if test
3646         is taking too long.
3647         Reported by Ralf Wildenhues.
3648
3649 2007-12-21  Simon Josefsson  <simon@josefsson.org>
3650
3651         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
3652         string, needed by strerror.
3653
3654 2008-01-03  Colin Watson  <cjwatson@debian.org>
3655             Bruno Haible  <bruno@clisp.org>
3656
3657         * doc/gnulib-tool.texi (Localization): New section.
3658
3659 2008-01-02  Bruno Haible  <bruno@clisp.org>
3660
3661         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
3662         variables to 'unsigned char *' type.
3663         Reported by Paul Eggert.
3664
3665 2008-01-02  Jim Meyering  <jim@meyering.net>
3666
3667         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
3668
3669 2007-12-31  Jim Meyering  <jim@meyering.net>
3670
3671         Avoid use of private FTS type name.
3672         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
3673
3674 2007-12-30  Karl Berry  <karl@gnu.org>
3675
3676         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
3677         work around defect in Texinfo and/or the standalone Info browser.
3678
3679 2007-12-30  Bruno Haible  <bruno@clisp.org>
3680
3681         Unify 5 copies of the KMP code.
3682         * lib/str-kmp.h: New file.
3683         * lib/c-strcasestr.c: Include str-kmp.h.
3684         (knuth_morris_pratt): Remove function.
3685         (c_strcasestr): Update.
3686         * lib/c-strstr.c: Include str-kmp.h.
3687         (knuth_morris_pratt): Remove function.
3688         (c_strcasestr): Update.
3689         * lib/mbscasestr.c: Include str-kmp.h.
3690         (knuth_morris_pratt_unibyte): Remove function.
3691         * lib/mbsstr.c: Include str-kmp.h.
3692         (knuth_morris_pratt_unibyte): Remove function.
3693         * lib/strcasestr.c: Include str-kmp.h.
3694         (knuth_morris_pratt): Remove function.
3695         (strcasestr): Update.
3696         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
3697         * modules/c-strstr (Files): Likewise.
3698         * modules/mbscasestr (Files): Likewise.
3699         * modules/mbsstr (Files): Likewise.
3700         * modules/strcasestr (Files): Likewise.
3701         Suggested by Paul Eggert.
3702
3703 2007-12-30  Bruno Haible  <bruno@clisp.org>
3704
3705         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
3706         defined.
3707
3708 2007-12-30  Bruno Haible  <bruno@clisp.org>
3709
3710         * lib/xmalloca.h: Include xalloc.h.
3711         (xnmalloca): New macro.
3712
3713 2007-12-30  Bruno Haible  <bruno@clisp.org>
3714
3715         * lib/malloca.h (nmalloca): New macro.
3716         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
3717         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
3718         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
3719         knuth_morris_pratt_multibyte): Likewise.
3720         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
3721         knuth_morris_pratt_multibyte): Likewise.
3722         * lib/memmem.c (knuth_morris_pratt): Likewise.
3723         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
3724
3725 2007-12-25  Bruno Haible  <bruno@clisp.org>
3726
3727         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
3728         * lib/glob.c: Don't include openat.h.
3729         (link_exists2_p): Add back the code that deals with the
3730         !GLOB_ALTDIRFUNC case.
3731         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
3732         let it do the filename concatenation.
3733         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
3734         * modules/glob (Depends-on): Remove openat.
3735
3736 2007-12-31  Bruno Haible  <bruno@clisp.org>
3737
3738         * modules/dirfd (License): Change to LGPLv2+.
3739         Approved by Jim Meyering.
3740
3741 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
3742
3743         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
3744         when multiplying M by sizeof (size_t).
3745
3746 2007-12-10  Martin Lambers  <marlam@marlam.de>
3747
3748         Override getpagesize on mingw.
3749         * lib/getpagesize.c: New file.
3750         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
3751         * modules/getpagesize (Files): Add lib/getpagesize.c.
3752         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
3753         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3754         REPLACE_GETPAGESIZE.
3755         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
3756
3757 2007-12-25  Bruno Haible  <bruno@clisp.org>
3758
3759         * modules/localcharset (Notice): New field.
3760         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
3761         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
3762
3763 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
3764             Bruno Haible  <bruno@clisp.org>
3765
3766         Avoid using the syntax symbol() in formatted documentation.
3767         * MODULES.html.sh (func_module): When replacing symbol() with a
3768         hyperlink, remove the parentheses. Show an error if some remain.
3769         Recognize and render the '...' syntax.
3770         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
3771         Rework. Add paragraph about GCC's inlining.
3772         * doc/alloca.texi: Likewise.
3773         * doc/error.texi: Remove parentheses from symbol reference.
3774         * doc/gnulib-intro.texi: Likewise.
3775         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
3776         * modules/fnmatch (Description): Reword to say "the ... function".
3777         * modules/full-read (Description): Likewise.
3778         * modules/full-write (Description): Likewise.
3779         * modules/safe-read (Description): Likewise.
3780         * modules/safe-write (Description): Likewise.
3781         * modules/strchrnul (Description): Likewise.
3782         * modules/trim (Description): Likewise.
3783         * modules/error (Description): Remove parentheses from symbol
3784         references.
3785         * modules/verror (Description): Likewise.
3786         Reported by Karl Berry.
3787
3788 2007-12-25  Bruno Haible  <bruno@clisp.org>
3789
3790         Fixup after 2007-10-16 commit.
3791         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
3792
3793 2007-12-24  Bruno Haible  <bruno@clisp.org>
3794
3795         Make --enable-relocatable work with DESTDIR.
3796         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
3797         to compute installdir from destprog.
3798         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
3799         also set the RELOC_DESTDIR variable.
3800         Reported by Левашев Иван <octagram@bluebottle.com>.
3801
3802 2007-12-24  Bruno Haible  <bruno@clisp.org>
3803
3804         Fix link error due to xalloc_die().
3805         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
3806         of xreadlink.
3807         * lib/relocwrapper.c: Update comments.
3808         * build-aux/install-reloc: Remove xreadlink.c from file list.
3809         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
3810         xreadlink.c.
3811         Reported by Левашев Иван <octagram@bluebottle.com>.
3812
3813 2007-12-24  Bruno Haible  <bruno@clisp.org>
3814
3815         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
3816         * lib/setenv.h: Remove file.
3817         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
3818         lib/setenv.h.
3819         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
3820         (Depends-on): Add stdlib.
3821         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
3822         gl_FUNC_UNSETENV.
3823         (Include): Replace setenv.h with <stdlib.h>.
3824         * modules/unsetenv: New file.
3825         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
3826         * lib/unsetenv.c: Include <stdlib.h> first.
3827         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
3828         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
3829         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
3830         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
3831         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
3832         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
3833         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
3834         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
3835         * doc/functions/unsetenv.texi: Update.
3836         * modules/xsetenv (Depends-on): Add unsetenv.
3837         * modules/getdate (Depends-on): Likewise.
3838         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
3839         * lib/xsetenv.c: Don't include setenv.h.
3840         * lib/getdate.y: Likewise.
3841         * lib/relocwrapper.c: Likewise.
3842         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
3843         (Depends-on): Add stdlib.
3844         * NEWS: Mention the changes.
3845         Reported by Левашев Иван <octagram@bluebottle.com>.
3846
3847 2007-12-23  Bruno Haible  <bruno@clisp.org>
3848
3849         * lib/memmem.c (memmem): Use lowercase variable names. Tab
3850         indentation.
3851
3852 2007-12-23  Bruno Haible  <bruno@clisp.org>
3853
3854         * lib/c-strcasestr.c: Add more comments.
3855         * lib/c-strstr.c: Likewise.
3856         * lib/mbscasestr.c: Likewise.
3857         * lib/mbsstr.c: Likewise.
3858         * lib/strcasestr.c: Likewise.
3859         * lib/memmem.c: Likewise.
3860
3861 2007-12-23  Bruno Haible  <bruno@clisp.org>
3862
3863         * tests/test-memmem.c: Include <string.h> first.
3864
3865 2007-12-22  Bruno Haible  <bruno@clisp.org>
3866
3867         * gnulib-tool (func_create_testdir): Change $auxdir while generating
3868         the contents of $testsbase.
3869         Reported by Ralf Wildenhues.
3870
3871 2007-12-22  Bruno Haible  <bruno@clisp.org>
3872
3873         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
3874         two variables local_ldadd_before, local_ldadd_last.
3875
3876 2007-12-20  Eric Blake  <ebb9@byu.net>
3877
3878         Work around circular library issue when cross-compiling.
3879         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
3880         that progname.o does not need to pull in rpl_memcmp.
3881
3882 2007-12-19  Eric Blake  <ebb9@byu.net>
3883
3884         Fix memmem to avoid O(n^2) worst-case complexity.
3885         * lib/memmem.c (knuth_morris_pratt): New function.
3886         (memmem): Use it if first few naive iterations fail.
3887         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
3888         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
3889         * modules/memchr (License): Likewise.
3890         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
3891         malloca.
3892         * tests/test-memmem.c: Rewrite, borrowing ideas from
3893         test-mbsstr1.c; the old version wouldn't even compile!
3894         * modules/memmem-tests: New file.
3895         * lib/string.in.h (rpl_memmem): Add declaration.
3896         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
3897         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
3898         REPLACE_MEMMEM.
3899
3900 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
3901
3902         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
3903         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
3904         before any system include files, and undef after them all.  This
3905         should fix a problem on VMS reported by John E. Malmberg in
3906         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
3907
3908 2007-12-17  Eric Blake  <ebb9@byu.net>
3909
3910         Revert addition of verify, for BSD/OS.
3911         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
3912         can't handle large files, for the sake of obsolete platforms.
3913         * modules/fseeko (Depends-on): Remove verify.
3914         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
3915         * doc/functions/ftello.texi (ftello): Likewise.
3916         * doc/functions/fgetpos.texi (fgetpos): Likewise.
3917         Reported by Larry Jones.
3918
3919 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
3920
3921         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
3922         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
3923
3924 2007-12-17  Jim Meyering  <meyering@redhat.com>
3925
3926         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
3927         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
3928         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
3929         * modules/getcwd (Depends-on): Add openat.
3930         Reported by Petr Salinger.
3931
3932 2007-12-17  Bruno Haible  <bruno@clisp.org>
3933
3934         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
3935         avoid a segmentation fault of the configure test on x86_64 systems.
3936
3937 2007-12-15  Jim Meyering  <meyering@redhat.com>
3938
3939         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
3940
3941 2007-12-13  Eric Blake  <ebb9@byu.net>
3942
3943         Another fseek test.
3944         * tests/test-fseek.c (main): Also test ungetc handling.
3945         * tests/test-fseeko.c (main): Likewise.
3946         * modules/fseeko (Depends-on): Add verify.
3947         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
3948         large.
3949         Reported by Larry Jones.
3950
3951         Fix fseeko on mingw.
3952         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
3953         seek.
3954
3955         Beef up fseek tests.
3956         * tests/test-fseek.c (main): Also test eof handling.
3957         * tests/test-fseeko.c (main): Likewise.
3958         Reported by Larry Jones.
3959
3960 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
3961
3962         Fix fseeko on BSD-based platforms.
3963         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
3964         successful seek.
3965
3966 2007-12-12  Eric Blake  <ebb9@byu.net>
3967
3968         Allow circular dependency of separate libtests.a
3969         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
3970         when use_libtests.
3971
3972 2007-12-11  Eric Blake  <ebb9@byu.net>
3973
3974         Fix bug with -0.0L in previous patch.
3975         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
3976         * tests/test-isnan.c (main): Also test on zeroes.
3977         * tests/test-isnanf.c (main): Likewise.
3978         * tests/test-isnanl.h (main): Likewise.
3979
3980         Detect pseudo-denormals on x86 even when cross-compiling.
3981         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
3982         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
3983         invalid bit patterns that happen to satisfy ==.
3984
3985         Avoid link failures with separate libtests.a.
3986         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
3987         last, to satisfy circular dependencies.
3988
3989 2007-12-11  Eric Blake  <ebb9@byu.net>
3990         and Bruno Haible  <bruno@clisp.org>
3991
3992         Fix OpenBSD 4.0 <float.h> handling of long double.
3993         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
3994         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
3995         * doc/headers/float.texi (float.h): Document OpenBSD bug.
3996
3997 2007-12-11  Jim Meyering  <meyering@redhat.com>
3998
3999         * users.txt: Add libvirt.
4000
4001         Support versions of autoconf prior to 2.59c.
4002         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
4003         if it is not already defined.
4004
4005 2007-12-09  Bruno Haible  <bruno@clisp.org>
4006
4007         Let 'gnulib-tool --import' collect sources needed for the tests in
4008         tests/ rather than in lib/.
4009         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
4010         argument. If true, add rules to generate libtests.a, and put libtests.a
4011         into $(LDADD). Consider source files in subdirectories and set
4012         uses_subdirs.
4013         (func_emit_initmacro_start, func_emit_initmacro_end,
4014         func_emit_initmacro_done): Pass all arguments explicitly.
4015         (func_import): Determine two module lists main_modules,
4016         testsrelated_modules. Determine use_libtests. Determine two variables
4017         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
4018         instead of just sed_transform_lib_file. Determine two variables
4019         main_files and testsrelated_files. Compute 'files' as the union of
4020         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
4021         func_add_or_update. In the generated gnulib-comp.m4, collect the
4022         object files for tests/ in different variables than those for lib/.
4023         Substitute LIBTESTS_LIBDEPS.
4024         (func_create_testdir): Combine the uses_subdirs results from
4025         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
4026
4027 2007-12-09  Bruno Haible  <bruno@clisp.org>
4028
4029         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
4030         the build-aux directory.
4031
4032 2007-12-09  Bruno Haible  <bruno@clisp.org>
4033
4034         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
4035         introduced on 2006-09-09.
4036
4037 2007-12-07  Jim Meyering  <meyering@redhat.com>
4038
4039         Let these macros work also with autoconf-2.59.
4040         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
4041         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
4042         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
4043
4044 2007-12-06  Jim Meyering  <meyering@redhat.com>
4045
4046         Avoid a configure-time syntax error in gl_FUNC_ACL.
4047         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
4048         function in each branch, before testing the cache variable.
4049
4050 2007-12-04  Eric Blake  <ebb9@byu.net>
4051
4052         Make scripts executable.
4053         * build-aux/config.guess: Add execute permissions.
4054         * build-aux/config.sub: Likewise.
4055         * build-aux/gendocs.sh: Likewise.
4056
4057         Fix frexp on mingw.
4058         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
4059         cross-compiling.
4060         * doc/functions/frexp.texi (frexp): Document the bug.
4061
4062         Make cygwin fseeko check more reliable.
4063         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
4064         version numbers, rather than unrelated feature check.
4065         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
4066         * doc/functions/ftello.texi (ftello): Likewise.
4067         Reported by Bruno Haible.
4068
4069         * m4/strerror.m4: Bump version number.
4070
4071 2007-12-03  Bruno Haible  <bruno@clisp.org>
4072
4073         * doc/functions/mprotect.texi: Mention the mingw problem.
4074
4075 2007-12-03  Eric Blake  <ebb9@byu.net>
4076
4077         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
4078         REPLACE_STRERROR is initialized before this macro.
4079
4080 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
4081
4082         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
4083         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
4084         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
4085         put -lsec in even for programs other than 'ls'.  This fixes a problem
4086         for gettext reported by Bruno Haible in
4087         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
4088         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
4089         Add support for Solaris 10.  This isn't efficient, but should get the
4090         job done for now.
4091
4092 2007-12-03  James Youngman  <jay@gnu.org>
4093
4094         * doc/regexprops-generic.texi: change "an close-group" to "a
4095         close-group" and "illegal" to "not allowed".
4096
4097 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4098
4099         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
4100         pr_byname.h. Needed for the rare case when the maintainer has done
4101         "make maintainer-clean" in the source directory and then attempts a
4102         build outside the source directory.
4103         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
4104         scripts_byname.h.
4105
4106 2007-12-02  Martin Lambers <marlam@marlam.de>
4107             Bruno Haible  <bruno@clisp.org>
4108
4109         * lib/getpagesize.h: Remove file.
4110         * lib/unistd.in.h: Include declaration of getpagesize here.
4111         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
4112         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
4113         HAVE_SYS_PARAM_H.
4114         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
4115         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
4116         * modules/getpagesize (Files): Remove lib/getpagesize.h.
4117         (Depends-on): Add unistd.
4118         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4119         (Include): Use <unistd.h> instead of getpagesize.h.
4120         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
4121         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
4122         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
4123         gl_GETPAGESIZE invocation, already handled by module dependency.
4124         * lib/pagealign_alloc.c: Don't include getpagesize.h.
4125
4126 2007-12-02  Bruno Haible  <bruno@clisp.org>
4127
4128         * modules/strings-tests: New file.
4129         * tests/test-strings.c: New file.
4130
4131         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
4132         * lib/strings.in.h: New file.
4133         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
4134         * m4/strings_h.m4: New file.
4135         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
4136         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
4137         * modules/strings: New file.
4138         * modules/string (Makefile.am): Update.
4139         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
4140         Reported by Karl Berry.
4141
4142 2007-12-01  Eric Blake  <ebb9@byu.net>
4143
4144         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
4145         accomodate fix in cygwin 1.5.25.
4146
4147 2007-12-01  Jim Meyering  <meyering@redhat.com>
4148
4149         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
4150         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
4151         that would inhibit utf8-optimization of a regexp containing line-
4152         or buffer-anchors, e.g., `^', `$'.
4153
4154 2007-11-30  Bruno Haible  <bruno@clisp.org>
4155
4156         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
4157         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
4158         glthread_recursive_lock_init.
4159         * lib/lock.c (glthread_recursive_lock_init)
4160         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
4161         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
4162
4163 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
4164
4165         New function qset_acl, like set_acl but with syscall semantics.
4166         * lib/acl.h (qset_acl): New decl.
4167         * lib/acl.c (qset_acl): New function.
4168         (set_acl): Use new function.  Use more-consistent diagnostics.
4169
4170 2007-11-28  Jim Meyering  <meyering@redhat.com>
4171
4172         * modules/physmem (License): Change from GPL to LGPLv2+.
4173
4174 2007-11-26  Bruno Haible  <bruno@clisp.org>
4175
4176         * lib/vasnprintf.c (decode_long_double): Don't abort if the
4177         'long double' type has excess precision.
4178         Reported by Jim Meyering in
4179         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
4180
4181 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4182
4183         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
4184         Sync from <http://gnu.org/licenses>.
4185         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
4186         with license text from same location.
4187         * doc/maintain.texi, doc/standards.texi:  Sync from
4188         <http://savannah.gnu.org/projects/gnustandards>.
4189
4190 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
4191         and Jim Meyering  <meyering@redhat.com>
4192
4193         Adjust getdate' grammar to accept a slightly more regular language.
4194         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
4195         Before, the former was rejected.
4196         * lib/getdate.y (digits_to_date_time): New function, factored
4197         out of ...
4198         (number): ...here.  Just call digits_to_date_time.
4199         (hybrid): New non-terminal to handle an <unsigned number,
4200         signed relative offset> sequence consistently.
4201
4202 2007-11-18  Jim Meyering  <meyering@redhat.com>
4203
4204         Pull my changes from coreutils:
4205         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
4206         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
4207         use of $gnulib_tool_option_extras, so that it's separated from the
4208         preceding argument.
4209
4210         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
4211         * build-aux/bootstrap (cp_mark_as_generated): Create any required
4212         parent destination directories before copying a file into place.
4213
4214 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
4215
4216         bootstrap: work also with 4-argument variant of AC_INIT
4217         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
4218
4219 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
4220
4221         Port test-getaddrinfo to Solaris.
4222         Problem reported by Bruno Haible in
4223         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
4224         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
4225         explanation of setting 'hints'.
4226         Don't reject an implementation merely because it returns EAI_SERVICE.
4227         (EAI_SERVICE): Define to 0 if not defined.
4228
4229 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
4230
4231         The license of gnu-make and posix-shell is now "GPLed build tool".
4232         * modules/gnu-make (License): Likewise.
4233         * modules/posix-shell (License): Likewise.
4234
4235         New module posix-shell, for determining a POSIX shell
4236         or perhaps something that is close enough to a POSIX shell.
4237         * m4/posix-shell.m4: New file.
4238         * modules/posix-shell: New file.
4239
4240         * MODULES.html.sh: Mention new module.
4241
4242         New module gnu-make, for determining whether we're using GNU Make.
4243         * m4/gnu-make.m4: New file.
4244         * modules/gnu-make: New file.
4245         * MODULES.html.sh: Mention new module.
4246
4247 2007-11-14  Jim Meyering  <meyering@redhat.com>
4248
4249         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
4250         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
4251         use this macro to create a function _definition_.
4252         Remove useless "#undef ARGMATCH_DIE".
4253
4254 2007-11-14  Bruno Haible  <bruno@clisp.org>
4255
4256         * lib/config.charset: Update for OpenBSD 4.1.
4257         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
4258
4259 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
4260
4261         Document 64-bit #if problems in stdint.texi.
4262         * doc/headers/stdint.texi (stdint.h): Mention problems with
4263         64-bit-#if, and how to work around them.
4264
4265         Don't insist on 'long long int' support in the preprocessor.  It
4266         breaks too many things.  For example, PRIdMAX still uses a 'long
4267         long int' format with the latest Sun compiler, even though
4268         HAVE_LONG_LONG_INT isn't defined due to that compiler's
4269         preprocessor problem.  This causes the latest coreutils to dump
4270         core on Solaris 10 sparc with the Sun C compiler.
4271         Instead, fix the 2007-10-16 problem in a different way, by evaluating
4272         the troublesome expressions at configure-time, not at #if-time.
4273         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
4274         preprocessor.
4275         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
4276         compile-time C checks, done at 'configure'-time.
4277         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
4278         * modules/inttypes (Makefile): Substitute the new symbols that
4279         gl_INTTYPES_H now generates.
4280         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
4281
4282 2007-11-12  Bruno Haible  <bruno@clisp.org>
4283
4284         Tests for Unicode character classification functions.
4285
4286         * modules/unictype/bidicategory-byname-tests: New file.
4287         * modules/unictype/bidicategory-name-tests: New file.
4288         * modules/unictype/bidicategory-of-tests: New file.
4289         * modules/unictype/bidicategory-test-tests: New file.
4290         * modules/unictype/block-list-tests: New file.
4291         * modules/unictype/block-of-tests: New file.
4292         * modules/unictype/block-test-tests: New file.
4293         * modules/unictype/category-C-tests: New file.
4294         * modules/unictype/category-Cc-tests: New file.
4295         * modules/unictype/category-Cf-tests: New file.
4296         * modules/unictype/category-Cn-tests: New file.
4297         * modules/unictype/category-Co-tests: New file.
4298         * modules/unictype/category-Cs-tests: New file.
4299         * modules/unictype/category-L-tests: New file.
4300         * modules/unictype/category-Ll-tests: New file.
4301         * modules/unictype/category-Lm-tests: New file.
4302         * modules/unictype/category-Lo-tests: New file.
4303         * modules/unictype/category-Lt-tests: New file.
4304         * modules/unictype/category-Lu-tests: New file.
4305         * modules/unictype/category-M-tests: New file.
4306         * modules/unictype/category-Mc-tests: New file.
4307         * modules/unictype/category-Me-tests: New file.
4308         * modules/unictype/category-Mn-tests: New file.
4309         * modules/unictype/category-N-tests: New file.
4310         * modules/unictype/category-Nd-tests: New file.
4311         * modules/unictype/category-Nl-tests: New file.
4312         * modules/unictype/category-No-tests: New file.
4313         * modules/unictype/category-P-tests: New file.
4314         * modules/unictype/category-Pc-tests: New file.
4315         * modules/unictype/category-Pd-tests: New file.
4316         * modules/unictype/category-Pe-tests: New file.
4317         * modules/unictype/category-Pf-tests: New file.
4318         * modules/unictype/category-Pi-tests: New file.
4319         * modules/unictype/category-Po-tests: New file.
4320         * modules/unictype/category-Ps-tests: New file.
4321         * modules/unictype/category-S-tests: New file.
4322         * modules/unictype/category-Sc-tests: New file.
4323         * modules/unictype/category-Sk-tests: New file.
4324         * modules/unictype/category-Sm-tests: New file.
4325         * modules/unictype/category-So-tests: New file.
4326         * modules/unictype/category-Z-tests: New file.
4327         * modules/unictype/category-Zl-tests: New file.
4328         * modules/unictype/category-Zp-tests: New file.
4329         * modules/unictype/category-Zs-tests: New file.
4330         * modules/unictype/category-and-not-tests: New file.
4331         * modules/unictype/category-and-tests: New file.
4332         * modules/unictype/category-byname-tests: New file.
4333         * modules/unictype/category-name-tests: New file.
4334         * modules/unictype/category-none-tests: New file.
4335         * modules/unictype/category-of-tests: New file.
4336         * modules/unictype/category-or-tests: New file.
4337         * modules/unictype/category-test-withtable-tests: New file.
4338         * modules/unictype/combining-class-tests: New file.
4339         * modules/unictype/ctype-alnum-tests: New file.
4340         * modules/unictype/ctype-alpha-tests: New file.
4341         * modules/unictype/ctype-blank-tests: New file.
4342         * modules/unictype/ctype-cntrl-tests: New file.
4343         * modules/unictype/ctype-digit-tests: New file.
4344         * modules/unictype/ctype-graph-tests: New file.
4345         * modules/unictype/ctype-lower-tests: New file.
4346         * modules/unictype/ctype-print-tests: New file.
4347         * modules/unictype/ctype-punct-tests: New file.
4348         * modules/unictype/ctype-space-tests: New file.
4349         * modules/unictype/ctype-upper-tests: New file.
4350         * modules/unictype/ctype-xdigit-tests: New file.
4351         * modules/unictype/decimal-digit-tests: New file.
4352         * modules/unictype/digit-tests: New file.
4353         * modules/unictype/mirror-tests: New file.
4354         * modules/unictype/numeric-tests: New file.
4355         * modules/unictype/property-alphabetic-tests: New file.
4356         * modules/unictype/property-ascii-hex-digit-tests: New file.
4357         * modules/unictype/property-bidi-arabic-digit-tests: New file.
4358         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
4359         * modules/unictype/property-bidi-block-separator-tests: New file.
4360         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
4361         * modules/unictype/property-bidi-common-separator-tests: New file.
4362         * modules/unictype/property-bidi-control-tests: New file.
4363         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
4364         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
4365         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
4366         * modules/unictype/property-bidi-european-digit-tests: New file.
4367         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
4368         * modules/unictype/property-bidi-left-to-right-tests: New file.
4369         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
4370         * modules/unictype/property-bidi-other-neutral-tests: New file.
4371         * modules/unictype/property-bidi-pdf-tests: New file.
4372         * modules/unictype/property-bidi-segment-separator-tests: New file.
4373         * modules/unictype/property-bidi-whitespace-tests: New file.
4374         * modules/unictype/property-byname-tests: New file.
4375         * modules/unictype/property-combining-tests: New file.
4376         * modules/unictype/property-composite-tests: New file.
4377         * modules/unictype/property-currency-symbol-tests: New file.
4378         * modules/unictype/property-dash-tests: New file.
4379         * modules/unictype/property-decimal-digit-tests: New file.
4380         * modules/unictype/property-default-ignorable-code-point-tests: New file.
4381         * modules/unictype/property-deprecated-tests: New file.
4382         * modules/unictype/property-diacritic-tests: New file.
4383         * modules/unictype/property-extender-tests: New file.
4384         * modules/unictype/property-format-control-tests: New file.
4385         * modules/unictype/property-grapheme-base-tests: New file.
4386         * modules/unictype/property-grapheme-extend-tests: New file.
4387         * modules/unictype/property-grapheme-link-tests: New file.
4388         * modules/unictype/property-hex-digit-tests: New file.
4389         * modules/unictype/property-hyphen-tests: New file.
4390         * modules/unictype/property-id-continue-tests: New file.
4391         * modules/unictype/property-id-start-tests: New file.
4392         * modules/unictype/property-ideographic-tests: New file.
4393         * modules/unictype/property-ids-binary-operator-tests: New file.
4394         * modules/unictype/property-ids-trinary-operator-tests: New file.
4395         * modules/unictype/property-ignorable-control-tests: New file.
4396         * modules/unictype/property-iso-control-tests: New file.
4397         * modules/unictype/property-join-control-tests: New file.
4398         * modules/unictype/property-left-of-pair-tests: New file.
4399         * modules/unictype/property-line-separator-tests: New file.
4400         * modules/unictype/property-logical-order-exception-tests: New file.
4401         * modules/unictype/property-lowercase-tests: New file.
4402         * modules/unictype/property-math-tests: New file.
4403         * modules/unictype/property-non-break-tests: New file.
4404         * modules/unictype/property-not-a-character-tests: New file.
4405         * modules/unictype/property-numeric-tests: New file.
4406         * modules/unictype/property-other-alphabetic-tests: New file.
4407         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
4408         * modules/unictype/property-other-grapheme-extend-tests: New file.
4409         * modules/unictype/property-other-id-continue-tests: New file.
4410         * modules/unictype/property-other-id-start-tests: New file.
4411         * modules/unictype/property-other-lowercase-tests: New file.
4412         * modules/unictype/property-other-math-tests: New file.
4413         * modules/unictype/property-other-uppercase-tests: New file.
4414         * modules/unictype/property-paired-punctuation-tests: New file.
4415         * modules/unictype/property-paragraph-separator-tests: New file.
4416         * modules/unictype/property-pattern-syntax-tests: New file.
4417         * modules/unictype/property-pattern-white-space-tests: New file.
4418         * modules/unictype/property-private-use-tests: New file.
4419         * modules/unictype/property-punctuation-tests: New file.
4420         * modules/unictype/property-quotation-mark-tests: New file.
4421         * modules/unictype/property-radical-tests: New file.
4422         * modules/unictype/property-sentence-terminal-tests: New file.
4423         * modules/unictype/property-soft-dotted-tests: New file.
4424         * modules/unictype/property-space-tests: New file.
4425         * modules/unictype/property-terminal-punctuation-tests: New file.
4426         * modules/unictype/property-test-tests: New file.
4427         * modules/unictype/property-titlecase-tests: New file.
4428         * modules/unictype/property-unassigned-code-value-tests: New file.
4429         * modules/unictype/property-unified-ideograph-tests: New file.
4430         * modules/unictype/property-uppercase-tests: New file.
4431         * modules/unictype/property-variation-selector-tests: New file.
4432         * modules/unictype/property-white-space-tests: New file.
4433         * modules/unictype/property-xid-continue-tests: New file.
4434         * modules/unictype/property-xid-start-tests: New file.
4435         * modules/unictype/property-zero-width-tests: New file.
4436         * modules/unictype/scripts-tests: New file.
4437         * modules/unictype/syntax-c-ident-tests: New file.
4438         * modules/unictype/syntax-c-whitespace-tests: New file.
4439         * modules/unictype/syntax-java-ident-tests: New file.
4440         * modules/unictype/syntax-java-whitespace-tests: New file.
4441         * tests/unictype/test-bidi_byname.c: New file.
4442         * tests/unictype/test-bidi_name.c: New file.
4443         * tests/unictype/test-bidi_of.c: New file.
4444         * tests/unictype/test-bidi_test.c: New file.
4445         * tests/unictype/test-block_list.c: New file.
4446         * tests/unictype/test-block_of.c: New file.
4447         * tests/unictype/test-block_test.c: New file.
4448         * tests/unictype/test-categ_and.c: New file.
4449         * tests/unictype/test-categ_and_not.c: New file.
4450         * tests/unictype/test-categ_byname.c: New file.
4451         * tests/unictype/test-categ_name.c: New file.
4452         * tests/unictype/test-categ_none.c: New file.
4453         * tests/unictype/test-categ_of.c: New file.
4454         * tests/unictype/test-categ_or.c: New file.
4455         * tests/unictype/test-categ_test_withtable.c: New file.
4456         * tests/unictype/test-combining.c: New file.
4457         * tests/unictype/test-decdigit.c: New file.
4458         * tests/unictype/test-digit.c: New file.
4459         * tests/unictype/test-mirror.c: New file.
4460         * tests/unictype/test-numeric.c: New file.
4461         * tests/unictype/test-pr_byname.c: New file.
4462         * tests/unictype/test-pr_test.c: New file.
4463         * tests/unictype/test-predicate-part1.h: New file.
4464         * tests/unictype/test-predicate-part2.h: New file.
4465         * tests/unictype/test-scripts.c: New file.
4466         * tests/unictype/test-sy_c_ident.c: New file.
4467         * tests/unictype/test-sy_java_ident.c: New file.
4468
4469         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
4470         for Unicode 5.0.0.
4471         * tests/unictype/test-categ_Cc.c: Likewise.
4472         * tests/unictype/test-categ_Cf.c: Likewise.
4473         * tests/unictype/test-categ_Cn.c: Likewise.
4474         * tests/unictype/test-categ_Co.c: Likewise.
4475         * tests/unictype/test-categ_Cs.c: Likewise.
4476         * tests/unictype/test-categ_L.c: Likewise.
4477         * tests/unictype/test-categ_Ll.c: Likewise.
4478         * tests/unictype/test-categ_Lm.c: Likewise.
4479         * tests/unictype/test-categ_Lo.c: Likewise.
4480         * tests/unictype/test-categ_Lt.c: Likewise.
4481         * tests/unictype/test-categ_Lu.c: Likewise.
4482         * tests/unictype/test-categ_M.c: Likewise.
4483         * tests/unictype/test-categ_Mc.c: Likewise.
4484         * tests/unictype/test-categ_Me.c: Likewise.
4485         * tests/unictype/test-categ_Mn.c: Likewise.
4486         * tests/unictype/test-categ_N.c: Likewise.
4487         * tests/unictype/test-categ_Nd.c: Likewise.
4488         * tests/unictype/test-categ_Nl.c: Likewise.
4489         * tests/unictype/test-categ_No.c: Likewise.
4490         * tests/unictype/test-categ_P.c: Likewise.
4491         * tests/unictype/test-categ_Pc.c: Likewise.
4492         * tests/unictype/test-categ_Pd.c: Likewise.
4493         * tests/unictype/test-categ_Pe.c: Likewise.
4494         * tests/unictype/test-categ_Pf.c: Likewise.
4495         * tests/unictype/test-categ_Pi.c: Likewise.
4496         * tests/unictype/test-categ_Po.c: Likewise.
4497         * tests/unictype/test-categ_Ps.c: Likewise.
4498         * tests/unictype/test-categ_S.c: Likewise.
4499         * tests/unictype/test-categ_Sc.c: Likewise.
4500         * tests/unictype/test-categ_Sk.c: Likewise.
4501         * tests/unictype/test-categ_Sm.c: Likewise.
4502         * tests/unictype/test-categ_So.c: Likewise.
4503         * tests/unictype/test-categ_Z.c: Likewise.
4504         * tests/unictype/test-categ_Zl.c: Likewise.
4505         * tests/unictype/test-categ_Zp.c: Likewise.
4506         * tests/unictype/test-categ_Zs.c: Likewise.
4507         * tests/unictype/test-ctype_alnum.c: Likewise.
4508         * tests/unictype/test-ctype_alpha.c: Likewise.
4509         * tests/unictype/test-ctype_blank.c: Likewise.
4510         * tests/unictype/test-ctype_cntrl.c: Likewise.
4511         * tests/unictype/test-ctype_digit.c: Likewise.
4512         * tests/unictype/test-ctype_graph.c: Likewise.
4513         * tests/unictype/test-ctype_lower.c: Likewise.
4514         * tests/unictype/test-ctype_print.c: Likewise.
4515         * tests/unictype/test-ctype_punct.c: Likewise.
4516         * tests/unictype/test-ctype_space.c: Likewise.
4517         * tests/unictype/test-ctype_upper.c: Likewise.
4518         * tests/unictype/test-ctype_xdigit.c: Likewise.
4519         * tests/unictype/test-decdigit.h: Likewise.
4520         * tests/unictype/test-digit.h: Likewise.
4521         * tests/unictype/test-numeric.h: Likewise.
4522         * tests/unictype/test-pr_alphabetic.c: Likewise.
4523         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
4524         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
4525         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
4526         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
4527         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
4528         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
4529         * tests/unictype/test-pr_bidi_control.c: Likewise.
4530         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
4531         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
4532         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
4533         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
4534         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
4535         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
4536         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
4537         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
4538         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
4539         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
4540         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
4541         * tests/unictype/test-pr_combining.c: Likewise.
4542         * tests/unictype/test-pr_composite.c: Likewise.
4543         * tests/unictype/test-pr_currency_symbol.c: Likewise.
4544         * tests/unictype/test-pr_dash.c: Likewise.
4545         * tests/unictype/test-pr_decimal_digit.c: Likewise.
4546         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
4547         * tests/unictype/test-pr_deprecated.c: Likewise.
4548         * tests/unictype/test-pr_diacritic.c: Likewise.
4549         * tests/unictype/test-pr_extender.c: Likewise.
4550         * tests/unictype/test-pr_format_control.c: Likewise.
4551         * tests/unictype/test-pr_grapheme_base.c: Likewise.
4552         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
4553         * tests/unictype/test-pr_grapheme_link.c: Likewise.
4554         * tests/unictype/test-pr_hex_digit.c: Likewise.
4555         * tests/unictype/test-pr_hyphen.c: Likewise.
4556         * tests/unictype/test-pr_id_continue.c: Likewise.
4557         * tests/unictype/test-pr_id_start.c: Likewise.
4558         * tests/unictype/test-pr_ideographic.c: Likewise.
4559         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
4560         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
4561         * tests/unictype/test-pr_ignorable_control.c: Likewise.
4562         * tests/unictype/test-pr_iso_control.c: Likewise.
4563         * tests/unictype/test-pr_join_control.c: Likewise.
4564         * tests/unictype/test-pr_left_of_pair.c: Likewise.
4565         * tests/unictype/test-pr_line_separator.c: Likewise.
4566         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
4567         * tests/unictype/test-pr_lowercase.c: Likewise.
4568         * tests/unictype/test-pr_math.c: Likewise.
4569         * tests/unictype/test-pr_non_break.c: Likewise.
4570         * tests/unictype/test-pr_not_a_character.c: Likewise.
4571         * tests/unictype/test-pr_numeric.c: Likewise.
4572         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
4573         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
4574         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
4575         * tests/unictype/test-pr_other_id_continue.c: Likewise.
4576         * tests/unictype/test-pr_other_id_start.c: Likewise.
4577         * tests/unictype/test-pr_other_lowercase.c: Likewise.
4578         * tests/unictype/test-pr_other_math.c: Likewise.
4579         * tests/unictype/test-pr_other_uppercase.c: Likewise.
4580         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
4581         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
4582         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
4583         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
4584         * tests/unictype/test-pr_private_use.c: Likewise.
4585         * tests/unictype/test-pr_punctuation.c: Likewise.
4586         * tests/unictype/test-pr_quotation_mark.c: Likewise.
4587         * tests/unictype/test-pr_radical.c: Likewise.
4588         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
4589         * tests/unictype/test-pr_soft_dotted.c: Likewise.
4590         * tests/unictype/test-pr_space.c: Likewise.
4591         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
4592         * tests/unictype/test-pr_titlecase.c: Likewise.
4593         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
4594         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
4595         * tests/unictype/test-pr_uppercase.c: Likewise.
4596         * tests/unictype/test-pr_variation_selector.c: Likewise.
4597         * tests/unictype/test-pr_white_space.c: Likewise.
4598         * tests/unictype/test-pr_xid_continue.c: Likewise.
4599         * tests/unictype/test-pr_xid_start.c: Likewise.
4600         * tests/unictype/test-pr_zero_width.c: Likewise.
4601         * tests/unictype/test-sy_c_whitespace.c: Likewise.
4602         * tests/unictype/test-sy_java_whitespace.c: Likewise.
4603
4604 2007-11-12  Bruno Haible  <bruno@clisp.org>
4605
4606         Unicode character classification functions.
4607         * lib/unictype.h: New file.
4608         * modules/unictype/base: New file.
4609         * modules/unictype/category-L: New file.
4610         * modules/unictype/category-Lu: New file.
4611         * modules/unictype/category-Ll: New file.
4612         * modules/unictype/category-Lt: New file.
4613         * modules/unictype/category-Lm: New file.
4614         * modules/unictype/category-Lo: New file.
4615         * modules/unictype/category-M: New file.
4616         * modules/unictype/category-Mn: New file.
4617         * modules/unictype/category-Mc: New file.
4618         * modules/unictype/category-Me: New file.
4619         * modules/unictype/category-N: New file.
4620         * modules/unictype/category-Nd: New file.
4621         * modules/unictype/category-Nl: New file.
4622         * modules/unictype/category-No: New file.
4623         * modules/unictype/category-P: New file.
4624         * modules/unictype/category-Pc: New file.
4625         * modules/unictype/category-Pd: New file.
4626         * modules/unictype/category-Ps: New file.
4627         * modules/unictype/category-Pe: New file.
4628         * modules/unictype/category-Pi: New file.
4629         * modules/unictype/category-Pf: New file.
4630         * modules/unictype/category-Po: New file.
4631         * modules/unictype/category-S: New file.
4632         * modules/unictype/category-Sm: New file.
4633         * modules/unictype/category-Sc: New file.
4634         * modules/unictype/category-Sk: New file.
4635         * modules/unictype/category-So: New file.
4636         * modules/unictype/category-Z: New file.
4637         * modules/unictype/category-Zs: New file.
4638         * modules/unictype/category-Zl: New file.
4639         * modules/unictype/category-Zp: New file.
4640         * modules/unictype/category-C: New file.
4641         * modules/unictype/category-Cc: New file.
4642         * modules/unictype/category-Cf: New file.
4643         * modules/unictype/category-Cs: New file.
4644         * modules/unictype/category-Co: New file.
4645         * modules/unictype/category-Cn: New file.
4646         * modules/unictype/category-or: New file.
4647         * modules/unictype/category-of: New file.
4648         * modules/unictype/category-test: New file.
4649         * modules/unictype/category-test-withtable: New file.
4650         * modules/unictype/category-byname: New file.
4651         * modules/unictype/category-none: New file.
4652         * modules/unictype/category-and: New file.
4653         * modules/unictype/category-and-not: New file.
4654         * modules/unictype/category-name: New file.
4655         * modules/unictype/combining-class: New file.
4656         * modules/unictype/category-all: New file.
4657         * modules/unictype/bidicategory-all: New file.
4658         * modules/unictype/bidicategory-byname: New file.
4659         * modules/unictype/bidicategory-name: New file.
4660         * modules/unictype/bidicategory-of: New file.
4661         * modules/unictype/bidicategory-test: New file.
4662         * modules/unictype/decimal-digit: New file.
4663         * modules/unictype/digit: New file.
4664         * modules/unictype/numeric: New file.
4665         * modules/unictype/mirror: New file.
4666         * modules/unictype/property-white-space: New file.
4667         * modules/unictype/property-alphabetic: New file.
4668         * modules/unictype/property-other-alphabetic: New file.
4669         * modules/unictype/property-not-a-character: New file.
4670         * modules/unictype/property-default-ignorable-code-point: New file.
4671         * modules/unictype/property-other-default-ignorable-code-point: New
4672         file.
4673         * modules/unictype/property-deprecated: New file.
4674         * modules/unictype/property-logical-order-exception: New file.
4675         * modules/unictype/property-variation-selector: New file.
4676         * modules/unictype/property-private-use: New file.
4677         * modules/unictype/property-unassigned-code-value: New file.
4678         * modules/unictype/property-uppercase: New file.
4679         * modules/unictype/property-other-uppercase: New file.
4680         * modules/unictype/property-lowercase: New file.
4681         * modules/unictype/property-other-lowercase: New file.
4682         * modules/unictype/property-titlecase: New file.
4683         * modules/unictype/property-soft-dotted: New file.
4684         * modules/unictype/property-id-start: New file.
4685         * modules/unictype/property-other-id-start: New file.
4686         * modules/unictype/property-id-continue: New file.
4687         * modules/unictype/property-other-id-continue: New file.
4688         * modules/unictype/property-xid-start: New file.
4689         * modules/unictype/property-xid-continue: New file.
4690         * modules/unictype/property-pattern-white-space: New file.
4691         * modules/unictype/property-pattern-syntax: New file.
4692         * modules/unictype/property-join-control: New file.
4693         * modules/unictype/property-grapheme-base: New file.
4694         * modules/unictype/property-grapheme-extend: New file.
4695         * modules/unictype/property-other-grapheme-extend: New file.
4696         * modules/unictype/property-grapheme-link: New file.
4697         * modules/unictype/property-bidi-control: New file.
4698         * modules/unictype/property-bidi-left-to-right: New file.
4699         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
4700         * modules/unictype/property-bidi-arabic-right-to-left: New file.
4701         * modules/unictype/property-bidi-european-digit: New file.
4702         * modules/unictype/property-bidi-eur-num-separator: New file.
4703         * modules/unictype/property-bidi-eur-num-terminator: New file.
4704         * modules/unictype/property-bidi-arabic-digit: New file.
4705         * modules/unictype/property-bidi-common-separator: New file.
4706         * modules/unictype/property-bidi-block-separator: New file.
4707         * modules/unictype/property-bidi-segment-separator: New file.
4708         * modules/unictype/property-bidi-whitespace: New file.
4709         * modules/unictype/property-bidi-non-spacing-mark: New file.
4710         * modules/unictype/property-bidi-boundary-neutral: New file.
4711         * modules/unictype/property-bidi-pdf: New file.
4712         * modules/unictype/property-bidi-embedding-or-override: New file.
4713         * modules/unictype/property-bidi-other-neutral: New file.
4714         * modules/unictype/property-hex-digit: New file.
4715         * modules/unictype/property-ascii-hex-digit: New file.
4716         * modules/unictype/property-ideographic: New file.
4717         * modules/unictype/property-unified-ideograph: New file.
4718         * modules/unictype/property-radical: New file.
4719         * modules/unictype/property-ids-binary-operator: New file.
4720         * modules/unictype/property-ids-trinary-operator: New file.
4721         * modules/unictype/property-zero-width: New file.
4722         * modules/unictype/property-space: New file.
4723         * modules/unictype/property-non-break: New file.
4724         * modules/unictype/property-iso-control: New file.
4725         * modules/unictype/property-format-control: New file.
4726         * modules/unictype/property-dash: New file.
4727         * modules/unictype/property-hyphen: New file.
4728         * modules/unictype/property-punctuation: New file.
4729         * modules/unictype/property-line-separator: New file.
4730         * modules/unictype/property-paragraph-separator: New file.
4731         * modules/unictype/property-quotation-mark: New file.
4732         * modules/unictype/property-sentence-terminal: New file.
4733         * modules/unictype/property-terminal-punctuation: New file.
4734         * modules/unictype/property-currency-symbol: New file.
4735         * modules/unictype/property-math: New file.
4736         * modules/unictype/property-other-math: New file.
4737         * modules/unictype/property-paired-punctuation: New file.
4738         * modules/unictype/property-left-of-pair: New file.
4739         * modules/unictype/property-combining: New file.
4740         * modules/unictype/property-composite: New file.
4741         * modules/unictype/property-decimal-digit: New file.
4742         * modules/unictype/property-numeric: New file.
4743         * modules/unictype/property-diacritic: New file.
4744         * modules/unictype/property-extender: New file.
4745         * modules/unictype/property-ignorable-control: New file.
4746         * modules/unictype/property-test: New file.
4747         * modules/unictype/property-byname: New file.
4748         * modules/unictype/property-all: New file.
4749         * modules/unictype/scripts: New file.
4750         * modules/unictype/scripts-all: New file.
4751         * modules/unictype/block-of: New file.
4752         * modules/unictype/block-test: New file.
4753         * modules/unictype/block-list: New file.
4754         * modules/unictype/block-all: New file.
4755         * modules/unictype/syntax-c-whitespace: New file.
4756         * modules/unictype/syntax-java-whitespace: New file.
4757         * modules/unictype/syntax-c-ident: New file.
4758         * modules/unictype/syntax-java-ident: New file.
4759         * modules/unictype/ctype-alnum: New file.
4760         * modules/unictype/ctype-alpha: New file.
4761         * modules/unictype/ctype-cntrl: New file.
4762         * modules/unictype/ctype-digit: New file.
4763         * modules/unictype/ctype-graph: New file.
4764         * modules/unictype/ctype-lower: New file.
4765         * modules/unictype/ctype-print: New file.
4766         * modules/unictype/ctype-punct: New file.
4767         * modules/unictype/ctype-space: New file.
4768         * modules/unictype/ctype-upper: New file.
4769         * modules/unictype/ctype-xdigit: New file.
4770         * modules/unictype/ctype-blank: New file.
4771         * lib/unictype/bidi_byname.c: New file.
4772         * lib/unictype/bidi_name.c: New file.
4773         * lib/unictype/bidi_of.c: New file.
4774         * lib/unictype/bidi_test.c: New file.
4775         * lib/unictype/bitmap.h: New file.
4776         * lib/unictype/block_test.c: New file.
4777         * lib/unictype/blocks.c: New file.
4778         * lib/unictype/categ_C.c: New file.
4779         * lib/unictype/categ_Cc.c: New file.
4780         * lib/unictype/categ_Cf.c: New file.
4781         * lib/unictype/categ_Cn.c: New file.
4782         * lib/unictype/categ_Co.c: New file.
4783         * lib/unictype/categ_Cs.c: New file.
4784         * lib/unictype/categ_L.c: New file.
4785         * lib/unictype/categ_Ll.c: New file.
4786         * lib/unictype/categ_Lm.c: New file.
4787         * lib/unictype/categ_Lo.c: New file.
4788         * lib/unictype/categ_Lt.c: New file.
4789         * lib/unictype/categ_Lu.c: New file.
4790         * lib/unictype/categ_M.c: New file.
4791         * lib/unictype/categ_Mc.c: New file.
4792         * lib/unictype/categ_Me.c: New file.
4793         * lib/unictype/categ_Mn.c: New file.
4794         * lib/unictype/categ_N.c: New file.
4795         * lib/unictype/categ_Nd.c: New file.
4796         * lib/unictype/categ_Nl.c: New file.
4797         * lib/unictype/categ_No.c: New file.
4798         * lib/unictype/categ_P.c: New file.
4799         * lib/unictype/categ_Pc.c: New file.
4800         * lib/unictype/categ_Pd.c: New file.
4801         * lib/unictype/categ_Pe.c: New file.
4802         * lib/unictype/categ_Pf.c: New file.
4803         * lib/unictype/categ_Pi.c: New file.
4804         * lib/unictype/categ_Po.c: New file.
4805         * lib/unictype/categ_Ps.c: New file.
4806         * lib/unictype/categ_S.c: New file.
4807         * lib/unictype/categ_Sc.c: New file.
4808         * lib/unictype/categ_Sk.c: New file.
4809         * lib/unictype/categ_Sm.c: New file.
4810         * lib/unictype/categ_So.c: New file.
4811         * lib/unictype/categ_Z.c: New file.
4812         * lib/unictype/categ_Zl.c: New file.
4813         * lib/unictype/categ_Zp.c: New file.
4814         * lib/unictype/categ_Zs.c: New file.
4815         * lib/unictype/categ_and.c: New file.
4816         * lib/unictype/categ_and_not.c: New file.
4817         * lib/unictype/categ_byname.c: New file.
4818         * lib/unictype/categ_name.c: New file.
4819         * lib/unictype/categ_none.c: New file.
4820         * lib/unictype/categ_of.c: New file.
4821         * lib/unictype/categ_or.c: New file.
4822         * lib/unictype/categ_test.c: New file.
4823         * lib/unictype/combining.c: New file.
4824         * lib/unictype/ctype_alnum.c: New file.
4825         * lib/unictype/ctype_alpha.c: New file.
4826         * lib/unictype/ctype_blank.c: New file.
4827         * lib/unictype/ctype_cntrl.c: New file.
4828         * lib/unictype/ctype_digit.c: New file.
4829         * lib/unictype/ctype_graph.c: New file.
4830         * lib/unictype/ctype_lower.c: New file.
4831         * lib/unictype/ctype_print.c: New file.
4832         * lib/unictype/ctype_punct.c: New file.
4833         * lib/unictype/ctype_space.c: New file.
4834         * lib/unictype/ctype_upper.c: New file.
4835         * lib/unictype/ctype_xdigit.c: New file.
4836         * lib/unictype/decdigit.c: New file.
4837         * lib/unictype/digit.c: New file.
4838         * lib/unictype/identsyntaxmap.h: New file.
4839         * lib/unictype/mirror.c: New file.
4840         * lib/unictype/numeric.c: New file.
4841         * lib/unictype/pr_alphabetic.c: New file.
4842         * lib/unictype/pr_ascii_hex_digit.c: New file.
4843         * lib/unictype/pr_bidi_arabic_digit.c: New file.
4844         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
4845         * lib/unictype/pr_bidi_block_separator.c: New file.
4846         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
4847         * lib/unictype/pr_bidi_common_separator.c: New file.
4848         * lib/unictype/pr_bidi_control.c: New file.
4849         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
4850         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
4851         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
4852         * lib/unictype/pr_bidi_european_digit.c: New file.
4853         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
4854         * lib/unictype/pr_bidi_left_to_right.c: New file.
4855         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
4856         * lib/unictype/pr_bidi_other_neutral.c: New file.
4857         * lib/unictype/pr_bidi_pdf.c: New file.
4858         * lib/unictype/pr_bidi_segment_separator.c: New file.
4859         * lib/unictype/pr_bidi_whitespace.c: New file.
4860         * lib/unictype/pr_byname.c: New file.
4861         * lib/unictype/pr_byname.gperf: New file.
4862         * lib/unictype/pr_combining.c: New file.
4863         * lib/unictype/pr_composite.c: New file.
4864         * lib/unictype/pr_currency_symbol.c: New file.
4865         * lib/unictype/pr_dash.c: New file.
4866         * lib/unictype/pr_decimal_digit.c: New file.
4867         * lib/unictype/pr_default_ignorable_code_point.c: New file.
4868         * lib/unictype/pr_deprecated.c: New file.
4869         * lib/unictype/pr_diacritic.c: New file.
4870         * lib/unictype/pr_extender.c: New file.
4871         * lib/unictype/pr_format_control.c: New file.
4872         * lib/unictype/pr_grapheme_base.c: New file.
4873         * lib/unictype/pr_grapheme_extend.c: New file.
4874         * lib/unictype/pr_grapheme_link.c: New file.
4875         * lib/unictype/pr_hex_digit.c: New file.
4876         * lib/unictype/pr_hyphen.c: New file.
4877         * lib/unictype/pr_id_continue.c: New file.
4878         * lib/unictype/pr_id_start.c: New file.
4879         * lib/unictype/pr_ideographic.c: New file.
4880         * lib/unictype/pr_ids_binary_operator.c: New file.
4881         * lib/unictype/pr_ids_trinary_operator.c: New file.
4882         * lib/unictype/pr_ignorable_control.c: New file.
4883         * lib/unictype/pr_iso_control.c: New file.
4884         * lib/unictype/pr_join_control.c: New file.
4885         * lib/unictype/pr_left_of_pair.c: New file.
4886         * lib/unictype/pr_line_separator.c: New file.
4887         * lib/unictype/pr_logical_order_exception.c: New file.
4888         * lib/unictype/pr_lowercase.c: New file.
4889         * lib/unictype/pr_math.c: New file.
4890         * lib/unictype/pr_non_break.c: New file.
4891         * lib/unictype/pr_not_a_character.c: New file.
4892         * lib/unictype/pr_numeric.c: New file.
4893         * lib/unictype/pr_other_alphabetic.c: New file.
4894         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
4895         * lib/unictype/pr_other_grapheme_extend.c: New file.
4896         * lib/unictype/pr_other_id_continue.c: New file.
4897         * lib/unictype/pr_other_id_start.c: New file.
4898         * lib/unictype/pr_other_lowercase.c: New file.
4899         * lib/unictype/pr_other_math.c: New file.
4900         * lib/unictype/pr_other_uppercase.c: New file.
4901         * lib/unictype/pr_paired_punctuation.c: New file.
4902         * lib/unictype/pr_paragraph_separator.c: New file.
4903         * lib/unictype/pr_pattern_syntax.c: New file.
4904         * lib/unictype/pr_pattern_white_space.c: New file.
4905         * lib/unictype/pr_private_use.c: New file.
4906         * lib/unictype/pr_punctuation.c: New file.
4907         * lib/unictype/pr_quotation_mark.c: New file.
4908         * lib/unictype/pr_radical.c: New file.
4909         * lib/unictype/pr_sentence_terminal.c: New file.
4910         * lib/unictype/pr_soft_dotted.c: New file.
4911         * lib/unictype/pr_space.c: New file.
4912         * lib/unictype/pr_terminal_punctuation.c: New file.
4913         * lib/unictype/pr_test.c: New file.
4914         * lib/unictype/pr_titlecase.c: New file.
4915         * lib/unictype/pr_unassigned_code_value.c: New file.
4916         * lib/unictype/pr_unified_ideograph.c: New file.
4917         * lib/unictype/pr_uppercase.c: New file.
4918         * lib/unictype/pr_variation_selector.c: New file.
4919         * lib/unictype/pr_white_space.c: New file.
4920         * lib/unictype/pr_xid_continue.c: New file.
4921         * lib/unictype/pr_xid_start.c: New file.
4922         * lib/unictype/pr_zero_width.c: New file.
4923         * lib/unictype/scripts.c: New file.
4924         * lib/unictype/sy_c_ident.c: New file.
4925         * lib/unictype/sy_c_whitespace.c: New file.
4926         * lib/unictype/sy_java_ident.c: New file.
4927         * lib/unictype/sy_java_whitespace.c: New file.
4928
4929         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
4930         Unicode 5.0.0.
4931         * lib/unictype/blocks.h: Likewise.
4932         * lib/unictype/categ_C.h: Likewise.
4933         * lib/unictype/categ_Cc.h: Likewise.
4934         * lib/unictype/categ_Cf.h: Likewise.
4935         * lib/unictype/categ_Cn.h: Likewise.
4936         * lib/unictype/categ_Co.h: Likewise.
4937         * lib/unictype/categ_Cs.h: Likewise.
4938         * lib/unictype/categ_L.h: Likewise.
4939         * lib/unictype/categ_Ll.h: Likewise.
4940         * lib/unictype/categ_Lm.h: Likewise.
4941         * lib/unictype/categ_Lo.h: Likewise.
4942         * lib/unictype/categ_Lt.h: Likewise.
4943         * lib/unictype/categ_Lu.h: Likewise.
4944         * lib/unictype/categ_M.h: Likewise.
4945         * lib/unictype/categ_Mc.h: Likewise.
4946         * lib/unictype/categ_Me.h: Likewise.
4947         * lib/unictype/categ_Mn.h: Likewise.
4948         * lib/unictype/categ_N.h: Likewise.
4949         * lib/unictype/categ_Nd.h: Likewise.
4950         * lib/unictype/categ_Nl.h: Likewise.
4951         * lib/unictype/categ_No.h: Likewise.
4952         * lib/unictype/categ_P.h: Likewise.
4953         * lib/unictype/categ_Pc.h: Likewise.
4954         * lib/unictype/categ_Pd.h: Likewise.
4955         * lib/unictype/categ_Pe.h: Likewise.
4956         * lib/unictype/categ_Pf.h: Likewise.
4957         * lib/unictype/categ_Pi.h: Likewise.
4958         * lib/unictype/categ_Po.h: Likewise.
4959         * lib/unictype/categ_Ps.h: Likewise.
4960         * lib/unictype/categ_S.h: Likewise.
4961         * lib/unictype/categ_Sc.h: Likewise.
4962         * lib/unictype/categ_Sk.h: Likewise.
4963         * lib/unictype/categ_Sm.h: Likewise.
4964         * lib/unictype/categ_So.h: Likewise.
4965         * lib/unictype/categ_Z.h: Likewise.
4966         * lib/unictype/categ_Zl.h: Likewise.
4967         * lib/unictype/categ_Zp.h: Likewise.
4968         * lib/unictype/categ_Zs.h: Likewise.
4969         * lib/unictype/categ_of.h: Likewise.
4970         * lib/unictype/combining.h: Likewise.
4971         * lib/unictype/ctype_alnum.h: Likewise.
4972         * lib/unictype/ctype_alpha.h: Likewise.
4973         * lib/unictype/ctype_blank.h: Likewise.
4974         * lib/unictype/ctype_cntrl.h: Likewise.
4975         * lib/unictype/ctype_digit.h: Likewise.
4976         * lib/unictype/ctype_graph.h: Likewise.
4977         * lib/unictype/ctype_lower.h: Likewise.
4978         * lib/unictype/ctype_print.h: Likewise.
4979         * lib/unictype/ctype_punct.h: Likewise.
4980         * lib/unictype/ctype_space.h: Likewise.
4981         * lib/unictype/ctype_upper.h: Likewise.
4982         * lib/unictype/ctype_xdigit.h: Likewise.
4983         * lib/unictype/decdigit.h: Likewise.
4984         * lib/unictype/digit.h: Likewise.
4985         * lib/unictype/mirror.h: Likewise.
4986         * lib/unictype/numeric.h: Likewise.
4987         * lib/unictype/pr_alphabetic.h: Likewise.
4988         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
4989         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
4990         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
4991         * lib/unictype/pr_bidi_block_separator.h: Likewise.
4992         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
4993         * lib/unictype/pr_bidi_common_separator.h: Likewise.
4994         * lib/unictype/pr_bidi_control.h: Likewise.
4995         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
4996         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
4997         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
4998         * lib/unictype/pr_bidi_european_digit.h: Likewise.
4999         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5000         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5001         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5002         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5003         * lib/unictype/pr_bidi_pdf.h: Likewise.
5004         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
5005         * lib/unictype/pr_bidi_whitespace.h: Likewise.
5006         * lib/unictype/pr_combining.h: Likewise.
5007         * lib/unictype/pr_composite.h: Likewise.
5008         * lib/unictype/pr_currency_symbol.h: Likewise.
5009         * lib/unictype/pr_dash.h: Likewise.
5010         * lib/unictype/pr_decimal_digit.h: Likewise.
5011         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
5012         * lib/unictype/pr_deprecated.h: Likewise.
5013         * lib/unictype/pr_diacritic.h: Likewise.
5014         * lib/unictype/pr_extender.h: Likewise.
5015         * lib/unictype/pr_format_control.h: Likewise.
5016         * lib/unictype/pr_grapheme_base.h: Likewise.
5017         * lib/unictype/pr_grapheme_extend.h: Likewise.
5018         * lib/unictype/pr_grapheme_link.h: Likewise.
5019         * lib/unictype/pr_hex_digit.h: Likewise.
5020         * lib/unictype/pr_hyphen.h: Likewise.
5021         * lib/unictype/pr_id_continue.h: Likewise.
5022         * lib/unictype/pr_id_start.h: Likewise.
5023         * lib/unictype/pr_ideographic.h: Likewise.
5024         * lib/unictype/pr_ids_binary_operator.h: Likewise.
5025         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
5026         * lib/unictype/pr_ignorable_control.h: Likewise.
5027         * lib/unictype/pr_iso_control.h: Likewise.
5028         * lib/unictype/pr_join_control.h: Likewise.
5029         * lib/unictype/pr_left_of_pair.h: Likewise.
5030         * lib/unictype/pr_line_separator.h: Likewise.
5031         * lib/unictype/pr_logical_order_exception.h: Likewise.
5032         * lib/unictype/pr_lowercase.h: Likewise.
5033         * lib/unictype/pr_math.h: Likewise.
5034         * lib/unictype/pr_non_break.h: Likewise.
5035         * lib/unictype/pr_not_a_character.h: Likewise.
5036         * lib/unictype/pr_numeric.h: Likewise.
5037         * lib/unictype/pr_other_alphabetic.h: Likewise.
5038         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
5039         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
5040         * lib/unictype/pr_other_id_continue.h: Likewise.
5041         * lib/unictype/pr_other_id_start.h: Likewise.
5042         * lib/unictype/pr_other_lowercase.h: Likewise.
5043         * lib/unictype/pr_other_math.h: Likewise.
5044         * lib/unictype/pr_other_uppercase.h: Likewise.
5045         * lib/unictype/pr_paired_punctuation.h: Likewise.
5046         * lib/unictype/pr_paragraph_separator.h: Likewise.
5047         * lib/unictype/pr_pattern_syntax.h: Likewise.
5048         * lib/unictype/pr_pattern_white_space.h: Likewise.
5049         * lib/unictype/pr_private_use.h: Likewise.
5050         * lib/unictype/pr_punctuation.h: Likewise.
5051         * lib/unictype/pr_quotation_mark.h: Likewise.
5052         * lib/unictype/pr_radical.h: Likewise.
5053         * lib/unictype/pr_sentence_terminal.h: Likewise.
5054         * lib/unictype/pr_soft_dotted.h: Likewise.
5055         * lib/unictype/pr_space.h: Likewise.
5056         * lib/unictype/pr_terminal_punctuation.h: Likewise.
5057         * lib/unictype/pr_titlecase.h: Likewise.
5058         * lib/unictype/pr_unassigned_code_value.h: Likewise.
5059         * lib/unictype/pr_unified_ideograph.h: Likewise.
5060         * lib/unictype/pr_uppercase.h: Likewise.
5061         * lib/unictype/pr_variation_selector.h: Likewise.
5062         * lib/unictype/pr_white_space.h: Likewise.
5063         * lib/unictype/pr_xid_continue.h: Likewise.
5064         * lib/unictype/pr_xid_start.h: Likewise.
5065         * lib/unictype/pr_zero_width.h: Likewise.
5066         * lib/unictype/scripts.h: Likewise.
5067         * lib/unictype/scripts_byname.gperf: Likewise.
5068         * lib/unictype/sy_c_ident.h: Likewise.
5069         * lib/unictype/sy_c_whitespace.h: Likewise.
5070         * lib/unictype/sy_java_ident.h: Likewise.
5071         * lib/unictype/sy_java_whitespace.h: Likewise.
5072
5073         * lib/unictype/Makefile: New file.
5074         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
5075         glibc.
5076         * lib/unictype/3level.h: New file, copied from glibc.
5077         * lib/unictype/3levelbit.h: New file.
5078
5079 2007-11-11  Bruno Haible  <bruno@clisp.org>
5080
5081         * modules/gperf: New file.
5082         * modules/iconv_open (Depends-on): Add it.
5083         (Makefile.am): Remove the GPERF definition.
5084
5085 2007-11-11  Bruno Haible  <bruno@clisp.org>
5086
5087         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
5088         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
5089
5090 2007-11-11  Bruno Haible  <bruno@clisp.org>
5091
5092         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
5093         (usage): Remove function.
5094
5095 2007-11-11  Bruno Haible  <bruno@clisp.org>
5096
5097         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
5098         gl_FUNC_CEILF_LIBS.
5099         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
5100         gl_FUNC_CEIL_LIBS.
5101         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
5102         gl_FUNC_CEILL_LIBS.
5103         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
5104         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
5105         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
5106
5107 2007-11-11  Bruno Haible  <bruno@clisp.org>
5108
5109         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
5110         roundf were declared but do not exist on functions.
5111         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
5112         roundl were declared but do not exist on functions.
5113         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
5114         HAVE_FLOORL_AND_CEILL, respectively.
5115         Needed for Sun C on Solaris 10.
5116
5117 2007-11-11  Bruno Haible  <bruno@clisp.org>
5118
5119         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
5120         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
5121         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
5122         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
5123         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
5124         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
5125         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
5126         HAVE_DECL_ROUNDF.
5127         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
5128         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
5129         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
5130         of HAVE_DECL_ROUND*.
5131         * modules/math (Makefile.am): Update.
5132
5133 2007-11-10  Bruno Haible  <bruno@clisp.org>
5134
5135         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
5136         ptrdiff_t as m4/intl.m4.
5137
5138 2007-11-10  Jim Meyering  <meyering@redhat.com>
5139
5140         Avoid link failure for the argmatch test.
5141         * tests/test-argmatch.c (usage): Define function to avoid a link
5142         failure: argmatch_die requires a usage function.
5143
5144 2007-11-09  Bruno Haible  <bruno@clisp.org>
5145
5146         * doc/functions/snprintf.texi: Mention BeOS deficiency.
5147         * doc/functions/vsnprintf.texi: Likewise.
5148         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
5149         with a size argument < 2.
5150
5151 2007-11-09  Bruno Haible  <bruno@clisp.org>
5152
5153         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
5154         buffer. Fixes an inefficiency introduced on 2007-11-03.
5155
5156 2007-11-09  Bruno Haible  <bruno@clisp.org>
5157
5158         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
5159         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
5160
5161 2007-11-08  Jim Meyering  <meyering@redhat.com>
5162
5163         Change cache variable name prefix "jm_" to "gl_" everywhere.
5164         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
5165         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
5166         * m4/uptime.m4: s/gl_/jm_/
5167
5168 2007-11-07  Bruno Haible  <bruno@clisp.org>
5169
5170         Update to GNU gettext 0.17.
5171         * m4/intl.m4: Update to GNU gettext 0.17.
5172         * m4/po.m4: Likewise.
5173         * modules/gettext (Files): Remove m4/ulonglong.m4.
5174         (configure.ac): Require gettext infrastructure from version 0.17.
5175
5176 2007-11-06  Bruno Haible  <bruno@clisp.org>
5177
5178         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
5179         symbolic values are not defined in a public header.
5180         * lib/freadable.c (freadable) [QNX]: Likewise.
5181         * lib/freadahead.c (freadahead) [QNX]: Likewise.
5182         * lib/freading.c (freading) [QNX]: Likewise.
5183         * lib/fseterr.c (fseterr) [QNX]: Likewise.
5184         * lib/fwritable.c (fwritable) [QNX]: Likewise.
5185         * lib/fwriting.c (fwriting) [QNX]: Likewise.
5186         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
5187         Reported by Alain Magloire.
5188
5189         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
5190
5191 2007-11-05  Bruno Haible  <bruno@clisp.org>
5192
5193         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
5194         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
5195         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
5196         Reported by Eric Blake.
5197
5198 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5199             Bruno Haible  <bruno@clisp.org>
5200
5201         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
5202         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
5203         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
5204         (malloc): Undefine also before including <stdlib.h>.
5205         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
5206         Needed on OSF/1 4.0.
5207
5208 2007-11-05  Jim Meyering  <meyering@redhat.com>
5209
5210         git-version-gen: sync from coreutils.
5211         * build-aux/git-version-gen: Add comments.
5212         Change the first '-' to '.' in the snapshot version string,
5213         e.g., 6.9-377-08144 -> 6.9.377-08144
5214         Remove first parameter.
5215         Don't declare a version "-dirty" merely because a time
5216         stamp has changed.
5217
5218 2007-11-04  Bruno Haible  <bruno@clisp.org>
5219
5220         * lib/lock.h: Protect all macro definitions containing an 'if'
5221         statement through a "do { ... } while (0)".
5222         * lib/tls.h: Likewise.
5223
5224 2007-11-04  Bruno Haible  <bruno@clisp.org>
5225
5226         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
5227
5228 2007-11-04  Bruno Haible  <bruno@clisp.org>
5229
5230         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
5231         * modules/fprintf-posix (Depends-on): Add nocrash.
5232         * modules/snprintf-posix (Depends-on): Likewise.
5233         * modules/sprintf-posix (Depends-on): Likewise.
5234         * modules/vasnprintf-posix (Depends-on): Likewise.
5235         * modules/vasprintf-posix (Depends-on): Likewise.
5236         * modules/vfprintf-posix (Depends-on): Likewise.
5237         * modules/vsnprintf-posix (Depends-on): Likewise.
5238         * modules/vsprintf-posix (Depends-on): Likewise.
5239         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
5240         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
5241         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
5242         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
5243         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
5244         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
5245         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
5246
5247 2007-11-04  Bruno Haible  <bruno@clisp.org>
5248
5249         * modules/nocrash: New file.
5250         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
5251         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
5252
5253 2007-11-04  Bruno Haible  <bruno@clisp.org>
5254
5255         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
5256         precision handling.
5257         * tests/test-vasprintf-posix.c (test_function): Likewise.
5258         * tests/test-snprintf-posix.h (test_function): Likewise.
5259         * tests/test-sprintf-posix.h (test_function): Likewise.
5260
5261         Fix *printf behaviour for large precisions on mingw and BeOS.
5262         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
5263         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
5264         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
5265         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
5266         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
5267         gl_PRINTF_PRECISION and test its result. Invoke
5268         gl_PREREQ_VASNPRINTF_PRECISION.
5269         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5270         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5271         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5272         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5273         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5274         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5275         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5276         * doc/functions/fprintf.texi: Update.
5277         * doc/functions/printf.texi: Update.
5278         * doc/functions/snprintf.texi: Update.
5279         * doc/functions/sprintf.texi: Update.
5280         * doc/functions/vfprintf.texi: Update.
5281         * doc/functions/vprintf.texi: Update.
5282         * doc/functions/vsnprintf.texi: Update.
5283         * doc/functions/vsprintf.texi: Update.
5284
5285 2007-11-04  Bruno Haible  <bruno@clisp.org>
5286
5287         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
5288
5289 2007-11-04  Bruno Haible  <bruno@clisp.org>
5290
5291         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
5292         Reported by Sylvain Beucler <beuc@gnu.org>.
5293
5294 2007-11-03  Bruno Haible  <bruno@clisp.org>
5295
5296         * tests/test-fprintf-posix2.sh: New file.
5297         * tests/test-fprintf-posix2.c: New file.
5298         * modules/fprintf-posix-tests (Files): Add them.
5299         (TESTS): Add test-fprintf-posix2.sh.
5300         (configure.ac): Check for getrlimit and setrlimit.
5301         (check_PROGRAMS): Add test-fprintf-posix2.
5302
5303         * tests/test-printf-posix2.sh: New file.
5304         * tests/test-printf-posix2.c: New file.
5305         * modules/printf-posix-tests (Files): Add them.
5306         (TESTS): Add test-printf-posix2.sh.
5307         (configure.ac): Check for getrlimit and setrlimit.
5308         (check_PROGRAMS): Add test-printf-posix2.
5309
5310         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
5311         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
5312         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
5313         (decode_double): New function, copied from decode_long_double.
5314         (scale10_round_decimal_decoded): New function, extracted from
5315         scale10_round_decimal_long_double.
5316         (scale10_round_decimal_long_double): Use it.
5317         (scale10_round_decimal_double): New function.
5318         (floorlog10): New function.
5319         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
5320         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
5321         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
5322         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
5323         gl_PRINTF_ENOMEM and test its result. Invoke
5324         gl_PREREQ_VASNPRINTF_ENOMEM.
5325         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5326         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5327         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5328         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5329         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5330         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5331         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5332         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
5333         * modules/snprintf-posix (Depends-on): Likewise.
5334         * modules/sprintf-posix (Depends-on): Likewise.
5335         * modules/vasnprintf-posix (Depends-on): Likewise.
5336         * modules/vasprintf-posix (Depends-on): Likewise.
5337         * modules/vfprintf-posix (Depends-on): Likewise.
5338         * modules/vsnprintf-posix (Depends-on): Likewise.
5339         * modules/vsprintf-posix (Depends-on): Likewise.
5340         * doc/functions/fprintf.texi: Update.
5341         * doc/functions/printf.texi: Update.
5342         * doc/functions/snprintf.texi: Update.
5343         * doc/functions/sprintf.texi: Update.
5344         * doc/functions/vfprintf.texi: Update.
5345         * doc/functions/vprintf.texi: Update.
5346         * doc/functions/vsnprintf.texi: Update.
5347         * doc/functions/vsprintf.texi: Update.
5348
5349 2007-11-03  Bruno Haible  <bruno@clisp.org>
5350
5351         * modules/frexp-nolibm-tests: New file.
5352
5353         * modules/frexp-nolibm: New file.
5354         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
5355
5356 2007-11-03  Bruno Haible  <bruno@clisp.org>
5357
5358         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
5359         value is C99 compliant.
5360         Needed for OSF/1 5.1.
5361
5362 2007-11-03  Bruno Haible  <bruno@clisp.org>
5363
5364         Fix out-of-memory handling of vasnprintf.
5365         * lib/printf-parse.c: Include <errno.h>.
5366         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
5367         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
5368         is already set.
5369
5370 2007-11-02  Eric Blake  <ebb9@byu.net>
5371
5372         Fix tests on cygwin.
5373         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
5374
5375 2007-11-01  Bruno Haible  <bruno@clisp.org>
5376
5377         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
5378         warning.
5379         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
5380         needed for POSIX compatibility.
5381
5382 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5383
5384         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
5385         for compatibility with GNU.
5386
5387 2007-11-01  Bruno Haible  <bruno@clisp.org>
5388
5389         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
5390         (putenv): Renamed from rpl_putenv. Change argument type from
5391         'const char *' to 'char *'.
5392         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
5393         of defining putenv in config.h, just set REPLACE_PUTENV.
5394         * modules/putenv (Depends-on): Add stdlib.
5395         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5396         (Include): Use <stdlib.h>.
5397         * lib/stdlib.in.h (putenv): New declaration.
5398         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
5399         REPLACE_PUTENV.
5400         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
5401         REPLACE_PUTENV.
5402         Needed for MacOS X 10.5.0.
5403         Reported by Peter O'Gorman <peter@pogma.com>.
5404
5405 2007-11-01  Jim Meyering  <meyering@redhat.com>
5406
5407         Treat an empty date string exactly like "0".
5408         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
5409         if the remaining date string (to be parsed) is empty, use "0".
5410         Reported by Mischa Molhoek and discussed in this thread:
5411         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
5412
5413 2007-10-31  Bruno Haible  <bruno@clisp.org>
5414
5415         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
5416         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
5417         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
5418         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
5419         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
5420         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
5421
5422 2007-10-31  Bruno Haible  <bruno@clisp.org>
5423
5424         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
5425         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
5426         (AC_TYPE_LONG_LONG_INT): Use it.
5427         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
5428         it as well.
5429         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
5430         to m4/longlong.m4.
5431         * modules/stdint (Files): Remove m4/ulonglong.m4.
5432         * modules/strtoull (Files): Use m4/longlong.m4 instead of
5433         m4/ulonglong.m4.
5434         * modules/strtoumax (Files): Likewise.
5435
5436 2007-10-30  Bruno Haible  <bruno@clisp.org>
5437
5438         * modules/xvasprintf-posix: New file.
5439         Suggested by Eric Blake.
5440
5441 2007-10-30  Bruno Haible  <bruno@clisp.org>
5442
5443         * modules/xprintf-posix-tests: New file.
5444         * tests/test-xprintf-posix.sh: New file.
5445         * tests/test-xprintf-posix.c: New file.
5446         * tests/test-xfprintf-posix.c: New file.
5447
5448         * modules/xprintf-posix: New file.
5449
5450 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5451
5452         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
5453         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
5454         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
5455
5456 2007-10-29  Bruno Haible  <bruno@clisp.org>
5457
5458         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
5459         contain the special marker '_cv_'.
5460         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
5461         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
5462         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
5463         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
5464         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
5465         Reported by Ralf Wildenhues.
5466
5467 2007-10-29  Bruno Haible  <bruno@clisp.org>
5468
5469         * gnulib-tool (func_import): When --lgpl is not specified, set
5470         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
5471         GPLv3.
5472         Reported by Simon Josefsson.
5473
5474 2007-10-28  Bruno Haible  <bruno@clisp.org>
5475
5476         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
5477         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
5478         HAVE_DECL_ISFINITE.
5479         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
5480         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
5481         HAVE_DECL_ISFINITE.
5482
5483 2007-10-28  Bruno Haible  <bruno@clisp.org>
5484
5485         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
5486         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
5487
5488 2007-10-28  Bruno Haible  <bruno@clisp.org>
5489
5490         Fix link errors with Sun C 5.0 on Solaris 10.
5491         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
5492         function is declared but not present in the compiler's libm.
5493         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
5494         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5495         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
5496         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
5497         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
5498         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
5499         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
5500         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
5501         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
5502         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
5503         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
5504         HAVE_DECL_FLOORL.
5505
5506 2007-10-28  Bruno Haible  <bruno@clisp.org>
5507
5508         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
5509         gl_FUNC_FLOORL. Cache the result.
5510         (gl_FUNC_FLOORL): Use it.
5511         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
5512         gl_FUNC_CEILL. Cache the result.
5513         (gl_FUNC_CEILL): Use it.
5514
5515         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
5516         gl_FUNC_FLOOR. Cache the result.
5517         (gl_FUNC_FLOOR): Use it.
5518         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
5519         gl_FUNC_CEIL. Cache the result.
5520         (gl_FUNC_CEIL): Use it.
5521
5522         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
5523         gl_FUNC_FLOORF. Cache the result.
5524         (gl_FUNC_FLOORF): Use it.
5525         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
5526         gl_FUNC_CEILF. Cache the result.
5527         (gl_FUNC_CEILF): Use it.
5528
5529 2007-10-28  Bruno Haible  <bruno@clisp.org>
5530
5531         * gnulib-tool: Allow specifying the LGPL version number through
5532         --lgpl=2 or --lgpl=3.
5533         (func_usage): Document --lgpl with argument.
5534         Handle --lgpl=... arguments.
5535         (func_import): Recognize also gl_LGPL calls with an argument. When
5536         --lgpl=2 is used and the module's license is just LGPL, report an
5537         error. Set sed_transform_lib_file according to the lgpl variable. In
5538         the generated files, use --lgpl or gl_LGPL invocations with argument,
5539         if necessary.
5540         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
5541         an LGPv2+ license.
5542         * doc/gnulib-tool.texi (Modified imports): Update explanation of
5543         gl_LGPL macro.
5544
5545 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5546             Bruno Haible  <bruno@clisp.org>
5547
5548         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
5549         (u16_uctomb_aux): Likewise.
5550         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
5551         !HAVE_INLINE.
5552         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
5553
5554 2007-10-28  Bruno Haible  <bruno@clisp.org>
5555
5556         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
5557         Invoke AM_GETTEXT_OPTION if it exists.
5558         * modules/vasprintf: Likewise.
5559         * modules/verror: Likewise.
5560         * modules/xprintf: Likewise.
5561         * modules/xvasprintf: Likewise.
5562
5563 2007-10-27  Ben Pfaff  <blp@gnu.org>
5564
5565         * lib/math.in.h: Define isfinite macro and prototypes for
5566         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
5567         implementations.
5568         * m4/math_h.m4: New substitutions for isfinite module.
5569         * lib/isfinite.c: New file.
5570         * m4/isfinite.m4: New file.
5571         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
5572         * modules/isfinite: New file.
5573         * modules/isfinite-tests: New file.
5574         * tests/tests-isfinite.c: New file.
5575         * doc/functions/isfinite.texi: Mention isfinite module.
5576         * MODULES.html.sh: Mention new module.
5577
5578 2007-10-27  Ben Pfaff  <blp@gnu.org>
5579
5580         Ralf Wildenhues reported that Tru64 4.0D declares the round
5581         functions but does not have definitions.
5582         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
5583         cannot be found in any library, set the output variable to
5584         "missing" instead of "".
5585         * m4/round.m4: Also use our substitute if we cannot find round in
5586         any library, even if it is declared.
5587         * m4/roundf.m4: Likewise for roundf.
5588         * m4/roundl.m4: Likewise for roundl.
5589         * lib/math.in.h: Undefine roundf, round, roundl before defining
5590         their replacements, to allow for hypothetical systems where these
5591         may be defined as macros but not available in libraries.
5592
5593 2007-10-27  Bruno Haible  <bruno@clisp.org>
5594
5595         * doc/gnulib.texi: Invoke @firstparagraphindent.
5596         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
5597         changes in gnulib.
5598         (Source changes): New section.
5599
5600 2007-10-26  Bruno Haible  <bruno@clisp.org>
5601
5602         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
5603         borrowed from autoconf.
5604
5605 2007-10-26  Bruno Haible  <bruno@clisp.org>
5606
5607         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
5608         strerror returned the empty string. Needed on HP-UX 11.00.
5609
5610 2007-10-24  Micah Cowan  <micah@cowan.name>
5611
5612         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
5613         * build-aux/bootstrap: Remove support for now-unnecessary option,
5614         --cvs-user, and envvars CVS_USER, CVS_RSH.
5615
5616 2007-10-24  Jim Meyering  <meyering@redhat.com>
5617
5618         Avoid diagnostics from sha1sum when there is no cached checksum.
5619         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
5620         if the po.s1 file hasn't been created yet.
5621
5622         * build-aux/bootstrap: Sync from coreutils:
5623         2007-10-24  Jim Meyering  <meyering@redhat.com>
5624         Get gnulib from the git repository, not from an obsolete cvs one.
5625         * build-aux/bootstrap: Suggestion from Micah Cowan.
5626         2007-10-04  Jim Meyering  <jim@meyering.net>
5627         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
5628         (update_po_files): Work also when there are no .po files in po/.
5629
5630 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
5631
5632         * README: Append ".git" to git and cg examples.
5633         Problem reported by Benoit Sigoure.
5634
5635 2007-10-23  Micah Cowan  <micah@cowan.name>
5636
5637         * users.txt: Add wget.
5638
5639 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5640
5641         Fix linking of some unistdio tests on FreeBSD.
5642         * modules/unistdio/u16-vsnprintf-tests
5643         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
5644         * modules/unistdio/u16-vsprintf-tests
5645         (test_u16_vsnprintf1_LDADD): Likewise.
5646         * modules/unistdio/u32-vsnprintf-tests
5647         (test_u32_vsnprintf1_LDADD): Likewise.
5648         * modules/unistdio/u32-vsprintf-tests
5649         (test_u32_vsprintf1_LDADD): Likewise.
5650         * modules/unistdio/u8-vsnprintf-tests
5651         (test_u8_vsnprintf1_LDADD): Likewise.
5652         * modules/unistdio/u8-vsprintf-tests
5653         (test_u8_vsprintf1_LDADD): Likewise.
5654         * modules/unistdio/ulc-vsnprintf-tests
5655         (test_ulc_vsnprintf1_LDADD): Likewise.
5656         * modules/unistdio/ulc-vsprintf-tests
5657         (test_ulc_vsprintf1_LDADD): Likewise.
5658
5659         Fix linking of some uniconv tests on FreeBSD.
5660         * modules/uniconv/u16-conv-from-enc-tests
5661         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
5662         * modules/uniconv/u16-conv-to-enc-tests
5663         (test_u16_conv_to_enc_LDADD): Likewise.
5664         * modules/uniconv/u16-strconv-from-enc-tests
5665         (test_u16_strconv_from_enc_LDADD): Likewise.
5666         * modules/uniconv/u16-strconv-to-enc-tests
5667         (test_u16_strconv_to_enc_LDADD): Likewise.
5668         * modules/uniconv/u32-conv-from-enc-tests
5669         (test_u32_conv_from_enc_LDADD): Likewise.
5670         * modules/uniconv/u32-conv-to-enc-tests
5671         (test_u32_conv_to_enc_LDADD): Likewise.
5672         * modules/uniconv/u32-strconv-from-enc-tests
5673         (test_u32_strconv_from_enc_LDADD): Likewise.
5674         * modules/uniconv/u32-strconv-to-enc-tests
5675         (test_u32_strconv_to_enc_LDADD): Likewise.
5676         * modules/uniconv/u8-conv-from-enc-tests
5677         (test_u8_conv_from_enc_LDADD): Likewise.
5678         * modules/uniconv/u8-conv-to-enc-tests
5679         (test_u8_conv_to_enc_LDADD): Likewise.
5680         * modules/uniconv/u8-strconv-from-enc-tests
5681         (test_u8_strconv_from_enc_LDADD): Likewise.
5682         * modules/uniconv/u8-strconv-to-enc-tests
5683         (test_u8_strconv_to_enc_LDADD): Likewise.
5684
5685 2007-10-22  Bruno Haible  <bruno@clisp.org>
5686
5687         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
5688         size.
5689
5690 2007-10-22  Eric Blake  <ebb9@byu.net>
5691
5692         Tweak x*printf documentation.
5693         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
5694         variable name and comments.
5695         Suggested by Bruno Haible.
5696
5697 2007-10-22  Bruno Haible  <bruno@clisp.org>
5698
5699         * lib/acl.c (copy_acl): Fix file name in comment.
5700
5701 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
5702
5703         Fix Tru64 problem with stdbool.h.
5704         * lib/stdbool.in.h (false, true):
5705         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
5706         Don't declare as an enum in this situation; it runs afoul of Tru64.
5707         Problem reported by Steven M. Schweda in
5708         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
5709
5710 2007-10-22  Eric Blake  <ebb9@byu.net>
5711
5712         Also wrap vf?printf.
5713         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
5714         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
5715         (xvprintf, xvfprintf): New functions.
5716
5717 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5718
5719         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
5720         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
5721
5722         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
5723         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
5724
5725 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
5726
5727         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
5728         by Bruno Haible.
5729
5730 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5731
5732         * lib/getloadavg.c
5733         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
5734         Undef `sys' after including sys/table.h, for Tru64 4.0D.
5735
5736         * tests/test-i-ring.c: Work for C89.
5737
5738 2007-10-22  Bruno Haible  <bruno@clisp.org>
5739
5740         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
5741         -1u, in preprocessor expression, so that we don't test for the bug
5742         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
5743         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
5744
5745 2007-10-22  Eric Blake  <ebb9@byu.net>
5746
5747         * tests/test-yesno.sh: Silence stderr during test.
5748
5749 2007-10-22  Simon Josefsson  <simon@josefsson.org>
5750
5751         * modules/crypto/gc-camellia: New file.
5752
5753         * m4/gc-camellia.m4: New file.
5754
5755         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
5756
5757         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
5758
5759 2007-10-22  Simon Josefsson  <simon@josefsson.org>
5760
5761         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
5762         --help to stdout.  Reported by sms@antinode.org (Steven
5763         M. Schweda).
5764
5765 2007-10-22  Simon Josefsson  <simon@josefsson.org>
5766
5767         * users.txt: Fix link to libksba.
5768
5769 2007-10-21  Ben Pfaff  <blp@gnu.org>
5770
5771         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
5772         round.c roundf implementation that depends on floorf and ceilf to
5773         be tested unconditionally.
5774
5775 2007-10-21  Ben Pfaff  <blp@gnu.org>
5776
5777         * m4/check-libm-func.m4: Removed.
5778         * m4/check-math-lib.m4: New file.
5779         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
5780         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
5781         definition and lack of AC_LIBOBJ([roundf]).
5782         * m4/roundl.m4: Ditto, and similarly for roundl.
5783         * modules/round: Reference new m4 file.
5784         * modules/roundf: Ditto.
5785         * modules/roundl: Ditto.
5786         * tests/test-round2.c (main): Use ROUND instead of round.
5787         Bug report from Bruno Haible.
5788
5789 2007-10-21  Bruno Haible  <bruno@clisp.org>
5790
5791         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
5792         context.
5793
5794 2007-10-21  Bruno Haible  <bruno@clisp.org>
5795
5796         * tests/test-wcwidth.c (main): Allow negative result for some control
5797         characters.
5798
5799         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
5800         Needed on OSF/1 5.1.
5801
5802 2007-10-21  Bruno Haible  <bruno@clisp.org>
5803
5804         * tests/test-floorf1.c: Include isnanf.h.
5805         (main): Use isnanf() instead of isnan().
5806         * tests/test-ceilf1.c: Include isnanf.h.
5807         (main): Use isnanf() instead of isnan().
5808         * tests/test-truncf1.c: Include isnanf.h.
5809         (main): Use isnanf() instead of isnan().
5810         * tests/test-roundf1.c: Include isnanf.h.
5811         (main): Use isnanf() instead of isnan().
5812
5813 2007-10-21  Eric Blake  <ebb9@byu.net>
5814
5815         * users.txt: Update URL for m4.
5816
5817 2007-10-21  Bruno Haible  <bruno@clisp.org>
5818
5819         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
5820
5821 2007-10-21  Bruno Haible  <bruno@clisp.org>
5822
5823         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
5824         Git's management files if the CVS files are not present.
5825
5826 2007-10-20  Bruno Haible  <bruno@clisp.org>
5827
5828         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
5829         gcc-3.4.x.
5830
5831 2007-10-20  Ben Pfaff  <blp@gnu.org>
5832
5833         * lib/math.in.h: Declare round, roundf, roundl if we are providing
5834         implementations.
5835         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
5836         * lib/round.c: New file.
5837         * lib/roundf.c: New file.
5838         * lib/roundl.c: New file.
5839         * m4/round.m4: New file.
5840         * m4/roundf.m4: New file.
5841         * m4/roundl.m4: New file.
5842         * m4/check-libm-func-m4: New file.
5843         * modules/math: Replace round, roundf, roundl related @VARS@ in
5844         math.in.h.
5845         * modules/round: New file.
5846         * modules/round-tests: New file.
5847         * modules/roundf: New file.
5848         * modules/roundf-tests: New file.
5849         * modules/roundl: New file.
5850         * modules/roundl-tests: New file.
5851         * tests/test-round1.c: New file.
5852         * tests/test-round2.c: New file.
5853         * tests/test-roundf1.c: New file.
5854         * tests/test-roundf2.c: New file.
5855         * tests/test-roundl.c: New file.
5856         * doc/functions/round.texi: Mention round module.
5857         * doc/functions/roundf.texi: Mention roundf module.
5858         * doc/functions/roundl.texi: Mention roundl module.
5859         * MODULES.html.sh: Mention new modules.
5860         Thanks to Bruno Haible for suggestions.
5861
5862 2007-10-20  Jim Meyering  <meyering@redhat.com>
5863
5864         * lib/xprintf.c: Include <config.h> unconditionally.
5865
5866         Change xprintf's license to GPL.
5867         * modules/xprintf (License): s/LGPL/GPL/, since this module
5868         depends on modules (exit and exitfail) which are GPL.
5869         Suggestion from Bruno Haible.
5870
5871         xprintf fixes.
5872         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
5873         Use a clearer diagnostic.
5874         Patch from Bruno Haible.
5875
5876 2007-10-20  Bruno Haible  <bruno@clisp.org>
5877
5878         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
5879         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
5880         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5881
5882 2007-10-20  Bruno Haible  <bruno@clisp.org>
5883
5884         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
5885         precision in the comparison result > x - 1 or similar.
5886         * tests/test-ceilf2.c (correct_result_p): Likewise.
5887         * tests/test-truncf2.c (correct_result_p): Likewise.
5888         * tests/test-trunc2.c (correct_result_p): Likewise.
5889         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5890
5891 2007-10-20  Bruno Haible  <bruno@clisp.org>
5892
5893         * modules/ceil: New file.
5894         * m4/ceil.m4: New file.
5895         * doc/functions/ceil.texi: Mention the 'ceil' module.
5896
5897 2007-10-20  Bruno Haible  <bruno@clisp.org>
5898
5899         * modules/floor: New file.
5900         * m4/floor.m4: New file.
5901         * doc/functions/floor.texi: Mention the 'floor' module.
5902
5903 2007-10-20  Bruno Haible  <bruno@clisp.org>
5904
5905         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
5906         of %a.
5907         * modules/floorf-tests (Depends-on): Likewise.
5908         * modules/truncf-tests (Depends-on): Likewise.
5909         * modules/trunc-tests (Depends-on): Likewise.
5910         Reported by Ben Pfaff.
5911
5912 2007-10-19  Jim Meyering  <meyering@redhat.com>
5913
5914         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
5915         Don't bother testing specific errno values.  Just test ferror.
5916
5917         New module: xprintf
5918         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
5919
5920 2007-10-19  Bruno Haible  <bruno@clisp.org>
5921
5922         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
5923         syntax.
5924         * modules/javaexec (Makefile.am): Likewise.
5925         * modules/relocatable-prog (Makefile.am): Likewise.
5926         Suggested by Jim Meyering.
5927
5928 2007-10-18  Bruno Haible  <bruno@clisp.org>
5929
5930         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
5931         Reported by Jim Meyering.
5932
5933 2007-10-18  Eric Blake  <ebb9@byu.net>
5934
5935         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
5936
5937 2007-10-18  Bruno Haible  <bruno@clisp.org>
5938
5939         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
5940         the format string into writable memory. Needed in Fortify conditions.
5941
5942 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
5943             Bruno Haible  <bruno@clisp.org>
5944
5945         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
5946         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
5947         * modules/trim (Depends-on): Add mbchar.
5948         (configure.ac): Add gl_FUNC_MBRTOWC.
5949         (Makefile.am): Augment lib_SOURCES.
5950
5951 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
5952
5953         Modify glob.c to use fstatat and dirfd, to simplify it.
5954         Suggested by Eric Blake.
5955         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
5956         Don't include <stdbool.h>; not used.
5957         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
5958         (link_exists_p): Simplify implementation, since we can now assume
5959         dirfd and fstatat.
5960         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
5961
5962 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5963
5964         * gnulib-tool (func_get_dependencies): Fix sed script to
5965         match only tests.
5966
5967 2007-10-17  Bruno Haible  <bruno@clisp.org>
5968
5969         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
5970         allow locale names without encoding suffix.
5971         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
5972         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5973
5974 2007-10-16  Bruno Haible  <bruno@clisp.org>
5975
5976         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
5977         * lib/getgroups.c (getgroups): Likewise.
5978         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
5979
5980 2007-10-16  Bruno Haible  <bruno@clisp.org>
5981
5982         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
5983         * modules/malloc-posix (License): Likewise.
5984         * modules/realloc-posix (License): Likewise.
5985         * modules/calloc-posix (License): Likewise.
5986         * modules/intprops (License): Change from GPL to LGPL, with
5987         Paul Eggert's approval.
5988
5989 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
5990
5991         Merge glibc changes into lib/glob.c.
5992
5993         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
5994         2007-10-15 04:59:03 UTC.  Here are the changes:
5995
5996         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
5997
5998         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
5999
6000         * lib/glob.c: Add some branch prediction throughout.
6001
6002         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
6003
6004         [BZ #5103]
6005         * lib/glob.c (glob): Recognize patterns starting \/.
6006
6007         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
6008
6009         [BZ #3996]
6010         * lib/glob.c (attribute_hidden): Define if not defined.
6011         (glob): Unescape dirname, filename or username when needed and not
6012         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
6013         is NULL.  Handle unescaped [ in pattern without closing ].
6014         Don't pass GLOB_CHECK down to recursive glob for directories.
6015         (__glob_pattern_type): New function.
6016         (__glob_pattern_p): Implement using __glob_pattern_type.
6017         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
6018         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
6019         Remove unreachable code.
6020
6021         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
6022
6023         * lib/glob.c (glob_in_dir): Add some comments and asserts to
6024         explain why there are no leaks.
6025
6026         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
6027
6028         [BZ #3253]
6029         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
6030         time, rather allocate increasingly bigger arrays of pointers, if
6031         possible with alloca, if too large with malloc.
6032
6033 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
6034
6035         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
6036         Problem reported by H.Merijn Brand in
6037         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
6038         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
6039         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
6040
6041 2007-10-15  Bruno Haible  <bruno@clisp.org>
6042
6043         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
6044         with explicit rpl_ prefix.
6045         * lib/fopen.c (fopen): Likewise.
6046         * lib/freopen.c (freopen): Likewise.
6047         * lib/iconv.c (iconv): Likewise.
6048         * lib/iconv_close.c (iconv_close): Likewise.
6049
6050 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6051
6052         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
6053
6054 2007-10-15  Bruno Haible  <bruno@clisp.org>
6055
6056         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
6057         <stddef.h> instead of <stdlib.h> since we only need NULL.
6058         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6059
6060 2007-10-15  Bruno Haible  <bruno@clisp.org>
6061
6062         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
6063         Replace paragraph talking about LIBOBJS.
6064         Reported by Colin Watson <cjwatson@debian.org>.
6065
6066 2007-10-15  Bruno Haible  <bruno@clisp.org>
6067
6068         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
6069         <stdlib.h> before using NULL.
6070
6071 2007-10-15  Simon Josefsson  <simon@josefsson.org>
6072
6073         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
6074         Reported by Albert Chin <china@thewrittenword.com>.
6075
6076 2007-10-14  Bruno Haible  <bruno@clisp.org>
6077
6078         * modules/iconv_open-utf-tests: New file.
6079         * tests/test-iconv-utf.c: New file.
6080
6081         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
6082         * modules/iconv_open-utf: New file.
6083         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
6084         (iconv, iconv_close): New declarations.
6085         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
6086         be defined.
6087         (iconv_open): Add special handling of conversion between UTF-8 and
6088         UTF-{16,32}{BE,LE}.
6089         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
6090         * lib/iconv_close.c: New file.
6091         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
6092         gl_FUNC_ICONV_OPEN.
6093         (gl_FUNC_ICONV_OPEN): Use it.
6094         (gl_FUNC_ICONV_OPEN_UTF): New macro.
6095         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
6096         and REPLACE_ICONV_UTF.
6097         * modules/iconv_open (Depends-on): Add c-strcase.
6098         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
6099         ICONV_CONST.
6100         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
6101
6102 2007-10-13  Albert Chin  <china@thewrittenword.com>
6103             Bruno Haible  <bruno@clisp.org>
6104
6105         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
6106         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
6107
6108 2007-10-13  Bruno Haible  <bruno@clisp.org>
6109
6110         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
6111         defined, use the ISO C99 inline semantics.
6112         * lib/argp.h (ARGP_EI): Likewise.
6113
6114 2007-10-13  Bruno Haible  <bruno@clisp.org>
6115
6116         Handle 'inline' change in gcc 4.3.0.
6117         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
6118         argp_fmtstream_write, argp_fmtstream_set_lmargin,
6119         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
6120         argp_fmtstream_point): Disable 'extern' declaration if the function
6121         definition is going to be provided inline.
6122         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
6123         semantics, not the ISO C99 inline semantics.
6124         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
6125         'extern' declaration if the function definition is going to be provided
6126         inline.
6127         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
6128         the GNU C inline semantics, not the ISO C99 inline semantics. With
6129         GCC 4.2, avoid a warning.
6130
6131 2007-10-13  Bruno Haible  <bruno@clisp.org>
6132
6133         * lib/freading.h (freading): Enable the use of __freading for
6134         glibc >= 2.7.
6135         * lib/freading.c (freading): Likewise.
6136
6137 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
6138
6139         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
6140         "warning: C99 inline functions are not supported; using GNU89".
6141
6142 2007-10-12  Bruno Haible  <bruno@clisp.org>
6143
6144         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
6145         of 2.
6146         * tests/test-ceilf2.c: New file.
6147         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
6148
6149         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
6150         * modules/ceilf-tests: Update.
6151
6152 2007-10-12  Bruno Haible  <bruno@clisp.org>
6153
6154         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
6155         of 2.
6156         * tests/test-floorf2.c: New file.
6157         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
6158
6159         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
6160         * modules/floorf-tests: Update.
6161
6162 2007-10-12  Bruno Haible  <bruno@clisp.org>
6163
6164         * tests/test-trunc2.c: New file.
6165         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
6166
6167         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
6168         * modules/trunc-tests: Update.
6169
6170 2007-10-12  Bruno Haible  <bruno@clisp.org>
6171
6172         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
6173         of 2.
6174         * tests/test-truncf2.c: New file.
6175         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
6176
6177         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
6178         * modules/truncf-tests: Update.
6179
6180 2007-10-11  Eric Blake  <ebb9@byu.net>
6181
6182         Don't claim strerror is broken on Interix.
6183         * doc/functions/strerror.texi (strerror): Known broken systems are
6184         now Solaris 8, and not Interix.
6185         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
6186         Interix on cross-compile.
6187         Reported by Martin Koeppe in
6188         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
6189
6190 2007-10-11  Bruno Haible  <bruno@clisp.org>
6191
6192         * modules/i-ring-tests: New file.
6193         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
6194         instead of assert.
6195
6196 2007-10-11  Bruno Haible  <bruno@clisp.org>
6197
6198         * modules/filenamecat-tests: New file.
6199         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
6200         * lib/filenamecat.c: Remove test code.
6201
6202 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
6203
6204         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
6205
6206         * lib/strerror.c: Include <string.h> always, to test interface,
6207         and to remove the need for the dummy.
6208         Include intprops.h to compute width instead of doing it ourselves
6209         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
6210         (strerror): Define it to return NULL if there's no system strerror.
6211         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
6212         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
6213         ancient pre-strerror Unix systems well any more.  Saying "unknown
6214         system error" is enough.
6215         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
6216         simpler strerror.c implementation.
6217         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
6218         Simplify the tests to reflect the simpler strerror implementation.
6219         * modules/strerror (Depends-on): Add intprops.
6220
6221 2007-10-09  Eric Blake  <ebb9@byu.net>
6222
6223         Silence test-fpending.
6224         * modules/fpending-tests (Files): Add wrapper script.
6225         * tests/test-fpending.sh: New file.
6226
6227 2007-10-09  Bruno Haible  <bruno@clisp.org>
6228
6229         * MODULES.html.sh (func_module): Don't create a hyperlink for
6230         function names like 'printf_frexp'.
6231         (Misc): Add crc, memxor.
6232         (Characteristics of floating types): New section.
6233         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
6234         isnanf-nolibm, signbit, trunc, truncf, truncl.
6235         (Enhancements for ISO C 99 functions): New subsection Input/output.
6236         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
6237         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
6238         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
6239         (Compatibility checks for POSIX:2001 functions): Add clock-time.
6240         (Enhancements for POSIX:2001 functions): Add chdir-long.
6241         (File system functions): Add areadlink, chdir-safer, read-file.
6242         Remove cycle-check.
6243         (File system as inode set): New section.
6244         (Date and time): Add gethrxtime.
6245         (Multithreading): Add openmp.
6246         (Internationalization functions): Add localename.
6247         (Unicode string functions): Add unistr/u*-mbsnlen.
6248         (Support for maintaining and releasing projects): Add git-version-gen.
6249         (Lone files): Remove directories.
6250
6251 2007-10-08  Ben Pfaff  <blp@gnu.org>
6252
6253         * lib/xmalloca.h: Fix typo in comment.
6254
6255 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
6256
6257         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
6258         when avoiding problems with integer overflow.  Use a portable test
6259         instead.
6260
6261 2007-10-08  Simon Josefsson  <simon@josefsson.org>
6262
6263         * modules/dummy (License): Change to LGPLv2+.
6264         * modules/float (License): Likewise
6265         * modules/realloc (License): Likewise
6266         * modules/stdlib (License): Likewise
6267
6268 2007-10-07  Bruno Haible  <bruno@clisp.org>
6269
6270         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
6271         * floor.c (TWO_MANT_DIG): Likewise.
6272         * ceil.c (TWO_MANT_DIG): Likewise.
6273         Reported by Ben Pfaff.
6274
6275 2007-10-07  Bruno Haible  <bruno@clisp.org>
6276
6277         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
6278         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
6279         * lib/frexp.c (FUNC): Likewise.
6280         * lib/printf-frexp.h (printf_frexp): Likewise.
6281         * lib/printf-frexpl.h (printf_frexpl): Likewise.
6282         * lib/printf-frexp.c (FUNC): Likewise.
6283         Suggested by Jim Meyering.
6284
6285 2007-10-07  Jim Meyering  <meyering@redhat.com>
6286
6287         Make xnanosleep's integer overflow test more robust.
6288         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
6289         so that gcc-4.3.0 doesn't optimize away this test for overflow.
6290
6291 2007-10-07  Bruno Haible  <bruno@clisp.org>
6292
6293         * NEWS: Mention the license change.
6294
6295         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
6296         abbreviations in the modules files.
6297
6298         Change copyright notice from GPLv2+ to GPLv3+.
6299         * README: Change copyright notice.
6300         * MODULES.html.sh: Likewise.
6301         * build-aux/bootstrap.conf: Likewise.
6302         * build-aux/config.libpath: Likewise.
6303         * build-aux/csharpcomp.sh.in: Likewise.
6304         * build-aux/csharpexec.sh.in: Likewise.
6305         * build-aux/install-reloc: Likewise.
6306         * build-aux/javacomp.sh.in: Likewise.
6307         * build-aux/javaexec.sh.in: Likewise.
6308         * build-aux/ldd.sh.in: Likewise.
6309         * build-aux/reloc-ldflags: Likewise.
6310         * build-aux/relocatable.sh.in: Likewise.
6311         * build-aux/x-to-1.in: Likewise.
6312         * check-module: Likewise.
6313         * config/srclistvars.sh: Likewise.
6314         * gnulib-tool: Likewise.
6315         * lib/acl-internal.h: Likewise.
6316         * lib/acl.c: Likewise.
6317         * lib/acl.h: Likewise.
6318         * lib/acl_entries.c: Likewise.
6319         * lib/areadlink-with-size.c: Likewise.
6320         * lib/areadlink.c: Likewise.
6321         * lib/areadlink.h: Likewise.
6322         * lib/argmatch.c: Likewise.
6323         * lib/argmatch.h: Likewise.
6324         * lib/argp-ba.c: Likewise.
6325         * lib/argp-eexst.c: Likewise.
6326         * lib/argp-fmtstream.c: Likewise.
6327         * lib/argp-fmtstream.h: Likewise.
6328         * lib/argp-fs-xinl.c: Likewise.
6329         * lib/argp-help.c: Likewise.
6330         * lib/argp-namefrob.h: Likewise.
6331         * lib/argp-parse.c: Likewise.
6332         * lib/argp-pin.c: Likewise.
6333         * lib/argp-pv.c: Likewise.
6334         * lib/argp-pvh.c: Likewise.
6335         * lib/argp-xinl.c: Likewise.
6336         * lib/argp.h: Likewise.
6337         * lib/at-func.c: Likewise.
6338         * lib/atanl.c: Likewise.
6339         * lib/backupfile.c: Likewise.
6340         * lib/backupfile.h: Likewise.
6341         * lib/basename.c: Likewise.
6342         * lib/binary-io.h: Likewise.
6343         * lib/byteswap.in.h: Likewise.
6344         * lib/c-stack.c: Likewise.
6345         * lib/c-stack.h: Likewise.
6346         * lib/c-strcasestr.c: Likewise.
6347         * lib/c-strcasestr.h: Likewise.
6348         * lib/c-strstr.c: Likewise.
6349         * lib/c-strstr.h: Likewise.
6350         * lib/c-strtod.c: Likewise.
6351         * lib/calloc.c: Likewise.
6352         * lib/canon-host.c: Likewise.
6353         * lib/canon-host.h: Likewise.
6354         * lib/canonicalize-lgpl.c: Likewise.
6355         * lib/canonicalize.c: Likewise.
6356         * lib/canonicalize.h: Likewise.
6357         * lib/ceil.c: Likewise.
6358         * lib/ceilf.c: Likewise.
6359         * lib/ceill.c: Likewise.
6360         * lib/chdir-long.c: Likewise.
6361         * lib/chdir-long.h: Likewise.
6362         * lib/chdir-safer.c: Likewise.
6363         * lib/chdir-safer.h: Likewise.
6364         * lib/chown.c: Likewise.
6365         * lib/classpath.c: Likewise.
6366         * lib/classpath.h: Likewise.
6367         * lib/clean-temp.c: Likewise.
6368         * lib/clean-temp.h: Likewise.
6369         * lib/cloexec.c: Likewise.
6370         * lib/close-stream.c: Likewise.
6371         * lib/closein.c: Likewise.
6372         * lib/closein.h: Likewise.
6373         * lib/closeout.c: Likewise.
6374         * lib/closeout.h: Likewise.
6375         * lib/concat-filename.c: Likewise.
6376         * lib/copy-file.c: Likewise.
6377         * lib/copy-file.h: Likewise.
6378         * lib/count-one-bits.h: Likewise.
6379         * lib/crc.c: Likewise.
6380         * lib/crc.h: Likewise.
6381         * lib/creat-safer.c: Likewise.
6382         * lib/csharpcomp.c: Likewise.
6383         * lib/csharpcomp.h: Likewise.
6384         * lib/csharpexec.c: Likewise.
6385         * lib/csharpexec.h: Likewise.
6386         * lib/cycle-check.c: Likewise.
6387         * lib/cycle-check.h: Likewise.
6388         * lib/diacrit.c: Likewise.
6389         * lib/diacrit.h: Likewise.
6390         * lib/diffseq.h: Likewise.
6391         * lib/dirchownmod.c: Likewise.
6392         * lib/dirent.in.h: Likewise.
6393         * lib/dirfd.c: Likewise.
6394         * lib/dirfd.h: Likewise.
6395         * lib/dirname.c: Likewise.
6396         * lib/dirname.h: Likewise.
6397         * lib/dummy.c: Likewise.
6398         * lib/dup-safer.c: Likewise.
6399         * lib/dup2.c: Likewise.
6400         * lib/eealloc.h: Likewise.
6401         * lib/error.c: Likewise.
6402         * lib/error.h: Likewise.
6403         * lib/euidaccess.c: Likewise.
6404         * lib/exclude.c: Likewise.
6405         * lib/exclude.h: Likewise.
6406         * lib/execute.c: Likewise.
6407         * lib/execute.h: Likewise.
6408         * lib/exitfail.c: Likewise.
6409         * lib/exitfail.h: Likewise.
6410         * lib/expl.c: Likewise.
6411         * lib/fatal-signal.c: Likewise.
6412         * lib/fatal-signal.h: Likewise.
6413         * lib/fbufmode.c: Likewise.
6414         * lib/fbufmode.h: Likewise.
6415         * lib/fchdir.c: Likewise.
6416         * lib/fchmodat.c: Likewise.
6417         * lib/fchownat.c: Likewise.
6418         * lib/fcntl--.h: Likewise.
6419         * lib/fcntl-safer.h: Likewise.
6420         * lib/fcntl.in.h: Likewise.
6421         * lib/fd-safer.c: Likewise.
6422         * lib/fflush.c: Likewise.
6423         * lib/file-has-acl.c: Likewise.
6424         * lib/file-set.c: Likewise.
6425         * lib/file-type.c: Likewise.
6426         * lib/file-type.h: Likewise.
6427         * lib/fileblocks.c: Likewise.
6428         * lib/filemode.c: Likewise.
6429         * lib/filemode.h: Likewise.
6430         * lib/filename.h: Likewise.
6431         * lib/filenamecat.c: Likewise.
6432         * lib/filenamecat.h: Likewise.
6433         * lib/findprog.c: Likewise.
6434         * lib/findprog.h: Likewise.
6435         * lib/float.in.h: Likewise.
6436         * lib/floor.c: Likewise.
6437         * lib/floorf.c: Likewise.
6438         * lib/floorl.c: Likewise.
6439         * lib/fopen-safer.c: Likewise.
6440         * lib/fopen.c: Likewise.
6441         * lib/fpending.c: Likewise.
6442         * lib/fpending.h: Likewise.
6443         * lib/fprintf.c: Likewise.
6444         * lib/fprintftime.h: Likewise.
6445         * lib/fpucw.h: Likewise.
6446         * lib/fpurge.c: Likewise.
6447         * lib/fpurge.h: Likewise.
6448         * lib/freadable.c: Likewise.
6449         * lib/freadable.h: Likewise.
6450         * lib/freadahead.c: Likewise.
6451         * lib/freadahead.h: Likewise.
6452         * lib/freading.c: Likewise.
6453         * lib/freading.h: Likewise.
6454         * lib/free.c: Likewise.
6455         * lib/freopen.c: Likewise.
6456         * lib/frexp.c: Likewise.
6457         * lib/frexpl.c: Likewise.
6458         * lib/fseek.c: Likewise.
6459         * lib/fseterr.c: Likewise.
6460         * lib/fseterr.h: Likewise.
6461         * lib/fstatat.c: Likewise.
6462         * lib/fstrcmp.c: Likewise.
6463         * lib/fstrcmp.h: Likewise.
6464         * lib/fsusage.c: Likewise.
6465         * lib/fsusage.h: Likewise.
6466         * lib/ftell.c: Likewise.
6467         * lib/ftello.c: Likewise.
6468         * lib/fts-cycle.c: Likewise.
6469         * lib/fts.c: Likewise.
6470         * lib/fts_.h: Likewise.
6471         * lib/full-read.c: Likewise.
6472         * lib/full-read.h: Likewise.
6473         * lib/full-write.c: Likewise.
6474         * lib/full-write.h: Likewise.
6475         * lib/fwritable.c: Likewise.
6476         * lib/fwritable.h: Likewise.
6477         * lib/fwriteerror.c: Likewise.
6478         * lib/fwriteerror.h: Likewise.
6479         * lib/fwriting.c: Likewise.
6480         * lib/fwriting.h: Likewise.
6481         * lib/gcd.c: Likewise.
6482         * lib/gcd.h: Likewise.
6483         * lib/getcwd.c: Likewise.
6484         * lib/getdate.h: Likewise.
6485         * lib/getdate.y: Likewise.
6486         * lib/getdomainname.c: Likewise.
6487         * lib/getdomainname.h: Likewise.
6488         * lib/getgroups.c: Likewise.
6489         * lib/gethostname.c: Likewise.
6490         * lib/gethrxtime.c: Likewise.
6491         * lib/gethrxtime.h: Likewise.
6492         * lib/getloadavg.c: Likewise.
6493         * lib/getndelim2.c: Likewise.
6494         * lib/getndelim2.h: Likewise.
6495         * lib/getnline.c: Likewise.
6496         * lib/getnline.h: Likewise.
6497         * lib/getopt.c: Likewise.
6498         * lib/getopt.in.h: Likewise.
6499         * lib/getopt1.c: Likewise.
6500         * lib/getopt_int.h: Likewise.
6501         * lib/getpagesize.h: Likewise.
6502         * lib/getsubopt.c: Likewise.
6503         * lib/gettime.c: Likewise.
6504         * lib/getugroups.c: Likewise.
6505         * lib/getugroups.h: Likewise.
6506         * lib/getusershell.c: Likewise.
6507         * lib/gl_anyavltree_list1.h: Likewise.
6508         * lib/gl_anyavltree_list2.h: Likewise.
6509         * lib/gl_anyhash_list1.h: Likewise.
6510         * lib/gl_anyhash_list2.h: Likewise.
6511         * lib/gl_anylinked_list1.h: Likewise.
6512         * lib/gl_anylinked_list2.h: Likewise.
6513         * lib/gl_anyrbtree_list1.h: Likewise.
6514         * lib/gl_anyrbtree_list2.h: Likewise.
6515         * lib/gl_anytree_list1.h: Likewise.
6516         * lib/gl_anytree_list2.h: Likewise.
6517         * lib/gl_anytree_oset.h: Likewise.
6518         * lib/gl_anytreehash_list1.h: Likewise.
6519         * lib/gl_anytreehash_list2.h: Likewise.
6520         * lib/gl_array_list.c: Likewise.
6521         * lib/gl_array_list.h: Likewise.
6522         * lib/gl_array_oset.c: Likewise.
6523         * lib/gl_array_oset.h: Likewise.
6524         * lib/gl_avltree_list.c: Likewise.
6525         * lib/gl_avltree_list.h: Likewise.
6526         * lib/gl_avltree_oset.c: Likewise.
6527         * lib/gl_avltree_oset.h: Likewise.
6528         * lib/gl_avltreehash_list.c: Likewise.
6529         * lib/gl_avltreehash_list.h: Likewise.
6530         * lib/gl_carray_list.c: Likewise.
6531         * lib/gl_carray_list.h: Likewise.
6532         * lib/gl_linked_list.c: Likewise.
6533         * lib/gl_linked_list.h: Likewise.
6534         * lib/gl_linkedhash_list.c: Likewise.
6535         * lib/gl_linkedhash_list.h: Likewise.
6536         * lib/gl_list.c: Likewise.
6537         * lib/gl_list.h: Likewise.
6538         * lib/gl_oset.c: Likewise.
6539         * lib/gl_oset.h: Likewise.
6540         * lib/gl_rbtree_list.c: Likewise.
6541         * lib/gl_rbtree_list.h: Likewise.
6542         * lib/gl_rbtree_oset.c: Likewise.
6543         * lib/gl_rbtree_oset.h: Likewise.
6544         * lib/gl_rbtreehash_list.c: Likewise.
6545         * lib/gl_rbtreehash_list.h: Likewise.
6546         * lib/gl_sublist.c: Likewise.
6547         * lib/gl_sublist.h: Likewise.
6548         * lib/group-member.c: Likewise.
6549         * lib/group-member.h: Likewise.
6550         * lib/hard-locale.c: Likewise.
6551         * lib/hard-locale.h: Likewise.
6552         * lib/hash-pjw.c: Likewise.
6553         * lib/hash-pjw.h: Likewise.
6554         * lib/hash-triple.c: Likewise.
6555         * lib/hash.c: Likewise.
6556         * lib/hash.h: Likewise.
6557         * lib/human.c: Likewise.
6558         * lib/human.h: Likewise.
6559         * lib/i-ring.c: Likewise.
6560         * lib/i-ring.h: Likewise.
6561         * lib/idcache.c: Likewise.
6562         * lib/imaxabs.c: Likewise.
6563         * lib/imaxdiv.c: Likewise.
6564         * lib/inet_pton.c: Likewise.
6565         * lib/inet_pton.h: Likewise.
6566         * lib/intprops.h: Likewise.
6567         * lib/inttostr.c: Likewise.
6568         * lib/inttostr.h: Likewise.
6569         * lib/inttypes.in.h: Likewise.
6570         * lib/isapipe.c: Likewise.
6571         * lib/isdir.c: Likewise.
6572         * lib/isnan.c: Likewise.
6573         * lib/isnan.h: Likewise.
6574         * lib/isnanf.c: Likewise.
6575         * lib/isnanf.h: Likewise.
6576         * lib/isnanl-nolibm.h: Likewise.
6577         * lib/isnanl.c: Likewise.
6578         * lib/isnanl.h: Likewise.
6579         * lib/javacomp.c: Likewise.
6580         * lib/javacomp.h: Likewise.
6581         * lib/javaexec.c: Likewise.
6582         * lib/javaexec.h: Likewise.
6583         * lib/javaversion.c: Likewise.
6584         * lib/javaversion.h: Likewise.
6585         * lib/javaversion.java: Likewise.
6586         * lib/lbrkprop.h: Likewise.
6587         * lib/lchmod.h: Likewise.
6588         * lib/lchown.c: Likewise.
6589         * lib/ldexpl.c: Likewise.
6590         * lib/linebreak.c: Likewise.
6591         * lib/linebreak.h: Likewise.
6592         * lib/linebuffer.c: Likewise.
6593         * lib/linebuffer.h: Likewise.
6594         * lib/locale.in.h: Likewise.
6595         * lib/logl.c: Likewise.
6596         * lib/long-options.c: Likewise.
6597         * lib/long-options.h: Likewise.
6598         * lib/lstat.c: Likewise.
6599         * lib/lstat.h: Likewise.
6600         * lib/math.in.h: Likewise.
6601         * lib/mbchar.c: Likewise.
6602         * lib/mbchar.h: Likewise.
6603         * lib/mbfile.h: Likewise.
6604         * lib/mbiter.h: Likewise.
6605         * lib/mbscasecmp.c: Likewise.
6606         * lib/mbscasestr.c: Likewise.
6607         * lib/mbschr.c: Likewise.
6608         * lib/mbscspn.c: Likewise.
6609         * lib/mbslen.c: Likewise.
6610         * lib/mbsncasecmp.c: Likewise.
6611         * lib/mbsnlen.c: Likewise.
6612         * lib/mbspbrk.c: Likewise.
6613         * lib/mbspcasecmp.c: Likewise.
6614         * lib/mbsrchr.c: Likewise.
6615         * lib/mbssep.c: Likewise.
6616         * lib/mbsspn.c: Likewise.
6617         * lib/mbsstr.c: Likewise.
6618         * lib/mbstok_r.c: Likewise.
6619         * lib/mbswidth.c: Likewise.
6620         * lib/mbswidth.h: Likewise.
6621         * lib/mbuiter.h: Likewise.
6622         * lib/memcasecmp.c: Likewise.
6623         * lib/memcasecmp.h: Likewise.
6624         * lib/memchr.c: Likewise.
6625         * lib/memcmp.c: Likewise.
6626         * lib/memcoll.c: Likewise.
6627         * lib/memcoll.h: Likewise.
6628         * lib/memcpy.c: Likewise.
6629         * lib/memrchr.c: Likewise.
6630         * lib/mkancesdirs.c: Likewise.
6631         * lib/mkdir-p.c: Likewise.
6632         * lib/mkdir-p.h: Likewise.
6633         * lib/mkdir.c: Likewise.
6634         * lib/mkdirat.c: Likewise.
6635         * lib/mkdtemp.c: Likewise.
6636         * lib/mkstemp-safer.c: Likewise.
6637         * lib/mkstemp.c: Likewise.
6638         * lib/modechange.c: Likewise.
6639         * lib/modechange.h: Likewise.
6640         * lib/mountlist.c: Likewise.
6641         * lib/mountlist.h: Likewise.
6642         * lib/mpsort.c: Likewise.
6643         * lib/nanosleep.c: Likewise.
6644         * lib/obstack.c: Likewise.
6645         * lib/obstack.h: Likewise.
6646         * lib/open-safer.c: Likewise.
6647         * lib/open.c: Likewise.
6648         * lib/openat-die.c: Likewise.
6649         * lib/openat-priv.h: Likewise.
6650         * lib/openat-proc.c: Likewise.
6651         * lib/openat.c: Likewise.
6652         * lib/openat.h: Likewise.
6653         * lib/pagealign_alloc.c: Likewise.
6654         * lib/pagealign_alloc.h: Likewise.
6655         * lib/physmem.c: Likewise.
6656         * lib/physmem.h: Likewise.
6657         * lib/pipe-safer.c: Likewise.
6658         * lib/pipe.c: Likewise.
6659         * lib/pipe.h: Likewise.
6660         * lib/posixtm.c: Likewise.
6661         * lib/posixtm.h: Likewise.
6662         * lib/posixver.c: Likewise.
6663         * lib/printf-frexp.c: Likewise.
6664         * lib/printf-frexp.h: Likewise.
6665         * lib/printf-frexpl.c: Likewise.
6666         * lib/printf-frexpl.h: Likewise.
6667         * lib/printf.c: Likewise.
6668         * lib/progname.c: Likewise.
6669         * lib/progname.h: Likewise.
6670         * lib/progreloc.c: Likewise.
6671         * lib/putenv.c: Likewise.
6672         * lib/quote.c: Likewise.
6673         * lib/quote.h: Likewise.
6674         * lib/quotearg.c: Likewise.
6675         * lib/quotearg.h: Likewise.
6676         * lib/raise.c: Likewise.
6677         * lib/readline.c: Likewise.
6678         * lib/readline.h: Likewise.
6679         * lib/readlink.c: Likewise.
6680         * lib/readtokens.c: Likewise.
6681         * lib/readtokens.h: Likewise.
6682         * lib/readtokens0.c: Likewise.
6683         * lib/readtokens0.h: Likewise.
6684         * lib/readutmp.c: Likewise.
6685         * lib/readutmp.h: Likewise.
6686         * lib/realloc.c: Likewise.
6687         * lib/relocwrapper.c: Likewise.
6688         * lib/rename-dest-slash.c: Likewise.
6689         * lib/rename.c: Likewise.
6690         * lib/rmdir.c: Likewise.
6691         * lib/rpmatch.c: Likewise.
6692         * lib/safe-read.c: Likewise.
6693         * lib/safe-read.h: Likewise.
6694         * lib/safe-write.c: Likewise.
6695         * lib/safe-write.h: Likewise.
6696         * lib/same-inode.h: Likewise.
6697         * lib/same.c: Likewise.
6698         * lib/same.h: Likewise.
6699         * lib/save-cwd.c: Likewise.
6700         * lib/save-cwd.h: Likewise.
6701         * lib/savedir.c: Likewise.
6702         * lib/savedir.h: Likewise.
6703         * lib/savewd.c: Likewise.
6704         * lib/savewd.h: Likewise.
6705         * lib/search.in.h: Likewise.
6706         * lib/setenv.c: Likewise.
6707         * lib/setenv.h: Likewise.
6708         * lib/settime.c: Likewise.
6709         * lib/sh-quote.c: Likewise.
6710         * lib/sh-quote.h: Likewise.
6711         * lib/sig2str.c: Likewise.
6712         * lib/sig2str.h: Likewise.
6713         * lib/signal.in.h: Likewise.
6714         * lib/signbitd.c: Likewise.
6715         * lib/signbitf.c: Likewise.
6716         * lib/signbitl.c: Likewise.
6717         * lib/sigprocmask.c: Likewise.
6718         * lib/sincosl.c: Likewise.
6719         * lib/sleep.c: Likewise.
6720         * lib/sprintf.c: Likewise.
6721         * lib/sqrtl.c: Likewise.
6722         * lib/stat-time.h: Likewise.
6723         * lib/stdio--.h: Likewise.
6724         * lib/stdio-safer.h: Likewise.
6725         * lib/stdlib--.h: Likewise.
6726         * lib/stdlib-safer.h: Likewise.
6727         * lib/stdlib.in.h: Likewise.
6728         * lib/stpcpy.c: Likewise.
6729         * lib/stpncpy.c: Likewise.
6730         * lib/strchrnul.c: Likewise.
6731         * lib/strcspn.c: Likewise.
6732         * lib/strerror.c: Likewise.
6733         * lib/strftime.c: Likewise.
6734         * lib/strftime.h: Likewise.
6735         * lib/striconveh.c: Likewise.
6736         * lib/striconveh.h: Likewise.
6737         * lib/striconveha.c: Likewise.
6738         * lib/striconveha.h: Likewise.
6739         * lib/stripslash.c: Likewise.
6740         * lib/strnlen1.c: Likewise.
6741         * lib/strnlen1.h: Likewise.
6742         * lib/strtod.c: Likewise.
6743         * lib/strtoimax.c: Likewise.
6744         * lib/strtok_r.c: Likewise.
6745         * lib/strtol.c: Likewise.
6746         * lib/strtoll.c: Likewise.
6747         * lib/strtoul.c: Likewise.
6748         * lib/strtoull.c: Likewise.
6749         * lib/sysexits.in.h: Likewise.
6750         * lib/tempname.c: Likewise.
6751         * lib/tempname.h: Likewise.
6752         * lib/timespec.h: Likewise.
6753         * lib/tls.c: Likewise.
6754         * lib/tls.h: Likewise.
6755         * lib/tmpdir.c: Likewise.
6756         * lib/tmpdir.h: Likewise.
6757         * lib/tmpfile-safer.c: Likewise.
6758         * lib/tmpfile.c: Likewise.
6759         * lib/trigl.c: Likewise.
6760         * lib/trigl.h: Likewise.
6761         * lib/trim.c: Likewise.
6762         * lib/trim.h: Likewise.
6763         * lib/trunc.c: Likewise.
6764         * lib/truncf.c: Likewise.
6765         * lib/truncl.c: Likewise.
6766         * lib/tsearch.c: Likewise.
6767         * lib/unicodeio.c: Likewise.
6768         * lib/unicodeio.h: Likewise.
6769         * lib/unistd--.h: Likewise.
6770         * lib/unistd-safer.h: Likewise.
6771         * lib/unistdio/ulc-fprintf.c: Likewise.
6772         * lib/unistdio/ulc-vfprintf.c: Likewise.
6773         * lib/unlinkdir.c: Likewise.
6774         * lib/unlinkdir.h: Likewise.
6775         * lib/unlocked-io.h: Likewise.
6776         * lib/unsetenv.c: Likewise.
6777         * lib/userspec.c: Likewise.
6778         * lib/utime.c: Likewise.
6779         * lib/utimecmp.c: Likewise.
6780         * lib/utimecmp.h: Likewise.
6781         * lib/utimens.c: Likewise.
6782         * lib/verify.h: Likewise.
6783         * lib/verror.c: Likewise.
6784         * lib/verror.h: Likewise.
6785         * lib/version-etc-fsf.c: Likewise.
6786         * lib/version-etc.c: Likewise.
6787         * lib/version-etc.h: Likewise.
6788         * lib/vfprintf.c: Likewise.
6789         * lib/vprintf.c: Likewise.
6790         * lib/vsprintf.c: Likewise.
6791         * lib/w32spawn.h: Likewise.
6792         * lib/wait-process.c: Likewise.
6793         * lib/wait-process.h: Likewise.
6794         * lib/wcwidth.c: Likewise.
6795         * lib/write-any-file.c: Likewise.
6796         * lib/xalloc-die.c: Likewise.
6797         * lib/xalloc.h: Likewise.
6798         * lib/xasprintf.c: Likewise.
6799         * lib/xgetcwd.c: Likewise.
6800         * lib/xgetcwd.h: Likewise.
6801         * lib/xgetdomainname.c: Likewise.
6802         * lib/xgetdomainname.h: Likewise.
6803         * lib/xgethostname.c: Likewise.
6804         * lib/xmalloc.c: Likewise.
6805         * lib/xmalloca.c: Likewise.
6806         * lib/xmalloca.h: Likewise.
6807         * lib/xmemcoll.c: Likewise.
6808         * lib/xnanosleep.c: Likewise.
6809         * lib/xreadlink.c: Likewise.
6810         * lib/xreadlink.h: Likewise.
6811         * lib/xsetenv.c: Likewise.
6812         * lib/xsetenv.h: Likewise.
6813         * lib/xstriconv.c: Likewise.
6814         * lib/xstriconv.h: Likewise.
6815         * lib/xstrndup.c: Likewise.
6816         * lib/xstrndup.h: Likewise.
6817         * lib/xstrtod.c: Likewise.
6818         * lib/xstrtod.h: Likewise.
6819         * lib/xstrtol-error.c: Likewise.
6820         * lib/xstrtol.c: Likewise.
6821         * lib/xstrtol.h: Likewise.
6822         * lib/xtime.h: Likewise.
6823         * lib/xvasprintf.c: Likewise.
6824         * lib/xvasprintf.h: Likewise.
6825         * lib/yesno.c: Likewise.
6826         * lib/yesno.h: Likewise.
6827         * posix-modules: Likewise.
6828         * tests/test-alloca-opt.c: Likewise.
6829         * tests/test-arcfour.c: Likewise.
6830         * tests/test-arctwo.c: Likewise.
6831         * tests/test-argmatch.c: Likewise.
6832         * tests/test-argp-2.sh: Likewise.
6833         * tests/test-argp.c: Likewise.
6834         * tests/test-arpa_inet.c: Likewise.
6835         * tests/test-array_list.c: Likewise.
6836         * tests/test-array_oset.c: Likewise.
6837         * tests/test-atexit.c: Likewise.
6838         * tests/test-avltree_list.c: Likewise.
6839         * tests/test-avltree_oset.c: Likewise.
6840         * tests/test-avltreehash_list.c: Likewise.
6841         * tests/test-base64.c: Likewise.
6842         * tests/test-binary-io.c: Likewise.
6843         * tests/test-byteswap.c: Likewise.
6844         * tests/test-c-ctype.c: Likewise.
6845         * tests/test-c-strcasecmp.c: Likewise.
6846         * tests/test-c-strcasestr.c: Likewise.
6847         * tests/test-c-strncasecmp.c: Likewise.
6848         * tests/test-c-strstr.c: Likewise.
6849         * tests/test-canonicalize-lgpl.c: Likewise.
6850         * tests/test-canonicalize.c: Likewise.
6851         * tests/test-carray_list.c: Likewise.
6852         * tests/test-ceilf.c: Likewise.
6853         * tests/test-ceill.c: Likewise.
6854         * tests/test-count-one-bits.c: Likewise.
6855         * tests/test-crc.c: Likewise.
6856         * tests/test-dirname.c: Likewise.
6857         * tests/test-fbufmode.c: Likewise.
6858         * tests/test-fcntl.c: Likewise.
6859         * tests/test-fflush.c: Likewise.
6860         * tests/test-floorf.c: Likewise.
6861         * tests/test-floorl.c: Likewise.
6862         * tests/test-fopen.c: Likewise.
6863         * tests/test-fprintf-posix.c: Likewise.
6864         * tests/test-fprintf-posix.h: Likewise.
6865         * tests/test-fpurge.c: Likewise.
6866         * tests/test-freadable.c: Likewise.
6867         * tests/test-freadahead.c: Likewise.
6868         * tests/test-freading.c: Likewise.
6869         * tests/test-freopen.c: Likewise.
6870         * tests/test-frexp.c: Likewise.
6871         * tests/test-frexpl.c: Likewise.
6872         * tests/test-fseek.c: Likewise.
6873         * tests/test-fseeko.c: Likewise.
6874         * tests/test-fseterr.c: Likewise.
6875         * tests/test-fstrcmp.c: Likewise.
6876         * tests/test-ftell.c: Likewise.
6877         * tests/test-ftello.c: Likewise.
6878         * tests/test-fwritable.c: Likewise.
6879         * tests/test-fwriting.c: Likewise.
6880         * tests/test-getaddrinfo.c: Likewise.
6881         * tests/test-getpass.c: Likewise.
6882         * tests/test-gettimeofday.c: Likewise.
6883         * tests/test-hmac-md5.c: Likewise.
6884         * tests/test-hmac-sha1.c: Likewise.
6885         * tests/test-iconv.c: Likewise.
6886         * tests/test-iconvme.c: Likewise.
6887         * tests/test-inttypes.c: Likewise.
6888         * tests/test-isnan.c: Likewise.
6889         * tests/test-isnanf.c: Likewise.
6890         * tests/test-isnanl-nolibm.c: Likewise.
6891         * tests/test-isnanl.c: Likewise.
6892         * tests/test-isnanl.h: Likewise.
6893         * tests/test-ldexpl.c: Likewise.
6894         * tests/test-linked_list.c: Likewise.
6895         * tests/test-linkedhash_list.c: Likewise.
6896         * tests/test-locale.c: Likewise.
6897         * tests/test-localename.c: Likewise.
6898         * tests/test-lock.c: Likewise.
6899         * tests/test-lseek.c: Likewise.
6900         * tests/test-malloca.c: Likewise.
6901         * tests/test-math.c: Likewise.
6902         * tests/test-mbscasecmp.c: Likewise.
6903         * tests/test-mbscasestr1.c: Likewise.
6904         * tests/test-mbscasestr2.c: Likewise.
6905         * tests/test-mbscasestr3.c: Likewise.
6906         * tests/test-mbscasestr4.c: Likewise.
6907         * tests/test-mbschr.c: Likewise.
6908         * tests/test-mbscspn.c: Likewise.
6909         * tests/test-mbsncasecmp.c: Likewise.
6910         * tests/test-mbspbrk.c: Likewise.
6911         * tests/test-mbspcasecmp.c: Likewise.
6912         * tests/test-mbsrchr.c: Likewise.
6913         * tests/test-mbsspn.c: Likewise.
6914         * tests/test-mbsstr1.c: Likewise.
6915         * tests/test-mbsstr2.c: Likewise.
6916         * tests/test-mbsstr3.c: Likewise.
6917         * tests/test-md5.c: Likewise.
6918         * tests/test-memmem.c: Likewise.
6919         * tests/test-netinet_in.c: Likewise.
6920         * tests/test-open.c: Likewise.
6921         * tests/test-printf-frexp.c: Likewise.
6922         * tests/test-printf-frexpl.c: Likewise.
6923         * tests/test-printf-posix.c: Likewise.
6924         * tests/test-printf-posix.h: Likewise.
6925         * tests/test-rbtree_list.c: Likewise.
6926         * tests/test-rbtree_oset.c: Likewise.
6927         * tests/test-rbtreehash_list.c: Likewise.
6928         * tests/test-read-file.c: Likewise.
6929         * tests/test-rijndael.c: Likewise.
6930         * tests/test-search.c: Likewise.
6931         * tests/test-signbit.c: Likewise.
6932         * tests/test-sleep.c: Likewise.
6933         * tests/test-snprintf-posix.c: Likewise.
6934         * tests/test-snprintf-posix.h: Likewise.
6935         * tests/test-snprintf.c: Likewise.
6936         * tests/test-sprintf-posix.c: Likewise.
6937         * tests/test-sprintf-posix.h: Likewise.
6938         * tests/test-stat-time.c: Likewise.
6939         * tests/test-stdbool.c: Likewise.
6940         * tests/test-stdint.c: Likewise.
6941         * tests/test-stdio.c: Likewise.
6942         * tests/test-stdlib.c: Likewise.
6943         * tests/test-stpncpy.c: Likewise.
6944         * tests/test-strcasestr.c: Likewise.
6945         * tests/test-striconv.c: Likewise.
6946         * tests/test-striconveh.c: Likewise.
6947         * tests/test-striconveha.c: Likewise.
6948         * tests/test-string.c: Likewise.
6949         * tests/test-sys_select.c: Likewise.
6950         * tests/test-sys_socket.c: Likewise.
6951         * tests/test-sys_stat.c: Likewise.
6952         * tests/test-sys_time.c: Likewise.
6953         * tests/test-sysexits.c: Likewise.
6954         * tests/test-time.c: Likewise.
6955         * tests/test-tls.c: Likewise.
6956         * tests/test-trunc.c: Likewise.
6957         * tests/test-truncf.c: Likewise.
6958         * tests/test-truncl.c: Likewise.
6959         * tests/test-unistd.c: Likewise.
6960         * tests/test-vasnprintf-posix.c: Likewise.
6961         * tests/test-vasnprintf-posix2.c: Likewise.
6962         * tests/test-vasnprintf.c: Likewise.
6963         * tests/test-vasprintf-posix.c: Likewise.
6964         * tests/test-vasprintf.c: Likewise.
6965         * tests/test-verify.c: Likewise.
6966         * tests/test-vfprintf-posix.c: Likewise.
6967         * tests/test-vprintf-posix.c: Likewise.
6968         * tests/test-vsnprintf-posix.c: Likewise.
6969         * tests/test-vsnprintf.c: Likewise.
6970         * tests/test-vsprintf-posix.c: Likewise.
6971         * tests/test-wchar.c: Likewise.
6972         * tests/test-wctype.c: Likewise.
6973         * tests/test-wcwidth.c: Likewise.
6974         * tests/test-xstrtol.c: Likewise.
6975         * tests/test-xvasprintf.c: Likewise.
6976         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
6977         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
6978         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
6979         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
6980         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
6981         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
6982         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
6983         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
6984         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
6985         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
6986         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
6987         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
6988         * tests/uniname/test-uninames.c: Likewise.
6989         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
6990         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
6991         * tests/unistdio/test-u16-printf1.h: Likewise.
6992         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
6993         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
6994         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
6995         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
6996         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
6997         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
6998         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
6999         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
7000         * tests/unistdio/test-u32-printf1.h: Likewise.
7001         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
7002         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
7003         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
7004         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
7005         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
7006         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
7007         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
7008         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
7009         * tests/unistdio/test-u8-printf1.h: Likewise.
7010         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
7011         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
7012         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
7013         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
7014         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
7015         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
7016         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
7017         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
7018         * tests/unistdio/test-ulc-printf1.h: Likewise.
7019         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
7020         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
7021         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
7022         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
7023         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
7024         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
7025         * tests/uniwidth/test-u16-strwidth.c: Likewise.
7026         * tests/uniwidth/test-u16-width.c: Likewise.
7027         * tests/uniwidth/test-u32-strwidth.c: Likewise.
7028         * tests/uniwidth/test-u32-width.c: Likewise.
7029         * tests/uniwidth/test-u8-strwidth.c: Likewise.
7030         * tests/uniwidth/test-u8-width.c: Likewise.
7031         * tests/uniwidth/test-uc_width.c: Likewise.
7032         * config/srclist-update: Likewise.
7033         (fixlicense): Update to GPLv3+.
7034
7035         Change copyright notice from LGPLv2.1+ to LGPLv3+.
7036         * tests/test-tsearch.c: Change copyright notice.
7037
7038         Change copyright notice from LGPLv2.0+ to LGPLv3+.
7039         * lib/c-strcaseeq.h: Change copyright notice.
7040         * lib/streq.h: Likewise.
7041         * lib/uniconv.h: Likewise.
7042         * lib/uniconv/u-conv-from-enc.h: Likewise.
7043         * lib/uniconv/u-conv-to-enc.h: Likewise.
7044         * lib/uniconv/u-strconv-from-enc.h: Likewise.
7045         * lib/uniconv/u-strconv-to-enc.h: Likewise.
7046         * lib/uniconv/u16-conv-from-enc.c: Likewise.
7047         * lib/uniconv/u16-conv-to-enc.c: Likewise.
7048         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
7049         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
7050         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
7051         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
7052         * lib/uniconv/u32-conv-from-enc.c: Likewise.
7053         * lib/uniconv/u32-conv-to-enc.c: Likewise.
7054         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
7055         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
7056         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
7057         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
7058         * lib/uniconv/u8-conv-from-enc.c: Likewise.
7059         * lib/uniconv/u8-conv-to-enc.c: Likewise.
7060         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
7061         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
7062         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
7063         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
7064         * lib/uniname.h: Likewise.
7065         * lib/uniname/uniname.c: Likewise.
7066         * lib/unistdio.h: Likewise.
7067         * lib/unistdio/u-asnprintf.h: Likewise.
7068         * lib/unistdio/u-asprintf.h: Likewise.
7069         * lib/unistdio/u-printf-args.c: Likewise.
7070         * lib/unistdio/u-printf-args.h: Likewise.
7071         * lib/unistdio/u-printf-parse.h: Likewise.
7072         * lib/unistdio/u-snprintf.h: Likewise.
7073         * lib/unistdio/u-sprintf.h: Likewise.
7074         * lib/unistdio/u-vasprintf.h: Likewise.
7075         * lib/unistdio/u-vsnprintf.h: Likewise.
7076         * lib/unistdio/u-vsprintf.h: Likewise.
7077         * lib/unistdio/u16-asnprintf.c: Likewise.
7078         * lib/unistdio/u16-asprintf.c: Likewise.
7079         * lib/unistdio/u16-printf-parse.c: Likewise.
7080         * lib/unistdio/u16-snprintf.c: Likewise.
7081         * lib/unistdio/u16-sprintf.c: Likewise.
7082         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
7083         * lib/unistdio/u16-u16-asprintf.c: Likewise.
7084         * lib/unistdio/u16-u16-snprintf.c: Likewise.
7085         * lib/unistdio/u16-u16-sprintf.c: Likewise.
7086         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
7087         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
7088         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
7089         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
7090         * lib/unistdio/u16-vasnprintf.c: Likewise.
7091         * lib/unistdio/u16-vasprintf.c: Likewise.
7092         * lib/unistdio/u16-vsnprintf.c: Likewise.
7093         * lib/unistdio/u16-vsprintf.c: Likewise.
7094         * lib/unistdio/u32-asnprintf.c: Likewise.
7095         * lib/unistdio/u32-asprintf.c: Likewise.
7096         * lib/unistdio/u32-printf-parse.c: Likewise.
7097         * lib/unistdio/u32-snprintf.c: Likewise.
7098         * lib/unistdio/u32-sprintf.c: Likewise.
7099         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
7100         * lib/unistdio/u32-u32-asprintf.c: Likewise.
7101         * lib/unistdio/u32-u32-snprintf.c: Likewise.
7102         * lib/unistdio/u32-u32-sprintf.c: Likewise.
7103         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
7104         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
7105         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
7106         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
7107         * lib/unistdio/u32-vasnprintf.c: Likewise.
7108         * lib/unistdio/u32-vasprintf.c: Likewise.
7109         * lib/unistdio/u32-vsnprintf.c: Likewise.
7110         * lib/unistdio/u32-vsprintf.c: Likewise.
7111         * lib/unistdio/u8-asnprintf.c: Likewise.
7112         * lib/unistdio/u8-asprintf.c: Likewise.
7113         * lib/unistdio/u8-printf-parse.c: Likewise.
7114         * lib/unistdio/u8-snprintf.c: Likewise.
7115         * lib/unistdio/u8-sprintf.c: Likewise.
7116         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
7117         * lib/unistdio/u8-u8-asprintf.c: Likewise.
7118         * lib/unistdio/u8-u8-snprintf.c: Likewise.
7119         * lib/unistdio/u8-u8-sprintf.c: Likewise.
7120         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
7121         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
7122         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
7123         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
7124         * lib/unistdio/u8-vasnprintf.c: Likewise.
7125         * lib/unistdio/u8-vasprintf.c: Likewise.
7126         * lib/unistdio/u8-vsnprintf.c: Likewise.
7127         * lib/unistdio/u8-vsprintf.c: Likewise.
7128         * lib/unistdio/ulc-asnprintf.c: Likewise.
7129         * lib/unistdio/ulc-asprintf.c: Likewise.
7130         * lib/unistdio/ulc-printf-parse.c: Likewise.
7131         * lib/unistdio/ulc-snprintf.c: Likewise.
7132         * lib/unistdio/ulc-sprintf.c: Likewise.
7133         * lib/unistdio/ulc-vasnprintf.c: Likewise.
7134         * lib/unistdio/ulc-vasprintf.c: Likewise.
7135         * lib/unistdio/ulc-vsnprintf.c: Likewise.
7136         * lib/unistdio/ulc-vsprintf.c: Likewise.
7137         * lib/unistr.h: Likewise.
7138         * lib/unistr/u-cpy-alloc.h: Likewise.
7139         * lib/unistr/u-cpy.h: Likewise.
7140         * lib/unistr/u-endswith.h: Likewise.
7141         * lib/unistr/u-move.h: Likewise.
7142         * lib/unistr/u-set.h: Likewise.
7143         * lib/unistr/u-startswith.h: Likewise.
7144         * lib/unistr/u-stpcpy.h: Likewise.
7145         * lib/unistr/u-stpncpy.h: Likewise.
7146         * lib/unistr/u-strcat.h: Likewise.
7147         * lib/unistr/u-strcpy.h: Likewise.
7148         * lib/unistr/u-strcspn.h: Likewise.
7149         * lib/unistr/u-strdup.h: Likewise.
7150         * lib/unistr/u-strlen.h: Likewise.
7151         * lib/unistr/u-strncat.h: Likewise.
7152         * lib/unistr/u-strncpy.h: Likewise.
7153         * lib/unistr/u-strnlen.h: Likewise.
7154         * lib/unistr/u-strpbrk.h: Likewise.
7155         * lib/unistr/u-strspn.h: Likewise.
7156         * lib/unistr/u-strstr.h: Likewise.
7157         * lib/unistr/u-strtok.h: Likewise.
7158         * lib/unistr/u16-check.c: Likewise.
7159         * lib/unistr/u16-chr.c: Likewise.
7160         * lib/unistr/u16-cmp.c: Likewise.
7161         * lib/unistr/u16-cpy-alloc.c: Likewise.
7162         * lib/unistr/u16-cpy.c: Likewise.
7163         * lib/unistr/u16-endswith.c: Likewise.
7164         * lib/unistr/u16-mblen.c: Likewise.
7165         * lib/unistr/u16-mbsnlen.c: Likewise.
7166         * lib/unistr/u16-mbtouc-aux.c: Likewise.
7167         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
7168         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
7169         * lib/unistr/u16-mbtouc.c: Likewise.
7170         * lib/unistr/u16-mbtoucr.c: Likewise.
7171         * lib/unistr/u16-move.c: Likewise.
7172         * lib/unistr/u16-next.c: Likewise.
7173         * lib/unistr/u16-prev.c: Likewise.
7174         * lib/unistr/u16-set.c: Likewise.
7175         * lib/unistr/u16-startswith.c: Likewise.
7176         * lib/unistr/u16-stpcpy.c: Likewise.
7177         * lib/unistr/u16-stpncpy.c: Likewise.
7178         * lib/unistr/u16-strcat.c: Likewise.
7179         * lib/unistr/u16-strchr.c: Likewise.
7180         * lib/unistr/u16-strcmp.c: Likewise.
7181         * lib/unistr/u16-strcpy.c: Likewise.
7182         * lib/unistr/u16-strcspn.c: Likewise.
7183         * lib/unistr/u16-strdup.c: Likewise.
7184         * lib/unistr/u16-strlen.c: Likewise.
7185         * lib/unistr/u16-strmblen.c: Likewise.
7186         * lib/unistr/u16-strmbtouc.c: Likewise.
7187         * lib/unistr/u16-strncat.c: Likewise.
7188         * lib/unistr/u16-strncmp.c: Likewise.
7189         * lib/unistr/u16-strncpy.c: Likewise.
7190         * lib/unistr/u16-strnlen.c: Likewise.
7191         * lib/unistr/u16-strpbrk.c: Likewise.
7192         * lib/unistr/u16-strrchr.c: Likewise.
7193         * lib/unistr/u16-strspn.c: Likewise.
7194         * lib/unistr/u16-strstr.c: Likewise.
7195         * lib/unistr/u16-strtok.c: Likewise.
7196         * lib/unistr/u16-to-u32.c: Likewise.
7197         * lib/unistr/u16-to-u8.c: Likewise.
7198         * lib/unistr/u16-uctomb-aux.c: Likewise.
7199         * lib/unistr/u16-uctomb.c: Likewise.
7200         * lib/unistr/u32-check.c: Likewise.
7201         * lib/unistr/u32-chr.c: Likewise.
7202         * lib/unistr/u32-cmp.c: Likewise.
7203         * lib/unistr/u32-cpy-alloc.c: Likewise.
7204         * lib/unistr/u32-cpy.c: Likewise.
7205         * lib/unistr/u32-endswith.c: Likewise.
7206         * lib/unistr/u32-mblen.c: Likewise.
7207         * lib/unistr/u32-mbsnlen.c: Likewise.
7208         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
7209         * lib/unistr/u32-mbtouc.c: Likewise.
7210         * lib/unistr/u32-mbtoucr.c: Likewise.
7211         * lib/unistr/u32-move.c: Likewise.
7212         * lib/unistr/u32-next.c: Likewise.
7213         * lib/unistr/u32-prev.c: Likewise.
7214         * lib/unistr/u32-set.c: Likewise.
7215         * lib/unistr/u32-startswith.c: Likewise.
7216         * lib/unistr/u32-stpcpy.c: Likewise.
7217         * lib/unistr/u32-stpncpy.c: Likewise.
7218         * lib/unistr/u32-strcat.c: Likewise.
7219         * lib/unistr/u32-strchr.c: Likewise.
7220         * lib/unistr/u32-strcmp.c: Likewise.
7221         * lib/unistr/u32-strcpy.c: Likewise.
7222         * lib/unistr/u32-strcspn.c: Likewise.
7223         * lib/unistr/u32-strdup.c: Likewise.
7224         * lib/unistr/u32-strlen.c: Likewise.
7225         * lib/unistr/u32-strmblen.c: Likewise.
7226         * lib/unistr/u32-strmbtouc.c: Likewise.
7227         * lib/unistr/u32-strncat.c: Likewise.
7228         * lib/unistr/u32-strncmp.c: Likewise.
7229         * lib/unistr/u32-strncpy.c: Likewise.
7230         * lib/unistr/u32-strnlen.c: Likewise.
7231         * lib/unistr/u32-strpbrk.c: Likewise.
7232         * lib/unistr/u32-strrchr.c: Likewise.
7233         * lib/unistr/u32-strspn.c: Likewise.
7234         * lib/unistr/u32-strstr.c: Likewise.
7235         * lib/unistr/u32-strtok.c: Likewise.
7236         * lib/unistr/u32-to-u16.c: Likewise.
7237         * lib/unistr/u32-to-u8.c: Likewise.
7238         * lib/unistr/u32-uctomb.c: Likewise.
7239         * lib/unistr/u8-check.c: Likewise.
7240         * lib/unistr/u8-chr.c: Likewise.
7241         * lib/unistr/u8-cmp.c: Likewise.
7242         * lib/unistr/u8-cpy-alloc.c: Likewise.
7243         * lib/unistr/u8-cpy.c: Likewise.
7244         * lib/unistr/u8-endswith.c: Likewise.
7245         * lib/unistr/u8-mblen.c: Likewise.
7246         * lib/unistr/u8-mbsnlen.c: Likewise.
7247         * lib/unistr/u8-mbtouc-aux.c: Likewise.
7248         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
7249         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
7250         * lib/unistr/u8-mbtouc.c: Likewise.
7251         * lib/unistr/u8-mbtoucr.c: Likewise.
7252         * lib/unistr/u8-move.c: Likewise.
7253         * lib/unistr/u8-next.c: Likewise.
7254         * lib/unistr/u8-prev.c: Likewise.
7255         * lib/unistr/u8-set.c: Likewise.
7256         * lib/unistr/u8-startswith.c: Likewise.
7257         * lib/unistr/u8-stpcpy.c: Likewise.
7258         * lib/unistr/u8-stpncpy.c: Likewise.
7259         * lib/unistr/u8-strcat.c: Likewise.
7260         * lib/unistr/u8-strchr.c: Likewise.
7261         * lib/unistr/u8-strcmp.c: Likewise.
7262         * lib/unistr/u8-strcpy.c: Likewise.
7263         * lib/unistr/u8-strcspn.c: Likewise.
7264         * lib/unistr/u8-strdup.c: Likewise.
7265         * lib/unistr/u8-strlen.c: Likewise.
7266         * lib/unistr/u8-strmblen.c: Likewise.
7267         * lib/unistr/u8-strmbtouc.c: Likewise.
7268         * lib/unistr/u8-strncat.c: Likewise.
7269         * lib/unistr/u8-strncmp.c: Likewise.
7270         * lib/unistr/u8-strncpy.c: Likewise.
7271         * lib/unistr/u8-strnlen.c: Likewise.
7272         * lib/unistr/u8-strpbrk.c: Likewise.
7273         * lib/unistr/u8-strrchr.c: Likewise.
7274         * lib/unistr/u8-strspn.c: Likewise.
7275         * lib/unistr/u8-strstr.c: Likewise.
7276         * lib/unistr/u8-strtok.c: Likewise.
7277         * lib/unistr/u8-to-u16.c: Likewise.
7278         * lib/unistr/u8-to-u32.c: Likewise.
7279         * lib/unistr/u8-uctomb-aux.c: Likewise.
7280         * lib/unistr/u8-uctomb.c: Likewise.
7281         * lib/unitypes.h: Likewise.
7282         * lib/uniwidth.h: Likewise.
7283         * lib/uniwidth/cjk.h: Likewise.
7284         * lib/uniwidth/u16-strwidth.c: Likewise.
7285         * lib/uniwidth/u16-width.c: Likewise.
7286         * lib/uniwidth/u32-strwidth.c: Likewise.
7287         * lib/uniwidth/u32-width.c: Likewise.
7288         * lib/uniwidth/u8-strwidth.c: Likewise.
7289         * lib/uniwidth/u8-width.c: Likewise.
7290         * lib/uniwidth/width.c: Likewise.
7291
7292 2007-10-07  Bruno Haible  <bruno@clisp.org>
7293
7294         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
7295         The file is still under LGPL (see modules/inttypes).
7296
7297 2007-10-06  Bruno Haible  <bruno@clisp.org>
7298
7299         * modules/trunc (Dependencies): Add 'extensions'.
7300         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
7301         Reported by Ben Pfaff <blp@gnu.org>.
7302
7303 2007-10-06  Bruno Haible  <bruno@clisp.org>
7304
7305         * modules/freopen-tests: New file.
7306         * tests/test-freopen.c: New file.
7307
7308         * modules/fopen-tests: New file.
7309         * tests/test-fopen.c: New file.
7310
7311         * modules/fopen: New file.
7312         * lib/fopen.c: New file.
7313         * m4/fopen.m4: New file.
7314         * modules/freopen: New file.
7315         * lib/freopen.c: New file.
7316         * m4/freopen.m4: New file.
7317         * lib/stdio.in.h (fopen, freopen): New declarations.
7318         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
7319         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
7320         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
7321         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
7322         * doc/functions/fopen.texi: Mention the 'fopen' module.
7323         * doc/functions/freopen.texi: Mention the 'freopen' module.
7324
7325 2007-10-06  Bruno Haible  <bruno@clisp.org>
7326
7327         * modules/open-tests: New file.
7328         * tests/test-open.c: New file.
7329
7330         * modules/open: New file.
7331         * lib/open.c: New file.
7332         * m4/open.m4: New file.
7333         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
7334         lib/open.c does.
7335         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
7336         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
7337         macros.
7338         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
7339         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
7340         REPLACE_OPEN.
7341         * doc/functions/open.texi: Mention the 'open' module.
7342
7343 2007-10-04  Bruno Haible  <bruno@clisp.org>
7344
7345         * modules/ceill-tests: New file.
7346         * tests/test-ceill.c: New file.
7347
7348         * modules/ceill: New file.
7349         * lib/ceill.c: Replace entire file.
7350         * m4/ceill.m4: New file.
7351         * lib/math.in.h (ceill): Replace declaration.
7352         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
7353         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
7354         * doc/functions/ceill.texi: Mention the 'ceill' module.
7355         * modules/mathl (Files): Remove lib/ceill.c.
7356         (Depends-on): Add ceill.
7357
7358 2007-10-04  Bruno Haible  <bruno@clisp.org>
7359
7360         * modules/ceilf-tests: New file.
7361         * tests/test-ceilf.c: New file.
7362
7363         * modules/ceilf: New file.
7364         * lib/ceil.c: New file.
7365         * lib/ceilf.c: New file.
7366         * m4/ceilf.m4: New file.
7367         * lib/math.in.h (ceilf): New declaration.
7368         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
7369         HAVE_DECL_CEILF.
7370         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
7371         HAVE_DECL_CEILF.
7372         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
7373
7374 2007-10-04  Bruno Haible  <bruno@clisp.org>
7375
7376         * modules/floorl-tests: New file.
7377         * tests/test-floorl.c: New file.
7378
7379         * modules/floorl: New file.
7380         * lib/floorl.c: Replace entire file.
7381         * m4/floorl.m4: New file.
7382         * lib/math.in.h (floorl): Replace declaration.
7383         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
7384         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
7385         * doc/functions/floorl.texi: Mention the 'floorl' module.
7386         * modules/mathl (Files): Remove lib/floorl.c.
7387         (Depends-on): Add floorl.
7388
7389 2007-10-04  Bruno Haible  <bruno@clisp.org>
7390
7391         * modules/floorf-tests: New file.
7392         * tests/test-floorf.c: New file.
7393
7394         * modules/floorf: New file.
7395         * lib/floor.c: New file.
7396         * lib/floorf.c: New file.
7397         * m4/floorf.m4: New file.
7398         * lib/math.in.h (floorf): New declaration.
7399         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
7400         HAVE_DECL_FLOORF.
7401         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
7402         HAVE_DECL_FLOORF.
7403         * doc/functions/floorf.texi: Mention the 'floorf' module.
7404
7405 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
7406             Bruno Haible  <bruno@clisp.org>
7407
7408         Advertise for the Git server instead of the CVS server.
7409         * doc/gnulib-intro.texi (Steady Development): Mention the Git
7410         repository instead of the CVS one.
7411         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
7412         about all VCS systems generically.
7413         * doc/gnulib.texi (Introduction): Capitalize `Git'.
7414
7415 2007-10-04  Bruno Haible  <bruno@clisp.org>
7416
7417         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
7418         means.
7419         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
7420
7421 2007-10-04  Bruno Haible  <bruno@clisp.org>
7422
7423         * modules/truncl-tests: New file.
7424         * tests/test-truncl.c: New file.
7425
7426         * modules/truncl: New file.
7427         * lib/truncl.c: New file.
7428         * m4/truncl.m4: New file.
7429         * lib/math.in.h (truncl): New declaration.
7430         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
7431         HAVE_DECL_TRUNCL.
7432         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
7433         HAVE_DECL_TRUNCL.
7434         * doc/functions/truncl.texi: Mention the 'truncl' module.
7435
7436 2007-10-04  Bruno Haible  <bruno@clisp.org>
7437
7438         * modules/truncf-tests: New file.
7439         * tests/test-truncf.c: New file.
7440
7441         * modules/truncf: New file.
7442         * lib/trunc.c: Make paramerizable through USE_* macros.
7443         * lib/truncf.c: New file.
7444         * m4/truncf.m4: New file.
7445         * lib/math.in.h (truncf): New declaration.
7446         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
7447         HAVE_DECL_TRUNCF.
7448         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
7449         HAVE_DECL_TRUNCF.
7450         * doc/functions/truncf.texi: Mention the 'truncf' module.
7451
7452 2007-10-03  Bruno Haible  <bruno@clisp.org>
7453
7454         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
7455         augmentation also for tests modules.
7456         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
7457         * modules/atexit-tests (Makefile.am): Likewise.
7458         * modules/binary-io-tests (Makefile.am): Likewise.
7459         * modules/c-strcase-tests (Makefile.am): Likewise.
7460         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
7461         * modules/canonicalize-tests (Makefile.am): Likewise.
7462         * modules/closein-tests (Makefile.am): Likewise.
7463         * modules/fprintf-posix-tests (Makefile.am): Likewise.
7464         * modules/freadahead-tests (Makefile.am): Likewise.
7465         * modules/fseek-tests (Makefile.am): Likewise.
7466         * modules/fseeko-tests (Makefile.am): Likewise.
7467         * modules/ftell-tests (Makefile.am): Likewise.
7468         * modules/ftello-tests (Makefile.am): Likewise.
7469         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
7470         * modules/isnanl-tests (Makefile.am): Likewise.
7471         * modules/lseek-tests (Makefile.am): Likewise.
7472         * modules/mbscasecmp-tests (Makefile.am): Likewise.
7473         * modules/mbscasestr-tests (Makefile.am): Likewise.
7474         * modules/mbschr-tests (Makefile.am): Likewise.
7475         * modules/mbscspn-tests (Makefile.am): Likewise.
7476         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
7477         * modules/mbspbrk-tests (Makefile.am): Likewise.
7478         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
7479         * modules/mbsrchr-tests (Makefile.am): Likewise.
7480         * modules/mbsspn-tests (Makefile.am): Likewise.
7481         * modules/mbsstr-tests (Makefile.am): Likewise.
7482         * modules/printf-posix-tests (Makefile.am): Likewise.
7483         * modules/snprintf-posix-tests (Makefile.am): Likewise.
7484         * modules/sprintf-posix-tests (Makefile.am): Likewise.
7485         * modules/tsearch-tests (Makefile.am): Likewise.
7486         * modules/uniname/uniname-tests (Makefile.am): Likewise.
7487         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
7488         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
7489         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
7490         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
7491         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
7492         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
7493         * modules/vprintf-posix-tests (Makefile.am): Likewise.
7494         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
7495         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
7496         * modules/xstrtoimax-tests (Makefile.am): Likewise.
7497         * modules/xstrtol-tests (Makefile.am): Likewise.
7498         * modules/xstrtoumax-tests (Makefile.am): Likewise.
7499         * modules/yesno-tests (Makefile.am): Likewise.
7500
7501 2007-10-03  Bruno Haible  <bruno@clisp.org>
7502
7503         * modules/trunc-tests: New file.
7504         * tests/test-trunc.c: New file.
7505
7506         * modules/trunc: New file.
7507         * lib/trunc.c: New file.
7508         * m4/trunc.m4: New file.
7509         * lib/math.in.h (trunc): New declaration.
7510         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
7511         HAVE_DECL_TRUNC.
7512         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
7513         HAVE_DECL_TRUNC.
7514         * doc/functions/trunc.texi: Mention the 'trunc' module.
7515
7516 2007-10-03  Bruno Haible  <bruno@clisp.org>
7517
7518         * tests/test-fpending.c: New file, mostly copied
7519         from coreutils/lib/t-fpending.c.
7520         * modules/fpending-tests: New file.
7521
7522 2007-10-03  Bruno Haible  <bruno@clisp.org>
7523
7524         Port the stdio extensions to QNX (untested).
7525         * lib/fseterr.c (fseterr): Add support for QNX.
7526         * lib/fbufmode.c (fbufmode): Likewise.
7527         * lib/freadable.c (freadable): Likewise.
7528         * lib/fwritable.c (fwritable): Likewise.
7529         * lib/freading.c (freading): Likewise.
7530         * lib/fwriting.c (fwriting): Likewise.
7531         * lib/freadahead.c (freadahed): Likewise.
7532         * lib/fpurge.c (fpurge): Likewise.
7533         * lib/fseeko.c (rpl_fseeko): Likewise.
7534
7535 2007-10-03  Bruno Haible  <bruno@clisp.org>
7536             Jim Meyering  <jim@meyering.net>
7537             Eric Blake  <ebb9@byu.net>
7538
7539         * doc/relocatable.texi: Use @command instead of @program.
7540
7541 2007-10-02  Jim Meyering  <jim@meyering.net>
7542
7543         Perform one more "_.h" -> ".in.h" substitution.
7544         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
7545         instead of unistd_.h here, too.
7546
7547 2007-10-01  Bruno Haible  <bruno@clisp.org>
7548
7549         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
7550         Needed for the alloca-opt module.
7551
7552 2007-09-30  Bruno Haible  <bruno@clisp.org>
7553
7554         * lib/alloca.in.h: Renamed from lib/alloca_.h.
7555         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
7556         alloca_.h.
7557         * lib/argz.in.h: Renamed from lib/argz_.h.
7558         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
7559         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
7560         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
7561         byteswap_.h.
7562         * lib/dirent.in.h: Renamed from lib/dirent_.h.
7563         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
7564         dirent_.h.
7565         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
7566         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
7567         fcntl_.h.
7568         * lib/float.in.h: Renamed from lib/float_.h.
7569         * modules/float (Files, Makefile.am): Use float.in.h instead of
7570         float_.h.
7571         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
7572         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
7573         fnmatch_.h.
7574         * lib/getopt.in.h: Renamed from lib/getopt_.h.
7575         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
7576         getopt_.h.
7577         * lib/glob.in.h: Renamed from lib/glob_.h.
7578         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
7579         * lib/iconv.in.h: Renamed from lib/iconv_.h.
7580         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
7581         iconv_.h.
7582         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
7583         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
7584         inttypes_.h.
7585         * lib/locale.in.h: Renamed from lib/locale_.h.
7586         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
7587         locale_.h.
7588         * lib/math.in.h: Renamed from lib/math_.h.
7589         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
7590         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
7591         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
7592         of netinet_in_.h. Add dependency.
7593         * lib/poll.in.h: Renamed from lib/poll_.h.
7594         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
7595         * lib/search.in.h: Renamed from lib/search_.h.
7596         * modules/search (Files, Makefile.am): Use search.in.h instead of
7597         search_.h.
7598         * lib/signal.in.h: Renamed from lib/signal_.h.
7599         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
7600         _signal.h.
7601         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
7602         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
7603         stdbool_.h.
7604         * lib/stdint.in.h: Renamed from lib/stdint_.h.
7605         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
7606         stdint_.h.
7607         * lib/stdio.in.h: Renamed from lib/stdio_.h.
7608         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
7609         stdio_.h.
7610         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
7611         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
7612         stdlib_.h.
7613         * lib/string.in.h: Renamed from lib/string_.h.
7614         * modules/string (Files, Makefile.am): Use string.in.h instead of
7615         string_.h.
7616         * doc/gnulib-tool.texi (Initial import): Update.
7617         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
7618         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
7619         of sys_select_.h. Add dependency.
7620         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
7621         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
7622         of sys_socket_.h.
7623         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
7624         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
7625         sys_stat_.h.
7626         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
7627         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
7628         sys_time_.h.
7629         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
7630         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
7631         sysexits_.h.
7632         * lib/time.in.h: Renamed from lib/time_.h.
7633         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
7634         * lib/unistd.in.h: Renamed from lib/unistd_.h.
7635         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
7636         unistd_.h.
7637         * lib/wchar.in.h: Renamed from lib/wchar_.h.
7638         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
7639         wchar_.h.
7640         * lib/wctype.in.h: Renamed from lib/wctype_.h.
7641         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
7642         wctype_.h.
7643         * build-aux/bootstrap (slurp): Update.
7644         * lib/.cppi-disable: Update.
7645
7646 2007-09-30  Bruno Haible  <bruno@clisp.org>
7647
7648         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
7649         Needed on BeOS.
7650
7651 2007-09-30  Bruno Haible  <bruno@clisp.org>
7652
7653         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
7654
7655 2007-09-29  Bruno Haible  <bruno@clisp.org>
7656
7657         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
7658
7659 2007-09-29  Bruno Haible  <bruno@clisp.org>
7660
7661         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
7662         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
7663         * build-aux/install-reloc: Compile also areadlink.c.
7664         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
7665
7666 2007-09-29  Bruno Haible  <bruno@clisp.org>
7667
7668         * gnulib-tool (func_emit_initmacro_done): Indentation.
7669
7670 2007-09-29  Bruno Haible  <bruno@clisp.org>
7671
7672         * README: Add CVS checkout update instructions.
7673         Info from Bob Proulx <bob@proulx.com>.
7674
7675 2007-09-28  Eric Blake  <ebb9@byu.net>
7676
7677         Provide move-if-change.
7678         * build-aux/move-if-change: New file, based on best practice
7679         rather than any canonical upstream location.
7680
7681 2007-09-28  Jim Meyering  <jim@meyering.net>
7682
7683         Fix canonicalize loop-detection corner case.
7684         Do not attempt to stat the symlink values stored via seen_triple.
7685         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
7686         on linux-2.6.18, (but not 2.6.22).
7687         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
7688         triple_compare.  The former compares dev,ino,filename, while the latter
7689         would actually stat dirname(filename) when dev and ino were equal.
7690         * lib/hash-triple.c: Install <string.h>.
7691         (STREQ): Define.
7692         (triple_compare_ino_str): New function.
7693         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
7694
7695 2007-09-28  Eric Blake  <ebb9@byu.net>
7696
7697         Enforce that AC_REPLACE_FUNCS files exist.
7698         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
7699         override check for typos.
7700
7701         Fix test-closein on Solaris 10.
7702         * tests/test-closein.c (main): Don't assume stdin can be inherited
7703         closed on all systems.
7704         * tests/test-closein.sh: Likewise.
7705         Reported by Piotr Tarnowski.
7706
7707 2007-09-28  Jim Meyering  <jim@meyering.net>
7708
7709         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
7710
7711 2007-09-27  Jim Meyering  <jim@meyering.net>
7712
7713         canonicalize: Avoid a false-positive cycle failure.
7714         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
7715         Sort.  Remove cycle-check.
7716         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
7717         not cycle-check.h.
7718         (seen_triple): New function.
7719         (canonicalize_filename_mode): Use it instead of cycle-check.
7720         * tests/test-canonicalize.c: Add a test for this bug.
7721         * tests/test-canonicalize.sh: Set up and run the test.
7722
7723         New module, file-set, from coreutils.
7724         * modules/file-set: Define it.
7725         * lib/file-set.c, lib/file-set.h: Implement.
7726
7727         New module, hash-triple, from coreutils.
7728         * modules/hash-triple: Define it.
7729         * lib/hash-triple.c, lib/hash-triple.h: Implement.
7730
7731 2007-09-25  Eric Blake  <ebb9@byu.net>
7732
7733         Fix strerror on Interix.
7734         * lib/string_.h (strerror): Declare replacement.
7735         * doc/functions/strerror.texi (strerror): Document the Interix
7736         shortcoming.
7737         * modules/string (Makefile.am): Support new hooks.
7738         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
7739         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
7740         gl_FUNC_STRERROR_SEPARATE.
7741         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
7742         * lib/strerror.c (rpl_strerror): Provide replacement.
7743         * modules/strerror (Depends-on): Add string.
7744         (configure.ac): Detect use of module.
7745         * tests/test-strerror.c: New file.
7746         * modules/strerror-tests: New test module.
7747         * modules/argp (Depends-on): Add strerror.
7748         * modules/error (Depends-on): Likewise.
7749         Reported by Martin Koeppe.
7750
7751 2007-09-24  Bruno Haible  <bruno@clisp.org>
7752
7753         * README: Update git instructions.
7754
7755 2007-09-24  Eric Blake  <ebb9@byu.net>
7756
7757         Revert fpending breakage from 2007-09-08.
7758         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
7759         __fpending.c.
7760
7761 2007-09-24  Jim Meyering  <jim@meyering.net>
7762
7763         filenamecat.c: Add a test.
7764         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
7765         showing how the function works when DIR is the empty string.
7766
7767 2007-09-21  Simon Josefsson  <simon@josefsson.org>
7768
7769         * tests/test-canonicalize.sh: Turn on executable bit.
7770
7771 2007-09-19  Eric Blake  <ebb9@byu.net>
7772
7773         * README: Update CVS instructions.
7774
7775 2007-09-18  Bruno Haible  <bruno@clisp.org>
7776
7777         * modules/areadlink: New file.
7778         * lib/areadlink.h (areadlink): New declaration.
7779         * lib/areadlink.c: New file, based on lib/xreadlink.c.
7780
7781 2007-09-17  Jim Meyering  <jim@meyering.net>
7782
7783         * lib/savewd.c (ESTALE) [!defined]: Define.
7784         Reported to be required on Interix by Martin Koeppe.
7785
7786 2007-09-17  Bruno Haible  <bruno@clisp.org>
7787
7788         * gnulib-tool (func_version): Use $version.
7789
7790 2007-09-16  Bruno Haible  <bruno@clisp.org>
7791
7792         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
7793         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
7794         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
7795         Reported by Greg Schafer <gschafer@zip.com.au>.
7796
7797 2007-09-15  Bruno Haible  <bruno@clisp.org>
7798
7799         * gnulib-tool (sed): Try a little harder to make bash understand the
7800         alias.
7801         Reported by Bruce Korb <bruce.korb@gmail.com>.
7802
7803 2007-09-13  Eric Blake  <ebb9@byu.net>
7804
7805         * ChangeLog: Remove conflict markers.
7806
7807 2007-09-13  Simon Josefsson  <simon@josefsson.org>
7808
7809         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
7810         Reported by Bruno Haible <bruno@clisp.org>.
7811
7812 2007-09-12  Bruno Haible  <bruno@clisp.org>
7813
7814         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
7815         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
7816         is not defined.
7817
7818 2007-09-12  Eric Blake  <ebb9@byu.net>
7819
7820         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
7821         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
7822         Autoconf definition.
7823         * modules/euidaccess (Depends-on): Add extensions, for
7824         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
7825         * modules/fnmatch (Depends-on): Likewise.
7826         * modules/getaddrinfo (Depends-on): Likewise.
7827         * modules/getdelim (Depends-on): Likewise.
7828         * modules/getline (Depends-on): Likewise.
7829         * modules/getsubopt (Depends-on): Likewise.
7830         * modules/gettext (Depends-on): Likewise.
7831         * modules/group-member (Depends-on): Likewise.
7832         * modules/mbchar (Depends-on): Likewise.
7833         * modules/memmem (Depends-on): Likewise.
7834         * modules/mempcpy (Depends-on): Likewise.
7835         * modules/memrchr (Depends-on): Likewise.
7836         * modules/pagealign_alloc (Depends-on): Likewise.
7837         * modules/readutmp (Depends-on): Likewise.
7838         * modules/stpcpy (Depends-on): Likewise.
7839         * modules/stpncpy (Depends-on): Likewise.
7840         * modules/strchrnul (Depends-on): Likewise.
7841         * modules/strndup (Depends-on): Likewise.
7842         * modules/strsep (Depends-on): Likewise.
7843         * modules/strverscmp (Depends-on): Likewise.
7844         * modules/vasprintf (Depends-on): Likewise.
7845         * modules/wcwidth (Depends-on): Likewise.
7846         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
7847         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
7848         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
7849         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
7850         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7851         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7852         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
7853         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
7854         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
7855         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
7856         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
7857         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
7858         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
7859         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
7860         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
7861         * m4/readutmp.m4 (gl_READUTMP): Likewise.
7862         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
7863         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
7864         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
7865         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
7866         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
7867         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
7868         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
7869         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
7870         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
7871         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7872         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
7873         so that lock.m4 can be used in gettext without extensions module.
7874
7875 2007-09-11  Bruno Haible  <bruno@clisp.org>
7876
7877         * m4/isc-posix.m4: Remove file.
7878         Suggested by Eric Blake.
7879
7880 2007-09-11  Eric Blake  <ebb9@byu.net>
7881
7882         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
7883
7884 2007-09-10  Bruno Haible  <bruno@clisp.org>
7885
7886         * posix-modules: Fix typo in error message.
7887         Reported by Matt <mkraai@beckman.com>.
7888
7889 2007-09-09  Bruno Haible  <bruno@clisp.org>
7890
7891         * doc/functions/getdelim.texi: Update list of platforms lacking the
7892         function.
7893         * doc/functions/getline.texi: Likewise.
7894
7895 2007-09-09  Jim Meyering  <jim@meyering.net>
7896
7897         * lib/hash.c (hash_initialize): Detect calloc failure.
7898         Reported by Bruno Haible.
7899
7900 2007-09-09  Bruno Haible  <bruno@clisp.org>
7901
7902         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
7903         malloc or realloc fails.
7904
7905 2007-09-09  Bruno Haible  <bruno@clisp.org>
7906
7907         * modules/getcwd (Depends-on): Add malloc-posix.
7908         * modules/glob (Depends-on): Likewise.
7909         * modules/putenv (Depends-on): Likewise.
7910         * modules/strdup (Depends-on): Likewise.
7911         * modules/getdelim (Depends-on): Add realloc-posix.
7912         * modules/read-file (Depends-on): Likewise.
7913
7914 2007-09-09  Bruno Haible  <bruno@clisp.org>
7915
7916         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
7917         (gl_FUNC_MALLOC_POSIX): Require it.
7918         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
7919         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
7920         * modules/realloc (Files): Add m4/malloc.m4.
7921         * modules/calloc (Files): Likewise.
7922
7923 2007-09-09  Bruno Haible  <bruno@clisp.org>
7924
7925         * modules/malloc-posix: New file.
7926         * modules/malloc (Depends-on): Add malloc-posix.
7927         * lib/malloc.c: Include errno.h.
7928         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
7929         and a POSIX-compatible malloc into a single function. Set ENOMEM
7930         when returning NULL.
7931         * m4/malloc.m4: New file.
7932         * doc/functions/malloc.texi: Mention the malloc-posix module.
7933         * lib/stdlib_.h (malloc): New declaration.
7934         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
7935         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
7936         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
7937         and HAVE_MALLOC_POSIX.
7938
7939 2007-09-09  Bruno Haible  <bruno@clisp.org>
7940
7941         * modules/realloc-posix: New file.
7942         * modules/realloc (Depends-on): Add realloc-posix.
7943         * lib/realloc.c: Include errno.h.
7944         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
7945         and a POSIX-compatible realloc into a single function. Set ENOMEM
7946         when returning NULL.
7947         * m4/realloc.m4: New file.
7948         * doc/functions/realloc.texi: Mention the realloc-posix module.
7949         * lib/stdlib_.h (realloc): New declaration.
7950         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
7951         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
7952         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
7953         and HAVE_REALLOC_POSIX.
7954
7955 2007-09-09  Bruno Haible  <bruno@clisp.org>
7956
7957         * modules/calloc-posix: New file.
7958         * modules/calloc (Depends-on): Add calloc-posix.
7959         * lib/calloc.c: Include errno.h.
7960         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
7961         and a POSIX-compatible calloc into a single function. Set ENOMEM
7962         when returning NULL.
7963         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
7964         * doc/functions/calloc.texi: Mention the calloc-posix module.
7965         * lib/stdlib_.h (calloc): New declaration.
7966         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
7967         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
7968         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
7969         and HAVE_CALLOC_POSIX.
7970
7971 2007-09-09  Bruno Haible  <bruno@clisp.org>
7972
7973         Allow for modules to show an arbitrary notice.
7974         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
7975         * gnulib-tool: New option --extract-notice.
7976         (func_usage): Document it.
7977         (sed_extract_prog): Update.
7978         (func_get_notice): New function.
7979         (func_modules_notice): New function.
7980         (func_import, func_create_testdir): Invoke it.
7981         Suggested by Jim Meyering.
7982
7983 2007-09-09  Bruno Haible  <bruno@clisp.org>
7984
7985         * gnulib-tool: New options --verbose, --quiet.
7986         (func_usage): Document them.
7987         (verbose): New variable.
7988         (func_execute_command): New function.
7989         (func_import): Don't show the module list and the file list if
7990         $verbose < 0.
7991         (func_create_testdir): Likewise. Use func_execute_command.
7992         (func_create_megatestdir): Use func_execute_command.
7993
7994 2007-09-08  Bruno Haible  <bruno@clisp.org>
7995
7996         * gnulib-tool (func_import): Prefer rsync over wget when available,
7997         for fetching the PO files.
7998
7999 2007-09-08  Bruno Haible  <bruno@clisp.org>
8000
8001         * posix-modules: New file. Portions copied from gnulib-tool.
8002         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
8003
8004 2007-09-08  Jim Meyering  <jim@meyering.net>
8005
8006         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
8007         * lib/fpending.h: Rename from __fpending.h.
8008         * lib/fpending.c: Rename from __fpending.c.
8009         Include "fpending.h", not "__fpending.h".
8010         * lib/__fpending.h, lib/__fpending.c: Remove files.
8011         * modules/fpending (Files): Reflect new file names.
8012         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
8013
8014 2007-09-08  Bruno Haible  <bruno@clisp.org>
8015
8016         * m4/inttypes-h.m4: Remove stub file.
8017
8018 2007-09-07  Simon Josefsson  <simon@josefsson.org>
8019
8020         * doc/headers/stdint.texi: Discuss #include_next issue.
8021
8022 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
8023
8024         * build-aux/bootstrap: Remove obsolete comment about wget --help.
8025
8026 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8027
8028         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
8029         in variable name.
8030
8031 2007-09-03  Jim Meyering  <jim@meyering.net>
8032
8033         New module: git-version-gen.
8034         * modules/git-version-gen: New file.
8035
8036         Import changes from coreutils for bootstrap script.
8037
8038         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
8039
8040         bootstrap: uses rsync to download the .po files
8041         * build-aux/bootstrap (po_download_command_format): New global.
8042         (download_po_files): Use rsync.
8043         (update_po_files): Don't remove .po files after download,
8044         so future rsync runs can take advantage of the copies.
8045
8046         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
8047
8048         Solve the unnecessary-.po-file-regeneration problem once and for all.
8049         * build-aux/bootstrap (download_po_files): New function, renamed from
8050         get_translations.  Now, downloads, but doesn't update LINGUAS.
8051         (update_po_files): New function.
8052
8053         bootstrap: Ignore more.
8054         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
8055         uniwidth to e.g., lib/.gitignore.
8056         (slurp): Handle the sys_stat_.h -> sys mapping, too.
8057
8058         * build-aux/bootstrap: New setting: vc_ignore.
8059         (insert_sorted_if_absent): Create $file if absent.
8060         Adapt to new, possibly empty, list: $vc_ignore.
8061
8062         bootstrap: generate more ignorable names
8063         * build-aux/bootstrap (slurp): When generating ignorable names,
8064         also map .sin to .sed, .gperf to .c, and .y to .c.
8065
8066 2007-09-03  Jim Meyering  <jim@meyering.net>
8067
8068         * build-aux/git-version-gen: New file, from coreutils.  For details, see
8069         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
8070
8071 2007-09-02  Bruno Haible  <bruno@clisp.org>
8072
8073         Fix mis-recognition of 'mcs' on QNX 6.
8074         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
8075         output contains the string "Mono".
8076         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
8077         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
8078
8079 2007-09-01  Bruno Haible  <bruno@clisp.org>
8080
8081         Fix collision between uniwidth/* and linebreak modules.
8082         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
8083         u32_width): Remove declarations.
8084         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
8085         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
8086         streq3, streq2, streq1, streq0): Remove functions.
8087         (STREQ): Remove macro.
8088         (is_cjk_encoding): Remove function.
8089         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
8090         (uc_width, u8_width, u16_width, u32_width): Remove functions.
8091         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
8092         * NEWS: Document the change.
8093
8094 2007-09-01  Bruno Haible  <bruno@clisp.org>
8095
8096         * lib/streq.h: Add double-inclusion guard.
8097
8098 2007-09-01  Karl Berry  <karl@gnu.org>
8099
8100         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
8101
8102 2007-08-28  Jim Meyering  <jim@meyering.net>
8103
8104         Rename mreadlink_with_size to areadlink_with_size.
8105         * NEWS: Document the change.
8106         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
8107         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
8108         * lib/mreadlink.h: Rename this to...
8109         * lib/areadlink.h: ...this.
8110         * modules/mreadlink-with-size: Rename this to...
8111         * modules/areadlink-with-size: ...this.
8112         * lib/canonicalize.c: Reflect the renaming.
8113         * modules/canonicalize: Likewise.
8114
8115 2007-08-26  Bruno Haible  <bruno@clisp.org>
8116
8117         * gnulib-tool (func_import): When deciding which files to remove,
8118         consider also dangling symbolic links.
8119         Reported by Eric Blake.
8120
8121 2007-08-26  Bruno Haible  <bruno@clisp.org>
8122
8123         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
8124
8125 2007-08-23  Simon Josefsson  <simon@josefsson.org>
8126
8127         * lib/readline.c: Don't include getline.h, the prototype is now
8128         found in stdio.h.
8129
8130 2007-08-23  Jim Meyering  <jim@meyering.net>
8131
8132         Getdelim touchup.
8133         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
8134         around the funlockfile call, since funlockfile never sets errno.
8135         Don't set errno upon failed realloc.
8136
8137 2007-08-22  Eric Blake  <ebb9@byu.net>
8138
8139         Getline touchups.
8140         * lib/getdelim.c (getdelim): Revert regression that required *n to
8141         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
8142         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
8143         getdelim, rather than whether implementation is missing.
8144         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
8145         * lib/stdio_.h (getline): Also declare if replacement is
8146         required.
8147         * doc/functions/getdelim.texi: New file.
8148         * doc/functions/getline.texi: Likewise.
8149         * doc/gnulib.texi (Function Substitutes): Add new files.
8150         Reported by Bruno Haible.
8151
8152 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
8153
8154         * users.txt: Add Guile.
8155
8156 2007-08-22  Eric Blake  <ebb9@byu.net>
8157
8158         * tests/test-getdelim.c (main): Use remove, not unlink.
8159         * tests/test-getline.c (main): Likewise.
8160
8161         Move getline and getdelim into stdio.h, per POSIX 200x.
8162         * modules/getline (Files): Remove getline.h.
8163         (Depends-on): Add stdio.
8164         (configure.ac): Add module indicator.
8165         * modules/getdelim (Files): Remove getdelim.h.
8166         (Depends-on): Add stdio.
8167         (configure.ac): Add module indicator.
8168         * modules/stdio (Makefile.am): Work with new indicators.
8169         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
8170         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
8171         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8172         * lib/getdelim.h: Delete.
8173         * lib/getline.h: Delete.
8174         * lib/stdio_.h (getdelim, getline): Declare.
8175         * modules/getdelim-tests: New module.
8176         * modules/getline-tests: Likewise.
8177         * tests/test-getdelim.c: New file.
8178         * tests/test-getline.c: Likewise.
8179         * NEWS: Document the change.
8180         * lib/getline.c: Update choice of header.
8181         * lib/csharpcomp.c: Likewise.
8182         * lib/getpass.c: Likewise.
8183         * lib/javacomp.c: Likewise.
8184         * lib/javaversion.c: Likewise.
8185         * lib/yesno.c: Likewise.
8186         * lib/getdelim.c: Likewise.
8187         (getdelim): Set errno on failure, and avoid memory leak.
8188
8189 2007-08-19  Bruno Haible  <bruno@clisp.org>
8190
8191         * modules/closein (Depends-on): Add freadahead.
8192         * lib/closein.c: Include freadahead.h.
8193         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
8194         is zero.
8195
8196 2007-08-19  Bruno Haible  <bruno@clisp.org>
8197
8198         * modules/freadahead-tests: New file.
8199         * tests/test-freadahead.sh: New file.
8200         * tests/test-freadahead.c: New file.
8201
8202         * modules/freadahead: New file.
8203         * lib/freadahead.h: New file.
8204         * lib/freadahead.c: New file.
8205         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
8206         fbufmode, fpurge, freadable, fwritable.
8207
8208 2007-08-19  Eric Blake  <ebb9@byu.net>
8209
8210         Test yesno in combination with closein.
8211         * lib/yesno.c (yesno): Document use of stdin.
8212         * modules/yesno-tests (Files): New module.
8213         * tests/test-yesno.c (main): New file.
8214         * tests/test-yesno.sh: Likewise.
8215
8216 2007-08-19  Bruno Haible  <bruno@clisp.org>
8217
8218         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
8219         * lib/fseeko.c (rpl_fseeko): Likewise.
8220         * lib/fseterr.c (fseterr): Likewise.
8221
8222 2007-08-19  Bruno Haible  <bruno@clisp.org>
8223
8224         * tests/test-lseek.c (main): Disable a test for BeOS.
8225         * doc/functions/lseek.texi: Document the BeOS bug.
8226
8227 2007-08-19  Bruno Haible  <bruno@clisp.org>
8228             Eric Blake  <ebb9@byu.net>
8229
8230         * lib/lseek.c: Include <sys/stat.h>.
8231         (rpl_lseek): Add workaround code also for Unix platforms.
8232         Needed for BeOS.
8233         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
8234         * doc/functions/lseek.texi: Document BeOS definiency.
8235
8236 2007-08-18  Bruno Haible  <bruno@clisp.org>
8237
8238         * modules/fstrcmp-tests: New file.
8239         * tests/test-fstrcmp.c: New file.
8240
8241 2007-08-18  Bruno Haible  <bruno@clisp.org>
8242
8243         * modules/fstrcmp: New file, from GNU gettext with modifications.
8244         * lib/fstrcmp.h: New file, from GNU gettext.
8245         * lib/fstrcmp.c: New file, from GNU gettext.
8246         * MODULES.html.sh (String handling): Add fstrcmp.
8247
8248 2007-08-18  Bruno Haible  <bruno@clisp.org>
8249
8250         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
8251         'bool'.
8252         (diag, compareseq): Remove const from the ctxt argument.
8253         (USE_HEURISTIC): Undefine at the end.
8254
8255 2007-08-18  Jim Meyering  <jim@meyering.net>
8256
8257         New file: lib/idcache.h
8258         * NEWS: Mention the addition.
8259         * modules/idcache (Files): Add lib/idcache.h
8260         * lib/idcache.c: Include "idcache.h".
8261         Don't include <sys/types.h>.
8262         Add a FIXME comment.
8263         Move file-scoped "static" declarations to the top.
8264         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
8265
8266 2007-08-17  Bruno Haible  <bruno@clisp.org>
8267         and Paul Eggert  <eggert@cs.ucla.edu>
8268
8269         * MODULES.html.sh: Add diffseq.
8270         * modules/diffseq: New file.
8271         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
8272         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
8273
8274 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
8275
8276         Import changes from coreutils for bootstrap script.
8277
8278         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
8279
8280         * build-aux/bootstrap (slurp): Work even in environments where
8281         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
8282         current code does not slurp files whose names start with ".", and
8283         this looks like it might be a troublesome area.
8284
8285         2007-07-11  Jim Meyering  <jim@meyering.net>
8286
8287         If there's a GPL vN copyright comment, require that N == 3.
8288
8289         2007-07-08  Jim Meyering  <jim@meyering.net>
8290
8291         Run the coreutils-specific code only if tests/Makefile.am.in exists.
8292         * build-aux/bootstrap (mam_template): Move definition out of loop.
8293
8294         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
8295
8296         * build-aux/bootstrap (symlink_to_dir): Rename function from
8297         symlink_to_gnulib.  Add a directory parameter.  Update all
8298         callers.
8299         (cp_mark_as_generated): Also check for -- and link to -- files in
8300         gl/.
8301
8302         2007-07-08  Jim Meyering  <jim@meyering.net>
8303
8304         Adapt to deeper hierarchy in gnulib.
8305         * build-aux/bootstrap (symlink_to_dir): If the destination
8306         directory doesn't exist, create it. This is required at least for
8307         "lib/uniwidth/cjk.h".
8308
8309         2007-05-15  Jim Meyering  <jim@meyering.net>
8310
8311         * build-aux/bootstrap: Now that generated Makefile.am files
8312         are no longer under version control, they must be created at
8313         bootstrap time.
8314
8315 2007-08-14  Ben Pfaff  <blp@gnu.org>
8316
8317         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
8318
8319 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
8320
8321         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
8322         given the changes below.
8323         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
8324         even on hosts that have padding bits beyond the supported 64.
8325
8326 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
8327
8328         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
8329         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
8330         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
8331         depends on it.
8332         (xstrtol_error): Remove.
8333         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
8334         but with a different signature.
8335         (ATTRIBUTE_NORETURN, __attribute__): New macros.
8336         * lib/xstrtol-error.c: Include exitfail.h.
8337         (xstrtol_fatal): New function, with a different signature from the
8338         old xstrtol_error, so that the caller need not worry about passing
8339         in an exit status, or about storage management of the option argument.
8340         (xstrtol_error): Now a static function.  Redo signature to
8341         implement xstrtol_fatal.  Output the correct number of hyphens in
8342         front of the option so that the caller need not worry about
8343         storage management.
8344         (N_): New macro.
8345         (_): Remove; not used now.
8346         * modules/xstrtol: Depend on getopt.
8347         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
8348         of old STRTOL_FATAL_ERROR macro.
8349         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
8350         of test program.
8351         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
8352         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
8353
8354 2007-08-08  Eric Blake  <ebb9@byu.net>
8355
8356         * lib/xstrtol-error.c: Add missing include.
8357
8358         Move xstrtol messages into gnulib domain, when --pobase is used.
8359         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
8360         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
8361         * modules/xstrtol (Files): Distribute new file.
8362         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
8363         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
8364         * tests/test-xstrtol.c: ...into new file.
8365         * tests/test-xstrtoul.c: Also test xstrtoul.
8366         * tests/test-xstrtoimax.c: Also test xstrtoimax.
8367         * tests/test-xstrtoumax.c: Also test xstrtoumax.
8368         * tests/test-xstrtol.sh: Drive the tests.
8369         * tests/test-xstrtoimax.sh: Likewise.
8370         * tests/test-xstrtoumax.sh: Likewise.
8371         * modules/xstrtol-tests: New module.
8372         * modules/xstrtoimax-tests: Likewise.
8373         * modules/xstrtoumax-tests: Likewise.
8374
8375 2007-08-08  Jim Meyering  <jim@meyering.net>
8376
8377         New function: mfile_name_concat.
8378         * lib/filenamecat.c (mfile_name_concat): New function, just like
8379         file_name_concat, but return NULL upon failure rather than exiting
8380         with a diagnostic.
8381         * lib/filenamecat.h: Declare it.
8382
8383 2007-08-07  Bruno Haible  <bruno@clisp.org>
8384
8385         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
8386         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
8387         warning from gcc.
8388         Reported by Eric Blake.
8389
8390 2007-08-07  Simon Josefsson  <simon@josefsson.org>
8391
8392         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
8393         * modules/crypto/arcfour (License): Likewise.
8394         * modules/crypto/des-tests (License): Likewise.
8395         * modules/crypto/gc-arctwo-tests (License): Likewise.
8396         * modules/crypto/gc-des-tests (License): Likewise.
8397         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
8398         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
8399         * modules/crypto/gc-md2-tests (License): Likewise.
8400         * modules/crypto/gc-md4-tests (License): Likewise.
8401         * modules/crypto/gc-md5-tests (License): Likewise.
8402         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
8403         * modules/crypto/gc-rijndael-tests (License): Likewise.
8404         * modules/crypto/gc-sha1-tests (License): Likewise.
8405         * modules/crypto/gc-tests (License): Likewise.
8406         * modules/crypto/hmac-md5 (License): Likewise.
8407         * modules/crypto/hmac-sha1 (License): Likewise.
8408         * modules/crypto/md2-tests (License): Likewise.
8409         * modules/crypto/md4-tests (License): Likewise.
8410         * modules/crypto/md5 (License): Likewise.
8411         * modules/crypto/rijndael (License): Likewise.
8412         * modules/crypto/sha1 (License): Likewise.
8413         * modules/memxor (License): Likewise.
8414
8415 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
8416         and Bruno Haible  <bruno@clisp.org>
8417
8418         * NEWS: Describe interface changes to human, xstrtol.
8419         * lib/human.h: Include <xstrtol.h>.
8420         (human_options): Return enum strtol_error, not int.  Remove
8421         bool arg; take int * instead.
8422         * lib/human.c: Don't include "gettext.h".
8423         (_): Remove; no longer used.
8424         Don't include <xstrtol.h>, since human.h does it.
8425         (human_options): Adjust to abovementioned interface changes.
8426         Do not report error to stderr; that's now the caller's
8427         responsibility.
8428         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
8429         interface change.
8430         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
8431         Str, Argument_type_string.  All uses changed.  Put " argument"
8432         in diagnostics to make them clearer.  Change wording of suffix
8433         message for clarity.
8434         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
8435         Argument_type_string.
8436         (STRTOL_FATAL_WARN): Remove; no longer used.
8437         * modules/human (Depends-on): Remove gettext-h.
8438
8439 2007-08-06  Simon Josefsson  <simon@josefsson.org>
8440
8441         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
8442
8443 2007-07-31  Bruno Haible  <bruno@clisp.org>
8444
8445         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
8446         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
8447         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
8448
8449 2007-07-31  Bruno Haible  <bruno@clisp.org>
8450
8451         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
8452         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
8453
8454 2007-07-30  Bruno Haible  <bruno@clisp.org>
8455
8456         * modules/base64 (License): Use the synonymous term "LGPLv2+".
8457         * modules/c-ctype (License): Likewise.
8458         * modules/c-strcase (License): Likewise.
8459         * modules/check-version (License): Likewise.
8460         * modules/iconv (License): Likewise.
8461         * modules/iconv_open (License): Likewise.
8462         * modules/read-file (License): Likewise.
8463         * modules/striconv (License): Likewise.
8464         * modules/strverscmp (License): Likewise.
8465         * modules/vasprintf (License): Likewise.
8466         * modules/crypto/des (License): Likewise.
8467         * modules/crypto/gc (License): Likewise.
8468         * modules/crypto/gc-arcfour (License): Likewise.
8469         * modules/crypto/gc-arctwo (License): Likewise.
8470         * modules/crypto/gc-des (License): Likewise.
8471         * modules/crypto/gc-hmac-md5 (License): Likewise.
8472         * modules/crypto/gc-hmac-sha1 (License): Likewise.
8473         * modules/crypto/gc-md2 (License): Likewise.
8474         * modules/crypto/gc-md4 (License): Likewise.
8475         * modules/crypto/gc-md5 (License): Likewise.
8476         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
8477         * modules/crypto/gc-random (License): Likewise.
8478         * modules/crypto/gc-rijndael (License): Likewise.
8479         * modules/crypto/gc-sha1 (License): Likewise.
8480         * modules/crypto/md2 (License): Likewise.
8481         * modules/crypto/md4 (License): Likewise.
8482
8483 2007-07-30  Jim Meyering  <jim@meyering.net>
8484
8485         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
8486         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
8487         it has valid stat data.  This bug would cause du not to count the
8488         sizes of inaccessible directories.
8489         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
8490         in <http://bugzilla.redhat.com/250077>.
8491
8492 2007-07-25  Peter O'Gorman  <peter@pogma.com>
8493             Bruno Haible  <bruno@clisp.org>
8494
8495         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
8496         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
8497         #include_next, gives a diagnostic about it, but reports no error in
8498         the exit code.
8499         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
8500
8501 2007-07-24  Ben Pfaff  <blp@gnu.org>
8502
8503         Improve name: "count-one-bits" is better than "popcount".
8504         * MODULES.html.sh: Update name.
8505         * lib/popcount.h: Renamed lib/count-one-bits.h.
8506         (popcount): Renamed count_one_bits.
8507         (popcountl): Renamed count_one_bits_l.
8508         (popcountll): Renamed count_one_bits_ll.
8509         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
8510         * modules/popcount: Renamed module/count-one-bits.
8511         * modules/popcount-tests: Renamed module/count-one-bits-tests.
8512         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
8513
8514 2007-07-23  Ben Pfaff  <blp@gnu.org>
8515
8516         * lib/popcount.h (popcount32): Reduce size of constants, to allow
8517         better code generation, and add U to large constants to avoid
8518         warnings, in non-GCC case.
8519         Suggested by Bruno Haible.
8520
8521 2007-07-23  Ben Pfaff  <blp@gnu.org>
8522
8523         * lib/popcount.h: Use verify_true instead of if...abort.
8524         * modules/popcount: Depend on verify module.
8525         Suggested by Jim Meyering.
8526
8527 2007-07-23  Bruno Haible  <bruno@clisp.org>
8528
8529         * gnulib-tool (func_import): Create a .cvsignore file also when the
8530         directory is not yet in CVS but the toplevel directory is. When
8531         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
8532         Reported by Karl Berry.
8533
8534 2007-07-22  Ben Pfaff  <blp@gnu.org>
8535
8536         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
8537         case.
8538         Suggested by Eric Blake.
8539
8540 2007-07-22  Ben Pfaff  <blp@gnu.org>
8541
8542         New module: popcount.
8543         * MODULES.html.sh: Add popcount.
8544         * modules/popcount: New file.
8545         * modules/popcount-tests: New file.
8546         * tests/test-popcount.c: New file.
8547         * lib/popcount.h: New file.
8548         * m4/popcount.m4: New file.
8549
8550 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
8551
8552         * build-aux/announce-gen: Update to GPLv3.
8553
8554         * build-aux/config.guess: Update from config.
8555
8556 2007-07-21  Bruno Haible  <bruno@clisp.org>
8557
8558         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
8559         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
8560
8561 2007-07-20  Jim Meyering  <jim@meyering.net>
8562
8563         * check-module: Diagnose a self-dependency.
8564
8565 2007-07-19  Bruno Haible  <bruno@clisp.org>
8566
8567         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
8568         empty.
8569         Reported by Eric Blake.
8570
8571 2007-07-18  Bruno Haible  <bruno@clisp.org>
8572
8573         * gnulib-tool: New options --po-base, --po-domain.
8574         (func_usage): Document them.
8575         (pobase, po_domain): New variables.
8576         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
8577         DEFAULT_TEXT_DOMAIN.
8578         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
8579         (func_import): Consider pobase and po_domain. Create a po/ directory.
8580         (func_create_testdir): Set pobase and po_domain to empty.
8581         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
8582         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
8583
8584 2007-07-18  Bruno Haible  <bruno@clisp.org>
8585
8586         * gnulib-tool (func_get_automake_snippet): Synthesize also an
8587         EXTRA_DIST augmentation for files in build-aux/.
8588
8589 2007-07-16  Bruno Haible  <bruno@clisp.org>
8590
8591         * modules/lseek (License): Use the synonymous term "LGPLv2+".
8592         * modules/getdelim (License): Likewise.
8593
8594 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8595
8596         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
8597         * modules/d-type (License): Likewise.
8598         * modules/extensions (License): Likewise.
8599         * modules/fnmatch (License): Likewise.
8600         * modules/fseeko (License): Likewise.
8601         * modules/getaddrinfo (License): Likewise.
8602         * modules/getline (License): Likewise.
8603         * modules/getlogin_r (License): Likewise.
8604         * modules/getpass (License): Likewise.
8605         * modules/gettimeofday (License): Likewise.
8606         * modules/glob (License): Likewise.
8607         * modules/inet_ntop (License): Likewise.
8608         * modules/malloc (License): Likewise.
8609         * modules/malloca (License): Likewise.
8610         * modules/memmem (License): Likewise.
8611         * modules/mempcpy (License): Likewise.
8612         * modules/memset (License): Likewise.
8613         * modules/minmax (License): Likewise.
8614         * modules/mktime (License): Likewise.
8615         * modules/netinet_in (License): Likewise.
8616         * modules/pathmax (License): Likewise.
8617         * modules/poll (License): Likewise.
8618         * modules/regex (License): Likewise.
8619         * modules/snprintf (License): Likewise.
8620         * modules/stdbool (License): Likewise.
8621         * modules/stdint (License): Likewise.
8622         * modules/stdio (License): Likewise.
8623         * modules/strcase (License): Likewise.
8624         * modules/strcasestr (License): Likewise.
8625         * modules/strdup (License): Likewise.
8626         * modules/string (License): Likewise.
8627         * modules/strndup (License): Likewise.
8628         * modules/strnlen (License): Likewise.
8629         * modules/strpbrk (License): Likewise.
8630         * modules/strptime (License): Likewise.
8631         * modules/strsep (License): Likewise.
8632         * modules/sys_select (License): Likewise.
8633         * modules/sys_socket (License): Likewise.
8634         * modules/sys_stat (License): Likewise.
8635         * modules/sys_time (License): Likewise.
8636         * modules/time (License): Likewise.
8637         * modules/time_r (License): Likewise.
8638         * modules/timegm (License): Likewise.
8639         * modules/unistd (License): Likewise.
8640         * modules/vsnprintf (License): Likewise.
8641         * modules/wctype (License): Likewise.
8642
8643 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8644
8645         * modules/argz (License): LGPLv2+.
8646
8647 2007-07-15  Karl Berry  <karl@gnu.org>
8648
8649         * doc/gnulib.texi: revise node structure per new fdl.texi.
8650
8651 2007-07-14  Bruno Haible  <bruno@clisp.org>
8652
8653         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
8654         the output file.
8655         * lib/uniname/uninames.h: Regenerated.
8656
8657 2007-07-14  Karl Berry  <karl@gnu.org>
8658
8659         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
8660         omitting sectioning and index commands.
8661
8662 2007-07-13  Bruno Haible  <bruno@clisp.org>
8663
8664         New gnulib-tool option --more-symlinks.
8665         * gnulib-tool (func_usage): Document --more-symlinks.
8666         (do_copyrights): New variable.
8667         Recognize option --more-symlinks.
8668         (func_import): Don't add a copyright notice transform to
8669         sed_transform_lib_file if do_copyrights is empty.
8670
8671 2007-07-13  Bruno Haible  <bruno@clisp.org>
8672
8673         * lib/vasnprintf.c (decimal_point_char): Define also if
8674         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
8675         && !NEED_PRINTF_DIRECTIVE_A.
8676         Reported by Clemens Koller <clemens.koller@anagramm.de> via
8677         Gary V. Vaughan <gary@gnu.org>.
8678
8679 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
8680
8681         * lib/inttypes_.h: Undo previous change, since it was fixed
8682         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
8683
8684 2007-07-13  Bruno Haible  <bruno@clisp.org>
8685
8686         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
8687         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
8688
8689 2007-07-13  Jim Meyering  <jim@meyering.net>
8690
8691         df: Don't fail for Tru64's "file-on-file mount".
8692         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
8693         so we fall through and use statfs instead.  Details here:
8694         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
8695         Reported by Albert Chin.
8696
8697 2007-07-13  Bruno Haible  <bruno@clisp.org>
8698
8699         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
8700         * modules/configmake (License): Likewise.
8701         * modules/gettext (License): Likewise.
8702         * modules/gettext-h (License): Likewise.
8703         * modules/include_next (License): Likewise.
8704         * modules/link-warning (License): Likewise.
8705         * modules/localcharset (License): Likewise.
8706         * modules/localename (License): Likewise.
8707         * modules/lock (License): Likewise.
8708         * modules/relocatable-lib-lgpl (License): Likewise.
8709         * modules/size_max (License): Likewise.
8710         * modules/vasnprintf (License): Likewise.
8711         * modules/wchar (License): Likewise.
8712         * modules/xsize (License): Likewise.
8713
8714 2007-07-13  Bruno Haible  <bruno@clisp.org>
8715
8716         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
8717         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
8718
8719 2007-07-12  Bruno Haible  <bruno@clisp.org>
8720
8721         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
8722         in the modules files.
8723
8724 2007-07-11  Karl Berry  <karl@gnu.org>
8725
8726         * MODULES.html.sh (func_module): use
8727          sed -e '\|^'"${includefile}"'$|d'
8728          instead of /.../d, to avoid errors on $includefile's containing /.
8729
8730 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
8731
8732         * gnulib-tool (func_import): Avoid duplication of --avoid
8733         statements
8734         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
8735         names to `_' in variable names.
8736
8737 2007-07-10  Eric Blake  <ebb9@byu.net>
8738
8739         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
8740         * NEWS: Document this change.
8741
8742 2007-07-08  Bruno Haible  <bruno@clisp.org>
8743
8744         Update to Unicode 5.0.
8745         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
8746         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
8747         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
8748         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
8749         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
8750         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
8751         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
8752         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
8753         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
8754         U+10A3F, U+1D242..U+1D244.
8755         (nonspacing_table_ind): Update.
8756         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
8757         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
8758
8759 2007-07-08  Bruno Haible  <bruno@clisp.org>
8760
8761         Update to Unicode 5.0.
8762         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
8763         code transform. Extend the name index field of unicode_name_to_code and
8764         unicode_code_to_name from 16 to 24 bits.
8765         * lib/uniname/uniname.c (unicode_character_name,
8766         unicode_name_character): Add the range 0x12xxx to the code transform.
8767         * lib/uniname/uninames.h: Regenerated.
8768         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
8769
8770 2007-07-07  Bruno Haible  <bruno@clisp.org>
8771
8772         * modules/wcwidth-tests: New file.
8773         * tests/test-wcwidth.c: New file.
8774
8775         Work around MacOS X wcwidth() bug.
8776         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
8777         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
8778         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
8779         original wcwidth in non-UTF-8 locales.
8780         * modules/wcwidth (Depends-on): Add localcharset, streq,
8781         uniwidth/width.
8782         * doc/functions/wcwidth.texi: Update.
8783
8784 2007-07-07  Bruno Haible  <bruno@clisp.org>
8785
8786         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
8787         (wcwidth): New declaration.
8788         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
8789         macros.
8790         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
8791         here. Prepare for creating <wchar.h> unconditionally.
8792         * modules/wchar (Depends-on): Add link-warning.
8793         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
8794         REPLACE_WCWIDTH, and GL_LINK_WARNING.
8795         * lib/wcwidth.h: Remove file.
8796         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
8797         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
8798         * modules/wcwidth (Files): Remove lib/wcwidth.h.
8799         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
8800         (Include): Replace wcwidth.h with <wchar.h>.
8801         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
8802         * lib/mbchar.h: Don't include wcwidth.h.
8803         * lib/mbswidth.c: Likewise.
8804         * NEWS: Mention the change.
8805
8806 2007-07-07  Bruno Haible  <bruno@clisp.org>
8807
8808         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
8809         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
8810         definition with an external declaration.
8811         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
8812         defined as a function. Remove AC_C_INLINE requirement.
8813         * modules/wcwidth (Files): Add lib/wcwidth.c.
8814         (Makefile.am): Remove redundant statement.
8815
8816 2007-07-07  Bruno Haible  <bruno@clisp.org>
8817
8818         * MODULES.html.sh (Unicode string functions): Add the new modules.
8819
8820         * tests/uniwidth/test-u32-strwidth.c: New file.
8821         * modules/uniwidth/u32-strwidth-tests: New file.
8822
8823         * lib/uniwidth/u32-strwidth.c: New file.
8824         * modules/uniwidth/u32-strwidth: New file.
8825
8826         * tests/uniwidth/test-u16-strwidth.c: New file.
8827         * modules/uniwidth/u16-strwidth-tests: New file.
8828
8829         * lib/uniwidth/u16-strwidth.c: New file.
8830         * modules/uniwidth/u16-strwidth: New file.
8831
8832         * tests/uniwidth/test-u8-strwidth.c: New file.
8833         * modules/uniwidth/u8-strwidth-tests: New file.
8834
8835         * lib/uniwidth/u8-strwidth.c: New file.
8836         * modules/uniwidth/u8-strwidth: New file.
8837
8838         * tests/uniwidth/test-u32-width.c: New file.
8839         * modules/uniwidth/u32-width-tests: New file.
8840
8841         * lib/uniwidth/u32-width.c: New file.
8842         * modules/uniwidth/u32-width: New file.
8843
8844         * tests/uniwidth/test-u16-width.c: New file.
8845         * modules/uniwidth/u16-width-tests: New file.
8846
8847         * lib/uniwidth/u16-width.c: New file.
8848         * modules/uniwidth/u16-width: New file.
8849
8850         * tests/uniwidth/test-u8-width.c: New file.
8851         * modules/uniwidth/u8-width-tests: New file.
8852
8853         * lib/uniwidth/u8-width.c: New file.
8854         * modules/uniwidth/u8-width: New file.
8855
8856         * tests/uniwidth/test-uc_width.c: New file.
8857         * modules/uniwidth/width-tests: New file.
8858
8859         * lib/uniwidth/width.c: New file, from GNU libiconv.
8860         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
8861         * modules/uniwidth/width: New file.
8862
8863         * lib/uniwidth.h: New file, from GNU libiconv.
8864         * modules/uniwidth/base: New file.
8865
8866 2007-07-07  Bruno Haible  <bruno@clisp.org>
8867
8868         * lib/uniname.h: New file, from GNU gettext.
8869         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
8870         * lib/uniname/uninames.h: New file, from GNU gettext.
8871         * lib/uniname/uniname.c: New file, from GNU gettext.
8872         * tests/uniname/test-uninames.sh: New file.
8873         * tests/uniname/test-uninames.c: New file, from GNU gettext.
8874         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
8875         * modules/uniname/base: New file.
8876         * modules/uniname/uniname: New file.
8877         * modules/uniname/uniname-tests: New file.
8878         * MODULES.html.sh (Unicode string functions): Add the new modules.
8879
8880 2007-07-06  Bruno Haible  <bruno@clisp.org>
8881
8882         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
8883
8884 2007-07-06  Bruno Haible  <bruno@clisp.org>
8885
8886         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
8887         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
8888         includes <cygwin/sys_time.h> which includes <sys/select.h> which
8889         include <sys/time.h>.
8890         Reported by Eric Blake.
8891
8892 2007-07-06  Eric Blake  <ebb9@byu.net>
8893
8894         Fix testing canonicalize on cygwin.
8895         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
8896         Revert patch from 2007-06-19.
8897         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
8898         canonicalize module is also in use.
8899         * tests/test-canonicalize.c: New file.
8900         * tests/test-canonicalize.sh: Likewise.
8901         * modules/canonicalize-tests: Likewise.
8902
8903 2007-07-06  Jim Meyering  <jim@meyering.net>
8904
8905         * lib/getugroups.c (getugroups): Detect getgrent failure.
8906         Adjust comment to reflect reality: this function may return -1.
8907
8908 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
8909
8910         * build-aux/bootstrap (TP_URL,get_translations): Update to use
8911         the new TP address.
8912         (usage): Fix typo
8913         (gnulib_mk): New variable.
8914
8915 2007-07-05  Jim Meyering  <jim@meyering.net>
8916
8917         Don't let endgrent clobber errno, no matter how improbable.
8918         * lib/getugroups.c (getugroups): Save and restore errno around
8919         endgrent call.
8920
8921         Close the group DB even when failing with 2^31 or more members.
8922         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
8923
8924 2007-07-04  Jim Meyering  <jim@meyering.net>
8925
8926         * lib/getugroups.h: New file.
8927         * lib/getugroups.c: Include "getugroups.h".
8928         Remove uses of "register" keyword.
8929         Move local variable, "cp", down into scope where used.
8930         Give "username" parameter the "const" attribute.
8931         * modules/getugroups (Files): Add lib/getugroups.h
8932
8933 2007-07-04  Karl Berry  <karl@gnu.org>
8934
8935         * MODULES.html.sh (func_all_modules): Complete rename of
8936         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
8937
8938 2007-07-02  Bruno Haible  <bruno@clisp.org>
8939
8940         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
8941         mode, when inttypes.h comes from gnulib.
8942         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
8943
8944 2007-07-02  Simon Josefsson  <simon@josefsson.org>
8945
8946         * NEWS: Mention lgpl module name change.
8947
8948         * modules/lgpl-2.1: Renamed from lgpl.
8949
8950         * NEWS: Mention gpl module name change.
8951
8952         * modules/gpl-3.0: New file, based on gpl-2.0.
8953
8954         * modules/gpl-2.0: Renamed from gpl.
8955
8956         * modules/gpl: Fix filename, doc/gpl.texi is now found at
8957         doc/gpl-2.0.texi.
8958
8959 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
8960
8961         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
8962         #define __STDC_LIMIT_MACROS temporarily while including
8963         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
8964         Problem reported by Joel E. Denny in
8965         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
8966
8967 2007-07-01  Bruno Haible  <bruno@clisp.org>
8968
8969         * lib/unistdio.h: New file.
8970         * lib/unistdio/u-asnprintf.h: New file.
8971         * lib/unistdio/u-asprintf.h: New file.
8972         * lib/unistdio/u-printf-args.c: New file.
8973         * lib/unistdio/u-printf-args.h: New file.
8974         * lib/unistdio/u-printf-parse.h: New file.
8975         * lib/unistdio/u-snprintf.h: New file.
8976         * lib/unistdio/u-sprintf.h: New file.
8977         * lib/unistdio/u-vasprintf.h: New file.
8978         * lib/unistdio/u-vsnprintf.h: New file.
8979         * lib/unistdio/u-vsprintf.h: New file.
8980         * lib/unistdio/ulc-asnprintf.c: New file.
8981         * lib/unistdio/ulc-asprintf.c: New file.
8982         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
8983         * lib/unistdio/ulc-printf-parse.c: New file.
8984         * lib/unistdio/ulc-snprintf.c: New file.
8985         * lib/unistdio/ulc-sprintf.c: New file.
8986         * lib/unistdio/ulc-vasnprintf.c: New file.
8987         * lib/unistdio/ulc-vasprintf.c: New file.
8988         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
8989         * lib/unistdio/ulc-vsnprintf.c: New file.
8990         * lib/unistdio/ulc-vsprintf.c: New file.
8991         * lib/unistdio/u8-asnprintf.c: New file.
8992         * lib/unistdio/u8-asprintf.c: New file.
8993         * lib/unistdio/u8-printf-parse.c: New file.
8994         * lib/unistdio/u8-snprintf.c: New file.
8995         * lib/unistdio/u8-sprintf.c: New file.
8996         * lib/unistdio/u8-vasnprintf.c: New file.
8997         * lib/unistdio/u8-vasprintf.c: New file.
8998         * lib/unistdio/u8-vsnprintf.c: New file.
8999         * lib/unistdio/u8-vsprintf.c: New file.
9000         * lib/unistdio/u8-u8-asnprintf.c: New file.
9001         * lib/unistdio/u8-u8-asprintf.c: New file.
9002         * lib/unistdio/u8-u8-snprintf.c: New file.
9003         * lib/unistdio/u8-u8-sprintf.c: New file.
9004         * lib/unistdio/u8-u8-vasnprintf.c: New file.
9005         * lib/unistdio/u8-u8-vasprintf.c: New file.
9006         * lib/unistdio/u8-u8-vsnprintf.c: New file.
9007         * lib/unistdio/u8-u8-vsprintf.c: New file.
9008         * lib/unistdio/u16-asnprintf.c: New file.
9009         * lib/unistdio/u16-asprintf.c: New file.
9010         * lib/unistdio/u16-printf-parse.c: New file.
9011         * lib/unistdio/u16-snprintf.c: New file.
9012         * lib/unistdio/u16-sprintf.c: New file.
9013         * lib/unistdio/u16-vasnprintf.c: New file.
9014         * lib/unistdio/u16-vasprintf.c: New file.
9015         * lib/unistdio/u16-vsnprintf.c: New file.
9016         * lib/unistdio/u16-vsprintf.c: New file.
9017         * lib/unistdio/u16-u16-asnprintf.c: New file.
9018         * lib/unistdio/u16-u16-asprintf.c: New file.
9019         * lib/unistdio/u16-u16-snprintf.c: New file.
9020         * lib/unistdio/u16-u16-sprintf.c: New file.
9021         * lib/unistdio/u16-u16-vasnprintf.c: New file.
9022         * lib/unistdio/u16-u16-vasprintf.c: New file.
9023         * lib/unistdio/u16-u16-vsnprintf.c: New file.
9024         * lib/unistdio/u16-u16-vsprintf.c: New file.
9025         * lib/unistdio/u32-asnprintf.c: New file.
9026         * lib/unistdio/u32-asprintf.c: New file.
9027         * lib/unistdio/u32-printf-parse.c: New file.
9028         * lib/unistdio/u32-snprintf.c: New file.
9029         * lib/unistdio/u32-sprintf.c: New file.
9030         * lib/unistdio/u32-vasnprintf.c: New file.
9031         * lib/unistdio/u32-vasprintf.c: New file.
9032         * lib/unistdio/u32-vsnprintf.c: New file.
9033         * lib/unistdio/u32-vsprintf.c: New file.
9034         * lib/unistdio/u32-u32-asnprintf.c: New file.
9035         * lib/unistdio/u32-u32-asprintf.c: New file.
9036         * lib/unistdio/u32-u32-snprintf.c: New file.
9037         * lib/unistdio/u32-u32-sprintf.c: New file.
9038         * lib/unistdio/u32-u32-vasnprintf.c: New file.
9039         * lib/unistdio/u32-u32-vasprintf.c: New file.
9040         * lib/unistdio/u32-u32-vsnprintf.c: New file.
9041         * lib/unistdio/u32-u32-vsprintf.c: New file.
9042         * tests/unistdio/test-ulc-asnprintf1.c: New file.
9043         * tests/unistdio/test-ulc-asnprintf1.h: New file.
9044         * tests/unistdio/test-ulc-printf1.h: New file.
9045         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
9046         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
9047         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
9048         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
9049         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
9050         * tests/unistdio/test-ulc-vasprintf1.c: New file.
9051         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
9052         * tests/unistdio/test-ulc-vsprintf1.c: New file.
9053         * tests/unistdio/test-u8-asnprintf1.c: New file.
9054         * tests/unistdio/test-u8-asnprintf1.h: New file.
9055         * tests/unistdio/test-u8-printf1.h: New file.
9056         * tests/unistdio/test-u8-vasnprintf1.c: New file.
9057         * tests/unistdio/test-u8-vasnprintf2.c: New file.
9058         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
9059         * tests/unistdio/test-u8-vasnprintf3.c: New file.
9060         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
9061         * tests/unistdio/test-u8-vasprintf1.c: New file.
9062         * tests/unistdio/test-u8-vsnprintf1.c: New file.
9063         * tests/unistdio/test-u8-vsprintf1.c: New file.
9064         * tests/unistdio/test-u16-asnprintf1.c: New file.
9065         * tests/unistdio/test-u16-asnprintf1.h: New file.
9066         * tests/unistdio/test-u16-printf1.h: New file.
9067         * tests/unistdio/test-u16-vasnprintf1.c: New file.
9068         * tests/unistdio/test-u16-vasnprintf2.c: New file.
9069         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
9070         * tests/unistdio/test-u16-vasnprintf3.c: New file.
9071         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
9072         * tests/unistdio/test-u16-vasprintf1.c: New file.
9073         * tests/unistdio/test-u16-vsnprintf1.c: New file.
9074         * tests/unistdio/test-u16-vsprintf1.c: New file.
9075         * tests/unistdio/test-u32-asnprintf1.c: New file.
9076         * tests/unistdio/test-u32-asnprintf1.h: New file.
9077         * tests/unistdio/test-u32-printf1.h: New file.
9078         * tests/unistdio/test-u32-vasnprintf1.c: New file.
9079         * tests/unistdio/test-u32-vasnprintf2.c: New file.
9080         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
9081         * tests/unistdio/test-u32-vasnprintf3.c: New file.
9082         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
9083         * tests/unistdio/test-u32-vasprintf1.c: New file.
9084         * tests/unistdio/test-u32-vsnprintf1.c: New file.
9085         * tests/unistdio/test-u32-vsprintf1.c: New file.
9086         * modules/unistdio/base: New file.
9087         * modules/unistdio/u-printf-args: New file.
9088         * modules/unistdio/ulc-asnprintf: New file.
9089         * modules/unistdio/ulc-asprintf: New file.
9090         * modules/unistdio/ulc-fprintf: New file.
9091         * modules/unistdio/ulc-printf-parse: New file.
9092         * modules/unistdio/ulc-snprintf: New file.
9093         * modules/unistdio/ulc-sprintf: New file.
9094         * modules/unistdio/ulc-vasnprintf: New file.
9095         * modules/unistdio/ulc-vasprintf: New file.
9096         * modules/unistdio/ulc-vfprintf: New file.
9097         * modules/unistdio/ulc-vsnprintf: New file.
9098         * modules/unistdio/ulc-vsprintf: New file.
9099         * modules/unistdio/u8-asnprintf: New file.
9100         * modules/unistdio/u8-asprintf: New file.
9101         * modules/unistdio/u8-printf-parse: New file.
9102         * modules/unistdio/u8-snprintf: New file.
9103         * modules/unistdio/u8-sprintf: New file.
9104         * modules/unistdio/u8-vasnprintf: New file.
9105         * modules/unistdio/u8-vasprintf: New file.
9106         * modules/unistdio/u8-vsnprintf: New file.
9107         * modules/unistdio/u8-vsprintf: New file.
9108         * modules/unistdio/u8-u8-asnprintf: New file.
9109         * modules/unistdio/u8-u8-asprintf: New file.
9110         * modules/unistdio/u8-u8-snprintf: New file.
9111         * modules/unistdio/u8-u8-sprintf: New file.
9112         * modules/unistdio/u8-u8-vasnprintf: New file.
9113         * modules/unistdio/u8-u8-vasprintf: New file.
9114         * modules/unistdio/u8-u8-vsnprintf: New file.
9115         * modules/unistdio/u8-u8-vsprintf: New file.
9116         * modules/unistdio/u16-asnprintf: New file.
9117         * modules/unistdio/u16-asprintf: New file.
9118         * modules/unistdio/u16-printf-parse: New file.
9119         * modules/unistdio/u16-snprintf: New file.
9120         * modules/unistdio/u16-sprintf: New file.
9121         * modules/unistdio/u16-vasnprintf: New file.
9122         * modules/unistdio/u16-vasprintf: New file.
9123         * modules/unistdio/u16-vsnprintf: New file.
9124         * modules/unistdio/u16-vsprintf: New file.
9125         * modules/unistdio/u16-u16-asnprintf: New file.
9126         * modules/unistdio/u16-u16-asprintf: New file.
9127         * modules/unistdio/u16-u16-snprintf: New file.
9128         * modules/unistdio/u16-u16-sprintf: New file.
9129         * modules/unistdio/u16-u16-vasnprintf: New file.
9130         * modules/unistdio/u16-u16-vasprintf: New file.
9131         * modules/unistdio/u16-u16-vsnprintf: New file.
9132         * modules/unistdio/u16-u16-vsprintf: New file.
9133         * modules/unistdio/u32-asnprintf: New file.
9134         * modules/unistdio/u32-asprintf: New file.
9135         * modules/unistdio/u32-printf-parse: New file.
9136         * modules/unistdio/u32-snprintf: New file.
9137         * modules/unistdio/u32-sprintf: New file.
9138         * modules/unistdio/u32-vasnprintf: New file.
9139         * modules/unistdio/u32-vasprintf: New file.
9140         * modules/unistdio/u32-vsnprintf: New file.
9141         * modules/unistdio/u32-vsprintf: New file.
9142         * modules/unistdio/u32-u32-asnprintf: New file.
9143         * modules/unistdio/u32-u32-asprintf: New file.
9144         * modules/unistdio/u32-u32-snprintf: New file.
9145         * modules/unistdio/u32-u32-sprintf: New file.
9146         * modules/unistdio/u32-u32-vasnprintf: New file.
9147         * modules/unistdio/u32-u32-vasprintf: New file.
9148         * modules/unistdio/u32-u32-vsnprintf: New file.
9149         * modules/unistdio/u32-u32-vsprintf: New file.
9150         * modules/unistdio/ulc-asnprintf-tests: New file.
9151         * modules/unistdio/ulc-vasnprintf-tests: New file.
9152         * modules/unistdio/ulc-vasprintf-tests: New file.
9153         * modules/unistdio/ulc-vsnprintf-tests: New file.
9154         * modules/unistdio/ulc-vsprintf-tests: New file.
9155         * modules/unistdio/u8-asnprintf-tests: New file.
9156         * modules/unistdio/u8-vasnprintf-tests: New file.
9157         * modules/unistdio/u8-vasprintf-tests: New file.
9158         * modules/unistdio/u8-vsnprintf-tests: New file.
9159         * modules/unistdio/u8-vsprintf-tests: New file.
9160         * modules/unistdio/u16-asnprintf-tests: New file.
9161         * modules/unistdio/u16-vasnprintf-tests: New file.
9162         * modules/unistdio/u16-vasprintf-tests: New file.
9163         * modules/unistdio/u16-vsnprintf-tests: New file.
9164         * modules/unistdio/u16-vsprintf-tests: New file.
9165         * modules/unistdio/u32-asnprintf-tests: New file.
9166         * modules/unistdio/u32-vasnprintf-tests: New file.
9167         * modules/unistdio/u32-vasprintf-tests: New file.
9168         * modules/unistdio/u32-vsnprintf-tests: New file.
9169         * modules/unistdio/u32-vsprintf-tests: New file.
9170         * MODULES.html.sh (Unicode string functions): Add the new modules.
9171
9172 2007-07-01  Bruno Haible  <bruno@clisp.org>
9173
9174         * lib/sprintf.c (sprintf): Limit the available length estimation,
9175         to avoid address wraparound.
9176         * lib/vsprintf.c (vsprintf): Likewise.
9177         * modules/sprintf-posix (Dependencies): Add stdint.
9178         * modules/vsprintf-posix (Dependencies): Likewise.
9179
9180 2007-07-01  Bruno Haible  <bruno@clisp.org>
9181
9182         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
9183         Windows PATH as well. Conservative double-quoting. Comments.
9184
9185 2007-07-01  Bruno Haible  <bruno@clisp.org>
9186             Eric Blake  <ebb9@byu.net>
9187             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9188
9189         * gnulib-tool (self_abspathname): Fix algorithm to cope with
9190         empty components in $PATH, denoting '.'.
9191
9192 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9193
9194         * gnulib-tool: Fix indentation.
9195         (func_create_megatestdir): Likewise.
9196         Report by Bruno Haible.
9197
9198 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9199
9200         Sync from Automake.
9201         * build-aux/gnupload: Fix shell portability issues with for loops.
9202         Report by Karl Berry.
9203
9204 2007-06-29  Simon Josefsson  <simon@josefsson.org>
9205
9206         * build-aux/maint.mk (POURL): Use translationproject.org.
9207
9208 2007-06-27  Simon Josefsson  <simon@josefsson.org>
9209             Bruno Haible  <bruno@clisp.org>
9210
9211         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
9212         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
9213         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
9214         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
9215         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
9216
9217 2007-06-27  Bruno Haible  <bruno@clisp.org>
9218
9219         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
9220         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
9221
9222 2007-06-26  Karl Berry  <karl@gnu.org>
9223
9224         * MODULES.html.sh: remove xreadlink-with-size.
9225
9226 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9227
9228         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
9229         method that I hope also handles the double-include problem noted
9230         by Bruno Haible in
9231         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
9232
9233 2007-06-23  Bruno Haible  <bruno@clisp.org>
9234
9235         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9236         Don't let the 'mostlyclean' target fail if the last subdirectory could
9237         not be removed.
9238         Reported by Karl Berry.
9239
9240 2007-06-23  Bruno Haible  <bruno@clisp.org>
9241
9242         * gnulib-tool (echo): Add a speedier workaround for ksh.
9243         * tests/test-echo.sh: Likewise.
9244
9245 2007-06-23  Bruno Haible  <bruno@clisp.org>
9246
9247         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
9248         * tests/test-echo.sh: Likewise.
9249
9250 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9251
9252         * gnulib-tool (IFS): Initialize early, so we don't set it to
9253         empty later.
9254         (self_abspathname): Rewrite algorithm to set it, reindent.
9255         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
9256         (func_create_megatestdir): Merge some sed scripts.
9257
9258 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9259
9260         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
9261         exposed by Sun Studio 11 cc on Solaris 8.
9262
9263 2007-06-22  Bruno Haible  <bruno@clisp.org>
9264
9265         * gnulib-tool (echo): Ensure the echo primitive does not interpret
9266         backslashes.
9267         * tests/test-echo.sh: New file.
9268
9269 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9270
9271         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
9272         simplify `sed_replace_build_aux' scripts, they are portable but
9273         echoing them with `echo' is not.
9274         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
9275
9276 2007-06-21  Karl Berry  <karl@gnu.org>
9277
9278         * config/srclist.txt: guess we can't handle the licenses via
9279         srclist at the moment.
9280
9281 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
9282
9283         * MODULES.html.sh: Add include_next.
9284         * modules/include_next: New file.
9285
9286 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
9287
9288         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
9289         INCLUDE_NEXT.
9290         (gl_CHECK_NEXT_HEADERS): New macro.
9291         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
9292         the obsolescent gl_ABSOLUTE_HEADER.
9293         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
9294         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
9295         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
9296         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9297         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
9298         * m4/math_h.m4 (gl_MATH_H): Likewise.
9299         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
9300         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9301         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9302         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9303         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
9304         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
9305         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
9306         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9307         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9308         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9309         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
9310         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
9311         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
9312         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9313         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
9314         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
9315         * m4/inttypes.m4 (gl_INTTYPES_H): Define
9316         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
9317         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
9318         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
9319         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
9320         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
9321         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
9322         * lib/float_.h: Likewise.
9323         * lib/inttypes_.h: Likewise.
9324         * lib/math_.h: Likewise.
9325         * lib/search_.h: Likewise.
9326         * lib/signal_.h: Likewise.
9327         * lib/stdint_.h: Likewise.
9328         * lib/stdio_.h: Likewise.
9329         * lib/stdlib_.h: Likewise.
9330         * lib/string_.h: Likewise.
9331         * lib/sys_stat_.h: Likewise.
9332         * lib/sys_time_.h: Likewise.
9333         * lib/time_.h: Likewise.
9334         * lib/unistd_.h: Likewise.
9335         * lib/wchar_.h: Likewise.
9336         * lib/wctype_.h: Likewise.
9337         * lib/dirent_.h: Likewise.
9338         * lib/iconv_.h: Likewise.
9339         * lib/locale_.h: Likewise.
9340         * lib/netinet_in_.h: Likewise.
9341         * lib/sys_select_.h: Likewise.
9342         * lib/sys_socket_.h: Likewise.
9343         * lib/sysexits_.h: Likewise.
9344         * modules/fcntl (Depends-on): Depend on include_next, not
9345         absolute_header.
9346         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
9347         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
9348         * modules/fchdir: Likewise.
9349         * modules/float: Likewise.
9350         * modules/iconv_open: Likewise.
9351         * modules/inttypes: Likewise.
9352         * modules/locale: Likewise.
9353         * modules/math: Likewise.
9354         * modules/netinet_in: Likewise.
9355         * modules/search: Likewise.
9356         * modules/signal: Likewise.
9357         * modules/stdint: Likewise.
9358         * modules/stdio: Likewise.
9359         * modules/stdlib: Likewise.
9360         * modules/string: Likewise.
9361         * modules/sys_select: Likewise.
9362         * modules/sys_socket: Likewise.
9363         * modules/sys_stat: Likewise.
9364         * modules/sys_time: Likewise.
9365         * modules/sysexits: Likewise.
9366         * modules/time: Likewise.
9367         * modules/unistd: Likewise.
9368         * modules/wchar: Likewise.
9369         * modules/wctype: Likewise.
9370         * modules/sys_stat: Change maintainer to "all".
9371         * modules/unistd: Likewise.
9372
9373 2007-06-20  Karl Berry  <karl@gnu.org>
9374
9375         * config/srclist.txt: track www changes in license files.
9376
9377 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
9378
9379         * build-aux/bootstrap: Remove stray dot.
9380         Make sure build_aux settings are honored when linking
9381         gnulib_extra_files.
9382
9383 2007-06-19  Eric Blake  <ebb9@byu.net>
9384
9385         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
9386         Allow compilation on cygwin.
9387
9388 2007-06-19  Jim Meyering  <jim@meyering.net>
9389
9390         xreadlink-with-size: Remove module.  No longer used.
9391         Ex-callers now use xreadlink or mreadlink-with-size.
9392         * modules/xreadlink-with-size: Remove module.
9393         * lib/xreadlink-with-size.c: Remove file.
9394         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
9395         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
9396         just before the function definition *is* accurate.
9397
9398         Eliminate one way canonicalize_filename_mode could exit.
9399         * lib/canonicalize.c (canonicalize_filename_mode):
9400         Use mreadlink_with_size, not xreadlink_with_size.
9401
9402 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
9403
9404         Detect porting problems to FreeBSD/arm, which has time_t wider than
9405         long int.  Original problem reported for GNU diff by Xin Li in
9406         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
9407         * modules/getdate (Depends-on): Add intprops, verify.
9408         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
9409         is an integer type no wider than long int.
9410
9411 2007-06-18  Jim Meyering  <jim@meyering.net>
9412
9413         New module: mreadlink-with-size.
9414         * MODULES.html.sh: Add mreadlink-with-size.
9415         * modules/mreadlink-with-size: New module
9416         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
9417         not xreadlink-with-size.
9418         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
9419
9420 2007-06-16  Bruno Haible  <bruno@clisp.org>
9421
9422         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
9423         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
9424         Reported by Gary V. Vaughan <gary@gnu.org>.
9425
9426 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9427
9428         Revamp lchown so that it lives in unistd.h where it belongs.
9429         * lib/lchown.h: Remove.
9430         * lib/dirchownmod.c: Don't include lib/lchown.h.
9431         * lib/fchownat.c: Likewise.
9432         * lib/openat.c: Likewise.
9433         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
9434         does not follow symlinks.
9435         (EOPNOTSUPP): Define if not defined.
9436         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
9437         is defined to 0.
9438         (lchown): New decl.
9439         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
9440         Do not check for lchown decl.
9441         Set REPLACE_LCHOWN.
9442         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
9443         REPLACE_LCHOWN.
9444         * modules/chown: Make it clear it follows symlinks.
9445         * modules/lchown: Make it clear it doesn't follow symlinks.
9446         (Files): Remove lib/lchown.h
9447         (Depends-on): Add unistd.
9448         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
9449         (Include): Include <unistd.h>, not "lchown.h".
9450         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
9451         REPLACE_LCHOWN.
9452
9453 2007-06-15  Jim Meyering  <jim@meyering.net>
9454
9455         Change license (GPL to LGPL) of fsusage and dependents.
9456         * modules/fsusage (License): Change to LGPL.
9457         * modules/full-read (License): Likewise.
9458         * modules/full-write (License): Likewise.
9459         * modules/safe-read (License): Likewise.
9460         * modules/safe-write (License): Likewise.
9461
9462 2007-06-14  Ben Pfaff  <blp@gnu.org>
9463
9464         Missing part of allocsa -> malloca transition.
9465         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
9466         gl_MALLOCA.
9467
9468 2007-06-12  Bruno Haible  <bruno@clisp.org>
9469
9470         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
9471         to ia64, x86_64, i386.
9472         Reported by Eric Blake.
9473
9474 2007-06-12  Bruno Haible  <bruno@clisp.org>
9475
9476         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
9477         cross-compiling to x86_64.
9478
9479 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
9480
9481         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
9482         glitch reported by Ralf Wildenhues in
9483         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
9484
9485         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
9486         Vin Shelton.
9487
9488 2007-06-11  Bruno Haible  <bruno@clisp.org>
9489
9490         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
9491         replacement string.
9492         Reported by Eric Blake.
9493
9494 2007-06-10  Bruno Haible  <bruno@clisp.org>
9495
9496         Prepare vasnprintf code for use with Unicode strings.
9497         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
9498         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
9499         TYPE_U32_STRING.
9500         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
9501         a_u32_string variants.
9502         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
9503         * lib/printf-args.c: Don't include config.h and the specification
9504         header if PRINTF_FETCHARGS is already defined.
9505         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
9506         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
9507         TYPE_U16_STRING, TYPE_U32_STRING.
9508         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
9509         u16_directive, u16_directives, u32_directive, u32_directives): New
9510         types.
9511         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
9512         New declarations.
9513         * lib/printf-parse.c: Don't include config.h and the specification
9514         header if PRINTF_PARSE is already defined. Eliminate the set of
9515         parameters for WIDE_CHAR_VERSION; the user of this file must provide
9516         them now. Include c-ctype.h.
9517         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
9518         directive and CHAR_T_ONLY_ASCII.
9519         * lib/vasnprintf.c: Don't include config.h and the specification header
9520         if VASNPRINTF is already defined.
9521         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
9522         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
9523         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
9524         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
9525         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
9526         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
9527         code accordingly.
9528         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
9529         pad_ourselves also in this case, with the 'c' and 's' directives, and
9530         with a different notion of "width".
9531         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
9532
9533 2007-06-10  Bruno Haible  <bruno@clisp.org>
9534
9535         * modules/unistr/u32-mbsnlen: New file.
9536         * lib/unistr/u32-mbsnlen.c: New file.
9537
9538         * modules/unistr/u16-mbsnlen: New file.
9539         * lib/unistr/u16-mbsnlen.c: New file.
9540
9541         * modules/unistr/u8-mbsnlen: New file.
9542         * lib/unistr/u8-mbsnlen.c: New file.
9543
9544         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
9545         declarations.
9546
9547 2007-06-10  Bruno Haible  <bruno@clisp.org>
9548
9549         * lib/string_.h (mbsnlen): New declaration.
9550         * lib/mbsnlen.c: New file.
9551         * m4/mbsnlen.m4: New file.
9552         * modules/mbsnlen: New file.
9553         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
9554         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
9555         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
9556
9557 2007-06-10  Bruno Haible  <bruno@clisp.org>
9558
9559         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
9560
9561 2007-06-10  Bruno Haible  <bruno@clisp.org>
9562
9563         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
9564         * lib/mbuiter.h: Likewise.
9565
9566 2007-06-10  Bruno Haible  <bruno@clisp.org>
9567
9568         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
9569         declaration.
9570
9571 2007-06-10  Karl Berry  <karl@gnu.org>
9572
9573         * config/srclist.txt: remove gettext entries, Bruno prefers
9574         to update individually.
9575
9576 2007-06-10  Bruno Haible  <bruno@clisp.org>
9577
9578         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
9579         'maxlen'. Ensure only length + width bytes are allocated, not
9580         length + 1 + width.
9581
9582 2007-06-09  Bruno Haible  <bruno@clisp.org>
9583
9584         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
9585         (CHAR_T): Remove macro.
9586         (VASNPRINTF): Update.
9587
9588 2007-06-09  Bruno Haible  <bruno@clisp.org>
9589
9590         * MODULES.html.sh (Unicode string functions): Add the new modules.
9591
9592         * modules/uniconv/u32-conv-to-enc: New file.
9593         * lib/uniconv/u32-conv-to-enc.c: New file.
9594         * modules/uniconv/u32-conv-to-enc-tests: New file.
9595         * tests/uniconv/test-u32-conv-to-enc.c: New file.
9596
9597         * modules/uniconv/u16-conv-to-enc: New file.
9598         * lib/uniconv/u16-conv-to-enc.c: New file.
9599         * lib/uniconv/u-conv-to-enc.h: New file.
9600         * modules/uniconv/u16-conv-to-enc-tests: New file.
9601         * tests/uniconv/test-u16-conv-to-enc.c: New file.
9602
9603         * modules/uniconv/u8-conv-to-enc: New file.
9604         * lib/uniconv/u8-conv-to-enc.c: New file.
9605         * modules/uniconv/u8-conv-to-enc-tests: New file.
9606         * tests/uniconv/test-u8-conv-to-enc.c: New file.
9607
9608         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
9609         u32_conv_to_encoding): New declarations.
9610
9611 2007-06-09  Bruno Haible  <bruno@clisp.org>
9612
9613         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
9614
9615 2007-06-09  Bruno Haible  <bruno@clisp.org>
9616
9617         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
9618         * modules/malloca: Renamed from modules/allocsa, updated.
9619         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
9620         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
9621         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
9622         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
9623         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
9624         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
9625         * modules/xmalloca: Renamed from modules/xallocsa, updated.
9626         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
9627         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
9628         * modules/c-strcasestr (Depends-on): Update.
9629         * lib/c-strcasestr.c: Update.
9630         * modules/c-strstr (Depends-on): Update.
9631         * lib/c-strstr.c: Update.
9632         * modules/canonicalize-lgpl (Depends-on): Update.
9633         * lib/canonicalize-lgpl.c: Update.
9634         * modules/clean-temp (Depends-on): Update.
9635         * lib/clean-temp.c: Update.
9636         * modules/csharpcomp (Depends-on): Update.
9637         * lib/csharpcomp.c: Update.
9638         * modules/csharpexec (Depends-on): Update.
9639         * lib/csharpexec.c: Update.
9640         * modules/javacomp (Depends-on): Update.
9641         * lib/javacomp.c: Update.
9642         * modules/javaexec (Depends-on): Update.
9643         * lib/javaexec.c: Update.
9644         * modules/mbscasestr (Depends-on): Update.
9645         * lib/mbscasestr.c: Update.
9646         * modules/mbsstr (Depends-on): Update.
9647         * lib/mbsstr.c: Update.
9648         * modules/setenv (Depends-on): Update.
9649         * lib/setenv.c: Update.
9650         * modules/strcasestr (Depends-on): Update.
9651         * lib/strcasestr.c: Update.
9652         * modules/striconveha (Depends-on): Update.
9653         * lib/striconveha.c: Update.
9654         * modules/relocatable-prog-wrapper (Files): Update.
9655         * lib/relocwrapper.c: Update.
9656         * build-aux/install-reloc: Update.
9657         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
9658
9659 2007-06-08  Bruno Haible  <bruno@clisp.org>
9660
9661         Port to uClibc.
9662         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
9663         * lib/fpurge.c (fpurge): Likewise.
9664         * lib/freading.c (freading): Likewise.
9665         * lib/fseeko.c (rpl_fseeko): Likewise.
9666         * lib/fseterr.c (fseterr): Likewise.
9667         * lib/fwriting.c (fwriting): Likewise.
9668         * tests/test-fflush.c (main): Avoid a failure on uClibc.
9669
9670 2007-06-08  Bruno Haible  <bruno@clisp.org>
9671
9672         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
9673         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
9674         * modules/gettext (Files): Add m4/intlmacosx.m4.
9675
9676 2007-06-07  Bruno Haible  <bruno@clisp.org>
9677
9678         * modules/localename-tests: New file.
9679         * tests/test-localename.c: New file.
9680
9681         New module 'localename'.
9682         * lib/localename.h: New file.
9683         * lib/localename.c: New file, from GNU gettext.
9684         * m4/localename.m4: New file.
9685         * modules/localename: New file.
9686
9687 2007-06-07  Bruno Haible  <bruno@clisp.org>
9688
9689         Work around the lack of <wchar.h> on some builds of uClibc.
9690         * doc/headers/wchar.texi: Update.
9691         * lib/wchar_.h: Include <wchar.h> only if it exists.
9692         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
9693         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
9694         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
9695         doesn't exist.
9696         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
9697         * modules/mbfile (Depends-on): Add wchar.
9698         * modules/mbiter (Depends-on): Likewise.
9699         * modules/mbuiter (Depends-on): Likewise.
9700         Reported by Simon Josefsson.
9701
9702 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
9703
9704         Work around problem reported by Steven M. Schweda in
9705         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
9706         Tru64 5.1B with the Compaq compiler environment installed declares
9707         an 'isblank' function but does not define it in the C library.
9708         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
9709         * lib/regex_internal.h (isblank): Likewise.
9710         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
9711         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9712
9713 2007-06-05  Bruno Haible  <bruno@clisp.org>
9714
9715         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
9716         ia64.
9717         * modules/printf-safe: New file.
9718         * modules/fprintf-posix (Depends-on): Add printf-safe.
9719         * modules/printf-posix (Depends-on): Likewise.
9720         * modules/snprintf-posix (Depends-on): Likewise.
9721         * modules/sprintf-posix (Depends-on): Likewise.
9722         * modules/vasnprintf-posix (Depends-on): Likewise.
9723         * modules/vasprintf-posix (Depends-on): Likewise.
9724         * modules/vfprintf-posix (Depends-on): Likewise.
9725         * modules/vprintf-posix (Depends-on): Likewise.
9726         * modules/vsnprintf-posix (Depends-on): Likewise.
9727         * modules/vsprintf-posix (Depends-on): Likewise.
9728         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
9729         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
9730         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
9731         "no" on i386, x86_64, ia64.
9732         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
9733         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
9734         on i386, x86_64, ia64.
9735         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
9736         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
9737         on i386, x86_64, ia64.
9738         * tests/test-vasnprintf-posix.c: Include float.h.
9739         (LDBL80_WORDS): New macro.
9740         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
9741         on i386, x86_64, ia64.
9742         * tests/test-vasprintf-posix.c: Include float.h.
9743         (LDBL80_WORDS): New macro.
9744         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
9745         on i386, x86_64, ia64.
9746         * tests/test-snprintf-posix.c: Include float.h.
9747         * tests/test-sprintf-posix.c: Likewise.
9748         * tests/test-vsnprintf-posix.c: Likewise.
9749         * tests/test-vsprintf-posix.c: Likewise.
9750
9751 2007-06-05  Bruno Haible  <bruno@clisp.org>
9752
9753         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
9754         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
9755         non-IEEE numbers on i386, x86_64, ia64.
9756         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
9757         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
9758         * tests/test-isnanl.h: Include float.h.
9759         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
9760
9761 2007-06-05  Bruno Haible  <bruno@clisp.org>
9762
9763         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
9764         also the %a / %A. Handle the %a / %A code before this extra handling.
9765
9766 2007-06-05  Bruno Haible  <bruno@clisp.org>
9767
9768         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
9769         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
9770
9771 2007-06-05  Bruno Haible  <bruno@clisp.org>
9772
9773         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
9774         typo in variable name.
9775
9776 2007-06-05  Eric Blake  <ebb9@byu.net>
9777
9778         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
9779         Reported by Simon Josefsson.
9780
9781 2007-06-04  Bruno Haible  <bruno@clisp.org>
9782
9783         Avoid test failures on some PowerPC platforms.
9784         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
9785         Define differently for PowerPC.
9786         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
9787         Reported by Gary V. Vaughan <gary@gnu.org>.
9788
9789 2007-06-02  Bruno Haible  <bruno@clisp.org>
9790
9791         Fix test-stdint failure on FreeBSD/ia64.
9792         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
9793         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
9794         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
9795         * doc/headers/stdint.texi: Update.
9796
9797 2007-06-01  Bruno Haible  <bruno@clisp.org>
9798
9799         * tests/test-binary-io.c (main): Pass a third argument to open().
9800         Reported by Gary V. Vaughan <gary@gnu.org>.
9801
9802 2007-06-01  Bruno Haible  <bruno@clisp.org>
9803
9804         * doc/functions/frexpl.texi: Update for mingw.
9805
9806 2007-06-01  Bruno Haible  <bruno@clisp.org>
9807
9808         * tests/test-lseek.c (main): Disable test of errno for invalid third
9809         argument.
9810         * doc/functions/lseek.texi: Update.
9811         Reported by Gary V. Vaughan <gary@gnu.org>.
9812
9813 2007-05-28  Bruno Haible  <bruno@clisp.org>
9814
9815         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
9816
9817 2007-05-31  Eric Blake  <ebb9@byu.net>
9818
9819         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
9820         cross compiling.
9821
9822 2007-05-30  Eric Blake  <ebb9@byu.net>
9823         and Bruno Haible  <bruno@clisp.org>
9824
9825         Work around mingw test failures exposed by m4-1.4.9b.
9826         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
9827         * tests/test-unistd.c: Disable uid_t and git_t tests for the
9828         moment.
9829
9830 2007-05-30  Bruno Haible  <bruno@clisp.org>
9831
9832         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
9833         assuming that they are closed. Needed on HP-UX 11.
9834
9835 2007-05-29  Bruno Haible  <bruno@clisp.org>
9836
9837         Fix a problem with #include_next.
9838         * lib/dirent_.h: Split the double-inclusion guard.
9839         * lib/fcntl_.h: Likewise.
9840         * lib/float_.h: Likewise.
9841         * lib/iconv_.h: Likewise.
9842         * lib/inttypes_.h: Likewise.
9843         * lib/locale_.h: Likewise.
9844         * lib/math_.h: Likewise.
9845         * lib/netinet_in_.h: Likewise.
9846         * lib/search_.h: Likewise.
9847         * lib/signal_.h: Likewise.
9848         * lib/stdint_.h: Likewise.
9849         * lib/stdio_.h: Likewise.
9850         * lib/stdlib_.h: Likewise.
9851         * lib/string_.h: Likewise.
9852         * lib/sys_select_.h: Likewise.
9853         * lib/sys_socket_.h: Likewise.
9854         * lib/sys_stat_.h: Likewise.
9855         * lib/sys_time_.h: Likewise.
9856         * lib/sysexits_.h: Likewise.
9857         * lib/time_.h: Likewise.
9858         * lib/unistd_.h: Likewise.
9859         * lib/wchar_.h: Likewise.
9860         * lib/wctype_.h: Likewise.
9861
9862 2007-05-29  Bruno Haible  <bruno@clisp.org>
9863
9864         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
9865         for the moment.
9866
9867 2007-05-29  Bruno Haible  <bruno@clisp.org>
9868
9869         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
9870         invocation.
9871         Reported by Eric Blake.
9872
9873 2007-05-29  Bruno Haible  <bruno@clisp.org>
9874
9875         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
9876         compiling case.
9877
9878 2007-05-29  Eric Blake  <ebb9@byu.net>
9879             Bruno Haible  <bruno@clisp.org>
9880
9881         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
9882         cross compiles.
9883
9884 2007-05-28  Eric Blake  <ebb9@byu.net>
9885
9886         * modules/closein-tests (test_closein_LDADD): Support test on
9887         cygwin with libtool.
9888
9889 2007-05-28  Bruno Haible  <bruno@clisp.org>
9890
9891         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
9892         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
9893         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
9894         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
9895         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
9896         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
9897         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
9898         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
9899         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
9900
9901 2007-05-28  Eric Blake  <ebb9@byu.net>
9902
9903         Unconditionally include <config.h> in unit tests.
9904         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
9905         * tests/test-allocsa.c, tests/test-arcfour.c,
9906         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
9907         tests/test-array_list.c, tests/test-array_oset.c,
9908         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
9909         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
9910         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
9911         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
9912         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
9913         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
9914         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
9915         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
9916         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
9917         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
9918         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
9919         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
9920         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
9921         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
9922         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
9923         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
9924         test-md5.c, test-memmem.c, test-printf-posix.c,
9925         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
9926         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
9927         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
9928         test-strcasestr.c, test-striconv.c, test-striconveh.c,
9929         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
9930         test-vasnprintf-posix2.c, test-vasnprintf.c,
9931         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
9932         test-vfprintf-posix.c, test-vprintf-posix.c,
9933         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
9934         test-xvasprintf.c: Likewise.
9935
9936 2007-05-28  Bruno Haible  <bruno@clisp.org>
9937
9938         * gnulib-tool (func_import): Remember the --with-tests command-line
9939         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
9940         Reported by Eric Blake.
9941
9942 2007-05-28  Bruno Haible  <bruno@clisp.org>
9943
9944         * modules/ftell-tests: New file.
9945         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
9946         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
9947
9948         * lib/ftell.c: New file.
9949         * modules/ftell: New file.
9950         * m4/ftell.m4: New file.
9951         * doc/functions/ftell.texi: Update.
9952         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
9953         REPLACE_FTELL.
9954         * lib/stdio_.h (rpl_ftell): New declaration.
9955         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
9956         REPLACE_FTELL.
9957
9958 2007-05-28  Eric Blake  <ebb9@byu.net>
9959
9960         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
9961
9962 2007-05-28  Bruno Haible  <bruno@clisp.org>
9963
9964         * modules/fseek-tests: New file.
9965         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
9966         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
9967
9968         * lib/fseek.c: New file.
9969         * modules/fseek: New file.
9970         * m4/fseek.m4: New file.
9971         * doc/functions/fseek.texi: Update.
9972         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
9973         REPLACE_FSEEK.
9974         * lib/stdio_.h (rpl_fseek): New declaration.
9975         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
9976         REPLACE_FSEEK.
9977
9978 2007-05-28  Bruno Haible  <bruno@clisp.org>
9979
9980         * lib/stdio_.h (fflush): More comments.
9981
9982 2007-05-28  Bruno Haible  <bruno@clisp.org>
9983
9984         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
9985         runtime test.
9986
9987 2007-05-28  Eric Blake  <ebb9@byu.net>
9988
9989         Improve lseek module.
9990         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
9991         * lib/unistd_.h (lseek): Scale back link warning message.
9992         * tests/test-lseek.c: Beef up test.
9993         * tests/test-lseek.sh: Exercise more facets of lseek.
9994         Reported by Bruno Haible.
9995
9996 2007-05-28  Bruno Haible  <bruno@clisp.org>
9997
9998         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
9999         to define.
10000
10001 2007-05-27  Bruno Haible  <bruno@clisp.org>
10002
10003         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
10004
10005 2007-05-27  Bruno Haible  <bruno@clisp.org>
10006
10007         * modules/openmp: New file.
10008         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
10009         Noah Misch.
10010
10011 2007-05-26  Bruno Haible  <bruno@clisp.org>
10012
10013         * modules/chdir-long (Depends-on): Add fchdir.
10014         * modules/chdir-safer (Depends-on): Likewise.
10015         * modules/fts (Depends-on): Likewise.
10016         * modules/fts-lgpl (Depends-on): Likewise.
10017         * modules/openat (Depends-on): Likewise.
10018         * modules/savewd (Depends-on): Likewise.
10019
10020 2007-05-24  Eric Blake  <ebb9@byu.net>
10021
10022         Fix lseek on mingw.
10023         * modules/lseek: New module.
10024         * m4/lseek.m4: New file.
10025         * lib/lseek.c: New file.
10026         * modules/lseek-tests: New file.
10027         * tests/test-lseek.c: New file.
10028         * tests/test-lseek.sh: New file.
10029         * MODULES.html.sh: Document lseek module.
10030         * modules/fflush (Depends-on): Add lseek, fseeko.
10031         * modules/fseeko (Depends-on): Likewise.
10032         * modules/ftello (Depends-on): Likewise.
10033         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
10034         broken.
10035         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
10036         broken.
10037         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
10038         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
10039         * lib/ftello.c (rpl_ftello): Likewise.
10040         * tests/test-fseeko.c (main): Test this.
10041         * tests/test-fseeko.sh: Likewise.
10042         * tests/test-ftello.c (main): Likewise.
10043         * tests/test-ftello.sh: Likewise.
10044         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
10045         implies replacing fseek.
10046         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
10047         HAVE_FTELLO.
10048         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
10049         * modules/unistd (Makefile.am): Likewise.
10050         * lib/unistd_.h (lseek): Declare a replacement.
10051         * doc/functions/lseek.texi (lseek): Document this fix.
10052         * doc/functions/fseek.texi (fseek): Likewise.
10053         * doc/functions/ftell.texi (ftell): Likewise.
10054
10055 2007-05-24  Bruno Haible  <bruno@clisp.org>
10056
10057         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
10058         in the printed representation of a NaN.
10059         * tests/test-vasprintf-posix.c (test_function): Likewise.
10060         * tests/test-snprintf-posix.h (test_function): Likewise.
10061         * tests/test-sprintf-posix.h (test_function): Likewise.
10062         Reported by Eric Blake.
10063
10064 2007-05-23  Eric Blake  <ebb9@byu.net>
10065
10066         Fix fseeko/ftello on cygwin 1.5.24.
10067         * doc/functions/fseeko.texi (fseeko): Document the fix.
10068         * doc/functions/ftello.texi (ftello): Document the fix.
10069         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
10070         * doc/functions/stdout.text (stdout): New file.
10071         * doc/functions/stderr.text (stderr): New file.
10072         * doc/gnulib.texi (Function Substitutes): Use new files.
10073         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
10074         prior to 1.7.0.
10075         * tests/test-ftello.c (main): Likewise for ftello.
10076         * tests/test-fseeko.sh: New file.
10077         * tests/test-ftello.sh: New file.
10078         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
10079         with seekable stdin.
10080         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
10081         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
10082         (gl_REPLACE_FSEEKO): New macro.
10083         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
10084         * modules/fseeko (Files): Distribute fseeko.c.
10085         * modules/ftello (Files): Distribute ftello.c.
10086         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
10087         mode.
10088         * lib/ftello.c (rpl_ftello): New file.
10089         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
10090         fseeko, ftello.
10091         (gl_STDIN_LARGE_OFFSET): New macro.
10092         * modules/stdio (Makefile.am): Perform the replacement.
10093         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
10094
10095 2007-05-23  Bruno Haible  <bruno@clisp.org>
10096
10097         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
10098         GNULIB_POSIXCHECK is defined.
10099
10100 2007-05-21  Bruno Haible  <bruno@clisp.org>
10101
10102         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
10103         Check also the output for NaN arguments. When cross-compiling, guess
10104         no on IRIX.
10105         * lib/vasnprintf.c: Update comments.
10106         * tests/test-vasnprintf-posix.c (strisnan): New function.
10107         (test_function): Use it.
10108         * tests/test-vasprintf-posix.c (strisnan): New function.
10109         (test_function): Use it.
10110         * tests/test-snprintf-posix.h (strisnan): New function.
10111         (test_function): Use it.
10112         * tests/test-sprintf-posix.h (strisnan): New function.
10113         (test_function): Use it.
10114         Reported by Eric Blake.
10115
10116 2007-05-20  Bruno Haible  <bruno@clisp.org>
10117
10118         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
10119         numbers that fails on BeOS.
10120         * doc/functions/frexpl.texi: Update.
10121
10122 2007-05-20  Jim Meyering  <jim@meyering.net>
10123
10124         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
10125         forced upon us by glibc-2.6.
10126
10127 2007-05-20  Bruno Haible  <bruno@clisp.org>
10128
10129         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
10130         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
10131         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
10132         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
10133         NEED_PRINTF_INFINITE.
10134         (is_infinitel): New function.
10135         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
10136         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
10137         gl_PREREQ_VASNPRINTF_INFINITE.
10138         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
10139         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10140         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
10141         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
10142         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
10143         gl_PREREQ_VASNPRINTF_INFINITE.
10144         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10145         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10146         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10147         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10148         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10149         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10150         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10151         * doc/functions/fprintf.texi: Update.
10152         * doc/functions/printf.texi: Update.
10153         * doc/functions/snprintf.texi: Update.
10154         * doc/functions/sprintf.texi: Update.
10155         * doc/functions/vfprintf.texi: Update.
10156         * doc/functions/vprintf.texi: Update.
10157         * doc/functions/vsnprintf.texi: Update.
10158         * doc/functions/vsprintf.texi: Update.
10159
10160 2007-05-20  Bruno Haible  <bruno@clisp.org>
10161
10162         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
10163         was not found in libc.
10164         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10165
10166 2007-05-20  Bruno Haible  <bruno@clisp.org>
10167
10168         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
10169         printed as "-nan" instead of "nan".
10170         * tests/test-vasprintf-posix.c (test_function): Likewise.
10171         * tests/test-snprintf-posix.h (test_function): Likewise.
10172         * tests/test-sprintf-posix.h (test_function): Likewise.
10173         Needed for HP-UX 11.
10174
10175 2007-05-20  Jim Meyering  <jim@meyering.net>
10176
10177         Fix buggy test for the fchownat-deref bug.
10178         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
10179         symlink required for the run-test.  Without it, this test would
10180         always declare that fchownat doesn't work, and client code would
10181         unnecessarily use the replacement function with fixed libc.
10182         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
10183         Reported by Greg Schafer.
10184
10185 2007-05-19  Bruno Haible  <bruno@clisp.org>
10186
10187         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
10188         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
10189         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
10190         Needed for IRIX 6.5 and Solaris 2.5.1.
10191
10192 2007-05-19  Bruno Haible  <bruno@clisp.org>
10193
10194         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
10195         (test_function): Skip tests involving -0.0 on platforms where
10196         -0.0 = 0.0.
10197         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
10198         (test_function): Skip tests involving -0.0 on platforms where
10199         -0.0 = 0.0.
10200         * tests/test-snprintf-posix.h (have_minus_zero): New function.
10201         (test_function): Skip tests involving -0.0 on platforms where
10202         -0.0 = 0.0.
10203         * tests/test-sprintf-posix.h (have_minus_zero): New function.
10204         (test_function): Skip tests involving -0.0 on platforms where
10205         -0.0 = 0.0.
10206         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
10207         tests.
10208         * tests/test-printf-posix.h (test_function): Likewise.
10209         * tests/test-printf-posix.output: Remove all -0.0 related results.
10210         Needed for IRIX 6.5.
10211
10212 2007-05-19  Bruno Haible  <bruno@clisp.org>
10213
10214         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
10215         printed as "nan0x7fffffff" instead of "nan".
10216         * tests/test-vasprintf-posix.c (test_function): Likewise.
10217         * tests/test-snprintf-posix.h (test_function): Likewise.
10218         * tests/test-sprintf-posix.h (test_function): Likewise.
10219         * tests/test-fprintf-posix.h (NaN): Remove macro.
10220         (test_function): Remove all NaN related tests.
10221         * tests/test-printf-posix.h (NaN): Remove macro.
10222         (test_function): Remove all NaN related tests.
10223         * tests/test-printf-posix.output: Remove all NaN related results.
10224         Needed for IRIX 6.5.
10225
10226 2007-05-19  Bruno Haible  <bruno@clisp.org>
10227
10228         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
10229         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10230
10231 2007-05-19  Bruno Haible  <bruno@clisp.org>
10232
10233         * lib/float_.h: New file.
10234         * m4/float_h.m4: New file.
10235         * modules/float: New file.
10236         * modules/isnanl (Dependencies): Add float.
10237         * modules/isnanl-nolibm (Dependencies): Likewise.
10238         * modules/mathl (Dependencies): Likewise.
10239         * modules/printf-frexpl (Dependencies): Likewise.
10240         * modules/signbit (Dependencies): Likewise.
10241         * modules/vasnprintf (Dependencies): Likewise.
10242         * doc/headers/float.texi: Update.
10243
10244 2007-05-19  Jim Meyering  <jim@meyering.net>
10245
10246         * lib/utimens.c (gl_futimens): Rename from futimens,
10247         now that glibc-2.6 declares futimens.
10248         * lib/utimens.h: Likewise.
10249
10250 2007-05-19  Bruno Haible  <bruno@clisp.org>
10251
10252         Avoid test failures on mingw.
10253         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
10254         * tests/test-printf-posix.sh: Likewise.
10255         * tests/test-vfprintf-posix.sh: Likewise.
10256         * tests/test-vprintf-posix.sh: Likewise.
10257
10258 2007-05-19  Bruno Haible  <bruno@clisp.org>
10259
10260         Fix *printf result for NaN, Inf, -0.0 on mingw.
10261         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
10262         * lib/vasnprintf.c: Include math.h and isnan.h.
10263         (is_infinite_or_zero): New function.
10264         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
10265         values in the %f, %F, %e, %E, %g, %G directives.
10266         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
10267         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10268         gl_PRINTF_INFINITE and test its result. Invoke
10269         gl_PREREQ_VASNPRINTF_INFINITE.
10270         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10271         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10272         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10273         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10274         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10275         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10276         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10277         * doc/functions/fprintf.texi: Update.
10278         * doc/functions/printf.texi: Update.
10279         * doc/functions/snprintf.texi: Update.
10280         * doc/functions/sprintf.texi: Update.
10281         * doc/functions/vfprintf.texi: Update.
10282         * doc/functions/vprintf.texi: Update.
10283         * doc/functions/vsnprintf.texi: Update.
10284         * doc/functions/vsprintf.texi: Update.
10285
10286 2007-05-19  Bruno Haible  <bruno@clisp.org>
10287
10288         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
10289         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
10290         Instead of multiplying with 10^k, set extra_zeroes to k.
10291         (scale10_round_long_double): Remove function.
10292
10293 2007-05-18  Bruno Haible  <bruno@clisp.org>
10294
10295         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
10296         introduced on 2007-05-06.
10297
10298 2007-05-18  Bruno Haible  <bruno@clisp.org>
10299
10300         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
10301         %g directives.
10302         * tests/test-vasprintf-posix.c (test_function): Likewise.
10303         * tests/test-snprintf-posix.h (test_function): Likewise.
10304         * tests/test-sprintf-posix.h (test_function): Likewise.
10305
10306 2007-05-18  Bruno Haible  <bruno@clisp.org>
10307
10308         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
10309         (strmatch): New function.
10310         (test_function): Test the %f directive on numbers of various exponents.
10311         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
10312         (strmatch): New function.
10313         (test_function): Test the %f directive on numbers of various exponents.
10314         * tests/test-snprintf-posix.h (strmatch): New function.
10315         (test_function): Test the %f directive on numbers of various exponents.
10316         * tests/test-sprintf-posix.h (strmatch): New function.
10317         (test_function): Test the %f directive on numbers of various exponents.
10318         * tests/test-snprintf-posix.c (SIZEOF): New macro.
10319         * tests/test-sprintf-posix.c (SIZEOF): New macro.
10320         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
10321         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
10322
10323 2007-05-18  Bruno Haible  <bruno@clisp.org>
10324
10325         Add support for 'long double' number output.
10326         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
10327         * lib/vasnprintf.c: Include math.h and float+.h.
10328         (mp_limb_t): New type.
10329         (GMP_LIMB_BITS): New macro.
10330         (mp_twolimb_t): New type.
10331         (GMP_TWOLIMB_BITS): New macro.
10332         (mpn_t): New type.
10333         (multiply, divide, convert_to_decimal, decode_long_double,
10334         scale10_round_long_double, scale10_round_decimal_long_double,
10335         floorlog10l): New functions.
10336         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
10337         for the %f, %F, %e, %E, %g, %G directives.
10338         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
10339         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10340         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
10341         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
10342         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10343         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10344         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10345         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10346         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10347         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10348         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10349         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
10350         * modules/snprintf-posix (Depends-on): Likewise.
10351         * modules/sprintf-posix (Depends-on): Likewise.
10352         * modules/vasnprintf-posix (Depends-on): Likewise.
10353         * modules/vasprintf-posix (Depends-on): Likewise.
10354         * modules/vfprintf-posix (Depends-on): Likewise.
10355         * modules/vsnprintf-posix (Depends-on): Likewise.
10356         * modules/vsprintf-posix (Depends-on): Likewise.
10357         * modules/vasnprintf (Files): Add lib/float+.h.
10358         * doc/functions/fprintf.texi: Update.
10359         * doc/functions/printf.texi: Update.
10360         * doc/functions/snprintf.texi: Update.
10361         * doc/functions/sprintf.texi: Update.
10362         * doc/functions/vfprintf.texi: Update.
10363         * doc/functions/vprintf.texi: Update.
10364         * doc/functions/vsnprintf.texi: Update.
10365         * doc/functions/vsprintf.texi: Update.
10366
10367 2007-05-18  Bruno Haible  <bruno@clisp.org>
10368
10369         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
10370
10371 2007-05-18  Bruno Haible  <bruno@clisp.org>
10372
10373         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
10374         for printing 64-bit integers. Needed for mingw.
10375
10376 2007-05-18  Bruno Haible  <bruno@clisp.org>
10377
10378         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
10379         gl_FUNC_FREXPL_WORKS.
10380         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
10381
10382 2007-05-18  Bruno Haible  <bruno@clisp.org>
10383
10384         * modules/frexpl-nolibm-tests: New file.
10385
10386         * modules/frexpl-nolibm: New file.
10387         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
10388
10389 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10390
10391         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
10392         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
10393         GCC 4.2, which otherwise issues a lot of warnings.
10394         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
10395         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
10396         Likewise.
10397         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
10398         * modules/iconv_open (iconv.h): Likewise.
10399         * modules/locale (locale.h): Likewise.
10400         * modules/netinet_in (netinet/in.h): Likewise.
10401         * modules/sys_select (sys_select.h): Likewise.
10402         * modules/sys_socket (sys/socket.h): Likewise.
10403         * modules/sys_stat (sys/stat.h): Likewise.
10404         * modules/sysexits (sysexits.h): Likewise.
10405         * modules/unistd (unistd.h): Likewise.
10406
10407 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10408
10409         * modules/closein-tests (Makefile.am): Distribute
10410         `test-closein.sh'.
10411
10412 2007-05-17  Bruno Haible  <bruno@clisp.org>
10413
10414         * tests/test-printf-posix.output: Renamed from
10415         tests/test-fprintf-posix.out.
10416         * modules/fprintf-posix-tests: Update.
10417         * modules/printf-posix-tests: Update.
10418         * modules/vfprintf-posix-tests: Update.
10419         * modules/vprintf-posix-tests: Update.
10420         * tests/test-fprintf-posix.sh: Update.
10421         * tests/test-printf-posix.sh: Update.
10422         * tests/test-vfprintf-posix.sh: Update.
10423         * tests/test-vprintf-posix.sh: Update.
10424         Reported by Ralf Wildenhues.
10425
10426 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10427
10428         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
10429         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
10430         GCC 4.2, which otherwise issues a lot of warnings.
10431         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
10432         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
10433         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
10434         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
10435         it should no longer be needed.
10436         * lib/string_.h: Likewise.
10437         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
10438         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
10439         * modules/inttypes (inttypes.h): Likewise.
10440         * modules/math (math.h): Likewise.
10441         * modules/search (search.h): Likewise.
10442         * modules/signal (signal.h): Likewise.
10443         * modules/stdint (stdint.h): Likewise.
10444         * modules/stdio (stdio.h): Likewise.
10445         * modules/stdlib (stdlib.h): Likewise.
10446         * modules/string (string.h): Likewise.
10447         * modules/sys_time (sys/time.h): Likewise.
10448         * modules/time (time.h): Likewise.
10449         * modules/wchar (wchar.h): Likewise.
10450         * modules/wctype (wtype.h): Likewise.
10451
10452 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
10453
10454         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
10455
10456 2007-05-13  Bruno Haible  <bruno@clisp.org>
10457
10458         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
10459         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10460         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
10461         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
10462         (gl_PREREQ_STRTOK_R): Don't require it here.
10463
10464 2007-05-13  Bruno Haible  <bruno@clisp.org>
10465
10466         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
10467         when used in C++ mode.
10468
10469 2007-05-12  Bruno Haible  <bruno@clisp.org>
10470
10471         * lib/linebuffer.h: Tweak doc.
10472         * lib/linebuffer.c: Likewise.
10473
10474 2007-05-12  James Youngman  <jay@gnu.org>
10475
10476         * lib/linebuffer.c (readlinebuffer_delim): New function,
10477         like readlinebuffer, but use a caller-specified delimiter.
10478         (readlinebuffer): Just call readlinebuffer_delim with '\n'
10479         as the delimiter.
10480         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
10481
10482 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
10483
10484         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
10485         * modules/openat (Files): Remove openat-die.c.
10486         (Depends-on): Add openat-die.
10487         * modules/openat-die: New module.
10488
10489 2007-05-06  Bruno Haible  <bruno@clisp.org>
10490
10491         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
10492         Update with info about Cygwin.
10493         * doc/functions/fprintf.texi: Update.
10494         * doc/functions/printf.texi: Update.
10495         * doc/functions/snprintf.texi: Update.
10496         * doc/functions/sprintf.texi: Update.
10497         * doc/functions/vfprintf.texi: Update.
10498         * doc/functions/vprintf.texi: Update.
10499         * doc/functions/vsnprintf.texi: Update.
10500         * doc/functions/vsprintf.texi: Update.
10501         Reported by Eric Blake.
10502
10503 2007-05-06  Bruno Haible  <bruno@clisp.org>
10504
10505         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
10506         padding ourselves for the floating-point directives.
10507         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
10508         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
10509         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
10510         gl_PRINTF_FLAG_ZERO and test its result. Invoke
10511         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
10512         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10513         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
10514         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10515         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10516         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10517         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10518         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10519         * tests/test-snprintf-posix.h (test_function): Also check the width
10520         and some flags in the %f directive.
10521         * tests/test-sprintf-posix.h (test_function): Likewise.
10522         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10523         * tests/test-vasprintf-posix.c (test_function): Likewise.
10524         * doc/functions/fprintf.texi: Update.
10525         * doc/functions/printf.texi: Update.
10526         * doc/functions/snprintf.texi: Update.
10527         * doc/functions/sprintf.texi: Update.
10528         * doc/functions/vfprintf.texi: Update.
10529         * doc/functions/vprintf.texi: Update.
10530         * doc/functions/vsnprintf.texi: Update.
10531         * doc/functions/vsprintf.texi: Update.
10532
10533 2007-05-06  Bruno Haible  <bruno@clisp.org>
10534
10535         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
10536         pass the ' flag character to sprintf or snprintf.
10537         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
10538         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
10539         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
10540         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
10541         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
10542         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10543         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
10544         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10545         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10546         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10547         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10548         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10549         * tests/test-snprintf-posix.h (test_function): Also check the grouping
10550         flag.
10551         * tests/test-sprintf-posix.h (test_function): Likewise.
10552         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10553         * tests/test-vasprintf-posix.c (test_function): Likewise.
10554         * doc/functions/fprintf.texi: Update.
10555         * doc/functions/printf.texi: Update.
10556         * doc/functions/snprintf.texi: Update.
10557         * doc/functions/sprintf.texi: Update.
10558         * doc/functions/vfprintf.texi: Update.
10559         * doc/functions/vprintf.texi: Update.
10560         * doc/functions/vsnprintf.texi: Update.
10561         * doc/functions/vsprintf.texi: Update.
10562
10563 2007-05-01  Bruno Haible  <bruno@clisp.org>
10564
10565         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
10566
10567 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
10568
10569         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
10570         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
10571
10572 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
10573
10574         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
10575         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
10576         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
10577
10578 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
10579
10580         * lib/argp-help.c (struct hol_entry): New member `ord'.
10581         (HOL_ENTRY_PTRCMP): Use ord for comparison
10582         (hol_sort): Initialize ord.
10583
10584 2007-05-01  Bruno Haible  <bruno@clisp.org>
10585
10586         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
10587         Reported by Eric Blake.
10588         * doc/gnulib.texi (Function Substitutes): Update.
10589
10590 2007-05-01  Bruno Haible  <bruno@clisp.org>
10591
10592         * doc/functions.texi: Remove file, now redundant through
10593         doc/functions/*.texi.
10594
10595 2007-05-01  Bruno Haible  <bruno@clisp.org>
10596
10597         * modules/argp (Depends-on): Add sleep.
10598
10599 2007-05-01  Bruno Haible  <bruno@clisp.org>
10600
10601         * modules/sleep-tests: New file.
10602         * tests/test-sleep.c: New file.
10603
10604         * modules/sleep: New file.
10605         * lib/sleep.c: New file.
10606         * m4/sleep.m4: New file.
10607         * lib/unistd_.h (sleep): New declaration.
10608         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
10609         HAVE_SLEEP.
10610         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
10611         * doc/functions/sleep.texi: Document the sleep module.
10612
10613 2007-05-01  Bruno Haible  <bruno@clisp.org>
10614
10615         * lib/sigprocmask.h: Remove file.
10616         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
10617         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
10618         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
10619         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
10620         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
10621         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
10622         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
10623         HAVE_SIGSET_T as a shell variable.
10624         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
10625         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
10626         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
10627         (Depends-on): Add signal. Remove verify.
10628         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
10629         (Include): Mention <signal.h> instead of sigprocmask.h.
10630         * NEWS: Mention the change.
10631         * lib/fatal-signal.c: Don't include sigprocmask.h.
10632
10633 2007-05-01  Bruno Haible  <bruno@clisp.org>
10634
10635         * modules/signal: New file.
10636         * lib/signal_.h: New file.
10637         * m4/signal_h.m4: New file.
10638
10639 2007-05-01  Bruno Haible  <bruno@clisp.org>
10640
10641         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
10642         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
10643         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
10644         HAVE_WCTYPE_CTMP_BUG into wctype.h.
10645
10646 2007-05-01  Bruno Haible  <bruno@clisp.org>
10647
10648         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
10649         configure time.
10650         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
10651         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
10652         * modules/sys_stat (Makefile.am): Substitute their values into
10653         sys/stat.h.
10654
10655 2007-05-01  Bruno Haible  <bruno@clisp.org>
10656
10657         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
10658         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
10659         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
10660
10661 2007-05-01  Bruno Haible  <bruno@clisp.org>
10662
10663         * doc/header/assert.texi: Undo last change: don't mention the gnulib
10664         'assert' module here.
10665
10666 2007-05-01  Bruno Haible  <bruno@clisp.org>
10667
10668         * doc/functions/*.texi: New files.
10669         * doc/functions/google-ranking.txt: New file.
10670         * doc/gnulib.texi (Function Substitutes): New chapter.
10671         (ctime, inet_ntoa): Remove sections.
10672         * doc/ctime.texi: Remove file.
10673         * doc/inet_ntoa.texi: Remove file.
10674         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
10675         dependencies.
10676         (%.info): New rule, specifying a --reference-limit.
10677
10678 2007-05-01  Bruno Haible  <bruno@clisp.org>
10679
10680         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
10681
10682 2007-05-01  Bruno Haible  <bruno@clisp.org>
10683
10684         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
10685         the portability of 'mkdir' to mingw systems.
10686
10687 2007-05-01  Bruno Haible  <bruno@clisp.org>
10688
10689         * doc/headers/google-ranking.txt: New file.
10690
10691 2007-04-30  Eric Blake  <ebb9@byu.net>
10692
10693         Prefer fseeko to fseek.
10694         * modules/getpass (Depends-on): Add fseeko.
10695         * lib/getpass.c (getpass): Use fseeko, not fseek.
10696
10697 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
10698
10699         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
10700         assumes the sorting is stable, while most qsort implementations
10701         are not.  Use argument addresses to ensure they never compare as
10702         equal.
10703
10704         * tests/test-argp-2.sh (usage-indent test): Fix output
10705         (func_compare): Restore diff options
10706         * tests/test-argp.c: Restore #include "progname.h"
10707
10708 2007-04-29  Bruno Haible  <bruno@clisp.org>
10709
10710         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
10711         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
10712         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
10713         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10714         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
10715         (configure.ac): Define CHECK_SNPRINTF_POSIX.
10716         (TESTS, check_PROGRAMS): Add test-snprintf.
10717         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
10718         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
10719         (TESTS, check_PROGRAMS): Add test-vsnprintf.
10720         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
10721         assertions that fail on HP-UX, OSF/1, or IRIX.
10722         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
10723
10724 2007-04-29  Bruno Haible  <bruno@clisp.org>
10725
10726         * MODULES.html.sh (posix_functions): Remove 'contents'.
10727
10728 2007-04-29  Karl Berry  <karl@gnu.org>
10729
10730         * config/srclist.txt (gendocs_template_min): new entry.
10731
10732 2007-04-29  Bruno Haible  <bruno@clisp.org>
10733
10734         Work around fpurge bug on BSD systems.
10735         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
10736         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
10737         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
10738         fpurge to rpl_fpurge if the system already has this function.
10739         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
10740         the case where the system already has this function. Correct invariants
10741         on BSD systems.
10742         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
10743         BSD systems.
10744
10745 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
10746
10747         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
10748         proposed by Sven Verdoolaege.
10749
10750         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
10751         options.
10752         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
10753         (usage and help tests): Update
10754
10755 2007-04-29  Bruno Haible  <bruno@clisp.org>
10756
10757         * tests/test-fflush.c (main): Use a file of size 17, not 10.
10758         Print more information in case of failure. Disable a test on BeOS.
10759
10760 2007-04-29  Bruno Haible  <bruno@clisp.org>
10761
10762         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
10763         This helps debugging on systems on which no gdb is available.
10764
10765 2007-04-29  Bruno Haible  <bruno@clisp.org>
10766
10767         * lib/freading.h: Improve comments.
10768         * lib/fwriting.h: Likewise.
10769         * tests/test-freading.c (main): Don't check freading immediately after
10770         repositioning. Needed for glibc.
10771
10772 2007-04-29  Bruno Haible  <bruno@clisp.org>
10773
10774         * lib/freading.c (freading): Trivial simplification.
10775
10776 2007-04-28  Bruno Haible  <bruno@clisp.org>
10777
10778         * tests/test-fwriting.c (main): Also test the interaction between
10779         fflush and fwriting.
10780         * modules/fwriting-tests (Depends-on): Add fflush.
10781
10782         * tests/test-freading.c (main): Also test the interaction between
10783         fflush and freading.
10784         * modules/freading-tests (Depends-on): Add fflush.
10785
10786 2007-04-28  Bruno Haible  <bruno@clisp.org>
10787
10788         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
10789         fseeko and ftello.
10790         Suggested by Eric Blake.
10791
10792 2007-04-28  Jim Meyering  <jim@meyering.net>
10793
10794         Avoid false-negative in gl_STDINT_H's C99 conformance test.
10795         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
10796         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
10797
10798 2007-04-27  Eric Blake  <ebb9@byu.net>
10799
10800         * doc/headers/assert.texi (assert.h): Document assert module use.
10801
10802 2007-04-27  Bruno Haible  <bruno@clisp.org>
10803
10804         * doc/headers/*.texi: New files.
10805         * doc/gnulib.texi (Header File Substitutes): New chapter.
10806         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
10807         dependencies.
10808         (standards.info ,standards.html, standards.dvi): Update dependencies.
10809         (mostlyclean, clean): New targets.
10810
10811 2007-04-27  Bruno Haible  <bruno@clisp.org>
10812
10813         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
10814         * modules/sysexits (Files, Makefile.am): Update.
10815
10816         * lib/sys_socket_.h: Renamed from lib/socket_.h.
10817         * modules/sys_socket (Files, Makefile.am): Update.
10818
10819         * lib/sys_stat_.h: Renamed from lib/stat_.h.
10820         * modules/sys_stat (Files, Makefile.am): Update.
10821
10822 2007-04-27  Eric Blake  <ebb9@byu.net>
10823
10824         * lib/freading.h: Improve comments.
10825         * lib/fwriting.h: Likewise.
10826         * lib/fflush.c: Likewise.
10827
10828         Fix closein for mingw.
10829         * modules/closein-tests: Add tests for closein.
10830         * tests/test-closein.c: New file.
10831         * tests/test-closein.sh: Likewise.
10832         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
10833         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
10834
10835 2007-04-27  Bruno Haible  <bruno@clisp.org>
10836
10837         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
10838         version is < 6.
10839         * lib/math_.h [__DECC]: Likewise.
10840         * lib/stdio_.h [__DECC]: Likewise.
10841         * lib/stdlib_.h [__DECC]: Likewise.
10842         * lib/string_.h [__DECC]: Likewise.
10843         * lib/time_.h [__DECC]: Likewise.
10844         * lib/wchar_.h [__DECC]: Likewise.
10845         * lib/wctype_.h [__DECC]: Likewise.
10846
10847 2007-04-27  Bruno Haible  <bruno@clisp.org>
10848
10849         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
10850
10851 2007-04-27  Bruno Haible  <bruno@clisp.org>
10852
10853         * lib/fflush.c: Add comments.
10854         * modules/fpurge-tests (Depends-on): Add fflush.
10855         * modules/freadable-tests (Depends-on): Likewise.
10856         * modules/fwritable-tests (Depends-on): Likewise.
10857
10858 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
10859
10860         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
10861         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
10862         Report by Bruno Haible <bruno@clisp.org>.
10863
10864 2007-04-26  Eric Blake  <ebb9@byu.net>
10865
10866         Fix fflush on mingw.
10867         * modules/fflush (Depends-on): Add freading.
10868         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
10869         but unread data.
10870
10871 2007-04-26  Eric Blake  <ebb9@byu.net>
10872         and Bruno Haible  <bruno@clisp.org>
10873
10874         Implement freading and fwriting.
10875         * lib/freading.c: New file.
10876         * lib/freading.h: Likewise.
10877         * m4/freading.m4: Likewise.
10878         * modules/freading: Likewise.
10879         * modules/freading-tests: Likewise.
10880         * tests/test-freading.c: Likewise.
10881         * lib/fwriting.c: New file.
10882         * lib/fwriting.h: Likewise.
10883         * m4/fwriting.m4: Likewise.
10884         * modules/fwriting: Likewise.
10885         * modules/fwriting-tests: Likewise.
10886         * tests/test-fwriting.c: Likewise.
10887         * MODULES.html.sh (File stream based Input/Output): Mention them.
10888
10889 2007-04-26  Bruno Haible  <bruno@clisp.org>
10890
10891         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
10892         'long' when we assume it.
10893         Suggested by Eric Blake.
10894
10895 2007-04-26  Bruno Haible  <bruno@clisp.org>
10896
10897         Ensure fseeko, ftello are declared on glibc systems.
10898         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
10899         * modules/fseeko (configure.ac-early): Likewise.
10900         * modules/ftello (configure.ac-early): Likewise.
10901         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
10902         AC_FUNC_FSEEKO for this.
10903         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
10904         (gl_CHECK_FSEEKO): Remove macro.
10905
10906 2007-04-26  Bruno Haible  <bruno@clisp.org>
10907
10908         * tests/test-fflush.c (main): Also check the ftell result after
10909         fflush and fseek/fseeko.
10910         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
10911         file descriptor position cache in the stream.
10912         * lib/fseeko.c (rpl_fseeko): Likewise.
10913
10914 2007-04-26  Bruno Haible  <bruno@clisp.org>
10915
10916         * modules/fflush-tests (Depends-on): Add fseeko.
10917
10918 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
10919             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10920
10921         * lib/argz_.h: ensure error_t definition is obtained in same
10922         mechanism system argz.h would have.
10923         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
10924         argz facilities are known bad.  Err on the side of caution if
10925         cross-compiling.
10926
10927 2007-04-25  Eric Blake  <ebb9@byu.net>
10928
10929         * lib/fpurge.c (includes): Use stdlib.h for free.
10930         * tests/test-fflush.c (main): Also test fflush-fseeko.
10931
10932 2007-04-25  Bruno Haible  <bruno@clisp.org>
10933
10934         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
10935         * lib/fseeko.c: New file.
10936         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
10937         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
10938         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
10939         gl_FUNC_FSEEKO.
10940         (gl_FUNC_FSEEKO): Invoke it.
10941         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
10942         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
10943         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
10944
10945 2007-04-25  Bruno Haible  <bruno@clisp.org>
10946
10947         * modules/fflush (Depends-on): Add ftello.
10948
10949 2007-04-25  Bruno Haible  <bruno@clisp.org>
10950
10951         * modules/ftello-tests: New file.
10952         * tests/test-ftello.c: New file.
10953
10954         * modules/ftello: New file.
10955         * m4/ftello.m4: New file.
10956         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
10957         HAVE_FTELLO.
10958         * lib/stdio_.h (ftello): New declaration.
10959         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
10960         HAVE_FTELLO.
10961
10962 2007-04-25  Bruno Haible  <bruno@clisp.org>
10963
10964         * modules/fseeko-tests: New file.
10965         * tests/test-fseeko.c: New file.
10966
10967         * modules/fseeko: New file.
10968         * m4/fseeko.m4: New file.
10969         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
10970         HAVE_FSEEKO.
10971         * lib/stdio_.h (fseeko): New declaration.
10972         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
10973         HAVE_FSEEKO.
10974
10975 2007-04-25  Bruno Haible  <bruno@clisp.org>
10976
10977         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
10978
10979 2007-04-25  Bruno Haible  <bruno@clisp.org>
10980
10981         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
10982         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
10983         * tests/test-unistd.c: Likewise.
10984         * tests/test-fcntl.c: Likewise.
10985
10986 2007-04-23  Eric Blake  <ebb9@byu.net>
10987
10988         * lib/fflush.c: Fix missing include.
10989         Reported by Bruno Haible.
10990
10991 2007-04-23  Bruno Haible  <bruno@clisp.org>
10992
10993         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
10994         Reported by Eric Blake.
10995
10996 2007-04-23  Bruno Haible  <bruno@clisp.org>
10997
10998         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
10999
11000 2007-04-23  Bruno Haible  <bruno@clisp.org>
11001
11002         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
11003
11004 2007-04-23  Bruno Haible  <bruno@clisp.org>
11005
11006         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
11007         Needed on HP-UX 11.
11008
11009 2007-04-16  Eric Blake  <ebb9@byu.net>
11010
11011         Make fflush rely on fpurge.
11012         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
11013         open coding all variants.
11014         * modules/fflush (Depends-on): Add fpurge and unistd.
11015         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
11016         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
11017
11018         Fix --with-tests compilation on cygwin.
11019         * modules/argmatch-tests (Makefile.am): List gnulib library first
11020         in LDADD.
11021         * modules/argp-tests (Makefile.am): Likewise.
11022         * modules/array-list-tests (Makefile.am): Likewise.
11023         * modules/array-oset-tests (Makefile.am): Likewise.
11024         * modules/avltree-list-tests (Makefile.am): Likewise.
11025         * modules/avltree-oset-tests (Makefile.am): Likewise.
11026         * modules/avltreehash-list-tests (Makefile.am): Likewise.
11027         * modules/carray-list-tests (Makefile.am): Likewise.
11028         * modules/dirname-tests (Makefile.am): Likewise.
11029         * modules/frexp-tests (Makefile.am): Likewise.
11030         * modules/isnanl-tests (Makefile.am): Likewise.
11031         * modules/linked-list-tests (Makefile.am): Likewise.
11032         * modules/linkedhash-list-tests (Makefile.am): Likewise.
11033         * modules/lock-tests (Makefile.am): Likewise.
11034         * modules/rbtree-list-tests (Makefile.am): Likewise.
11035         * modules/rbtree-oset-tests (Makefile.am): Likewise.
11036         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
11037         * modules/tls-tests (Makefile.am): Likewise.
11038         * modules/tsearch-tests (Makefile.am): Likewise.
11039         * modules/xvasprintf-tests (Makefile.am): Likewise.
11040
11041         Fix fpurge for cygwin.
11042         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
11043         value.
11044         * modules/fpurge-tests (Depends-on): Clean up trash.
11045
11046 2007-04-16  Simon Josefsson  <simon@josefsson.org>
11047
11048         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
11049
11050         * m4/autobuild.m4: Re-indent.
11051
11052 2007-04-13  Bruno Haible  <bruno@clisp.org>
11053
11054         * modules/fpurge-tests: New file.
11055         * tests/test-fpurge.c: New file.
11056
11057         * modules/fpurge: New file.
11058         * lib/fpurge.h: New file.
11059         * lib/fpurge.c: New file.
11060         * m4/fpurge.m4: New file.
11061
11062 2007-04-13  Bruno Haible  <bruno@clisp.org>
11063
11064         * modules/fbufmode-tests: New file.
11065         * tests/test-fbufmode.c: New file.
11066
11067         * modules/fbufmode: New file.
11068         * lib/fbufmode.h: New file.
11069         * lib/fbufmode.c: New file.
11070         * m4/fbufmode.m4: New file.
11071
11072 2007-04-13  Bruno Haible  <bruno@clisp.org>
11073
11074         * modules/fwritable-tests: New file.
11075         * tests/test-fwritable.c: New file.
11076
11077         * modules/fwritable: New file.
11078         * lib/fwritable.h: New file.
11079         * lib/fwritable.c: New file.
11080         * m4/fwritable.m4: New file.
11081
11082 2007-04-13  Bruno Haible  <bruno@clisp.org>
11083
11084         * modules/freadable-tests: New file.
11085         * tests/test-freadable.c: New file.
11086
11087         * modules/freadable: New file.
11088         * lib/freadable.h: New file.
11089         * lib/freadable.c: New file.
11090         * m4/freadable.m4: New file.
11091
11092 2007-04-13  Bruno Haible  <bruno@clisp.org>
11093
11094         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
11095         MOSTLYCLEANFILES.
11096
11097 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
11098
11099         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
11100         gzip bootstrap.conf to avoid dragging in i18n machinery.
11101         (gnulib_tool_option): Use it.
11102
11103 2007-04-13  Bruno Haible  <bruno@clisp.org>
11104
11105         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
11106         %F directives.
11107         * tests/test-vasprintf-posix.c (test_function): Likewise.
11108         * tests/test-snprintf-posix.h (test_function): Likewise.
11109         * tests/test-sprintf-posix.h (test_function): Likewise.
11110         * tests/test-fprintf-posix.h (test_function): Likewise.
11111         * tests/test-printf-posix.h (test_function): Likewise.
11112         * tests/test-fprintf-posix.out: Likewise.
11113
11114 2007-04-13  Bruno Haible  <bruno@clisp.org>
11115
11116         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
11117         * modules/tls-tests (configure.ac): Likewise.
11118         Reported by Arto C. Nirkko <anirkko@insel.ch>.
11119
11120 2007-04-13  Bruno Haible  <bruno@clisp.org>
11121
11122         * lib/tls.c (glthread_tls_get): Fix return type.
11123         Patch by Arto C. Nirkko <anirkko@insel.ch>.
11124
11125 2007-04-12  Eric Blake  <ebb9@byu.net>
11126
11127         * modules/gettime (Depends-on): Remove gettime.
11128         Reported by Dmitry V. Levin.
11129
11130 2007-04-12  Bruno Haible  <bruno@clisp.org>
11131
11132         * modules/fflush (Include): Mention <stdio.h>.
11133         * modules/strtoimax (Include): Mention <inttypes.h>.
11134         * modules/strtoumax (Include): Likewise.
11135
11136 2007-04-12  Eric Blake  <ebb9@byu.net>
11137
11138         * .cvsignore: New file.
11139         * .gitignore: Likewise.
11140
11141 2007-04-12  Bruno Haible  <bruno@clisp.org>
11142
11143         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
11144         not before, since $(LDADD) often contains libgnu.a.
11145         * modules/striconv-tests (test_striconv_LDADD): Likewise.
11146         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
11147         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
11148         Needed on Cygwin.
11149
11150 2007-04-12  Eric Blake  <ebb9@byu.net>
11151
11152         Work around glibc's failure to flush stdin on fclose.
11153         * lib/closein.c (close_stdin): Flush stdin before closing.
11154
11155         Work around glibc's failure to reset seekable stdin on exit.
11156         * modules/closein: New module.
11157         * lib/closein.c: New file.
11158         * lib/closein.h: Likewise.
11159         * m4/closein.m4: Likewise.
11160         * MODULES.html.sh (File stream based Input/Output): Document it.
11161
11162 2007-04-12  Simon Josefsson  <simon@josefsson.org>
11163
11164         * gnulib-tool: Rename generated 'autobuild' script to
11165         'do-autobuild' in --create-megatestdir output.
11166
11167         * doc/gnulib.texi (Build robot for gnulib): Fix.
11168
11169 2007-04-12  Simon Josefsson  <simon@josefsson.org>
11170
11171         * modules/sysexits (Depends-on): Add absolute-header.
11172
11173 2007-04-12  Eric Blake  <ebb9@byu.net>
11174
11175         No need to preserve errno on success.
11176         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
11177         Reported by Bruno Haible.
11178
11179 2007-04-12  Simon Josefsson  <simon@josefsson.org>
11180
11181         * MODULES.html.sh (Support for maintaining and releasing
11182         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
11183
11184 2007-04-12  Simon Josefsson  <simon@josefsson.org>
11185
11186         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
11187
11188 2007-04-12  Simon Josefsson  <simon@josefsson.org>
11189
11190         * modules/autobuild: New module.
11191
11192         * m4/autobuild.m4: New file.
11193
11194 2007-04-11  Bruno Haible  <bruno@clisp.org>
11195
11196         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
11197         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
11198         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
11199         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
11200         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
11201         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11202         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11203         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
11204         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11205         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11206         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
11207         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11208         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11209         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
11210         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11211         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11212         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
11213         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11214         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11215         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
11216         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11217         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11218         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
11219         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11220         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11221         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
11222         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11223         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11224         Reported by Eric Blake.
11225
11226 2007-04-11  Bruno Haible  <bruno@clisp.org>
11227
11228         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
11229
11230 2007-04-10  Bruno Haible  <bruno@clisp.org>
11231
11232         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
11233         for NaN and Infinity. Needed on FreeBSD 6.1.
11234         * tests/test-vasnprintf-posix.c (test_function): Undo last change
11235         regarding results for "%010a" of Infinity and NaN.
11236         * tests/test-vasprintf-posix.c (test_function): Likewise.
11237         * tests/test-snprintf-posix.h (test_function): Likewise.
11238         * tests/test-sprintf-posix.h (test_function): Likewise.
11239         * tests/test-fprintf-posix.h (test_function): Likewise.
11240         * tests/test-printf-posix.h (test_function): Likewise.
11241         * tests/test-fprintf-posix.out: Likewise.
11242
11243 2007-04-10  Bruno Haible  <bruno@clisp.org>
11244
11245         * modules/locale-tests: New file.
11246         * tests/test-locale.c: New file.
11247
11248         * modules/locale: New file.
11249         * lib/locale_.h: New file.
11250         * m4/locale_h.m4: New file.
11251
11252 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
11253             Bruno Haible  <bruno@clisp.org>
11254
11255         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
11256         be determined, test for availability of the copysignf, copysign,
11257         copysignl functions.
11258         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
11259         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
11260         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
11261
11262 2007-04-09  Eric Blake  <ebb9@byu.net>
11263
11264         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
11265         * modules/stdio (Makefile.am): Support fflush.
11266         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11267         * modules/fflush: New file.
11268         * lib/fflush.c: Likewise.
11269         * m4/fflush.m4: Likewise.
11270         * modules/fflush-tests: New test.
11271         * tests/test-fflush.c: Likewise.
11272         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
11273
11274 2007-04-06  Bruno Haible  <bruno@clisp.org>
11275
11276         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
11277         (VASNPRINTF): Use signbit for faster determination whether to print a
11278         minus sign.
11279         * modules/vasnprintf (Files): Remove lib/float+.h.
11280         * modules/fprintf-posix (Depends-on): Add signbit.
11281         * modules/snprintf-posix (Depends-on): Likewise.
11282         * modules/sprintf-posix (Depends-on): Likewise.
11283         * modules/vasnprintf-posix (Depends-on): Likewise.
11284         * modules/vasprintf-posix (Depends-on): Likewise.
11285         * modules/vfprintf-posix (Depends-on): Likewise.
11286         * modules/vsnprintf-posix (Depends-on): Likewise.
11287         * modules/vsprintf-posix (Depends-on): Likewise.
11288
11289 2007-04-06  Bruno Haible  <bruno@clisp.org>
11290
11291         * tests/test-frexp.c (main): Test also the sign bit of zero results.
11292         * tests/test-frexpl.c (main): Likewise.
11293         * tests/test-ldexpl.c (main): Likewise.
11294         * modules/frexp-tests (Depends-on): Add signbit.
11295         * modules/frexpl-tests (Depdends-on): Likewise.
11296         * modules/ldexpl-tests (Depdends-on): Likewise.
11297
11298 2007-04-06  Bruno Haible  <bruno@clisp.org>
11299
11300         * modules/signbit-tests: New file.
11301         * tests/test-signbit.c: New file.
11302
11303         * modules/signbit: New file.
11304         * lib/signbitf.c: New file.
11305         * lib/signbitd.c: New file.
11306         * lib/signbitl.c: New file.
11307         * m4/signbit.m4: New file.
11308         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
11309         (signbit): New macro.
11310         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
11311         REPLACE_SIGNBIT.
11312         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
11313         REPLACE_FREXPL into math.h.
11314
11315 2007-04-06  Bruno Haible  <bruno@clisp.org>
11316
11317         * modules/isnanf-nolibm-tests: New file.
11318         * tests/test-isnanf.c: New file.
11319
11320         * modules/isnanf-nolibm: New file.
11321         * lib/isnanf.h: New file.
11322         * lib/isnanf.c: New file.
11323         * lib/isnan.c: Consider the USE_FLOAT macro.
11324         * m4/isnanf.m4: New file.
11325
11326 2007-04-06  Bruno Haible  <bruno@clisp.org>
11327
11328         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
11329         (Link): New section.
11330
11331         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
11332
11333 2007-04-06  Bruno Haible  <bruno@clisp.org>
11334
11335         Assume the 'long double' type.
11336         * m4/longdouble.m4: Remove file.
11337         * config/srclist.txt: Don't mention longdouble.m4.
11338         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
11339         * lib/float+.h: Likewise.
11340         * lib/frexp.c: Likewise.
11341         * lib/printf-args.h: Likewise.
11342         * lib/printf-args.c: Likewise.
11343         * lib/printf-frexp.c: Likewise.
11344         * lib/printf-parse.c: Likewise.
11345         * lib/vasnprintf.c: Likewise.
11346         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
11347         * m4/intl.m4: Likewise.
11348         * m4/isnanl.m4: Likewise.
11349         * m4/printf.m4: Likewise.
11350         * m4/printf-frexpl.m4: Likewise.
11351         * m4/vasnprintf.m4: Likewise.
11352         * modules/allocsa (Files): Remove m4/longdouble.m4.
11353         * modules/gettext (Files): Likewise.
11354         * modules/relocatable-prog-wrapper (Files): Likewise.
11355         * modules/vasnprintf (Files): Likewise.
11356         * modules/isnanl (Files): Likewise.
11357         (Include): Simplify.
11358         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
11359         (Include): Simplify.
11360         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
11361         (Include): Simplify.
11362         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
11363         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11364         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
11365         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11366         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
11367         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11368         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
11369         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11370         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
11371         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11372         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
11373         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11374         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
11375         * tests/test-isnanl.c: Likewise.
11376         * tests/test-snprintf-posix.h: Likewise.
11377         * tests/test-sprintf-posix.h: Likewise.
11378         * tests/test-vasnprintf-posix.c: Likewise.
11379         * tests/test-vasnprintf-posix2.c: Likewise.
11380         * tests/test-vasprintf-posix.c: Likewise.
11381
11382 2007-04-06  Bruno Haible  <bruno@clisp.org>
11383
11384         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
11385         * lib/math_.h [__DECC]: Include the overridden include file through
11386         #include_next, outside the double-inclusion guard.
11387         * lib/stdio_.h [__DECC]: Likewise.
11388         * lib/stdlib_.h [__DECC]: Likewise.
11389         * lib/string_.h [__DECC]: Likewise.
11390         * lib/time_.h [__DECC]: Likewise.
11391         * lib/wchar_.h [__DECC]: Likewise.
11392         * lib/wctype_.h [__DECC]: Likewise.
11393         * lib/inttypes_.h [__DECC]: Likewise.
11394         Reported by Albert Chin <china@thewrittenword.com> in
11395         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
11396
11397 2007-04-04  Eric Blake  <ebb9@byu.net>
11398
11399         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
11400         1.5.x.
11401
11402 2007-04-04  Bruno Haible  <bruno@clisp.org>
11403
11404         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
11405         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
11406
11407 2007-04-04  Bruno Haible  <bruno@clisp.org>
11408
11409         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
11410         results for "%010a" of Infinity and NaN.
11411         * tests/test-vasprintf-posix.c (test_function): Likewise.
11412         * tests/test-snprintf-posix.h (test_function): Likewise.
11413         * tests/test-sprintf-posix.h (test_function): Likewise.
11414         * tests/test-fprintf-posix.h (test_function): Remove these tests.
11415         * tests/test-printf-posix.h (test_function): Likewise.
11416         * tests/test-fprintf-posix.out: Update.
11417         Needed for FreeBSD 6.1.
11418
11419 2007-04-04  Bruno Haible  <bruno@clisp.org>
11420
11421         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
11422         directly used by the gnulib modules nor by gnulib-tool.
11423
11424 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
11425
11426         * DEPENDENCIES: Give overall description of version dependency
11427         desirability.  Use more-typical names for apps.
11428         Add shell, coreutils, diffutils, grep, tar, gzip.
11429
11430 2007-04-04  Simon Josefsson  <simon@josefsson.org>
11431
11432         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
11433
11434 2007-04-04  Karl Berry  <karl@gnu.org>
11435
11436         * MODULES.html.sh (func_module): missing '.
11437
11438 2007-04-03  Bruno Haible  <bruno@clisp.org>
11439
11440         * modules/argmatch-tests (Makefile.am): New variable
11441         test_argmatch_LDADD.
11442         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
11443         * modules/array-list-tests (Makefile.am): New variable
11444         test_array_list_LDADD.
11445         * modules/array-oset-tests (Makefile.am): New variable
11446         test_array_oset_LDADD.
11447         * modules/avltree-list-tests (Makefile.am): New variable
11448         test_avltree_list_LDADD.
11449         * modules/avltree-oset-tests (Makefile.am): New variable
11450         test_avltree_oset_LDADD.
11451         * modules/avltreehash-list-tests (Makefile.am): New variable
11452         test_avltreehash_list_LDADD.
11453         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
11454         test_canonicalize_lgpl_LDADD.
11455         * modules/carray-list-tests (Makefile.am): New variable
11456         test_carray_list_LDADD.
11457         * modules/dirname-tests (Makefile.am): New variable
11458         test_dirname_LDADD.
11459         * modules/linked-list-tests (Makefile.am): New variable
11460         test_linked_list_LDADD.
11461         * modules/linkedhash-list-tests (Makefile.am): New variable
11462         test_linkedhash_list_LDADD.
11463         * modules/rbtree-list-tests (Makefile.am): New variable
11464         test_rbtree_list_LDADD.
11465         * modules/rbtree-oset-tests (Makefile.am): New variable
11466         test_rbtree_oset_LDADD.
11467         * modules/rbtreehash-list-tests (Makefile.am): New variable
11468         test_rbtreehash_list_LDADD.
11469         * modules/xvasprintf-tests (Makefile.am): New variable
11470         test_xvasprintf_LDADD.
11471         Reported by Eric Blake.
11472
11473 2007-04-03  Eric Blake  <ebb9@byu.net>
11474
11475         * DEPENDENCIES: Weaken m4 requirements.
11476
11477 2007-04-03  Bruno Haible  <bruno@clisp.org>
11478
11479         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
11480         * modules/isnanl-tests (configure.ac): Likewise.
11481
11482 2007-04-03  Ben Pfaff  <blp@gnu.org>
11483
11484         * modules/iconv_open: Add $(srcdir)/ to source directory
11485         references in Makefile fragments that call gperf, to fix VPATH
11486         builds.
11487
11488 2007-04-03  Bruno Haible  <bruno@clisp.org>
11489
11490         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
11491         * lib/ldexpl.c: Undo last change.
11492
11493 2007-04-03  Bruno Haible  <bruno@clisp.org>
11494
11495         * modules/printf-frexpl (Depends-on): Undo last change.
11496         (Files): Add m4/ldexpl.m4.
11497
11498 2007-04-03  Bruno Haible  <bruno@clisp.org>
11499
11500         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
11501         * modules/isnanl (Link): New section.
11502
11503         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
11504         * modules/frexp (Link): New section.
11505
11506         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
11507         * modules/frexpl (Link): New section.
11508
11509         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
11510         * modules/ldexpl (Link): New section.
11511
11512 2007-04-03  Bruno Haible  <bruno@clisp.org>
11513
11514         * modules/TEMPLATE-EXTENDED: New file.
11515         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
11516
11517 2007-04-03  Bruno Haible  <bruno@clisp.org>
11518
11519         * DEPENDENCIES: New file.
11520         Suggested by Simon Josefsson.
11521
11522 2007-04-03  Bruno Haible  <bruno@clisp.org>
11523
11524         * doc/gnulib.texi: Escape @.
11525
11526 2007-04-03  James Youngman  <jay@gnu.org>
11527         and Paul Eggert  <eggert@cs.ucla.edu>
11528
11529         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
11530         birthtime on all systems that have birthtime, not just those which
11531         use st_birthtimensec rather than st_birthtim.  Putting zero in
11532         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
11533         that the birth time is not available for files on an NFS mount.
11534
11535 2007-04-03  Simon Josefsson  <simon@josefsson.org>
11536
11537         * modules/memxor: Move back from crypto/, suggested by Bruno.
11538         * modules/crypto/hmac-sha1: Fix memxor dependency.
11539
11540         * modules/crypto/gc: Moved from ../.
11541
11542 2007-04-02  Eric Blake  <ebb9@byu.net>
11543
11544         * lib/ldexpl.c (includes): Avoid libm.
11545
11546         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
11547
11548 2007-04-02  Bruno Haible  <bruno@clisp.org>
11549
11550         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
11551         on IRIX.
11552
11553 2007-04-02  Bruno Haible  <bruno@clisp.org>
11554
11555         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
11556         x86 or x86_64 platforms running MacOS X.
11557         Reported by Ryan Schmidt <@ryandesign.com>.
11558
11559 2007-04-02  Bruno Haible  <bruno@clisp.org>
11560
11561         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
11562         i386.
11563
11564 2007-04-01  Simon Josefsson  <simon@josefsson.org>
11565
11566         * modules/crypto/arcfour: Moved from ../.
11567         * modules/crypto/arcfour-tests: Moved from ../.
11568         * modules/crypto/arctwo: Moved from ../.
11569         * modules/crypto/arctwo-tests: Moved from ../.
11570         * modules/crypto/des: Moved from ../.
11571         * modules/crypto/des-tests: Moved from ../.
11572         * modules/crypto/gc-arcfour: Moved from ../.
11573         * modules/crypto/gc-arcfour-tests: Moved from ../.
11574         * modules/crypto/gc-arctwo: Moved from ../.
11575         * modules/crypto/gc-arctwo-tests: Moved from ../.
11576         * modules/crypto/gc-des: Moved from ../.
11577         * modules/crypto/gc-des-tests: Moved from ../.
11578         * modules/crypto/gc-hmac-md5: Moved from ../.
11579         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
11580         * modules/crypto/gc-hmac-sha1: Moved from ../.
11581         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
11582         * modules/crypto/gc-md2: Moved from ../.
11583         * modules/crypto/gc-md2-tests: Moved from ../.
11584         * modules/crypto/gc-md4: Moved from ../.
11585         * modules/crypto/gc-md4-tests: Moved from ../.
11586         * modules/crypto/gc-md5: Moved from ../.
11587         * modules/crypto/gc-md5-tests: Moved from ../.
11588         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
11589         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
11590         * modules/crypto/gc-random: Moved from ../.
11591         * modules/crypto/gc-rijndael: Moved from ../.
11592         * modules/crypto/gc-rijndael-tests: Moved from ../.
11593         * modules/crypto/gc-sha1: Moved from ../.
11594         * modules/crypto/gc-sha1-tests: Moved from ../.
11595         * modules/crypto/gc-tests: Moved from ../.
11596         * modules/crypto/hmac-md5: Moved from ../.
11597         * modules/crypto/hmac-md5-tests: Moved from ../.
11598         * modules/crypto/hmac-sha1: Moved from ../.
11599         * modules/crypto/hmac-sha1-tests: Moved from ../.
11600         * modules/crypto/md2: Moved from ../.
11601         * modules/crypto/md2-tests: Moved from ../.
11602         * modules/crypto/md4: Moved from ../.
11603         * modules/crypto/md4-tests: Moved from ../.
11604         * modules/crypto/md5: Moved from ../.
11605         * modules/crypto/md5-tests: Moved from ../.
11606         * modules/crypto/memxor: Moved from ../.
11607         * modules/crypto/rijndael: Moved from ../.
11608         * modules/crypto/rijndael-tests: Moved from ../.
11609         * modules/crypto/sha1: Moved from ../.
11610
11611 2007-03-30  James Youngman  <jay@gnu.org>
11612
11613         * tests/test-stat-time.c (prepare_test): use chmod() rather than
11614         rename() to change the ctime of a file (because ctime is unaffected
11615         by rename on jfs2 on AIX 5.1).
11616         (main): Start by doing cleanup, in case a previous run failed leaving
11617         test files behind.
11618
11619 2007-03-31  Bruno Haible  <bruno@clisp.org>
11620
11621         Support old proprietary implementations of iconv.
11622         * modules/iconv_open: New file.
11623         * lib/iconv_.h: New file.
11624         * m4/iconv_h.m4: New file.
11625         * lib/iconv_open.c: New file.
11626         * lib/iconv_open-aix.gperf: New file.
11627         * lib/iconv_open-hpux.gperf: New file.
11628         * lib/iconv_open-irix.gperf: New file.
11629         * lib/iconv_open-osf.gperf: New file.
11630         * m4/iconv_open.m4: New file.
11631         * modules/linebreak (Depends-on): Add iconv_open.
11632         * modules/striconv (Depends-on): Likewise.
11633         * modules/striconveh (Depends-on): Likewise.
11634         * modules/unicodeio (Depends-on): Likewise.
11635         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
11636         (iconv_t)(-1).
11637         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
11638         conversion if cd is (iconv_t)(-1).
11639         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
11640         is not possible.
11641
11642 2007-03-31  Bruno Haible  <bruno@clisp.org>
11643
11644         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
11645         work on Solaris either. Protect also second use of "autodetect_jp".
11646
11647 2007-03-31  Bruno Haible  <bruno@clisp.org>
11648
11649         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
11650         the function is not present.
11651
11652 2007-03-31  Bruno Haible  <bruno@clisp.org>
11653
11654         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
11655         the function is not present.
11656
11657 2007-03-31  Bruno Haible  <bruno@clisp.org>
11658
11659         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
11660         a bug in HP-UX iconv_open().
11661
11662 2007-03-31  Bruno Haible  <bruno@clisp.org>
11663
11664         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
11665         (Mathematics <math.h>): New section, add fpieee.
11666         (Input/output <stdio.h>): Add fseterr.
11667         (Mathematics <math.h>): New section, add printf-frexp.
11668         (Container data structures): Add sublist.
11669         (Core language properties): Add fpucw, inline.
11670         (Functions for greatest-width integer types <inttypes.h>): Add
11671         imaxabs, imaxdiv, inttypes.
11672         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
11673         isnanl-nolibm, ldexp.
11674         (Mathematics <math.h>): New section, add printf-frexpl.
11675         (Support for systems lacking POSIX:2001): Add fprintf-posix,
11676         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
11677         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
11678         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
11679         (Unicode string functions): Add unistr/u*-mbtoucr.
11680         (Java): Add javacomp-script, javaexec-script.
11681         (C#): Add csharpcomp-script, csharpexec-script.
11682         (Support for building libraries and executables): Add havelib,
11683         relocatable-*.
11684         (Support for maintaining and releasing projects): Renamed from
11685         'Support for maintaining and release projects'. Add announce-gen.
11686
11687 2007-03-31  Bruno Haible  <bruno@clisp.org>
11688
11689         * README: Talk primarily about git.
11690         (git and CVS): Renamed from CVS.
11691         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
11692         gnulib is available through git.
11693         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
11694
11695 2007-03-30  Bruno Haible  <bruno@clisp.org>
11696
11697         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
11698         * lib/poll_.h: Likewise.
11699         * lib/stat_.h: Likewise.
11700         * lib/sys_time_.h: Likewise.
11701         * lib/sysexit_.h: Likewise.
11702         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
11703         * lib/stdbool_.h: Likewise.
11704         * lib/byteswap_.h: Add double-inclusion guard.
11705
11706 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
11707
11708         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
11709
11710 2007-03-30  Karl Berry  <karl@gnu.org>
11711
11712         * config/srclist-update: double space after USA in the license
11713         substitution, since that's how it's usually (?) written.
11714
11715 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
11716
11717         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
11718         reported by Bruno Haible.
11719
11720 2007-03-29  Bruno Haible  <bruno@clisp.org>
11721
11722         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
11723         a bug in AIX iconv().
11724
11725 2007-03-29  Bruno Haible  <bruno@clisp.org>
11726
11727         * modules/ldexpl-tests: New file.
11728         * tests/test-ldexpl.c: New file.
11729
11730 2007-03-29  Bruno Haible  <bruno@clisp.org>
11731
11732         * lib/ldexpl.c: Include fpucw.h.
11733         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
11734         multiplication.
11735         * modules/ldexpl (Depends-on): Add fpucw.
11736
11737 2007-03-29  Bruno Haible  <bruno@clisp.org>
11738
11739         * modules/ldexpl: New file.
11740         * m4/ldexpl.m4: New file.
11741         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
11742         set.
11743         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
11744         REPLACE_LDEXPL.
11745         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
11746         REPLACE_LDEXPL.
11747         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
11748         gl_FUNC_LDEXPL_WORKS.
11749         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
11750         * modules/mathl (Files): Remove lib/ldexpl.c.
11751         (Depends-on): Add ldexpl.
11752
11753 2007-03-29  Bruno Haible  <bruno@clisp.org>
11754
11755         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
11756
11757 2007-03-29  Bruno Haible  <bruno@clisp.org>
11758
11759         * tests/test-striconveh.c (main): Don't assume that a direct conversion
11760         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
11761         and possibly also HP-UX.
11762         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
11763         work on AIX, IRIX, HP-UX, OSF/1.
11764         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
11765         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
11766         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
11767         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
11768         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
11769         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
11770
11771 2007-03-29  Bruno Haible  <bruno@clisp.org>
11772
11773         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
11774
11775 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
11776
11777         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
11778         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
11779
11780 2007-03-29  Eric Blake  <ebb9@byu.net>
11781
11782         * lib/acl-internal.h: Remove redundant include.
11783         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
11784         Cygwin when a file is locked.
11785
11786 2007-03-29  Bruno Haible  <bruno@clisp.org>
11787
11788         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
11789         file.
11790         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
11791
11792 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
11793
11794         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
11795         try to remove a parent directory if the child couldn't be removed
11796         (except for the first rmdir, which could fail because the child
11797         doesn't exist).  Problem reported by Jeff Blaine in
11798         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
11799
11800 2007-03-28  Bruno Haible  <bruno@clisp.org>
11801
11802         * lib/striconveh.c (utf8conv_carefully): New function.
11803         (mem_cd_iconveh_internal): Invoke it.
11804
11805 2007-03-28  Bruno Haible  <bruno@clisp.org>
11806
11807         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
11808         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
11809         input.
11810         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
11811         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
11812         unistr/u8-uctomb.
11813
11814 2007-03-28  Bruno Haible  <bruno@clisp.org>
11815
11816         * modules/unistr/u8-mbtoucr: New file.
11817         * lib/unistr/u8-mbtoucr.c: New file.
11818         * modules/unistr/u16-mbtoucr: New file.
11819         * lib/unistr/u16-mbtoucr.c: New file.
11820         * modules/unistr/u16-mbtoucr: New file.
11821         * lib/unistr/u16-mbtoucr.c: New file.
11822         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
11823
11824 2007-03-27  Simon Josefsson  <simon@josefsson.org>
11825             Bruno Haible  <bruno@clisp.org>
11826
11827         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
11828         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
11829         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
11830
11831         * m4/stdio_h.m4: Add stubs for vasprintf too.
11832
11833         * modules/stdio: Support vasprintf in sed command.
11834
11835         * modules/vasprintf: Depend on stdio for prototypes.  Remove
11836         vasprintf.h.  Add stdio module indicator.
11837
11838         * lib/stdio_.h: Declare asprintf and vasprintf, based on
11839         vasprintf.h.
11840
11841         * lib/vasprintf.h: File removed.
11842
11843         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
11844         * lib/vasprintf.c: Ditto.
11845         * lib/xvasprintf.c: Ditto.
11846         * tests/test-vasprintf-posix.c: Ditto.
11847         * tests/test-vasprintf.c: Ditto.
11848
11849 2007-03-27  Bruno Haible  <bruno@clisp.org>
11850
11851         Make vasnprintf multithread-safe.
11852         * lib/vasnprintf.c (decimal_point_char): New function.
11853         (VASNPRINTF): Use it.
11854         Suggested by Simon Josefsson.
11855
11856 2007-03-27  Eric Blake  <ebb9@byu.net>
11857
11858         Support sub-second birthtime on cygwin.
11859         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
11860         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
11861         (get_stat_birthtime): Also work with st_birthtim.
11862
11863 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
11864
11865         * lib/stat-time.h (USE_BIRTHTIME): Remove.
11866         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
11867         (get_stat_birthtime_ns): Do not try to use "spare" fields.
11868         (get_stat_birthtime_ns): Simplify compile-time tests.
11869         (get_stat_birthtime): Change the API to look like
11870         get_stat_mtime etc., except return a negative tv_nsec on error.
11871         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
11872         Don't check for "spare" fields.
11873         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
11874         or for struct stat.st_birthtime, as these tests aren't used.
11875         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
11876
11877 2007-03-27  Bruno Haible  <bruno@clisp.org>
11878
11879         * lib/stat-time.h: Include <sys/stat.h>.
11880
11881 2007-03-27  James Youngman  <jay@gnu.org>
11882
11883         * lib/stat-time.h (get_stat_birthtime): New function for
11884           retrieving st_birthtime as provided by UFS2 (hence *BSD).
11885         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
11886           and its variants.
11887         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
11888         * modules/stat-time-test: New file.
11889         * tests/test-stat-time.c: New test, devised by Bruno Haible.
11890
11891 2007-03-26  Bruno Haible  <bruno@clisp.org>
11892
11893         Better support of signalling NaNs.
11894         * lib/atanl.c: Include isnanl.h.
11895         (atanl): Perform test for NaN at the beginning of the function and
11896         through a call to isnanl.
11897         * lib/cosl.c: Include isnanl.h.
11898         (cosl): Perform test for NaN at the beginning of the function and
11899         through a call to isnanl.
11900         * lib/ldexpl.c: Include isnanl.h.
11901         (ldexpl): Perform test for NaN through a call to isnanl.
11902         * lib/logl.c: Include isnanl.h.
11903         (logl): Perform test for NaN at the beginning of the function and
11904         through a call to isnanl.
11905         * lib/sinl.c: Include isnanl.h.
11906         (sinl): Perform test for NaN at the beginning of the function and
11907         through a call to isnanl.
11908         * lib/sqrtl.c: Include isnanl.h.
11909         (sqrtl): Perform test for NaN at the beginning of the function and
11910         through a call to isnanl.
11911         * lib/tanl.c: Include isnanl.h.
11912         (tanl): Perform test for NaN at the beginning of the function and
11913         through a call to isnanl.
11914         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
11915         * modules/mathl (Depends-on): Add isnanl.
11916
11917 2007-03-26  Eric Blake  <ebb9@byu.net>
11918
11919         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
11920         regression in logic sense of previous patch.
11921
11922 2007-03-26  Bruno Haible  <bruno@clisp.org>
11923
11924         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
11925         unportable shell command "if ! ...".
11926         Reported by Ralf Wildenhues.
11927
11928 2007-03-25  Bruno Haible  <bruno@clisp.org>
11929
11930         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
11931         <sysexits.h> file, and only add EX_CONFIG.
11932         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
11933         absolute file name and whether it is sufficient. Substitute also
11934         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
11935         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
11936         ABSOLUTE_SYSEXITS_H into sysexits.h.
11937
11938 2007-03-25  Bruno Haible  <bruno@clisp.org>
11939
11940         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
11941         hints is NULL.
11942
11943 2007-03-25  Bruno Haible  <bruno@clisp.org>
11944
11945         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
11946         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
11947
11948 2007-03-25  Bruno Haible  <bruno@clisp.org>
11949
11950         * lib/vasnprintf.c: Include langinfo.h.
11951         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
11952         multithread-safe.
11953         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
11954         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
11955         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
11956         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
11957         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
11958         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
11959         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
11960         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
11961         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
11962         Reported by Simon Josefsson.
11963
11964 2007-03-25  Bruno Haible  <bruno@clisp.org>
11965
11966         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
11967         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
11968         * modules/vasnprintf (Depends-on): Add stdint.
11969
11970 2007-03-25  Bruno Haible  <bruno@clisp.org>
11971
11972         * modules/fpieee: New file.
11973         * m4/fpieee.m4: New file.
11974         * modules/isnan-nolibm (Depends-on): Add fpieee.
11975         * modules/isnanl-nolibm (Depends-on): Add fpieee.
11976         * modules/isnanl (Depends-on): Add fpieee.
11977
11978 2007-03-25  Bruno Haible  <bruno@clisp.org>
11979
11980         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
11981
11982 2007-03-25  Bruno Haible  <bruno@clisp.org>
11983
11984         Avoid test failures on IRIX 6.5.
11985         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
11986         (main): Use it.
11987         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
11988         macros.
11989         (main): Use them.
11990
11991 2007-03-25  Bruno Haible  <bruno@clisp.org>
11992
11993         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
11994         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
11995         exists but doesn't work.
11996         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
11997         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
11998         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
11999         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
12000
12001 2007-03-25  Bruno Haible  <bruno@clisp.org>
12002
12003         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
12004         returns inf. Needed on IRIX 6.5.
12005
12006 2007-03-25  Bruno Haible  <bruno@clisp.org>
12007
12008         * tests/test-frexpl.c: Include isnanl-nolibm.h.
12009         (main): Use isnanl instead of x != x idiom.
12010         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
12011
12012         * tests/test-frexp.c: Include isnan.h.
12013         (main): Use isnan instead of x != x idiom.
12014         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
12015
12016 2007-03-25  Bruno Haible  <bruno@clisp.org>
12017
12018         * tests/test-frexp.c (NaN): New function/macro.
12019         (main): Use it instead of 0.0 / 0.0.
12020         * tests/test-isnan.c (NaN): New function/macro.
12021         (main): Use it instead of 0.0 / 0.0.
12022         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
12023         (test_function): Use it instead of 0.0 / 0.0.
12024         * tests/test-vasprintf-posix.c (NaN): New function/macro.
12025         (test_function): Use it instead of 0.0 / 0.0.
12026         * tests/test-snprintf-posix.h (NaN): New function/macro.
12027         (test_function): Use it instead of 0.0 / 0.0.
12028         * tests/test-sprintf-posix.h (NaN): New function/macro.
12029         (test_function): Use it instead of 0.0 / 0.0.
12030         * tests/test-fprintf-posix.h (NaN): New function/macro.
12031         (test_function): Use it instead of 0.0 / 0.0.
12032         * tests/test-printf-posix.h (NaN): New function/macro.
12033         (test_function): Use it instead of 0.0 / 0.0.
12034
12035         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
12036
12037 2007-03-25  Bruno Haible  <bruno@clisp.org>
12038
12039         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
12040
12041 2007-03-25  Bruno Haible  <bruno@clisp.org>
12042
12043         * lib/regexec.c (merge_state_with_log): Make static.
12044
12045 2007-03-25  Bruno Haible  <bruno@clisp.org>
12046
12047         * lib/trigl.c (kernel_rem_pio2): Make static.
12048
12049 2007-03-25  Bruno Haible  <bruno@clisp.org>
12050
12051         * lib/sincosl.c (sincosl_table): Make static.
12052
12053 2007-03-25  Bruno Haible  <bruno@clisp.org>
12054
12055         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
12056         if the compiler does not support C99.
12057
12058 2007-03-25  Bruno Haible  <bruno@clisp.org>
12059
12060         * modules/time (Makefile.am): Ensure all rule action lines start with a
12061         tab.
12062
12063 2007-03-24  Bruno Haible  <bruno@clisp.org>
12064
12065         * modules/tsearch-tests: New file.
12066         * tests/test-tsearch.sh: New file.
12067         * tests/test-tsearch.c: New file, mostly copied from glibc.
12068
12069         * modules/search-tests: New file.
12070         * tests/test-search.c: New file.
12071
12072         * modules/search: New file.
12073         * lib/search_.h: New file, incorporating lib/tsearch.h.
12074         * m4/search_h.m4: New file.
12075         * lib/tsearch.h: Remove file.
12076         * lib/tsearch.c: Include search.h instead of tsearch.h.
12077         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
12078         HAVE_TSEARCH.
12079         * modules/tsearch (Files): Remove lib/tsearch.h.
12080         (Depends-on): Add search.
12081         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
12082         (Include): Change tsearch.h into search.h.
12083
12084 2007-03-24  Bruno Haible  <bruno@clisp.org>
12085
12086         * modules/fpucw: New file.
12087         * lib/fpucw.h: New file.
12088         * lib/frexp.c: Include fpucw.h.
12089         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
12090         (FUNC): Use them.
12091         * lib/printf-frexp.c: Include fpucw.h.
12092         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
12093         (FUNC): Use them.
12094         * lib/vasnprintf.c: Include fpucw.h.
12095         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
12096         'long double' calculations.
12097         * tests/test-frexpl.c: Include fpucw.h.
12098         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
12099         * tests/test-printf-frexpl.c: Include fpucw.h.
12100         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
12101         * modules/frexpl (Depends-on): Add fpucw.
12102         * modules/printf-frexpl (Depends-on): Likewise.
12103         * modules/fprintf-posix (Depends-on): Likewise.
12104         * modules/snprintf-posix (Depends-on): Likewise.
12105         * modules/sprintf-posix (Depends-on): Likewise.
12106         * modules/vasnprintf-posix (Depends-on): Likewise.
12107         * modules/vasprintf-posix (Depends-on): Likewise.
12108         * modules/vfprintf-posix (Depends-on): Likewise.
12109         * modules/vsnprintf-posix (Depends-on): Likewise.
12110         * modules/vsprintf-posix (Depends-on): Likewise.
12111         * modules/frexpl-tests (Depends-on): Likewise.
12112         * modules/printf-frexpl-tests (Depends-on): Likewise.
12113
12114 2007-03-24  Bruno Haible  <bruno@clisp.org>
12115
12116         * lib/float+.h: New file.
12117         * lib/isnan.c: Include float+.h.
12118         (SIZE): New macro.
12119         (FUNC): Compare only SIZE bytes of the value.
12120         * lib/vasnprintf.c: Include float+.h.
12121         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
12122         SIZEOF_LDBL or SIZEOF_DBL bytes.
12123         * modules/isnan-nolibm (Files): Add lib/float+.h.
12124         * modules/isnanl-nolibm (Files): Add lib/float+.h.
12125         * modules/isnanl (Files): Add lib/float+.h.
12126         * modules/vasnprintf (Files): Add lib/float+.h.
12127
12128 2007-03-24  Bruno Haible  <bruno@clisp.org>
12129
12130         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
12131         include isnanl-nolibm.h.
12132
12133 2007-03-24  Bruno Haible  <bruno@clisp.org>
12134
12135         * tests/test-read-file.c (main): Don't produce spurious output for
12136         expected situations. Make the test fail if it encountered unexpected
12137         results.
12138
12139 2007-03-24  Bruno Haible  <bruno@clisp.org>
12140
12141         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
12142         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
12143
12144 2007-03-24  Bruno Haible  <bruno@clisp.org>
12145
12146         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
12147
12148 2007-03-24  Bruno Haible  <bruno@clisp.org>
12149
12150         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
12151         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
12152
12153         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
12154         * modules/utf8-ucs4: Turn into a symbolic link to module
12155         unistr/u8-mbtouc.
12156
12157         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
12158         utf8-ucs4-unsafe.
12159         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
12160         unistr/u8-mbtouc-unsafe.
12161
12162         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
12163         * modules/utf16-ucs4: Turn into a symbolic link to module
12164         unistr/u16-mbtouc.
12165
12166         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
12167         utf16-ucs4-unsafe.
12168         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
12169         unistr/u16-mbtouc-unsafe.
12170
12171         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
12172         * modules/ucs4-utf8: Turn into a symbolic link to module
12173         unistr/u8-ubtomb.
12174
12175         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
12176         * modules/ucs4-utf16: Turn into a symbolic link to module
12177         unistr/u16-ubtomb.
12178
12179 2007-03-24  Bruno Haible  <bruno@clisp.org>
12180
12181         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
12182         Enable the function only if HAVE_INLINE.
12183         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
12184         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
12185         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
12186         Enable the function only if HAVE_INLINE.
12187         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
12188         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
12189         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
12190         Enable the function only if HAVE_INLINE.
12191         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
12192         Enable the function only if HAVE_INLINE.
12193         * modules/utf8-ucs4: Update.
12194         * modules/utf8-ucs4-unsafe: Update.
12195         * modules/utf16-ucs4: Update.
12196         * modules/utf16-ucs4-unsafe: Update.
12197         * modules/ucs4-utf8: Update.
12198         * modules/ucs4-utf16: Update.
12199
12200 2007-03-24  Bruno Haible  <bruno@clisp.org>
12201
12202         * lib/utf8-ucs4.h: Remove file.
12203         * lib/utf8-ucs4-unsafe.h: Remove file.
12204         * lib/utf16-ucs4.h: Remove file.
12205         * lib/utf16-ucs4-unsafe.h: Remove file.
12206         * lib/ucs4-utf8.h: Remove file.
12207         * lib/ucs4-utf16.h: Remove file.
12208         * lib/unistr.h: Include their previous contents.
12209         * m4/utf-ucs4.m4: Remove file.
12210         * m4/ucs4-utf.m4: Remove file.
12211         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
12212         (Depends-on): Add unistr/base.
12213         (configure.ac): Remove gl_UTF_UCS4.
12214         (Makefile.am): Update.
12215         (Include): Change to unistr.h.
12216         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
12217         (Depends-on): Add unistr/base.
12218         (configure.ac): Remove gl_UTF_UCS4.
12219         (Makefile.am): Update.
12220         (Include): Change to unistr.h.
12221         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
12222         (Depends-on): Add unistr/base.
12223         (configure.ac): Remove gl_UTF_UCS4.
12224         (Makefile.am): Update.
12225         (Include): Change to unistr.h.
12226         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
12227         (Depends-on): Add unistr/base.
12228         (configure.ac): Remove gl_UTF_UCS4.
12229         (Makefile.am): Update.
12230         (Include): Change to unistr.h.
12231         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
12232         (Depends-on): Add unistr/base.
12233         (configure.ac): Remove gl_UCS4_UTF.
12234         (Makefile.am): Update.
12235         (Include): Change to unistr.h.
12236         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
12237         (Depends-on): Add unistr/base.
12238         (configure.ac): Remove gl_UCS4_UTF.
12239         (Makefile.am): Update.
12240         (Include): Change to unistr.h.
12241         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
12242         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
12243         utf8-ucs4-unsafe.h.
12244         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
12245         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
12246         utf16-ucs4-unsafe.h.
12247         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
12248         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
12249         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
12250         * lib/unistr/u8-strchr.c: Likewise.
12251         * lib/unistr/u8-strrchr.c: Likewise.
12252         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
12253         * lib/unistr/u16-strchr.c: Likewise.
12254         * lib/unistr/u16-strrchr.c: Likewise.
12255         * lib/striconveh.c: Update.
12256         * lib/linebreak.c: Update.
12257
12258 2007-03-24  Bruno Haible  <bruno@clisp.org>
12259
12260         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
12261         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
12262
12263 2007-03-22  Bruno Haible  <bruno@clisp.org>
12264
12265         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
12266
12267 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
12268
12269         * MODULES.html.sh (File system functions): New module write-any-file.
12270         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
12271         * m4/write-any-file.m4: New files.
12272
12273 2007-03-23  Eric Blake  <ebb9@byu.net>
12274
12275         * gnulib-tool: Rearrange space-tab sequences, since some editors
12276         like to eat them.
12277
12278 2007-03-23  Eric Blake  <ebb9@byu.net>
12279
12280         * lib/version-etc.c (version_etc_va): Update license wording to
12281         be more concise.  Recommended by Richard Stallman.
12282
12283 2007-03-22  Bruno Haible  <bruno@clisp.org>
12284
12285         * lib/poll.c (MSG_PEEK): New fallback definition.
12286
12287 2007-03-22  Bruno Haible  <bruno@clisp.org>
12288
12289         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
12290         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
12291         (main): Update.
12292         Fixes a compilation error on BeOS.
12293
12294 2007-03-22  Bruno Haible  <bruno@clisp.org>
12295
12296         * modules/frexpl-tests: New file.
12297         * tests/test-frexpl.c: New file.
12298
12299         * modules/frexpl: New file.
12300         * m4/frexpl.m4: New file.
12301         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
12302         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
12303         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
12304         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
12305         (Depends-on): Add frexpl. Remove isnanl-nolibm.
12306         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
12307
12308 2007-03-22  Bruno Haible  <bruno@clisp.org>
12309
12310         * lib/frexpl.c: Share code with lib/frexp.c.
12311         * modules/mathl (Files): Add lib/frexp.c.
12312         (Depends-on): Add isnanl-nolibm.
12313
12314 2007-03-22  Bruno Haible  <bruno@clisp.org>
12315
12316         * modules/printf-frexp (Files): Add m4/frexp.m4.
12317         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
12318         only if the found frexp function actually works.
12319
12320 2007-03-22  Bruno Haible  <bruno@clisp.org>
12321
12322         * lib/frexp.c: Remove older implementation that uses divisions.
12323
12324 2007-03-21  Bruno Haible  <bruno@clisp.org>
12325
12326         * modules/frexp-tests: New file.
12327         * tests/test-frexp.c: New file.
12328
12329         * modules/frexp: New file.
12330         * lib/frexp.c: New file.
12331         * m4/frexp.m4: New file.
12332         * lib/math_.h (frexp): New declaration.
12333         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
12334         REPLACE_FREXP.
12335         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
12336
12337 2007-03-21  Bruno Haible  <bruno@clisp.org>
12338
12339         * modules/isnanl-tests: New file.
12340         * tests/test-isnanl.c: New file.
12341
12342         * modules/isnanl: New file.
12343         * lib/isnanl.h: New file.
12344         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
12345         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
12346         gl_FUNC_ISNANL_WORKS.
12347         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
12348         New macros.
12349
12350 2007-03-21  Bruno Haible  <bruno@clisp.org>
12351
12352         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
12353         lib/isnanl.h.
12354         (Include): Update.
12355         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
12356         * lib/vasnprintf.c: Update.
12357         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
12358         tests/test-isnanl.h, remove tests/test-isnanl.c.
12359         (Makefile.am): Update.
12360         * tests/test-isnanl-nolibm.c: New file.
12361         * tests/test-isnanl.h: New file.
12362         * tests/test-isnanl.c: Remove file.
12363
12364 2007-03-21  Jim Meyering  <jim@meyering.net>
12365
12366         When trying to open ".", treat ESTALE like EACCES.
12367         * lib/savewd.c (savewd_save): Resort to forking not just upon
12368         failure with EACCES, but also when errno is ESTALE.
12369
12370 2007-03-20  Bruno Haible  <bruno@clisp.org>
12371
12372         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
12373         Needed on AIX 5.1. Reported by Matthew Woehlke.
12374
12375 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12376
12377         Suggestions by Bruno Haible:
12378         * lib/acl-internal.h: Include "gettext.h" rather than rolling
12379         our own.
12380         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
12381         * modules/acl (Depends-on): Add gettext.
12382
12383 2007-03-19  Bruno Haible  <bruno@clisp.org>
12384
12385         * modules/iconvme: Remove file.
12386         * lib/iconvme.h: Remove file.
12387         * lib/iconvme.c: Remove file.
12388         * m4/iconvme.m4: Remove file.
12389
12390 2007-03-19  Bruno Haible  <bruno@clisp.org>
12391
12392         * doc/relocatable-maint.texi: Break long shell script line.
12393         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
12394
12395 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12396
12397         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
12398         handle file_has_acl.
12399         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
12400         * lib/acl.c: Move header inclusions and related macro defns into
12401         lib/acl-internal.h.
12402         (S_ISLNK): Remove defn, since that's now done for us.
12403         (file_has_acl): Move to lib/file-has-acl.c.
12404         Call acl_trivial if available.  This is the crucial part of the fix.
12405         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
12406         shared within the library.  Rewrite a bit, partly to make it compatible
12407         with the GNU coding style.
12408         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
12409         Remove unnecessary double-quotes.
12410         Don't test for acl_to_text; the build will catch that.
12411         Replace acl_entries if it doesn't exist and it is needed.
12412         Check for -lsec and acl_trivial (as used on Solaris 10).
12413         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
12414         lib/file-has-acl.c.
12415         (Depends-on): Add sys_stat, for S_ISLNK.
12416
12417 2007-03-19  Ben Pfaff  <blp@gnu.org>
12418
12419         * doc/gnulib.texi: Fix typos.
12420         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
12421
12422 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12423
12424         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
12425         If size is zero here, buf must be zero.
12426
12427 2007-03-19  Simon Josefsson  <simon@josefsson.org>
12428
12429         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
12430         <bruno@clisp.org>.
12431
12432 2007-03-18  Bruno Haible  <bruno@clisp.org>
12433
12434         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
12435         Suggested by Eric Blake.
12436
12437 2007-03-18  Ben Pfaff  <blp@gnu.org>
12438
12439         * doc/relocatable.texi: Recommend using as prefix a directory
12440         that does not exist and will never be created.  Based on
12441         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
12442         and others.
12443
12444 2007-03-17  Bruno Haible  <bruno@clisp.org>
12445
12446         * lib/fchownat.c: Include lchown.h.
12447
12448 2007-03-17  Bruno Haible  <bruno@clisp.org>
12449
12450         Fix endless loop when the given allocated size was > INT_MAX.
12451         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
12452         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
12453         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
12454         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
12455         * lib/sprintf.c (sprintf): Likewise.
12456
12457 2007-03-17  Bruno Haible  <bruno@clisp.org>
12458
12459         * tests/test-argp-2.sh (func_compare): Output a context diff.
12460
12461 2007-03-17  Bruno Haible  <bruno@clisp.org>
12462
12463         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
12464         locale's decimal-point character.
12465
12466 2007-03-17  Bruno Haible  <bruno@clisp.org>
12467
12468         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
12469         before comparing it. Needed because on some platforms (e.g. x86) a
12470         'long double' occupies less bytes than sizeof (long double).
12471
12472 2007-03-17  Bruno Haible  <bruno@clisp.org>
12473
12474         * tests/test-crc.c (main): Make printf statements 64-bit clean.
12475         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
12476         * tests/test-getaddrinfo.c (simple): Likewise.
12477         * tests/test-read-file.c (main): Likewise.
12478
12479 2007-03-17  Bruno Haible  <bruno@clisp.org>
12480
12481         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
12482
12483 2007-03-17  Bruno Haible  <bruno@clisp.org>
12484
12485         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
12486         unused variable.
12487
12488 2007-03-17  Bruno Haible  <bruno@clisp.org>
12489
12490         * tests/test-c-strcasecmp.c: Include c-strcase.h.
12491         * tests/test-c-strncasecmp.c: Likewise.
12492
12493 2007-03-17  Bruno Haible  <bruno@clisp.org>
12494
12495         * modules/stdlib (Depends-on): Add unistd.
12496         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
12497         Needed for MacOS X 10.3.
12498
12499 2007-03-17  Bruno Haible  <bruno@clisp.org>
12500
12501         * lib/unistr/u-strdup.h: Include <stdlib.h>.
12502
12503 2007-03-17  Bruno Haible  <bruno@clisp.org>
12504
12505         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
12506
12507 2007-03-17  Bruno Haible  <bruno@clisp.org>
12508
12509         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
12510         to reflect files copied from gnulib (with or without modifications).
12511         Suggested by Jim Meyering.
12512
12513 2007-03-17  Eric Blake  <ebb9@byu.net>
12514
12515         * NEWS: Document stdlib change from 2007-02-18.
12516
12517 2007-03-17  Jim Meyering  <jim@meyering.net>
12518
12519         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
12520         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
12521         someone uses a name containing shell meta-characters.
12522         Reported by Alfred M. Szmidt.
12523
12524         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
12525
12526 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
12527
12528         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
12529         and copy gettext configuration files only if configure.ac contains
12530         a use of AM_GNU_GETTEXT_VERSION.
12531
12532 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
12533
12534         * build-aux/bootstrap (gnulib_name): New variable.
12535         (gnulib_tool_options): Use it.
12536
12537 2007-03-13  Simon Josefsson  <simon@josefsson.org>
12538
12539         * tests/test-des.c: Use new namespace.
12540
12541 2007-03-15  Bruno Haible  <bruno@clisp.org>
12542
12543         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
12544         Reported by James Youngman <jay@gnu.org>.
12545
12546 2007-03-15  Bruno Haible  <bruno@clisp.org>
12547
12548         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
12549         declared prototype. Needed with cc on OSF/1 5.1.
12550
12551 2007-03-15  Bruno Haible  <bruno@clisp.org>
12552
12553         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
12554         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
12555         (struct gl_list_implementation): Add dispose_fn argument to the
12556         'create_empty', 'create' methods.
12557         (struct gl_list_impl_base): Add field 'dispose_fn'.
12558         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
12559         argument.
12560         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
12561         dispose_fn argument.
12562         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
12563         dispose_fn on the dropped values.
12564         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
12565         dispose_fn argument.
12566         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
12567         dropped values.
12568         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
12569         (gl_tree_remove_node): Call dispose_fn on the dropped value.
12570         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
12571         (gl_tree_remove_node): Call dispose_fn on the dropped value.
12572         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
12573         argument.
12574         (gl_tree_list_free): Call dispose_fn on the dropped values.
12575         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
12576         the dropped values.
12577         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
12578         Add dispose_fn argument.
12579         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
12580         Call dispose_fn on the dropped values.
12581         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
12582         Add dispose_fn argument.
12583         (gl_sublist_create): Initialize the 'dispose_fn' field.
12584         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
12585         * tests/test-array_list.c (main): Update.
12586         * tests/test-carray_list.c (main): Update.
12587         * tests/test-avltree_list.c (main): Update.
12588         * tests/test-rbtree_list.c (main): Update.
12589         * tests/test-avltreehash_list.c (main): Update.
12590         * tests/test-rbtreehash_list.c (main): Update.
12591         * tests/test-linked_list.c (main): Update.
12592         * tests/test-linkedhash_list.c (main): Update.
12593         * tests/test-array_oset.c (main): Update.
12594
12595 2007-03-15  Bruno Haible  <bruno@clisp.org>
12596
12597         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
12598         (gl_oset_create_empty): Add dispose_fn argument.
12599         (struct gl_oset_implementation): Add dispose_fn argument to
12600         'create_empty' method.
12601         (struct gl_oset_impl_base): Add dispose_fn field.
12602         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
12603         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
12604         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
12605         values.
12606         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
12607         (gl_tree_oset_free): Call dispose_fn on the dropped values.
12608         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
12609         dropped value.
12610         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
12611         dropped value.
12612         * tests/test-array_oset.c (main): Update.
12613         * tests/test-avltree_oset.c (main): Update.
12614         * tests/test-rbtree_oset.c (main): Update.
12615         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
12616
12617 2007-03-13  Bruno Haible  <bruno@clisp.org>
12618
12619         * tests/test-stdbool.c (i): Update after last patch.
12620
12621 2007-03-12  Bruno Haible  <bruno@clisp.org>
12622
12623         * lib/quotearg.c: Include <wctype.h> early, before the definition of
12624         the iswprint macro. Needed on Solaris 2.5.1.
12625
12626 2007-03-12  Bruno Haible  <bruno@clisp.org>
12627
12628         * tests/test-printf-frexp.c (main): Declare x as volatile.
12629
12630 2007-03-12  Simon Josefsson  <simon@josefsson.org>
12631
12632         * doc/gnulib.texi (Build robot for gnulib): New section.
12633
12634 2007-03-12  Jim Meyering  <jim@meyering.net>
12635
12636         * build-aux/bootstrap: New file.
12637         * build-aux/bootstrap.conf: New file, from coreutils.
12638
12639 2007-03-11  Bruno Haible  <bruno@clisp.org>
12640
12641         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
12642
12643 2007-03-12  Simon Josefsson  <simon@josefsson.org>
12644
12645         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
12646         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
12647         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
12648
12649 2007-03-11  Bruno Haible  <bruno@clisp.org>
12650
12651         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
12652         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
12653
12654 2007-03-11  Bruno Haible  <bruno@clisp.org>
12655
12656         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
12657         formula. Needed for SunPRO C 5.0.
12658
12659 2007-03-11  Bruno Haible  <bruno@clisp.org>
12660
12661         * modules/long-options (Depends-on): Add getopt.
12662
12663 2007-03-11  Bruno Haible  <bruno@clisp.org>
12664
12665         * modules/modechange (Depends-on): Add stdbool.
12666
12667 2007-03-11  Bruno Haible  <bruno@clisp.org>
12668
12669         * modules/i-ring (Depends-on): Add stdbool.
12670
12671 2007-03-11  Bruno Haible  <bruno@clisp.org>
12672
12673         * modules/gc-des (Depends-on): Add stdbool.
12674
12675 2007-03-11  Bruno Haible  <bruno@clisp.org>
12676
12677         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
12678
12679 2007-03-11  Bruno Haible  <bruno@clisp.org>
12680
12681         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
12682
12683 2007-03-11  Bruno Haible  <bruno@clisp.org>
12684
12685         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
12686
12687 2007-03-11  Bruno Haible  <bruno@clisp.org>
12688
12689         * lib/vasnprintf.c (sprintf): Undefine.
12690
12691 2007-03-11  Bruno Haible  <bruno@clisp.org>
12692
12693         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
12694         initializers in SunPRO C and Compaq C compilers.
12695
12696 2007-03-11  Bruno Haible  <bruno@clisp.org>
12697
12698         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
12699         decrementing code ANSI C compliant.
12700
12701 2007-03-11  Bruno Haible  <bruno@clisp.org>
12702
12703         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
12704         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
12705
12706 2007-03-11  Bruno Haible  <bruno@clisp.org>
12707
12708         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
12709         <stdbool.h> substitute doesn't pass.
12710
12711 2007-03-11  Bruno Haible  <bruno@clisp.org>
12712
12713         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
12714
12715 2007-03-11  Bruno Haible  <bruno@clisp.org>
12716
12717         * gnulib-tool (func_create_megatestdir): Create also an autobuild
12718         script, for submission to autobuild.josefsson.org.
12719
12720 2007-03-10  Bruno Haible  <bruno@clisp.org>
12721
12722         * modules/canonicalize-lgpl-tests: New file.
12723         * tests/test-canonicalize-lgpl.sh: New file.
12724         * tests/test-canonicalize-lgpl.c: New file.
12725
12726         * modules/c-strcase-tests: New file.
12727         * tests/test-c-strcase.sh: New file.
12728         * tests/test-c-strcasecmp.c: New file.
12729         * tests/test-c-strncasecmp.c: New file.
12730
12731         * modules/atexit-tests: New file.
12732         * tests/test-atexit.sh: New file.
12733         * tests/test-atexit.c: New file.
12734
12735 2007-03-10  Bruno Haible  <bruno@clisp.org>
12736
12737         * tests/test-binary-io.sh: Use temporary filenames that are not so
12738         likely to clash with those of other tests (in a parallel make).
12739         * tests/test-binary-io.c: Likewise.
12740
12741 2007-03-10  Bruno Haible  <bruno@clisp.org>
12742
12743         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
12744         fallback; use #error instead.
12745         Suggested by Simon Josefsson.
12746
12747 2007-03-10  Bruno Haible  <bruno@clisp.org>
12748
12749         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
12750         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
12751         first and the last.
12752
12753 2007-03-10  Bruno Haible  <bruno@clisp.org>
12754
12755         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
12756
12757 2007-03-10  Bruno Haible  <bruno@clisp.org>
12758
12759         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
12760         "make distcheck".
12761         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
12762         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
12763         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
12764
12765 2007-03-10  Bruno Haible  <bruno@clisp.org>
12766
12767         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
12768         variable.
12769         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
12770         variable.
12771
12772 2007-03-09  Eric Blake  <ebb9@byu.net>
12773         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
12774
12775         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
12776         types are not being provided by gnulib.
12777         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
12778         types are supported.
12779
12780 2007-03-10  Bruno Haible  <bruno@clisp.org>
12781
12782         * lib/stdio_.h (__attribute__): New macro.
12783         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
12784         vsprintf): Specify __attribute__ __format__ for GCC.
12785         Suggested by Eric Blake.
12786
12787 2007-03-09  Bruno Haible  <bruno@clisp.org>
12788
12789         * modules/printf-posix-tests: New file.
12790         * tests/test-printf-posix.sh: New file.
12791         * tests/test-printf-posix.c: New file.
12792
12793         * modules/printf-posix: New file.
12794         * lib/printf.c: New file.
12795         * m4/printf-posix-rpl.m4: New file.
12796         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
12797         REPLACE_PRINTF.
12798         * lib/stdio_.h (printf): New declaration.
12799         (format, __format__, ____printf____, ____scanf____, ____strftime____,
12800         ____strfmon____): New macros.
12801         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
12802         REPLACE_PRINTF.
12803
12804 2007-03-09  Bruno Haible  <bruno@clisp.org>
12805
12806         * tests/test-vasnprintf-posix2.sh: New file.
12807         * tests/test-vasnprintf-posix2.c: New file.
12808         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
12809         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
12810         (Makefile.am): Activate test-vasnprintf-posix2.sh.
12811
12812         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
12813         a locale dependent decimal point, rather than always '.'.
12814
12815 2007-03-09  Eric Blake  <ebb9@byu.net>
12816
12817         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
12818         spite of platforms like Tandem/NSK that define it to -1.
12819
12820 2007-03-08  Bruno Haible  <bruno@clisp.org>
12821
12822         * modules/vprintf-posix-tests: New file.
12823         * tests/test-vprintf-posix.sh: New file.
12824         * tests/test-vprintf-posix.c: New file.
12825         * tests/test-printf-posix.h: New file.
12826
12827         * modules/vprintf-posix: New file.
12828         * lib/vprintf.c: New file.
12829         * m4/vprintf-posix.m4: New file.
12830         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
12831         REPLACE_VPRINTF.
12832         * lib/stdio_.h (vprintf): New declaration.
12833         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
12834         REPLACE_VPRINTF.
12835
12836 2007-03-08  Bruno Haible  <bruno@clisp.org>
12837
12838         * modules/fprintf-posix-tests: New file.
12839         * tests/test-fprintf-posix.sh: New file.
12840         * tests/test-fprintf-posix.c: New file.
12841
12842         * modules/fprintf-posix: New file.
12843         * lib/fprintf.c: New file.
12844         * m4/fprintf-posix.m4: New file.
12845         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
12846         REPLACE_FPRINTF.
12847         * lib/stdio_.h (fprintf): New declaration.
12848         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
12849         REPLACE_FPRINTF.
12850
12851 2007-03-08  Bruno Haible  <bruno@clisp.org>
12852
12853         * modules/vfprintf-posix-tests: New file.
12854         * tests/test-vfprintf-posix.sh: New file.
12855         * tests/test-vfprintf-posix.c: New file.
12856         * tests/test-fprintf-posix.h: New file.
12857         * tests/test-fprintf-posix.out: New file.
12858
12859         * modules/vfprintf-posix: New file.
12860         * lib/vfprintf.c: New file.
12861         * m4/vfprintf-posix.m4: New file.
12862         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
12863         REPLACE_VFPRINTF.
12864         * lib/stdio_.h (vfprintf): New declaration.
12865         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
12866         REPLACE_VFPRINTF.
12867
12868 2007-03-08  Bruno Haible  <bruno@clisp.org>
12869
12870         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
12871
12872 2007-03-08  Bruno Haible  <bruno@clisp.org>
12873
12874         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
12875         instead of 'expr' invocations.
12876         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12877         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12878         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12879         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12880         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12881         Suggested by Paul Eggert.
12882
12883 2007-03-08  Bruno Haible  <bruno@clisp.org>
12884
12885         * modules/fseterr-tests: New file.
12886         * tests/test-fseterr.c: New file.
12887
12888         * modules/fseterr: New file.
12889         * lib/fseterr.h: New file.
12890         * lib/fseterr.c: New file.
12891
12892 2007-03-08  Bruno Haible  <bruno@clisp.org>
12893
12894         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
12895         * lib/getopt_.h: Likewise.
12896         * lib/mbswidth.h: Likewise.
12897         * lib/setenv.h: Likewise.
12898         * lib/vasnprintf.h: Likewise.
12899         * lib/vasprintf.h: Likewise.
12900         * lib/verror.h: Likewise.
12901         * lib/xsetenv.h: Likewise.
12902         * lib/xvasprintf.h: Likewise.
12903
12904 2007-03-08  Jim Meyering  <jim@meyering.net>
12905
12906         * users.txt: Add parted.
12907
12908         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
12909
12910 2007-03-07  Bruno Haible  <bruno@clisp.org>
12911
12912         * m4/printf.m4: Make the shell script snippets copy&pastable.
12913
12914 2007-03-02  Bruno Haible  <bruno@clisp.org>
12915
12916         * lib/netinet_in_.h: New file.
12917         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
12918         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
12919         * modules/netinet_in (Files): Add lib/netinet_in_.h.
12920         (Depends-on): Add absolute-header.
12921         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
12922         into netinet/in.h.
12923
12924 2007-03-03  Bruno Haible  <bruno@clisp.org>
12925
12926         * lib/sys_select_.h: New file.
12927         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
12928         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
12929         * modules/sys_select (Files): Add lib/sys_select_.h.
12930         (Depends-on): Add absolute-header.
12931         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
12932         into sys/select.h.
12933
12934 2007-03-02  Bruno Haible  <bruno@clisp.org>
12935
12936         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
12937         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
12938         values.
12939         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
12940         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
12941         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
12942         * modules/sys_socket (Depends-on): Add absolute-header.
12943         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
12944         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
12945         (Include): Remove requirement of inclusion of <sys/types.h>.
12946
12947 2007-03-02  Bruno Haible  <bruno@clisp.org>
12948
12949         * lib/byteswap_.h (bswap_32): Fix formula.
12950
12951 2007-03-06  Bruno Haible  <bruno@clisp.org>
12952
12953         * modules/sprintf-posix-tests: New file.
12954         * tests/test-sprintf-posix.c: New file.
12955
12956         * modules/sprintf-posix: New file.
12957         * lib/sprintf.c: New file.
12958         * m4/sprintf-posix.m4: New file.
12959         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
12960         REPLACE_SPRINTF.
12961         * lib/stdio_.h (sprintf): New declaration.
12962         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
12963         REPLACE_SPRINTF.
12964
12965 2007-03-06  Bruno Haible  <bruno@clisp.org>
12966
12967         * modules/vsprintf-posix-tests: New file.
12968         * tests/test-vsprintf-posix.c: New file.
12969         * tests/test-sprintf-posix.h: New file.
12970
12971         * modules/vsprintf-posix: New file.
12972         * lib/vsprintf.c: New file.
12973         * m4/vsprintf-posix.m4: New file.
12974         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
12975         REPLACE_VSPRINTF.
12976         * lib/stdio_.h (vsprintf): New declaration.
12977         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
12978         REPLACE_VSPRINTF.
12979
12980 2007-03-06  Bruno Haible  <bruno@clisp.org>
12981
12982         * modules/vsnprintf (Depend-on): Remove minmax.
12983
12984 2007-03-06  Bruno Haible  <bruno@clisp.org>
12985
12986         * modules/snprintf-posix-tests: New file.
12987         * tests/test-snprintf-posix.c: New file.
12988
12989         * modules/snprintf-posix: New file.
12990         * m4/snprintf-posix.m4: New file.
12991         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
12992         gl_FUNC_SNPRINTF.
12993         (gl_FUNC_SNPRINTF): Invoke it.
12994         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
12995         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
12996         is set.
12997         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
12998
12999 2007-03-06  Bruno Haible  <bruno@clisp.org>
13000
13001         * modules/vsnprintf-posix-tests: New file.
13002         * tests/test-vsnprintf-posix.c: New file.
13003         * tests/test-snprintf-posix.h: New file.
13004
13005         * modules/vsnprintf-posix: New file.
13006         * m4/vsnprintf-posix.m4: New file.
13007         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
13008         gl_FUNC_VSNPRINTF.
13009         (gl_FUNC_VSNPRINTF): Invoke it.
13010         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
13011         * lib/stdio_.h (vsnprintf): Define as a replacement if
13012         REPLACE_VSNPRINTF is set.
13013         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
13014
13015 2007-03-06  Bruno Haible  <bruno@clisp.org>
13016
13017         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
13018         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
13019
13020 2007-03-06  Bruno Haible  <bruno@clisp.org>
13021
13022         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
13023         (asinl): Declare also if HAVE_DECL_ASINL is set.
13024         (atanl): Declare also if HAVE_DECL_ATANL is set.
13025         (ceill): Declare also if HAVE_DECL_CEILL is set.
13026         (cosl): Declare also if HAVE_DECL_COSL is set.
13027         (expl): Declare also if HAVE_DECL_EXPL is set.
13028         (floorl): Declare also if HAVE_DECL_FLOORL is set.
13029         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
13030         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
13031         (logl): Declare also if HAVE_DECL_LOGL is set.
13032         (sinl): Declare also if HAVE_DECL_SINL is set.
13033         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
13034         (tanl): Declare also if HAVE_DECL_TANL is set.
13035         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
13036         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
13037         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
13038         declaration of frexpl, ldexpl.
13039         * modules/printf-frexpl (Depends-on): Add math.
13040         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
13041
13042 2007-03-05  Bruno Haible  <bruno@clisp.org>
13043
13044         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
13045         frexpl and ldexpl are declared.
13046         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
13047
13048 2007-03-05  Bruno Haible  <bruno@clisp.org>
13049
13050         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
13051         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
13052
13053 2007-03-05  Bruno Haible  <bruno@clisp.org>
13054
13055         * lib/stdio_.h: Include <stddef.h>.
13056
13057 2007-03-05  Bruno Haible  <bruno@clisp.org>
13058
13059         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
13060
13061 2007-03-05  Bruno Haible  <bruno@clisp.org>
13062
13063         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
13064         NetBSD 4, from Ralf Wildenhues.
13065
13066 2007-03-04  Bruno Haible  <bruno@clisp.org>
13067
13068         * lib/vasprintf.h: Update #if logic for the case when the functions
13069         exist but are overridden.
13070
13071 2007-03-04  Bruno Haible  <bruno@clisp.org>
13072
13073         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
13074         implementations: glibc-2.4 and MacOS X 10.3.
13075         * tests/test-vasnprintf-posix.c (test_function): Test also the case
13076         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
13077         * tests/test-vasprintf-posix.c (test_function): Likewise.
13078
13079 2007-03-04  Bruno Haible  <bruno@clisp.org>
13080
13081         * modules/vasprintf-posix-tests: New file.
13082         * tests/test-vasprintf-posix.c: New file.
13083
13084         * modules/vasprintf-posix: New file.
13085         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
13086         defined.
13087         * m4/vasprintf-posix.m4: New file.
13088         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
13089         gl_FUNC_VASPRINTF.
13090         (gl_FUNC_VASPRINTF): Invoke it.
13091         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
13092         here.
13093         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
13094
13095 2007-03-04  Bruno Haible  <bruno@clisp.org>
13096
13097         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
13098         REPLACE_GETTIMEOFDAY.
13099         * modules/sys_time (Makefile.am): Likewise.
13100         * m4/sys_time_h.m4: Likewise.
13101         * m4/gettimeofday.m4: Likewise.
13102
13103 2007-03-04  Bruno Haible  <bruno@clisp.org>
13104
13105         * modules/vasnprintf-posix-tests: New file.
13106         * tests/test-vasnprintf-posix.c: New file.
13107
13108         * modules/vasnprintf-posix: New file.
13109         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
13110         printf-frexpl.h.
13111         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
13112         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
13113         REPLACE_VASNPRINTF is defined.
13114         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
13115         gl_FUNC_VASNPRINTF.
13116         (gl_FUNC_VASNPRINTF): Invoke it.
13117         * m4/vasnprintf-posix.m4: New file.
13118         * m4/printf.m4: New file.
13119
13120 2007-03-04  Bruno Haible  <bruno@clisp.org>
13121
13122         Compile progreloc.c only if --enable-relocatable is specified.
13123         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
13124         if --enable-relocatable was specified.
13125         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
13126         lib_SOURCES.
13127
13128 2007-03-04  Jim Meyering  <jim@meyering.net>
13129
13130         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
13131         Use it consistently, rather than enumerating errno constants.
13132
13133 2007-03-04  Bruno Haible  <bruno@clisp.org>
13134
13135         * modules/xvasprintf-tests: New file.
13136         * tests/test-xvasprintf.c: New file.
13137
13138         * modules/vasprintf-tests: New file.
13139         * tests/test-vasprintf.c: New file.
13140
13141         * modules/vasnprintf-tests: New file.
13142         * tests/test-vasnprintf.c: New file.
13143
13144         * modules/vsnprintf-tests: New file.
13145         * tests/test-vsnprintf.c: New file.
13146
13147         * modules/snprintf-tests: New file.
13148         * tests/test-snprintf.c: New file.
13149
13150 2007-03-04  Bruno Haible  <bruno@clisp.org>
13151
13152         Compile relocatable.c only if --enable-relocatable is specified.
13153         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
13154         gl_RELOCATABLE_LIBRARY.
13155         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
13156         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
13157         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
13158         gl_RELOCATABLE_LIBRARY.
13159         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
13160         (Makefile.am): Remove lib_SOURCES.
13161         * modules/relocatable-lib-lgpl (configure.ac): Invoke
13162         gl_RELOCATABLE_LIBRARY.
13163         (Makefile.am): Remove lib_SOURCES.
13164         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
13165         always.
13166         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13167         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
13168
13169 2007-03-04  Bruno Haible  <bruno@clisp.org>
13170
13171         * modules/argmatch-tests: New file.
13172         * tests/test-argmatch.c: New file.
13173
13174         * tests/test-allocsa.c (main): Halve the number of loop runs.
13175
13176         * modules/alloca-opt-tests: New file.
13177         * tests/test-alloca-opt.c: New file.
13178
13179 2007-03-04  Jim Meyering  <jim@meyering.net>
13180
13181         Work around difference between Linux ACLs and Solaris 10 ZFS.
13182         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
13183         for EINVAL.
13184
13185 2007-03-03  Bruno Haible  <bruno@clisp.org>
13186
13187         * modules/relocatable-prog (Depends-on): Add back progreloc's
13188         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
13189
13190 2007-03-03  Bruno Haible  <bruno@clisp.org>
13191
13192         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
13193         * modules/relocatable-lib: New file.
13194
13195 2007-03-03  Bruno Haible  <bruno@clisp.org>
13196
13197         * modules/relocatable-prog: Renamed from modules/relocatable.
13198         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
13199
13200 2007-03-03  Bruno Haible  <bruno@clisp.org>
13201
13202         * modules/relocatable-script (Files): Add doc/relocatable.texi,
13203         m4/relocatable-lib.m4.
13204         (Depends-on): Remove 'relocatable'.
13205         (configure.ac): Add gl_RELOCATABLE_NOP.
13206
13207 2007-03-03  Bruno Haible  <bruno@clisp.org>
13208
13209         * modules/relocatable-prog-wrapper: New file.
13210         * modules/relocatable (Depends-on): Add it. Remove all other
13211         dependencies except progname.
13212         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
13213
13214         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
13215         (gl_FUNC_STRERROR): Nop.
13216         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
13217
13218         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
13219         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
13220
13221         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
13222         (gl_FUNC_READLINK): Update.
13223
13224         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
13225
13226 2007-03-03  Bruno Haible  <bruno@clisp.org>
13227
13228         * lib/xreadlink.c: Include <unistd.h> unconditionally.
13229         * modules/xreadlink (Depends-on): Add unistd.
13230         * modules/xreadlink-with-size (Depends-on): Likewise.
13231
13232 2007-03-03  Bruno Haible  <bruno@clisp.org>
13233
13234         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
13235         extracted from gt_FUNC_SETENV.
13236         (gt_FUNC_SETENV): Remove macro.
13237         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
13238         remove gt_FUNC_SETENV.
13239
13240 2007-03-03  Bruno Haible  <bruno@clisp.org>
13241
13242         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
13243         ENABLE_RELOCATABLE here.
13244         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
13245
13246 2007-03-03  Bruno Haible  <bruno@clisp.org>
13247
13248         * modules/rbtreehash-list-tests (Depends-on): Add progname.
13249         * tests/test-rbtreehash_list.c: Include progname.h.
13250         (main): Call set_program_name.
13251
13252         * modules/rbtree-oset-tests (Depends-on): Add progname.
13253         * tests/test-rbtree_oset.c: Include progname.h.
13254         (main): Call set_program_name.
13255
13256         * modules/rbtree-list-tests (Depends-on): Add progname.
13257         * tests/test-rbtree_list.c: Include progname.h.
13258         (main): Call set_program_name.
13259
13260         * modules/linked-list-tests (Depends-on): Add progname.
13261         * tests/test-linked_list.c: Include progname.h.
13262         (main): Call set_program_name.
13263
13264 2007-03-03  Bruno Haible  <bruno@clisp.org>
13265
13266         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
13267         All uses of __restrict changed to _Restrict_.
13268         * lib/glob_.h (__restrict): Remove macro.
13269
13270 2007-03-02  Bruno Haible  <bruno@clisp.org>
13271
13272         * modules/gettext (configure.ac): Require gettext infrastructure
13273         from version 0.16.1.
13274
13275 2007-03-02  Bruno Haible  <bruno@clisp.org>
13276
13277         * modules/linkedhash-list-tests (Depends-on): Add progname.
13278         * tests/test-linkedhash_list.c: Include progname.h.
13279         (main): Call set_program_name.
13280
13281         * modules/carray-list-tests (Depends-on): Add progname.
13282         * tests/test-carray_list.c: Include progname.h.
13283         (main): Call set_program_name.
13284
13285         * modules/avltreehash-list-tests (Depends-on): Add progname.
13286         * tests/test-avltreehash_list.c: Include progname.h.
13287         (main): Call set_program_name.
13288
13289         * modules/avltree-oset-tests (Depends-on): Add progname.
13290         * tests/test-avltree_oset.c: Include progname.h.
13291         (main): Call set_program_name.
13292
13293         * modules/avltree-list-tests (Depends-on): Add progname.
13294         * tests/test-avltree_list.c: Include progname.h.
13295         (main): Call set_program_name.
13296
13297         * modules/array-oset-tests (Depends-on): Add progname.
13298         * tests/test-array_oset.c: Include progname.h.
13299         (main): Call set_program_name.
13300
13301         * modules/array-list-tests (Depends-on): Add progname.
13302         * tests/test-array_list.c: Include progname.h.
13303         (main): Call set_program_name.
13304
13305         * modules/argp-tests (Depends-on): Add progname.
13306         * tests/test-argp.c: Include argp.h first. Include progname.h.
13307         (main): Call set_program_name.
13308
13309 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
13310
13311         * doc/gnulib-tool.texi (Initial import): Reword description of
13312         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
13313         limited effect even if defined after the first system include.
13314
13315 2007-03-01  Bruno Haible  <bruno@clisp.org>
13316
13317         * build-aux/config.libpath: Update to libtool-1.5.22.
13318         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13319
13320 2007-03-01  Bruno Haible  <bruno@clisp.org>
13321
13322         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
13323         foo_CFLAGS.
13324         Reported by Ralf Wildenhues.
13325
13326 2007-03-01  Bruno Haible  <bruno@clisp.org>
13327
13328         * build-aux/install-reloc: Remove object files left over by some
13329         compilers.
13330         Reported by Ralf Wildenhues.
13331
13332 2007-03-01  Bruno Haible  <bruno@clisp.org>
13333
13334         * build-aux/install-reloc: Break long lines.
13335
13336 2007-03-01  Bruno Haible  <bruno@clisp.org>
13337
13338         * doc/relocatable.texi: Document that it may not work on OpenBSD.
13339         Reported by Ralf Wildenhues.
13340
13341 2007-03-01  Bruno Haible  <bruno@clisp.org>
13342
13343         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
13344         include ordering constraints.
13345
13346 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
13347
13348         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
13349         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
13350         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
13351         as another example.
13352         * lib/time_.h: Fix misspelling.
13353         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
13354         Require gl_HEADER_TIME_H_DEFAULTS.
13355         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
13356         * m4/time_r.m4 (gl_TIME_R): Likewise.
13357         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
13358
13359 2007-03-01  Bruno Haible  <bruno@clisp.org>
13360
13361         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
13362         * m4/utimens.m4 (gl_UTIMENS): Likewise.
13363
13364 2007-03-01  Jim Meyering  <jim@meyering.net>
13365
13366         * modules/xreadlink (Maintainer): Add my name.
13367         * modules/xreadlink-with-size (Depends-on): Alphabetize.
13368
13369 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
13370             Bruno Haible  <bruno@clisp.org>
13371
13372         * build-aux/install-reloc: Compile also c-ctype.c.
13373         * build-aux/relocatable.sh.in: New file.
13374         * doc/relocatable.texi: New file.
13375         * doc/relocatable-maint.texi: New file.
13376         * doc/gnulib.texi: Include relocatable-maint.texi.
13377         * lib/progreloc.c: Include unistd.h unconditionally.
13378         * lib/relocwrapper.c: Include unistd.h unconditionally.
13379         Include c-ctype.h.
13380         (add_dotbin): Use c_tolower.
13381         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
13382         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
13383         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
13384         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
13385         to m4/relocatable-lib.m4.
13386         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
13387         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
13388         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
13389         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
13390         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
13391         * modules/relocatable: New file.
13392         * modules/relocatable-lib: New file.
13393         * modules/relocatable-script: New file.
13394
13395 2007-02-28  Bruno Haible  <bruno@clisp.org>
13396
13397         Import --enable-relocatable infrastructure.
13398         * build-aux/config.libpath: New file, from GNU gettext.
13399         * build-aux/install-reloc: New file, from GNU gettext.
13400         * build-aux/reloc-ldflags: New file, from GNU gettext.
13401         * lib/relocatable.h: New file, from GNU gettext.
13402         * lib/relocatable.c: New file, from GNU gettext.
13403         * lib/relocwrapper.c: New file, from GNU gettext.
13404         * m4/relocatable.m4: New file, from GNU gettext.
13405
13406 2007-02-28  Bruno Haible  <bruno@clisp.org>
13407
13408         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
13409
13410         * modules/xreadlink: New file, from GNU gettext with modifications.
13411         * lib/xreadlink.c: New file, from GNU gettext.
13412         * lib/xreadlink.h: Add comments.
13413         (xreadlink): New declaration.
13414
13415         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
13416         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
13417         lib/xreadlink-with-size.c.
13418         (configure.ac): Remove gl_XREADLINK invocation.
13419         (Makefile.am): Augment lib_SOURCES.
13420         * m4/xreadlink.m4: Remove file.
13421         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
13422         (xreadlink_with_size): Renamed from xreadink.
13423         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
13424         * modules/canonicalize (Depends-on): Replace xreadlink with
13425         xreadlink-with-size.
13426         * lib/canonicalize.c (canonicalize_filename_mode): Update.
13427
13428 2007-02-25  Jim Meyering  <jim@meyering.net>
13429
13430         * build-aux/announce-gen: When complaining about excess arguments,
13431         list them.
13432
13433 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13434
13435         * README: Document signed integer overflow situation more
13436         accurately.
13437
13438 2007-02-25  Bruno Haible  <bruno@clisp.org>
13439
13440         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
13441         'a' or 'A' conversion.
13442
13443 2007-02-25  Bruno Haible  <bruno@clisp.org>
13444
13445         * modules/filename: Renamed from modules/pathname.
13446         (Files): Replace lib/pathname.h with lib/filename.h. Replace
13447         lib/concatpath.c with lib/concat-filename.c.
13448         (Makefile.am): Update.
13449         (Include): Replace pathname.h with filename.h.
13450         * lib/filename.h: Renamed from lib/pathname.h.
13451         (concatenated_filename): Renamed from concatenated_pathname.
13452         * lib/concat-filename.c: Renamed from lib/concatpath.c.
13453         (concatenated_filename): Renamed from concatenated_pathname.
13454         * lib/findprog.c: Include filename.h instead of pathname.h.
13455         (find_in_path): Update.
13456         * lib/javacomp.c: Include filename.h instead of pathname.h.
13457         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
13458         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
13459         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
13460         is_oldgcj_14_13_usable, is_javac_usable): Update.
13461         * lib/javaexec.c: Include filename.h instead of pathname.h.
13462         (execute_java_class): Update.
13463         * modules/findprog: Update.
13464         * modules/javacomp: Update.
13465         * modules/javaexec: Update.
13466         * MODULES.html.sh (File system functions): Add 'filename', remove
13467         'pathname'.
13468
13469 2007-02-25  Bruno Haible  <bruno@clisp.org>
13470
13471         * modules/printf-frexpl-tests: New file.
13472         * tests/test-printf-frexpl.c: New file.
13473
13474         * modules/printf-frexpl: New file.
13475         * lib/printf-frexpl.h: New file.
13476         * lib/printf-frexpl.c: New file.
13477         * m4/printf-frexpl.m4: New file.
13478
13479 2007-02-25  Bruno Haible  <bruno@clisp.org>
13480
13481         * modules/printf-frexp-tests: New file.
13482         * tests/test-printf-frexp.c: New file.
13483
13484         * modules/printf-frexp: New file.
13485         * lib/printf-frexp.h: New file.
13486         * lib/printf-frexp.c: New file.
13487         * m4/printf-frexp.m4: New file.
13488
13489 2007-02-25  Bruno Haible  <bruno@clisp.org>
13490
13491         Assume automake >= 1.10 for the tests.
13492         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
13493         * modules/arctwo-tests: Likewise.
13494         * modules/argp-tests: Likewise.
13495         * modules/avltree-list-tests: Likewise.
13496         * modules/avltree-oset-tests: Likewise.
13497         * modules/avltreehash-list-tests: Likewise.
13498         * modules/carray-list-tests: Likewise.
13499         * modules/crc-tests: Likewise.
13500         * modules/des-tests: Likewise.
13501         * modules/gc-arcfour-tests: Likewise.
13502         * modules/gc-arctwo-tests: Likewise.
13503         * modules/gc-des-tests: Likewise.
13504         * modules/gc-hmac-md5-tests: Likewise.
13505         * modules/gc-hmac-sha1-tests: Likewise.
13506         * modules/gc-md2-tests: Likewise.
13507         * modules/gc-md4-tests: Likewise.
13508         * modules/gc-md5-tests: Likewise.
13509         * modules/gc-pbkdf2-sha1-tests: Likewise.
13510         * modules/gc-rijndael-tests: Likewise.
13511         * modules/gc-sha1-tests: Likewise.
13512         * modules/gc-tests: Likewise.
13513         * modules/getaddrinfo-tests: Likewise.
13514         * modules/hmac-md5-tests: Likewise.
13515         * modules/hmac-sha1-tests: Likewise.
13516         * modules/linked-list-tests: Likewise.
13517         * modules/linkedhash-list-tests: Likewise.
13518         * modules/lock-tests: Likewise.
13519         * modules/md2-tests: Likewise.
13520         * modules/md4-tests: Likewise.
13521         * modules/md5-tests: Likewise.
13522         * modules/rbtree-list-tests: Likewise.
13523         * modules/rbtree-oset-tests: Likewise.
13524         * modules/rbtreehash-list-tests: Likewise.
13525         * modules/read-file-tests: Likewise.
13526         * modules/rijndael-tests: Likewise.
13527         * modules/stdint-tests: Likewise.
13528         * modules/tls-tests: Likewise.
13529
13530 2007-02-24  Bruno Haible  <bruno@clisp.org>
13531
13532         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
13533         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
13534         function; instead check whether isnan with a double argument links.
13535         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
13536         function; instead check whether isnan with a 'long double' argument
13537         links.
13538         Reported by Eric Blake <ebb9@byu.net>.
13539
13540 2007-02-24  Bruno Haible  <bruno@clisp.org>
13541
13542         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
13543         defined.
13544         * lib/isnanl.c: Remove all code. Just include isnan.c.
13545         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
13546
13547 2007-02-25  Jim Meyering  <jim@meyering.net>
13548
13549         Avoid conflicting types for 'unsetenv' on FreeBSD.
13550         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
13551         conflicting with FreeBSD's (5.0 and 6.1) function declaration
13552         in stdlib.h.
13553
13554 2007-02-24  Bruno Haible  <bruno@clisp.org>
13555
13556         * modules/isnanl-nolibm-tests: New file.
13557         * tests/test-isnanl.c: New file.
13558
13559         * modules/isnanl-nolibm: New file.
13560         * lib/isnanl.h: New file.
13561         * lib/isnanl.c: New file.
13562         * m4/isnanl.m4: New file.
13563
13564 2007-02-24  Bruno Haible  <bruno@clisp.org>
13565
13566         * modules/isnan-nolibm-tests: New file.
13567         * tests/test-isnan.c: New file.
13568
13569         * modules/isnan-nolibm: New file.
13570         * lib/isnan.h: New file.
13571         * lib/isnan.c: New file.
13572         * m4/isnan.m4: New file.
13573
13574 2007-02-24  Bruno Haible  <bruno@clisp.org>
13575
13576         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
13577         assume that an exponent fits in 20 bits.
13578
13579 2007-02-24  Jim Meyering  <jim@meyering.net>
13580
13581         * m4/regex.m4: Update the description of the configure-time option,
13582         --without-included-regex, to state accurately what the defaults are,
13583         and perhaps to give people an idea why using this option is risky.
13584
13585 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13586
13587         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
13588         loops on small arguments.  This attempts to avoid the problem
13589         Bruno Haible reported for AIX 4.3.2 in
13590         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
13591
13592 2007-02-23  Bruno Haible  <bruno@clisp.org>
13593
13594         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
13595         Needed for help2man.
13596
13597 2007-02-23  Karl Berry  <karl@gnu.org>
13598
13599         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
13600         exists, foo.h should be cvs-ignored, not committed.
13601
13602 2007-02-23  Eric Blake  <ebb9@byu.net>
13603
13604         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
13605         * lib/stat-time.h (includes): Likewise.
13606         * lib/utimecmp.c (includes): Likewise.
13607         * lib/utimens.h (includes): Likewise.
13608         * lib/getdate.y (includes): Also include "timespec.h" for use
13609         internal to the module.
13610         * modules/utimens (Depends-on): Revert yesterday's patch.
13611         * modules/nanosleep (Depends-on): Add missing dependency.
13612
13613 2007-02-22  Bruno Haible  <bruno@clisp.org>
13614
13615         * lib/glob.c: Don't include getlogin_r.h.
13616
13617 2007-02-22  Jim Meyering  <jim@meyering.net>
13618
13619         * modules/utimens (Depends-on): Add timespec, required for
13620         utimens.h's inclusion of timespec.h.
13621
13622 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
13623
13624         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
13625         long unreadable paths in GNU/Linux.  Problem reported by Andreas
13626         Schwab in
13627         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
13628         I'll try to think of a better way to fix the Solaris problem.
13629
13630         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
13631         like glibc; on Solaris 10, it fails with errno == EINVAL.
13632         POSIX says the behavior is unspecified if the first argument is NULL,
13633         so play it safe and never pass NULL to the system getcwd.
13634
13635 2007-02-21  Jim Meyering  <jim@meyering.net>
13636
13637         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
13638         of gettimeofday.  It would conflict with the one now always
13639         provided via sys_time_.h.  Reported by Matthew Woehlke, as
13640         an IRIX 6.5 build failure.
13641
13642 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
13643
13644         Minor fixups to port to Solaris 10 with Sun C 5.8.
13645         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
13646         * modules/getcwd (Depends-on): Add dirfd.
13647         * lib/putenv.c (putenv): #undef it.
13648         (rpl_putenv): New decl.
13649         (malloc, free): Include <stdlib.h> rather than prototyping separately.
13650
13651 2007-02-20  Bruno Haible  <bruno@clisp.org>
13652
13653         * modules/stdio-tests: New file.
13654         * tests/test-stdio.c: New file.
13655
13656         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
13657         (Depends-on): Add stdio.
13658         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
13659         (Include): Use <stdio.h> instead of vsnprintf.h.
13660         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
13661         HAVE_DECL_VSNPRINTF.
13662         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
13663
13664         * modules/snprintf (Files): Remove lib/snprintf.h.
13665         (Depends-on): Add stdio.
13666         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
13667         (Include): Use <stdio.h> instead of snprintf.h.
13668         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
13669         HAVE_DECL_SNPRINTF.
13670         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
13671         * lib/getaddrinfo.c: Likewise.
13672
13673         * modules/stdio: New file.
13674         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
13675         * lib/snprintf.h: Remove file.
13676         * lib/vsnprintf.h: Remove file.
13677         * lib/.cppi-disable: Remove snprintf.h.
13678         * m4/stdio_h.m4: New file.
13679         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
13680
13681 2007-02-20  Jim Meyering  <jim@meyering.net>
13682
13683         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
13684         used by e.g., mingw.  From Bruno Haible.
13685
13686 2007-02-19  Bruno Haible  <bruno@clisp.org>
13687
13688         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
13689         warnings.
13690         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13691
13692 2007-02-19  Bruno Haible  <bruno@clisp.org>
13693
13694         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
13695         from mingw users.
13696
13697 2007-02-19  Bruno Haible  <bruno@clisp.org>
13698
13699         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
13700         warnings.
13701         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
13702
13703 2007-02-19  Jim Meyering  <jim@meyering.net>
13704
13705         Don't use FD after a successful "fdopendir (fd)".
13706         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
13707         Reset it by calling dirfd on the just-obtained DIR*.
13708
13709         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
13710         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
13711
13712 2007-02-18  Bruno Haible  <bruno@clisp.org>
13713
13714         * lib/readlink.c: Include <unistd.h>.
13715         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
13716         HAVE_READLINK.
13717         * modules/readlink (Depends-on): Add unistd.
13718         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13719         (Include): Add <unistd.h>.
13720
13721         * lib/getlogin_r.h: Remove file.
13722         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
13723         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
13724         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
13725         HAVE_DECL_GETLOGIN_R.
13726         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
13727         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13728         (Include): Use <unistd.h> instead of getlogin_r.h.
13729
13730         * lib/getcwd.h: Remove file.
13731         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
13732         * lib/xgetcwd.c: Likewise.
13733         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
13734         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
13735         * modules/getcwd (Files): Remove lib/getcwd.h.
13736         (Depends-on): Add unistd.
13737         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13738         (Include): Use <unistd.h> instad of getcwd.h.
13739
13740         * lib/ftruncate.c: Include <unistd.h> first.
13741         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
13742         Set HAVE_FTRUNCATE.
13743         * modules/ftruncate (Depends-on): Add unistd.
13744         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13745
13746         * lib/fchdir.c: Include <unistd.h> first.
13747         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
13748         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
13749         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
13750         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13751         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
13752
13753         * lib/dup2.c: Include <unistd.h> first.
13754         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
13755         HAVE_DUP2.
13756         * modules/dup2 (Depends-on): Add unistd.
13757         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13758
13759         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
13760         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
13761         REPLACE_CHOWN. Don't define chown as a macro here.
13762         * modules/chown (Depends-on): Add unistd.
13763         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13764
13765         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
13766         Add definition for GL_LINK_WARNING.
13767         (chown, dup2): New declarations.
13768         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
13769         link warning.
13770         (ftruncate): New declaration.
13771         (getcwd): New declaration, taken from old getcwd.h.
13772         (getlogin_r): New declaration, taken from old getlogin_r.h.
13773         (readlink): New declaration.
13774         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
13775         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
13776         (gl_PREREQ_UNISTD): Remove macro.
13777         (gl_UNISTD_MODULE_INDICATOR): New macro.
13778         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
13779         many new variables. Don't set UNISTD_H.
13780         * modules/unistd (Description): Change.
13781         (Depends-on): Add link-warning.
13782         (configure.ac): Update.
13783         (Makefile.am): Create unistd.h always. Substitute many new variables
13784         into it.
13785
13786 2007-02-18  Bruno Haible  <bruno@clisp.org>
13787
13788         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
13789         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
13790         HAVE_GETSUBOPT.
13791         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
13792         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
13793         * lib/getsubopt.h: Remove file.
13794         * modules/getsubopt (Files): Remove lib/getsubopt.h.
13795         (Depends-on): Add stdlib.
13796         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
13797         (Includes): Use <stdlib.h> instead of getsubopt.h.
13798         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
13799         Set HAVE_GETSUBOPT.
13800         * lib/getsubopt.c: Don't include getsubopt.h.
13801
13802 2007-02-18  Bruno Haible  <bruno@clisp.org>
13803
13804         * modules/fchdir (Depends-on): Add dup2.
13805
13806 2007-02-18  Bruno Haible  <bruno@clisp.org>
13807
13808         * lib/stdlib_.h: Handle glibc's special invocation convention
13809         specially.
13810
13811 2007-02-18  Bruno Haible  <bruno@clisp.org>
13812
13813         * modules/stdlib-tests: New file.
13814         * tests/test-stdlib.c: New file.
13815
13816         * modules/mkstemp (Files): Remove lib/mkstemp.h.
13817         (Depends-on): Add stdlib.
13818         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
13819         (Includes): Use <stdlib.h> instead of mkstemp.h.
13820         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
13821         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
13822         * lib/mkstemp.c: Don't include mkstemp.h.
13823         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
13824         * lib/stdlib--.h: Don't include mkstemp.h.
13825
13826         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
13827         (Depends-on): Add stdlib.
13828         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
13829         (Includes): Use <stdlib.h> instead of mkdtemp.h.
13830         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
13831         HAVE_MKDTEMP.
13832         * lib/mkdtemp.c: Don't include mkdtemp.h.
13833         * lib/clean-temp.c: Don't include mkdtemp.h.
13834
13835         * modules/exit (Files): Remove lib/exit.h.
13836         (Depends-on): Add stdlib.
13837         (Makefile.am): Remove lib_SOURCES.
13838         (Include): Use <stdlib.h> instead of exit.h.
13839         * lib/argmatch.c: Don't include exit.h.
13840         * lib/execute.c: Likewise.
13841         * lib/pagealign_alloc.c: Likewise.
13842         * lib/pipe.c: Likewise.
13843         * lib/wait-process.c: Likewise.
13844         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
13845         * lib/exitfail.c: Likewise.
13846         * lib/savewd.c: Likewise.
13847         * lib/xsetenv.c: Likewise.
13848
13849         * modules/stdlib: New file.
13850         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
13851         and extra comments about mkstemp().
13852         * lib/exit.h: Remove file.
13853         * lib/mkdtemp.h: Remove file.
13854         * lib/mkstemp.h: Remove file.
13855         * m4/stdlib_h.m4: New file.
13856         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
13857
13858 2007-02-18  Bruno Haible  <bruno@clisp.org>
13859
13860         * modules/math-tests: New file.
13861         * tests/test-math.c: New file.
13862
13863         * modules/math: New file.
13864         * modules/mathl (Files): Remove lib/mathl.h.
13865         (Depends-on): Add math.
13866         (Makefile.am): Don't mention mathl.h.
13867         (Include): Use <math.h> instead of mathl.h.
13868         * lib/math_.h: New file.
13869         * lib/mathl.h: Remove file.
13870         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
13871         mathl.h.
13872         * lib/asinl.c: Likewise.
13873         * lib/atanl.c: Likewise.
13874         * lib/ceill.c: Likewise.
13875         * lib/cosl.c: Likewise.
13876         * lib/expl.c: Likewise.
13877         * lib/floorl.c: Likewise.
13878         * lib/frexpl.c: Likewise.
13879         * lib/ldexpl.c: Likewise.
13880         * lib/logl.c: Likewise.
13881         * lib/sincosl.c: Likewise.
13882         * lib/sinl.c: Likewise.
13883         * lib/sqrtl.c: Likewise.
13884         * lib/tanl.c: Likewise.
13885         * lib/trigl.c: Likewise.
13886         * m4/math_h.m4: New file.
13887         * MODULES.html.sh (Mathematics): Add math.
13888
13889 2007-02-17  Bruno Haible  <bruno@clisp.org>
13890
13891         * modules/wctype-tests: New file.
13892         * tests/test-wctype.c: New file.
13893
13894         * modules/wchar-tests: New file.
13895         * tests/test-wchar.c: New file.
13896
13897         * modules/unistd-tests: New file.
13898         * tests/test-unistd.c: New file.
13899
13900         * modules/time-tests: New file.
13901         * tests/test-time.c: New file.
13902
13903         * modules/sysexits-tests: New file.
13904         * tests/test-sysexits.c: New file.
13905
13906         * modules/sys_time-tests: New file.
13907         * tests/test-sys_time.c: New file.
13908
13909         * modules/sys_stat-tests: New file.
13910         * tests/test-sys_stat.c: New file.
13911
13912         * modules/sys_socket-tests: New file.
13913         * tests/test-sys_socket.c: New file.
13914
13915         * modules/sys_select-tests: New file.
13916         * tests/test-sys_select.c: New file.
13917
13918         * modules/string-tests: New file.
13919         * tests/test-string.c: New file.
13920
13921         * modules/stdbool-tests: New file.
13922         * tests/test-stdbool.c: New file.
13923
13924         * modules/netinet_in-tests: New file.
13925         * tests/test-netinet_in.c: New file.
13926
13927         * modules/inttypes-tests: New file.
13928         * tests/test-inttypes.c: New file.
13929
13930         * modules/fcntl-tests: New file.
13931         * tests/test-fcntl.c: New file.
13932
13933         * modules/byteswap-tests: New file.
13934         * tests/test-byteswap.c: New file.
13935
13936         * modules/arpa_inet-tests: New file.
13937         * tests/test-arpa_inet.c: New file.
13938
13939 2007-02-17  Bruno Haible  <bruno@clisp.org>
13940
13941         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
13942         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
13943         if the corresponding module is not enabled. Emit link warnings if
13944         the function is used nevertheless.
13945         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
13946         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
13947         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
13948         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
13949         * modules/inttypes (Depends-on): Add link-warning.
13950         (Makefile.am): Copy the contents of build-aux/link-warning.h into
13951         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
13952         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
13953         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
13954         * modules/imaxdiv (configure.ac): Likewise.
13955         * modules/strtoimax (configure.ac): Likewise.
13956         * modules/strtoumax (configure.ac): Likewise.
13957
13958 2007-02-17  Bruno Haible  <bruno@clisp.org>
13959
13960         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
13961         gl_STRING_MODULE_INDICATOR_DEFAULTS.
13962         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
13963         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
13964
13965 2007-02-17  Bruno Haible  <bruno@clisp.org>
13966
13967         * modules/link-warning: New file.
13968         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
13969         * lib/string_.h (GL_LINK_WARNING): Remove definition.
13970         * modules/string (Depends-on): Add link-warning.
13971         (Makefile.am): Copy the contents of build-aux/link-warning.h into
13972         string.h.
13973         * MODULES.html.sh (Support for building libraries and executables): Add
13974         link-warning.
13975
13976 2007-02-17  Bruno Haible  <bruno@clisp.org>
13977
13978         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
13979         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
13980         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
13981         long lines.
13982
13983 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
13984             Bruno Haible  <bruno@clisp.org>
13985
13986         * modules/tmpfile: New file.
13987         * lib/tmpfile.c: New file.
13988         * m4/tmpfile.m4: New file.
13989         * MODULES.html.sh (func_all_modules): New section "Input/output".
13990
13991 2007-02-15  Bruno Haible  <bruno@clisp.org>
13992
13993         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
13994         (supports_delete_on_close): New function.
13995         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
13996
13997 2007-02-14  Bruno Haible  <bruno@clisp.org>
13998
13999         * modules/mbspcasecmp-tests: New file.
14000         * tests/test-mbspcasecmp.sh: New file.
14001         * tests/test-mbspcasecmp.c: New file.
14002
14003         New module mbspcasecmp.
14004         * modules/mbspcasecmp: New file.
14005         * lib/mbspcasecmp.c: New file.
14006         * lib/string_.h (strncasecmp): Change warning message.
14007         (mbspcasecmp): New declaration.
14008         * m4/mbspcasecmp.m4: New file.
14009         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14010         GNULIB_MBSPCASECMP.
14011         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
14012         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
14013
14014 2007-02-14  Bruno Haible  <bruno@clisp.org>
14015
14016         * modules/mbsncasecmp-tests: New file.
14017         * tests/test-mbsncasecmp.sh: New file.
14018         * tests/test-mbsncasecmp.c: New file.
14019
14020         New module mbsncasecmp.
14021         * modules/mbsncasecmp: New file.
14022         * lib/mbsncasecmp.c: New file.
14023         * lib/string_.h (mbsncasecmp): New declaration.
14024         * m4/mbsncasecmp.m4: New file.
14025         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14026         GNULIB_MBSNCASECMP.
14027         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
14028         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
14029
14030 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
14031
14032         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
14033         Verify that it doesn't overlap with our flags.
14034         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
14035         do not have the desired effect in multibyte locales; instead, use
14036         mbscasecmp.
14037         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
14038         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
14039         we don't require GNU fnmatch ourselves (if our users require it, they
14040         should do so explicitly).
14041
14042         Fix regex code so it doesn't rely on strcasecmp.
14043         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
14044         Otherwise, include gnulib's langinfo.h.
14045         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
14046         undesirable behavior in non-C locales.  Instead, rely on localecharset.
14047         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
14048         * modules/regex (FILES): Remove m4/codeset.m4.
14049         (Depends-on): Add localcharset.  Remove strcase.
14050
14051 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14052
14053         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
14054         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14055
14056 2007-02-13  Bruno Haible  <bruno@clisp.org>
14057
14058         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
14059         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14060
14061 2007-02-12  Bruno Haible  <bruno@clisp.org>
14062
14063         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
14064         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
14065         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
14066         time warning rather than a link error.
14067
14068 2007-02-12  Bruno Haible  <bruno@clisp.org>
14069
14070         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
14071         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14072         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14073
14074 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14075
14076         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
14077         args, not 2.
14078
14079 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14080
14081         New module 'time', so that apps can include <time.h> as per
14082         POSIX and GNU instead of separate include files like time_r.h
14083         and timegm.h.  This implementation tries out a simpler approach
14084         for replacing decls in standard include files (as compared to
14085         the string module), somewhat as an experiment.
14086
14087         * config/srclist.txt: Comment out mktime.c for now.
14088         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
14089         since it doesn't apply any more.  Use generic wording instead.
14090         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
14091         'time'.
14092         * lib/time_.h, m4/time_h.m4, modules/time: New files.
14093         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
14094         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
14095         Don't include <sys/types.h>; no longer needed since we assume C89.
14096         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
14097         * lib/strftime.c: Likewise.
14098         * lib/time_r.c: Likewise.
14099         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
14100         * lib/nanosleep.c: Include <time.h> first, to check interface.
14101         * lib/strptime.c: Likewise.
14102         * lib/time_r.c: Likewise.
14103         * lib/timegm.c: Likewise.
14104         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
14105         needed.
14106         * lib/timegm.c: Don't include timegm.h; no longer needed.
14107         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
14108         time.h now handles any problems in that area.
14109         (struct timespec, nanosleep): Remove; time.h now arranges for these.
14110         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
14111         that time.h defines struct timespec.
14112         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
14113         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
14114         handles that.
14115         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
14116         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
14117         needed.  Set REPLACE_LOCALTIME.
14118         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
14119         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
14120         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
14121         nanosleep; time_h.m4 now does that.  Don't require
14122         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
14123         module handles this now.
14124         * modules/getdate (Depends-on): Remove timespec.  Add time.
14125         * modules/nanosleep (Depends-on): Likewise.
14126         * modules/stat-time (Depends-on): Likewise.
14127         * modules/nanosleep (Include): Include time.h, not timespec.h.
14128         * modules/strptime (Files): Remove lib/strptime.h.
14129         (Depends-on): Add extensions, time.
14130         (Include): Include time.h, not strptime.h.
14131         * modules/time_r (Files): Remove lib/time_r.h.
14132         (Depends-on): Add time.
14133         (Include): Include time.h, not time_r.h.
14134         * modules/timegm: Likewise.
14135         * modules/timespec (Description): Now does timespec-related decls
14136         of our own, instead of struct timespec itself.
14137         (Depends-on): Add time; remove extensions.
14138         (Maintainer): Add self.
14139         * modules/utimecmp (Depends-on): Add time; remove timespec.
14140         * modules/utimens (Depends-on): Likewise.
14141         * modules/xnanosleep (Depends-on): Likewise.
14142
14143 2007-02-11  Bruno Haible  <bruno@clisp.org>
14144
14145         * lib/c-strstr.c: Include allocsa.h.
14146         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
14147         * lib/c-strcasestr.c: Include allocsa.h.
14148         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
14149         * lib/strcasestr.c: Include allocsa.h.
14150         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
14151         * lib/mbsstr.c: Include allocsa.h.
14152         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
14153         allocsa/freesa instead of malloc/free.
14154         * lib/mbscasestr.c: Include allocsa.h.
14155         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
14156         allocsa/freesa instead of malloc/free.
14157         * modules/c-strstr (Depends-on): Add allocsa.
14158         * modules/c-strcasestr (Depends-on): Likewise.
14159         * modules/strcasestr (Depends-on): Likewise.
14160         * modules/mbsstr (Depends-on): Likewise.
14161         * modules/mbscasestr (Depends-on): Likewise.
14162
14163 2007-02-11  Bruno Haible  <bruno@clisp.org>
14164
14165         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
14166
14167         * modules/mbsspn-tests: New file.
14168         * tests/test-mbsspn.sh: New file.
14169         * tests/test-mbsspn.c: New file.
14170
14171 2007-02-11  Bruno Haible  <bruno@clisp.org>
14172
14173         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
14174
14175         * modules/mbspbrk-tests: New file.
14176         * tests/test-mbspbrk.sh: New file.
14177         * tests/test-mbspbrk.c: New file.
14178
14179 2007-02-11  Bruno Haible  <bruno@clisp.org>
14180
14181         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
14182         unneeded cast.
14183
14184         * modules/mbscspn-tests: New file.
14185         * tests/test-mbscspn.sh: New file.
14186         * tests/test-mbscspn.c: New file.
14187
14188 2007-02-11  Bruno Haible  <bruno@clisp.org>
14189
14190         * modules/mbscasecmp-tests: New file.
14191         * tests/test-mbscasecmp.sh: New file.
14192         * tests/test-mbscasecmp.c: New file.
14193
14194 2007-02-11  Bruno Haible  <bruno@clisp.org>
14195
14196         Ensure O(n) worst-case complexity of mbscasestr.
14197         * lib/mbscasestr.c: Include stdbool.h.
14198         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
14199         functions.
14200         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
14201         the bookkeeping indicates that it's worth it.
14202         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
14203
14204         * modules/mbscasestr-tests: New file.
14205         * tests/test-mbscasestr1.c: New file.
14206         * tests/test-mbscasestr2.sh: New file.
14207         * tests/test-mbscasestr2.c: New file.
14208         * tests/test-mbscasestr3.sh: New file.
14209         * tests/test-mbscasestr3.c: New file.
14210         * tests/test-mbscasestr4.sh: New file.
14211         * tests/test-mbscasestr4.c: New file.
14212         * m4/locale-tr.m4: New file.
14213
14214 2007-02-11  Bruno Haible  <bruno@clisp.org>
14215
14216         Ensure O(n) worst-case complexity of mbsstr.
14217         * lib/mbsstr.c: Include stdbool.h.
14218         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
14219         functions.
14220         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
14221         bookkeeping indicates that it's worth it.
14222         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
14223
14224         * modules/mbsstr-tests: New file.
14225         * tests/test-mbsstr1.c: New file.
14226         * tests/test-mbsstr2.sh: New file.
14227         * tests/test-mbsstr2.c: New file.
14228         * tests/test-mbsstr3.sh: New file.
14229         * tests/test-mbsstr3.c: New file.
14230         * m4/locale-fr.m4: New file.
14231
14232 2007-02-11  Bruno Haible  <bruno@clisp.org>
14233
14234         * lib/mbsrchr.c (mbsrchr): Fix bug.
14235
14236         * modules/mbsrchr-tests: New file.
14237         * tests/test-mbsrchr.sh: New file.
14238         * tests/test-mbsrchr.c: New file.
14239
14240 2007-02-11  Bruno Haible  <bruno@clisp.org>
14241
14242         * lib/mbschr.c (mbschr): Fix bug.
14243
14244         * modules/mbschr-tests: New file.
14245         * tests/test-mbschr.sh: New file.
14246         * tests/test-mbschr.c: New file.
14247         * m4/locale-zh.m4: New file.
14248
14249 2007-02-11  Bruno Haible  <bruno@clisp.org>
14250
14251         Support for copying multibyte string iterators.
14252         * lib/mbiter.h: Include <string.h>.
14253         (mbiter_multi_copy): New function.
14254         (mbi_copy): New macro.
14255         * lib/mbuiter.h: Include <string.h>.
14256         (mbuiter_multi_copy): New function.
14257         (mbui_copy): New macro.
14258
14259 2007-02-11  Bruno Haible  <bruno@clisp.org>
14260
14261         New module mbslen.
14262         * modules/mbslen: New file.
14263         * lib/mbslen.c: New file.
14264         * lib/string_.h (mbslen): New declaration.
14265         * m4/mbslen.m4: New file.
14266         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14267         GNULIB_MBSLEN.
14268         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
14269         * MODULES.html.sh (Internationalization functions): Add mbslen.
14270
14271 2007-02-11  Bruno Haible  <bruno@clisp.org>
14272
14273         Ensure O(n) worst-case complexity of strcasestr substitute.
14274         * lib/strcasestr.c: Include stdbool.h.
14275         (knuth_morris_pratt): New function.
14276         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
14277         bookkeeping indicates that it's worth it.
14278         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
14279
14280         * modules/strcasestr-tests: New file.
14281         * tests/test-strcasestr.c: New file.
14282
14283 2007-02-11  Bruno Haible  <bruno@clisp.org>
14284
14285         Ensure O(n) worst-case complexity of c_strcasestr.
14286         * lib/c-strcasestr.c: Include stdbool.h, string.h.
14287         (knuth_morris_pratt): New function.
14288         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
14289         the bookkeeping indicates that it's worth it.
14290         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
14291
14292         * modules/c-strcasestr-tests: New file.
14293         * tests/test-c-strcasestr.c: New file.
14294
14295 2007-02-11  Bruno Haible  <bruno@clisp.org>
14296
14297         Ensure O(n) worst-case complexity of c_strstr.
14298         * lib/c-strstr.c: Include stdbool.h, string.h.
14299         (knuth_morris_pratt): New function.
14300         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
14301         bookkeeping indicates that it's worth it.
14302         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
14303
14304         * lib/c-strstr.c: Complete rewrite for maintainability.
14305
14306         * modules/c-strstr-tests: New file.
14307         * tests/test-c-strstr.c: New file.
14308
14309 2007-02-11  Bruno Haible  <bruno@clisp.org>
14310
14311         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
14312         5.2.1 and earlier, whereby \055 was treated just like the range
14313         delimiter '-'.
14314         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
14315
14316 2007-02-08  Bruno Haible  <bruno@clisp.org>
14317
14318         * modules/regex (Depends-on): Add stdbool.
14319         Reported by Dalibor Topic <robilad@kaffe.org>.
14320
14321 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
14322
14323         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
14324         Prefer returning from main to exiting from it.
14325         Remove unnecessary parens after sizeof.
14326
14327 2007-02-05  Bruno Haible  <bruno@clisp.org>
14328
14329         New module mbssep.
14330         * modules/mbssep: New file.
14331         * lib/mbssep.c: New file.
14332         * lib/string_.h (strsep): Add a conditional link warning.
14333         (mbssep): New declaration.
14334         * m4/mbssep.m4: New file.
14335         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14336         GNULIB_MBSSEP.
14337         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
14338         * MODULES.html.sh (Internationalization functions): Add mbssep.
14339
14340 2007-02-05  Bruno Haible  <bruno@clisp.org>
14341
14342         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
14343         Optimize search in case of 1 delimiter.
14344
14345 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
14346
14347         * lib/acl.h: Include sys/types.h before sys/acl.h.
14348
14349 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
14350
14351         Merge upstream fix for glibc bugzilla #3957:
14352
14353         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
14354
14355         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
14356         bit for RE_HAT_LISTS_NOT_NEWLINE.
14357         (build_charclass_op): Remove bogus comment.
14358
14359 2007-02-05  Simon Josefsson  <simon@josefsson.org>
14360
14361         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
14362
14363 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14364
14365         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
14366         * lib/memmem.c [!defined _LIBC]: Include config.h.
14367
14368 2007-02-04  Bruno Haible  <bruno@clisp.org>
14369
14370         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
14371         warning message.
14372
14373 2007-02-04  Bruno Haible  <bruno@clisp.org>
14374
14375         New module mbstok_r.
14376         * modules/mbstok_r: New file.
14377         * lib/mbstok_r.c: New file.
14378         * lib/string_.h (strtok_r): Change argument names to match the
14379         comments. Add a conditional link warning.
14380         (mbstok_r): New declaration.
14381         * m4/mbstok_r.m4: New file.
14382         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14383         GNULIB_MBSTOK_R.
14384         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
14385         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
14386
14387 2007-02-04  Bruno Haible  <bruno@clisp.org>
14388
14389         New module mbsspn.
14390         * modules/mbsspn: New file.
14391         * lib/mbsspn.c: New file.
14392         * lib/string_.h (strspn): Add a conditional link warning.
14393         (mbsspn): New declaration.
14394         * m4/mbsspn.m4: New file.
14395         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14396         GNULIB_MBSSPN.
14397         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
14398         * MODULES.html.sh (Internationalization functions): Add mbsspn.
14399
14400 2007-02-04  Bruno Haible  <bruno@clisp.org>
14401
14402         New module mbspbrk.
14403         * modules/mbspbrk: New file.
14404         * lib/mbspbrk.c: New file.
14405         * lib/string_.h (strpbrk): Add a conditional link warning.
14406         (mbspbrk): New declaration.
14407         * m4/mbspbrk.m4: New file.
14408         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14409         GNULIB_MBSPBRK.
14410         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
14411         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
14412
14413 2007-02-04  Bruno Haible  <bruno@clisp.org>
14414
14415         New module mbscspn.
14416         * modules/mbscspn: New file.
14417         * lib/mbscspn.c: New file.
14418         * lib/string_.h (strcspn): Add a conditional link warning.
14419         (mbscspn): New declaration.
14420         * m4/mbscspn.m4: New file.
14421         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14422         GNULIB_MBSCSPN.
14423         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
14424         * MODULES.html.sh (Internationalization functions): Add mbscspn.
14425
14426 2007-02-04  Bruno Haible  <bruno@clisp.org>
14427
14428         New module mbscasestr, reduced goal of strcasestr.
14429         * modules/mbscasestr: New file.
14430         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
14431         (mbscasestr): Renamed from strcasestr.
14432         * lib/strcasestr.c: Don't include mbuiter.h.
14433         (strcasestr): Remove support for multibyte locales.
14434         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
14435         Change the conditional link warning.
14436         (mbscasestr): New declaration.
14437         * m4/mbscasestr.m4: New file.
14438         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
14439         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
14440         REPLACE_STRCASESTR.
14441         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
14442         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14443         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
14444         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
14445         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
14446         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
14447         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
14448         (Depends-on): Remove mbuiter.
14449         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
14450
14451 2007-02-04  Bruno Haible  <bruno@clisp.org>
14452
14453         Simplify handling of strncasecmp.
14454         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
14455         the conditional link warning.
14456         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14457         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
14458         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
14459         * modules/strcase (configure.ac): Don't invoke
14460         gl_STRING_MODULE_INDICATOR.
14461         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
14462
14463 2007-02-04  Bruno Haible  <bruno@clisp.org>
14464
14465         New module mbscasecmp, reduced goal of strcasecmp.
14466         * modules/mbscasecmp: New file.
14467         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
14468         (mbscasecmp): Renamed from strcasecmp.
14469         * lib/strcasecmp.c: Don't include mbuiter.h.
14470         (strcasecmp): Remove support for multibyte locales.
14471         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
14472         Change the conditional link warning.
14473         (mbscasecmp): New declaration.
14474         * m4/mbscasecmp.m4: New file.
14475         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
14476         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
14477         REPLACE_STRCASECMP.
14478         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
14479         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14480         GNULIB_MBSCASECMP.
14481         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
14482         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
14483         * modules/strcase (Files): Remove m4/mbrtowc.m4.
14484         (Depends-on): Remove mbuiter.
14485         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
14486
14487 2007-02-04  Bruno Haible  <bruno@clisp.org>
14488
14489         New module mbsstr. Remove module strstr.
14490         * modules/mbsstr: New file.
14491         * modules/strstr: Remove file.
14492         * lib/mbsstr.c: Renamed from lib/strstr.c.
14493         (mbsstr): Renamed from strstr.
14494         * lib/string_.h (strstr): Remove declaration. Change the conditional
14495         link warning.
14496         (mbsstr): New declaration.
14497         * m4/mbsstr.m4: New file.
14498         * m4/strstr.m4: Remove file.
14499         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
14500         REPLACE_STRSTR.
14501         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
14502         Don't initialize GNULIB_STRSTR.
14503         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
14504         substitute GNULIB_STRSTR and REPLACE_STRSTR.
14505         * MODULES.html.sh (Internationalization functions): Add mbsstr.
14506         (Support for systems lacking ANSI C 89): Remove strstr.
14507
14508 2007-02-04  Bruno Haible  <bruno@clisp.org>
14509
14510         New module mbsrchr.
14511         * modules/mbsrchr: New file.
14512         * lib/mbsrchr.c: New file.
14513         * lib/string_.h (strrchr): Add a conditional link warning.
14514         (mbsrchr): New declaration.
14515         * m4/mbsrchr.m4: New file.
14516         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14517         GNULIB_MBSRCHR.
14518         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
14519         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
14520
14521 2007-02-04  Bruno Haible  <bruno@clisp.org>
14522
14523         New module mbschr.
14524         * modules/mbschr: New file.
14525         * lib/mbschr.c: New file.
14526         * lib/string_.h (strchr): Add a conditional link warning.
14527         (mbschr): New declaration.
14528         * m4/mbschr.m4: New file.
14529         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14530         GNULIB_MBSCHR.
14531         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
14532         * MODULES.html.sh (Internationalization functions): Add mbschr.
14533
14534 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14535
14536         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
14537
14538         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
14539
14540 2007-02-04  Bruno Haible  <bruno@clisp.org>
14541
14542         New module description section 'configure.ac-early'.
14543         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
14544         (func_get_autoconf_early_snippet): New function.
14545         (func_import, func_create_testdir): Use it. Remove special cases for
14546         modules 'extensions' and 'lock'.
14547         * modules/extensions (configure.ac-early): Require
14548         gl_USE_SYSTEM_EXTENSIONS.
14549         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
14550
14551 2007-02-04  Bruno Haible  <bruno@clisp.org>
14552
14553         Make use of gcj-4.3's -fsource and -ftarget option.
14554         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
14555         and if so try the options -fsource and -ftarget.
14556         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
14557         source_version, ftarget_option, target_version arguments.
14558         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
14559         (is_envjavac_oldgcj_14_14_usable): Renamed from
14560         is_envjavac_gcj_14_14_usable.
14561         (is_envjavac_oldgcj_14_13_usable): Renamed from
14562         is_envjavac_gcj_14_13_usable.
14563         (is_gcj_present): Update.
14564         (is_gcj_43, is_gcj43_usable): New functions.
14565         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
14566         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
14567         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
14568         try the options -fsource and -ftarget.
14569
14570 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
14571
14572         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
14573         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
14574         larger value.
14575
14576 2007-02-03  Jim Meyering  <jim@meyering.net>
14577
14578         Give tools a better chance to allocate space for very large buffers.
14579         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
14580
14581         Make pwd and readlink work also when run with an unreadable parent dir
14582         on systems with openat support.
14583         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
14584         provided getcwd function, even when we have openat support.
14585         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
14586
14587 2007-02-02  Bruno Haible  <bruno@clisp.org>
14588
14589         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
14590         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
14591         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
14592         portability problems if one of these functions is only used on specific
14593         platforms.
14594         Reported by Paul Eggert.
14595
14596 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
14597
14598         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
14599         is causing more trouble than it's curing.
14600         * lib/regex_internal.h (__mempcpy): Remove.
14601         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
14602         (and make the code a tad smaller to boot).
14603         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
14604
14605 2007-02-02  Jim Meyering  <jim@meyering.net>
14606
14607         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
14608         section, not in the Makefile.am: one.
14609
14610 2007-02-02  Eric Blake  <ebb9@byu.net>
14611
14612         * lib/strchrnul.c: Always include config.h first.
14613
14614         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
14615         gnulib strstr is not necessary here.
14616
14617 2007-02-02  Simon Josefsson  <simon@josefsson.org>
14618
14619         * m4/socklen.m4: Fix typo.
14620
14621 2007-02-02  Eric Blake  <ebb9@byu.net>
14622
14623         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
14624         * modules/netinet_in (Makefile.am): Likewise.
14625
14626 2007-02-01  Bruno Haible  <bruno@clisp.org>
14627
14628         * lib/string_.h (GL_LINK_WARNING): New macro.
14629         (strcasecmp, strstr, strcasestr): If provided by the system,
14630         conditionally define as a macro that leads to a warning instead of to
14631         an error.
14632         (strncasecmp): Conditionally define as a macro that leads to a warning.
14633
14634 2007-02-01  Karl Berry  <karl@gnu.org>
14635
14636         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
14637
14638 2007-02-01  Bruno Haible  <bruno@clisp.org>
14639
14640         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
14641         renamings.
14642
14643 2007-02-01  Eric Blake  <ebb9@byu.net>
14644
14645         * modules/regex (Depends-on): Revert dependence on mempcpy.
14646         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
14647         module's definition of mempcpy.
14648         Reported by Paul Eggert.
14649
14650 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
14651
14652         * lib/string_.h: If the gnulib module XYZ is not present, undefine
14653         the symbol XYZ before redefining it.  This fixes a problem with
14654         programs that don't use XYZ, when compiled on systems that define
14655         XYZ to something else.
14656
14657 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
14658
14659         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
14660         occurs when "mkdir -m foo" creates a setgid directory that is (1)
14661         writeable to group or other and (2) is intended to have a special
14662         mode bit that is set or cleared.  In such a case, the directory
14663         should be neither group- nor other-writeable until the special
14664         mode bits are right.
14665
14666 2007-01-31  Eric Blake  <ebb9@byu.net>
14667
14668         * modules/mountlist (Depends-on): Add strstr.
14669
14670         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
14671         bug.
14672         * modules/string (Makefile.am): Remove redundant replacement.
14673         * modules/regex (Depends-on): Add mempcpy.
14674
14675 2007-01-31  Bruno Haible  <bruno@clisp.org>
14676
14677         New module description field 'Link'.
14678         * gnulib-tool (func_usage): Document --extract-link-directive.
14679         (sed_extract_prog): Recognize 'Link' directive.
14680         (func_get_link_directive): New function.
14681         (func_import): Show summary of link directives.
14682         Handle --extract-link-directive option.
14683         * modules/acl (Link): New section.
14684         * modules/clock-time (Link): New section.
14685         * modules/euidaccess (Link): New section.
14686         * modules/gettext (Link): New section.
14687         * modules/iconv (Link): New section.
14688         * modules/lock (Link): New section.
14689         * modules/nanosleep (Link): New section.
14690         * modules/readline (Link): New section.
14691
14692 2007-01-27  Bruno Haible  <bruno@clisp.org>
14693
14694         Enforce the use of gnulib modules for unportable <string.h> functions.
14695         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
14696         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
14697         (gl_HEADER_STRING_H_BODY): Require it.
14698         * lib/string_.h: If the gnulib module XYZ is not present, redefine
14699         the symbol XYZ to one that gives a link error.
14700         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
14701         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
14702         * modules/mempcpy (configure.ac): Likewise.
14703         * modules/memrchr (configure.ac): Likewise.
14704         * modules/stpcpy (configure.ac): Likewise.
14705         * modules/stpncpy (configure.ac): Likewise.
14706         * modules/strcase (configure.ac): Likewise.
14707         * modules/strcasestr (configure.ac): Likewise.
14708         * modules/strchrnul (configure.ac): Likewise.
14709         * modules/strdup (configure.ac): Likewise.
14710         * modules/strndup (configure.ac): Likewise.
14711         * modules/strnlen (configure.ac): Likewise.
14712         * modules/strpbrk (configure.ac): Likewise.
14713         * modules/strsep (configure.ac): Likewise.
14714         * modules/strstr (configure.ac): Likewise.
14715         * modules/strtok_r (configure.ac): Likewise.
14716
14717 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
14718
14719         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
14720
14721 2007-01-30  Jim Meyering  <jim@meyering.net>
14722
14723         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
14724
14725 2007-01-29  Bruno Haible  <bruno@clisp.org>
14726
14727         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
14728         * lib/execute.c: Likewise.
14729         * lib/pipe.c: Likewise.
14730         * lib/printf-args.h: Likewise.
14731         * lib/printf-args.c: Likewise.
14732         * lib/printf-parse.c: Likewise.
14733         * lib/vasnprintf.c: Likewise.
14734
14735 2007-01-29  Eric Blake  <ebb9@byu.net>
14736
14737         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
14738         declaration.
14739
14740 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
14741
14742         * lib/strptime.h (strptime): Use 'restrict' for args where
14743         POSIX requires this.
14744         * lib/strptime.c (strptime): Likewise.
14745         Change license notice from LGPL to GPL, since gnulib-tool will
14746         change this as needed.
14747         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
14748         defined.
14749         Include "strptime.h" first, to check interface.
14750         Do not #undef _LIBC and _NL_CURRENT.
14751         Do not include <stdlib.h>; no longer needed.
14752         Include "time_r.h" and declare ptime_locale_status
14753         only if _LIBC is not defined.
14754         (__P): Remove unused macro.
14755         (match_string): Bring back glibc version, but use it only if _LIBC
14756         is defined.
14757         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
14758         Remove unnecessary assertion and abort() call.
14759         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
14760         * m4/strptime.m4: Fix serial number comment.
14761         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
14762         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
14763         (Depends-on): Add time_r.
14764
14765 2007-01-29  Bruno Haible  <bruno@clisp.org>
14766
14767         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
14768         strptime.
14769         * modules/strptime (Depends-on): Add stdbool.
14770         * lib/strptime.h: Include <time.h> always. Add comments.
14771
14772 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
14773
14774         * modules/strptime: New file.
14775         * lib/strptime.h: New file.
14776         * lib/strptime.c: New file.
14777         * m4/strptime.m4: New file.
14778
14779 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14780
14781         * MODULES.html.sh: New module mpsort.
14782         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
14783
14784         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
14785         a circularity problem with HP-UX ia64 reported by Bob Proulx in
14786         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
14787         All uses changed.
14788         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
14789         All uses changed.
14790         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
14791         to _Restrict_.
14792         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
14793         the parameter matches the prototype.
14794
14795 2007-01-28  Jim Meyering  <jim@meyering.net>
14796
14797         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
14798         sys/time.h here, reverting that part of the previous patch:
14799         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
14800
14801 2007-01-28  Bruno Haible  <bruno@clisp.org>
14802
14803         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
14804         value of $(SYS_TIME_H).
14805         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
14806         remove it conditionally, too. [added by Jim Meyering]
14807         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
14808         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
14809         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
14810         GETTIMEOFDAY_REPLACEMENT to 1.
14811
14812 2007-01-28  Bruno Haible  <bruno@clisp.org>
14813
14814         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
14815         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
14816         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
14817         Set UNISTD_H instead of UNISTD_H2.
14818         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
14819
14820 2007-01-28  Bruno Haible  <bruno@clisp.org>
14821
14822         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
14823         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
14824
14825 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14826
14827         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
14828         (func_create_testdir): Ensure C locale for `grep' and `tr'
14829         character ranges.
14830         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
14831         ACLOCAL_AMFLAGS parsing state machine.
14832
14833 2007-01-27  Bruno Haible  <bruno@clisp.org>
14834
14835         * modules/unistr/base: Update.
14836
14837 2007-01-27  Bruno Haible  <bruno@clisp.org>
14838
14839         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
14840         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
14841         * modules/unistr/u32-mbtouc-unsafe: Renamed from
14842         modules/unistr/u32-mbtouc.
14843         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
14844         * lib/unistr.h: Update.
14845         * lib/linebreak.c: Update.
14846         * modules/unistr/u32-mbtouc: Renamed from
14847         modules/unistr/u32-mbtouc-safe.
14848         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
14849         * lib/unistr.h: Update.
14850         * lib/unistr/u32-to-u8.c: Update.
14851         * lib/unistr/u32-to-u16.c: Update.
14852
14853 2007-01-27  Bruno Haible  <bruno@clisp.org>
14854
14855         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
14856         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
14857         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
14858         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
14859         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
14860         * modules/unistr/u16-mbtouc-unsafe: Renamed from
14861         modules/unistr/u16-mbtouc.
14862         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
14863         * lib/unistr.h: Update.
14864         * lib/linebreak.c: Update.
14865         * modules/linebreak: Update.
14866         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
14867         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
14868         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
14869         * modules/unistr/u16-mbtouc: Renamed from
14870         modules/unistr/u16-mbtouc-safe.
14871         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
14872         * lib/unistr.h: Update.
14873         * lib/unistr/u16-to-u8.c: Update.
14874         * modules/unistr/u16-to-u8: Update.
14875         * lib/unistr/u16-to-u32.c: Update.
14876         * modules/unistr/u16-to-u32: Update.
14877
14878 2007-01-27  Bruno Haible  <bruno@clisp.org>
14879
14880         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
14881         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
14882         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
14883         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
14884         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
14885         * modules/unistr/u8-mbtouc-unsafe: Renamed from
14886         modules/unistr/u8-mbtouc.
14887         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
14888         * lib/unistr.h: Update.
14889         * lib/striconveh.c: Update.
14890         * modules/striconveh: Update.
14891         * lib/linebreak.c: Update.
14892         * modules/linebreak: Update.
14893         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
14894         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
14895         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
14896         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
14897         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
14898         * lib/unistr.h: Update.
14899         * lib/striconveh.c: Update.
14900         * modules/striconveh: Update.
14901         * lib/unistr/u8-to-u16.c: Update.
14902         * modules/unistr/u8-to-u16: Update.
14903         * lib/unistr/u8-to-u32.c: Update.
14904         * modules/unistr/u8-to-u32: Update.
14905
14906 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14907
14908         Sync from Libtool.
14909         * lib/argz.c: Do not include strings.h nor memory.h, include
14910         string.h unconditionally.  Patch by Simon Josefsson.
14911
14912 2007-01-27  Bruno Haible  <bruno@clisp.org>
14913
14914         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
14915         from gl_HEADER_STRING_H_BODY.
14916         (gl_HEADER_STRING_H_BODY): Require it.
14917         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
14918         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
14919         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
14920         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
14921         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14922         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
14923         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14924         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
14925         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
14926         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
14927         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
14928         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
14929         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
14930         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
14931         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
14932
14933 2007-01-27  Bruno Haible  <bruno@clisp.org>
14934
14935         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
14936         check_PROGRAMS into noinst_PROGRAMS.
14937         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
14938         check_PROGRAMS in this case.
14939         (func_import): Set for_test to false.
14940         (func_create_testdir): Set for_test to true.
14941
14942 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
14943             Bruno Haible  <bruno@clisp.org>
14944
14945         * modules/strcasestr (Files): Remove lib/strcasestr.h.
14946         (Depends-on): Add string.
14947         (Includes): Use <string.h> instead of strcasestr.h.
14948         * modules/string (Makefile.am): Also substitute the value of
14949         REPLACE_STRCASESTR.
14950         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
14951         assume strcasestr is declared in <string.h> not <strings.h>. Also
14952         set REPLACE_STRCASESTR.
14953         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
14954         REPLACE_STRCASESTR.
14955         * lib/strcasestr.h: Remove file.
14956         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
14957         * lib/string_.h (strcasestr): New declaration.
14958
14959 2007-01-27  Bruno Haible  <bruno@clisp.org>
14960
14961         * lib/string_.h: Use 'extern'.
14962
14963 2007-01-27  Jim Meyering  <jim@meyering.net>
14964
14965         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
14966         of set-but-not-used local, "q".
14967
14968         * lib/mempcpy.c: Include <config.h> before <string.h>.
14969         This fixes a compilation error on HP-UX, due to the system's
14970         "restrict"-using mempcpy prototype.
14971
14972 2007-01-26  Bruno Haible  <bruno@clisp.org>
14973
14974         Small optimization.
14975         * lib/javacomp.c: Include c-strstr.h.
14976          (is_envjavac_gcj): Use c_strstr instead of strstr.
14977         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
14978
14979 2007-01-26  Bruno Haible  <bruno@clisp.org>
14980
14981         * MODULES.html.sh (Unicode string functions): Add the new modules.
14982
14983         * modules/uniconv/u32-strconv-to-locale: New file.
14984         * lib/uniconv/u32-strconv-to-locale.c: New file.
14985
14986         * modules/uniconv/u16-strconv-to-locale: New file.
14987         * lib/uniconv/u16-strconv-to-locale.c: New file.
14988
14989         * modules/uniconv/u8-strconv-to-locale: New file.
14990         * lib/uniconv/u8-strconv-to-locale.c: New file.
14991
14992         * modules/uniconv/u32-strconv-from-locale: New file.
14993         * lib/uniconv/u32-strconv-from-locale.c: New file.
14994
14995         * modules/uniconv/u16-strconv-from-locale: New file.
14996         * lib/uniconv/u16-strconv-from-locale.c: New file.
14997
14998         * modules/uniconv/u8-strconv-from-locale: New file.
14999         * lib/uniconv/u8-strconv-from-locale.c: New file.
15000
15001         * modules/uniconv/u32-strconv-to-enc: New file.
15002         * lib/uniconv/u32-strconv-to-enc.c: New file.
15003         * modules/uniconv/u32-strconv-to-enc-tests: New file.
15004         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
15005
15006         * modules/uniconv/u16-strconv-to-enc: New file.
15007         * lib/uniconv/u16-strconv-to-enc.c: New file.
15008         * lib/uniconv/u-strconv-to-enc.h: New file.
15009         * modules/uniconv/u16-strconv-to-enc-tests: New file.
15010         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
15011
15012         * modules/uniconv/u8-strconv-to-enc: New file.
15013         * lib/uniconv/u8-strconv-to-enc.c: New file.
15014         * modules/uniconv/u8-strconv-to-enc-tests: New file.
15015         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
15016
15017         * modules/uniconv/u32-strconv-from-enc: New file.
15018         * lib/uniconv/u32-strconv-from-enc.c: New file.
15019         * modules/uniconv/u32-strconv-from-enc-tests: New file.
15020         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
15021
15022         * modules/uniconv/u16-strconv-from-enc: New file.
15023         * lib/uniconv/u16-strconv-from-enc.c: New file.
15024         * modules/uniconv/u16-strconv-from-enc-tests: New file.
15025         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
15026
15027         * modules/uniconv/u8-strconv-from-enc: New file.
15028         * lib/uniconv/u8-strconv-from-enc.c: New file.
15029         * lib/uniconv/u-strconv-from-enc.h: New file.
15030         * modules/uniconv/u8-strconv-from-enc-tests: New file.
15031         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
15032
15033         * modules/uniconv/u32-conv-from-enc: New file.
15034         * lib/uniconv/u32-conv-from-enc.c: New file.
15035         * modules/uniconv/u32-conv-from-enc-tests: New file.
15036         * tests/uniconv/test-u32-conv-from-enc.c: New file.
15037
15038         * modules/uniconv/u16-conv-from-enc: New file.
15039         * lib/uniconv/u16-conv-from-enc.c: New file.
15040         * lib/uniconv/u-conv-from-enc.h: New file.
15041         * modules/uniconv/u16-conv-from-enc-tests: New file.
15042         * tests/uniconv/test-u16-conv-from-enc.c: New file.
15043
15044         * modules/uniconv/u8-conv-from-enc: New file.
15045         * lib/uniconv/u8-conv-from-enc.c: New file.
15046         * modules/uniconv/u8-conv-from-enc-tests: New file.
15047         * tests/uniconv/test-u8-conv-from-enc.c: New file.
15048
15049         * modules/uniconv/base: New file.
15050         * lib/uniconv.h: New file.
15051
15052 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
15053
15054         * doc/gnulib-tool.texi (Initial import): Update to match current
15055         behavior with strdup module.
15056         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
15057         * lib/memmem.h: Remove; all uses removed.  This is now done
15058         by <string.h>.
15059         * lib/mempcpy.h: Likewise.
15060         * lib/memrchr.h: Likewise.
15061         * lib/stpcpy.h: Likewise.
15062         * lib/stpncpy.h: Likewise.
15063         * lib/strcase.h: Likewise.
15064         * lib/strchrnul.h: Likewise.
15065         * lib/strdup.h: Likewise.
15066         * lib/strndup.h: Likewise.
15067         * lib/strnlen.h: Likewise.
15068         * lib/strpbrk.h: Likewise.
15069         * lib/strsep.h: Likewise.
15070         * lib/strstr.h: Likewise.
15071         * lib/strtok_r.h: Likewise.
15072         * lib/string_.h: New file.
15073         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
15074         Rely on <string.h> instead.
15075         * lib/canon-host.c: Likewise.
15076         * lib/chdir-long.c: Likewise.
15077         * lib/concatpath.c: Likewise.
15078         * lib/exclude.c: Likewise.
15079         * lib/fchdir.c: Likewise.
15080         * lib/getaddrinfo.c: Likewise.
15081         * lib/getcwd.c: Likewise.
15082         * lib/getsubopt.c: Likewise.
15083         * lib/glob.c: Likewise.
15084         * lib/hard-locale.c: Likewise.
15085         * lib/iconvme.c: Likewise.
15086         * lib/javacomp.c: Likewise.
15087         * lib/mempcpy.c: Likewise.
15088         * lib/memrchr.c: Likewise.
15089         * lib/regex_internal.h: Likewise.
15090         * lib/stpncpy.c: Likewise.
15091         * lib/strcasecmp.c: Likewise.
15092         * lib/strchrnul.c: Likewise.
15093         * lib/strdup.c: Likewise.
15094         * lib/striconv.c: Likewise.
15095         * lib/striconveh.c: Likewise.
15096         * lib/striconveha.c: Likewise.
15097         * lib/strncasecmp.c: Likewise.
15098         * lib/strndup.c: Likewise.
15099         * lib/strnlen.c: Likewise.
15100         * lib/strsep.c: Likewise.
15101         * lib/strstr.c: Likewise.
15102         * lib/strtok_r.c: Likewise.
15103         * lib/userspec.c: Likewise.
15104         * lib/w32spawn.h: Likewise.
15105         * lib/xstrndup.c: Likewise.
15106         * lib/mountlist.c (strstr): Remove decl.
15107         * m4/string_h.m4: New file.
15108         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
15109         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
15110         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
15111         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
15112         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
15113         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
15114         Set REPLACE_STRCASECMP if necessary.
15115         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
15116         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
15117         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
15118         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
15119         HAVE_DECL_STRDUP if necessary.
15120         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
15121         since gl_FUNC_STRNDUP does that now.
15122         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
15123         Check for decl here...
15124         (gl_PREREQ_STRNLEN): ... not here.
15125         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
15126         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
15127         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
15128         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
15129         necessary.
15130         * modules/string: New file.
15131         * modules/memmem (Files): Remove special-purpose include file.
15132         (Depends-on): Add string.
15133         (Include): Include <string.h>, not the removed file.
15134         * modules/mempcpy: Likewise.
15135         * modules/memrchr: Likewise.
15136         * modules/stpcpy: Likewise.
15137         * modules/stpncpy: Likewise.
15138         * modules/strcase: Likewise.
15139         * modules/strchrnul: Likewise.
15140         * modules/strdup: Likewise.
15141         * modules/strndup: Likewise.
15142         * modules/strnlen: Likewise.
15143         * modules/strpbrk: Likewise.
15144         * modules/strsep: Likewise.
15145         * modules/strstr: Likewise.
15146         * modules/strtok_r: Likewise.
15147         * tests/test-dirname.c: Don't include "strdup.h", since
15148         <string.h> now suffices.
15149         * tests/test-memmem.c: Don't include "memmem.h", since
15150         <string.h> now suffices.
15151
15152 2007-01-25  Bruno Haible  <bruno@clisp.org>
15153
15154         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
15155         *resultp is 0.
15156
15157         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
15158         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
15159         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
15160         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
15161
15162         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
15163         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
15164         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
15165         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
15166         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
15167         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
15168
15169 2007-01-24  Bruno Haible  <bruno@clisp.org>
15170
15171         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
15172         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
15173         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
15174         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
15175         gl_FUNC_FTS_CORE.
15176         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
15177         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
15178         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
15179         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
15180         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
15181         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
15182         gl_FUNC_FCHOWNAT.
15183         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
15184         gl_FUNC_STRFTIME.
15185         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
15186         Reported by Ralf Wildenhues.
15187
15188 2007-01-24  Bruno Haible  <bruno@clisp.org>
15189
15190         Drop AC_REQUIRE calls that are redundant with the module dependencies.
15191         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
15192         gl_GETADDRINFO.
15193         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
15194         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
15195         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
15196
15197 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
15198
15199         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
15200         Don't use 'exit'; just return from 'main'.
15201         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
15202
15203         * lib/fnmatch_.h: Readjust white space and comments to match
15204         glibc, to avoid spurious diffs.
15205
15206 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15207
15208         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
15209         2004-12-01 change by Jakub Jelinek, since this code won't compile
15210         if !LIBC.  Problem reported by Bob Proulx.
15211
15212 2007-01-23  Bruno Haible  <bruno@clisp.org>
15213
15214         * lib/striconveh.c: Include c-strcaseeq.h.
15215         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
15216         * modules/striconveh (Depends-on): Add c-strcaseeq.
15217
15218 2007-01-23  Bruno Haible  <bruno@clisp.org>
15219
15220         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
15221
15222         * modules/c-strcaseeq: New file.
15223         * lib/c-strcaseeq.h: New file.
15224
15225         * modules/streq: New file.
15226         * lib/streq.h: New file.
15227
15228 2007-01-23  Bruno Haible  <bruno@clisp.org>
15229
15230         * modules/striconveha-tests: New file.
15231         * tests/test-striconveha.c: New file.
15232
15233         * lib/striconveha.h: Include <stdbool.h>.
15234         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
15235         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
15236         (mem_iconveha_notranslit): Renamed from mem_iconveha.
15237         (mem_iconveha): New function.
15238         (str_iconveha_notranslit): Renamed from str_iconveha.
15239         (str_iconveha): New function.
15240         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
15241         c-strcase.
15242
15243 2007-01-23  Bruno Haible  <bruno@clisp.org>
15244
15245         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
15246         encodings without forgiving before trying any encoding with handler.
15247         (str_iconveha): Try all encodings without forgiving before trying any
15248         encoding with handler.
15249
15250 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15251
15252         Import the following changes from libc.
15253
15254         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
15255
15256         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
15257
15258         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
15259
15260         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
15261         normal_bracket label.
15262
15263         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
15264
15265         [BZ #361]
15266         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
15267         to normal_bracket after fetching the next character.
15268
15269 2007-01-22  Bruno Haible  <bruno@clisp.org>
15270
15271         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
15272         argument.
15273         * lib/striconveh.c (iconv_carefully_1): New function.
15274         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
15275         argument.
15276         (str_cd_iconveh): Update.
15277         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
15278         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
15279         * tests/test-striconveh.c (MAGIC): New macro.
15280         (new_offsets): New function.
15281         (main): Test call with and without offsets.
15282
15283 2007-01-22  Bruno Haible  <bruno@clisp.org>
15284
15285         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
15286         * modules/sys_select (Makefile.am): Likewise.
15287         * modules/sys_socket (Makefile.am): Likewise.
15288         * modules/sys_time (Makefile.am): Likewise.
15289
15290 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
15291
15292         * modules/gettimeofday (License): Change from GPL to LGPL, since
15293         gettimeofday is a library function.
15294
15295 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15296
15297         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
15298
15299 2007-01-21  Bruno Haible  <bruno@clisp.org>
15300
15301         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
15302
15303 2007-01-21  Bruno Haible  <bruno@clisp.org>
15304
15305         * modules/striconveha: New file.
15306         * lib/striconveha.h: New file.
15307         * lib/striconveha.c: New file.
15308         * MODULES.html.sh (Internationalization functions): Add striconveha.
15309         * lib/striconv.c (str_iconv): Optimize the case of an empty input
15310         string.
15311         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
15312
15313 2007-01-21  Bruno Haible  <bruno@clisp.org>
15314
15315         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
15316         * lib/striconveh.c (str_iconveh): Likewise.
15317
15318 2007-01-21  Bruno Haible  <bruno@clisp.org>
15319
15320         * lib/striconveh.h (mem_iconveh): New declaration.
15321         * lib/striconveh.c (mem_iconveh): New function.
15322         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
15323
15324 2007-01-21  Bruno Haible  <bruno@clisp.org>
15325
15326         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
15327
15328         * lib/striconveh.h (mem_cd_iconveh): Change specification.
15329         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
15330         original result buffer.
15331         (str_cd_iconveh): Update.
15332         * tests/test-striconveh.c (main): Update.
15333
15334         * lib/striconv.h (mem_cd_iconv): Change specification.
15335         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
15336         result buffer.
15337         (str_cd_iconv): Update.
15338         * tests/test-striconv.c (main): Update.
15339
15340 2007-01-21  Bruno Haible  <bruno@clisp.org>
15341
15342         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
15343
15344 2007-01-20  Jim Meyering  <jim@meyering.net>
15345
15346         * lib/userspec.c (parse_with_separator): If a user or group string
15347         starts with "+", skip the corresponding name-to-ID look-up, since
15348         such a look-up must fail: user and group names may not include "+".
15349
15350 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15351
15352         * lib/poll.c: Include sys/time.h and time.h unconditionally,
15353         since we now assume the sys_time module.
15354         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
15355         check for sys/time.h; no longer needed.
15356         * modules/poll (Depends-on): Depend on sys_time.
15357
15358 2007-01-18  Bruno Haible  <bruno@clisp.org>
15359
15360         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
15361         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
15362
15363         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
15364         gettimeofday.
15365
15366         * tests/test-gettimeofday.c: Include <time.h>.
15367         (dummy): Remove variable.
15368
15369         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
15370         gl_HEADER_SYS_TIME_H.
15371         (gl_HEADER_SYS_TIME_H): New macro.
15372
15373         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
15374         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15375         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
15376         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
15377         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15378         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
15379         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
15380         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15381         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
15382         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
15383         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15384
15385         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
15386         last change; it caused a compilation error when cross-compiling to
15387         Cygwin.
15388
15389 2007-01-18  Jim Meyering  <jim@meyering.net>
15390
15391         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
15392         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
15393         than the race-prone "test -d sys || mkdir sys".
15394         (configure.ac): Use AC_PROG_MKDIR_P.
15395         * modules/sys_select: Likewise.
15396         * modules/sys_socket: Likewise.
15397         * modules/sys_time: Likewise.
15398
15399 2007-01-18  Eric Blake  <ebb9@byu.net>
15400
15401         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
15402         replace gettimeofday.
15403         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
15404         name, to avoid infinite recursion.
15405
15406 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
15407
15408         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
15409         module sys_time.
15410         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
15411         assume timespec.h defines struct timeval.
15412         * lib/settime.c: Likewise.
15413         * lib/utimens.c: Likewise.
15414         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
15415         since we now assume the gettimeofday module.
15416         * lib/tempname.c (__gen_tempname): Likewise.
15417         * lib/gettimeofday.h: Remove.
15418         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
15419         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
15420         Include <time.h>, for 'time()'.
15421         (localtime_buffer_addr): Also use this workaround if
15422         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
15423         to simplify the uses.  All uses changed.
15424         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
15425         that #undef is inside {}, and 'const' follows type name consistently.
15426         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
15427         (gettimeofday): Do not use the maximum possible value for
15428         tv->tv_usec, since that might break usages other than ls.c.
15429         Instead, we'll leave ls.c alone.  This undoes today's patch
15430         by Bruno.  Add a compile-time warning for 1s-clock resolution;
15431         we've never observed the problem but might as well keep the
15432         canary.
15433         * lib/nanosleep.c: Include timespec.h first, for interface check.
15434         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
15435         now assume the sys_time module.
15436         * lib/tempname.c: Likewise.
15437         * lib/timespec.h: Likewise.
15438         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
15439         needed.
15440         * lib/strftime.c: Likewise.
15441         * lib/timespec.h: Likewise.
15442         * lib/posixtm.c: Include posixtm.h first, for interface check.
15443         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
15444         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
15445         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
15446         * lib/sys_time_.h: New file.
15447         * lib/timespec.h (struct timespec): Use long int, not long.
15448         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
15449         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
15450         Remove obsolescent call to AC_HEADER_TIME.
15451         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15452         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15453         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
15454         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
15455         Likewise.
15456         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
15457         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
15458         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
15459         into the sys_time module.  Check for gettimeofday just once.
15460         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
15461         for gettimeofday signature to just check the signature.  Merely
15462         compile it, since linking doesn't test signature.  Improve test for
15463         whether gettimeofday.o is actually needed.
15464         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
15465         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
15466         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
15467         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15468         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
15469         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
15470         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
15471         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
15472         than worrying about sys/time.h.
15473         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
15474         Don't bother worrying about TIME_WITH_SYS_TIME.
15475         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
15476         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
15477         * m4/sys_time_h.m4: New file.
15478         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
15479         Don't include sys/time.h.  Return from main rather than exiting.
15480         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
15481         all uses changed.
15482         * modules/gethrxtime (Depends-on): Add sys_time.
15483         * modules/gettime (Depends-on): Likewise.
15484         * modules/gettimeofday (Depends-on): Likewise.
15485         * modules/nanosleep (Depends-on): Likewise.
15486         * modules/settime (Depends-on): Likewise.
15487         * modules/tempname (Depends-on): Likewise.
15488         * modules/utimens (Depends-on): Likewise.
15489         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
15490         (Include:) Change back to <sys/time.h>.
15491         (Maintainer:) Add self.
15492         * modules/sys_time: New file.
15493         * modules/tempname (Depends-on): Add gettimeofday.
15494         * tests/test-gettimeofday.c: Include <sys/time.h>
15495         rather than gettimeofday.h.
15496
15497 2007-01-17  Bruno Haible  <bruno@clisp.org>
15498
15499         * gnulib-tool (func_get_license): Revert last patch. Instead, let
15500         the license default to GPL.
15501         (func_create_testdir): Don't complain if a module is LGPL and its
15502         tests module depends on GPLed modules.
15503
15504 2007-01-17  Bruno Haible  <bruno@clisp.org>
15505
15506         * lib/gettimeofday.c (gettimeofday): Add code for the case
15507         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
15508         maximum possible value for tv->tv_usec, rather than the minimum one.
15509
15510 2005-10-08  Martin Lambers  <marlam@marlam.de>
15511 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15512 2007-01-16  Bruno Haible  <bruno@clisp.org>
15513
15514         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
15515         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
15516         gl_FUNC_GETTIMEOFDAY.
15517         (Include): Add gettimeofday.h.
15518         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
15519         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
15520         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
15521         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
15522         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
15523         * lib/gettimeofday.h: New file.
15524         * lib/gettimeofday.c: Include <sys/timeb.h>.
15525         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
15526         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15527         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
15528         fall back on time().
15529
15530         * tests/test-gettimeofday.c: New file.
15531         * modules/gettimeofday-tests: New file.
15532
15533 2007-01-16  Eric Blake  <ebb9@byu.net>
15534
15535         * modules/fnmatch (Depends-on): Depend on wchar.
15536         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
15537         * m4/fnmatch.m4: Likewise.
15538         * modules/mbchar (Makefile.am): Assume <wchar.h>.
15539         * m4/mbchar.m4: Likewise.
15540         * modules/mbswidth (Depends-on): Depend on wchar.
15541         * lib/mbswidth.c: Assume <wchar.h>.
15542         * m4/mbswidth.m4: Likewise.
15543         * modules/quotearg (Depends-on): Depend on wchar.
15544         * lib/quotearg.c: Assume <wchar.h>.
15545         * m4/quotearg.m4: Likewise.
15546         * modules/regex (Depends-on): Depend on wchar.
15547         * lib/regex_internal.h: Assume <wchar.h>.
15548         * m4/regex.m4: Likewise.
15549         * modules/stdint (Depends-on): Depend on wchar.
15550         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
15551         * m4/stdint.m4: Likewise.
15552         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
15553         * modules/strftime (Depends-on): Depend on wchar.
15554         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
15555         * modules/strtol (Depends-on): Depend on wchar.
15556         * lib/strtol.c: Assume <wchar.h>.
15557         * modules/wcwidth (Depends-on): Depend on wchar.
15558         * lib/wcwidth.h: Assume <wchar.h>.
15559         * m4/wcwidth.m4: Likewise.
15560
15561 2007-01-16  Bruno Haible  <bruno@clisp.org>
15562
15563         * modules/csharpexec-script: New, created from...
15564         * modules/csharpexec: ... this.
15565
15566 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
15567
15568         * modules/javaexec-script: New, created from...
15569         * modules/javaexec: ... this.
15570
15571 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15572
15573         * modules/poll (Dependencies): Add sys_select.
15574
15575 2007-01-15  Jim Meyering  <jim@meyering.net>
15576
15577         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
15578         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
15579         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
15580         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
15581
15582 2007-01-15  Bruno Haible  <bruno@clisp.org>
15583
15584         * modules/striconveh: New file.
15585         * lib/striconveh.h: New file.
15586         * lib/striconveh.c: New file.
15587         * MODULES.html.sh (Internationalization functions): Add striconveh.
15588
15589         * modules/striconveh-tests: New file.
15590         * tests/test-striconveh.c: New file.
15591
15592 2007-01-15  Bruno Haible  <bruno@clisp.org>
15593
15594         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
15595         not from GNU libiconv or GNU libc.
15596
15597 2007-01-15  Bruno Haible  <bruno@clisp.org>
15598
15599         * doc/gnulib-intro.texi (Copyright): Explain the different license
15600         terms for module descriptions, autoconf macros, tests, documentation.
15601
15602 2007-01-14  Bruno Haible  <bruno@clisp.org>
15603
15604         * modules/striconv-tests: New file.
15605         * tests/test-striconv.c: New file.
15606
15607 2007-01-14  Bruno Haible  <bruno@clisp.org>
15608
15609         * modules/iconv-tests: New file.
15610         * tests/test-iconv.c: New file.
15611
15612 2007-01-14  Bruno Haible  <bruno@clisp.org>
15613
15614         * gnulib-tool (func_get_license): For test modules, use the license of
15615         the main module.
15616
15617 2007-01-14  Bruno Haible  <bruno@clisp.org>
15618
15619         * modules/iconv (Include): Clarify that <iconv.h> can only be included
15620         if iconv is found to exist.
15621
15622 2007-01-14  Bruno Haible  <bruno@clisp.org>
15623
15624         * modules/c-ctype-tests: New file.
15625         * tests/test-c-ctype.c: New file.
15626
15627 2007-01-14  Bruno Haible  <bruno@clisp.org>
15628
15629         * modules/binary-io-tests: New file.
15630         * tests/test-binary-io.sh: New file.
15631         * tests/test-binary-io.c: New file.
15632
15633 2007-01-14  Bruno Haible  <bruno@clisp.org>
15634
15635         * modules/array-oset-tests: New file.
15636         * tests/test-array_oset.c: New file.
15637
15638 2007-01-14  Bruno Haible  <bruno@clisp.org>
15639
15640         * modules/array-list-tests: New file.
15641         * tests/test-array_list.c: New file.
15642
15643 2007-01-14  Bruno Haible  <bruno@clisp.org>
15644
15645         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
15646         and make.
15647         Reported by Simon Josefsson in
15648         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
15649
15650 2007-01-14  Bruno Haible  <bruno@clisp.org>
15651
15652         * modules/allocsa-tests: New file.
15653         * tests/test-allocsa.c: New file.
15654
15655 2007-01-14  Bruno Haible  <bruno@clisp.org>
15656
15657         * modules/fchdir (Depends-on): Add absolute-header.
15658         * modules/unistd (Depends-on): Likewise.
15659
15660 2006-12-30  Bruno Haible  <bruno@clisp.org>
15661
15662         * modules/fchdir: New file.
15663         * modules/unistd (Files): Add lib/unistd_.h.
15664         (Makefile.am): Generate unistd.h from unistd_.h.
15665         * lib/fchdir.c: New file.
15666         * lib/dirent_.h: New file.
15667         * lib/unistd_.h: New file.
15668         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
15669         * m4/fchdir.m4: New file.
15670         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
15671         (gl_HEADER_UNISTD): Invoke it.
15672         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
15673         function.
15674         * lib/backupfile.c (opendir, closedir): Undefine.
15675         * lib/chown.c (open, close): Undefine.
15676         * lib/clean-temp.c (open, close): Undefine.
15677         * lib/copy-file.c (open, close): Undefine.
15678         * lib/execute.c (open, close): Undefine.
15679         * lib/fsusage.c (open, close): Undefine.
15680         * lib/gc-gnulib.c (open, close): Undefine.
15681         * lib/getcwd.c (opendir, closedir): Undefine.
15682         * lib/glob.c (opendir, closedir): Undefine.
15683         * lib/javacomp.c (open, close): Undefine.
15684         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
15685         * lib/openat-proc.c (open, close): Undefine.
15686         * lib/pagealign_alloc.c (open, close): Undefine.
15687         * lib/pipe.c (open, close): Undefine.
15688         * lib/progreloc.c (open, close): Undefine.
15689         * lib/savedir.c (opendir, closedir): Undefine.
15690         * lib/utime.c (open, close): Undefine.
15691         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
15692
15693 2007-01-10  Bruno Haible  <bruno@clisp.org>
15694
15695         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
15696
15697 2007-01-12  Eric Blake  <ebb9@byu.net>
15698
15699         Provide a robust <wchar.h>.  Further simplifications are now
15700         possible in other modules, but not included here.
15701         * modules/wchar: New module.
15702         * m4/wchar.m4: New file.
15703         * lib/wchar_.h: Likewise.
15704         * modules/mbchar (Depends-on): Depend on wchar, as the first use
15705         of the new module.
15706         * MODULES.html.sh (Extended multibyte and wide character utilities):
15707         New section.
15708
15709 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
15710
15711         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
15712         to a reasonable default for memory allocation.
15713         (xreadlink): Don't allocate a huge buffer, to work around a buggy
15714         file system that reports garbage st_size values for symlinks.
15715         Problem reported by Liyang Hu.
15716
15717 2007-01-11  Simon Josefsson  <simon@josefsson.org>
15718
15719         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
15720         Emacs .#* auto-save files).
15721
15722 2007-01-11  Bruno Haible  <bruno@clisp.org>
15723
15724         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
15725         directory.
15726
15727 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
15728
15729         Use @...@ consistently in lib/wctype_.h.
15730         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
15731         on it being set to 1 or 0.
15732         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
15733         go back to AC_SUBSTing it.
15734         * modules/wctype (Makefile.am): Undo previous change.
15735
15736 2007-01-10  Eric Blake  <ebb9@byu.net>
15737
15738         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
15739         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
15740         * modules/wctype (Makefile.am): Likewise.
15741         Reported by Chris McGuire.
15742
15743 2007-01-10  Jim Meyering  <jim@meyering.net>
15744
15745         fts.c: a small readability/maintainability improvement
15746         * lib/fts.c (fts_read): Make this code slightly more readable and
15747         maintainable by hoisting the "sp->fts_cur = p" assignments to
15748         immediately follow the statements that set P.  Derived from
15749         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
15750
15751 2007-01-10  Eric Blake  <ebb9@byu.net>
15752
15753         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
15754         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
15755         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15756         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
15757         Reported by Chris McGuire.
15758
15759 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15760
15761         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
15762         in sed script.
15763
15764 2007-01-09  Bruno Haible  <bruno@clisp.org>
15765
15766         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
15767         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
15768         variables.
15769         (func_module): Use them.
15770
15771 2007-01-09  Bruno Haible  <bruno@clisp.org>
15772
15773         * modules/unistr/base: New file.
15774         * lib/unistr.h: New file.
15775
15776         * modules/unistr/u8-to-u16: New file.
15777         * lib/unistr/u8-to-u16.c: New file.
15778
15779         * modules/unistr/u8-to-u32: New file.
15780         * lib/unistr/u8-to-u32.c: New file.
15781
15782         * modules/unistr/u16-to-u8: New file.
15783         * lib/unistr/u16-to-u8.c: New file.
15784
15785         * modules/unistr/u16-to-u32: New file.
15786         * lib/unistr/u16-to-u32.c: New file.
15787
15788         * modules/unistr/u32-to-u8: New file.
15789         * lib/unistr/u32-to-u8.c: New file.
15790
15791         * modules/unistr/u32-to-u16: New file.
15792         * lib/unistr/u32-to-u16.c: New file.
15793
15794         * modules/unistr/u8-check: New file.
15795         * modules/unistr/u16-check: New file.
15796         * modules/unistr/u32-check: New file.
15797         * lib/unistr/u8-check.c: New file.
15798         * lib/unistr/u16-check.c: New file.
15799         * lib/unistr/u32-check.c: New file.
15800
15801         * modules/unistr/u8-chr: New file.
15802         * modules/unistr/u16-chr: New file.
15803         * modules/unistr/u32-chr: New file.
15804         * lib/unistr/u8-chr.c: New file.
15805         * lib/unistr/u16-chr.c: New file.
15806         * lib/unistr/u32-chr.c: New file.
15807
15808         * modules/unistr/u8-cmp: New file.
15809         * modules/unistr/u16-cmp: New file.
15810         * modules/unistr/u32-cmp: New file.
15811         * lib/unistr/u8-cmp.c: New file.
15812         * lib/unistr/u16-cmp.c: New file.
15813         * lib/unistr/u32-cmp.c: New file.
15814
15815         * modules/unistr/u8-cpy: New file.
15816         * modules/unistr/u16-cpy: New file.
15817         * modules/unistr/u32-cpy: New file.
15818         * lib/unistr/u8-cpy.c: New file.
15819         * lib/unistr/u16-cpy.c: New file.
15820         * lib/unistr/u32-cpy.c: New file.
15821         * lib/unistr/u-cpy.h: New file.
15822
15823         * modules/unistr/u8-cpy-alloc: New file.
15824         * modules/unistr/u16-cpy-alloc: New file.
15825         * modules/unistr/u32-cpy-alloc: New file.
15826         * lib/unistr/u8-cpy-alloc.c: New file.
15827         * lib/unistr/u16-cpy-alloc.c: New file.
15828         * lib/unistr/u32-cpy-alloc.c: New file.
15829         * lib/unistr/u-cpy-alloc.h: New file.
15830
15831         * modules/unistr/u8-endswith: New file.
15832         * modules/unistr/u16-endswith: New file.
15833         * modules/unistr/u32-endswith: New file.
15834         * lib/unistr/u8-endswith.c: New file.
15835         * lib/unistr/u16-endswith.c: New file.
15836         * lib/unistr/u32-endswith.c: New file.
15837         * lib/unistr/u-endswith.h: New file.
15838
15839         * modules/unistr/u8-mblen: New file.
15840         * modules/unistr/u16-mblen: New file.
15841         * modules/unistr/u32-mblen: New file.
15842         * lib/unistr/u8-mblen.c: New file.
15843         * lib/unistr/u16-mblen.c: New file.
15844         * lib/unistr/u32-mblen.c: New file.
15845
15846         * modules/unistr/u8-mbtouc: New file.
15847         * modules/unistr/u16-mbtouc: New file.
15848         * modules/unistr/u32-mbtouc: New file.
15849         * lib/unistr/u8-mbtouc.c: New file.
15850         * lib/unistr/u16-mbtouc.c: New file.
15851         * lib/unistr/u32-mbtouc.c: New file.
15852
15853         * modules/unistr/u8-mbtouc-safe: New file.
15854         * modules/unistr/u16-mbtouc-safe: New file.
15855         * modules/unistr/u32-mbtouc-safe: New file.
15856         * lib/unistr/u8-mbtouc-safe.c: New file.
15857         * lib/unistr/u16-mbtouc-safe.c: New file.
15858         * lib/unistr/u32-mbtouc-safe.c: New file.
15859
15860         * modules/unistr/u8-move: New file.
15861         * modules/unistr/u16-move: New file.
15862         * modules/unistr/u32-move: New file.
15863         * lib/unistr/u8-move.c: New file.
15864         * lib/unistr/u16-move.c: New file.
15865         * lib/unistr/u32-move.c: New file.
15866         * lib/unistr/u-move.h: New file.
15867
15868         * modules/unistr/u8-next: New file.
15869         * modules/unistr/u16-next: New file.
15870         * modules/unistr/u32-next: New file.
15871         * lib/unistr/u8-next.c: New file.
15872         * lib/unistr/u16-next.c: New file.
15873         * lib/unistr/u32-next.c: New file.
15874
15875         * modules/unistr/u8-prev: New file.
15876         * modules/unistr/u16-prev: New file.
15877         * modules/unistr/u32-prev: New file.
15878         * lib/unistr/u8-prev.c: New file.
15879         * lib/unistr/u16-prev.c: New file.
15880         * lib/unistr/u32-prev.c: New file.
15881
15882         * modules/unistr/u8-set: New file.
15883         * modules/unistr/u16-set: New file.
15884         * modules/unistr/u32-set: New file.
15885         * lib/unistr/u8-set.c: New file.
15886         * lib/unistr/u16-set.c: New file.
15887         * lib/unistr/u32-set.c: New file.
15888         * lib/unistr/u-set.h: New file.
15889
15890         * modules/unistr/u8-startswith: New file.
15891         * modules/unistr/u16-startswith: New file.
15892         * modules/unistr/u32-startswith: New file.
15893         * lib/unistr/u8-startswith.c: New file.
15894         * lib/unistr/u16-startswith.c: New file.
15895         * lib/unistr/u32-startswith.c: New file.
15896         * lib/unistr/u-startswith.h: New file.
15897
15898         * modules/unistr/u8-stpcpy: New file.
15899         * modules/unistr/u16-stpcpy: New file.
15900         * modules/unistr/u32-stpcpy: New file.
15901         * lib/unistr/u8-stpcpy.c: New file.
15902         * lib/unistr/u16-stpcpy.c: New file.
15903         * lib/unistr/u32-stpcpy.c: New file.
15904         * lib/unistr/u-stpcpy.h: New file.
15905
15906         * modules/unistr/u8-stpncpy: New file.
15907         * modules/unistr/u16-stpncpy: New file.
15908         * modules/unistr/u32-stpncpy: New file.
15909         * lib/unistr/u8-stpncpy.c: New file.
15910         * lib/unistr/u16-stpncpy.c: New file.
15911         * lib/unistr/u32-stpncpy.c: New file.
15912         * lib/unistr/u-stpncpy.h: New file.
15913
15914         * modules/unistr/u8-strcat: New file.
15915         * modules/unistr/u16-strcat: New file.
15916         * modules/unistr/u32-strcat: New file.
15917         * lib/unistr/u8-strcat.c: New file.
15918         * lib/unistr/u16-strcat.c: New file.
15919         * lib/unistr/u32-strcat.c: New file.
15920         * lib/unistr/u-strcat.h: New file.
15921
15922         * modules/unistr/u8-strchr: New file.
15923         * modules/unistr/u16-strchr: New file.
15924         * modules/unistr/u32-strchr: New file.
15925         * lib/unistr/u8-strchr.c: New file.
15926         * lib/unistr/u16-strchr.c: New file.
15927         * lib/unistr/u32-strchr.c: New file.
15928
15929         * modules/unistr/u8-strcmp: New file.
15930         * modules/unistr/u16-strcmp: New file.
15931         * modules/unistr/u32-strcmp: New file.
15932         * lib/unistr/u8-strcmp.c: New file.
15933         * lib/unistr/u16-strcmp.c: New file.
15934         * lib/unistr/u32-strcmp.c: New file.
15935
15936         * modules/unistr/u8-strcpy: New file.
15937         * modules/unistr/u16-strcpy: New file.
15938         * modules/unistr/u32-strcpy: New file.
15939         * lib/unistr/u8-strcpy.c: New file.
15940         * lib/unistr/u16-strcpy.c: New file.
15941         * lib/unistr/u32-strcpy.c: New file.
15942         * lib/unistr/u-strcpy.h: New file.
15943
15944         * modules/unistr/u8-strcspn: New file.
15945         * modules/unistr/u16-strcspn: New file.
15946         * modules/unistr/u32-strcspn: New file.
15947         * lib/unistr/u8-strcspn.c: New file.
15948         * lib/unistr/u16-strcspn.c: New file.
15949         * lib/unistr/u32-strcspn.c: New file.
15950         * lib/unistr/u-strcspn.h: New file.
15951
15952         * modules/unistr/u8-strdup: New file.
15953         * modules/unistr/u16-strdup: New file.
15954         * modules/unistr/u32-strdup: New file.
15955         * lib/unistr/u8-strdup.c: New file.
15956         * lib/unistr/u16-strdup.c: New file.
15957         * lib/unistr/u32-strdup.c: New file.
15958         * lib/unistr/u-strdup.h: New file.
15959
15960         * modules/unistr/u8-strlen: New file.
15961         * modules/unistr/u16-strlen: New file.
15962         * modules/unistr/u32-strlen: New file.
15963         * lib/unistr/u8-strlen.c: New file.
15964         * lib/unistr/u16-strlen.c: New file.
15965         * lib/unistr/u32-strlen.c: New file.
15966         * lib/unistr/u-strlen.h: New file.
15967
15968         * modules/unistr/u8-strmblen: New file.
15969         * modules/unistr/u16-strmblen: New file.
15970         * modules/unistr/u32-strmblen: New file.
15971         * lib/unistr/u8-strmblen.c: New file.
15972         * lib/unistr/u16-strmblen.c: New file.
15973         * lib/unistr/u32-strmblen.c: New file.
15974
15975         * modules/unistr/u8-strmbtouc: New file.
15976         * modules/unistr/u16-strmbtouc: New file.
15977         * modules/unistr/u32-strmbtouc: New file.
15978         * lib/unistr/u8-strmbtouc.c: New file.
15979         * lib/unistr/u16-strmbtouc.c: New file.
15980         * lib/unistr/u32-strmbtouc.c: New file.
15981
15982         * modules/unistr/u8-strncat: New file.
15983         * modules/unistr/u16-strncat: New file.
15984         * modules/unistr/u32-strncat: New file.
15985         * lib/unistr/u8-strncat.c: New file.
15986         * lib/unistr/u16-strncat.c: New file.
15987         * lib/unistr/u32-strncat.c: New file.
15988         * lib/unistr/u-strncat.h: New file.
15989
15990         * modules/unistr/u8-strncmp: New file.
15991         * modules/unistr/u16-strncmp: New file.
15992         * modules/unistr/u32-strncmp: New file.
15993         * lib/unistr/u8-strncmp.c: New file.
15994         * lib/unistr/u16-strncmp.c: New file.
15995         * lib/unistr/u32-strncmp.c: New file.
15996
15997         * modules/unistr/u8-strncpy: New file.
15998         * modules/unistr/u16-strncpy: New file.
15999         * modules/unistr/u32-strncpy: New file.
16000         * lib/unistr/u8-strncpy.c: New file.
16001         * lib/unistr/u16-strncpy.c: New file.
16002         * lib/unistr/u32-strncpy.c: New file.
16003         * lib/unistr/u-strncpy.h: New file.
16004
16005         * modules/unistr/u8-strnlen: New file.
16006         * modules/unistr/u16-strnlen: New file.
16007         * modules/unistr/u32-strnlen: New file.
16008         * lib/unistr/u8-strnlen.c: New file.
16009         * lib/unistr/u16-strnlen.c: New file.
16010         * lib/unistr/u32-strnlen.c: New file.
16011         * lib/unistr/u-strnlen.h: New file.
16012
16013         * modules/unistr/u8-strpbrk: New file.
16014         * modules/unistr/u16-strpbrk: New file.
16015         * modules/unistr/u32-strpbrk: New file.
16016         * lib/unistr/u8-strpbrk.c: New file.
16017         * lib/unistr/u16-strpbrk.c: New file.
16018         * lib/unistr/u32-strpbrk.c: New file.
16019         * lib/unistr/u-strpbrk.h: New file.
16020
16021         * modules/unistr/u8-strrchr: New file.
16022         * modules/unistr/u16-strrchr: New file.
16023         * modules/unistr/u32-strrchr: New file.
16024         * lib/unistr/u8-strrchr.c: New file.
16025         * lib/unistr/u16-strrchr.c: New file.
16026         * lib/unistr/u32-strrchr.c: New file.
16027
16028         * modules/unistr/u8-strspn: New file.
16029         * modules/unistr/u16-strspn: New file.
16030         * modules/unistr/u32-strspn: New file.
16031         * lib/unistr/u8-strspn.c: New file.
16032         * lib/unistr/u16-strspn.c: New file.
16033         * lib/unistr/u32-strspn.c: New file.
16034         * lib/unistr/u-strspn.h: New file.
16035
16036         * modules/unistr/u8-strstr: New file.
16037         * modules/unistr/u16-strstr: New file.
16038         * modules/unistr/u32-strstr: New file.
16039         * lib/unistr/u8-strstr.c: New file.
16040         * lib/unistr/u16-strstr.c: New file.
16041         * lib/unistr/u32-strstr.c: New file.
16042         * lib/unistr/u-strstr.h: New file.
16043
16044         * modules/unistr/u8-strtok: New file.
16045         * modules/unistr/u16-strtok: New file.
16046         * modules/unistr/u32-strtok: New file.
16047         * lib/unistr/u8-strtok.c: New file.
16048         * lib/unistr/u16-strtok.c: New file.
16049         * lib/unistr/u32-strtok.c: New file.
16050         * lib/unistr/u-strtok.h: New file.
16051
16052         * modules/unistr/u8-uctomb: New file.
16053         * modules/unistr/u16-uctomb: New file.
16054         * modules/unistr/u32-uctomb: New file.
16055         * lib/unistr/u8-uctomb.c: New file.
16056         * lib/unistr/u16-uctomb.c: New file.
16057         * lib/unistr/u32-uctomb.c: New file.
16058
16059         * MODULES.html.sh (Unicode string functions): Add the new modules.
16060
16061 2007-01-08  Bruno Haible  <bruno@clisp.org>
16062
16063         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
16064         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
16065         subdirectories.
16066
16067 2007-01-08  Karl Berry  <karl@gnu.org>
16068
16069         * doc/error.texi: mention that main() fns must set program_name
16070         when progname is used.
16071
16072 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
16073
16074         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
16075         WCTYPE_H is empty, for the benefit of builds from non-distclean
16076         directories.  Problem reported by Eric Blake in
16077         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
16078
16079 2007-01-08  Bruno Haible  <bruno@clisp.org>
16080
16081         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
16082         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
16083         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
16084         PROVIDE_CANONICALIZE_FILENAME_MODE.
16085         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
16086
16087 2007-01-08  Bruno Haible  <bruno@clisp.org>
16088
16089         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
16090         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
16091         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
16092         * lib/fts.c: Likewise.
16093         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
16094
16095 2006-12-25  Bruno Haible  <bruno@clisp.org>
16096
16097         * modules/utf8-ucs4-safe: New file.
16098         * lib/utf8-ucs4-safe.h: New file.
16099         * lib/unistr/utf8-ucs4-safe.c: New file.
16100
16101         * modules/utf16-ucs4-safe: New file.
16102         * lib/utf16-ucs4-safe.h: New file.
16103         * lib/unistr/utf16-ucs4-safe.c: New file.
16104
16105         * MODULES.html.sh (Unicode string functions): Add the new modules.
16106
16107 2007-01-08  Bruno Haible  <bruno@clisp.org>
16108
16109         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
16110         (Depends-on): Add unitypes.
16111         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
16112         (u8_mbtouc_aux): Move out to separate file.
16113         (u8_mbtouc): Use ucs4_t, uint8_t types.
16114         * lib/unistr/utf8-ucs4.c: New file.
16115
16116         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
16117         (Depends-on): Add unitypes.
16118         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
16119         (u16_mbtouc_aux): Move out to separate file.
16120         (u16_mbtouc): Use ucs4_t, uint16_t types.
16121         * lib/unistr/utf16-ucs4.c: New file.
16122
16123         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
16124         (Depends-on): Add unitypes.
16125         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
16126         (u8_uctomb_aux): Move out to separate file.
16127         (u8_uctomb): Use ucs4_t, uint8_t types.
16128         * lib/unistr/ucs4-utf8.c: New file.
16129
16130         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
16131         (Depends-on): Add unitypes.
16132         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
16133         (u16_uctomb_aux): Move out to separate file.
16134         (u16_uctomb): Use ucs4_t, uint16_t types.
16135         * lib/unistr/ucs4-utf16.c: New file.
16136
16137 2006-12-25  Bruno Haible  <bruno@clisp.org>
16138
16139         * modules/unitypes: New file.
16140         * lib/unitypes.h: New file.
16141         * MODULES.html.sh (func_all_modules): New section "Unicode string
16142         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
16143         this section. Add unitypes.
16144
16145 2007-01-08  Bruno Haible  <bruno@clisp.org>
16146
16147         Avoid variable names that conflict with those from libtool.
16148         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
16149         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
16150         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
16151         library_names_spec to acl_library_names_spec, hardcode_* to
16152         acl_hardcode_*.
16153         Reported by Ralf Wildenhues.
16154
16155 2007-01-08  Bruno Haible  <bruno@clisp.org>
16156
16157         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
16158         definition.
16159         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
16160         definition.
16161         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
16162         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
16163         definition.
16164         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
16165         definition.
16166         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
16167         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
16168         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
16169         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
16170         definition.
16171         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
16172         definition.
16173         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
16174         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
16175         GC_USE_<algorithm>.
16176         * lib/gc-libgcrypt.c: Likewise.
16177         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
16178         * modules/gc-arctwo (configure.ac): Likewise.
16179         * modules/gc-des (configure.ac): Likewise.
16180         * modules/gc-hmac-md5 (configure.ac): Likewise.
16181         * modules/gc-hmac-sha1 (configure.ac): Likewise.
16182         * modules/gc-md2 (configure.ac): Likewise.
16183         * modules/gc-md4 (configure.ac): Likewise.
16184         * modules/gc-md5 (configure.ac): Likewise.
16185         * modules/gc-random (configure.ac): Likewise.
16186         * modules/gc-rijndael (configure.ac): Likewise.
16187         * modules/gc-sha1 (configure.ac): Likewise.
16188
16189 2007-01-08  Bruno Haible  <bruno@clisp.org>
16190
16191         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
16192         macro definition.
16193         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
16194         definition.
16195         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
16196         definition.
16197         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
16198         * modules/fcntl-safer (configure.ac): Likewise.
16199         * modules/fopen-safer (configure.ac): Likewise.
16200         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
16201         GNULIB_FWRITEERROR macro definition.
16202
16203 2007-01-08  Bruno Haible  <bruno@clisp.org>
16204
16205         * m4/gnulib-common.m4: New file.
16206         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
16207         (func_get_filelist): Add m4/gnulib-common.m4.
16208
16209 2007-01-08  Bruno Haible  <bruno@clisp.org>
16210
16211         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
16212         command.
16213
16214 2007-01-08  Jim Meyering  <jim@meyering.net>
16215
16216         Use a more robust test for a "can't happen" condition.
16217         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
16218         narrowed the st_size value.  Presuming the "can't happen" condition
16219         is true, that narrowing could conceivably convert an invalid st_size
16220         value into a valid one.  Instead, use a change based on Matthew
16221         Woehlke's original patch.
16222
16223         Slight readability improvement: use an assert-like macro
16224         in place of literal "abort ()" uses.
16225         * lib/fts.c (fts_assert): Define.
16226         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
16227         Use this macro instead of a bare 'abort'.
16228
16229 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
16230
16231         Don't worry about using IRIX 5.3's wctype.h broken definitions;
16232         simply work around them.
16233         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
16234         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
16235         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
16236         declaring.
16237         Don't bother to define as macros, since the standard doesn't require it.
16238         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
16239         longer worry about IRIX 5.3.
16240         (HAVE_WCTYPE_CTMP_BUG): Remove.
16241
16242 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
16243
16244         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
16245         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
16246         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
16247         Problems reported by Georg Schwarz for IRIX 5.3.
16248
16249         * gnulib-tool (autoconf_minversion): Take the maximum version number
16250         found, not the minimum.  Problem reported by James Youngman.
16251
16252 2007-01-03  Karl Berry  <karl@gnu.org>
16253
16254         * doc/error.texi: new file, explaining interaction with progname.
16255         * doc/gnulib.texi: include it.  Update copyright.
16256
16257 2007-01-03  Simon Josefsson  <simon@josefsson.org>
16258
16259         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
16260         AC_CANONICAL_HOST, to improve autobuild outputs.
16261
16262 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
16263             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16264
16265         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
16266         sockets, server sockets, and other file descriptors.  Count errors
16267         to compute the return value.  Reorder the code a bit to be easier
16268         to follow.  Don't set event bits that were not requested (except
16269         POLLERR and POLLHUP).
16270
16271 2007-01-01  Bruno Haible  <bruno@clisp.org>
16272
16273         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
16274
16275 2007-01-03  Jim Meyering  <jim@meyering.net>
16276
16277         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
16278
16279 2007-01-02  Bruno Haible  <bruno@clisp.org>
16280
16281         * modules/settime (Include): Require timespec.h.
16282         * modules/nanosleep (Include): Likewise.
16283
16284 2007-01-01  Bruno Haible  <bruno@clisp.org>
16285
16286         * gnulib-tool (func_emit_copyright_notice): Bump year.
16287         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
16288
16289 2007-01-01  Bruno Haible  <bruno@clisp.org>
16290
16291         Improve support for OpenBSD.
16292         * build-aux/config.rpath (libname_spec): Export.
16293         (library_names_spec): New variable. Export.
16294         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
16295         library_names_spec from the config.rpath output. Locate shared library
16296         through the name pattern in library_names_spec.
16297
16298 2007-01-01  Eric Blake  <ebb9@byu.net>
16299
16300         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
16301
16302 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
16303
16304         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
16305         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
16306         assume the C locale, and avoid an "eval" that could cause trouble.
16307         Problem with SORT reported by Bob Proulx.
16308
16309         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
16310         Define.  Trivial patch from Henning Nielsen Lund, originally
16311         sent to bug-grep@gnu.org today.
16312
16313 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16314
16315         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
16316         struct stat.  Problem reported by Henning Nielsen Lund.
16317         * lib/acl.c: Include acl.h first, to check interface.  Don't
16318         bother to include sys/types.h and sys/stat.h again.
16319
16320 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
16321
16322         Import the following change from libc; problem reported by
16323         Sven Verdoolaege.
16324
16325         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
16326
16327         [BZ #1373]
16328         * lib/argp.h: Remove __NTH for __argp_usage inline function.
16329
16330 2006-12-28  Jim Meyering  <jim@meyering.net>
16331
16332         * build-aux/announce-gen: Do not assume that the package
16333         builds any of tar.gz, tar.bz2, and .xdelta files.
16334         Suggestion from Simon Josefsson.
16335
16336 2006-12-28  Simon Josefsson  <simon@josefsson.org>
16337
16338         * modules/announce-gen: New file.
16339
16340 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16341
16342         * lib/mbchar.h: Just include <wctype.h>; the wctype module
16343         handles its gotchas now.
16344         * lib/mbswidth.c: Likewise.
16345         * lib/wcwidth.h: Likewise.
16346         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
16347         and iswcntrl; the wctype module does this stuff now.
16348         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
16349         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16350         * modules/mbchar (Depends-on): Add wctype.
16351         * modules/mbswidth (Depends-on): Likewise.
16352         * modules/wcwidth (Depends-on): Likewise.
16353
16354 2006-12-27  Eric Blake  <ebb9@byu.net>
16355
16356         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
16357         module uses more than what <wctype.h> is required to provide.
16358
16359 2006-12-26  Eric Blake  <ebb9@byu.net>
16360
16361         * gnulib-tool (sed_extract_prog): Avoid space-tab.
16362
16363 2006-12-26  Eric Blake  <ebb9@byu.net>
16364
16365         * modules/absolute-header: New module.
16366         * modules/fcntl (Depends-on): Depend on it.
16367         * modules/inttypes (Depends-on): Likewise.
16368         * modules/stdint (Depends-on): Likewise.
16369         * modules/sys_stat (Depends-on): Likewise.
16370         * modules/wctype (Depends-on): Likewise.
16371         * MODULES.html.sh (Support for building libraries and
16372         executables): Document it.
16373
16374 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
16375
16376         * gnulib-tool (SED): Remove, undoing previous change.
16377         The problem was that it broke coreutils on Solaris, because
16378         "sed --posix" leaked into a makefile.
16379         (sed): New alias, if 'alias' and GNU sed.
16380
16381 2006-12-24  Jim Meyering  <jim@meyering.net>
16382
16383         Work around an fchownat bug in glibc-2.4:
16384         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
16385         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
16386         in spite of the -P option.
16387         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
16388         New macros.
16389         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
16390         * modules/openat (Files): Add lib/fchownat.c.
16391         * lib/openat.c (fchownat): Don't define here.  Move to...
16392         * lib/fchownat.c: ...this new file.
16393
16394 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
16395
16396         Fix bug reported by Bruno Haible in
16397         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
16398         where quotearg.c didn't compile on Mac OS X 10.2 because it
16399         lacks <wchar.h> and wint_t.
16400         * lib/wctype_.h (__wctype_wint_t): New type.
16401         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
16402         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
16403         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
16404         Arg is now of type __wctype_wint_t, not wint_t.
16405         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
16406         substitute HAVE_WINT_T.
16407         * modules/wctype (Files): Add m4/wint_t.m4.
16408         (wctype.h): Substitute HAVE_WINT_T.
16409
16410 2006-12-23  Bruno Haible  <bruno@clisp.org>
16411
16412         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
16413
16414 2006-12-23  Bruno Haible  <bruno@clisp.org>
16415
16416         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
16417         S_ISLNK.
16418         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
16419         mingw.
16420
16421 2006-12-22  Bruno Haible  <bruno@clisp.org>
16422
16423         * lib/copy-file.c: Include acl.h.
16424         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
16425         Close the file descriptors only after being done with copy_acl.
16426         * modules/copy-file (Depends-on): Add acl.
16427
16428 2006-12-22  Bruno Haible  <bruno@clisp.org>
16429
16430         * gnulib-tool (SED): New variable.
16431         Use $SED instead of sed everywhere.
16432
16433 2006-12-22  Bruno Haible  <bruno@clisp.org>
16434
16435         * modules/no-c++: New file.
16436         * m4/no-c++.m4: New file.
16437         * MODULES.html.sh (Support for building libraries and executables):
16438         Add no-c++.
16439
16440 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16441
16442         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
16443         Include <limits.h>, and use its INT_MAX to rewrite the
16444         j loop so that it does not overflow 'int'.  Problem reported by
16445         Ralf Wildenhues in
16446         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
16447         Play it safe by shifting left by 1 rather than multiplying by 2,
16448         as GCC is less likely to optimize this away when the value
16449         is signed (when it assumes overflow leads to undefined behavior).
16450         Also, don't assume time_t uses two's complement.
16451
16452 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
16453
16454         * MODULES.html.sh: New module wctype.
16455         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
16456         * lib/fnmatch.c: Don't bother to include <wchar.h> before
16457         <wctype.h>, since the new wctype module should fix this.
16458         * lib/quotearg.c: Include <wctype.h> unconditionally, since
16459         the wctype module should arrange for it.
16460         * lib/regex_internal.h: Likewise.
16461         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
16462         since the wctype module should handle this now.
16463         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
16464         * modules/fnmatch (Depends-on): Add wctype.
16465         * modules/quotearg (Depends-on): Likewise.
16466         * modules/regex (Depends-on): Likewise.
16467
16468 2006-12-19  Bruno Haible  <bruno@clisp.org>
16469
16470         * lib/strdup.h [C++]: Wrap definitions in extern "C".
16471         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
16472
16473 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16474
16475         * modules/savewd (Depends-on): Fix dependency on fcntl.
16476
16477 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
16478
16479         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
16480         conforms to C99, rather than relying on the user's environment
16481         setting of STDINT_H.
16482
16483 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
16484         and Eric Blake  <ebb9@byu.net>
16485
16486         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
16487         This is more consistent with the other defines here.
16488         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
16489         Port to z/OS.  Problem reported by Paul Gilmartin.
16490         Change local vars to use gl_ prefix rather than ac_.
16491         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
16492         with other defines.
16493         * modules/double-slash-root: New module.
16494         * modules/dirname (Files): Remove m4/double-slash-root.m4.
16495         (Depends-on): Add double-slash-root.
16496         * MODULES.html.sh (File system functions): Mention new module.
16497
16498 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
16499
16500         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
16501         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
16502         This is for the benefit of gzip, which doesn't do i18n.
16503
16504 2006-12-12  Jim Meyering  <jim@meyering.net>
16505
16506         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
16507         Reported by Andreas Schwab <schwab@suse.de>.
16508
16509 2006-12-12  Bruno Haible  <bruno@clisp.org>
16510
16511         Merge these changes.
16512         2006-09-05  Bruno Haible  <bruno@clisp.org>
16513         * lib/iconvme.c (iconv_string): No need to save and restore errno when
16514         iconv_alloc succeeded.
16515         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
16516         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
16517         test for " && dest " at the end - dest is always != NULL there. Call
16518         iconv with 4xNULL arguments initially, to reset the state. Call iconv
16519         with 2xNULL arguments, also to flush the state storage. Handle the
16520         IRIX iconv behaviour. Realloc the final result, to throw away unused
16521         memory.
16522
16523 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
16524
16525         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
16526         and fchmodat unconditionally, since glibc 2.4 has them.
16527         Problem reported by Arkadiusz Miskiewicz.
16528
16529 2006-12-10  Bruno Haible  <bruno@clisp.org>
16530
16531         * gnulib-tool (func_import): Show the include files only for those
16532         modules that are copied and specified.
16533         Reported by Karl Berry.
16534
16535 2006-12-08  Jim Meyering  <jim@meyering.net>
16536
16537         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
16538         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
16539
16540         * build-aux/announce-gen: Add two new options, both optional:
16541         --bootstrap-tools=TOOL_LIST
16542               a comma-separated list of tools, e.g.,
16543               autoconf,automake,bison,gnulib
16544         --gnulib-snapshot-date=DATE
16545               if gnulib is in the bootstrap tool list,
16546               then report this as the snapshot date.
16547               If not specified, use the current date/time.
16548               If you specify a date here, be sure it's UTC.
16549
16550 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16551
16552         * tests/test-argp-2.sh: Fix test to match actual output.
16553         (func_compare): Fix sed script to be portable.
16554
16555 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
16556
16557         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
16558         workaround for this case.  It is not autoconfigured now; offhand
16559         it's hard to see how to autoconfigure it.
16560
16561 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
16562
16563         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
16564         a directory that is about to be chowned.  Such a directory's
16565         initial file permissions should permit the owner only and this
16566         should not be changed until after the chown, since the group and
16567         other bits would be incorrect if they granted permission before
16568         the chown.
16569
16570         Fix porting problem for iswctype reported by Georg Schwarz in:
16571         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
16572         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
16573         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
16574         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
16575         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
16576
16577 2006-12-03  Jim Meyering  <jim@meyering.net>
16578
16579         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
16580         p->fts_statp may not yet be defined.
16581         (fts_read): Instead, set it in the caller, once p->fts_statp is
16582         sure to be defined, and corresponds to a top-level directory.
16583         This bug made du -x fail.  Here's the coreutils test case:
16584         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
16585         Reported by Mike Frysinger.
16586
16587 2006-12-01  Jim Meyering  <jim@meyering.net>
16588
16589         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
16590         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
16591         Reported by Simon Josefsson.
16592
16593 2006-11-30  Jim Meyering  <jim@meyering.net>
16594
16595         * m4/warning.m4: Use the all-permissive copyright notice
16596         recommended by RMS (rather than LGPL).
16597         * m4/vararrays.m4: Likewise.
16598         * m4/flexmember.m4: Likewise.
16599
16600 2006-11-29  Bruno Haible  <bruno@clisp.org>
16601
16602         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
16603         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
16604         using +=.
16605         Reported by Simon Josefsson <simon@josefsson.org>.
16606
16607 2006-11-28  James Youngman <jay@gnu.org>
16608
16609         * README: Advise users that they might find the bug-gnulib@gnu.org
16610         and autotools-announce@gnu.org mailing lists useful.
16611
16612 2006-11-28  Bruno Haible  <bruno@clisp.org>
16613
16614         * m4/ptrdiff_max.m4: Remove file.
16615
16616 2006-11-21  Bruno Haible  <bruno@clisp.org>
16617
16618         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
16619         _AC_COMPUTE_INT.
16620         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
16621         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
16622         _AC_COMPUTE_INT.
16623         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
16624         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
16625         _AC_COMPUTE_INT.
16626         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
16627
16628 2006-11-28  Jim Meyering  <jim@meyering.net>
16629
16630         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
16631         warning from "gcc -Wshadow" about shadowing the builtin.
16632
16633 2006-11-27  Bruno Haible  <bruno@clisp.org>
16634
16635         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
16636         _AC_COMPUTE_INT.
16637         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
16638
16639 2006-11-27  Bruno Haible  <bruno@clisp.org>
16640             Paul Eggert  <eggert@cs.ucla.edu>
16641
16642         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
16643
16644 2006-11-26  Bruno Haible  <bruno@clisp.org>
16645
16646         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
16647         noinst_LTLIBRARIES.
16648
16649 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
16650             Bruno Haible  <bruno@clisp.org>
16651
16652         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
16653         if compiling with "gcc -ansi".
16654
16655 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
16656
16657         Fix some incompatibilities with gcc -ansi -pedantic.
16658         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
16659         if compiling pedantically with GCC, unless it's C99 or later.
16660         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
16661         it mishandles gcc -ansi -pedantic as well.
16662         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
16663         if gcc -pedantic.
16664         * lib/regexec.c (check_node_accept_bytes): Don't use auto
16665         initializers for struct if -pedantic, unless it's C99 or later.
16666
16667 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
16668
16669         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
16670         Don't close an fd more than once. Identical atimes indicate
16671         success, not failure.
16672
16673 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
16674
16675         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
16676
16677 2006-11-23  Jim Meyering  <jim@meyering.net>
16678
16679         * build-aux/announce-gen: New file.  From coreutils.
16680
16681 2006-11-22  Jim Meyering  <jim@meyering.net>
16682
16683         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
16684         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
16685         (fts_read): Use a temporary to narrow the overused st_size member
16686         before using it in a switch statement.  Reported by Matthew Woehlke.
16687
16688         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
16689         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
16690
16691 2006-11-20  Bruno Haible  <bruno@clisp.org>
16692
16693         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
16694         changequote instead of pairs of brackets.
16695         Reported by Andreas Schwab <schwab@suse.de>.
16696
16697 2006-11-21  Jim Meyering  <jim@meyering.net>
16698
16699         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
16700         so as to remain compatible with older compilers.
16701         Patch from Michael Deutschmann.
16702
16703 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
16704
16705         * MODULES.html.sh (File system functions): Add openat.
16706
16707         * lib/openat.h (rpl_fstatat): New macro, if
16708         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
16709         (fstatat): Define to rpl_fstatat under the same conditions,
16710         unless COMPILING_FSTATAT.
16711         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
16712         seems to have the bug.
16713         * lib/fstatat.c: New file.
16714         * modules/openat (Files): Add it.
16715
16716 2006-11-20  Bruno Haible  <bruno@clisp.org>
16717
16718         * Makefile: New file.
16719
16720 2006-11-20  Jim Meyering  <jim@meyering.net>
16721
16722         The beginnings of syntax-related checks for gnulib.
16723         * lib/Makefile: New file.
16724         * lib/t-idcache: New script.  Ensure that the two halves of
16725         idcache.c stay in sync.
16726
16727         * lib/idcache.c: Adjust comments in user- and group- portions to
16728         be more accurate, and to be consistent with one another.
16729
16730 2006-11-20  Jim Meyering  <jim@meyering.net>
16731
16732         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
16733         continue using the flexible array member (thus, this module performs
16734         half as many malloc calls), with the addition that...
16735         (getgroup, getuser): Consistently record a non-match via an empty
16736         "name" string, and map an empty string match to a NULL return value.
16737         * modules/idcache (Depends-on): Re-add flexmember.
16738
16739         * lib/idcache.c (getuser): Remove all uses of the register keyword.
16740         (getuidbyname, getgroup, getgidbyname): Likewise.
16741
16742         Use cleaner syntax: NULL rather than 0.
16743         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
16744
16745 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
16746
16747         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
16748         It mishandled the case where the group was missing.
16749         Problem reported by Greg Schafer.
16750         * modules/idcache: Likewise.
16751
16752 2006-11-18  Jim Meyering  <jim@meyering.net>
16753
16754         * check-module (%exempt_header): Add exception for some
16755         conditionally-included headers.
16756
16757         * modules/i-ring (Depends-on): Add verify.
16758         (License): Change to LGPL.
16759
16760 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
16761
16762         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
16763         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
16764         and inttostr.h.  Use snprintf rather than uinttostr, so that
16765         LGPLed code doesn't depend on GPLed.
16766
16767 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
16768
16769         * modules/inline (License): Change from GPL to LGPL.
16770
16771 2006-11-17  Jim Meyering  <jim@meyering.net>
16772
16773         * modules/d-type (License): Switch to LGPL.
16774
16775 2006-11-15  Bruno Haible  <bruno@clisp.org>
16776
16777         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
16778
16779 2006-11-15  Eric Blake  <ebb9@byu.net>
16780
16781         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
16782         the module dependency.
16783
16784 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
16785             Bruno Haible  <bruno@clisp.org>
16786
16787         * gnulib-tool (func_create_testdir): Add license consistency check.
16788
16789 2006-11-15  Eric Blake  <ebb9@byu.net>
16790
16791         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
16792         random "(cached)" in configure output.
16793
16794 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16795
16796         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
16797         test for conforming inttypes.h is both announced and cached.
16798
16799         * MODULES.html.sh (seen_modules, seen_files): New variables.
16800         (func_module): Rewrite to use a few less gnulib-tool and sed
16801         invocations.  Avoid a couple of quadratic algorithms for ...
16802         (missed_modules, missed_files): ... these, with ...
16803         (func_append, func_tmpdir): ... these new functions, from
16804         gnulib-tool.  Analogously, install traps for cleanup.
16805
16806         * tests/test-gc.c (main): Remove unused variables.
16807         * tests/test-read-file.c: Include stdlib.h, for 'free'.
16808
16809 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
16810
16811         * modules/inttostr (License): Change to LGPL.
16812
16813 2006-11-14  Eric Blake  <ebb9@byu.net>
16814
16815         * modules/tempname (License): Change to LGPL.
16816
16817 2006-11-14  Eric Blake  <ebb9@byu.net>
16818
16819         * doc/functions.texi (Function Portability): *printf functions on
16820         Cygwin now understand all POSIX size specifiers.
16821
16822 2006-11-14  Bruno Haible  <bruno@clisp.org>
16823
16824         * modules/c-ctype (License): Change to LGPL.
16825
16826 2006-11-12  Bruno Haible  <bruno@clisp.org>
16827
16828         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
16829         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
16830         for GNOME libraries, for which the include files are installed in
16831         subdirectories of $prefix/include.
16832
16833 2006-11-12  Bruno Haible  <bruno@clisp.org>
16834
16835         * m4/lib-link.m4: Require at least autoconf-2.54.
16836         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
16837         name to underscores for the --with option.
16838
16839 2006-11-13  Bruno Haible  <bruno@clisp.org>
16840
16841         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
16842         the tests directory.
16843         Reported by Ralf Wildenhues.
16844
16845 2006-11-13  Bruno Haible  <bruno@clisp.org>
16846
16847         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
16848         (func_emit_initmacro_end): Undo the override here.
16849         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
16850         Works around the famous automake error in coreutils.
16851
16852 2006-11-13  Eric Blake  <ebb9@byu.net>
16853
16854         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
16855         element, not its node.
16856
16857 2006-11-12  Bruno Haible  <bruno@clisp.org>
16858
16859         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
16860         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
16861
16862 2006-11-12  Bruno Haible  <bruno@clisp.org>
16863
16864         * gnulib-tool: New option --local-symlink.
16865         (func_usage): Document it.
16866         (lsymbolic): New variable.
16867         (func_import, func_create_testdir): If --symlink was not specified,
16868         test whether --local-symlink was specified and the file comes from
16869         the local_gnulib_dir.
16870
16871 2006-11-12  Bruno Haible  <bruno@clisp.org>
16872
16873         * gnulib-tool (func_ln): New function.
16874         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
16875
16876 2006-11-12  Bruno Haible  <bruno@clisp.org>
16877
16878         Finish support for source files in subdirectories.
16879         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
16880         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
16881         AUTOMAKE_OPTIONS.
16882         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
16883
16884 2006-11-12  Bruno Haible  <bruno@clisp.org>
16885
16886         * gnulib-tool (func_get_automake_snippet): Synthesize also an
16887         EXTRA_lib_SOURCES augmentation.
16888         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
16889
16890 2006-11-12  Jim Meyering  <jim@meyering.net>
16891
16892         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
16893         file descriptors.  This also averts a failure on systems with
16894         native openat support when a traversed directory lacks "x" access.
16895         * lib/fts_.h: Include "i-ring.h"
16896         (struct FTS) [fts_fd_ring]: New member.
16897         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
16898         (FCHDIR): Add parentheses.
16899         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
16900         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
16901         When descending, rather than simply closing the previous
16902         fts_cwd_fd value, push that file descriptor onto the ring.
16903         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
16904         (fts_open): Initialize the new fd_ring member.
16905         (fts_close): Clear the ring.
16906         (fts_safe_changedir): When possible, use our new fd_ring to skip
16907         the diropen and fstat and dev/ino comparison that would normally
16908         accompany a virtual `chdir ("..")'.
16909
16910         * modules/fts (Depends-on): Add i-ring.
16911         * modules/i-ring: New module.
16912         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
16913         * m4/i-ring.m4: New file.
16914
16915 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16916
16917         * gnulib-tool (func_create_testdir): Fix replacement of
16918         `build-aux' in configure.ac.  Run autotools in gltests
16919         subdirectory.
16920         (func_create_testdir, func_create_megatestdir, test): There is
16921         no need for '--force' in most autotool invocations in a new
16922         tree.  Actually fail the whole test if any of the tools, or the
16923         configure or make stages fail.
16924
16925         Sync from Automake.
16926         * build-aux/gnupload: Revert last change.  Add pointer to upload
16927         instructions of the GNU Maintenance Instructions.
16928         Suggestion by Karl Berry.
16929
16930 2006-11-10  Jim Meyering  <jim@meyering.net>
16931
16932         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
16933
16934 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
16935
16936         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
16937         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
16938         (bind_textdomain_codeset) [! ENABLE_NLS]:
16939         Evaluate all the arguments.  That way, callers get compatible behavior
16940         if the arguments have side effects.  Also, it avoids some GCC
16941         diagnostics in some cases; Joel E. Denny reported problems when Bison
16942         was configured with --enable-gcc-warnigs.
16943
16944 2006-11-10  Jim Meyering  <jim@meyering.net>
16945
16946         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
16947         relevant options in CFLAGS (like -O, -fno-inline) are taken into
16948         account.
16949
16950 2006-11-10  Jim Meyering  <jim@meyering.net>
16951
16952         * modules/inline: New file/module.
16953         * modules/xalloc (Files): Remove m4/inline.m4.
16954         (Depends-on): Add inline, instead.
16955         * modules/oset: Likewise.
16956         * modules/list: Likewise.
16957
16958 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
16959
16960         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
16961         Problem reported by Matthew Woehlke.
16962
16963 2006-11-09  Bruno Haible  <bruno@clisp.org>
16964
16965         * lib/tempname.c (gen_tempname): Remove variant that invokes
16966         __gen_tempname.
16967         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
16968         __gen_tempname.
16969
16970 2006-11-08  Bruno Haible  <bruno@clisp.org>
16971
16972         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
16973         to 'yes' instead of 'cross-compiling'.
16974
16975 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
16976
16977         * lib/quotearg.h (quotearg_free): New decl.
16978         * lib/quotearg.c (quotearg_free): New function.
16979         (slot0, nslots, slotvec0, slotvec):
16980         Now file-scope so that quotearg_free can get at them.
16981
16982 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16983
16984         Sync from Automake.
16985         * build-aux/gnupload: Add missing 'gnu' to example URL.
16986         Report by Karl Berry.
16987
16988 2006-11-08  Bruno Haible  <bruno@clisp.org>
16989
16990         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
16991         Suggested by Paul Eggert.
16992
16993 2006-11-08  Jim Meyering  <jim@meyering.net>
16994
16995         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
16996         It's already included if !_LIBC.
16997         (fts_safe_changedir): Add a comment.
16998
16999 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
17000
17001         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
17002         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
17003         Matthew Woehlke.
17004
17005         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
17006         definitions up, to avoid colliding with change below.
17007         (static_inline) [HAVE_INLINE]: New macro.
17008         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
17009         Provide extern decls when !HAVE_INLINE.  Do not define unless
17010         static_inline is defined, either by us or by xmalloc.c.  Use
17011         static_inline rather than static inline.
17012         (XCALLOC): Optimize sizeof(T) = 1 case.
17013         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
17014
17015 2006-11-07  Bruno Haible  <bruno@clisp.org>
17016
17017         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
17018         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
17019         AC_C_INLINE.
17020         * modules/xalloc (Files): Add m4/inline.m4.
17021
17022 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17023
17024         * README: Fix typo.
17025         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
17026         (Miscellanous Notes): ...from this.
17027
17028 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
17029
17030         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
17031         Mention that offsetof should be used instead of sizeof.
17032         From Bruno Haible.
17033
17034 2006-11-07  Bruno Haible  <bruno@clisp.org>
17035
17036         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
17037
17038 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
17039
17040         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
17041         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
17042         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
17043         (gl_tree_add_before, gl_tree_add_after):
17044         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
17045         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
17046         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
17047         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
17048         (gl_linked_add_after, gl_linked_add_at): Likewise.
17049         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
17050         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
17051         (gl_tree_add_before, gl_tree_add_after): Likewise.
17052         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
17053         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
17054         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
17055
17056 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17057
17058         * lib/gl_oset.h: Use C comment style, not C++ comment style.
17059
17060 2006-11-06  Bruno Haible  <bruno@clisp.org>
17061
17062         * m4/inline.m4: New file.
17063         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
17064         * modules/list (Files): Add m4/inline.m4.
17065         * modules/oset (Files): Likewise.
17066
17067 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
17068
17069         * lib/idcache.c: Include <stddef.h>, for offsetof.
17070         (struct userid.name): Change from char * to a flexible array member.
17071         All uses changed.
17072         * modules/idcache (Depends-on): Add flexmember.
17073
17074         * MODULES.html.sh (Core language properties): New module flexmember.
17075         * modules/flexmember, m4/flexmember.m4: New files.
17076
17077         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
17078         inline functions that are identical with the old xnmalloc_inline,
17079         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
17080         that we can avoid some unnecessary integer multiplications and
17081         divisions in the common case where the element size is known at
17082         compile time.
17083         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
17084         needed.
17085         (xnboundedmalloc): Remove.
17086         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
17087         arguments, for consistency with rest of this header.
17088         (xcharalloc): Rewrite using XNMALLOC.
17089         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
17090         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
17091         versions have been moved to lib/xalloc.h and renamed to be the
17092         non-*_inline versions.
17093         (xmalloc, xrealloc): Implement without reference to the xnmalloc
17094         and xnrealloc functions, since those functions are now inline and
17095         now call us.
17096         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
17097         renaming described above.
17098         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
17099         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
17100         captures the dependency in AC_C_INLINE.
17101
17102         New module canonicalize-lgpl, proposed by Charles Wilson in
17103         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
17104         with a few small changes afterwards.
17105         * MODULES.html.sh (File system functions): New module
17106         canonicalize-lgpl.
17107         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
17108         and canonicalize_file_name.
17109         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
17110         * modules/canonicalize-lgpl: New files.
17111
17112 2006-11-05  Bruno Haible  <bruno@clisp.org>
17113
17114         * gnulib-tool (func_import, func_create_testdir): Create directories
17115         also for files in subdirectories of lib/.
17116
17117 2006-11-05  Bruno Haible  <bruno@clisp.org>
17118
17119         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
17120         ANSI C compliant.
17121
17122 2006-11-03  Bruno Haible  <bruno@clisp.org>
17123
17124         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
17125         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
17126         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
17127         (xnboundedmalloc): New inline function.
17128         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
17129         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
17130         xmalloc.
17131         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
17132         xmalloc.
17133         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
17134         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
17135         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
17136         xmalloc.
17137         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
17138         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
17139         xmalloc.
17140         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
17141         gl_tree_add_after): Use XMALLOC instead of xmalloc.
17142         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
17143         xmalloc.
17144         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
17145         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
17146         gl_tree_add_after): Use XMALLOC instead of xmalloc.
17147         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
17148         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
17149         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
17150         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
17151
17152 2006-11-03  Bruno Haible  <bruno@clisp.org>
17153
17154         * lib/c-ctype.h [C++]: Define functions without name mangling.
17155         * lib/fwriteerror.h [C++]: Likewise.
17156         * lib/gcd.h [C++]: Likewise.
17157         * lib/linebreak.h [C++]: Likewise.
17158
17159 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
17160
17161         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
17162         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
17163         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
17164         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
17165         Check for functions and headers just once.
17166         Check for declaration of canonicalize_file_name.
17167         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
17168
17169 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
17170
17171         * gnulib-tool (func_import): Fix typo in actioncmd.
17172
17173 2006-11-02  Bruno Haible  <bruno@clisp.org>
17174
17175         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
17176         newline sequence in the Makefile.am snippet as a space, like "make"
17177         does.
17178         Reported by Roger Persson <perrog@gmail.com>.
17179
17180 2006-11-01  Bruno Haible  <bruno@clisp.org>
17181
17182         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
17183         already declared in <string.h>.
17184         * lib/strcase.h (strncasecmp): Don't declare it if yes.
17185
17186 2006-11-01  Bruno Haible  <bruno@clisp.org>
17187
17188         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
17189         * lib/strcase.h: Include <string.h>.
17190         (strcasecmp): Define to rpl_strcasecmp here.
17191
17192 2006-11-01  Bruno Haible  <bruno@clisp.org>
17193
17194         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
17195
17196 2006-11-01  Eric Blake  <ebb9@byu.net>
17197
17198         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
17199
17200         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
17201
17202 2006-10-29  Bruno Haible  <bruno@clisp.org>
17203
17204         Make it compile in C++ mode.
17205         * lib/full-write.c (full_rw): Add a cast.
17206
17207 2006-11-01  Bruno Haible  <bruno@clisp.org>
17208
17209         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
17210         be POSIX compliant.
17211         Reported by Roger Persson <perrog@gmail.com>.
17212
17213 2006-11-01  Eric Blake  <ebb9@byu.net>
17214
17215         * lib/getopt_.h: Fix comments.
17216
17217 2006-10-31  Eric Blake  <ebb9@byu.net>
17218
17219         * modules/tmpdir (Depends-on): Add sys_stat.
17220         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
17221         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
17222         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
17223         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
17224         tempname.
17225
17226 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
17227
17228         Avoid some C++ diagnostics reported by Bruno Haible.
17229         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
17230         xmalloc.
17231         (quotearg_alloc): Use xcharalloc rather than xmalloc.
17232         (struct slotvec): Move to top level.
17233         (quotearg_n_options): Rewrite to avoid xmalloc.
17234         * lib/xalloc.h (xcharalloc): New function.
17235         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
17236         [defined __cplusplus]: Add function template that provides result
17237         type propagation.  This part of the change is from Bruno Haible.
17238
17239 2006-10-29  Bruno Haible  <bruno@clisp.org>
17240
17241         Make it compile in C++ mode.
17242         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
17243         * lib/strnlen1.c (strnlen1): Cast memchr result.
17244         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
17245         * lib/clean-temp.c (string_equals, string_hash): Add casts.
17246         (create_temp_dir): Rename local variable 'template'.
17247         (compile_csharp_using_sscli): Add cast.
17248         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
17249         * lib/findprog.c (find_in_path): Likewise.
17250         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
17251         * lib/wait-process.c (register_slave_subprocess): Likewise.
17252
17253 2006-10-22  Bruno Haible  <bruno@clisp.org>
17254
17255         * modules/tsearch: New file.
17256         * lib/tsearch.h: New file.
17257         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
17258         * m4/tsearch.m4: New file.
17259         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
17260
17261 2006-10-29  Eric Blake  <ebb9@byu.net>
17262
17263         * lib/arcfour.c: Assume config.h.
17264         * lib/arctwo.c: Likewise.
17265         * lib/base64.c: Likewise.
17266         * lib/check-version.c: Likewise.
17267         * lib/crc.c: Likewise.
17268         * lib/des.c: Likewise.
17269         * lib/gc-gnulib.c: Likewise.
17270         * lib/gc-libgcrypt.c: Likewise.
17271         * lib/gc-pbkdf2-sha1.c: Likewise.
17272         * lib/getaddrinfo.c: Likewise.
17273         * lib/getdelim.c: Likewise.
17274         * lib/getline.c: Likewise.
17275         * lib/hmac-md5.c: Likewise.
17276         * lib/hmac-sha1.c: Likewise.
17277         * lib/iconvme.c: Likewise.
17278         * lib/md2.c: Likewise.
17279         * lib/md4.c: Likewise.
17280         * lib/memxor.c: Likewise.
17281         * lib/read-file.c: Likewise.
17282         * lib/readline.c: Likewise.
17283         * lib/rijndael-alg-fst.c: Likewise.
17284         * lib/rijndael-api-fst.c: Likewise.
17285         * lib/xgetdomainname.c: Likewise.
17286
17287 2006-10-28  Eric Blake  <ebb9@byu.net>
17288
17289         * lib/xstrndup.c: Assume config.h.
17290
17291 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
17292
17293         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
17294         stat-macros.h is now for our own macros, whereas stat_h is for
17295         macros in the <sys/stat.h> name space.
17296         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
17297         (STAT_MACROS_H): Remove.
17298         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
17299         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
17300         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
17301         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
17302         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
17303         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
17304         Move these macros to ...
17305         * lib/stat_.h: here.  Don't include stat-macros.h.
17306         * lib/canonicalize.c: Don't include stat-macros.h.
17307         * lib/chown.c: Likewise.
17308         * lib/euidaccess.c: Likewise.
17309         * lib/file-type.c: Likewise.
17310         * lib/filemode.c: Likewise.
17311         * lib/glob.c: Likewise.
17312         * lib/isapipe.c: Likewise.
17313         * lib/lchown.c: Likewise.
17314         * lib/lstat.c: Likewise.
17315         * lib/mkdir-p.c: Likewise.
17316         * lib/rmdir.c: Likewise.
17317         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
17318         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
17319         unless mkdir isn't declared, to speed up 'configure'.
17320         Always create sys/stat.h, since it's unlikely any real sys/stat.h
17321         would define all the S_* symbols.
17322         * modules/canonicalize (Depends-on):
17323         Depend on sys_stat, not stat-macros.
17324         * modules/chown: Likewise.
17325         * modules/euidaccess: Likewise.
17326         * modules/filemode: Likewise.
17327         * modules/file-type: Likewise.
17328         * modules/glob: Likewise.
17329         * modules/isapipe: Likewise.
17330         * modules/lchown: Likewise.
17331         * modules/lstat: Likewise.
17332         * modules/mkancesdirs: Likewise.
17333         * modules/rmdir: Likewise.
17334         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
17335         * modules/modechange: Likewise.
17336         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
17337         (configure.ac): Remove gl_STAT_MACROS.
17338         * modules/sys_stat (Depends-on): Remove stat-macros.
17339
17340 2006-10-27  Bruno Haible  <bruno@clisp.org>
17341
17342         * m4/signed.m4: Remove file.
17343         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
17344         invocation.
17345         * modules/vasnprintf (Files): Remove m4/signed.m4.
17346
17347 2006-10-27  Bruno Haible  <bruno@clisp.org>
17348
17349         Update to GNU gettext 0.16.
17350         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
17351         m4/inttypes-h.m4, m4/signed.m4.
17352         * m4/gettext.m4: Update to GNU gettext 0.16.
17353         * m4/intl.m4: New file, from GNU gettext.
17354         * m4/intldir.m4: New file, from GNU gettext.
17355         * config/srclist.txt: Update
17356
17357 2006-10-27  Eric Blake  <ebb9@byu.net>
17358
17359         * MODULES.html.sh: Document tempname.
17360         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
17361         dependencies.
17362         (Files): Move lib/tempname.c...
17363         * modules/tempname: ...to this new module.
17364         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
17365         (gl_PREREQ_TEMPNAME): Move...
17366         * m4/tempname.m4: ...to this new file.
17367         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
17368         * modules/sys_stat (Depends-on): Add stat-macros.
17369         * lib/stat_.h (includes): Pick up stat macros.
17370         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
17371         if stat macros are broken.
17372         * lib/tempname.c (includes): No need to include "stat-macros.h".
17373         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
17374         (direxists, __path_search) [!_LIBC]: Don't compile these in
17375         gnulib; the tmpdir module covers that.
17376         * lib/tempname.h: New file.
17377
17378 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
17379
17380         * COPYING: Explain how gnulib-tool converts licence headers.
17381         Almost all wording by Eric Blake.
17382
17383 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
17384
17385         * lib/mbchar.h (is_basic_table): Make read-only.
17386         * lib/mbchar.c (is_basic_table): Likewise.
17387         Reported by John Darrington.
17388
17389 2006-10-25  Bruno Haible  <bruno@clisp.org>
17390
17391         * lib/progname.h (set_program_name): Undefine before defining.
17392
17393 2006-10-25  Bruno Haible  <bruno@clisp.org>
17394
17395         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
17396         false for non-gcc C++ compilers.
17397         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
17398
17399 2006-10-24  Bruno Haible  <bruno@clisp.org>
17400
17401         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
17402         iconv implementations like Irix iconv.
17403
17404 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
17405
17406         * modules/vararrays: New file.
17407         * m4/vararrays.m4: New file, taken from diffutils.
17408         * MODULES.html.sh: New module vararrays.
17409
17410 2006-10-24  Karl Berry  <karl@gnu.org>
17411
17412         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
17413         Don't call GNU Unix.
17414
17415 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17416
17417         * users.txt: Add Libtool.
17418
17419         Sync from Libtool:
17420
17421         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
17422
17423         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
17424         to gnulib's policy of including config.h unconditionally.
17425
17426 2006-10-24  Bruno Haible  <bruno@clisp.org>
17427
17428         * modules/wcwidth (Files): Add m4/wint_t.m4.
17429         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
17430         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
17431
17432 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
17433
17434         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
17435         to pacify GCC with some -W flags enabled.  Problem reported by
17436         Bruno Haible.
17437
17438 2006-10-24  Jim Meyering  <jim@meyering.net>
17439
17440         * MODULES.html.sh: Remove uinttostr.  It's not a module.
17441         Reported by Karl Berry.
17442
17443 2006-10-23  Bruno Haible  <bruno@clisp.org>
17444
17445         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
17446
17447 2006-10-24  Bruno Haible  <bruno@clisp.org>
17448
17449         * lib/gl_list.h: Use C comment style, not C++ comment style.
17450
17451 2006-10-23  Eric Blake  <ebb9@byu.net>
17452
17453         * lib/getaddrinfo.c (includes): Add missing include.
17454
17455 2006-10-23  Bruno Haible  <bruno@clisp.org>
17456             Paul Eggert  <eggert@cs.ucla.edu>
17457
17458         Ability to rename obstack_free.
17459         * lib/obstack.h (__obstack_free): New macro. Declare instead of
17460         obstack_free.
17461         (obstack_free): Invoke the __obstack_free macro.
17462         * lib/obstack.c (obstack_free): Use __obstack_free macro.
17463
17464 2006-10-23  Bruno Haible  <bruno@clisp.org>
17465             Paul Eggert  <eggert@cs.ucla.edu>
17466
17467         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
17468         __argc, __argv from the declaration. (They are defined as macros on
17469         mingw.)
17470
17471 2006-10-22  Bruno Haible  <bruno@clisp.org>
17472
17473         * doc/gnulib-intro.texi: New file.
17474         * doc/gnulib.texi: Include it.
17475
17476 2006-10-21  Bruno Haible  <bruno@clisp.org>
17477
17478         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
17479         "Introduction", "Miscellanous Notes", "Particular Modules".
17480
17481 2006-10-21  Bruno Haible  <bruno@clisp.org>
17482
17483         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17484         Change mostlyclean-local rule to avoid sh syntax error from bash
17485         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
17486
17487 2006-10-23  Jim Meyering  <jim@meyering.net>
17488
17489         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
17490         in place of snprintf.
17491
17492         * modules/inttostr (Files): Add lib/uinttostr.c.
17493         * lib/uinttostr.c (inttostr): New file/function.
17494         * lib/inttostr.h (uinttostr): Declare.
17495         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
17496         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
17497         Add uinttostr.
17498         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
17499
17500 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
17501
17502         * lib/canonicalize.c (ELOOP): Define if not already defined.
17503         Problem reported by Bruno Haible in
17504         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
17505
17506 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
17507
17508         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
17509         Problem reported by Perry Smith and Ville Laurikari.
17510
17511         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
17512         uses.
17513
17514 2006-10-19  Bruno Haible  <bruno@clisp.org>
17515
17516         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
17517         for mingw.
17518
17519 2006-10-19  Bruno Haible  <bruno@clisp.org>
17520
17521         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
17522         Needed for mingw.
17523
17524 2006-10-19  Bruno Haible  <bruno@clisp.org>
17525
17526         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
17527
17528 2006-10-19  Bruno Haible  <bruno@clisp.org>
17529
17530         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
17531         it.
17532
17533 2006-10-19  Bruno Haible  <bruno@clisp.org>
17534
17535         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
17536         invocation.
17537
17538 2006-10-19  Bruno Haible  <bruno@clisp.org>
17539
17540         * gnulib-tool (func_create_testdir): Don't include ftruncate and
17541         mountlist by default.
17542
17543 2006-10-16  Bruno Haible  <bruno@clisp.org>
17544
17545         * lib/c-strstr.c: Include c-strstr.h.
17546
17547 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
17548
17549         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
17550         in a slash.
17551
17552 2006-10-18  Bruno Haible  <bruno@clisp.org>
17553
17554         * lib/lock.h [C++]: Wrap definitions in extern "C".
17555
17556 2006-10-18  Bruno Haible  <bruno@clisp.org>
17557
17558         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
17559         gl_LIBOBJS list.
17560
17561 2006-10-18  Bruno Haible  <bruno@clisp.org>
17562
17563         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
17564
17565 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
17566
17567         * lib/xstrtol.h: Include gettext.h.
17568         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
17569         Problem reported by Eric Blake.
17570         * modules/xstrtol (Depends-on): Add gettext-h.
17571
17572 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
17573
17574         * lib/strftime.c (advance): New macro.
17575         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
17576         incomplete type, so you can't add 0 to it.  Problem and patch
17577         reported by Eelco Dolstra for dietlibc.
17578
17579 2006-10-18  Jim Meyering  <jim@meyering.net>
17580
17581         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
17582         type for a local, and rename it: s/up/user_proc/.
17583
17584 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
17585
17586         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
17587         READ_UTMP_USER_PROCESS.
17588         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
17589
17590 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
17591
17592         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
17593         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
17594
17595 2006-10-17  Eric Blake  <ebb9@byu.net>
17596
17597         * lib/sigprocmask.c (sigprocmask): Fix typo.
17598
17599         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
17600
17601         * modules/clean-temp (Makefile.am): Don't add to make output...
17602         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
17603         config.h.
17604
17605 2006-10-17  Bruno Haible  <bruno@clisp.org>
17606
17607         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
17608         differently if DEFAULT_TEXT_DOMAIN is set.
17609
17610 2006-10-16  Bruno Haible  <bruno@clisp.org>
17611
17612         * lib/clean-temp.c: Include fwriteerror.h.
17613
17614 2006-10-16  Bruno Haible  <bruno@clisp.org>
17615
17616         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
17617
17618 2006-10-16  Bruno Haible  <bruno@clisp.org>
17619
17620         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
17621         * lib/sigprocmask.h: Include <sys/types.h>.
17622         (sigset_t): Use the system's definition if present.
17623
17624 2006-10-17  Eric Blake  <ebb9@byu.net>
17625
17626         * lib/xvasprintf.c (includes): Assume config.h.
17627         * lib/xasprintf.c (includes): Likewise.
17628
17629 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
17630
17631         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
17632         at least as wide as intmax_t.
17633
17634 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
17635
17636         (Imported from Automake.)
17637         * build-aux/gnupload: Update to version 1.1 of directive file.
17638
17639 2006-10-16  Eric Blake  <ebb9@byu.net>
17640
17641         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
17642         match Automake 1.10a.
17643
17644 2006-10-14  Bruno Haible  <bruno@clisp.org>
17645
17646         * modules/sigprocmask: New file.
17647         * lib/sigprocmask.h: New file.
17648         * lib/sigprocmask.c: New file.
17649         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
17650         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
17651         request sigprocmask.o.
17652         (gl_PREREQ_SIGPROCMASK): New macro.
17653         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
17654         (Depends-on): Add sigprocmask.
17655         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
17656         gt_SIGNALBLOCKING. Test for 'raise' only once.
17657         * lib/fatal-signal.c: Include sigprocmask.h.
17658         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
17659         unblock_fatal_signals): Define always.
17660         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17661         sigprocmask.
17662
17663 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
17664
17665         Sync from Automake.
17666         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
17667         which incorrectly sets the mode of an existing destination
17668         directory.  In some cases the unpatched install-sh could do the
17669         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
17670         system.  We hope this is rare in practice, but it's clearly worth
17671         fixing.  Problem reported by Alex Unleashed in
17672         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
17673         Also, don't bother to check for -m bugs unless we're using -m;
17674         suggested by Stepan Kasal.
17675
17676 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17677
17678         Sync from Automake.
17679         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
17680         `-c' flag, so they appear at the same position as in %FASTDEP%
17681         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
17682         which ignores unknown options only after the first non-option.
17683         Bug report against M4 by Nelson H. F. Beebe.
17684
17685 2006-10-13  Jim Meyering  <jim@meyering.net>
17686
17687         Fix a bug in yesterday's change.
17688         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
17689         p->fts_statp->st_dev would be used uninitialized.
17690         Ensures that we always call fts_stat on the very first entry.
17691         Miklos Szeredi reported that find -xdev stopped working.
17692
17693 2006-10-12  Bruno Haible  <bruno@clisp.org>
17694
17695         * gnulib-tool (func_get_automake_snippet): Append an automatically
17696         computed EXTRA_DIST augmentation.
17697         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
17698         * modules/alloca-opt (Makefile.am): Likewise.
17699         * modules/allocsa (Makefile.am): Likewise.
17700         * modules/arcfour (Makefile.am): Likewise.
17701         * modules/arctwo (Makefile.am): Likewise.
17702         * modules/argmatch (Makefile.am): Likewise.
17703         * modules/argz (Makefile.am): Likewise.
17704         * modules/atexit (Makefile.am): Likewise.
17705         * modules/backupfile (Makefile.am): Likewise.
17706         * modules/byteswap (Makefile.am): Likewise.
17707         * modules/c-strtod (Makefile.am): Likewise.
17708         * modules/c-strtold (Makefile.am): Likewise.
17709         * modules/calloc (Makefile.am): Likewise.
17710         * modules/canon-host (Makefile.am): Likewise.
17711         * modules/canonicalize (Makefile.am): Likewise.
17712         * modules/chdir-long (Makefile.am): Likewise.
17713         * modules/chdir-safer (Makefile.am): Likewise.
17714         * modules/check-version (Makefile.am): Likewise.
17715         * modules/chown (Makefile.am): Likewise.
17716         * modules/cloexec (Makefile.am): Likewise.
17717         * modules/close-stream (Makefile.am): Likewise.
17718         * modules/closeout (Makefile.am): Likewise.
17719         * modules/crc (Makefile.am): Likewise.
17720         * modules/csharpexec (Makefile.am): Likewise.
17721         * modules/cycle-check (Makefile.am): Likewise.
17722         * modules/des (Makefile.am): Likewise.
17723         * modules/dev-ino (Makefile.am): Likewise.
17724         * modules/dirfd (Makefile.am): Likewise.
17725         * modules/dirname (Makefile.am): Likewise.
17726         * modules/dup2 (Makefile.am): Likewise.
17727         * modules/eealloc (Makefile.am): Likewise.
17728         * modules/error (Makefile.am): Likewise.
17729         * modules/euidaccess (Makefile.am): Likewise.
17730         * modules/exclude (Makefile.am): Likewise.
17731         * modules/exitfail (Makefile.am): Likewise.
17732         * modules/fcntl-safer (Makefile.am): Likewise.
17733         * modules/fcntl (Makefile.am): Likewise.
17734         * modules/file-type (Makefile.am): Likewise.
17735         * modules/fileblocks (Makefile.am): Likewise.
17736         * modules/filemode (Makefile.am): Likewise.
17737         * modules/filenamecat (Makefile.am): Likewise.
17738         * modules/fnmatch (Makefile.am): Likewise.
17739         * modules/fopen-safer (Makefile.am): Likewise.
17740         * modules/fpending (Makefile.am): Likewise.
17741         * modules/fprintftime (Makefile.am): Likewise.
17742         * modules/free (Makefile.am): Likewise.
17743         * modules/fsusage (Makefile.am): Likewise.
17744         * modules/ftruncate (Makefile.am): Likewise.
17745         * modules/fts (Makefile.am): Likewise.
17746         * modules/gc-arcfour (Makefile.am): Likewise.
17747         * modules/gc-des (Makefile.am): Likewise.
17748         * modules/gc-hmac-md5 (Makefile.am): Likewise.
17749         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
17750         * modules/gc-md4 (Makefile.am): Likewise.
17751         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
17752         * modules/gc-sha1 (Makefile.am): Likewise.
17753         * modules/gc (Makefile.am): Likewise.
17754         * modules/getaddrinfo (Makefile.am): Likewise.
17755         * modules/getcwd (Makefile.am): Likewise.
17756         * modules/getdelim (Makefile.am): Likewise.
17757         * modules/getdomainname (Makefile.am): Likewise.
17758         * modules/getgroups (Makefile.am): Likewise.
17759         * modules/gethostname (Makefile.am): Likewise.
17760         * modules/gethrxtime (Makefile.am): Likewise.
17761         * modules/getline (Makefile.am): Likewise.
17762         * modules/getloadavg (Makefile.am): Likewise.
17763         * modules/getlogin_r (Makefile.am): Likewise.
17764         * modules/getndelim2 (Makefile.am): Likewise.
17765         * modules/getopt (Makefile.am): Likewise.
17766         * modules/getpagesize (Makefile.am): Likewise.
17767         * modules/getpass-gnu (Makefile.am): Likewise.
17768         * modules/getpass (Makefile.am): Likewise.
17769         * modules/getsubopt (Makefile.am): Likewise.
17770         * modules/gettime (Makefile.am): Likewise.
17771         * modules/gettimeofday (Makefile.am): Likewise.
17772         * modules/getugroups (Makefile.am): Likewise.
17773         * modules/getusershell (Makefile.am): Likewise.
17774         * modules/glob (Makefile.am): Likewise.
17775         * modules/group-member (Makefile.am): Likewise.
17776         * modules/hard-locale (Makefile.am): Likewise.
17777         * modules/hash (Makefile.am): Likewise.
17778         * modules/hmac-md5 (Makefile.am): Likewise.
17779         * modules/hmac-sha1 (Makefile.am): Likewise.
17780         * modules/human (Makefile.am): Likewise.
17781         * modules/idcache (Makefile.am): Likewise.
17782         * modules/imaxabs (Makefile.am): Likewise.
17783         * modules/imaxdiv (Makefile.am): Likewise.
17784         * modules/inet_ntop (Makefile.am): Likewise.
17785         * modules/inet_pton (Makefile.am): Likewise.
17786         * modules/intprops (Makefile.am): Likewise.
17787         * modules/inttostr (Makefile.am): Likewise.
17788         * modules/inttypes (Makefile.am): Likewise.
17789         * modules/isapipe (Makefile.am): Likewise.
17790         * modules/javaversion (Makefile.am): Likewise.
17791         * modules/lchmod (Makefile.am): Likewise.
17792         * modules/lchown (Makefile.am): Likewise.
17793         * modules/localcharset (Makefile.am): Likewise.
17794         * modules/long-options (Makefile.am): Likewise.
17795         * modules/lstat (Makefile.am): Likewise.
17796         * modules/malloc (Makefile.am): Likewise.
17797         * modules/mathl (Makefile.am): Likewise.
17798         * modules/mbchar (Makefile.am): Likewise.
17799         * modules/md2 (Makefile.am): Likewise.
17800         * modules/md4 (Makefile.am): Likewise.
17801         * modules/md5 (Makefile.am): Likewise.
17802         * modules/memcasecmp (Makefile.am): Likewise.
17803         * modules/memchr (Makefile.am): Likewise.
17804         * modules/memcmp (Makefile.am): Likewise.
17805         * modules/memcoll (Makefile.am): Likewise.
17806         * modules/memcpy (Makefile.am): Likewise.
17807         * modules/memmem (Makefile.am): Likewise.
17808         * modules/memmove (Makefile.am): Likewise.
17809         * modules/mempcpy (Makefile.am): Likewise.
17810         * modules/memrchr (Makefile.am): Likewise.
17811         * modules/memset (Makefile.am): Likewise.
17812         * modules/memxor (Makefile.am): Likewise.
17813         * modules/mkancesdirs (Makefile.am): Likewise.
17814         * modules/mkdir-p (Makefile.am): Likewise.
17815         * modules/mkdir (Makefile.am): Likewise.
17816         * modules/mkdtemp (Makefile.am): Likewise.
17817         * modules/mkstemp (Makefile.am): Likewise.
17818         * modules/mktime (Makefile.am): Likewise.
17819         * modules/modechange (Makefile.am): Likewise.
17820         * modules/mountlist (Makefile.am): Likewise.
17821         * modules/nanosleep (Makefile.am): Likewise.
17822         * modules/obstack (Makefile.am): Likewise.
17823         * modules/openat (Makefile.am): Likewise.
17824         * modules/pagealign_alloc (Makefile.am): Likewise.
17825         * modules/pathmax (Makefile.am): Likewise.
17826         * modules/physmem (Makefile.am): Likewise.
17827         * modules/poll (Makefile.am): Likewise.
17828         * modules/posixtm (Makefile.am): Likewise.
17829         * modules/posixver (Makefile.am): Likewise.
17830         * modules/putenv (Makefile.am): Likewise.
17831         * modules/quote (Makefile.am): Likewise.
17832         * modules/quotearg (Makefile.am): Likewise.
17833         * modules/raise (Makefile.am): Likewise.
17834         * modules/read-file (Makefile.am): Likewise.
17835         * modules/readline (Makefile.am): Likewise.
17836         * modules/readlink (Makefile.am): Likewise.
17837         * modules/readtokens (Makefile.am): Likewise.
17838         * modules/readutmp (Makefile.am): Likewise.
17839         * modules/realloc (Makefile.am): Likewise.
17840         * modules/regex (Makefile.am): Likewise.
17841         * modules/rename-dest-slash (Makefile.am): Likewise.
17842         * modules/rename (Makefile.am): Likewise.
17843         * modules/rijndael (Makefile.am): Likewise.
17844         * modules/rmdir (Makefile.am): Likewise.
17845         * modules/rpmatch (Makefile.am): Likewise.
17846         * modules/safe-read (Makefile.am): Likewise.
17847         * modules/safe-write (Makefile.am): Likewise.
17848         * modules/same-inode (Makefile.am): Likewise.
17849         * modules/same (Makefile.am): Likewise.
17850         * modules/save-cwd (Makefile.am): Likewise.
17851         * modules/savedir (Makefile.am): Likewise.
17852         * modules/setenv (Makefile.am): Likewise.
17853         * modules/settime (Makefile.am): Likewise.
17854         * modules/sha1 (Makefile.am): Likewise.
17855         * modules/sig2str (Makefile.am): Likewise.
17856         * modules/snprintf (Makefile.am): Likewise.
17857         * modules/stat-macros (Makefile.am): Likewise.
17858         * modules/stat-time (Makefile.am): Likewise.
17859         * modules/stdbool (Makefile.am): Likewise.
17860         * modules/stdint (Makefile.am): Likewise.
17861         * modules/stdlib-safer (Makefile.am): Likewise.
17862         * modules/stpcpy (Makefile.am): Likewise.
17863         * modules/stpncpy (Makefile.am): Likewise.
17864         * modules/strcase (Makefile.am): Likewise.
17865         * modules/strcasestr (Makefile.am): Likewise.
17866         * modules/strchrnul (Makefile.am): Likewise.
17867         * modules/strcspn (Makefile.am): Likewise.
17868         * modules/strdup (Makefile.am): Likewise.
17869         * modules/strerror (Makefile.am): Likewise.
17870         * modules/strftime (Makefile.am): Likewise.
17871         * modules/strndup (Makefile.am): Likewise.
17872         * modules/strnlen (Makefile.am): Likewise.
17873         * modules/strpbrk (Makefile.am): Likewise.
17874         * modules/strsep (Makefile.am): Likewise.
17875         * modules/strstr (Makefile.am): Likewise.
17876         * modules/strtod (Makefile.am): Likewise.
17877         * modules/strtoimax (Makefile.am): Likewise.
17878         * modules/strtok_r (Makefile.am): Likewise.
17879         * modules/strtol (Makefile.am): Likewise.
17880         * modules/strtoll (Makefile.am): Likewise.
17881         * modules/strtoul (Makefile.am): Likewise.
17882         * modules/strtoull (Makefile.am): Likewise.
17883         * modules/strtoumax (Makefile.am): Likewise.
17884         * modules/strverscmp (Makefile.am): Likewise.
17885         * modules/sys_socket (Makefile.am): Likewise.
17886         * modules/sys_stat (Makefile.am): Likewise.
17887         * modules/sysexits (Makefile.am): Likewise.
17888         * modules/time_r (Makefile.am): Likewise.
17889         * modules/timegm (Makefile.am): Likewise.
17890         * modules/timespec (Makefile.am): Likewise.
17891         * modules/tmpfile-safer (Makefile.am): Likewise.
17892         * modules/trim (Makefile.am): Likewise.
17893         * modules/unistd-safer (Makefile.am): Likewise.
17894         * modules/unlinkdir (Makefile.am): Likewise.
17895         * modules/unlocked-io (Makefile.am): Likewise.
17896         * modules/userspec (Makefile.am): Likewise.
17897         * modules/utime (Makefile.am): Likewise.
17898         * modules/utimecmp (Makefile.am): Likewise.
17899         * modules/utimens (Makefile.am): Likewise.
17900         * modules/vasnprintf (Makefile.am): Likewise.
17901         * modules/vasprintf (Makefile.am): Likewise.
17902         * modules/vsnprintf (Makefile.am): Likewise.
17903         * modules/xalloc (Makefile.am): Likewise.
17904         * modules/xgetcwd (Makefile.am): Likewise.
17905         * modules/xnanosleep (Makefile.am): Likewise.
17906         * modules/xreadlink (Makefile.am): Likewise.
17907         * modules/xstrtod (Makefile.am): Likewise.
17908         * modules/xstrtol (Makefile.am): Likewise.
17909         * modules/xstrtold (Makefile.am): Likewise.
17910         * modules/yesno (Makefile.am): Likewise.
17911         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
17912
17913 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
17914
17915         * modules/error (Makefile.am): Distribute files through
17916         EXTRA_DIST, not lib_SOURCES.
17917
17918 2006-10-12  Eric Blake  <ebb9@byu.net>
17919
17920         * modules/error (Makefile.am): Distribute files in /lib.
17921         * modules/obstack (Makefile.am): Likewise.
17922
17923 2006-10-12  Bruno Haible  <bruno@clisp.org>
17924
17925         * modules/acl (Makefile.am): Distribute all files in lib/ through
17926         EXTRA_DIST.
17927         * modules/arcfour (Makefile.am): Likewise.
17928         * modules/arctwo (Makefile.am): Likewise.
17929         * modules/argmatch (Makefile.am): Likewise.
17930         * modules/argz (Makefile.am): Likewise.
17931         * modules/atexit (Makefile.am): Likewise.
17932         * modules/backupfile (Makefile.am): Likewise.
17933         * modules/c-strtod (Makefile.am): Likewise.
17934         * modules/c-strtold (Makefile.am): Likewise.
17935         * modules/calloc (Makefile.am): Likewise.
17936         * modules/canon-host (Makefile.am): Likewise.
17937         * modules/canonicalize (Makefile.am): Likewise.
17938         * modules/chdir-long (Makefile.am): Likewise.
17939         * modules/chdir-safer (Makefile.am): Likewise.
17940         * modules/check-version (Makefile.am): Likewise.
17941         * modules/chown (Makefile.am): Likewise.
17942         * modules/cloexec (Makefile.am): Likewise.
17943         * modules/close-stream (Makefile.am): Likewise.
17944         * modules/closeout (Makefile.am): Likewise.
17945         * modules/crc (Makefile.am): Likewise.
17946         * modules/cycle-check (Makefile.am): Likewise.
17947         * modules/des (Makefile.am): Likewise.
17948         * modules/dirfd (Makefile.am): Likewise.
17949         * modules/dirname (Makefile.am): Likewise.
17950         * modules/dup2 (Makefile.am): Likewise.
17951         * modules/euidaccess (Makefile.am): Likewise.
17952         * modules/exclude (Makefile.am): Likewise.
17953         * modules/exitfail (Makefile.am): Likewise.
17954         * modules/fcntl-safer (Makefile.am): Likewise.
17955         * modules/file-type (Makefile.am): Likewise.
17956         * modules/fileblocks (Makefile.am): Likewise.
17957         * modules/filemode (Makefile.am): Likewise.
17958         * modules/filenamecat (Makefile.am): Likewise.
17959         * modules/fnmatch (Makefile.am): Likewise.
17960         * modules/fopen-safer (Makefile.am): Likewise.
17961         * modules/fpending (Makefile.am): Likewise.
17962         * modules/fprintftime (Makefile.am): Likewise.
17963         * modules/free (Makefile.am): Likewise.
17964         * modules/fsusage (Makefile.am): Likewise.
17965         * modules/ftruncate (Makefile.am): Likewise.
17966         * modules/fts (Makefile.am): Likewise.
17967         * modules/gc (Makefile.am): Likewise.
17968         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
17969         * modules/getaddrinfo (Makefile.am): Likewise.
17970         * modules/getcwd (Makefile.am): Likewise.
17971         * modules/getdelim (Makefile.am): Likewise.
17972         * modules/getdomainname (Makefile.am): Likewise.
17973         * modules/getgroups (Makefile.am): Likewise.
17974         * modules/gethostname (Makefile.am): Likewise.
17975         * modules/gethrxtime (Makefile.am): Likewise.
17976         * modules/getline (Makefile.am): Likewise.
17977         * modules/getloadavg (Makefile.am): Likewise.
17978         * modules/getlogin_r (Makefile.am): Likewise.
17979         * modules/getopt (Makefile.am): Likewise.
17980         * modules/getpass (Makefile.am): Likewise.
17981         * modules/getpass-gnu (Makefile.am): Likewise.
17982         * modules/getsubopt (Makefile.am): Likewise.
17983         * modules/gettime (Makefile.am): Likewise.
17984         * modules/gettimeofday (Makefile.am): Likewise.
17985         * modules/getugroups (Makefile.am): Likewise.
17986         * modules/getusershell (Makefile.am): Likewise.
17987         * modules/glob (Makefile.am): Likewise.
17988         * modules/group-member (Makefile.am): Likewise.
17989         * modules/hard-locale (Makefile.am): Likewise.
17990         * modules/hash (Makefile.am): Likewise.
17991         * modules/hmac-md5 (Makefile.am): Likewise.
17992         * modules/hmac-sha1 (Makefile.am): Likewise.
17993         * modules/human (Makefile.am): Likewise.
17994         * modules/idcache (Makefile.am): Likewise.
17995         * modules/imaxabs (Makefile.am): Likewise.
17996         * modules/imaxdiv (Makefile.am): Likewise.
17997         * modules/inet_ntop (Makefile.am): Likewise.
17998         * modules/inet_pton (Makefile.am): Likewise.
17999         * modules/inttostr (Makefile.am): Likewise.
18000         * modules/isapipe (Makefile.am): Likewise.
18001         * modules/lchown (Makefile.am): Likewise.
18002         * modules/long-options (Makefile.am): Likewise.
18003         * modules/lstat (Makefile.am): Likewise.
18004         * modules/malloc (Makefile.am): Likewise.
18005         * modules/mathl (Makefile.am): Likewise.
18006         * modules/mbchar (Makefile.am): Likewise.
18007         * modules/md2 (Makefile.am): Likewise.
18008         * modules/md4 (Makefile.am): Likewise.
18009         * modules/md5 (Makefile.am): Likewise.
18010         * modules/memcasecmp (Makefile.am): Likewise.
18011         * modules/memchr (Makefile.am): Likewise.
18012         * modules/memcmp (Makefile.am): Likewise.
18013         * modules/memcoll (Makefile.am): Likewise.
18014         * modules/memcpy (Makefile.am): Likewise.
18015         * modules/memmem (Makefile.am): Likewise.
18016         * modules/memmove (Makefile.am): Likewise.
18017         * modules/mempcpy (Makefile.am): Likewise.
18018         * modules/memrchr (Makefile.am): Likewise.
18019         * modules/memset (Makefile.am): Likewise.
18020         * modules/memxor (Makefile.am): Likewise.
18021         * modules/mkancesdirs (Makefile.am): Likewise.
18022         * modules/mkdir (Makefile.am): Likewise.
18023         * modules/mkdir-p (Makefile.am): Likewise.
18024         * modules/mkdtemp (Makefile.am): Likewise.
18025         * modules/mkstemp (Makefile.am): Likewise.
18026         * modules/mktime (Makefile.am): Likewise.
18027         * modules/modechange (Makefile.am): Likewise.
18028         * modules/mountlist (Makefile.am): Likewise.
18029         * modules/nanosleep (Makefile.am): Likewise.
18030         * modules/openat (Makefile.am): Likewise.
18031         * modules/pagealign_alloc (Makefile.am): Likewise.
18032         * modules/physmem (Makefile.am): Likewise.
18033         * modules/poll (Makefile.am): Likewise.
18034         * modules/posixtm (Makefile.am): Likewise.
18035         * modules/posixver (Makefile.am): Likewise.
18036         * modules/putenv (Makefile.am): Likewise.
18037         * modules/quote (Makefile.am): Likewise.
18038         * modules/quotearg (Makefile.am): Likewise.
18039         * modules/raise (Makefile.am): Likewise.
18040         * modules/read-file (Makefile.am): Likewise.
18041         * modules/readline (Makefile.am): Likewise.
18042         * modules/readlink (Makefile.am): Likewise.
18043         * modules/readtokens (Makefile.am): Likewise.
18044         * modules/readutmp (Makefile.am): Likewise.
18045         * modules/realloc (Makefile.am): Likewise.
18046         * modules/regex (Makefile.am): Likewise.
18047         * modules/rename (Makefile.am): Likewise.
18048         * modules/rename-dest-slash (Makefile.am): Likewise.
18049         * modules/rijndael (Makefile.am): Likewise.
18050         * modules/rmdir (Makefile.am): Likewise.
18051         * modules/rpmatch (Makefile.am): Likewise.
18052         * modules/safe-read (Makefile.am): Likewise.
18053         * modules/safe-write (Makefile.am): Likewise.
18054         * modules/same (Makefile.am): Likewise.
18055         * modules/save-cwd (Makefile.am): Likewise.
18056         * modules/savedir (Makefile.am): Likewise.
18057         * modules/setenv (Makefile.am): Likewise.
18058         * modules/settime (Makefile.am): Likewise.
18059         * modules/sha1 (Makefile.am): Likewise.
18060         * modules/sig2str (Makefile.am): Likewise.
18061         * modules/snprintf (Makefile.am): Likewise.
18062         * modules/stdlib-safer (Makefile.am): Likewise.
18063         * modules/stpcpy (Makefile.am): Likewise.
18064         * modules/stpncpy (Makefile.am): Likewise.
18065         * modules/strcase (Makefile.am): Likewise.
18066         * modules/strcasestr (Makefile.am): Likewise.
18067         * modules/strchrnul (Makefile.am): Likewise.
18068         * modules/strcspn (Makefile.am): Likewise.
18069         * modules/strdup (Makefile.am): Likewise.
18070         * modules/strerror (Makefile.am): Likewise.
18071         * modules/strftime (Makefile.am): Likewise.
18072         * modules/strndup (Makefile.am): Likewise.
18073         * modules/strnlen (Makefile.am): Likewise.
18074         * modules/strpbrk (Makefile.am): Likewise.
18075         * modules/strsep (Makefile.am): Likewise.
18076         * modules/strstr (Makefile.am): Likewise.
18077         * modules/strtod (Makefile.am): Likewise.
18078         * modules/strtoimax (Makefile.am): Likewise.
18079         * modules/strtok_r (Makefile.am): Likewise.
18080         * modules/strtol (Makefile.am): Likewise.
18081         * modules/strtoll (Makefile.am): Likewise.
18082         * modules/strtoul (Makefile.am): Likewise.
18083         * modules/strtoull (Makefile.am): Likewise.
18084         * modules/strtoumax (Makefile.am): Likewise.
18085         * modules/strverscmp (Makefile.am): Likewise.
18086         * modules/time_r (Makefile.am): Likewise.
18087         * modules/timegm (Makefile.am): Likewise.
18088         * modules/tmpfile-safer (Makefile.am): Likewise.
18089         * modules/unistd-safer (Makefile.am): Likewise.
18090         * modules/unlinkdir (Makefile.am): Likewise.
18091         * modules/userspec (Makefile.am): Likewise.
18092         * modules/utime (Makefile.am): Likewise.
18093         * modules/utimecmp (Makefile.am): Likewise.
18094         * modules/utimens (Makefile.am): Likewise.
18095         * modules/vasnprintf (Makefile.am): Likewise.
18096         * modules/vasprintf (Makefile.am): Likewise.
18097         * modules/vsnprintf (Makefile.am): Likewise.
18098         * modules/xalloc (Makefile.am): Likewise.
18099         * modules/xgetcwd (Makefile.am): Likewise.
18100         * modules/xnanosleep (Makefile.am): Likewise.
18101         * modules/xreadlink (Makefile.am): Likewise.
18102         * modules/xstrtod (Makefile.am): Likewise.
18103         * modules/xstrtol (Makefile.am): Likewise.
18104         * modules/xstrtold (Makefile.am): Likewise.
18105         * modules/yesno (Makefile.am): Likewise.
18106
18107 2006-10-12  Jim Meyering  <jim@meyering.net>
18108
18109         * m4/getloadavg.m4: Revert the change below.
18110
18111         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
18112         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
18113         fail with a symlink, which is what coreutils' ./bootstrap now
18114         creates by default.
18115
18116 2006-10-12  Bruno Haible  <bruno@clisp.org>
18117
18118         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
18119         mingw.
18120         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
18121         MSVC and mingw explicitly.
18122
18123 2006-10-11  Simon Josefsson  <jas@extundo.com>
18124             Bruno Haible  <bruno@clisp.org>
18125
18126         Add support for multiple gnulib-tool invocations in the scope of a
18127         single configure.ac file.
18128         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
18129         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
18130         with the same contents as the _LIBADD variable.
18131         (func_emit_initmacro_start, func_emit_initmacro_end,
18132         func_emit_initmacro_done): New functions.
18133         (func_import, func_create_testdir): Invoke them. Allow the identifiers
18134         gl_LIBOBJS and gl_LTLIBOBJS.
18135
18136 2006-10-11  Bruno Haible  <bruno@clisp.org>
18137
18138         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
18139         (func_create_testdir): Don't create po/Makefile.am, don't invoke
18140         autoreconf. Instead, invoke autopoint explicitly but move back the
18141         *.m4 files from gnulib.
18142
18143 2006-10-11  Bruno Haible  <bruno@clisp.org>
18144
18145         * gnulib-tool (func_usage): Make module names after --create-testdir
18146         optional.
18147         (func_create_testdir): If no module was specified, use nearly all
18148         modules.
18149
18150 2006-10-12  Jim Meyering  <jim@meyering.net>
18151
18152         Big performance improvement for fts-based tools that use FTS_NOSTAT.
18153         Avoid spurious inode-mismatch problems on non-POSIX file systems.
18154         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
18155         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
18156         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
18157         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
18158         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
18159         (fts_set_stat_required): New function.
18160         (fts_open): Defer the calls to fts_stat, if possible or requested.
18161         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
18162         into fts_stat itself.
18163         (fts_read): Perform any required (deferred) fts_stat call.
18164         (fts_build): Likewise, for the directory we're about to open and read.
18165         In the readdir loop, carefully decide whether each entry will require
18166         an eventual call to fts_stat, using dirent.d_type info if available.
18167         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
18168         a command line argument into this function.  Update all callers.
18169         Map a return value of FTS_DOT to FTS_D for a command line argument.
18170         * modules/fts (Depends-on): Add d-type.  Alphabetize.
18171         Thanks to Miklos Szeredi for his tenacity and for the initial
18172         bug report about "find" failing on a FUSE-based file system.
18173
18174         * lib/fts.c (fts_open): Use consistent indentation.
18175
18176 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
18177
18178         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
18179         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
18180         reported by Jim Meyering.  All uses of cache variables renamed
18181         to match Autoconf's.
18182         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
18183         the other one.
18184
18185         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
18186         Fix misspelling in diagnostic.
18187
18188 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18189
18190         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
18191         defined.  Problem reported by Matthew Woehlke.
18192
18193         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
18194         Add support for Tandem NonStop R series.
18195         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
18196         Use new macro.
18197
18198         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
18199         (has_trailing_slash): Omit size arg; all callers changed.
18200         Omit 'inline', since it doesn't help performance and we'd
18201         need to configure it.
18202         Don't count //, ///, etc. as having a trailing slash.
18203         As a side effect, this removes a C99ism reported by Matthew Woehlke.
18204         (rpl_rename_dest_slash): On failure, use rename's errno rather
18205         than (in some cases) an incorrect or junk errno.
18206         Simplify code by removing need to compute length; this does
18207         cause it to make two passes instead of one over the file name,
18208         but it's worth it.
18209
18210         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
18211         change, since Autoconf's version may no longer be appropriate now
18212         that we are using CVS Autoconf's version.  Add support for Tandem.
18213
18214 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18215             Bruno Haible  <bruno@clisp.org>
18216
18217         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
18218         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
18219         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
18220         gl_AC_TYPE_LONG_LONG.
18221
18222         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
18223         instead of HAVE_LONG_LONG.
18224         * lib/printf-args.c (printf_fetchargs): Likewise.
18225         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18226         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18227         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
18228         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
18229         gl_AC_TYPE_LONG_LONG.
18230
18231 2006-10-11  Bruno Haible  <bruno@clisp.org>
18232
18233         * m4/longlong.m4: Add comments.
18234         * m4/ulonglong.m4: Likewise.
18235
18236 2006-10-10  Bruno Haible  <bruno@clisp.org>
18237
18238         Make it possible to #define stpcpy, strdup to aliases.
18239         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
18240         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
18241
18242 2006-10-10  Bruno Haible  <bruno@clisp.org>
18243
18244         Make it possible to #define gcd to an alias.
18245         * lib/gcd.c: Include config.h.
18246
18247 2006-10-10  Bruno Haible  <bruno@clisp.org>
18248
18249         Make it possible to #define c_isascii to an alias.
18250         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
18251         defined. Undefine the macros before defining them, to avoid gcc
18252         warnings.
18253         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
18254         define NO_C_CTYPE_MACROS early.
18255
18256 2006-10-10  Bruno Haible  <bruno@clisp.org>
18257
18258         Make it possible to #define set_program_name to an alias.
18259         * lib/progname.c: Don't undefine set_program_name; instead, undefine
18260         ENABLE_RELOCATABLE early.
18261
18262 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18263
18264         Port to Tandem NSK OSS, which has 64-bit signed int but at most
18265         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
18266         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
18267         More generally, don't assume that 64-bit signed int is available
18268         if unsigned int is, and vice versa.
18269         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
18270         unsigned symbols, not on their signed counterparts.
18271         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
18272         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
18273         (UINT64_C, UINTMAX_C):
18274         Likewise.
18275         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
18276         unsigned counterparts.
18277         (Have_long_long, Unsigned): New macros.
18278         (Int): Renamed from INT.
18279         (strtoimax): Use the new macros.
18280         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
18281         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
18282         * modules/inttypes (inttypes.h): Substitute
18283         HAVE_UNSIGNED_LONG_LONG_INT.
18284         * modules/stdint (stdint.h): Likewise.
18285         (Files): Add m4/ulonglong.m4.
18286
18287 2006-10-10  Bruno Haible  <bruno@clisp.org>
18288
18289         Fix a gcc -Wshadow warning.
18290         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
18291         to 'bucket'.
18292         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
18293         gl_linked_indexof_from_to): Likewise.
18294         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
18295         Likewise.
18296         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
18297         Likewise.
18298         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
18299         Reported by Eric Blake.
18300
18301 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
18302
18303         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
18304         for NetBSD.  Problem reported by Bruno Haible.
18305
18306 2006-10-09  Jim Meyering  <jim@meyering.net>
18307
18308         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
18309         Patch from Bruno Haible.
18310
18311 2006-10-09  Jim Meyering  <jim@meyering.net>
18312
18313         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
18314         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
18315         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
18316
18317 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18318
18319         Don't include <config.h> twice; this doesn't work in some cases,
18320         e.g., when config.h has "#define intmax_t long long int" and
18321         we include <config.h>, <inttypes.h>, <config.h> in that order.
18322         Problem reported by Matthew Woehlke in:
18323         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
18324         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
18325         * lib/fts-cycle.c: Don't include config.h.
18326         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
18327         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
18328         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
18329         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
18330         inttypes.h.
18331         * lib/xstrtoumax.c: Likewise.
18332         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
18333         __strtol and the like, so that this module is more like its siblings.
18334         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
18335         Remove; no longer needed now that we assume gnulib inttypes.h.
18336
18337 2006-10-08  Bruno Haible  <bruno@clisp.org>
18338
18339         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
18340         option.
18341
18342 2006-10-07  Jim Meyering  <jim@meyering.net>
18343
18344         * modules/inttypes (inttypes.h): Revert what seems to have been
18345         an inadvertent part of today's change: use "|", not "/" in the
18346         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
18347
18348 2006-10-07  Bruno Haible  <bruno@clisp.org>
18349
18350         * modules/sublist: New file.
18351
18352 2006-10-07  Bruno Haible  <bruno@clisp.org>
18353
18354         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
18355         * modules/argz (argz.h): Likewise.
18356         * modules/arpa_inet (arpa/inet.h): Likewise.
18357         * modules/byteswap (byteswap.h): Likewise.
18358         * modules/configmake (configmake.h): Likewise.
18359         * modules/fcntl (fcntl.h): Likewise.
18360         * modules/fnmatch (fnmatch.h): Likewise.
18361         * modules/getopt (getopt.h): Likewise.
18362         * modules/glob (glob.h): Likewise.
18363         * modules/inttypes (inttypes.h): Likewise.
18364         * modules/netinet_in (netinet/in.h): Likewise.
18365         * modules/poll (poll.h): Likewise.
18366         * modules/stdbool (stdbool.h): Likewise.
18367         * modules/stdint (stdint.h): Likewise.
18368         * modules/sys_select (sys/select.h): Likewise.
18369         * modules/sys_socket (sys/socket.h): Likewise.
18370         * modules/sys_stat (sys/stat.h): Likewise.
18371         * modules/sysexits (sysexits.h): Likewise.
18372         * modules/unistd (unistd.h): Likewise.
18373         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18374         Add a "DO NOT EDIT" comment to the generated file.
18375         (func_import): Likewise for gnulib-comp.m4.
18376
18377 2006-10-07  Bruno Haible  <bruno@clisp.org>
18378
18379         * lib/gl_sublist.h: New file.
18380         * lib/gl_sublist.c: New file.
18381
18382 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
18383
18384         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
18385         name (relative to the original working directory) and the file
18386         name component (relative to the temporary working directory).  All
18387         callers changed.
18388         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
18389         * lib/mkdir-p.c (make_dir_parents): Likewise.
18390         * lib/mkdir-p.h (make_dir_parents): Likewise.
18391
18392 2006-10-06  Eric Blake  <ebb9@byu.net>
18393
18394         Define several macros for use by the clean-temp module.
18395         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
18396         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
18397         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
18398
18399         * lib/clean-temp.h (close_stream_temp): New declaration.
18400         * lib/clean-temp.c (includes): Pull in headers according to what
18401         other modules are in use.
18402         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
18403
18404 2006-10-06  Bruno Haible  <bruno@clisp.org>
18405
18406         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
18407         instead of fopen, fwriteerror.
18408
18409 2006-10-06  Bruno Haible  <bruno@clisp.org>
18410
18411         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
18412         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
18413         int.
18414         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
18415         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
18416         Return an error indicator.
18417         Suggested by Eric Blake.
18418
18419 2006-10-06  Bruno Haible  <bruno@clisp.org>
18420
18421         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
18422         Reported by Eric Blake.
18423
18424 2006-10-06  Bruno Haible  <bruno@clisp.org>
18425
18426         * modules/closeout (Description): Mention stderr too.
18427
18428 2006-10-06  Bruno Haible  <bruno@clisp.org>
18429         and Paul Eggert  <eggert@cs.ucla.edu>
18430
18431         * lib/closeout.c (close_stdout): Also close stderr.
18432         * lib/closeout.h: Update comment.
18433
18434 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18435
18436         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
18437         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
18438         * lib/dirchownmod.c: Include lchown.h.
18439         * lib/lchown.c: Don't include files that lchown.h now includes.
18440         Don't declare chown, since lchown.h now does that.
18441         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
18442         (lchown): Define to rpl_chown if lchown is declared but
18443         does not exist.  Declare using a prototype if lchown is not
18444         declared.  Add a copyright notice.
18445         * lib/mkstemp.h: Include <unistd.h>.
18446         * lib/openat.c: Include lchown.h.
18447
18448         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
18449         we now test for that separately.
18450         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
18451         rather than O_NOFOLLOW, when testing whether it's possible to
18452         avoid a race condition reliably.
18453         * lib/savewd.c (savewd_chdir): Likewise.
18454
18455         Remove macros that are no longer needed now that stdint.h is
18456         reliable.
18457         * lib/fsusage.c (UINTMAX_MAX): Remove.
18458         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
18459         * lib/utimecmp.c (SIZE_MAX): Remove.
18460
18461         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
18462
18463         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
18464         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
18465         O_NOATIME works.
18466
18467 2006-10-05  Bruno Haible  <bruno@clisp.org>
18468
18469         * lib/gl_list.h (gl_sortedlist_search_from_to,
18470         gl_sortedlist_indexof_from_to): New declarations.
18471         (gl_list_implementation): New fields sortedlist_search_from_to,
18472         sortedlist_indexof_from_to.
18473         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
18474         inline functions.
18475         * lib/gl_list.c (gl_sortedlist_search_from_to,
18476         gl_sortedlist_indexof_from_to): New functions.
18477         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
18478         function.
18479         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
18480         (gl_array_sortedlist_search_from_to): New function.
18481         (gl_array_list_implementation): Update.
18482         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
18483         function.
18484         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
18485         (gl_carray_sortedlist_search_from_to): New function.
18486         (gl_carray_list_implementation): Update.
18487         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
18488         gl_linked_sortedlist_indexof_from_to): New functions.
18489         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
18490         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
18491         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
18492         gl_tree_sortedlist_indexof_from_to): New functions.
18493         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
18494         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
18495         Update.
18496         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
18497         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
18498         Update.
18499
18500 2006-10-05  Bruno Haible  <bruno@clisp.org>
18501
18502         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
18503         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
18504         (struct gl_list_implementation): Add fields search_from_to,
18505         indexof_from_to. Remove fields search, indexof.
18506         (gl_list_search): Use the search_from_to method.
18507         (gl_list_search_from, gl_list_search_from_to): New functions.
18508         (gl_list_indexof): Use the indexof_from_to method.
18509         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
18510         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
18511         (gl_list_search_from, gl_list_search_from_to): New functions.
18512         (gl_list_indexof): Use the indexof_from_to method.
18513         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
18514         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
18515         gl_array_indexof. Add start_index, end_index arguments.
18516         (gl_array_search_from_to): Renamed from gl_array_search. Add
18517         start_index, end_index arguments.
18518         (gl_array_remove, gl_array_list_implementation): Update.
18519         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
18520         gl_carray_indexof. Add start_index, end_index arguments.
18521         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
18522         start_index, end_index arguments.
18523         (gl_carray_remove, gl_carray_list_implementation): Update.
18524         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
18525         gl_linked_search. Add start_index, end_index arguments.
18526         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
18527         start_index, end_index arguments.
18528         (gl_linked_remove): Update.
18529         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
18530         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
18531         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
18532         field to 'size_t'.
18533         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
18534         gl_tree_search. Add start_index, end_index arguments.
18535         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
18536         start_index, end_index arguments.
18537         (gl_tree_remove): Update.
18538         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
18539         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
18540         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
18541         function.
18542         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
18543         gl_tree_search. Add start_index, end_index arguments.
18544         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
18545         start_index, end_index arguments.
18546         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
18547         Update.
18548         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
18549
18550 2006-10-05  Bruno Haible  <bruno@clisp.org>
18551
18552         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
18553
18554         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
18555         fwriteerror_temp): New declarations.
18556         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
18557         (descriptors): New variable.
18558         (cleanup): First, close the descriptors.
18559         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
18560         fclose_temp, fwriteerror_temp): New functions.
18561
18562 2006-10-04  Jim Meyering  <jim@meyering.net>
18563
18564         * lib/fts.c (fts_open): Tiny comment change.
18565
18566 2006-10-04  Bruno Haible  <bruno@clisp.org>
18567
18568         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
18569         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
18570         gl_LOCK_BODY.
18571         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
18572         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
18573         gl_LOCK_EARLY_BODY.
18574         (gl_LOCK): Require gl_LOCK_BODY.
18575
18576 2006-10-04  Bruno Haible  <bruno@clisp.org>
18577
18578         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
18579         (gl_oset_search_atleast): New declaration.
18580         (struct gl_oset_implementation): Add field 'search_atleast'.
18581         (gl_oset_search_atleast): New inline function.
18582         * lib/gl_oset.c (gl_oset_search_atleast): New function.
18583         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
18584         (gl_array_oset_implementation): Update.
18585         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
18586         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
18587         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
18588
18589 2006-10-04  Bruno Haible  <bruno@clisp.org>
18590
18591         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
18592
18593 2006-10-03  Bruno Haible  <bruno@clisp.org>
18594
18595         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
18596         from gl_avltreehash_list_implementation.
18597
18598 2006-10-03  Bruno Haible  <bruno@clisp.org>
18599
18600         * lib/gl_oset.c (gl_oset_add): Fix return type.
18601
18602 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
18603
18604         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
18605
18606 2006-10-02  Eric Blake  <ebb9@byu.net>
18607
18608         * modules/strnlen (Depends-on): Add extensions.
18609
18610 2006-10-02  Eric Blake  <ebb9@byu.net>
18611
18612         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
18613         definition in 2.60+.
18614
18615 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
18616
18617         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
18618         checks.
18619
18620 2006-10-02  Bruno Haible  <bruno@clisp.org>
18621
18622         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
18623         to the AUTOMAKE_OPTIONS.
18624         Reported by Jim Meyering.
18625
18626 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
18627
18628         Work around bug in Solaris 10 /proc file system:
18629         /proc/self/fd/NNN/.. isn't the parent directory of
18630         the directory whose file descriptor is NNN.  This needs to
18631         be worked around at run time, not compile time, since a
18632         program might be built on Solaris 8, where things work, and
18633         run on Solaris 10.
18634         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
18635         to use the following interface instead:
18636         (OPENAT_BUFFER_SIZE): New macro.
18637         (openat_proc_name): New function.
18638         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
18639         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
18640         Likewise.
18641         * lib/openat-proc.c: New file.
18642         * modules/openat (Files): Add lib/openat-proc.c.
18643         (Depends-on): Add same-inode, stdbool.
18644         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
18645
18646 2006-09-29  Bruno Haible  <bruno@clisp.org>
18647
18648         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
18649         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
18650         argument. Set stdout_closed before testing for ferror, not after.
18651         (fwriteerror, fwriteerror_no_ebadf): New functions.
18652
18653 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18654
18655         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
18656
18657 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
18658
18659         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
18660         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
18661
18662 2006-09-28  Jim Meyering  <jim@meyering.net>
18663
18664         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
18665         Include <unistd.h>.
18666
18667 2006-09-28  Bruno Haible  <bruno@clisp.org>
18668
18669         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
18670         * modules/linkedhash-list (Depends-on): Likewise.
18671         * modules/rbtreehash-list (Depends-on): Likewise.
18672
18673 2006-09-28  Bruno Haible  <bruno@clisp.org>
18674
18675         * lib/strndup.h: Simplify the redefinition of strndup.
18676         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
18677         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
18678
18679 2006-09-28  Bruno Haible  <bruno@clisp.org>
18680
18681         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
18682         * lib/gl_linkedhash_list.c: Likewise.
18683         * lib/gl_rbtreehash_list.c: Likewise.
18684
18685 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
18686
18687         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
18688         getaddrinfo.
18689
18690         * lib/__fpending.h: Don't include <stdio_ext.h> unless
18691         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
18692         it causes <stdio_ext.h> to cause a compile-time error.
18693         Problem reported by Nelson H. F. Beebe.
18694         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
18695         of HAVE_DECL___PENDING.
18696
18697         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
18698         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
18699         declaration.
18700
18701 2006-09-27  Jim Meyering  <jim@meyering.net>
18702
18703         This file could end up with a definition for a function
18704         named __strndup, rather than rpl_strndup on a system with
18705         incomplete weak_alias support.
18706         * lib/strndup.c (strndup): Rename from __strndup.
18707         Remove #defines that used to map __strndup to strndup.
18708         Don't use K&R prototypes.
18709         Remove LIBC-related code, since this file is not sync'd with glibc.
18710         * lib/strndup.h: Revamp, accordingly.
18711         * m4/strndup.m4: Modernize.
18712
18713 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
18714
18715         * modules/savewd (Depends-on): Add 'raise'.
18716         * lib/savewd.c: Include <signal.h>, for 'raise'.
18717
18718 2006-09-26  Jim Meyering  <jim@meyering.net>
18719
18720         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
18721         when we detect Darwin 8.7.0's acl_get_file bug.
18722         Rearrange to perform the new (below) run-test while $LIBS
18723         contains any acl-related library.  Set USE_ACL at the end.
18724         (gl_ACL_GET_FILE): New function.
18725
18726 2006-09-26  Eric Blake  <ebb9@byu.net>
18727
18728         * lib/verror.c: Include <config.h> unconditionally.
18729
18730 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
18731
18732         * modules/clock-time (Maintainer): Add self.
18733         * modules/getlogin_r (Depends-on): Add extensions.
18734
18735 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18736
18737         * modules/clock-time: New module.
18738         * modules/nanosleep (Depends-on): Add clock-time.
18739         * modules/gethrxtime (Depends-on): Likewise.
18740         * modules/gettime (Depends-on): Likewise.
18741         * modules/settime (Depends-on): Likewise.
18742
18743         * modules/fts-lgpl: Depend on openat.
18744         * modules/mkancesdirs: Depend on savewd.
18745         * modules/mkdir-p: Likewise.
18746
18747 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18748
18749         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
18750
18751         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
18752         `gl_have_arbitrary_file_name_length_limit' to
18753         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
18754         actually works between configure runs.
18755
18756 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18757             Bruno Haible  <bruno@clisp.org>
18758
18759         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
18760
18761 2006-09-25  Jim Meyering  <jim@meyering.net>
18762
18763         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
18764         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
18765
18766 2006-09-25  Eric Blake  <ebb9@byu.net>
18767
18768         * gnulib-tool (func_import, func_create_testdir): Fix typos in
18769         exec's in 2006-09-18 patch when shuffling fds.
18770
18771 2006-09-25  Bruno Haible  <bruno@clisp.org>
18772
18773         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
18774         Reported by Jim Meyering.
18775
18776 2006-09-24  Jim Meyering  <jim@meyering.net>
18777
18778         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
18779         compare a pointer against a literal "0".  That caused failures with
18780         at least HP-UX's hpcc.
18781
18782 2006-09-22  Simon Josefsson  <jas@extundo.com>
18783
18784         * modules/gc-sha1:
18785         * modules/gc-md4:
18786         * modules/gc-hmac-sha1:
18787         * modules/gc-hmac-md5:
18788         * modules/gc-des:
18789         * modules/gc-arcfour: Distribute more files.
18790
18791 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18792
18793         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
18794         (gl_linked_iterator_from_to): Initialize struct completely.
18795         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
18796         (gl_tree_iterator_from_to): Likewise
18797         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
18798         * lib/gl_array_list.c [lint] (gl_array_iterator)
18799         (gl_array_iterator_from_to): Likewise.
18800         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
18801         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
18802         (gl_carray_iterator_from_to): Likewise.
18803
18804         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
18805         * lib/md4.c (md4_process_block): Remove unused variable.
18806         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
18807         parentheses for clarity.
18808
18809 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18810
18811         * modules/bison-i18n (Depends-on): Add gettext.
18812
18813 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18814
18815         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
18816         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
18817         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
18818         also add missing comma that caused broken test.
18819         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
18820         stdlib.h, for `abort'.
18821         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
18822         variables.
18823         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
18824         include unistd.h if present, for `rmdir'.
18825         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
18826         variables.
18827         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
18828         in the process include standard headers for prototypes.
18829         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
18830         gets declared on GNU/Linux.
18831         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
18832         unistd.h, for `rmdir'.
18833         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
18834
18835         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
18836         always true.
18837         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
18838
18839         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
18840
18841 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18842
18843         * gnulib-tool (func_version): Create output all at once.  This
18844         may help avoid triggering unnecessary SIGPIPEs, and at any
18845         rate it doesn't hurt.
18846
18847 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18848             Bruno Haible  <bruno@clisp.org>
18849
18850         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
18851         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18852         * m4/signed.m4 (bh_C_SIGNED): Likewise.
18853
18854         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
18855         (gl_FUNC_VASPRINTF): Invoke it.
18856
18857 2006-09-22  Bruno Haible  <bruno@clisp.org>
18858
18859         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
18860         getloadavg.c as first argument.
18861
18862 2006-09-22  Bruno Haible  <bruno@clisp.org>
18863
18864         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
18865         at the beginning of the gl_INIT macro.
18866         * modules/getloadavg (configure.ac): Pass $gl_source_base to
18867         gl_GETLOADAVG.
18868
18869 2006-09-22  Bruno Haible  <bruno@clisp.org>
18870
18871         * gnulib-tool (func_create_megatestdir): Don't include the config-h
18872         module.
18873         Suggested by Ralf Wildenhues.
18874
18875 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
18876
18877         Import this patch from libc:
18878
18879         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
18880
18881         * lib/regex_internal.c (re_string_reconstruct): Handle
18882         offset < pstr->valid_raw_len && pstr->offsets_needed case.
18883         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
18884         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
18885         re_string_context_at.
18886
18887         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
18888         now requires it.
18889         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
18890         gl_REGEX now does it for us.
18891         (gl_REGEX): Add test taken from
18892         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
18893
18894         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
18895         Check that large offsets work.  Modernize Autoconf usages.
18896         Prefer "yes" to mean a good thing rather than a bad.
18897         Don't put "#define mkstemp" in config.h, as this might interfere
18898         with standard system headers that "#define mkstemp mkstemp64".
18899
18900         * modules/mkstemp (Depends-on): Add extensions, so that
18901         mkstemp is visible on some platforms.
18902         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
18903         (Include): Change to "mkstemp.h" from <stdlib.h>.
18904         (Files): Add mkstemp.h.
18905
18906         * lib/mkstemp.h: New file, since some standard headers
18907         #define mkstemp.
18908         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
18909         Include "mkstemp.h".
18910         Make the _LIBC code resemble glibc original more,
18911         e.g., use K&R style.
18912         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
18913         (mkstemp): Remove, since mkstemp.h does this for us.
18914         * lib/stdlib--.h: Include mkstemp.h.
18915
18916         Import this patch from libc:
18917
18918         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
18919
18920         * lib/tempname.c (__gen_tempname): Change attempts_min
18921         into a macro.  Use preprocessor to decide how to initialize
18922         attempts [Coverity CID 67].
18923
18924 2006-09-20  Bruno Haible  <bruno@clisp.org>
18925
18926         * lib/mkdtemp.c: Import from libc.
18927         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
18928                 * sysdeps/posix/tempname.c (__gen_tempname): Change
18929                 attempts_min into a macro.  Use preprocessor to decide how to
18930                 initialize attempts [Coverity CID 67].
18931         2001-11-27  Paul Eggert  <eggert@twinsun.com>
18932                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
18933                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
18934
18935 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18936
18937         * gnulib-tool (func_exit): New function, to allow to pass the
18938         exit status portably through the trap.  Use everywhere.
18939         (--help, --version): Signal a write error.
18940         (trap): catch SIGPIPE, for write errors.
18941         Exit at the end of the trap, with the correct exit status.
18942
18943 2006-09-19  Karl Berry  <karl@gnu.org>
18944
18945         * doc/gnulib.texi: note about the license texinfo files.
18946
18947 2006-09-19  Eric Blake  <ebb9@byu.net>
18948
18949         * gnulib-tool: Avoid space-tab.
18950
18951 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
18952
18953         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
18954         that prevented coreutils 6.1 from building.  Problem reported
18955         by Petter Reinholdtsen.
18956
18957 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
18958
18959         * gnulib-tool (avoidlist): Fix typo that broke options like
18960         --avoid=lock that are used by coreutils bootstrap.
18961
18962 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
18963
18964         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
18965         more systematically.
18966
18967 2006-09-18  Jim Meyering  <jim@meyering.net>
18968
18969         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
18970
18971 2006-09-18  Bruno Haible  <bruno@clisp.org>
18972
18973         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
18974
18975 2006-09-18  Bruno Haible  <bruno@clisp.org>
18976
18977         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
18978         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
18979         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
18980         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
18981         * m4/gettext.m4: Require autoconf >= 2.52.
18982         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
18983         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
18984         of gl_cv_header_inttypes_h.
18985
18986 2006-09-18  Bruno Haible  <bruno@clisp.org>
18987
18988         * lib/javaversion.c: Include configmake.h.
18989
18990 2006-09-18  Bruno Haible  <bruno@clisp.org>
18991
18992         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
18993         avoid that the while loops be executed in a subshell.
18994
18995 2006-09-18  Bruno Haible  <bruno@clisp.org>
18996
18997         * MODULES.html.sh (func_module): Break long lines.
18998         Suggested by Bruce Korb <bkorb@gnu.org>.
18999
19000 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19001
19002         Speed up by a factor of 1.12.
19003         * gnulib-tool (nl): New variable.
19004         (func_import): Rewrite include directive extraction to only read each
19005         directive once.
19006
19007 2006-09-17  Bruno Haible  <bruno@clisp.org>
19008
19009         * modules/javaversion (Makefile.am): Remove DEFS setting.
19010         (Depends-on): Add configmake, for PKGDATADIR definition.
19011
19012 2006-09-17  Bruno Haible  <bruno@clisp.org>
19013
19014         * gnulib-tool (func_create_testdir): Rewrite all files at once.
19015
19016 2006-09-17  Bruno Haible  <bruno@clisp.org>
19017
19018         * gnulib-tool (func_append): New function, stolen from libtool.m4.
19019         (func_modules_transitive_closure, func_modules_add_dummy,
19020         func_modules_to_filelist, func_import, func_create_testdir,
19021         func_create_megatestdir, ...): Use it wherever possible.
19022         Suggested by Ralf Wildenhues.
19023
19024 2006-09-16  Karl Berry  <karl@gnu.org>
19025
19026         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
19027         to avoid sectioning errors.
19028         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
19029         [ifinfo]: blank line after @center-ed titles.
19030         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
19031         Spell FSF address consistently with others.
19032         (These changes approved by rms.)
19033
19034 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19035
19036         Speed up by a factor of 1.61.
19037         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
19038         already checked module names again.
19039
19040 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19041
19042         Speed up by a factor of 1.13.
19043         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
19044         for new_files, and the input to func_add_or_update.
19045
19046 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19047
19048         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
19049         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
19050
19051 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
19052
19053         * modules/mkancesdirs (Depends-on): Add fcntl.
19054         * modules/savewd: New file.
19055         * MODULES.html.sh (File system functions): Add savewd.
19056
19057         * modules/configmake (Makefile.am): Add support for the
19058         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
19059
19060 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
19061
19062         * m4/savewd.m4: New file.
19063
19064 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
19065
19066         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
19067         (dirchownmod): New arg FD.  All callers changed.
19068         Use FD rather than opening the directory ourself, as opening is
19069         now the caller's responsibility.
19070         * lib/dirchownmod.h: Likewise.
19071         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
19072         hosts that require <sys/types.h> before <sys/stat.h>.  Include
19073         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
19074         (test_dir): Remove.
19075         (mkancesdirs): Return length of prefix of FILE that has already
19076         been made, or -2 if there is a child doing the work.  Redo
19077         algorithm so that it is O(N) rather than O(N**2).  Optimize away
19078         ".", and treat ".." specially since it might stray back into
19079         already-created areas.  Use a subprocess if necessary.  New arg
19080         WD; all users changed.  MAKE_DIR function should now return 1
19081         if it creates a directory that is not readable.  Return -2 if
19082         a child process is spun off.
19083         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
19084         Adjust signature to match code.
19085         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
19086         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
19087         all users changed.
19088         * lib/savewd.c, lib/savewd.h: New files.
19089
19090 2006-09-15  Jim Meyering  <jim@meyering.net>
19091
19092         * modules/rename-dest-slash: New module.
19093         * MODULES.html.sh (posix_compat): Add it here.
19094
19095         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
19096
19097 2006-09-15  Jim Meyering  <jim@meyering.net>
19098
19099         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
19100         file.
19101
19102         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
19103
19104 2006-09-15  Jim Meyering  <jim@meyering.net>
19105
19106         * lib/rename-dest-slash.c (has_trailing_slash): Use
19107         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
19108         (rpl_rename_dest_slash): Perform the cheaper trailing slash
19109         test before testing whether SRC is a directory.
19110         Suggestions from Bruno Haible.
19111
19112         Avoid a warning about an unused variable.
19113         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
19114         into the #ifdef block where it's used.
19115
19116         * lib/rename-dest-slash.c: New file.
19117
19118 2006-09-14  Bruno Haible  <bruno@clisp.org>
19119
19120         * lib/allocsa.c: Include <config.h> unconditionally.
19121         * lib/asnprintf.c: Likewise.
19122         * lib/asprintf.c: Likewise.
19123         * lib/c-strcasecmp.c: Likewise.
19124         * lib/c-strcasestr.c: Likewise.
19125         * lib/c-strncasecmp.c: Likewise.
19126         * lib/c-strstr.c: Likewise.
19127         * lib/classpath.c: Likewise.
19128         * lib/clean-temp.c: Likewise.
19129         * lib/concatpath.c: Likewise.
19130         * lib/copy-file.c: Likewise.
19131         * lib/csharpcomp.c: Likewise.
19132         * lib/csharpexec.c: Likewise.
19133         * lib/execute.c: Likewise.
19134         * lib/fatal-signal.c: Likewise.
19135         * lib/findprog.c: Likewise.
19136         * lib/fwriteerror.c: Likewise.
19137         * lib/gl_array_list.c: Likewise.
19138         * lib/gl_array_oset.c: Likewise.
19139         * lib/gl_avltree_list.c: Likewise.
19140         * lib/gl_avltree_oset.c: Likewise.
19141         * lib/gl_avltreehash_list.c: Likewise.
19142         * lib/gl_carray_list.c: Likewise.
19143         * lib/gl_linked_list.c: Likewise.
19144         * lib/gl_linkedhash_list.c: Likewise.
19145         * lib/gl_list.c: Likewise.
19146         * lib/gl_oset.c: Likewise.
19147         * lib/gl_rbtree_list.c: Likewise.
19148         * lib/gl_rbtree_oset.c: Likewise.
19149         * lib/gl_rbtreehash_list.c: Likewise.
19150         * lib/imaxabs.c: Likewise.
19151         * lib/imaxdiv.c: Likewise.
19152         * lib/javacomp.c: Likewise.
19153         * lib/javaexec.c: Likewise.
19154         * lib/javaversion.c: Likewise.
19155         * lib/linebreak.c: Likewise.
19156         * lib/localcharset.c: Likewise.
19157         * lib/lock.c: Likewise.
19158         * lib/mbchar.c: Likewise.
19159         * lib/mbswidth.c: Likewise.
19160         * lib/mkdtemp.c: Likewise.
19161         * lib/pipe.c: Likewise.
19162         * lib/printf-args.c: Likewise.
19163         * lib/printf-parse.c: Likewise.
19164         * lib/progname.c: Likewise.
19165         * lib/progreloc.c: Likewise.
19166         * lib/readlink.c: Likewise.
19167         * lib/sh-quote.c: Likewise.
19168         * lib/stpcpy.c: Likewise.
19169         * lib/stpncpy.c: Likewise.
19170         * lib/strcasecmp.c: Likewise.
19171         * lib/strcasestr.c: Likewise.
19172         * lib/strcspn.c: Likewise.
19173         * lib/striconv.c: Likewise.
19174         * lib/strncasecmp.c: Likewise.
19175         * lib/strnlen1.c: Likewise.
19176         * lib/strstr.c: Likewise.
19177         * lib/strtok_r.c: Likewise.
19178         * lib/tls.c: Likewise.
19179         * lib/tmpdir.c: Likewise.
19180         * lib/unicodeio.c: Likewise.
19181         * lib/unsetenv.c: Likewise.
19182         * lib/vasnprintf.c: Likewise.
19183         * lib/vasprintf.c: Likewise.
19184         * lib/wait-process.c: Likewise.
19185         * lib/xallocsa.c: Likewise.
19186         * lib/xsetenv.c: Likewise.
19187         * lib/xstriconv.c: Likewise.
19188
19189 2006-09-13  Simon Josefsson  <jas@extundo.com>
19190
19191         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
19192         that internally, suggested by Ralf Wildenhues
19193         <Ralf.Wildenhues@gmx.de>.
19194
19195 2006-09-13  Simon Josefsson  <jas@extundo.com>
19196
19197         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
19198         @LIBOBJS@.
19199         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19200
19201 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19202
19203         * lib/_fpending.c: Include <config.h> unconditionally, since we no
19204         longer worry about uses that don't define HAVE_CONFIG_H.
19205         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
19206         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
19207         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
19208         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
19209         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
19210         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
19211         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
19212         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
19213         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
19214         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
19215         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
19216         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
19217         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
19218         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
19219         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
19220         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
19221         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
19222         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
19223         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
19224         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
19225         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
19226         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
19227         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
19228         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
19229         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
19230         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
19231         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
19232         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
19233         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
19234         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
19235         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
19236         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
19237         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
19238         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
19239         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
19240         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
19241         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
19242         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
19243         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
19244         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
19245         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
19246         Likewise.
19247
19248 2006-09-13  Eric Blake  <ebb9@byu.net>
19249
19250         * lib/getopt.c: Fix typo in last commit.
19251
19252 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
19253
19254         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
19255         dgettext.
19256
19257 2006-09-12  Jim Meyering  <jim@meyering.net>
19258
19259         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
19260         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
19261         Reported by Nelson H. F. Beebe.
19262
19263 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
19264
19265         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
19266         program_invocation_name and program_invocation_short_name are
19267         initialized.
19268         * lib/argp-namefrob.h: Move declarations of program_invocation_name
19269         and program_invocation_short_name to argp.h, so they are visible
19270         to user programs.
19271         * lib/argp.h: Likewise
19272
19273 2006-09-10  Bruno Haible  <bruno@clisp.org>
19274
19275         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
19276         m4/inttypes_h.m4, m4/uintmax_t.m4.
19277
19278 2006-09-10  Bruno Haible  <bruno@clisp.org>
19279
19280         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
19281         gl_AC_TYPE_UINTMAX_T.
19282
19283 2006-09-10  Bruno Haible  <bruno@clisp.org>
19284
19285         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
19286
19287 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
19288
19289         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
19290         convention.  Text proposed by Bruno Haible.
19291         (struct argp_option): Document the use of N_() wrappers.
19292
19293         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
19294         '\v', and translate the two parts separately, instead of feeding
19295         the whole string to gettext.  This allows to exclude
19296         '\v' from the strings visible to the translator by writing doc
19297         strings as N_("..") "\v" N_("..").
19298
19299 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
19300
19301         * config/srclist.txt: Undo latest change; the bug was fixed.
19302
19303 2006-09-09  Bruno Haible  <bruno@clisp.org>
19304
19305         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
19306         assignments if building a library without libtool.
19307         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
19308         in func_emit_lib_Makefile_am.
19309         (func_import): When building a static library libfoo.a, arrange to
19310         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
19311         (func_create_testdir): Likewise.
19312         * modules/gc (configure.ac, Makefile.am): If building statically,
19313         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
19314         * modules/iconvme (configure.ac, Makefile.am): Likewise.
19315         * modules/striconv (configure.ac, Makefile.am): Likewise.
19316         Based on a suggestion by Ralf Wildenhues.
19317
19318 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
19319
19320         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
19321         Check for unistd.h too, since Autoconf doesn't assume POSIX.
19322         Also:
19323
19324         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
19325         Add year_2050_test to catch glibc bug 2821
19326         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
19327
19328         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
19329         Prefer #ifdef to #if.
19330
19331         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
19332         Return from 'main' instead of calling 'exit'.
19333
19334 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
19335
19336         * lib/mktime.c (guess_time_tm): Fix bug where mktime
19337         returned the maximum time_t value rather than (time_t) -1.
19338         Problem originally reported by William Bardwell
19339         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
19340
19341         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
19342         Moved to here ...
19343         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
19344         ... from here.
19345
19346 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
19347
19348         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
19349         2821 is fixed.
19350
19351 2006-09-08  Jim Meyering  <jim@meyering.net>
19352
19353         Don't make generated files read-only.  That would bother too many
19354         people.  However, do retain the ability to work when targets are
19355         read-only: remove the destination and temporary files before writing
19356         them (when generated via sed or echo), or by using the -f option for
19357         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
19358         * modules/alloca-opt, modules/argz, modules/arpa_inet:
19359         * modules/byteswap, modules/configmake, modules/fcntl:
19360         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
19361         * modules/localcharset, modules/netinet_in, modules/poll:
19362         * modules/stdbool, modules/stdint, modules/sys_select:
19363         * modules/sys_socket, modules/sys_stat, modules/sysexits:
19364
19365 2006-09-08  Jim Meyering  <jim@meyering.net>
19366
19367         Avoid new build failure on FreeBSD 6.0.
19368         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
19369         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
19370         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
19371
19372 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19373
19374         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
19375
19376 2006-09-07  Jim Meyering  <jim@meyering.net>
19377
19378         Fix global typo in last change: use chmod u-w, not chmod u-x.
19379         Spotted by Paul Eggert and Bruce Korb.
19380         * modules/alloca-opt, modules/argz, modules/arpa_inet:
19381         * modules/byteswap, modules/configmake, modules/fcntl:
19382         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
19383         * modules/localcharset, modules/netinet_in, modules/poll:
19384         * modules/stdbool, modules/stdint, modules/sys_select:
19385         * modules/sys_socket, modules/sys_stat, modules/sysexits:
19386
19387 2006-09-06  Jim Meyering  <jim@meyering.net>
19388
19389         Make generated files be read-only.
19390         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
19391         Ensure that each generated file is now read-only.
19392         * modules/argz: Likewise.
19393         * modules/arpa_inet: Likewise.
19394         * modules/byteswap: Likewise.
19395         * modules/configmake: Likewise.
19396         * modules/fcntl: Likewise.
19397         * modules/fnmatch: Likewise.
19398         * modules/getopt: Likewise.
19399         * modules/glob: Likewise.
19400         * modules/inttypes: Likewise.
19401         * modules/netinet_in: Likewise.
19402         * modules/poll: Likewise.
19403         * modules/stdbool: Likewise.
19404         * modules/stdint: Likewise.
19405         * modules/sys_select: Likewise.
19406         * modules/sys_socket: Likewise.
19407         * modules/sys_stat: Likewise.
19408         * modules/sysexits: Likewise.
19409         * modules/localcharset: Same as above, but continue using temporary
19410         file named "t-$@" (why different?) rather than the "$@-t" used
19411         everywhere else.
19412
19413         * modules/sysexits (Makefile.am): Replace literal occurrences
19414         of "sysexit.h" more readable, and more consistent, "$@".
19415
19416 2006-09-06  Bruno Haible  <bruno@clisp.org>
19417
19418         * modules/striconv: New file.
19419         * modules/xstriconv: New file.
19420         * MODULES.html.sh (Internationalization functions): Add striconv,
19421         xstriconv.
19422
19423 2006-09-06  Bruno Haible  <bruno@clisp.org>
19424
19425         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
19426         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
19427         not using libtool correctly.
19428
19429 2006-09-06  Bruno Haible  <bruno@clisp.org>
19430
19431         * lib/striconv.h: New file.
19432         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
19433         iconvstring.c.
19434         * lib/xstriconv.h: New file.
19435         * lib/xstriconv.c: New file.
19436
19437 2006-09-06  Bruno Haible  <bruno@clisp.org>
19438
19439         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
19440         lib_..._LDFLAGS.
19441
19442 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19443
19444         * lib/argz_.h: Sync from Libtool.
19445
19446         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
19447                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19448
19449         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
19450
19451 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
19452
19453         * modules/trim: New file.
19454
19455 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
19456
19457         * lib/trim.h: New file.
19458         * lib/trim.c: New file.
19459
19460 2006-09-05  Bruno Haible  <bruno@clisp.org>
19461
19462         * MODULES.html.sh (String handling): Add trim.
19463
19464 2006-09-04  Karl Berry  <karl@gnu.org>
19465
19466         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
19467         until next release.
19468
19469 2006-09-03  Bruno Haible  <bruno@clisp.org>
19470
19471         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
19472         correctly.
19473
19474 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19475
19476         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
19477         not gl_GETLOADAVG.  Omit unneeded semicolons.
19478         Problems reported by Ralf Wildenhues in
19479         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
19480         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
19481         at the end, which is the usual gnulib style.
19482
19483         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
19484         of doing all the work ourselves.
19485         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
19486         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
19487
19488 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19489
19490         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
19491         Problem reported by Ralf Wildenhues in
19492         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
19493
19494         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
19495         HAVE_STRUCT_STATFS_F_FSTYPENAME.
19496
19497 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19498
19499         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
19500         yesterday's patch by changing test -n to test -z.
19501
19502 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
19503
19504         * modules/getloadavg (Files): Add m4/getloadavg.m4.
19505         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
19506         the former is now obsolescent.
19507
19508         * modules/chdir-long (Depends-on): Add fcntl.
19509
19510 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
19511
19512         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
19513         obsolescent, and programs should use gnulib instead.
19514         * m4/getloadavg.m4: New file, with contents taken from Autoconf
19515         but with prefixes changed.
19516
19517 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
19518
19519         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
19520         or stdbool.h, because they might not exist while configuring.
19521
19522         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
19523         Don't include unistd.h or limits.h; not needed, since chdir-long.h
19524         does that for us.
19525         (O_DIRECTORY): Remove.
19526
19527 2006-08-31  Eric Blake  <ebb9@byu.net>
19528
19529         * gnulib-tool: Don't let emacs change spaces to TAB.
19530
19531 2006-08-31  Bruno Haible  <bruno@clisp.org>
19532
19533         * gnulib-tool: When calling func_import more than once, do it in a
19534         subshell.
19535         Reported by Eric Blake <ebb9@byu.net>.
19536
19537 2006-08-31  Bruno Haible  <bruno@clisp.org>
19538
19539         * gnulib-tool (nl): Remove variable.
19540         (sed_transform_lib_file): Use more robust test for config-h module.
19541         (func_import): Fix typo in 2006-08-25 patch.
19542
19543 2006-08-31  Bruno Haible  <bruno@clisp.org>
19544
19545         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
19546         specified, augment Makefile.am variables instead of assigning them.
19547
19548 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
19549
19550         Work around a bug in both the Linux and SunOS 64-bit kernels:
19551         nanosleep mishandles sleeps for longer than 2**31 seconds.
19552         Problem reported by Frank v Waveren in
19553         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
19554         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
19555         Check for nanosleep bug.
19556         (LIB_NANOSLEEP): Append clock_gettime library if needed.
19557
19558 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
19559
19560         Work around a bug in both the Linux and SunOS 64-bit kernels:
19561         nanosleep mishandles sleeps for longer than 2**31 seconds.
19562         Problem reported by Frank v Waveren in
19563         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
19564         * lib/nanosleep.c (BILLION): New constant.
19565         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
19566         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
19567         implementation.
19568
19569 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
19570
19571         * modules/nanosleep (Depends-on): Add gettime.
19572
19573 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
19574         and Simon Josefsson  <jas@extundo.com>
19575         and Oskar Liljeblad  <oskar@osk.mine.nu>
19576
19577         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
19578         * gnulib-tool (func_import): New license type 'unmodifiable license
19579         text'.
19580         * modules/fdl: Use it.  Longer description.
19581         * module/gpl, module/lgpl: New files.
19582
19583 2006-08-30  Jim Meyering  <jim@meyering.net>
19584
19585         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
19586         shadowing the parameter.
19587
19588 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19589
19590         Sync from Libtool:
19591
19592         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19593
19594         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
19595         sharing with gnulib.  Report by Eric Blake.
19596
19597 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
19598
19599         * modules/isapipe: New file.
19600         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
19601
19602 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
19603
19604         * modules/configmake (Makefile.am): Add a comment, and omit
19605         the CONFIGMAKE_ prefix from generated macro names.  Suggested
19606         by Bruno Haible.
19607
19608 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
19609
19610         * m4/isapipe.m4: New file.
19611
19612 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
19613
19614         * lib/isapipe.c, lib/isapipe.h: New files.
19615
19616 2006-08-29  Jim Meyering  <jim@meyering.net>
19617
19618         * modules/configmake (Makefile.am): Make configmake.h depend on
19619         Makefile.  Otherwise, a stale configmake.h could hang around.
19620
19621 2006-08-29  Eric Blake  <ebb9@byu.net>
19622
19623         * lib/error.c (error_at_line, print_errno_message): Match libc, after
19624         resolution of upstream bug 3044.
19625
19626 2006-08-29  Bruno Haible  <bruno@clisp.org>
19627
19628         * modules/localcharset (Depends-on): Add configmake.
19629         (Makefile.am): Remove setting of LIBDIR through DEFS.
19630
19631 2006-08-29  Bruno Haible  <bruno@clisp.org>
19632
19633         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
19634         defined.
19635
19636 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
19637
19638         * modules/fcntl: New file.
19639         * modules/chdir-safer (Depends-on): Add fcntl.
19640         * modules/fts: Likewise.
19641         * modules/mkdir-p: Likewise.
19642
19643         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
19644         This undoes the most recent change, since we're now addressing the
19645         problem in a different way.
19646
19647         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
19648         into output, since the output might be called Makefile.am even
19649         if $makefile_name is something different.
19650         (func_import): Use $makefile_am rather than
19651         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
19652         empty.
19653
19654         * modules/inttypes (Files): Add m4/inttypes-h.m4.
19655
19656 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
19657
19658         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
19659         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
19660         recent change to stdint.m4, since we're now addressing the problem in a
19661         different way.
19662
19663 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
19664
19665         * m4/fcntl_h.m4: New file.
19666
19667 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
19668
19669         * lib/fcntl_.h: New file.
19670         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
19671         the fcntl module.
19672         * lib/dirchownmod.c: Likewise.
19673         * lib/fts.c: Likewise.
19674
19675         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
19676         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
19677         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
19678         just before including <inttypes.h>, to avoid circular inclusion.
19679
19680 2006-08-28  Jim Meyering  <jim@meyering.net>
19681
19682         * doc/visibility.texi: Actually read and correct the grammar of the
19683         sentence affected by yesterday's change.
19684
19685 2006-08-28  Eric Blake  <ebb9@byu.net>
19686
19687         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
19688         needs wrapper.
19689
19690 2006-08-28  Eric Blake  <ebb9@byu.net>
19691
19692         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
19693
19694 2006-08-28  Eric Blake  <ebb9@byu.net>
19695
19696         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
19697
19698 2006-08-28  Bruno Haible  <bruno@clisp.org>
19699
19700         * modules/c-strstr: New file, from GNU gettext.
19701         * MODULES.html.sh (String handling): Add c-strstr.
19702
19703 2006-08-28  Bruno Haible  <bruno@clisp.org>
19704
19705         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
19706         macros.
19707         Reported by Eric Blake.
19708
19709 2006-08-28  Bruno Haible  <bruno@clisp.org>
19710
19711         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
19712         (VASNPRINTF): Return a string of length > INT_MAX without failing.
19713         * lib/vasprintf.c: Include errno.h, limits.h.
19714         (EOVERFLOW): New fallback definition.
19715         (vasprintf): Test here whether the string length is > INT_MAX.
19716         * lib/vsnprintf.c: Include errno.h, limits.h.
19717         (EOVERFLOW): New fallback definition.
19718         (vsnprintf): Fix bug when generated string was too long for the buffer.
19719         Test here whether the string length is > INT_MAX.
19720
19721 2006-08-28  Bruno Haible  <bruno@clisp.org>
19722
19723         * lib/inttypes_.h (SCNX*): Remove definitions.
19724         Reported by Eric Blake.
19725
19726 2006-08-28  Bruno Haible  <bruno@clisp.org>
19727
19728         * lib/c-strstr.h: New file, from GNU gettext.
19729         * lib/c-strstr.c: New file, from GNU gettext.
19730
19731 2006-08-28  Bruno Haible  <bruno@clisp.org>
19732
19733         * gnulib-tool: Reorder some statements.
19734
19735 2006-08-28  Bruno Haible  <bruno@clisp.org>
19736
19737         * gnulib-tool: New option --makefile-name.
19738         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
19739         $makefile_name.
19740         (func_import): Write $makefile_name to the cache file, and read it from
19741         there unless explicitly specified. Use $makefile_name as file name
19742         instead of Makefile.am. Adjust the recommendations accordingly.
19743
19744 2006-08-28  Bruno Haible  <bruno@clisp.org>
19745
19746         * gnulib-tool (func_verify_module): Check against misapplying patch.
19747
19748 2006-08-28  Bruno Haible  <bruno@clisp.org>
19749
19750         * gnulib-tool (func_relativize, func_relconcat): New functions.
19751         Give an error if --local-dir is given with --update.
19752         Remove trailing slashes from $local_gnulib_dir.
19753         (func_import): Store the relativized $local_gnulib_dir in
19754         gnulib-cache.m4, and read it from there if not specified explicitly.
19755
19756 2006-08-28  Bruno Haible  <bruno@clisp.org>
19757
19758         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
19759         is the current directory. Respect also $local_gnulib_dir.
19760
19761 2006-08-28  Bruno Haible  <bruno@clisp.org>
19762             Simon Josefsson  <jas@extundo.com>
19763
19764         BeOS portability.
19765         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
19766
19767 2006-08-27  Jim Meyering  <jim@meyering.net>
19768
19769         * doc/visibility.texi: Remove duplicate word: "pointer".
19770
19771 2006-08-26  Bruno Haible  <bruno@clisp.org>
19772
19773         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
19774         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
19775         (Makefile.am): Create inttypes.h from inttypes_.h.
19776         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
19777
19778         * modules/imaxabs: New file.
19779
19780         * modules/imaxdiv: New file.
19781
19782 2006-08-26  Bruno Haible  <bruno@clisp.org>
19783
19784         * m4/inttypes.m4: New file.
19785         * m4/_inttypes_h.m4: Remove file.
19786         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
19787         PRI_MACROS_BROKEN.
19788         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
19789
19790         * m4/imaxabs.m4: New file.
19791
19792         * m4/imaxdiv.m4: New file.
19793
19794 2006-08-26  Bruno Haible  <bruno@clisp.org>
19795
19796         * lib/inttypes_.h: New file.
19797         * lib/inttypes.h: Remove file.
19798         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
19799
19800         * lib/imaxabs.c: New file.
19801
19802         * lib/imaxdiv.c: New file.
19803
19804 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
19805
19806         New config-h module, so that "make" output needn't be cluttered
19807         by -DHAVE_CONFIG_H.
19808         * MODULES.html.sh (Support for building libraries and executables):
19809         Add config-h.
19810         * modules/config-h: New file.
19811         * gnulib-tool (nl, sed_transform_lib_file): New vars.
19812         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
19813         the config-h module is used.
19814
19815         New configmake module, so that "make" output needn't be cluttered
19816         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
19817         * MODULES.html.sh (Support for building libraries and executables):
19818         Add configmake.
19819         * modules/configmake: New file.
19820
19821 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
19822
19823         * m4/config-h.m4: New file.
19824
19825 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19826
19827         * config/srclist.txt: Add elisp-comp.
19828
19829 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19830
19831         * MODULES.html.sh (Support for building libraries and executables):
19832         Add elisp-comp.
19833         * build-aux/elisp-comp: New file.
19834         * modules/elisp-comp: New file.
19835
19836 2006-08-24  Bruno Haible  <bruno@clisp.org>
19837
19838         * gnulib-tool (func_create_testdir): Use non-default values of
19839         sourcebase and m4base.
19840
19841 2006-08-24  Bruno Haible  <bruno@clisp.org>
19842
19843         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
19844         HTML structure.
19845
19846 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
19847
19848         * modules/openat (Depends-on): Add lchown.
19849
19850 2006-08-23  Bruno Haible  <bruno@clisp.org>
19851
19852         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
19853         of gl_LOCK_EARLY instead of gl_LOCK.
19854
19855 2006-08-23  Bruno Haible  <bruno@clisp.org>
19856
19857         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
19858         on OSF/1 to no.
19859         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
19860
19861 2006-08-23  Bruno Haible  <bruno@clisp.org>
19862
19863         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
19864         as unusable.
19865
19866         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
19867         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
19868         (gl_LOCK): New macro.
19869
19870 2006-08-22  Simon Josefsson  <jas@extundo.com>
19871
19872         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
19873         to md5 module.
19874
19875 2006-08-22  Simon Josefsson  <jas@extundo.com>
19876
19877         * MODULES.html.sh: Add "Support for maintaining and release
19878         projects".
19879
19880         * build-aux/gnupload: New file, from coreutils.
19881
19882 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
19883
19884         Avoid the need for AC_LIBSOURCES in m4 macros.
19885         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
19886         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
19887         * modules/check-version (EXTRA_DIST): Add check-version.h.
19888         * modules/crc (EXTRA_DIST): Add crc.h.
19889         * modules/des (EXTRA_DIST): Add des.h.
19890         * modules/gc (EXTRA_DIST): Add gc.h.
19891         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
19892         * modules/getline (EXTRA_DIST): Add getline.h.
19893         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
19894         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
19895         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
19896         * modules/md2 (EXTRA_DIST): Add md2.h.
19897         * modules/md4 (EXTRA_DIST): Add md4.h.
19898         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
19899         * modules/read-file (EXTRA_DIST): Add read-file.h.
19900         * modules/readline (EXTRA_DIST): Add readline.h.
19901         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
19902         rijndael-api-fst.h.
19903
19904 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
19905
19906         * m4/rijndael.m4 (gl_ARCFOUR):
19907         * m4/arctwo.m4 (gl_ARCTWO):
19908         * m4/check-version.m4 (gl_CHECK_VERSION):
19909         * m4/crc.m4 (gl_CRC):
19910         * m4/des.m4 (gl_DES):
19911         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
19912         * m4/gc.m4 (gl_GC):
19913         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
19914         * m4/getline.m4 (gl_FUNC_GETLINE):
19915         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
19916         * m4/hmac-md5.m4 (gl_HMAC_MD5):
19917         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
19918         * m4/md2.m4 (gl_MD2):
19919         * m4/md4.m4 (gl_MD4):
19920         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
19921         * m4/read-file.m4 (gl_FUNC_READ_FILE):
19922         * m4/readline.m4 (gl_FUNC_READLINE):
19923         * m4/rijndael.m4 (gl_RIJNDAEL):
19924         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
19925         to get the necessary .h files and whatnot.
19926
19927 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
19928
19929         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
19930         gnulib rather than the other way around.
19931         * config/srclistvars.sh (COREUTILS): Remove.
19932
19933 2006-08-22  Jim Meyering  <jim@meyering.net>
19934
19935         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
19936
19937         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
19938
19939 2006-08-22  Eric Blake  <ebb9@byu.net>
19940
19941         * modules/regexprops-generic: New file.
19942         * MODULES.html.sh (Support for building documentation): List it.
19943
19944 2006-08-22  Eric Blake  <ebb9@byu.net>
19945
19946         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
19947         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
19948         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
19949         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
19950
19951 2006-08-22  Bruno Haible  <bruno@clisp.org>
19952
19953         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
19954         and lib_LTLIBRARIES like the other lib_* variables.
19955
19956 2006-08-22  Bruno Haible  <bruno@clisp.org>
19957
19958         * build-aux/x-to-1.in: New file, from GNU gettext.
19959
19960 2006-08-22  Bruno Haible  <bruno@clisp.org>
19961
19962         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
19963         <utmpx.h> exists.
19964
19965 2006-08-22  Bruno Haible  <bruno@clisp.org>
19966
19967         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
19968         <utmpx.h> exists.
19969
19970 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
19971
19972         BeOS portability.
19973         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
19974         exist.
19975         Problem reported by Bruno Haible.
19976
19977 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
19978
19979         Avoid the need for AC_LIBSOURCES in m4 macros.
19980         * modules/acl (EXTRA_DIST): Add acl.h.
19981         * modules/argmatch (Files): Add m4/argmatch.m4.
19982         (configure.ac): Add gl_ARGMATCH.
19983         (EXTRA_DIST): Renamed from lib_SOURCES, for
19984         consistency with the other modules.  Remove argmatch.c.
19985         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
19986         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
19987         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
19988         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
19989         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
19990         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
19991         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
19992         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
19993         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
19994         * modules/closeout (EXTRA_DIST): Add closeout.h.
19995         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
19996         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
19997         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
19998         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
19999         dirname.h; remove basename.c and stripslash.c.
20000         * modules/exclude (EXTRA_DIST): Add exclude.h.
20001         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
20002         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
20003         * modules/file-type (EXTRA_DIST): Add file-type.h.
20004         * modules/filemode (EXTRA_DIST): Add filemode.h.
20005         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
20006         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
20007         * modules/fpending (EXTRA_DIST): Add __fpending.h.
20008         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
20009         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
20010         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
20011         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
20012         * modules/getdate (EXTRA_DIST): Add getdate.c.
20013         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
20014         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
20015         * modules/getpass (EXTRA_DIST): Add getpass.h.
20016         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
20017         * modules/group-member (EXTRA_DIST): Add group-member.h.
20018         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
20019         * modules/hash (EXTRA_DIST): Add hash.h.
20020         * modules/human (EXTRA_DIST): Add human.h.
20021         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
20022         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
20023         * modules/lchown (EXTRA_DIST): Add lchown.h.
20024         * modules/long-options (EXTRA_DIST): Add long-options.h.
20025         * modules/lstat (EXTRA_DIST): Add lstat.h.
20026         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
20027         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
20028         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
20029         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
20030         * modules/memxor (EXTRA_DIST): Add memxor.h.
20031         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
20032         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
20033         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
20034         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
20035         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
20036         * modules/physmem (EXTRA_DIST): Add physmem.h.
20037         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
20038         * modules/posixver (EXTRA_DIST): Add posixver.h.
20039         * modules/quote (EXTRA_DIST): Add quote.h.
20040         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
20041         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
20042         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
20043         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
20044         regex_internal.h regexec.c.
20045         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
20046         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
20047         * modules/same (EXTRA_DIST): Add same.h.
20048         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
20049         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
20050         * modules/savedir (EXTRA_DIST): Add savedir.h.
20051         * modules/sha1 (EXTRA_DIST): Add sha1.h.
20052         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
20053         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
20054         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
20055         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
20056         * modules/strdup (EXTRA_DIST): Add strdup.h.
20057         * modules/strftime (EXTRA_DIST): Add strftime.h.
20058         * modules/strndup (EXTRA_DIST): Add strndup.h.
20059         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
20060         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
20061         * modules/time_r (EXTRA_DIST): Add time_r.h.
20062         * modules/timespec (EXTRA_DIST): Add timespec.h.
20063         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
20064         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
20065         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
20066         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
20067         * modules/userspec (EXTRA_DIST): Add userspec.h.
20068         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
20069         * modules/utimens (EXTRA_DIST): Add utimens.h.
20070         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
20071         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
20072         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
20073         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
20074         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
20075         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
20076         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
20077         * modules/yesno (EXTRA_DIST): Add yesno.h.
20078
20079 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
20080
20081         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
20082
20083         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
20084         * m4/dev-ino.m4, same-inode.m4: Remove.
20085
20086         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
20087         * m4/acl.m4 (AC_FUNC_ACL):
20088         * m4/backupfile.m4 (gl_BACKUPFILE):
20089         * m4/c-strtod.m4 (gl_C99_STRTOLD):
20090         * m4/canon-host.m4 (gl_CANON_HOST):
20091         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
20092         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
20093         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
20094         * m4/cloexec.m4 (gl_CLOEXEC):
20095         * m4/close-stream.m4 (gl_CLOSE_STREAM):
20096         * m4/closeout.m4 (gl_CLOSEOUT):
20097         * m4/dirfd.m4 (gl_FUNC_DIRFD):
20098         * m4/dirname.m4 (gl_DIRNAME):
20099         * m4/exclude.m4 (gl_EXCLUDE):
20100         * m4/exitfail.m4 (gl_EXITFAIL):
20101         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
20102         * m4/file-type.m4 (gl_FILE_TYPE):
20103         * m4/filemode.m4 (gl_FILEMODE):
20104         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
20105         * m4/fpending.m4 (gl_FUNC_FPENDING):
20106         * m4/fprintftime.m4 (gl_FPRINTFTIME):
20107         * m4/fts.m4 (gl_FUNC_FTS):
20108         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
20109         * m4/getdate.m4 (gl_GETDATE):
20110         * m4/gethrxtime.m4 (gl_GETHRXTIME):
20111         * m4/getpagesize.m4 (gl_GETPAGESIZE):
20112         * m4/getpass.m4 (gl_FUNC_GETPASS):
20113         * m4/gettime.m4 (gl_GETTIME):
20114         * m4/getugroups.m4 (gl_GETUGROUPS):
20115         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
20116         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
20117         * m4/hard-locale.m4 (gl_HARD_LOCALE):
20118         * m4/hash.m4 (gl_HASH):
20119         * m4/idcache.m4 (gl_IDCACHE):
20120         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
20121         * m4/lchown.m4 (gl_FUNC_LCHOWN):
20122         * m4/long-options.m4 (gl_LONG_OPTIONS):
20123         * m4/lstat.m4 (gl_FUNC_LSTAT):
20124         * m4/md5.m4 (gl_MD5):
20125         * m4/memcasecmp.m4 (gl_MEMCASECMP):
20126         * m4/memcoll.m4 (gl_MEMCOLL):
20127         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
20128         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
20129         * m4/memxor.m4 (gl_MEMXOR):
20130         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
20131         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
20132         * m4/modechange.m4 (gl_MODECHANGE):
20133         * m4/mountlist.m4 (gl_MOUNTLIST):
20134         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
20135         * m4/openat.m4 (gl_FUNC_OPENAT):
20136         * m4/pathmax.m4 (gl_PATHMAX):
20137         * m4/physmem.m4 (gl_PHYSMEM):
20138         * m4/posixtm.m4 (gl_POSIXTM):
20139         * m4/posixver.m4 (gl_POSIXVER):
20140         * m4/quote.m4 (gl_QUOTE):
20141         * m4/quotearg.m4 (gl_QUOTEARG):
20142         * m4/readtokens.m4 (gl_READTOKENS):
20143         * m4/readutmp.m4 (gl_READUTMP):
20144         * m4/regex.m4 (gl_REGEX):
20145         * m4/safe-read.m4 (gl_SAFE_READ):
20146         * m4/safe-write.m4 (gl_SAFE_WRITE):
20147         * m4/same.m4 (gl_SAME):
20148         * m4/save-cwd.m4 (gl_SAVE_CWD):
20149         * m4/savedir.m4 (gl_SAVEDIR):
20150         * m4/settime.m4 (gl_SETTIME):
20151         * m4/sha1.m4 (gl_SHA1):
20152         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
20153         * m4/stat-macros.m4 (gl_STAT_MACROS):
20154         * m4/stat-time.m4 (gl_STAT_TIME):
20155         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
20156         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
20157         * m4/strdup.m4 (gl_FUNC_STRDUP):
20158         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
20159         * m4/strndup.m4 (gl_FUNC_STRNDUP):
20160         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
20161         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
20162         * m4/time_r.m4 (gl_TIME_R):
20163         * m4/timespec.m4 (gl_TIMESPEC):
20164         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
20165         * m4/unlinkdir.m4 (gl_UNLINKDIR):
20166         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
20167         * m4/userspec.m4 (gl_USERSPEC):
20168         * m4/utimecmp.m4 (gl_UTIMECMP):
20169         * m4/utimens.m4 (gl_UTIMENS):
20170         * m4/xalloc.m4 (gl_XALLOC):
20171         * m4/xgetcwd.m4 (gl_XGETCWD):
20172         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
20173         * m4/xreadlink.m4 (gl_XREADLINK):
20174         * m4/xstrtod.m4 (gl_XSTRTOD):
20175         * m4/yesno.m4 (gl_YESNO):
20176         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
20177         to get the necessary .h files and whatnot.
20178
20179 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
20180             Bruno Haible  <bruno@clisp.org>
20181
20182         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
20183         /bin/sh understanding of '!' conditional negation.
20184
20185 2006-08-21  Jim Meyering  <jim@meyering.net>
20186
20187         * modules/openat (Depends-on): Really alphabetize.
20188
20189         * modules/acl (Depends-on): Add error and quote.
20190
20191         * check-module (find_included_lib_files): Add at-func.c to the
20192         ok-to-include-more-than-once white list.
20193
20194         * modules/openat (Depends-on): Add lstat.  Alphabetize.
20195
20196 2006-08-21  Bruno Haible  <bruno@clisp.org>
20197
20198         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20199         Emit a pkgdata_DATA variable only if some snippets add contents to it.
20200         Reported by Martin Lambers <marlam@marlam.de>.
20201
20202 2006-08-21  Bruno Haible  <bruno@clisp.org>
20203
20204         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
20205         specify an installation location, don't emit a noinst_LIBRARIES or
20206         noinst_LTLIBRARIES assignment.
20207
20208 2006-08-21  Bruno Haible  <bruno@clisp.org>
20209
20210         BeOS portability.
20211         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
20212         BeOS has mbrtowc() but no <wctype.h>.
20213
20214 2006-08-21  Bruno Haible  <bruno@clisp.org>
20215
20216         BeOS portability.
20217         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
20218         exist.
20219
20220 2006-08-21  Bruno Haible  <bruno@clisp.org>
20221
20222         BeOS portability.
20223         * lib/mbchar.h: Include <wctype.h> only if it exists.
20224
20225 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
20226
20227         Remove files that are no longer needed by their respective modules.
20228         * m4/obstack.m4: Remove.
20229         * m4/strerror_r.m4: Remove.
20230         * m4/uint32_t.m4: Remove.
20231         * m4/uintptr_t.m4: Remove.
20232         * m4/ullong_max.m4: Remove.
20233         * m4/xstrtoimax.m4: Remove.
20234         * m4/xstrtoumax.m4: Remove.
20235
20236         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
20237         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
20238         dependencies now capture this.
20239
20240         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
20241         Do not use AC_LIBSOURCES, since gnulib modules now do this.
20242         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
20243         * m4/human.m4 (gl_HUMAN): Likewise.
20244         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
20245         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
20246
20247         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
20248
20249         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
20250         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
20251         stdint.
20252         * m4/human.m4 (gl_HUMAN): Likewise.
20253         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
20254         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
20255         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
20256         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
20257         * m4/xstrtol (gl_XSTRTOL): Likewise.
20258
20259         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
20260         AC_TYPE_LONG_LONG_INT.
20261         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
20262         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
20263         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
20264         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
20265
20266         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
20267         on stdbool.
20268
20269         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
20270         (gl_PREREQ_XSTRTOUL): Remove.
20271
20272         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
20273
20274         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
20275         mode.
20276
20277 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
20278
20279         Add and change modules to make it easier for coreutils to use
20280         gnulib-tool.
20281         * modules/backupfile (Files): Remove m4/d-ino.m4.
20282         (Depends-on): Add d-ino.
20283         * modules/cycle-check (Depends-on): Add stdint.
20284         (lib_SOURCES): Add cycle-check.h.
20285         * modules/d-ino: New module.
20286         * modules/d-type: New module.
20287         * modules/error (Files): Remove m4/strerror_r.m4.
20288         * modules/filemode (Files): Add m4/st_dm_mode.m4.
20289         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
20290         m4/inttypes_h.m4, m4/uintmax_t.m4.
20291         (Depends-on): Add stdint.
20292         (lib_SOURCES): Add fsusage.h.
20293         * modules/getcwd (Files): Remove d-ino.m4.
20294         (Depends-on): Add d-ino.
20295         * modules/getndelim2 (Depends-on): Add stdint.
20296         * modules/glob (Files): Remove m4/d-type.m4.
20297         (Depends-on): Add d-type.
20298         * modules/host-os: New module.
20299         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
20300         m4/inttypes_h.m4, m4/uintmax_t.m4.
20301         * Depends-on: Add stdint.
20302         (lib_SOURCES): Add human.h.
20303         * modules/inttostr (Files): Remove m4/intmax_t.m4,
20304         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
20305         m4/uintmax_t.m4, m4/ulonglong.m4.
20306         (Depends-on): Add stdint.
20307         (EXTRA_DIST): Add inttostr.h.
20308         * modules/lchmod: New module.
20309         * modules/link-follow: New module.
20310         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
20311         (Depends-on): Add lchmod.
20312         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
20313         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
20314         (Depends-on): Add stdint.
20315         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
20316         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
20317         (Depends-on): Add stdint.
20318         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
20319         * modules/perl: New module.
20320         * modules/regex (Depends-on): Add stdint.
20321         * modules/rmdir-errno: New module.
20322         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
20323         m4/intmax_t.m4.
20324         (Depends-on): Add stdint.
20325         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
20326         m4/uintmax_t.m4.
20327         (Depends-on): Add stdint.
20328         * modules/unlink-busy: New module.
20329         * modules/utimecmp (Depends-on): Add stdint.
20330         * modules/uptime: New module.
20331         * modules/winsz-ioctl: New module.
20332         * modules/winsz-termios: New module.
20333         * modules/xnanosleep (Depends-on): Add nanosleep.
20334         * modules/ullong_max: Remove.
20335         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
20336         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
20337         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
20338         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
20339         (Depends-on): Add inttypes.
20340         (lib_SOURCES): Add xstrtol.h.
20341         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
20342         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
20343         * MODULES.html.sh: Move 'assert' into the assert section.
20344         Move 'dummy' into the linking section.
20345         Remove ullong_max.
20346         Add section for compatibility checks for POSIX:2001 functions,
20347         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
20348         winsz-ioctl, and winsz-termios into it.
20349         Add lchmod.
20350         Add top-level Misc section and put host-os, perl, and uptime
20351         into it.
20352
20353 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
20354
20355         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
20356         now assume the stdint module.  Do not include inttypes.h.
20357         * lib/fsusage.h: Likewise.
20358         * lib/getndelim2.c: Likewise.
20359         * lib/human.h: Likewise.
20360         * lib/inttostr.h: Likewise.
20361         * lib/obstack.c: Likewise.
20362         * lib/regex_internal.h: Likewise.
20363         * lib/tempname.c: Likewise.
20364         * lib/utimecmp.c: Likewise.
20365         * lib/xstrtol.h: Likewise.
20366
20367         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
20368
20369         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
20370         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
20371         * lib/xtime.h: Likewise.
20372
20373 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
20374
20375         * modules/openat (Files): Add lib/fchmodat.c.
20376         Fixes problem reported by Jay Youngman.
20377
20378 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
20379
20380         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
20381         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
20382
20383 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
20384             Bruno Haible  <bruno@clisp.org>
20385
20386         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
20387         and is a script that invokes bison. Tighten the code. Add comments.
20388
20389 2006-08-18  Jim Meyering  <jim@meyering.net>
20390
20391         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
20392         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
20393         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
20394         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
20395
20396 2006-08-18  Bruno Haible  <bruno@clisp.org>
20397
20398         * modules/bison-i18n: New file.
20399         * MODULES.html.sh (Internationalization functions): Add it.
20400
20401 2006-08-18  Bruno Haible  <bruno@clisp.org>
20402
20403         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
20404         sys/statvfs.h. When getmntinfo was found, check its declaration and
20405         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
20406
20407 2006-08-18  Bruno Haible  <bruno@clisp.org>
20408
20409         * m4/bison-i18n.m4: New file, from bison.
20410
20411 2006-08-18  Bruno Haible  <bruno@clisp.org>
20412
20413         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
20414         (ME_DUMMY): Treat "kernfs" as a dummy.
20415         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
20416
20417 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
20418
20419         Update from coreutils.
20420
20421         2006-08-15  Jim Meyering  <jim@meyering.net>
20422
20423         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
20424
20425         2006-01-17  Jim Meyering  <jim@meyering.net>
20426
20427         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
20428
20429         2006-01-11  Jim Meyering  <jim@meyering.net>
20430
20431         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
20432         Check for the lchmod function.
20433
20434 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
20435
20436         Update from coreutils.
20437
20438         * lib/__fpending.h: Add copyright notice.
20439         * lib/fprintftime.h: Likewise.
20440         * lib/savedir.c: Use (C) in copyright notice.
20441         * lib/savedir.h: Likewise.
20442
20443         2006-08-15  Jim Meyering  <jim@meyering.net>
20444
20445         * lib/at-func.c: New file, with the logic of all emulated at-functions.
20446         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
20447         in support of the EXPECTED_ERRNO macro.
20448         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
20449         definitions.  Instead, define the appropriate symbols and include
20450         "at-func.c".
20451         * lib/mkdirat.c (mkdirat): Likewise.
20452         * lib/fchmodat.c (fchmodat): Likewise.
20453         (ENOSYS): Remove definition.
20454         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
20455         it.  Don't include "unistd--.h" -- it wasn't ever used.
20456
20457         2006-01-17  Jim Meyering  <jim@meyering.net>
20458
20459         Rewrite fts.c not to change the current working directory,
20460         by using openat, fstatat, fdopendir, etc..
20461
20462         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
20463         (HAVE_OPENAT_SUPPORT): Define.
20464         [_LIBC] (fchdir): Don't undef or define; no longer used.
20465         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
20466         Now, this `function' always succeeds, and consumes its file descriptor
20467         parameter -- so callers must not close such FDs.  Update callers.
20468         (diropen_fd, opendirat, cwd_advance_fd): New functions.
20469         (diropen): Add parameter, SP.  Adjust all callers.
20470         Implement using diropen_fd, rather than open.
20471         (fts_open): Initialize new member, fts_cwd_fd.
20472         Remove fts_rft-setting code.
20473         (fts_close): Close fts_cwd_fd, if necessary.
20474         (__opendir2): Define in terms of opendir or opendirat,
20475         depending on whether the FST_NOCHDIR flag is set.
20476         (fts_build): Since fts_safe_changedir consumes its FD, and since
20477         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
20478         and close the dup'd file descriptor upon failure.
20479         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
20480         (fts_safe_changedir): Tweak semantics to reflect that this function
20481         now calls cwd_advance_fd and hence consumes its FD argument.
20482         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
20483         [struct FTS] (fts_rft): Remove now-unused member.
20484         [struct FTS] (fts_cycle.state): Improve comment.
20485
20486         * lib/openat.c (openat_needs_fchdir): New function.
20487         * lib/openat.h (openat_needs_fchdir): Declare it.
20488
20489 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
20490
20491         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
20492         Problem and fix reported by Pádraig Brady in
20493         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
20494
20495 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20496
20497         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
20498
20499 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20500
20501         * lib/memcoll.c (memcoll): Optimize for the common case where the
20502         arguments are bytewise equal.
20503
20504 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20505
20506         * doc/regexprops-generic.texi: Add a copyright notice.
20507
20508 2006-08-15  Bruno Haible  <bruno@clisp.org>
20509
20510         * modules/tmpdir (License): Change to LGPL.
20511
20512 2006-08-15  Bruno Haible  <bruno@clisp.org>
20513
20514         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
20515         module.
20516
20517 2006-08-14  Simon Josefsson  <jas@extundo.com>
20518
20519         * config/srclist.txt: Add gnupload.
20520
20521 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
20522
20523         Change copyright notice from LGPL 2 to GPL 2, since that's the
20524         standard form used in the gnulib repository.
20525         * tests/test-lock.c: Likewise.
20526         * tests/test-stdint.c: Likewise.
20527         * tests/test-tls.c: Likewise.
20528
20529         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
20530         prelude-manager.  User shorter URLs for GNU projects, without '?'.
20531         Add copyright notice.
20532
20533         * check-module: Add copyright notice.  Output a copyright
20534         notice if "--version" is specified.
20535         * modules/COPYING: New file.
20536         * tests/test-getaddrinfo.c: Add copyright notice.
20537         * tests/test-verify.c: Likewise.
20538
20539 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
20540
20541         Change copyright notice from LGPL 2 to GPL 2, since that's the
20542         standard form used in the gnulib repository.
20543         * lib/lock.c: LGPL -> GPL.
20544         * lib/lock.h: Likewise.
20545         * lib/strnlen1.c: Likewise.
20546         * lib/strnlen1.h: Likewise.
20547         * lib/tls.c: Likewise.
20548         * lib/tls.h: Likewise.
20549         * lib/tmpdir.c: Likewise.
20550
20551         * lib/TODO: Remove; this belongs only in coreutils.
20552
20553 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
20554
20555         Add copyright notices to long-enough files that lack them, since
20556         otherwise the files aren't clearly free.  Use the same notice that
20557         getdate.texi already uses.
20558         * doc/alloca-opt.texi: Add copyright notice.
20559         * doc/alloca.texi: Likewise.
20560         * doc/ctime.texi: Likewise.
20561         * doc/functions.texi: Likewise.
20562         * doc/gcd.texi: Likewise.
20563         * doc/gnulib-tool.texi: Likewise.
20564         * doc/inet_ntoa.texi: Likewise.
20565         * doc/visibility.texi: Likewise.
20566
20567         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
20568         * doc/quote.texi: Add copyright notice.
20569
20570         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
20571         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
20572         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
20573         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
20574         is now obsolete, and give a pointer to the Sun list.
20575         Add copyright notice.
20576
20577 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
20578
20579         * config/srclistvars.sh: Add copyright notice.
20580
20581 2006-08-14  Eric Blake  <ebb9@byu.net>
20582
20583         Import the following change from libc:
20584
20585         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
20586
20587         Upstream bug 2997.
20588         * lib/misc/error.c: Add space between program name and message if file
20589         name is missing.
20590
20591 2006-08-12  Karl Berry  <karl@gnu.org>
20592
20593         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
20594         remove, these originate in gnulib now.
20595
20596 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20597
20598         * doc/Makefile (standards.info standards.html standards.dvi):
20599         Also depend on make-stds.texi.
20600
20601 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
20602
20603         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
20604         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
20605
20606         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
20607         in wchar_t.  Problem reported by Eric Blake.
20608
20609         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
20610         LEN is smaller than SIZE.  Suggested by Bruno Haible.
20611         Also, help the compiler to keep LEN in a register.
20612
20613 2006-08-11  Eric Blake  <ebb9@byu.net>
20614
20615         * users.txt: Sort.  Add tar.
20616
20617 2006-08-11  Bruno Haible  <bruno@clisp.org>
20618
20619         * users.txt: New file.
20620
20621 2006-08-11  Bruno Haible  <bruno@clisp.org>
20622
20623         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
20624         before <wchar.h>. Needed for OSF/1 and BSD/OS.
20625
20626 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
20627
20628         * modules/snprintf (Depends-on): Remove minmax.
20629         (Maintainer): Add self and Bruno.
20630
20631 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
20632
20633         * lib/.cppi-disable: Add snprintf.h, socket_.h.
20634         * lib/snprintf.c: Include <errno.h> and <limits.h>.
20635         (EOVERFLOW): Define if the system does not.
20636         Do not include "minmax.h"; it wasn't used.
20637         (snprintf): Don't assume size_t promotes to an unsigned type.
20638         Fix bug when generated string was too long for the buffer: the
20639         buffer's contents are supposed to be the initial prefix of the
20640         output.  Don't assume vasnprintf returns EOVERFLOW if the size
20641         exceeds INT_MAX; do the check ourselves.
20642
20643         Import the following changes from libc:
20644
20645         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
20646
20647         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
20648         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
20649         set wc to the byte which couldn't be converted.
20650         (re_string_reconstruct): Don't clear valid_raw_len before calling
20651         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
20652         tip_context using re_string_context_at.
20653
20654         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
20655
20656         * lib/posix/regex.h: g++ still cannot handled [restrict].
20657
20658         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
20659
20660         * lib/posix/regex.h: Remove special handling for VMS.
20661
20662 2006-08-10  Jim Meyering  <jim@meyering.net>
20663
20664         * modules/same-inode: New module.
20665         * modules/dev-ino: New module.
20666         * modules/cycle-check: Depend on these modules, rather than simply
20667         including their .h files.
20668         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
20669         required via m4/cycle-check.m4.
20670         * modules/same: Depend on new same-inode module, rather than
20671         including same-inode.h.
20672         * modules/chdir-safer: New file.
20673
20674         * modules/chown (Depends-on): Add stat-macros.
20675
20676 2006-08-10  Jim Meyering  <jim@meyering.net>
20677
20678         * m4/cycle-check.m4: New file.
20679         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
20680         * m4/dev-ino.m4, m4/same-inode.m4: New files.
20681
20682 2006-08-10  Eric Blake  <ebb9@byu.net>
20683
20684         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
20685         in from original proposal.
20686
20687 2006-08-10  Eric Blake  <ebb9@byu.net>
20688         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20689
20690         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
20691         namespace.
20692
20693 2006-08-10  Bruno Haible  <bruno@clisp.org>
20694
20695         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
20696         as well.
20697
20698 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
20699
20700         Sync from coreutils.
20701
20702         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
20703
20704         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
20705         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
20706
20707 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
20708
20709         * modules/restrict: Remove; no longer needed now that we assume
20710         Autoconf 2.59 or later.
20711         * MODULES.html.sh: Remove 'restrict'.
20712         * modules/argp (Depends-on): Remove 'restrict'.
20713         * modules/base64 (Depends-on): Likewise.
20714         * modules/gc (Depends-on): Likewise.
20715         * modules/getaddrinfo (Depends-on): Likewise.
20716         * modules/glob (Depends-on): Likewise.
20717         * modules/inet_ntop (Depends-on): Likewise.
20718         * modules/inet_pton (Depends-on): Likewise.
20719         * modules/memxor (Depends-on): Likewise.
20720         * modules/regex (Depends-on): Likewise.
20721         * modules/strtok_r (Depends-on): Likewise.
20722         * modules/time_r (Depends-on): Likewise.
20723
20724 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
20725
20726         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
20727         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
20728         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
20729         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
20730         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
20731         * m4/memxor.m4 (gl_MEMXOR): Likewise.
20732         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
20733         gl_C_RESTRICT replaced by AC_C_RESTRICT.
20734
20735         Merge from coreutils.
20736         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
20737         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
20738         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
20739         * m4/time_r.m4 (gl_TIME_R): Likewise.
20740
20741 2006-08-09  Karl Berry  <karl@gnu.org>
20742
20743         * config/srclist.txt: no more gettext-tools, per Bruno.
20744
20745 2006-08-08  Eric Blake  <ebb9@byu.net>
20746
20747         * modules/verror: New module.
20748         * MODULES.html.sh: Document it.
20749
20750 2006-08-08  Eric Blake  <ebb9@byu.net>
20751
20752         * lib/verror.h, lib/verror.c: New files.
20753
20754 2006-08-08  Eric Blake  <ebb9@byu.net>
20755
20756         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
20757         verror_at_line output complies with GNU Coding Standards even when
20758         file is NULL.
20759
20760 2006-08-07  Bruno Haible  <bruno@clisp.org>
20761
20762         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
20763         versions of AIX.
20764         Reported by Ralf Wildenhues.
20765
20766 2006-08-07  Bruno Haible  <bruno@clisp.org>
20767
20768         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
20769         in an AC_DEFUN. Needed so that the autoconf snippets can use
20770         AC_REQUIRE.
20771
20772 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20773
20774         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20775         Initialize pkgdata_DATA.
20776         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
20777         overriding it.
20778
20779 2006-08-06  Eric Blake  <ebb9@byu.net>
20780
20781         * lib/error.h: Fold in some upstream changes from glibc.
20782         * lib/error.c: Likewise.
20783
20784 2006-08-04  Bruno Haible  <bruno@clisp.org>
20785
20786         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20787         Make the mostlyclean-local rule depend on mostlyclean-generic.
20788         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
20789
20790 2006-07-31  Bruno Haible  <bruno@clisp.org>
20791
20792         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
20793         <stdlib.h>, <string.h>.
20794
20795 2006-07-30  Bruno Haible  <bruno@clisp.org>
20796
20797         * modules/readlink (License): Change to LGPL.
20798
20799 2006-07-30  Bruno Haible  <bruno@clisp.org>
20800
20801         * modules/javaversion (Makefile.am): Distribute javaversion.java and
20802         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
20803         set PKGDATADIR to point to it.
20804
20805 2006-07-30  Bruno Haible  <bruno@clisp.org>
20806
20807         * modules/csharpexec (configure.ac): Comment out macro invocation.
20808         * modules/javaexec (configure.ac): Likewise.
20809         * modules/javacomp-script (configure.ac): Likewise.
20810
20811         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
20812
20813 2006-07-30  Bruno Haible  <bruno@clisp.org>
20814
20815         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
20816         linked-list.
20817
20818 2006-07-30  Bruno Haible  <bruno@clisp.org>
20819
20820         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
20821
20822 2006-07-30  Bruno Haible  <bruno@clisp.org>
20823
20824         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20825         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
20826         get removed.
20827
20828 2006-07-29  Bruno Haible  <bruno@clisp.org>
20829
20830         Make it possible for gnulib-tool to work with locally modified or
20831         augmented gnulib repositories.
20832         * gnulib-tool (func_usage): Document --local-dir option.
20833         (local_gnulib_dir): New variable.
20834         Handle --local-dir option.
20835         (func_lookup_file): New function.
20836         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
20837         (func_get_description, func_get_filelist, func_get_description,
20838         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
20839         func_get_automake_snippet, func_get_include_directive,
20840         func_get_license, func_get_maintainer): Use func_lookup_file.
20841         (func_import, func_create_testdir): Use func_lookup_file.
20842
20843 2006-07-29  Bruno Haible  <bruno@clisp.org>
20844
20845         * modules/setenv (Depends-on): Add unistd.
20846
20847 2006-07-29  Bruno Haible  <bruno@clisp.org>
20848
20849         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
20850
20851 2006-07-29  Bruno Haible  <bruno@clisp.org>
20852
20853         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
20854
20855 2006-07-29  Bruno Haible  <bruno@clisp.org>
20856
20857         * gnulib-tool (import, update): If there is no Makefile.am, look at
20858         aclocal.m4, instead of bailing out.
20859
20860 2006-07-29  Bruno Haible  <bruno@clisp.org>
20861
20862         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
20863         Categorize the options by when they are useful.
20864
20865 2006-07-29  Bruno Haible  <bruno@clisp.org>
20866
20867         * gnulib-tool (func_usage): Document option --no-libtool.
20868         Handle option --no-libtool.
20869         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
20870         for changed semantics of $libtool variable.
20871         (func_import): Likewise. If libtool is not used, show this through
20872         an option --no-libtool.
20873         (func_create_testdir): Update.
20874
20875 2006-07-29  Bruno Haible  <bruno@clisp.org>
20876
20877         * gnulib-tool (func_import): Extend error message about missing
20878         --doc-base.
20879
20880 2006-07-29  Bruno Haible  <bruno@clisp.org>
20881
20882         * gnulib-tool (func_import): Don't create the $docbase directory if
20883         there is no file to store there.
20884
20885 2006-07-29  Bruno Haible  <bruno@clisp.org>
20886
20887         * gnulib-tool (autoconf_minversion): If a --dir option is given and
20888         relevant, look for configure.ac there, not in the current directory.
20889         Also use a simple search for AC_PREREQ, not "autoconf --trace".
20890
20891 2006-07-29  Bruno Haible  <bruno@clisp.org>
20892
20893         * gnulib-tool (SORT): New variable.
20894         (func_usage): Undocument --assume-autoconf option.
20895         Remove --assume-autoconf option handling.
20896         (autoconf_minversion): Determine from the contents of configure.ac.
20897         (func_import): Remove autoconf_minversion handling.
20898         Suggested by Eric Blake.
20899
20900 2006-07-29  Bruno Haible  <bruno@clisp.org>
20901
20902         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
20903
20904 2006-07-29  Bruno Haible  <bruno@clisp.org>
20905
20906         * config/srclist.txt (*setenv.[ch]): Remove rules.
20907
20908 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20909
20910         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
20911
20912 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20913
20914         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
20915         arpa/inet.h.
20916
20917 2006-07-28  Simon Josefsson  <jas@extundo.com>
20918
20919         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
20920         * modules/inet_pton (Depends-on): Likewise.
20921
20922 2006-07-28  Simon Josefsson  <jas@extundo.com>
20923
20924         * m4/netinet_in_h.m4: New file.
20925
20926 2006-07-28  Simon Josefsson  <jas@extundo.com>
20927
20928         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
20929         #include's.
20930
20931 2006-07-28  Simon Josefsson  <jas@extundo.com>
20932
20933         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
20934         #include's.
20935
20936 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
20937
20938         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
20939         setgid on directories only if they set these bits.
20940         * lib/modechange.h: Remove obsolete comment about masks.
20941
20942 2006-07-28  Eric Blake  <ebb9@byu.net>
20943
20944         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
20945         macro expansion.
20946
20947 2006-07-28  Bruno Haible  <bruno@clisp.org>
20948
20949         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
20950
20951 2006-07-28  Bruno Haible  <bruno@clisp.org>
20952
20953         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
20954
20955 2006-07-28  Bruno Haible  <bruno@clisp.org>
20956
20957         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20958         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
20959         Define fallbacks.
20960         Avoids link error on FreeBSD 4.x.
20961         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20962
20963         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
20964         encoding.
20965         * lib/mbswidth.c (iswcntrl): Likewise.
20966
20967 2006-07-27  Bruno Haible  <bruno@clisp.org>
20968
20969         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
20970         test.
20971
20972 2006-07-27  Bruno Haible  <bruno@clisp.org>
20973
20974         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
20975         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
20976         defined.
20977
20978 2006-07-26  Eric Blake  <ebb9@byu.net>
20979
20980         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
20981
20982 2006-07-26  Eric Blake  <ebb9@byu.net>
20983
20984         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
20985         like mingw that lack mkstemp.
20986         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
20987         avoid compilation warning on mingw.
20988
20989 2006-07-26  Bruno Haible  <bruno@clisp.org>
20990
20991         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
20992         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
20993         INT_FAST*_MIN, INTPTR_MIN.
20994
20995 2006-07-25  Bruno Haible  <bruno@clisp.org>
20996
20997         * modules/version-etc (Depends-on): Add stdarg.
20998
20999 2006-07-25  Bruno Haible  <bruno@clisp.org>
21000
21001         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
21002         complex commands.
21003
21004 2006-07-25  Bruno Haible  <bruno@clisp.org>
21005
21006         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
21007         defined in <stdarg.h> or config.h.
21008
21009 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
21010
21011         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
21012         (gl_STDIO_SAFER): Remove.
21013
21014 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
21015
21016         * MODULES.html.sh (File stream based Input/Output):
21017         Add fopen-safer, tmpfile-safer; remove stdio-safer.
21018         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
21019         * modules/fopen-safer, modules/tmpfile-safer: New files.
21020         * modules/stdio-safer: Remove.
21021
21022 2006-07-24  Bruno Haible  <bruno@clisp.org>
21023
21024         * modules/tmpdir: New file.
21025         * MODULES.html.sh (File system functions): Add it.
21026
21027 2006-07-24  Bruno Haible  <bruno@clisp.org>
21028
21029         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
21030         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
21031
21032 2006-07-24  Bruno Haible  <bruno@clisp.org>
21033
21034         * modules/clean-temp: New file.
21035
21036 2006-07-24  Bruno Haible  <bruno@clisp.org>
21037
21038         * m4/tmpdir.m4: New file, from GNU gettext.
21039
21040 2006-07-24  Bruno Haible  <bruno@clisp.org>
21041
21042         * lib/tmpdir.h: New file, from GNU gettext.
21043         * lib/tmpdir.c: New file, from GNU gettext.
21044
21045 2006-07-24  Bruno Haible  <bruno@clisp.org>
21046
21047         * lib/clean-temp.h: New file, from GNU gettext.
21048         * lib/clean-temp.c: New file, from GNU gettext.
21049
21050 2006-07-23  Eric Blake  <ebb9@byu.net>
21051
21052         * modules/stdio-safer (Files): Add tmpfile-safer.c.
21053         (Depends-on): Add binary-io.
21054
21055 2006-07-23  Eric Blake  <ebb9@byu.net>
21056
21057         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
21058
21059 2006-07-23  Eric Blake  <ebb9@byu.net>
21060
21061         * lib/tmpfile-safer.c: New file.
21062         * lib/stdio-safer.h (fopen_safer): Add prototype.
21063         * lib/stdio--.h (tmpfile): Make safer.
21064
21065 2006-07-23  Bruno Haible  <bruno@clisp.org>
21066
21067         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
21068         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
21069         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
21070         gl_linked_remove_at): Use it.
21071
21072 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21073         and Simon Josefsson <jas@extundo.com>
21074
21075         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
21076
21077         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
21078
21079 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
21080
21081         * modules/close-stream: New file.
21082         * modules/closeout (Description): Make it clear that it exits
21083         with a diagnostic on error.
21084         (Depends-on): Add close-stream.  Remove fpending, stdbool.
21085         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
21086
21087 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
21088
21089         * m4/close-stream.m4: New file.
21090
21091 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
21092
21093         * lib/close-stream.c, lib/close-stream.h: New files.
21094
21095 2006-07-22  Bruno Haible  <bruno@clisp.org>
21096
21097         Merge from GNU gettext 0.15.
21098
21099         2006-05-01  Bruno Haible  <bruno@clisp.org>
21100
21101                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
21102
21103         2006-07-22  Bruno Haible  <bruno@clisp.org>
21104
21105                 * modules/javaversion: New file.
21106                 * MODULES.html.sh (Java): Add javaversion.
21107
21108         2006-03-12  Bruno Haible  <bruno@clisp.org>
21109
21110                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
21111
21112         2005-12-04  Bruno Haible  <bruno@clisp.org>
21113
21114                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
21115                 (untested).
21116
21117         2006-06-21  Bruno Haible  <bruno@clisp.org>
21118
21119                 Avoid warnings from recent versions of mcs.
21120                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
21121                 -o, -L, -r any more. Use options documented since mcs-1.0
21122                 instead. Similarly for -g.
21123
21124         2005-12-04  Bruno Haible  <bruno@clisp.org>
21125
21126                 * build-aux/csharpcomp.sh.in: Suffix for resources is
21127                 .resources, not .resource.
21128
21129         2005-07-09  Bruno Haible  <bruno@clisp.org>
21130
21131                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
21132                 add a .dll suffix.
21133                 Reported by Mark Junker <mjscod@gmx.de>.
21134
21135         2006-07-22  Bruno Haible  <bruno@clisp.org>
21136
21137                 * modules/gettext: Upgrade to gettext-0.15.
21138                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
21139                 m4/visibility.m4.
21140                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
21141
21142 2006-07-22  Bruno Haible  <bruno@clisp.org>
21143
21144         Merge from GNU gettext 0.15.
21145
21146         2006-03-25  Bruno Haible  <bruno@clisp.org>
21147
21148                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
21149
21150         2006-07-21  Bruno Haible  <bruno@clisp.org>
21151
21152                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
21153                 "1.1".
21154
21155         2006-05-09  Bruno Haible  <bruno@clisp.org>
21156
21157                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
21158                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
21159                 for the conftestver execution.
21160
21161         2006-05-01  Bruno Haible  <bruno@clisp.org>
21162
21163                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
21164                 optional target-version argument. Verify that the compiler
21165                 groks source of the specified source-version, or add -source
21166                 option as necessary. Verify that the compiler produces
21167                 bytecode in the specified target-version, or add -target and
21168                 -source options as necessary. Make the result of the test
21169                 available as variable CONF_JAVAC. Also log error output in
21170                 config.log.
21171
21172         2006-03-11  Bruno Haible  <bruno@clisp.org>
21173
21174                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
21175
21176         2006-05-09  Bruno Haible  <bruno@clisp.org>
21177
21178                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
21179                 CLASSPATH_SEPARATOR to a semicolon.
21180
21181         2006-03-12  Bruno Haible  <bruno@clisp.org>
21182
21183                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
21184                 available as variable CONF_JAVA, for subsequent autoconf
21185                 tests. Also log error output in config.log.
21186
21187         2006-07-19  Bruno Haible  <bruno@clisp.org>
21188
21189                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
21190                 that getline works on glibc2 systems. Needed to avoid trouble
21191                 in relocatable.c.
21192                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
21193
21194         2005-12-04  Bruno Haible  <bruno@clisp.org>
21195
21196                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
21197                 launcher (untested).
21198
21199         2005-12-04  Bruno Haible  <bruno@clisp.org>
21200
21201                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
21202
21203         2006-07-22  Bruno Haible  <bruno@clisp.org>
21204
21205                 * gettext.m4: Update from GNU gettext-0.15.
21206                 * nls.m4: Likewise.
21207                 * po.m4: Likewise.
21208                 * inttypes-pri.m4: Likewise.
21209                 * inttypes-h.m4: Renamed from inttypes.m4.
21210                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
21211
21212 2006-07-22  Bruno Haible  <bruno@clisp.org>
21213
21214         Merge from GNU gettext 0.15.
21215
21216         2005-07-05  Bruno Haible  <bruno@clisp.org>
21217
21218                 * printf-args.c (printf_fetchargs): Work around broken
21219                 definition of wint_t on mingw.
21220
21221         2005-02-12  Bruno Haible  <bruno@clisp.org>
21222
21223                 * xallocsa.h: Add extern "C" for C++.
21224
21225         2006-05-17  Bruno Haible  <bruno@clisp.org>
21226
21227                 Cygwin portability.
21228                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
21229
21230         2006-04-30  Bruno Haible  <bruno@clisp.org>
21231
21232                 * progreloc.c: Include <mach-o/dyld.h> if available.
21233                 (find_executable): Use _NSGetExecutablePath when possible.
21234
21235         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
21236
21237                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
21238                 function.
21239
21240         2005-12-29  Bruno Haible  <bruno@clisp.org>
21241
21242                 * progreloc.c (set_program_name_and_installdir): Fix
21243                 compilation error.
21244
21245         2005-12-04  Bruno Haible  <bruno@clisp.org>
21246
21247                 Cygwin portability.
21248                 * progreloc.c: Include <windows.h> also on Cygwin.
21249                 (find_executable): Add support for Cygwin.
21250                 (set_program_name_and_installdir): Handle also platforms with
21251                 nonempty EXEEXT.
21252
21253         2006-07-11  Bruno Haible  <bruno@clisp.org>
21254
21255                 * javacomp.c: Fix a comment.
21256                 Reported by Jim Meyering.
21257
21258         2006-04-30  Bruno Haible  <bruno@clisp.org>
21259
21260                 * javacomp.h (compile_java_class): Add source_version,
21261                 target_version arguments.
21262                 * javacomp.c: Rewritten to choose only a compiler that
21263                 respects the specified source_version and target_version.
21264
21265         2006-06-27  Bruno Haible  <bruno@clisp.org>
21266
21267                 Assume correct S_ISDIR macro.
21268                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
21269
21270         2006-07-22  Bruno Haible  <bruno@clisp.org>
21271
21272                 * javaversion.h: New file, from GNU gettext.
21273                 * javaversion.c: New file, from GNU gettext.
21274                 * javaversion.java: New file, from GNU gettext.
21275                 * javaversion.class: New file, from GNU gettext.
21276
21277         2006-05-17  Bruno Haible  <bruno@clisp.org>
21278
21279                 Cygwin portability.
21280                 * javaexec.c (execute_java_class): Test for jview program
21281                 also on Cygwin.
21282
21283         2006-04-09  Bruno Haible  <bruno@clisp.org>
21284
21285                 * fatal-signal.c: Don't include string.h.
21286                 (at_fatal_signal): Use a copying loop instead of memcpy.
21287
21288         2005-12-04  Bruno Haible  <bruno@clisp.org>
21289
21290                 * csharpexec.c: Add support for 'clix' launcher (untested).
21291                 (execute_csharp_using_sscli): New function.
21292                 (execute_csharp_program): Call it.
21293
21294         2006-06-21  Bruno Haible  <bruno@clisp.org>
21295
21296                 Avoid warnings from recent versions of mcs.
21297                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
21298                 -o, -L, -r any more. Use options documented since mcs-1.0
21299                 instead. Similarly for -g.
21300
21301         2005-07-09  Bruno Haible  <bruno@clisp.org>
21302
21303                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
21304                 add a .dll suffix.
21305                 Reported by Mark Junker <mjscod@gmx.de>.
21306
21307         2006-06-17  Bruno Haible  <bruno@clisp.org>
21308
21309                 * config.charset: Update for NetBSD 3.0.
21310
21311         2006-05-17  Bruno Haible  <bruno@clisp.org>
21312
21313                 Cygwin portability.
21314                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
21315
21316         2006-05-16  Bruno Haible  <bruno@clisp.org>
21317
21318                 * localcharset.c [CYGWIN]: Include <windows.h>.
21319                 (get_charset_aliases): For Cygwin, return the same CPxxx
21320                 aliases list as under WIN32.
21321                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
21322                 the environment variables. Fall back to GetACP().
21323
21324         2006-04-05  Bruno Haible  <bruno@clisp.org>
21325
21326                 * config.charset: Update Juan Manuel Guerrero's address.
21327
21328         2005-02-12  Bruno Haible  <bruno@clisp.org>
21329
21330                 * allocsa.h: Add extern "C" for C++.
21331
21332         2005-02-10  Bruno Haible  <bruno@clisp.org>
21333
21334                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
21335                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
21336
21337         2006-07-22  Bruno Haible  <bruno@clisp.org>
21338
21339                 * gettext.h: Update to GNU gettext-0.15.
21340
21341 2006-07-22  Bruno Haible  <bruno@clisp.org>
21342
21343         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
21344         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
21345         lib-prefix.m4, longdouble.m4, ssize_t.m4.
21346
21347 2006-07-21  Eric Blake  <ebb9@byu.net>
21348
21349         * modules/stdlib-safer: New file.
21350         * MODULES.html.sh (File stream based Input/Output): Add
21351         stdlib-safer.
21352
21353 2006-07-21  Eric Blake  <ebb9@byu.net>
21354
21355         * lib/stdlib-safer.h: New file from coreutils, required by
21356         stdlib--.h.
21357
21358 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
21359
21360         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
21361
21362 2006-07-20  Bruno Haible  <bruno@clisp.org>
21363
21364         * gnulib-tool: Recognize new option --assume-autoconf.
21365         (autoconf_minversion): New variable.
21366         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
21367
21368 2006-07-20  Bruno Haible  <bruno@clisp.org>
21369
21370         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
21371
21372 2006-07-19  Derek R. Price  <derek@ximbiot.com>
21373
21374         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
21375         Reindent and repaginate.
21376
21377 2006-07-19  Derek Price  <derek@ximbiot.com>
21378
21379         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
21380         Correct grammar.
21381
21382 2006-07-17  Bruno Haible  <bruno@clisp.org>
21383
21384         * modules/list: New file.
21385         * modules/array-list: New file.
21386         * modules/carray-list, modules/carray-list-tests: New files.
21387         * modules/linked-list, modules/linked-list-tests: New files.
21388         * modules/avltree-list, modules/avltree-list-tests: New files.
21389         * modules/rbtree-list, modules/rbtree-list-tests: New files.
21390         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
21391         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
21392         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
21393         * modules/oset: New file.
21394         * modules/array-oset: New file.
21395         * modules/avltree-oset, modules/avltree-oset-tests: New files.
21396         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
21397         * tests/test-carray_list.c: New file.
21398         * tests/test-linked_list.c: New file.
21399         * tests/test-avltree_list.c: New file.
21400         * tests/test-rbtree_list.c: New file.
21401         * tests/test-linkedhash_list.c: New file.
21402         * tests/test-avltreehash_list.c: New file.
21403         * tests/test-rbtreehash_list.c: New file.
21404         * tests/test-avltree_oset.c: New file.
21405         * tests/test-rbtree_oset.c: New file.
21406         * MODULES.html.sh (Container data structures): New section.
21407
21408 2006-07-17  Bruno Haible  <bruno@clisp.org>
21409
21410         * m4/gl_list.m4: New file.
21411
21412 2006-07-17  Bruno Haible  <bruno@clisp.org>
21413
21414         * lib/gl_list.h: New file.
21415         * lib/gl_list.c: New file.
21416         * lib/gl_array_list.h: New file.
21417         * lib/gl_array_list.c: New file.
21418         * lib/gl_carray_list.h: New file.
21419         * lib/gl_carray_list.c: New file.
21420         * lib/gl_linked_list.h: New file.
21421         * lib/gl_linked_list.c: New file.
21422         * lib/gl_anylinked_list1.h: New file.
21423         * lib/gl_anylinked_list2.h: New file.
21424         * lib/gl_avltree_list.h: New file.
21425         * lib/gl_avltree_list.c: New file.
21426         * lib/gl_anyavltree_list1.h: New file.
21427         * lib/gl_anyavltree_list2.h: New file.
21428         * lib/gl_rbtree_list.h: New file.
21429         * lib/gl_rbtree_list.c: New file.
21430         * lib/gl_anyrbtree_list1.h: New file.
21431         * lib/gl_anyrbtree_list2.h: New file.
21432         * lib/gl_anytree_list1.h: New file.
21433         * lib/gl_anytree_list2.h: New file.
21434         * lib/gl_linkedhash_list.h: New file.
21435         * lib/gl_linkedhash_list.c: New file.
21436         * lib/gl_anyhash_list1.h: New file.
21437         * lib/gl_anyhash_list2.h: New file.
21438         * lib/gl_avltreehash_list.h: New file.
21439         * lib/gl_avltreehash_list.c: New file.
21440         * lib/gl_rbtreehash_list.h: New file.
21441         * lib/gl_rbtreehash_list.c: New file.
21442         * lib/gl_anytreehash_list1.h: New file.
21443         * lib/gl_anytreehash_list2.h: New file.
21444
21445         * lib/gl_oset.h: New file.
21446         * lib/gl_oset.c: New file.
21447         * lib/gl_array_oset.h: New file.
21448         * lib/gl_array_oset.c: New file.
21449         * lib/gl_avltree_oset.h: New file.
21450         * lib/gl_avltree_oset.c: New file.
21451         * lib/gl_rbtree_oset.h: New file.
21452         * lib/gl_rbtree_oset.c: New file.
21453         * lib/gl_anytree_oset.h: New file.
21454
21455 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
21456
21457         * m4/mkancesdirs.m4: New file.
21458         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
21459         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
21460         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
21461         it.
21462
21463 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
21464
21465         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
21466         * lib/mkancesdirs.h: New files.
21467         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
21468         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
21469         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
21470         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
21471         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
21472         callers changed.  Revamp internals significantly, by not
21473         attempting to create directories that are temporarily more
21474         permissive than the final results.  Do not attempt to use
21475         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
21476         This removes some race conditions, fixes some bugs, and simplifies
21477         things.  Use new dirchownmod function to do owner and mode changes.
21478         * lib/mkdir-p.h: Likewise.
21479         * lib/modechange.c (octal_to_mode): New function.
21480         (struct mode_change): New member mentioned.
21481         (make_node_op_equals): New arg mentioned.  All callers changed.
21482         (mode_compile): Keep track of which mode bits the user has explicitly
21483         mentioned.
21484         (mode_adjust): New arg DIR, so that we implement the X op correctly.
21485         New arg PMODE_BITS, to keep track of which mode bits the user
21486         mentioned; it treats S_ISUID and S_ISGID speciall.
21487         All callers changed.
21488         * lib/modechange.h: Likewise.
21489
21490 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
21491
21492         * MODULES.html.sh: Add mkancestors.
21493         * modules/mkancesdirs: New module.
21494         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
21495         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
21496         The chdir-safer and afs files are now orphans; I'll remove them
21497         unless someone speaks up.
21498         Add lib/dirchownmod.c, lib/dirchownmod.h.
21499         (Depends-on): Remove alloca, chown, save-cwd, dirname.
21500         Add lchown, mkancesdirs.
21501         (Maintainer): Add self.
21502
21503 2006-07-15  Karl Berry  <karl@gnu.org>
21504
21505         * gnulib-tool: help message wording/arrangement.
21506
21507 2006-07-14  Simon Josefsson  <jas@extundo.com>
21508
21509         * doc/gnulib.texi (Libtool and Windows): New section.
21510
21511 2006-07-12  Simon Josefsson  <jas@extundo.com>
21512
21513         * modules/gendocs (License): Fix license, approved by Karl.
21514
21515 2006-07-12  Eric Blake  <ebb9@byu.net>
21516
21517         * MODULES.html.sh: Add gendocs.
21518
21519 2006-07-11  Eric Blake  <ebb9@byu.net>
21520
21521         * modules/fdl: New module, to install doc/fdl.texi.
21522         * MODULES.html.sh: Add new section for documentation modules.
21523         * gnulib-tool: Avoid space-tab.
21524         (--doc-base): New option, to manage files from doc.
21525
21526 2006-07-11  Eric Blake  <ebb9@byu.net>
21527
21528         * m4/absolute-header.m4: Fix comments to match recent change.
21529
21530 2006-07-11  Eric Blake  <ebb9@byu.net>
21531
21532         * gnulib-tool: List --doc-base before --tests-base.
21533
21534 2006-07-11  Derek R. Price  <derek@ximbiot.com>
21535
21536         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
21537
21538 2006-07-11  Bruno Haible  <bruno@clisp.org>
21539
21540         * README: Mention where to put documentation.
21541
21542 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21543
21544         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
21545
21546 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
21547
21548         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
21549         to stdint.m4.
21550
21551 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
21552
21553         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
21554         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
21555         "no/such/file/stdint.h" when there is no such file, so that
21556         the resulting C code can be parsed by dodgy compilers.
21557         Problems reported by Bob Proulx.
21558
21559 2006-07-10  Derek R. Price  <derek@ximbiot.com>
21560
21561         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
21562         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
21563         macros into the GNU _D_EXACT_NAMLEN.
21564         * lib/savedir.c:  Likewise.
21565         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
21566
21567 2006-07-10  Derek R. Price  <derek@ximbiot.com>
21568         and Paul Eggert  <eggert@cs.ucla.edu>
21569
21570         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
21571         * m4/savedir.m4:
21572         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
21573         macros into the GNU _D_EXACT_NAMLEN.
21574
21575 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
21576
21577         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
21578         around the absolute name, to work around a problem with the HP-UX
21579         11.23 native C compiler, reported by Bob Proulx.
21580
21581 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
21582
21583         * doc/maintain.texi, make-stds.texi: Sync from
21584         <http://savannah.gnu.org/projects/gnustandards>.
21585
21586 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
21587
21588         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
21589
21590 2006-07-09  Jim Meyering  <jim@meyering.net>
21591
21592         * m4/glob.m4: Remove a doubled word in a comment.
21593
21594 2006-07-09  Jim Meyering  <jim@meyering.net>
21595
21596         * lib/argp-pv.c: Remove a doubled word in a comment.
21597         * lib/check-version.c (check_version): Likewise.
21598         * lib/javacomp.c (compile_java_class): Likewise.
21599
21600 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
21601
21602         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
21603         for the benefit of people using Autoconf 2.60.  If you want to
21604         support older Autoconf versions you can copy m4/onceonly_2_57.m4
21605         (or m4/onceonly.m4, if pre-2.57) manually.
21606
21607 2006-07-08  Jim Meyering  <jim@meyering.net>
21608
21609         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
21610         comment.
21611         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
21612         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
21613         comment.
21614
21615 2006-07-08  Jim Meyering  <jim@meyering.net>
21616
21617         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
21618
21619 2006-07-07  Simon Josefsson  <jas@extundo.com>
21620
21621         * tests/test-crc.c: Change expected crc value, the test vector
21622         were probably computed using the old broken crc.c?
21623
21624 2006-07-06  Simon Josefsson  <jas@extundo.com>
21625
21626         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
21627         now the canonical place for the M4 file).
21628
21629         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
21630         from the sys_socket dependency now.
21631
21632         * modules/inet_pton (Files): Ditto.
21633
21634         * modules/inet_ntop (Files): Ditto.
21635
21636 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
21637
21638         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
21639         not gl_PREREQ_GETUSERSHELL.
21640
21641 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21642
21643         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
21644         with only one argument, for Autoconf 2.60.
21645         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
21646         expand to nothing, so add a shell command to avoid syntax error.
21647         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
21648
21649 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21650
21651         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
21652
21653 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
21654
21655         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
21656         no longer needed.  Check for isblank decl.
21657         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
21658         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
21659         of existence.
21660
21661 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
21662
21663         * lib/getloadavg.c: Use __VMS, not VMS.
21664         * lib/getopt.c: Likewise.
21665         * lib/getpagesize.h: Likewise.
21666         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
21667         and probably does not work.
21668
21669 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
21670
21671         * lib/.cppi-disable: Add wcwidth.
21672         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
21673         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
21674         (ISGRAPH): Remove.  All uses changed to isgraph.
21675         (FOLD) [!defined _LIBC]: Remove special case.
21676         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
21677         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
21678         HAVE_ISBLANK.
21679         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
21680         case.
21681
21682 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
21683
21684         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
21685         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
21686         brackets.  Other minor changes to suppress some compiler
21687         warnings.
21688
21689 2006-07-06  Derek R. Price  <derek@ximbiot.com>
21690         and Paul Eggert  <eggert@cs.ucla.edu>
21691
21692         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
21693         of invoking obsolescent AC_HEADER_DIRENT macro.
21694         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
21695         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
21696         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21697         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
21698         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
21699         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
21700         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
21701         * m4/readdir.m4: Remove; no longer needed.
21702
21703 2006-07-06  Derek R. Price  <derek@ximbiot.com>
21704         and Paul Eggert  <eggert@cs.ucla.edu>
21705
21706         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
21707         Don't worry about this obsolete case any more.
21708         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
21709         directories.
21710         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
21711         worry about this obsolete case any more.
21712         * lib/fts.c: Likewise.
21713         * lib/getcwd.c: Likewise.
21714         * lib/glob.h: Likewise.
21715         * lib/savedir.c: Likewise.
21716
21717 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
21718
21719         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
21720         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
21721         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
21722         needed.
21723         All uses removed.
21724         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
21725         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
21726         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
21727         needed.
21728         * m4/getdate.m4 (gl_GETDATE): Likewise.
21729         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
21730         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
21731         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
21732         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
21733         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
21734         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
21735         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
21736         needed.
21737
21738 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
21739
21740         * lib/memcasecmp.c: Include <limits.h>.
21741         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
21742         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
21743         Don't assume isdigit succeeds only on '0' through '9'.
21744
21745 2006-07-05  Eric Blake  <ebb9@byu.net>
21746
21747         * modules/getaddrinfo (Depends-on): Add snprintf.
21748
21749 2006-07-05  Eric Blake  <ebb9@byu.net>
21750
21751         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
21752         to avoid 'header present but could not be compiled' on cygwin.
21753
21754 2006-07-05  Eric Blake  <ebb9@byu.net>
21755
21756         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
21757         missing from netdb.h.
21758         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
21759
21760 2006-07-05  Derek R. Price  <derek@ximbiot.com>
21761
21762         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
21763         no longer needed.
21764         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
21765         * m4/getdate.m4 (gl_GETDATE): Likewise.
21766         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
21767         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
21768         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
21769         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
21770         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
21771
21772 2006-07-05  Derek R. Price  <derek@ximbiot.com>
21773
21774         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
21775         All uses of is_space replaced by isspace.
21776         * lib/exit.h: Don't talk about STDC_HEADERS.
21777         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
21778         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
21779         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
21780         replaced by isprint etc.
21781         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
21782         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
21783         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
21784         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
21785         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
21786         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
21787
21788 2006-07-05  Bruno Haible  <bruno@clisp.org>
21789
21790         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
21791         the function exists, before testing against AIX.
21792         Reported by Martin Lambers <marlam@marlam.de>.
21793
21794 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
21795
21796         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
21797         From Mark D. Baushke.
21798
21799 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
21800
21801         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
21802         to the absolute name, not just one, to bypass Sun C 5.8's
21803         "warning: #include of /usr/include/... may be non-portable".
21804
21805 2006-07-04  Eric Blake  <ebb9@byu.net>
21806
21807         * modules/dirname-tests: New test module.
21808         * tests/test-dirname.c: New file, replacing dirname.c
21809         TEST_DIRNAME section that was recently deleted.
21810
21811 2006-07-04  Bruno Haible  <bruno@clisp.org>
21812
21813         Assume ANSI C header files and <ctype.h> functions.
21814         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
21815         (mbsnwidth): Use isprint, iscntrl instead.
21816
21817 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
21818
21819         Merge from coreutils.
21820         * MODULES.html.sh: Add xstrtold.
21821         * modules/xstrtold: New file.
21822         * modules/cycle-check (Files): Add lib/same-inode.h.
21823         * modules/dirname (Files): Add m4/double-slash-root.m4.
21824         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
21825         * modules/mkdir-p (Files): Add lib/same-inode.h.
21826         * modules/same (Files): Add lib/same-inode.h.
21827
21828 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
21829
21830         * m4/absolute-header.m4: Renamed from full-header-path.m4.
21831         This is to keep the terminology clean; POSIX talks about
21832         "absolute pathnames", not "full pathnames", but the GNU
21833         Coding Standards say to use "path" for something else;
21834         so use "absolute" to keep both sides happy.
21835         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
21836         Set gl_absolute_header, not gl_full_header_path.
21837         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
21838         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
21839         All uses changed.
21840
21841         Merge from coreutils.
21842
21843         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
21844
21845         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
21846         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
21847         want to require the building of c-strtod.o.
21848         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
21849         needs -lm directly.
21850         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
21851
21852         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
21853
21854         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
21855         --as-needed option if available.  Problem reported by Albert Chin in
21856         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
21857         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
21858         cc merely issues a bunch of annoying warnings for --as-needed
21859         (this problem was reported by Bob Proulx).  Also, try linking with
21860         -lm to detect a bug in binutils 2.16 (this problem was reported
21861         by Ralf Wildenhues).
21862
21863         2006-06-18  Jim Meyering  <jim@meyering.net>
21864
21865         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
21866         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
21867         macro.
21868         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
21869         also check for glibc-2.4's abort-inducing bug.
21870
21871         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
21872         Low-probability clean-up should be to use rmdir to get rid of
21873         the just-created directory, not unlink.
21874
21875         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
21876         configure fail, and request a bug report to inform us about it.
21877         Add a comment that, barring reports to the contrary, in 2007 we'll
21878         assume ftruncate is universally available.
21879
21880         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
21881
21882         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
21883
21884         2006-03-12  Jim Meyering  <jim@meyering.net>
21885
21886         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
21887         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
21888         * m4/same.m4 (gl_SAME): Likewise.
21889         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
21890
21891         2006-03-11  Eric Blake  <ebb9@byu.net>
21892
21893         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
21894         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
21895         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
21896         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
21897
21898 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
21899
21900         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
21901         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
21902         reported by Mark D. Baushke, one in
21903         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
21904
21905         Merge from coreutils.
21906
21907         * lib/.cppi-disable: Add stdint_.h.
21908         * lib/.cvsignore: Add stdint.h.
21909
21910         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
21911
21912         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
21913         both double and long double versions.
21914         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
21915         * lib/xstrtold.c: New file.
21916         * lib/xstrtod.h (xstrtold): New decl.
21917
21918         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
21919
21920         * lib/filemode.c (setst): Remove.
21921         (strmode): Rewrite to avoid setst.  This makes the code shorter,
21922         (arguably) clearer, and the generated code is a bit smaller on my
21923         Debian GNU/Linux stable x86 host.
21924
21925         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
21926
21927         * lib/filemode.c: Include "filemode.h" first, to test the interface.
21928         Assume that filemode.h includes sys/types.h and sys/stat.h.
21929         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
21930         (ftypelet): Reorder to put common cases first, for efficiency.
21931         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
21932         to do 'M'.
21933         (strmode): Renamed from mode_string, and now stores 12 bytes instead
21934         of 10, for compatibility with FreeBSD.  All callers changed.
21935         (filemodestring): Now stores 12 bytes instead of 10, and sets file
21936         types that can't be deduced solely from st_mode.  First arg is now a
21937         const pointer.
21938         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
21939         (strmode): Renamed from mode_string.
21940         (filemodestring): New decl.
21941         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
21942         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
21943         needed.
21944         (S_ISPORT, S_ISWHT): New macros, if not already defined.
21945
21946         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
21947
21948         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
21949         fsusage.h now does that.  Include fsusage.h first, to test interface.
21950         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
21951         at most one method (the old code could have generated decls that
21952         didn't conform to C89, not that this was ever exercised).
21953         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
21954
21955         2006-03-19  Jim Meyering  <jim@meyering.net>
21956
21957         Work even in a chroot where d_ino values for entries in "/"
21958         don't match the stat.st_ino values for the same names.
21959         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
21960         number, iterate through all entries again, using lstat instead.
21961         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
21962         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
21963
21964         * lib/getcwd.c (__getcwd): Clarify a comment.
21965         Use memcpy in place of a call to strcpy.
21966
21967         2006-03-12  Jim Meyering  <jim@meyering.net>
21968
21969         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
21970         matches that of the current directory (which we're about to chdir ".."
21971         out of), then save the dev-ino of the parent, instead.
21972
21973         * lib/same-inode.h (SAME_INODE): New file/macro.
21974         * lib/chdir-safer.c (SAME_INODE): Remove definition.
21975         Include "same-inode.h", instead.
21976         * lib/same.c: Likewise.
21977         * lib/cycle-check.h: Include "same-inode.h".
21978         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
21979         * lib/cycle-check.c (SAME_INODE): Remove definition.
21980         * lib/root-dev-ino.h: Include "same-inode.h".
21981
21982         2006-03-11  Eric Blake  <ebb9@byu.net>
21983
21984         * lib/same.c (same_name): s/base_name/last_component/
21985         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
21986         * lib/filenamecat.c (file_name_concat): Likewise.
21987
21988         2006-03-11  Eric Blake  <ebb9@byu.net>,
21989                     Paul Eggert  <eggert@cs.ucla.edu>
21990
21991         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
21992         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
21993         drive prefix.
21994         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
21995         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
21996         (last_component): New method.
21997         * lib/dirname.c (dir_len): Determine when drive letters need a
21998         subsequent slash.  Preserve // when it is special.
21999         (dir_name): Don't append dot when drive letter is absolute.
22000         [TEST_DIRNAME]: Move into a full-blown gnulib test.
22001         * lib/basename.c (base_name): New semantics - malloc the result.
22002         Preserve // when it is special.  Preserve relative files that look
22003         like drive letters.
22004         (base_len): Preserve // when it is special.
22005         (last_component): New method, similar to old base_name semantics.
22006         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
22007         base_name.  Strip redundant slashes from ///.
22008
22009 2006-07-03  Jim Meyering  <jim@meyering.net>
22010
22011         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
22012         macro is used before the first cycle_check call.
22013
22014 2006-07-03  Eric Blake  <ebb9@byu.net>
22015
22016         * modules/dirname (Depends-on): Add xstrndup.
22017
22018 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
22019
22020         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
22021         test cases, so that config.log is a bit easier to follow.
22022
22023 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
22024
22025         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
22026         both are 64 bits, since this seems to be the tradition, and this
22027         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
22028         we ever run into a host that prefers long long to long in this
22029         case, we'll need another configure-time test.  Problem reported by
22030         Jim Meyering.
22031
22032 2006-07-02  Eric Blake  <ebb9@byu.net>
22033
22034         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
22035
22036 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
22037
22038         * modules/inttypes (Depends-on): No longer depends on stdint.
22039         * modules/stdint (Description): Say more about assumptions.
22040         Say that the fast types might differ.  Say macros are used.
22041         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
22042         (Makefile.am): Revise list of substituted symbols to match
22043         new stdint.m4.
22044         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
22045         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
22046         * tests/test-stdint.c (verify_same_types)
22047         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
22048         the code conforms to C99/C89.
22049         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
22050         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
22051
22052 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
22053
22054         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
22055         but fix a bug, by requiring at least 64 bits.
22056         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
22057         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
22058         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
22059         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
22060
22061         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
22062         changes.  Make 2.59 a prerequisite.  Check and substitute for
22063         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
22064         inttypes.h.  Do not use special include files; just use the
22065         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
22066         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
22067         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
22068         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
22069         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
22070         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
22071         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
22072         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
22073         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
22074         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
22075         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
22076         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
22077         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
22078         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
22079         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
22080         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
22081         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
22082         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
22083         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
22084         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
22085         WINT_MAX.  Check for C99 conformance more strictly, by detecting
22086         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
22087         not check for things that C99 does not require, e.g., int8_t.  If
22088         a test isn't needed unless <stdint.h> isn't working, and is
22089         unlikely to be needed for any other reason, then don't do it
22090         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
22091         size_t, since we assume C89 freestanding at least.  Do not check
22092         for sig_atomic_t, wchar_t, or wint_t, since the code now does
22093         the right thing even if the types are not defined.  Instead use:
22094         (gl_STDINT_TYPE_PROPERTIES): New macro.
22095         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
22096         testing whether <sys/types.h> clashes, as Autoconf does this for
22097         us now.  All uses removed.
22098         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
22099         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
22100         (gl_CHECK_TYPE_SAME):
22101         Remove; no longer needed.
22102         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
22103         exists, since we'll return 0 anyway in that case.
22104         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
22105
22106 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
22107
22108         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
22109         possible collision with system files.
22110         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
22111         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
22112         WCHAR_MIN and WCHAR_MAX in this case.
22113         (<stddef.h>): Do not include; no longer needed.
22114         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
22115         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
22116         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
22117         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
22118         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
22119         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
22120         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
22121         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
22122         !defined(__c99))]: Include in this case too, since it's harmless
22123         now.
22124         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
22125         dangerous to do so.
22126         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
22127         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
22128         (_STDINT_MIN, _STDINT_MAX): New macros.
22129         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
22130         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
22131         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
22132         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
22133         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
22134         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
22135         macros, not typedefs; this simplifies things quite a bit.
22136         Use long int for all types narrower than int64_t.
22137         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
22138         Define in terms of long long int or int64_t or long int,
22139         not int64_t or int32_t.  This saves some compile-time testing.
22140         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
22141         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
22142         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
22143         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
22144         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
22145         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
22146         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
22147         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
22148         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
22149         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
22150         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
22151         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
22152         undef any previous version and define our own version, for
22153         simplicity and consistency with the new macros for types.
22154         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
22155         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
22156         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
22157         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
22158         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
22159         @WINT_T_SUFFIX@ to keep things simple here.
22160         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
22161         Simplify by assuming typical 8/16/32/64 host, since we're
22162         already doing that elsewhere anyway.
22163         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
22164         and assume long long int is 64 bits if available.  This
22165         speeds up 'configure'.
22166
22167 2006-07-01  Eric Blake  <ebb9@byu.net>
22168
22169         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
22170         Reported by Andreas Buening.
22171
22172 2006-07-01  Eric Blake  <ebb9@byu.net>
22173
22174         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
22175
22176 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
22177
22178         * lib/getaddrinfo.c: fixed typo
22179
22180 2006-06-29  Jim Meyering  <jim@meyering.net>
22181
22182         * modules/strftime (Maintainer): Add my name, since with the
22183         FPRINTFTIME changes strftime.c has forked from glibc.
22184
22185 2006-06-29  Eric Blake  <ebb9@byu.net>
22186
22187         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
22188
22189 2006-06-29  Eric Blake  <ebb9@byu.net>
22190
22191         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
22192
22193 2006-06-29  Eric Blake  <ebb9@byu.net>
22194
22195         * lib/stat_.h: New file.
22196
22197 2006-06-29  Eric Blake  <ebb9@byu.net>
22198
22199         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
22200         unused static function.
22201
22202 2006-06-29  Eric Blake  <ebb9@byu.net>
22203
22204         * doc/functions.texi (Function Portability): Document missing lstat
22205         on mingw.
22206
22207 2006-06-29  Eric Blake  <ebb9@byu.net>
22208
22209         * MODULES.html.sh: Add sys_stat.
22210         * modules/sys_stat: New module.
22211         * modules/mkstemp (Depends-on): Add sys_stat.
22212
22213 2006-06-29  Derek R. Price  <derek@ximbiot.com>
22214
22215         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
22216
22217 2006-06-29  Derek R. Price  <derek@ximbiot.com>
22218
22219         * m4/c-bs-a.m4: Removed.
22220
22221 2006-06-29  Derek R. Price  <derek@ximbiot.com>
22222
22223         * lib/strftime.c: Assume strftime() exists.
22224
22225 2006-06-29  Derek Price  <derek@ximbiot.com>
22226
22227         * modules/c-bs-a: Removed - \a is C89.
22228         * MODULES.html.sh: Remove c-bs-a.
22229
22230 2006-06-29  Bruno Haible  <bruno@clisp.org>
22231
22232         * modules/wcwidth (License): Change to LGPL.
22233
22234 2006-06-28  Simon Josefsson  <jas@extundo.com>
22235
22236         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
22237         on _WIN32.
22238
22239         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
22240         getnameinfo.
22241
22242 2006-06-28  Simon Josefsson  <jas@extundo.com>
22243
22244         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
22245
22246 2006-06-28  Simon Josefsson  <jas@extundo.com>
22247
22248         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
22249         functions there.  It will succeed on Windows XP, but on Windows
22250         2000 and (presumably) earlier, it will fail, and use the internal
22251         re-implementation.
22252         (use_win32_p): New function.
22253         (getaddrinfo): Use strtoul on servname, to support numeric ports.
22254         Support AI_NUMERICSERV to disable getservbyname.
22255         (getnameinfo): New function, only supports
22256         NI_NUMERICHOST|NI_NUMERICSERV for now.
22257
22258         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
22259         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
22260         getnameinfo.
22261
22262 2006-06-28  Eric Blake  <ebb9@byu.net>
22263
22264         * modules/wcwidth: New file.
22265         * modules/mbchar (Depends-on): Add wcwidth.
22266         * modules/mbswidth (Depends-on): Add wcwidth.
22267         * MODULES.html.sh: Add wcwidth.
22268
22269 2006-06-28  Eric Blake  <ebb9@byu.net>
22270
22271         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
22272         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
22273
22274 2006-06-28  Eric Blake  <ebb9@byu.net>
22275
22276         * lib/xvasprintf.h: Fix comments.
22277
22278 2006-06-28  Eric Blake  <ebb9@byu.net>
22279
22280         * lib/mbchar.h (wcwidth): Include wcwidth.h.
22281         * lib/mbswidth.c (wcwidth): Move from here...
22282         * lib/wcwidth.h: ...to this new file.
22283
22284 2006-06-28  Derek R. Price  <derek@ximbiot.com>
22285
22286         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
22287
22288         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
22289         it's obsolete.
22290         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
22291
22292 2006-06-28  Derek R. Price  <derek@ximbiot.com>
22293
22294         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
22295         Autoconf 2.60 says this stuff was obsolete.
22296
22297 2006-06-28  Bruno Haible  <bruno@clisp.org>
22298
22299         * modules/wcwidth (Files): Add m4/wchar_t.m4.
22300
22301 2006-06-28  Bruno Haible  <bruno@clisp.org>
22302
22303         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
22304         gt_TYPE_WCHAR_T.
22305
22306 2006-06-28  Bruno Haible  <bruno@clisp.org>
22307
22308         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
22309         declaration for wcwidth.
22310         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
22311
22312 2006-06-28  Bruno Haible  <bruno@clisp.org>
22313
22314         * lib/mkdtemp.c [MINGW]: Include <io.h>.
22315         (mkdir): Define using _mkdir.
22316
22317 2006-06-28  Bruno Haible  <bruno@clisp.org>
22318
22319         * lib/getaddrinfo.h: Fix POSIX URL.
22320         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
22321         _WIN32.
22322         (use_win32_p): Make static.
22323         (getaddrinfo): Reject service name if it is empty or does not consist
22324         solely of decimal digits, or if its value is > 65535.
22325         (getnameinfo): Remove useless casts.
22326
22327 2006-06-27  Simon Josefsson  <jas@extundo.com>
22328
22329         * modules/sys_select: New file, suggested by Bruno Haible, Paul
22330         Eggert and Martin Lambers.
22331
22332 2006-06-27  Simon Josefsson  <jas@extundo.com>
22333
22334         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
22335         Eggert and Martin Lambers.
22336
22337 2006-06-27  Bruno Haible  <bruno@clisp.org>
22338
22339         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
22340         result to 0, not to empty.
22341         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
22342
22343 2006-06-27  Bruno Haible  <bruno@clisp.org>
22344
22345         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
22346
22347 2006-06-26  Simon Josefsson  <jas@extundo.com>
22348
22349         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
22350         present.
22351
22352 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
22353
22354         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
22355         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
22356         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
22357
22358 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
22359
22360         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
22361
22362 2006-06-26  Bruno Haible  <bruno@clisp.org>
22363
22364         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
22365
22366 2006-06-26  Bruno Haible  <bruno@clisp.org>
22367
22368         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
22369
22370 2006-06-26  Bruno Haible  <bruno@clisp.org>
22371
22372         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
22373         SGI C compiler in pre-C99 mode.
22374         Suggested by Mark D. Baushke and Larry Jones.
22375
22376 2006-06-26  Bruno Haible  <bruno@clisp.org>
22377
22378         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
22379         WCHAR_MAX.
22380         Reported by Mark D. Baushke and Larry Jones.
22381
22382 2006-06-26  Bruno Haible  <bruno@clisp.org>
22383
22384         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
22385         in pre-C99 mode.
22386         Suggested by Mark D. Baushke and Larry Jones.
22387
22388 2006-06-23  Simon Josefsson  <jas@extundo.com>
22389             Bruno Haible  <bruno@clisp.org>
22390
22391         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
22392         Emit mostlyclean-local rule.
22393         (func_emit_tests_Makefile_am): Likewise.
22394         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
22395
22396 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
22397
22398         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
22399
22400 2006-06-23  Bruno Haible  <bruno@clisp.org>
22401
22402         * tests/test-stdint.c: Update to match ISO C 99 Technical
22403         Corrigendum 1.
22404
22405 2006-06-23  Bruno Haible  <bruno@clisp.org>
22406
22407         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
22408
22409 2006-06-23  Bruno Haible  <bruno@clisp.org>
22410
22411         * lib/stdint_.h: Treat IRIX like OpenBSD.
22412
22413 2006-06-23  Bruno Haible  <bruno@clisp.org>
22414
22415         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
22416         ISO C 99 Technical Corrigendum 1.
22417
22418 2006-06-22  Simon Josefsson  <jas@extundo.com>
22419
22420         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
22421         MinGW.
22422
22423 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
22424
22425         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
22426         needed.  Some compiler complained about some of them.  Problem reported
22427         by Larry Jones in
22428         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
22429
22430 2006-06-21  Simon Josefsson  <jas@extundo.com>
22431
22432         * tests/test-getaddrinfo.c: New file.
22433
22434         * modules/getaddrinfo-tests: New file.
22435
22436         * MODULES.html.sh: Add inet_pton.
22437
22438         * modules/inet_pton: New file.
22439
22440 2006-06-21  Simon Josefsson  <jas@extundo.com>
22441
22442         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
22443         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
22444         of using the (limited) gnulib implementation on Windows XP.
22445
22446         * m4/inet_pton.m4: New file.
22447
22448 2006-06-21  Simon Josefsson  <jas@extundo.com>
22449
22450         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
22451         variable.
22452
22453         * lib/socket_.h: Don't define WINVER.
22454
22455         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
22456         slightly modified to work in gnulib.
22457
22458 2006-06-21  Simon Josefsson  <jas@extundo.com>
22459
22460         * doc/gnulib.texi (Windows sockets): Add.
22461
22462 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
22463
22464         * lib/read-file.c (fread_file): Start with buffer allocation of
22465         0 bytes rather than 1 byte; this simplifies the code.
22466         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
22467         code to free buffer and save/restore errno.
22468         (internal_read_file): Remove unused local.
22469
22470 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
22471
22472         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
22473         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
22474         Problem reported by Denis Excoffier in
22475         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
22476
22477 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22478
22479         * modules/sys_socket, modules/socklen: Include sys/types since
22480         FreeBSD 4.x's sys/socket.h needs it.
22481
22482 2006-06-19  Simon Josefsson  <jas@extundo.com>
22483
22484         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
22485
22486 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
22487
22488         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
22489
22490 2006-06-19  Bruno Haible  <bruno@clisp.org>
22491
22492         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
22493         and FULL_PATH_INTTYPES_H in angle brackets.
22494         Reported by Mark D. Baushke <mdb@gnu.org>.
22495
22496 2006-06-17  Eric Blake  <ebb9@byu.net>
22497
22498         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
22499         errno.
22500
22501 2006-06-17  Bruno Haible  <bruno@clisp.org>
22502
22503         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
22504         <sys/inttypes.h>.
22505
22506 2006-06-17  Bruno Haible  <bruno@clisp.org>
22507
22508         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
22509         whether errno is declared. Assume <errno.h> declares errno.
22510
22511 2006-06-17  Bruno Haible  <bruno@clisp.org>
22512
22513         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
22514
22515 2006-06-17  Bruno Haible  <bruno@clisp.org>
22516
22517         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
22518         problem on Solaris 2.5.1.
22519
22520 2006-06-16  Eric Blake  <ebb9@byu.net>
22521
22522         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
22523         * lib/unicodeio.c [!defined errno]: Likewise.
22524         * lib/strtol.c [!defined errno]: Likewise.
22525         * lib/strtod.c [!defined errno]: Likewise.
22526
22527 2006-06-15  Eric Blake  <ebb9@byu.net>
22528
22529         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
22530
22531 2006-06-15  Eric Blake  <ebb9@byu.net>
22532
22533         * config/srclist.txt (ssize_t.m4): Lose sync.
22534
22535 2006-06-15  Bruno Haible  <bruno@clisp.org>
22536
22537         * modules/stdint (Files): Include m4/full-header-path.m4,
22538         m4/size_max.m4, m4/wchar_t.m4.
22539         (Makefile.am): Many more substitutions.
22540         * modules/stdint-tests: New file.
22541         * tests/test-stdint.c: New file.
22542
22543 2006-06-15  Bruno Haible  <bruno@clisp.org>
22544
22545         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
22546         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
22547         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
22548         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
22549         gl_CHECK_TYPE_SAME): New macros.
22550
22551 2006-06-15  Bruno Haible  <bruno@clisp.org>
22552
22553         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
22554
22555 2006-06-15  Bruno Haible  <bruno@clisp.org>
22556
22557         * lib/stdint_.h: Rewritten to be fully auto-configured.
22558         Fixes bug on HP-UX/IA64.
22559
22560 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
22561
22562         * lib/getdate.y (__attribute__): Don't define if already defined.
22563         Problem reported by Larry Jones.
22564         * lib/utimens.c (__attribute__): Likewise.
22565
22566 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
22567
22568         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
22569         reported by Andreas Schwab.
22570
22571 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22572             Bruno Haible  <bruno@clisp.org>
22573
22574         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
22575         check for the declaration of strnlen and a run test that exposes the
22576         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
22577         rpl_strndup.
22578
22579 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22580             Bruno Haible  <bruno@clisp.org>
22581
22582         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
22583
22584 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22585
22586         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
22587         compile test, for Tru64 4.0D.
22588
22589 2006-05-28  Karl Berry  <karl@gnu.org>
22590
22591         * config/srclist.txt (printf-args.c): lose sync.
22592
22593 2006-05-26  Martin Lambers  <marlam@marlam.de>
22594
22595         * lib/getpass.c: Updates the test for the native W32 API, and adds
22596         missing includes, thus fixing compilation warnings.
22597
22598 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22599
22600         * lib/exclude.c (exclude_fnmatch): New function.
22601         (excluded_file_name): Call exclude_fnmatch.
22602         * lib/exclude.h (excluded_file_name): New prototype
22603
22604 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
22605
22606         * lib/tempname.c (small_open, large_open): New macros.
22607         (__open, __open64) [!_LIBC]: Remove.
22608         (__gen_tempname): Use small_open and large_open instead of __open
22609         and __open64.  This fixes a portability bug on HP-UX 11.11i
22610         reported by Simon Wing-Tang in
22611         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
22612
22613 2006-05-24  Bruno Haible  <bruno@clisp.org>
22614
22615         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
22616         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
22617         Reported by Thorsten Maerz <torte@netztorte.de> via
22618         Aaron Stone <aaron@serendipity.cx>.
22619
22620 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
22621
22622         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
22623         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
22624         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
22625         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
22626         not really conditional on the cache.
22627         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
22628
22629 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
22630
22631         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
22632         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
22633         (my_usleep): Don't mishandle maximum value.
22634
22635 2006-05-19  Jim Meyering  <jim@meyering.net>
22636
22637         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
22638
22639 2006-05-17  Bruno Haible  <bruno@clisp.org>
22640
22641         Cygwin portability.
22642         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
22643
22644 2006-05-17  Bruno Haible  <bruno@clisp.org>
22645
22646         * lib/stdint_.h: Fix recognition of Cygwin.
22647
22648 2006-05-15  Bruno Haible  <bruno@clisp.org>
22649
22650         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
22651         on libtool patch by Ralf Wildenhues.
22652
22653 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
22654
22655         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
22656         test for C99 conformance; (bool) 0.5 is an integer constant
22657         expression, but (bool) -0.5 is not.  Problem reported by Fedor
22658         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
22659
22660 2006-05-11  Simon Josefsson  <jas@extundo.com>
22661
22662         * m4/xvasprintf.m4: Fix obvious typo.
22663
22664 2006-05-11  Jim Meyering  <jim@meyering.net>
22665
22666         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
22667         James Lemley.
22668
22669 2006-05-10  Simon Josefsson  <jas@extundo.com>
22670
22671         * lib/md4.c: Typo fix, update copyright years.
22672         (K1, K2): Don't use L because it turn computations into 64-bit on
22673         64-bit platforms.
22674
22675 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
22676
22677         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
22678         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
22679         unwanted sign propagation, e.g., on hosts with 64-bit int.
22680         There still are some problems with reeelly weird theoretical hosts
22681         (e.g., 33-bit int) but it's not worth worrying about now.
22682         * lib/sha1.c (rol): Likewise.
22683         (K1, K2, K3, K4): Remove unnecessary L suffix.
22684
22685 2006-05-10  Bruno Haible  <bruno@clisp.org>
22686
22687         * lib/des.c: Cast to avoid warnings.
22688
22689 2006-05-09  Bruno Haible  <bruno@clisp.org>
22690
22691         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
22692         (Depends-on): Depend also on xsize, stdarg.
22693         (configure.ac): Add gl_XVASPRINTF.
22694
22695 2006-05-09  Bruno Haible  <bruno@clisp.org>
22696
22697         * m4/xvasprintf.m4: New file.
22698
22699 2006-05-09  Bruno Haible  <bruno@clisp.org>
22700
22701         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
22702         (EOVERFLOW): Define fallback value.
22703         (xstrcat): New function.
22704         (xvasprintf): Recognize the special case of a string concatenation.
22705
22706 2006-05-08  Eric Blake  <ebb9@byu.net>
22707
22708         * gnulib-tool (func_version): Base copyright year on CVS date.
22709         (func_emit_copyright_notice): New function.
22710         (func_emit_lib_Makefile_am): Use it.
22711         (func_emit_tests_Makefile_am): Likewise.
22712         (func_import): Likewise.
22713
22714 2006-05-08  Bruno Haible  <bruno@clisp.org>
22715
22716         * modules/stdarg: New file.
22717         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
22718
22719 2006-05-08  Bruno Haible  <bruno@clisp.org>
22720
22721         * m4/stdarg.m4: New file, from GNU gettext.
22722
22723 2006-05-08  Bruno Haible  <bruno@clisp.org>
22724
22725         * config/srclist.txt (build-aux/config.rpath): different from latest
22726         release.
22727
22728 2006-05-08  Bruno Haible  <bruno@clisp.org>
22729
22730         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
22731
22732 2006-05-05  Jim Meyering  <jim@meyering.net>
22733
22734         * m4/warning.m4: New file, derived from bison's file by the same name.
22735
22736 2006-05-03  Bruno Haible  <bruno@clisp.org>
22737
22738         * lib/stdint_.h: Shorter URL.
22739         * lib/inttypes.h: Likewise.
22740
22741 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
22742
22743         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
22744
22745 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
22746
22747         * lib/verify.h: Document the internals better.  Most of this change
22748         was written by Bruno Haible.
22749
22750 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
22751
22752         * doc/verify.texi: New file, partly based on a proposal by
22753         Bruno Haible.
22754
22755 2006-05-02  Bruno Haible  <bruno@clisp.org>
22756
22757         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
22758         test from here...
22759         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
22760
22761 2006-04-29  Bruno Haible  <bruno@clisp.org>
22762
22763         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
22764         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
22765
22766 2006-04-29  Bruno Haible  <bruno@clisp.org>
22767
22768         * gnulib-tool: Make --update option actually work.
22769
22770 2006-04-29  Bruno Haible  <bruno@clisp.org>
22771
22772         * doc/gcd.texi: New file.
22773         * doc/gnulib.texi: Include it.
22774
22775 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
22776
22777         * lib/getdate.y (get_date): When adding relative date, start with the
22778         initial time, not with the result of the first mktime call.
22779
22780 2006-04-25  Bruno Haible  <bruno@clisp.org>
22781
22782         * gnulib-tool (func_import): Output the include directives in three
22783         blocks, sorted separately.
22784         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22785
22786 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
22787
22788         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
22789         to define main with arguments, for C++.  Reported by Eric Blake.
22790         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
22791         Prefer 'int main ()' to 'int main (void)', for C++.
22792         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
22793         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
22794         for 'main', for C99 and C++.
22795
22796 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
22797
22798         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
22799         Don't assume that exit status -1 is valid.
22800         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22801         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
22802         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
22803         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
22804         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
22805         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
22806         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
22807         functions can be used without declaring them, or that you can
22808         exit with status -1.
22809         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
22810
22811 2006-04-24  Karl Berry  <karl@gnu.org>
22812
22813         * config/srclist.txt (longdouble.m4): sync lost.
22814
22815 2006-04-24  Eric Blake  <ebb9@byu.net>
22816
22817         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
22818
22819 2006-04-24  Bruno Haible  <bruno@clisp.org>
22820
22821         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
22822         poll() implementation in AIX.
22823         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22824
22825 2006-04-24  Bruno Haible  <bruno@clisp.org>
22826
22827         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
22828         assigned exactly once.
22829
22830 2006-04-23  Claudio Fontana  <claudio@gnu.org>
22831             Bruno Haible  <bruno@clisp.org>
22832
22833         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
22834         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
22835         for AM_CPPFLAGS.
22836
22837 2006-04-23  Bruno Haible  <bruno@clisp.org>
22838
22839         * modules/copy-file: Depend on unistd.
22840         * modules/execute: Likewise.
22841         * modules/fatal-signal: Likewise.
22842         * modules/findprog: Likewise.
22843         * modules/mkdtemp : Likewise.
22844         * modules/pipe: Likewise.
22845         * modules/wait-process: Likewise.
22846
22847 2006-04-23  Bruno Haible  <bruno@clisp.org>
22848
22849         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
22850         condition was already detected.
22851         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22852
22853 2006-04-23  Bruno Haible  <bruno@clisp.org>
22854
22855         * lib/copy-file.c: Include <unistd.h> unconditionally.
22856         * lib/execute.c: Likewise.
22857         * lib/fatal-signal.c: Likewise.
22858         * lib/findprog.c: Likewise.
22859         * lib/mkdtemp.c: Likewise.
22860         * lib/pipe.h: Likewise.
22861         * lib/pipe.c: Likewise.
22862         * lib/wait-process.h: Likewise.
22863
22864 2006-04-23  Bruno Haible  <bruno@clisp.org>
22865
22866         * gnulib-tool (func_usage): Fix --import description. Document
22867         --update.
22868         (func_import): Create temporary file in a temporary directory, if
22869         --dry-run is specified. Silence errors from 'grep' when there are no
22870         m4 files in $m4dir.
22871         (func_create_testdir): Silence errors from 'grep' when there are no
22872         m4 files in $m4dir.
22873         Reported by Karl Berry <karl@freefriends.org>.
22874
22875 2006-04-20  Bruno Haible  <bruno@clisp.org>
22876
22877         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
22878         one argument, so that the code will be portable to Autoconf 2.60.
22879         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
22880         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
22881         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
22882
22883 2006-04-19  Derek Price  <derek@ximbiot.com>
22884             Eric Blake  <ebb9@byu.net>
22885
22886         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
22887         rather than "/full/path.h".  Update comment to match.  Shorten &
22888         generalize m4_translit call via AS_TR_CPP.
22889
22890 2006-04-19  Derek Price  <derek@ximbiot.com>
22891             Eric Blake  <ebb9@byu.net>
22892
22893         * lib/inttypes.h: Correct grammar in comment.
22894
22895 2006-04-18  Derek Price  <derek@ximbiot.com>
22896             Paul Eggert  <eggert@cs.ucla.edu>
22897
22898         * modules/inttypes: New file.
22899         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
22900
22901 2006-04-18  Derek Price  <derek@ximbiot.com>
22902             Paul Eggert  <eggert@cs.ucla.edu>
22903
22904         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
22905         New files.
22906
22907 2006-04-18  Derek Price  <derek@ximbiot.com>
22908             Paul Eggert  <eggert@cs.ucla.edu>
22909
22910         * lib/inttypes.h: New file.
22911         * lib/strtoimax.c: Assume <inttypes.h>.
22912
22913 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
22914
22915         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
22916         isn't mounted.  Problem reported by Kir Kolyshkin.
22917
22918 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
22919
22920         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
22921         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
22922         Derek R. Price.
22923         * lib/regex.h (RE_DUP_MAX): Update comment to match current
22924         implementation.
22925
22926 2006-04-12  Eric Blake  <ebb9@byu.net>
22927
22928         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
22929         is now done automatically by the corresponding Autoconf macro.
22930
22931 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
22932
22933         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
22934         time_r.h.
22935
22936 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
22937
22938         Merge regex changes from libc, removing some of our
22939         POSIX-conformance changes that were rejected and redoing them in a
22940         less-intrusive way.
22941
22942         * lib/regcomp.c (re_compile_internal, init_dfa):
22943         Length arg is now size_t, not Idx.  All uses changed.
22944         (peek_token): Forward decl now says internal_function.
22945         (__re_error_msgid, __re_error_msgid_idx):
22946         Now static rather than extern with attribute_hidden.
22947         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
22948         For some reason libc prefers K&R style defns for external functions.
22949         (regerror) [!defined _LIBC]: Likewise.
22950         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
22951         (seek_collating_symbol_entry, lookup_collation_sequence_value):
22952         (build_range_exp, build_collating_symbol):
22953         Use K&R-style defn.
22954         (re_compile_fastmap): Use '\0' to memset, not 0.
22955         (utf8_sb_map): Make the calculations more obvious.
22956         (init_dfa, parse_bracket_exp, build_charclass_op):
22957         Call calloc and cast result, as glibc does.
22958         (init_word_char, fetch_token, peek_token, peek_token_bracket):
22959         (build_range_exp, build_collating_symbol):
22960         Now internal functions.
22961
22962         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
22963
22964         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
22965         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
22966         Don't depend on VMS; depend on __VMS instead, for POSIX
22967         namespace cleanness.
22968         (regoff_t): Define to ssize_t, not long int.
22969
22970         Remove the REG_ macros named below.  Instead, make the old names
22971         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
22972         __USE_GNU_REGEX.
22973         (REG_BACKSLASH_ESCAPE_IN_LISTS):
22974         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
22975         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
22976         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
22977         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
22978         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
22979         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
22980         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
22981         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
22982         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
22983         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
22984         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
22985         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
22986         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
22987         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
22988         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
22989         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
22990         (REG_NREGS):
22991         Remove.  All uses replaced by the old RE_* names.
22992         (RE_BACKSLASH_ESCAPE_IN_LISTS):
22993         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
22994         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
22995         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
22996         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
22997         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
22998         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
22999         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
23000         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
23001         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
23002         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
23003         Don't bother having these macros be independent of each others'
23004         values, since they no longer exist in the POSIX name space.
23005
23006         Rename the following member names back to their old names,
23007         unless !__USE_GNU_REGEX.  All uses changed back.
23008         (buffer): Renamed from re_buffer.
23009         (allocated): Renamed from re_allocated.
23010         (used): Renamed from re_used.
23011         (syntax): Renamed from re_syntax.
23012         (fastmap): Renamed from re_fastmap.
23013         (translate): Renamed from re_translate.
23014         (can_be_null): Renamed from re_can_be_null.
23015         (regs_allocated): Renamed from re_regs_allocated.
23016         (fastmap_accurate): Renamed from re_fastmap_accurate.
23017         (no_sub): Renamed from re_no_sub.
23018         (not_bol): Renamed from re_not_bol.
23019         (not_eol): Renamed from re_not_eol.
23020         (newline_anchor): Renamed from re_newline_anchor.
23021         (num_regs): Renamed from rm_num_regs.
23022         (start): Renamed from rm_start.
23023         (end): Renamed from rm_end.
23024
23025         (free_state): Move up a bit.
23026
23027         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
23028         #define to be empty.
23029         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
23030         when that is what is intended.
23031         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
23032         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
23033         (MAX): New macro.
23034         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
23035         All uses changed back to re_malloc, etc.  It's now the caller's
23036         responsibility to check for overflow; all callers changed.
23037         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
23038         (re_x2nrealloc): Remove.
23039         (free_state): Remove decl.
23040
23041         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
23042         (re_set_registers, re_exec):
23043         Use K&R-style defn.
23044
23045         2006-01-31  Roland McGrath  <roland@redhat.com>
23046
23047         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
23048         Reported by Mike Frysinger <vapier@gentoo.org>.
23049
23050         2006-01-15  Andreas Jaeger  <aj@suse.de>
23051
23052         [BZ #1950]
23053         * lib/regex_internal.c (re_string_reconstruct): Adjust for
23054         build_wcs_upper_buffer change.
23055         (build_wcs_upper_buffer): Change return type.
23056
23057         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
23058
23059         * lib/regex_internal.h: Include <stdint.h> if available.
23060
23061         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
23062
23063         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
23064
23065         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
23066
23067         * lib/regcomp.c: Adjust for changed secondary hash function.
23068
23069         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
23070
23071         * lib/regex.h: Pretty printing.
23072         Clean up namespace a bit.
23073
23074         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
23075
23076         * lib/regexec.c (update_cur_sifted_state, check_arrival,
23077         check_arrival_add_next_nodes): Avoid using uninitialized variable.
23078
23079         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
23080                     Ulrich Drepper  <drepper@redhat.com>
23081
23082         [BZ #1302]
23083         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
23084         changed.
23085         (bitset_word_t): Renamed from bitset_word.  All uses changed.
23086
23087         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
23088
23089         [BZ #281]
23090         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
23091         * lib/regcomp.c: Remove unnecessary uses of
23092         unsigned RE_TRANSLATE_TYPE.
23093         * lib/regex_internal.h: Likewise.
23094         * lib/regex_internal.c: Likewise.
23095         * lib/regexec.c: Likewise.
23096         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
23097
23098         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
23099
23100         * lib/regexec.c (find_recover_state): Remove unnecessary
23101         initialization.
23102         (transit_state_bkref): Make DFA a const pointer.
23103         (get_subexp): Likewise.
23104         (check_arrival): Likewise.
23105         (update_cur_sifted_state): Likewise.
23106         (re_search_internal): Likewise.
23107         (prune_impossible_nodes): Likewise.
23108         (acquire_init_state_context): Likewise.
23109         (proceed_next_node): Likewise.
23110         (set_regs): Likewise.
23111         (free_fail_stack_return): Likewise.
23112         (check_arrival_expand_ecl): Mark DFA parameter as const.
23113         (check_arrival_expand_ecl_sub): Likewise.
23114         (check_subexp_limits): Likewise.
23115         (sub_epsilon_src_nodes):  Likewise.
23116         (add_epsilon_src_nodes):  Likewise.
23117         (merge_state_array): Likewise.
23118         (update_regs): Likewise.
23119         (build_trtable): Likewise.
23120         (sift_states_backward): Mark MCTX parameter as const.
23121         (build_sifted_states): Likewise.
23122         (update_cur_sifted_state): Likewise.
23123         (sift_states_mkref): Likewise.
23124         (check_arrival_expand_ecl): Mark eclosure as const.
23125         (check_dst_limits_calc_pos_1): Likewise.
23126         * lib/regex_internal.h (re_match_context_t): Make dfa a const
23127         pointer.
23128
23129         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
23130
23131         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
23132         (transit_state_sb): Likewise.
23133         (transit_state_mb): Likewise.
23134         (sift_states_iter_mb): Likewise.
23135         (check_arrival_add_next_nodes): Likewise.
23136         (check_node_accept_bytes): Change first parameter to pointer-to-const.
23137         [_LIBC] (re_search_2_stub): Use mempcpy.
23138
23139         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
23140         mbrtowc for very simple UTF-8 case.
23141
23142         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
23143         a pointer-to-const.
23144         (re_acquire_state_context): Likewise.
23145         * lib/regex_internal.h: Adjust prototypes.
23146
23147         * lib/regex.c: Prevent using C++ compilers.
23148
23149         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
23150         (re_acquire_state_context): Likewise.
23151
23152 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23153
23154         * modules/regex (Depends-on): Add ssize_t.
23155
23156 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23157
23158         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
23159         translation table.
23160
23161 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23162
23163         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
23164
23165 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
23166             Bruno Haible  <bruno@clisp.org>
23167
23168         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
23169         <sys/types.h> and <inttypes.h>.
23170
23171 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23172
23173         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
23174         `__error_t_defined', so argp.h will not typedef the former.
23175
23176 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
23177
23178         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
23179         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
23180         glibc names.  Even if glibc is changed to conform to POSIX, the
23181         traditional names will be available anyway, since regex depends on
23182         the extensions module.  Also, fix a longstanding typo in the
23183         implementation of Spencer ERE test #75 from grep 2.3.  Problems
23184         reported by Emanuele Giaquinta.  Also, change sense of cached
23185         variable, so that the message makes sense.
23186
23187 2006-03-24  Simon Josefsson  <jas@extundo.com>
23188
23189         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
23190         including some doc fixes.
23191         (base64_encode_alloc): Fix +1 bug on allocation failures.
23192
23193 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23194
23195         * lib/base64.c (base64_encode): Do not read past end of array with
23196         unsanitized input on systems with CHAR_BIT > 8.
23197
23198 2006-03-24  Eric Blake  <ebb9@byu.net>
23199
23200         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
23201
23202 2006-03-22  Karl Berry  <karl@gnu.org>
23203
23204         * config/srclist.txt (*setenv.[ch]): get from coreutils.
23205         * config/srclistvars.sh (COREUTILS): new var.
23206
23207 2006-03-17  Jim Meyering  <jim@meyering.net>
23208
23209         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
23210         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
23211
23212 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
23213
23214         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
23215         no longer needs it.  Instead, check that regoff_t is as least
23216         as wide as ptrdiff_t.
23217
23218         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
23219         so that our regex.h stays compatible with the installed regex.
23220         This is helpful for installers who configure --without-included-regex.
23221         Problem reported by Emanuele Giaquinta.
23222
23223 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
23224
23225         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
23226         Typedef to long int, not to off_, as POSIX will likely change
23227         in that direction.
23228
23229 2006-03-15  Eric Blake  <ebb9@byu.net>
23230
23231         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
23232
23233 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
23234
23235         * lib/argp-help.c (validate_uparams): Fix typo
23236         * lib/argp-parse.c (argp_default_options): Consistently begin help
23237         messages with a lowercase letter.
23238
23239 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
23240
23241         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
23242         overrun buffers and shouldn't be used (much as gets shouldn't be
23243         used).
23244         * lib/time_r.c (asctime_r, ctime_r): Likewise.
23245
23246 2006-03-08  Simon Josefsson  <jas@extundo.com>
23247
23248         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
23249         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23250
23251 2006-03-08  Simon Josefsson  <jas@extundo.com>
23252
23253         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
23254         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23255
23256 2006-03-08  Simon Josefsson  <jas@extundo.com>
23257
23258         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
23259         signal that configure disabled the device.
23260
23261 2006-03-08  Simon Josefsson  <jas@extundo.com>
23262
23263         * build-aux/maint.mk: Fix refresh-po, to handle no translated
23264         languages.
23265
23266 2006-03-07  Simon Josefsson  <jas@extundo.com>
23267
23268         * modules/getopt (Depends-on): Add unistd.
23269
23270         * modules/unistd: New file.
23271
23272 2006-03-07  Simon Josefsson  <jas@extundo.com>
23273
23274         * modules/gc-random: New file.
23275
23276 2006-03-07  Simon Josefsson  <jas@extundo.com>
23277
23278         * m4/unistd_h.m4: New file.
23279
23280 2006-03-07  Simon Josefsson  <jas@extundo.com>
23281
23282         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
23283         test to be side-effect free by storing the result in the cache
23284         variable gl_cv_lib_readline, and moving the assignment of
23285         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
23286         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23287
23288 2006-03-07  Simon Josefsson  <jas@extundo.com>
23289
23290         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
23291         error on missing devices (the functions will return an error).
23292
23293         * m4/gc.m4: Move random stuff to gc-random.m4
23294
23295 2006-03-07  Simon Josefsson  <jas@extundo.com>
23296
23297         * lib/unistd_.h: New file.
23298
23299 2006-03-07  Simon Josefsson  <jas@extundo.com>
23300
23301         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
23302
23303 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
23304
23305         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
23306         Problem reported by Juan Manuel Guerrero.
23307
23308 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
23309
23310         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
23311         the unistd module.
23312         * lib/getlogin_r.c: Likewise.
23313         * lib/getlogin_r.h: Likewise.
23314         * lib/glob.c: Likewise.
23315         * lib/pagealign_alloc.c: Likewise.
23316         * lib/unistd_.h: Remove; no longer needed.
23317
23318 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
23319
23320         * MODULES.html.sh (Support for systems lacking POSIX:2001):
23321         Add unistd.
23322         * modules/c-stack (Depends-on): Add unistd.
23323         * modules/getlogin_r: Likewise.
23324         * modules/glob: Likewise.
23325         * modules/pagealign_alloc: Likewise.
23326         * modules/unistd (Files): Remove lib/unistd_.h.
23327         (EXTRA_DIST): Remove.
23328         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
23329         need unistd_.h.
23330         (MOSTLYCLEANFILES): Remove unistd.h-t.
23331
23332 2006-03-03  Simon Josefsson  <jas@extundo.com>
23333
23334         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
23335
23336 2006-03-03  Simon Josefsson  <jas@extundo.com>
23337
23338         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
23339         libidn and bison.
23340
23341 2006-03-03  Simon Josefsson  <jas@extundo.com>
23342
23343         * build-aux/maint.mk: Add indent target.
23344
23345 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
23346
23347         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
23348         our replacement poll.h in any case, to avoid a differing
23349         declaration from a system header.  Seen on AIX.
23350
23351 2006-03-01  Simon Josefsson  <jas@extundo.com>
23352
23353         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
23354         <kasal@ucw.cz>.
23355
23356 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
23357
23358         * modules/gettime (Depends-on): Add extensions module.
23359         * modules/nanosleep (Depends-on): Likewise.
23360         * modules/settime (Depends-on): Likewise.
23361
23362 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
23363
23364         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
23365         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
23366         pedantically.
23367         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23368         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
23369
23370         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
23371         not "==".  Reported by Ralf Wildenhues.
23372
23373 2006-03-01  Karl Berry  <karl@gnu.org>
23374
23375         * doc/Copyright/request-*: new files, synced from gnuorg.
23376
23377 2006-03-01  Karl Berry  <karl@gnu.org>
23378
23379         * config/srclist.txt (Copyright/*): new entries.
23380
23381 2006-02-28  Simon Josefsson  <jas@extundo.com>
23382
23383         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
23384
23385 2006-02-27  Simon Josefsson  <jas@extundo.com>
23386
23387         * lib/base64.h: Indent #define's.  From Jim Meyering
23388         <jim@meyering.net>.
23389
23390 2006-02-27  Jim Meyering  <jim@meyering.net>
23391
23392         Revert the change of 2006-02-24, so these files can continue
23393         to be sync'd from gettext.
23394         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
23395         of `config.h'.
23396
23397 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
23398
23399         * modules/intprops: New file.
23400         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
23401         Add intprops.
23402         * modules/getloadavg (Files): Remove lib/intprops.h.
23403         (Depends-on): Add intprops.
23404         * modules/human: Likewise.
23405         * modules/inttostr: Likewise.
23406         * modules/openat: Likewise.
23407         * modules/sig2str: Likewise.
23408         * modules/userspec: Likewise.
23409         * modules/utimecmp: Likewise.
23410         * modules/xnanosleep: Likewise.
23411         * modules/xstrtol: Likewise.
23412
23413 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
23414
23415         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
23416         * modules/lock-tests (TESTS): Use $(EXEEXT).
23417         * modules/tls-tests: Likewise.
23418         * modules/argp-tests: Likewise.
23419         (check_PROGRAMS): New var, replacing...
23420         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
23421
23422 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23423
23424         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
23425         `config.h'.
23426
23427 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23428
23429         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
23430
23431 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23432
23433         Sync from coreutils.
23434         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
23435         gl_CHDIR_SAFER.
23436
23437 2006-02-22  Jim Meyering  <jim@meyering.net>
23438
23439         Sync from coreutils.
23440         * m4/chdir-safer.m4: New file.
23441
23442 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
23443
23444         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
23445         AT_FDCWD exceeds INT_MAX.
23446         * lib/openat.h (AT_FDCWD): Likewise.
23447
23448 2006-02-17  Eric Blake  <address@hidden>
23449
23450         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
23451
23452 2006-02-16  Simon Josefsson  <jas@extundo.com>
23453
23454         * modules/getaddrinfo (Depends-on): Add sys_socket.
23455
23456 2006-02-15  Simon Josefsson  <jas@extundo.com>
23457
23458         * build-aux/maint.mk: Add dsyntax-check rule.
23459
23460 2006-02-15  Eric Blake  <ebb9@byu.net>
23461
23462         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
23463         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
23464         'present but cannot compile' warnings on cygwin.
23465         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
23466         use ws2tcpip.h if sys/socket.h works.
23467         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
23468         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
23469
23470 2006-02-14  Simon Josefsson  <jas@extundo.com>
23471
23472         * modules/maintainer-makefile (Files): Rename.
23473
23474         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
23475         and (the local) Makefile.cfg to maint-cfg.mk.
23476
23477         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
23478         to the latter.
23479
23480         * modules/maintainer-makefile: New module.
23481
23482         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
23483         severaly stripped to make it possible to build it up from scratch
23484         with reliable tests.
23485
23486         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
23487         fixes to permit overriding the default actions when configure and
23488         makefile are not available.
23489
23490 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
23491
23492         Sync from coreutils.
23493         * modules/lstat (Depends-on): Don't depend on xalloc.
23494         (License): Change from GPL to LGPL, since this is now simply a
23495         replacement for a libc function.
23496
23497 2006-02-14  Jim Meyering  <jim@meyering.net>
23498
23499         Sync from coreutils.
23500
23501         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
23502         failure on deficient systems, and simplify gnulib lgpl dependencies.
23503         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
23504         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
23505
23506         * lib/xalloc-die.c: Remove unused definition of N_.
23507
23508 2006-02-14  Jim Meyering  <jim@meyering.net>
23509
23510         Sync from coreutils.
23511         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
23512         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
23513         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
23514         double-quote uses of that variable, to accommodate the rare case in
23515         which getmntent is available in none of the libraries checked.  This
23516         happens at least on FreeBSD 5.0.
23517
23518 2006-02-13  Simon Josefsson  <jas@extundo.com>
23519
23520         * gnulib-tool (Usage): Fix --import, from
23521         karl@freefriends.org (Karl Berry).
23522
23523 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
23524
23525         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
23526
23527 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
23528
23529         * lib/argp-namefrob.h: Restore changes accidentally lost during the
23530         "autoupdate" on 2005-12-12.
23531
23532 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
23533
23534         * modules/closeout (Depends-on): Remove atexit.
23535
23536 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
23537
23538         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
23539         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
23540
23541 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
23542
23543         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
23544         __EXTENSIONS__ if this causes compilation to fail.  Problem
23545         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
23546         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
23547
23548 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
23549
23550         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
23551         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
23552         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
23553         All uses changed.
23554
23555 2006-01-26  Simon Josefsson  <jas@extundo.com>
23556
23557         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
23558         prototype is visible on mingw32.
23559
23560         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
23561         for mingw32.
23562
23563         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
23564         mingw32).
23565
23566 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
23567
23568         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
23569         attempt to open for write; this always fails, at least on POSIX
23570         hosts.  This reinstates the 2006-01-09 change, which was
23571         inadvertently removed.
23572
23573 2006-01-26  Bruno Haible  <bruno@clisp.org>
23574
23575         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
23576         Reported by Paul Eggert.
23577
23578 2006-01-26  Bruno Haible  <bruno@clisp.org>
23579             Paul Eggert  <eggert@cs.ucla.edu>
23580
23581         * lib/stdbool_.h (_Bool)
23582         [(! (defined __cplusplus || defined __BEOS__)
23583           && !defined __GNUC__
23584           && !(defined __HP_cc || defined __xlc__
23585                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
23586                || defined __sgi))]:
23587         #define to signed char in these cases too; this simplifies
23588         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
23589         etc., separately) and makes it more conservative.
23590
23591 2006-01-25  Simon Josefsson  <jas@extundo.com>
23592
23593         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
23594         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
23595         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
23596
23597 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
23598
23599         * lib/argp-namefrob.h: Bugfix. Remove stray #
23600
23601 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
23602
23603         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
23604         so that we test the test.
23605         Check for yet another HP-UX cc bug involving *bool |= bool.
23606
23607 2006-01-25  Karl Berry  <karl@gnu.org>
23608
23609         * config/srclist.txt (vasnprintf.c): sync lost.
23610
23611 2006-01-25  Jim Meyering  <jim@meyering.net>
23612
23613         Sync from the stable (b5) branch of coreutils:
23614
23615         * lib/fts.c (fts_children): Don't let close() clobber errno from
23616         failed fchdir().
23617
23618         * lib/fts.c (fts_stat): When following a symlink-to-directory,
23619         don't necessarily interpret stat-fails+lstat-succeeds as indicating
23620         a dangling symlink.  That can also happen at least for ELOOP.
23621         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
23622         FYI, this bug predates the inclusion of fts.c in coreutils.
23623
23624         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
23625         in their own block, so pre-c99 compilers don't object.
23626
23627         Avoid the double-free (first in fts_read, second in fts_close) that
23628         would occur when an `active' directory is made inaccessible (e.g.,
23629         via chmod a-x) during a traversal.
23630         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
23631         before returning.  Reproduce this failure by
23632         mkdir -p a/b; cd a; chmod a-x . b
23633         Reported by Stavros Passas.
23634
23635 2006-01-25  Jim Meyering  <jim@meyering.net>
23636
23637         * lib/fileblocks.c: Remove more useless parentheses.
23638         * lib/readutmp.h: Likewise.
23639
23640 2006-01-25  Bruno Haible  <bruno@clisp.org>
23641
23642         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
23643         warnings.
23644         Reported by Paul Eggert.
23645
23646 2006-01-25  Bruno Haible  <bruno@clisp.org>
23647
23648         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
23649         rid of a trap command. For Solaris sh.
23650         Reported by Mark D. Baushke <mdb@gnu.org>.
23651
23652 2006-01-24  Simon Josefsson  <jas@extundo.com>
23653
23654         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
23655         Bruno.
23656
23657 2006-01-24  Karl Berry  <karl@gnu.org>
23658
23659         * config/srclist.txt (argp-namefrob.h): sync lost.
23660
23661 2006-01-24  Jim Meyering  <jim@meyering.net>
23662
23663         * modules/openat (Files): Add lib/intprops.h.
23664         From Mark D. Baushke.
23665
23666 2006-01-24  Jim Meyering  <jim@meyering.net>
23667
23668         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
23669         Reported by Mark D. Baushke.
23670
23671 2006-01-24  Jim Meyering  <jim@meyering.net>
23672
23673         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
23674
23675 2006-01-24  Bruno Haible  <bruno@clisp.org>
23676
23677         * modules/strnlen (Maintainer): Change from glibc to all.
23678
23679 2006-01-24  Bruno Haible  <bruno@clisp.org>
23680
23681         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
23682         Patch by Paul Eggert.
23683
23684 2006-01-24  Bruno Haible  <bruno@clisp.org>
23685
23686         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
23687         already has it.
23688         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
23689         2005-11-26.
23690
23691         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
23692         'signed char' to avoid problems with the built-in _Bool type.
23693         Reported by Paul Eggert on 2005-11-26.
23694
23695 2006-01-24  Bruno Haible  <bruno@clisp.org>
23696
23697         * gnulib-tool (func_import): Avoid constructing complicated sed
23698         expressions inside backquote.
23699         Report and solution by Mark D. Baushke <mdb@gnu.org>.
23700
23701 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
23702
23703         These changes imported from libc.
23704         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
23705         test and two separate function calls.
23706         * lib/strndup.c (__strndup): Add libc_hidden_def.
23707
23708 2006-01-23  Simon Josefsson  <jas@extundo.com>
23709
23710         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
23711         Remove the test_*_SOURCES variable: automake infers it by default.
23712         * modules/tls-tests: Likewise.
23713
23714 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
23715
23716         Work around porting bugs reported by Dieter in
23717         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
23718         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
23719         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
23720         Include "getopt.h" first, to check interface.
23721         (getenv): Declare only if defined HAVE_DECL_GETENV &&
23722         !HAVE_DECL_GETENV.
23723         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
23724         (__strndup): Revert to K&R-style function dfns, the glibc style.
23725         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
23726         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
23727         Include strnlen.h first, to get prototype properly.
23728         (strnlen): Renamed from __strnlen.
23729         Remove weak alias.
23730
23731 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
23732
23733         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
23734
23735 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
23736
23737         * config/srclist.txt: Adjust to reflect glibc reorganization.
23738         This affects only comments.
23739
23740 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
23741
23742          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
23743          Reported by Bruce Korb <bkorb@gnu.org>.
23744
23745 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
23746
23747         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
23748         to pacify gcc -Wswitch-default.
23749
23750 2006-01-22  Bruno Haible  <bruno@clisp.org>
23751
23752         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
23753         temporary buffer for sprintf, take into account the precision also
23754         for 'd', 'i', 'u', 'o', 'x', 'X'.
23755
23756 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
23757
23758         * modules/argp-tests: New module
23759         * tests/test-argp.c: New file
23760         * tests/test-argp-2.sh: New file
23761
23762 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
23763
23764         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
23765         (__argp_base_name): Removed
23766         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
23767         typo.
23768         (__argp_base_name): Provide macro definition or extern declaration
23769         depending on the configuration
23770
23771 2006-01-20  Simon Josefsson  <jas@extundo.com>
23772
23773         * modules/inet_ntop (Depends-on): Depend on sys_socket.
23774
23775 2006-01-20  Simon Josefsson  <jas@extundo.com>
23776
23777         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
23778
23779 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
23780
23781         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
23782         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
23783         Suggested by Bruno Haible.
23784
23785 2006-01-20  Karl Berry  <karl@gnu.org>
23786
23787         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
23788         until changes propagate, I guess.
23789
23790 2006-01-19  Simon Josefsson  <jas@extundo.com>
23791
23792         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
23793
23794 2006-01-19  Simon Josefsson  <jas@extundo.com>
23795
23796         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
23797
23798 2006-01-19  Simon Josefsson  <jas@extundo.com>
23799
23800         * gnulib-tool: Set check_PROGRAMS.
23801
23802         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
23803         modules/des-tests, modules/gc-arcfour-tests,
23804         modules/gc-arctwo-tests, modules/gc-des-tests,
23805         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
23806         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
23807         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
23808         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
23809         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
23810         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
23811         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
23812         test_*_SOURCES.
23813
23814 2006-01-18  Simon Josefsson  <jas@extundo.com>
23815
23816         * modules/socklen (Depends-on): Depend on sys_socket.
23817
23818 2006-01-18  Simon Josefsson  <jas@extundo.com>
23819
23820         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
23821         modules/des-tests, modules/gc-arcfour-tests,
23822         modules/gc-arctwo-tests, modules/gc-des-tests,
23823         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
23824         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
23825         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
23826         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
23827         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
23828         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
23829         $(EXEEXT) to automake TESTS variable, for mingw32.
23830
23831 2006-01-17  Simon Josefsson  <jas@extundo.com>
23832
23833         * modules/socklen (Include): Need sys/socket.h.
23834
23835 2006-01-17  Bruno Haible  <bruno@clisp.org>
23836
23837         * modules/ssize_t (Include): Add <sys/types.h>.
23838
23839 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
23840
23841         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
23842         it's not portable and it doesn't work with cross-compiles.
23843         Problem reported by Bruno Haible.  Fix missing-$ typo in
23844         'test "gl_cv_ignore_unused_libraries" ...' that prevented
23845         -zignore from being used with Sun's C compiler.
23846
23847 2006-01-12  Simon Josefsson  <jas@extundo.com>
23848
23849         * lib/base64.c: Fix warning, reported by Bruno Haible
23850         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
23851
23852 2006-01-12  Bruno Haible  <bruno@clisp.org>
23853
23854         * modules/ldd: New file.
23855         * build-aux/ldd.sh.in: New file.
23856         * MODULES.html.sh (Support for building libraries and executables): Add
23857         ldd.
23858
23859 2006-01-12  Bruno Haible  <bruno@clisp.org>
23860
23861         * m4/ldd.m4: New file.
23862
23863 2006-01-12  Bruno Haible  <bruno@clisp.org>
23864
23865         * gnulib-tool (func_import, func_create_testdir): Don't go into an
23866         endless loop while replacing $auxdir with build-aux.
23867
23868 2006-01-11  Simon Josefsson  <jas@extundo.com>
23869
23870         * lib/stdint_.h (SIZE_MAX): Add missing (.
23871
23872 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
23873
23874         Sync from coreutils.
23875         * lib/md5.c: Fix commentary typos.
23876         (alignof, UNALIGNED_P): No need for a GCC-specific version.
23877         * lib/md5.h (__attribute__): Remove; unused.
23878         * lib/sha1.c: Fix commentary to match md5 better.
23879         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
23880         so that we don't need to worry about alignment.  All uses changed.
23881         This merges the 2005-10-28 md5 change into sha1.
23882
23883 2006-01-11  Jim Meyering  <jim@meyering.net>
23884
23885         Sync from coreutils.
23886         * lib/md5.c (OP): Fix spacing.
23887
23888 2006-01-11  Bruno Haible  <bruno@clisp.org>
23889
23890         Ensure automatic ordering between gl_LOCK and gl_ARGP.
23891         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
23892         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
23893
23894 2006-01-11  Bruno Haible  <bruno@clisp.org>
23895
23896         Ensure automatic ordering between gl_LOCK and gl_ARGP.
23897         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
23898         the "early" section as well.
23899
23900 2006-01-11  Bruno Haible  <bruno@clisp.org>
23901
23902         Avoid "ar: no archive members specified" error on MacOS X.
23903         * gnulib-tool (func_modules_add_dummy): New function.
23904         (func_import, func_create_testdir): Invoke it.
23905
23906 2006-01-11  Bruno Haible  <bruno@clisp.org>
23907
23908         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
23909         with $auxdir in AC_CONFIG_FILES statements.
23910
23911 2006-01-11  Bruno Haible  <bruno@clisp.org>
23912
23913         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23914         Initialize also noinst_HEADERS to empty.
23915
23916 2006-01-11  Bruno Haible  <bruno@clisp.org>
23917
23918         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
23919         variables.
23920         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
23921         autoreconf.
23922
23923 2006-01-11  Bruno Haible  <bruno@clisp.org>
23924
23925         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
23926         overridable by the user.
23927         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23928
23929 2006-01-10  Simon Josefsson  <jas@extundo.com>
23930
23931         * modules/sys_socket: New file.
23932
23933 2006-01-10  Simon Josefsson  <jas@extundo.com>
23934
23935         * m4/sys_socket_h.m4: New file.
23936
23937 2006-01-10  Simon Josefsson  <jas@extundo.com>
23938
23939         * lib/socket_.h: New file.
23940
23941 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
23942
23943         * modules/readutmp (Maintainer): Add myself.
23944
23945 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
23946
23947         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
23948         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
23949         People who are still concerned with buggy memcmp implementations
23950         can invoke gl_FUNC_MEMCMP themselves.
23951
23952 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
23953
23954         * lib/regex_internal.h (BITSET_WORD_BITS):
23955         Work around a bug in 64-bit PGC (before version 6.1-2), where the
23956         preprocessor mishandles large unsigned values as if they were signed.
23957         Problem reported by Claudio Fontana in
23958         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
23959
23960 2006-01-10  Jim Meyering  <jim@meyering.net>
23961
23962         Avoid the double-free (first in fts_read, second in fts_close) that
23963         would occur when an `active' directory is made inaccessible (e.g.,
23964         via chmod a-x) during a traversal.
23965         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
23966         before returning.  Reproduce this failure by
23967         mkdir -p a/b; cd a; chmod a-x . b
23968         Reported by Stavros Passas.
23969
23970         Sync from coreutils.
23971         * lib/sha1.c: Tweak grammar in a comment.
23972
23973 2006-01-10  Jim Meyering  <jim@meyering.net>
23974
23975         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
23976         Patch by Joerg Sonnenberger.
23977
23978 2006-01-10  Bruno Haible  <bruno@clisp.org>
23979
23980         * modules/readutmp: Depend on module free.
23981         * modules/strtok_r: Depend on module restrict.
23982
23983 2006-01-10  Bruno Haible  <bruno@clisp.org>
23984
23985         * modules/gettext (configure.ac): Add an invocation of
23986         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
23987
23988 2006-01-10  Bruno Haible  <bruno@clisp.org>
23989
23990         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
23991         Reported by Werner Lemberg <wl@gnu.org>.
23992
23993 2006-01-10  Bruno Haible  <bruno@clisp.org>
23994
23995         * lib/localcharset.c: Update from GNU gettext.
23996
23997 2006-01-10  Bruno Haible  <bruno@clisp.org>
23998
23999         * lib/argp.h (__const): Remove macro. Use const instead.
24000         * lib/argp-fmtstream.h (__const): Likewise.
24001         * lib/glob_.h (__const): Remove macro.
24002         * lib/glob-libc.h: Use const instead of __const.
24003
24004 2006-01-10  Bruno Haible  <bruno@clisp.org>
24005
24006         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
24007         variable.
24008         Needed to avoid an automake error regarding the 'gettext' module.
24009
24010 2006-01-09  Simon Josefsson  <jas@extundo.com>
24011
24012         * modules/inet_ntop (Depends-on): Add restrict.
24013
24014 2006-01-09  Simon Josefsson  <jas@extundo.com>
24015
24016         * modules/gc-rijndael-tests (License): Put under LGPL.
24017
24018         * modules/gc-des-tests (License): Likewise.
24019
24020         * modules/gc-arcfour-tests (License): Likewise.
24021
24022         * modules/gc-arctwo-tests (License): Likewise.
24023
24024         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
24025
24026         * modules/gc-hmac-sha1-tests (Files): Likewise.
24027
24028         * modules/gc-hmac-md5-tests (License): Likewise.
24029
24030         * modules/gc-sha1-tests (License): Likewise.
24031
24032         * modules/gc-md5-tests (License): Likewise.
24033
24034         * modules/gc-md4-tests (License): Likewise.
24035
24036         * modules/gc-md2-tests (License): Likewise.
24037
24038         * modules/gc-tests (License): Likewise.
24039
24040         * modules/des-tests (License): Likewise.
24041
24042         * modules/md4-tests (License): Likewise.
24043
24044         * modules/md2-tests (License): Likewise.
24045
24046 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24047
24048         Sync from coreutils:
24049
24050         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
24051         * modules/lib-ignore: New file.
24052         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
24053         chdir-safer.m4, lchmod.m4.
24054         * modules/openat: Add mkdirat.c, openat-priv.h.
24055
24056 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24057
24058         Sync from coreutils.
24059         * m4/lib-ignore.m4: New file.
24060         * m4/lchmod.m4: New file.
24061
24062 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24063
24064         Sync from coreutils.
24065         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
24066         for write access: POSIX says that must fail.
24067         * lib/fts.c (diropen): Likewise.
24068         * lib/save-cwd.c (save_cwd): Likewise.
24069         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
24070         well, for minor improvements on hosts that lack O_DIRECTORY.
24071         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
24072         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
24073         Fall back on chown if open failed with EACCES.
24074
24075         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
24076         Report an error at compile-time if only a 1-second nominal clock
24077         resolution is found.
24078
24079         * lib/lchmod.h: New file.
24080         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
24081         (make_dir_parents): Use lchown rather than chown, and
24082         lchmod rather than chmod.
24083
24084         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
24085         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
24086         "proc" reported by n0dalus.
24087
24088         * lib/mountlist.c: Include <limits.h>.
24089         (dev_from_mount_options)
24090         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
24091         New function.  It no longer assumes "dev=" has the System V meaning
24092         on Linux (since it doesn't).  It also parses "dev=" more carefully.
24093         (read_file_system_list)
24094         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
24095         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
24096         dev= in that case.
24097
24098         * lib/posixtm.h (PDS_PRE_2000): New macro.
24099         * lib/posixtm.c (year): Arg is now syntax_bits rather than
24100         allow_century.  All usages changed.  Reject dates outside the range
24101         1969-1999 if PDS_PRE_2000 is used.
24102
24103 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24104
24105         Sync from coreutils.
24106         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
24107         (Time of day items): Mention the possibility of leap seconds.
24108         Problem reported by Dr. David Alan Gilbert.
24109
24110 2006-01-09  Jim Meyering  <jim@meyering.net>
24111
24112         Sync from coreutils.
24113
24114         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
24115
24116         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
24117
24118         * lib/modechange.c (mode_compile): Reject an invalid mode string
24119         that starts with an octal digit.  From Andreas Gruenbacher.
24120
24121         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
24122         and dup to open_safer and dup_safer, respectively.
24123         (openat_permissive): Fix typo in comment.
24124
24125         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
24126         "gettext.h"; either no longer needed or are guaranteed by openat.h.
24127         (_): Remove; no longer needed.
24128         (openat): Renamed from rpl_openat; no need for rpl_openat
24129         since openat.h renames openat for us.
24130         Replace most of the body with a call to openat_permissive,
24131         to avoid duplicate code.
24132         Port to (probably hypothetical) environments were mode_t is
24133         wider than int.
24134         (openat_permissive): Require mode arg, so that we can check
24135         types better.  Put it just after flags.  Change cwd failure
24136         indicator from pointer-to-bool to pointer-to-errno-value.
24137         All callers changed.
24138         Invoke openat_save_fail and/or openat_restore_fail if
24139         cwd_errno is null, so that openat can call us.
24140         (openat_permissive, fdopendir, fstatat, unlinkat):
24141         Simplify errno handling to avoid some duplicate code,
24142         as it's OK to set errno on success.
24143         * lib/openat.h: Revamp code so that function macros depend on
24144         __OPENAT_PREFIX only, not also on AT_FDCWD.
24145         (openat_ro): Remove.  Caller changed to use openat_permissive.
24146         (openat_permissive): Now a macro, if not a function.
24147         (openat_restore_fail, openat_save_fail): Now always functions,
24148         since mkdirat needs them even if __OPENAT_PREFIX is defined.
24149
24150         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
24151         and openat.c.
24152         * lib/mkdirat.c: Include openat-priv.h.
24153         Remove definitions of macros defined therein.
24154         * lib/openat.c: Likewise.
24155
24156         * lib/mkdirat.c (mkdirat): New file and function.
24157         * lib/openat.h (mkdirat): Declare.
24158
24159         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
24160
24161         * lib/openat.h (openat_permissive): Declare.
24162         (openat_ro): Define.
24163
24164         * lib/openat.c (EXPECTED_ERRNO): New macro.
24165         (openat_permissive): New function -- used in remove.c rewrite.
24166         (all functions): Set errno just before returning, only if there
24167         was an actual failure.
24168         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
24169
24170         Emulate openat-family functions using Linux's procfs, if possible.
24171         Idea and some code based on Ulrich Drepper's glibc changes.
24172
24173         * lib/openat.c: (BUILD_PROC_NAME): New macro.
24174         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
24175         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
24176         before falling back on save_cwd and restore_cwd.
24177         (fdopendir, fstatat, unlinkat): Likewise.
24178
24179         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
24180         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
24181
24182         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
24183         as second argument to va_arg.  Otherwise, some versions of gcc
24184         warn that `if this code is reached, the program will abort'.
24185
24186 2006-01-09  Jim Meyering  <jim@meyering.net>
24187
24188         Sync from coreutils.
24189         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
24190         Require openat-priv.h.
24191
24192 2006-01-09  Bruno Haible  <bruno@clisp.org>
24193
24194         * modules/strnlen (Include): Use strnlen.h.
24195
24196 2006-01-09  Bruno Haible  <bruno@clisp.org>
24197
24198         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
24199
24200 2006-01-09  Bruno Haible  <bruno@clisp.org>
24201
24202         * lib/sysexit_.h (EX_OK): New macro.
24203         Suggested by Martin Lambers <marlam@marlam.de>.
24204
24205 2006-01-09  Bruno Haible  <bruno@clisp.org>
24206
24207         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
24208         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
24209
24210 2006-01-09  Bruno Haible  <bruno@clisp.org>
24211
24212         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
24213         numbers.
24214
24215 2006-01-09  Bruno Haible  <bruno@clisp.org>
24216
24217         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
24218         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
24219         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
24220         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
24221
24222 2006-01-09  Bruno Haible  <bruno@clisp.org>
24223
24224         * build-aux/javacomp.sh.in: New file, moved from lib/.
24225         * modules/javacomp-script (Files): Update.
24226         (configure.ac): Add AC_CONFIG_FILES invocation.
24227         (EXTRA_DIST): Remove variable.
24228
24229         * build-aux/javaexec.sh.in: New file, moved from lib/.
24230         * modules/javaexec (Files): Update.
24231         (configure.ac): Add AC_CONFIG_FILES invocation.
24232         (EXTRA_DIST): Remove javaexec.sh.in.
24233
24234         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
24235         * modules/csharpcomp-script (Files): Update.
24236         (configure.ac): Add AC_CONFIG_FILES invocation.
24237         (EXTRA_DIST): Remove variable.
24238
24239         * build-aux/csharpexec.sh.in: New file, moved from lib/.
24240         * modules/csharpexec (Files): Update.
24241         (configure.ac): Add AC_CONFIG_FILES invocation.
24242         (EXTRA_DIST): Remove csharpexec.sh.in.
24243
24244 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
24245
24246         Sync from coreutils.
24247
24248         Add POSIX ACL support
24249         * lib/acl.h (copy_acl, set_acl): Add declarations.
24250         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
24251         systems other than Linux.
24252         (chmod_or_fchmod): New function: use fchmod when possible,
24253         and chmod otherwise.
24254         (file_has_acl): Add a POSIX ACL implementation, with a
24255         Linux-specific subcase.
24256         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
24257         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
24258         acls are unsupported.
24259         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
24260         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
24261         are unsupported.
24262
24263 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
24264
24265         Sync from coreutils.
24266         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
24267
24268 2006-01-07  Bruno Haible  <bruno@clisp.org>
24269
24270         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
24271         gl_EARLY.
24272
24273 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
24274
24275         * lib/strftime.c (tzname): Don't declare if it is already #defined.
24276         Problem reported for Mingw by Mark Junker.
24277
24278 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
24279
24280         * README: Gnulib normally doesn't generate a tarball.
24281
24282 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
24283
24284         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
24285         long int, not int, for nanosecond counts, so that people who are
24286         used to POSIX struct timespec won't be surprised.  Reported by Jim
24287         Meyering.
24288
24289 2005-12-28  Bruno Haible  <bruno@clisp.org>
24290
24291         * build-aux/config.rpath: Update from GNU gettext.
24292
24293 2005-12-16  Jim Meyering  <jim@meyering.net>
24294
24295         * modules/fprintftime: New module.
24296         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
24297
24298 2005-12-16  Jim Meyering  <jim@meyering.net>
24299
24300         * m4/fprintftime.m4: New file.
24301
24302 2005-12-16  Jim Meyering  <jim@meyering.net>
24303
24304         * lib/fprintftime.c, lib/fprintftime.h: New files.
24305
24306 2005-12-15  Simon Josefsson  <jas@extundo.com>
24307
24308         * modules/socklen (configure.ac): Fix M4 macro name, to align with
24309         new m4/socklen.m4.
24310
24311 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
24312
24313         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
24314         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
24315
24316 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
24317
24318         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
24319         * lib/argp-help.c (fill_in_uparams): Check if the constructed
24320         struct uparams is valid. Fall back to the default values if it is
24321         not.
24322
24323 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
24324
24325         * modules/argp (Files): Add argp-pin.c
24326         (Depends-on): dirname
24327         (lib_SOURCES): Add argp-pin.c
24328
24329 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
24330
24331         * m4/argp.m4:  Check if program_invocation_name and
24332         program_invocation_short_name are declared and define appropriate
24333         macros if they are not.
24334
24335 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
24336
24337         * lib/argp-help.c (__argp_base_name): New function
24338         (__argp_short_program_name): Rewrite using __argp_base_name
24339         * lib/argp-namefrob.h: Define program_invocation_name and
24340         program_invocation_short_name if requested
24341         (__argp_base_name): Add prototype
24342         * lib/argp-parse.c (argp_def): Use gettext wrappers
24343         (argp_default_parser): Use __argp_base_name
24344         * lib/argp-pin.c: New file. Defines program_invocation_name and
24345         program_invocation_short_name on systems that lack them.
24346
24347 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
24348
24349         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
24350         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
24351         porting problem reported by Georg Schwarz in
24352         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
24353
24354 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
24355
24356         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
24357         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
24358         porting problem reported by Georg Schwarz in
24359         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
24360
24361 2005-12-05  Bruno Haible  <bruno@clisp.org>
24362
24363         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
24364         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
24365         Reported by Mark Junker <mjscod@gmx.de>.
24366
24367 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
24368
24369         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
24370         Use implementation from Albert Chin, with some
24371         comments/corrections by Stepan Kasal and myself.
24372
24373 2005-12-02  Bruno Haible  <bruno@clisp.org>
24374
24375         * gnulib-tool (func_import): Accept GPLed build tool modules when
24376         --lgpl is given.
24377         * modules/csharpcomp-script: New file.
24378         * modules/csharpcomp: Depend on it.
24379         * modules/javacomp-script: New file.
24380         * modules/javacomp: Depend on it.
24381         Suggested by Simon Josefsson.
24382
24383 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
24384
24385         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
24386         statement, to work around an HP-UX 10.20 compiler bug reported by
24387         Peter O'Gorman.
24388
24389 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
24390
24391         * modules/savedir (Depends-on): Add openat.
24392
24393 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
24394
24395         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
24396         (uintmax_t) [defined uintmax_t]: Do not declare.
24397         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
24398         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
24399         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
24400         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
24401         sake of portability to weird hosts that C allows (though we don't
24402         know of any practical examples).
24403
24404         * lib/savedir.h (fdsavedir): New decl.
24405         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
24406         contains most of the former guts of savedir.
24407         (savedir): Use savedirstream.
24408         Include "openat.h".
24409
24410 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24411
24412         * modules/obstack (Files): Add m4/ulonglong.m4.
24413         Problem reported by Davide Angelocola.
24414
24415 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24416
24417         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
24418         coreutils no longer futzes with rounding modes.
24419
24420 2005-11-14  Jim Meyering  <jim@meyering.net>
24421
24422         * lib/mkstemp-safer.c: Include <config.h>, required for possible
24423         replacement of mkstemp.
24424
24425 2005-11-10  Simon Josefsson  <jas@extundo.com>
24426
24427         * lib/readline.c: Remove EOL.
24428
24429 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
24430
24431         * modules/gethrxtime (Depends-on): Add gettime.
24432
24433 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
24434
24435         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
24436         or gettimeofday; no longer needed.
24437
24438 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
24439
24440         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
24441         time business.
24442         (gethrxtime) [! (HAVE_NANOUPTIME
24443         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
24444         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
24445         our own approximation.
24446
24447 2005-11-08  Eric Blake  <ebb9@byu.net>
24448
24449         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
24450
24451 2005-11-08  Eric Blake  <ebb9@byu.net>
24452
24453         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
24454
24455 2005-11-04  Bruno Haible  <bruno@clisp.org>
24456
24457         * gnulib-tool: Implement --update mode.
24458
24459 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
24460
24461         Fix porting problem reported by Theodoros V. Kalamatianos.
24462         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
24463         Don't assume that futimes failing means we must fail.
24464
24465 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
24466
24467         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
24468         variables to suggest the intended function of the PATH_MAX check.
24469
24470 2005-10-30  Kean Johnston  <jkj@sco.com>
24471
24472         Trivial changes to support SCO systems.
24473         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
24474         as PATH_MAX.
24475         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
24476         where __ptr is null when no I/O is pending.
24477
24478 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
24479
24480         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
24481         leave errno alone.  Problem reported by Dmitry V. Levin.
24482
24483 2005-10-28  Simon Josefsson  <jas@extundo.com>
24484
24485         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
24486         Test more.
24487
24488         * tests/test-gc-md2.c, tests/test-md2.c: New files.
24489
24490         * modules/md2, modules/md2-tests: New files.
24491
24492 2005-10-28  Simon Josefsson  <jas@extundo.com>
24493
24494         * m4/inet_ntop.m4: More tests.
24495
24496         * m4/gc-md2.m4, md2.m4: New file.
24497
24498 2005-10-28  Simon Josefsson  <jas@extundo.com>
24499
24500         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
24501         "restrict" keywords, as per POSIX.  Protect the function
24502         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
24503         Don't use K&R prototypes.  Check the sprintf return values.
24504         Re-define EAFNOSUPPORT if not present.  Indent.
24505
24506         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
24507         suggested by Bruno Haible <bruno@clisp.org>.
24508
24509         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
24510
24511         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
24512
24513         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
24514         libgcrypt).
24515
24516         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
24517
24518         * lib/md2.h, lib/md2.c: New files.
24519
24520 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
24521
24522         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
24523         errno alone.  Problem reported by Frederic Jolliton.
24524
24525 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
24526
24527         * modules/verify (License): Change from GPL to LGPL.  This is a
24528         tiny module and there are apparently near-equivalents that are
24529         under the BSD license.
24530
24531 2005-10-24  Simon Josefsson  <jas@extundo.com>
24532
24533         * modules/sha1: Relicense to LGPL.
24534
24535 2005-10-24  Simon Josefsson  <jas@extundo.com>
24536
24537         * lib/md4.h: Shrink buffer size, now that we changed the type.
24538
24539 2005-10-23  Simon Josefsson  <jas@extundo.com>
24540
24541         * gnulib-tool (func_import): Fix --tests-base.
24542
24543 2005-10-22  Simon Josefsson  <jas@extundo.com>
24544
24545         * modules/arcfour (Depends-on): Need stdint.
24546
24547 2005-10-22  Simon Josefsson  <jas@extundo.com>
24548
24549         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
24550         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
24551
24552 2005-10-22  Simon Josefsson  <jas@extundo.com>
24553
24554         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
24555         suggested by Bruno Haible <bruno@clisp.org>.
24556
24557 2005-10-22  Simon Josefsson  <jas@extundo.com>
24558
24559         * lib/crc.h: Include stddef.h, for size_t.
24560
24561 2005-10-22  Simon Josefsson  <jas@extundo.com>
24562
24563         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
24564         arcfour_context struct (simplify test vector testing in GNU
24565         Shishi).
24566
24567 2005-10-21  Simon Josefsson  <jas@extundo.com>
24568
24569         * modules/des, modules/des-tests: New files.
24570
24571         * modules/gc-des, modules/gc-des-tests: New files.
24572
24573         * tests/test-des.c, tests/test-gc-des.c: New file.
24574
24575 2005-10-21  Simon Josefsson  <jas@extundo.com>
24576
24577         * modules/arctwo, modules/arctwo-tests: New files.
24578
24579         * tests/test-arctwo.c: New file.
24580
24581         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
24582
24583         * tests/test-gc-arctwo.c: New file.
24584
24585 2005-10-21  Simon Josefsson  <jas@extundo.com>
24586
24587         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
24588         Bruno Haible <bruno@clisp.org>.
24589
24590         * m4/gc-des.m4: New file.
24591
24592 2005-10-21  Simon Josefsson  <jas@extundo.com>
24593
24594         * m4/arctwo.m4: New file.
24595
24596         * m4/gc-arctwo.m4: New file.
24597
24598 2005-10-21  Simon Josefsson  <jas@extundo.com>
24599
24600         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
24601         block.
24602
24603 2005-10-21  Simon Josefsson  <jas@extundo.com>
24604
24605         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
24606         <bruno@clisp.org>.
24607
24608         * lib/hmac-sha1.c (hmac_sha1): Likewise.
24609
24610         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
24611         Bruno Haible <bruno@clisp.org>.
24612
24613         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
24614         <bruno@clisp.org>.
24615
24616 2005-10-21  Simon Josefsson  <jas@extundo.com>
24617
24618         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
24619
24620 2005-10-21  Simon Josefsson  <jas@extundo.com>
24621
24622         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
24623
24624 2005-10-21  Simon Josefsson  <jas@extundo.com>
24625
24626         * lib/des.h, lib/des.c: New files.
24627
24628         * lib/gc-gnulib.c: Support DES.c
24629
24630 2005-10-21  Simon Josefsson  <jas@extundo.com>
24631
24632         * lib/arctwo.h, lib/arctwo.c: New files.
24633
24634         * lib/gc-gnulib.c: Support ARCTWO.
24635
24636 2005-10-21  Simon Josefsson  <jas@extundo.com>
24637
24638         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
24639         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24640
24641 2005-10-21  Simon Josefsson  <jas@extundo.com>
24642
24643         * gnulib-tool (func_import, func_create_testdir): Define automake
24644         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
24645         Makefile.am snippet),
24646         suggested by Bruno Haible <bruno@clisp.org>.
24647
24648         * modules/gc (Makefile.am): Use it.
24649
24650 2005-10-21  Bruno Haible  <bruno@clisp.org>
24651
24652         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
24653         patch.
24654
24655 2005-10-19  Simon Josefsson  <jas@extundo.com>
24656
24657         * tests/test-gc-rijndael.c: New file.
24658
24659         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
24660
24661 2005-10-19  Simon Josefsson  <jas@extundo.com>
24662
24663         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
24664         interface too.
24665
24666 2005-10-19  Simon Josefsson  <jas@extundo.com>
24667
24668         * tests/test-gc-arcfour.c: New file.
24669
24670         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
24671
24672 2005-10-19  Simon Josefsson  <jas@extundo.com>
24673
24674         * modules/gc-md4, modules/gc-md4-tests: New file.
24675
24676         * tests/test-gc-md4.c: New file.
24677
24678 2005-10-19  Simon Josefsson  <jas@extundo.com>
24679
24680         * m4/gc-md4.m4: New file.
24681
24682 2005-10-19  Simon Josefsson  <jas@extundo.com>
24683
24684         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
24685         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
24686         <kasal@ucw.cz>.
24687
24688 2005-10-19  Simon Josefsson  <jas@extundo.com>
24689
24690         * m4/gc-arcfour.m4: New file.
24691
24692         * m4/gc-rijndael.m4: New file.
24693
24694 2005-10-19  Simon Josefsson  <jas@extundo.com>
24695
24696         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
24697
24698 2005-10-19  Simon Josefsson  <jas@extundo.com>
24699
24700         * lib/gc-gnulib.c: Support ARCFOUR.
24701
24702 2005-10-19  Simon Josefsson  <jas@extundo.com>
24703
24704         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
24705         support.
24706
24707         * lib/gc.h: Add ECB enum type.
24708
24709         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
24710
24711 2005-10-18  Simon Josefsson  <jas@extundo.com>
24712
24713         * tests/test-md5.c: New file.
24714
24715         * modules/md5-tests: New file.
24716
24717 2005-10-18  Simon Josefsson  <jas@extundo.com>
24718
24719         * tests/test-md4.c: New file.
24720
24721         * modules/md4, modules/md4-tests: New files.
24722
24723 2005-10-18  Simon Josefsson  <jas@extundo.com>
24724
24725         * m4/md4.m4: New file.
24726
24727 2005-10-18  Simon Josefsson  <jas@extundo.com>
24728
24729         * lib/md4.h, lib/md4.c: New files, based on md5.?.
24730
24731 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
24732
24733         * gnulib-tool (func_create_testdir): Omit the second check whether
24734         BUILT_SOURCES in nonempty.
24735
24736 2005-10-17  Simon Josefsson  <jas@extundo.com>
24737
24738         * tests/test-rijndael.c: New file.
24739
24740 2005-10-17  Simon Josefsson  <jas@extundo.com>
24741
24742         * modules/sha1: Depend on stdint instead of md5.
24743
24744         * modules/md5: Depend on stdint, remove uint32_t.
24745
24746 2005-10-17  Simon Josefsson  <jas@extundo.com>
24747
24748         * modules/gc-sha1-tests: New file.
24749
24750         * tests/test-gc-sha1.c: New file.
24751
24752 2005-10-17  Simon Josefsson  <jas@extundo.com>
24753
24754         * m4/md5.m4: Remove call to uint32_t.m4.
24755
24756 2005-10-17  Simon Josefsson  <jas@extundo.com>
24757
24758         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
24759
24760         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
24761         md5.h.
24762
24763         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
24764
24765         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
24766
24767 2005-10-17  Simon Josefsson  <jas@extundo.com>
24768
24769         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
24770
24771 2005-10-17  Simon Josefsson  <jas@extundo.com>
24772
24773         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
24774
24775 2005-10-17  Simon Josefsson  <jas@extundo.com>
24776
24777         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
24778
24779         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
24780
24781 2005-10-17  Bruno Haible  <bruno@clisp.org>
24782
24783         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
24784         that it can also be used in a test.
24785
24786 2005-10-16  Bruno Haible  <bruno@clisp.org>
24787
24788         * gnulib-tool (func_emit_tests_Makefile_am): Also define
24789         TESTS_ENVIRONMENT, so that individual tests can augment it.
24790
24791         * gnulib-tool (func_create_testdir): Use an intermediate target for
24792         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
24793         macros, like $(ALLOCA_H), which cannot be passed through the command
24794         line.
24795
24796 2005-10-15  Simon Josefsson  <jas@extundo.com>
24797
24798         * modules/rijndael-tests: New file.
24799
24800         * modules/rijndael: New file.
24801
24802 2005-10-15  Simon Josefsson  <jas@extundo.com>
24803
24804         * m4/rijndael.m4: New file.
24805
24806 2005-10-15  Simon Josefsson  <jas@extundo.com>
24807
24808         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
24809
24810         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
24811
24812 2005-10-14  Simon Josefsson  <jas@extundo.com>
24813
24814         * tests/test-arcfour.c: New file.
24815
24816         * modules/arcfour, modules/arcfour-tests: New files.
24817
24818 2005-10-14  Simon Josefsson  <jas@extundo.com>
24819
24820         * m4/arcfour.m4: New file.
24821
24822 2005-10-14  Simon Josefsson  <jas@extundo.com>
24823
24824         * lib/arcfour.h, lib/arcfour.c: New files.
24825
24826 2005-10-14  Roland McGrath  <roland@redhat.com>
24827
24828         Import from libc.  [BZ #1331]
24829         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
24830         macro argument.
24831         Reported by Matej Vela <vela@debian.org>.
24832
24833 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
24834
24835         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
24836         include <wchar.h>; no longer needed.
24837
24838 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
24839
24840         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
24841
24842 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
24843         and  Ulrich Drepper  <drepper@redhat.com>
24844
24845         Import from libc.
24846         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
24847         instead of inline stream orientation test and two separate
24848         function calls.  Pay no attention to USE_IN_LIBIO.
24849
24850 2005-10-13  Simon Josefsson  <jas@extundo.com>
24851
24852         * modules/gc-hmac-md5-tests: New file.
24853
24854         * tests/test-gc-hmac-sha1.c: New file.
24855
24856         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
24857
24858         * modules/gc-hmac-md5-tests: New file.
24859
24860         * tests/test-gc-md5.c: New file.
24861
24862         * modules/gc-md5-tests: New file.
24863
24864 2005-10-13  Simon Josefsson  <jas@extundo.com>
24865
24866         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
24867         Move memory allocation outside of loop.
24868
24869 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24870
24871         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
24872         intermediate directory is in a read-only file system.  Problem
24873         reported by Eric Blake.
24874
24875 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
24876
24877         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
24878
24879 2005-10-12  Simon Josefsson  <jas@extundo.com>
24880
24881         * tests/test-hmac-sha1.c: New file.
24882
24883         * modules/hmac-sha1-tests: New file.
24884
24885         * modules/hmac-sha1: New file.
24886
24887 2005-10-12  Simon Josefsson  <jas@extundo.com>
24888
24889         * modules/gc-sha1: New file.
24890
24891 2005-10-12  Simon Josefsson  <jas@extundo.com>
24892
24893         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
24894
24895         * tests/test-gc-pbkdf2-sha1.c: New file.
24896
24897 2005-10-12  Simon Josefsson  <jas@extundo.com>
24898
24899         * modules/gc-md5, modules/gc-hmac-md5: New files.
24900
24901         * modules/gc (Files): Remove md5, memxor and hmac files.
24902
24903 2005-10-12  Simon Josefsson  <jas@extundo.com>
24904
24905         * m4/gc-pbkdf2-sha1.m4: New file.
24906
24907         * m4/gc-hmac-sha1.m4: New file.
24908
24909         * m4/gc-sha1: New file.
24910
24911         * m4/hmac-sha1.m4: New file.
24912
24913 2005-10-12  Simon Josefsson  <jas@extundo.com>
24914
24915         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
24916
24917         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
24918
24919 2005-10-12  Simon Josefsson  <jas@extundo.com>
24920
24921         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
24922         suggested by Bruno Haible <bruno@clisp.org>.
24923
24924 2005-10-12  Simon Josefsson  <jas@extundo.com>
24925
24926         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
24927
24928 2005-10-12  Simon Josefsson  <jas@extundo.com>
24929
24930         * lib/gc-pbkdf2-sha1.c: New file.
24931
24932         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
24933
24934 2005-10-12  Simon Josefsson  <jas@extundo.com>
24935
24936         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
24937
24938         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
24939
24940 2005-10-12  Simon Josefsson  <jas@extundo.com>
24941
24942         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
24943         GC_USE_HMAC_MD5, respectively.
24944
24945         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
24946         (gc_md5): Fix typo.
24947
24948         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
24949
24950         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
24951
24952         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
24953
24954 2005-10-12  Bruno Haible  <bruno@clisp.org>
24955
24956         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
24957         Reported by Stepan Kasal <kasal@ucw.cz>.
24958
24959 2005-10-11  Simon Josefsson  <jas@extundo.com>
24960
24961         * tests/test-crc.c: New file.
24962
24963         * modules/crc, modules/crc-tests: New files.
24964
24965 2005-10-11  Simon Josefsson  <jas@extundo.com>
24966
24967         * m4/crc.m4: New file.
24968
24969 2005-10-11  Simon Josefsson  <jas@extundo.com>
24970
24971         * lib/gc.h: Add gc_hash and gc_hash_buffer.
24972
24973         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
24974
24975         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
24976
24977 2005-10-11  Simon Josefsson  <jas@extundo.com>
24978
24979         * lib/crc.h, lib/crc.c: New files.
24980
24981         * lib/gc.h (gc_hash_buffer): Add doc.
24982
24983 2005-10-11  Bruno Haible  <bruno@clisp.org>
24984
24985         * modules/c-strcasestr: New file.
24986         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
24987
24988 2005-10-11  Bruno Haible  <bruno@clisp.org>
24989
24990         * modules/c-strcase: New file.
24991         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
24992
24993 2005-10-11  Bruno Haible  <bruno@clisp.org>
24994
24995         * lib/strcasecmp.c: Include limits.h.
24996         (strcasecmp): Avoid integer overflow on exotic platforms.
24997         * lib/strncasecmp.c: Include limits.h.
24998         (strncasecmp): Avoid integer overflow on exotic platforms.
24999         Reported by Paul Eggert.
25000
25001 2005-10-11  Bruno Haible  <bruno@clisp.org>
25002
25003         * lib/c-strcasestr.h: New file, from GNU gettext.
25004         * lib/c-strcasestr.c: New file, from GNU gettext.
25005
25006 2005-10-11  Bruno Haible  <bruno@clisp.org>
25007
25008         * lib/c-strcase.h: New file, from GNU gettext.
25009         * lib/c-strcasecmp.c: New file, from GNU gettext.
25010         * lib/c-strncasecmp.c: New file, from GNU gettext.
25011
25012 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
25013
25014         * modules/mempcpy (License): GPL -> LGPL.
25015         * modules/strchrnul (License): Likewise.
25016         * modules/sysexits (License): Likewise.
25017
25018 2005-10-08  Simon Josefsson  <jas@extundo.com>
25019
25020         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
25021
25022 2005-10-07  Simon Josefsson  <jas@extundo.com>
25023
25024         * m4/memxor.m4: Remove gl_C_RESTRICT call.
25025
25026 2005-10-06  Simon Josefsson  <jas@extundo.com>
25027
25028         * tests/test-hmac-md5.c: New file.
25029
25030         * modules/hmac-md5-tests: New file.
25031
25032         * modules/hmac-md5: New file.
25033
25034 2005-10-06  Simon Josefsson  <jas@extundo.com>
25035
25036         * m4/hmac-md5.m4: New file.
25037
25038         * m4/memxor.m4: Require gl_C_RESTRICT.
25039
25040 2005-10-06  Simon Josefsson  <jas@extundo.com>
25041
25042         * lib/memxor.c (memxor): Avoid casts and warnings.
25043
25044 2005-10-06  Simon Josefsson  <jas@extundo.com>
25045
25046         * lib/hmac-md5.c: New file.
25047
25048         * lib/hmac.h: New file.
25049
25050 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
25051
25052         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
25053         promotes to int, not unsigned int, to catch the AIX 5.3
25054         compiler bug.
25055
25056 2005-10-05  Simon Josefsson  <jas@extundo.com>
25057
25058         * modules/memxor: New file.
25059
25060         * modules/iconv (Files): Move config.rpath to havelib, it is used
25061         there.
25062
25063         * modules/havelib (Files): Add config.rpath.
25064
25065 2005-10-05  Simon Josefsson  <jas@extundo.com>
25066
25067         * m4/memxor.m4: New file.
25068
25069 2005-10-05  Simon Josefsson  <jas@extundo.com>
25070
25071         * lib/memxor.c (memxor): Fix compiler error.
25072
25073         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
25074         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
25075
25076         * lib/memxor.h, lib/memxor.c: New files.
25077
25078         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
25079         we assume all systems have it, suggested by Jim Meyering
25080         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
25081         any systems lack sys/socket.h; mingw32 is known to lack it, but we
25082         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
25083         same reasons.
25084
25085 2005-10-05  Simon Josefsson  <jas@extundo.com>
25086
25087         * config/srclist.txt: Add glibc bug 1423 for md5.h.
25088
25089 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25090
25091         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
25092         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
25093         needed, since the source code now assumes these .h files.
25094
25095 2005-10-05  Derek Price  <derek@ximbiot.com>
25096
25097         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
25098
25099 2005-10-05  Bruno Haible  <bruno@clisp.org>
25100
25101         * modules/stdint (License): Change to LGPL.
25102
25103 2005-10-04  Simon Josefsson  <jas@extundo.com>
25104
25105         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
25106         D. Baushke" <mdb@gnu.org>.
25107
25108 2005-10-04  Bruno Haible  <bruno@clisp.org>
25109
25110         * lib/verify.h (verify_true): Provide alternative definition for C++.
25111
25112 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
25113
25114         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
25115         (SSIZE_MAX): New macro, if not already defined.
25116         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
25117         than 2 GiB.
25118
25119 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
25120
25121         Sync from coreutils.
25122         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
25123         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
25124         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
25125         ULLONG_MAX doesn't work with 2.7.2.1.
25126
25127 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
25128
25129         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
25130         From Ben Pfaff.
25131
25132         * modules/exclude (Depends-on): Depend on verify.
25133         * modules/strtoimax (Depends-on): Likewise.
25134         * modules/utimecmp (Depends-on): Likewise.
25135
25136 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
25137
25138         * lib/exclude.c: Include verify.h.
25139         (verify): Remove.  All callers changed to use verify.h's version.
25140         * lib/strtoimax.c: Likewise.
25141         * lib/utimecmp.c: Likewis.e
25142
25143         Sync from coreutils.
25144         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
25145         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
25146         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
25147         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
25148         bother returning ENOSYS if settimeofday or stime fails; just let
25149         them return whatever errno they want to return.
25150         * lib/utimens.c: Include unistd.h, for dup2.
25151         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
25152         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
25153
25154 2005-10-02  Jim Meyering  <jim@meyering.net>
25155
25156         Sync from coreutils.
25157         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
25158         from glibc-2.2.5 that fails for read-only files.
25159
25160 2005-10-02  Jim Meyering  <jim@meyering.net>
25161
25162         Sync from coreutils.
25163         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
25164         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
25165         `#if HAVE_CONFIG_H'.
25166         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
25167         Remove AT_FDCWD test.
25168         Do not consume the fd unless successful.
25169         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
25170         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
25171         block, so that we don't even try to compile it if settimeofday is
25172         available.  This works around a compilation failure on OSF1 V5.1,
25173         due to stime requiring a `long int*' while tv_sec is `int'.
25174
25175 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
25176
25177         Sync from coreutils.
25178         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
25179         against `yes', rather than just testing for nonempty.
25180
25181 2005-10-01  Simon Josefsson  <jas@extundo.com>
25182
25183         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
25184         and Darwin.
25185
25186         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
25187         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
25188         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
25189         freeaddrinfo and gai_strerror are declared by the POSIX headers.
25190         Check if struct addrinfo is declared.
25191
25192 2005-10-01  Simon Josefsson  <jas@extundo.com>
25193
25194         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
25195         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
25196         AI_* and EAI_* definitions.  Protect function declarations.
25197
25198 2005-10-01  Jim Meyering  <jim@meyering.net>
25199
25200         Sync from coreutils.
25201
25202         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
25203         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
25204         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
25205         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
25206         in the inet and nsl libraries.  Required on Solaris 5.7.
25207
25208 2005-10-01  Jim Meyering  <jim@meyering.net>
25209
25210         Sync from coreutils.
25211         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
25212         in the inet and nsl libraries.  Required on Solaris 5.7.
25213
25214 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
25215
25216         * lib/getdelim.c (getdelim): Remove unused variables.
25217
25218 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
25219
25220         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
25221         so that the code works even with ancient cpp.  Portability problem
25222         with GCC 2.7.2.1 reported by Thomas M.Ott.
25223
25224 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
25225
25226         * modules/regex (Depends-on): Add strcase.
25227
25228         * modules/gethostname (Licence): Change from GPL to LGPL, since
25229         gethostname.c is a trivial implementation of a standard library
25230         function.
25231         * modules/poll (License): Change from GPL to LGPL, since it's
25232         derived from LGPL code.
25233
25234 2005-09-27  Jim Meyering  <jim@meyering.net>
25235
25236         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
25237         HAVE_CONFIG_H.
25238
25239         * lib/intprops.h (signed_type_or_expr__): Define.
25240         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
25241         for unsigned types.
25242
25243 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
25244
25245         * lib/verify.h (verify_expr): Remove, replacing with:
25246         (verify_true): New macro that returns true instead of void.
25247         (verify_type__): Remove.
25248         (verify): Use verify_true rather than verify_type__.
25249
25250 2005-09-26  Bruno Haible  <bruno@clisp.org>
25251
25252         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
25253         is necessary.
25254         (lib_SOURCES): Remove mbchar.c.
25255         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
25256         (Files): Add m4/mbrtowc.m4.
25257         * modules/mbiter: Likewise.
25258         * modules/mbuiter: Likewise.
25259
25260 2005-09-26  Bruno Haible  <bruno@clisp.org>
25261
25262         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
25263         compile mbchar.c if they are not both present.
25264         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
25265         * m4/mbiter.m4 (gl_MBITER): Likewise.
25266         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
25267         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
25268         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
25269
25270 2005-09-25  Jim Meyering  <jim@meyering.net>
25271
25272         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
25273         also uses socklen_t.
25274
25275 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
25276
25277         * lib/utimens.c (ENOSYS): Define if not already defined.
25278         (futimens): Support having a null PATH if the file descriptor
25279         is nonnegative.
25280
25281         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
25282         Remove.
25283         (__attribute): Define to empty unless GCC 3.1 or later.
25284         This works around a core dump on OpenBSD 3.4, which has GCC
25285         2.95.3, which dumps core when given __attribute__(()).  It also
25286         simplifies other tests, since we really don't want to bother with
25287         worrying about which ancient version of GCC supported what.
25288         Original problem reported by Yoann Vandoorselaere, with part of
25289         the fix suggested by Derek Price.
25290
25291 2005-09-24  Jim Meyering  <jim@meyering.net>
25292
25293         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
25294         so we can once again use a positive bitfield width of 1 -- now we
25295         don't have to explain why we were using a bitfield width of 2.
25296
25297 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
25298
25299         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
25300         and similarly for the other external symbols.  Problem reported
25301         by James Gallager.
25302
25303         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
25304         bug reported by Jim Meyering.
25305
25306         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
25307         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
25308         not needed, since socklen is a prerequisite module.
25309
25310 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
25311
25312         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
25313         Problem reported by Eric Blake.
25314         (getaddrinfo): Initialize se so that it's not garbage.
25315         Redo internal storage allocation so that it doesn't make unportable
25316         assumptions about alignment.
25317         Fix a memory leak.
25318
25319         * lib/utimens.c (futimens): Use futimesat if available.
25320         Prefer it to futimes since it doesn't have the futimes bug.
25321
25322         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
25323         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
25324         Instead, declare a function that returns a pointer to an array,
25325         and use verify_type__ to declare the size of the array.
25326         Problem and germ of a solution reported by Bruno Haible.
25327         (verify_type__): Use 2, not 1, for bitfield size, to avoid
25328         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
25329
25330 2005-09-23  Jim Meyering  <jim@meyering.net>
25331
25332         Sync from coreutils.
25333         Correct build failure (socklen_t not defined) on at least
25334         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
25335         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
25336
25337 2005-09-23  Jim Meyering  <jim@meyering.net>
25338
25339         * modules/getaddrinfo (Depends-on): Add socklen.
25340
25341 2005-09-23  Bruno Haible  <bruno@clisp.org>
25342
25343         * tests/test-verify.c: New file.
25344
25345 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25346
25347         Sync from coreutils.
25348
25349         * modules/argmatch (Depends-on): Add verify.
25350         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
25351         unistd-safer.
25352         * modules/save-cwd (Depends-on): Likewise.
25353
25354         * modules/openat (Files): Add lib/openat-die.c.
25355         (Depends-on): Remove error, exitfail.
25356         Add dirname.
25357
25358         * modules/verify: New file.
25359         * MODULES.html.sh (Diagnostics <assert.h>): New section,
25360         with "verify" module.
25361
25362 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25363
25364         Sync from coreutils.
25365
25366         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
25367         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
25368         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
25369         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
25370         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
25371         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
25372         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
25373         Don't bother checking for string.h, stdlib.h, unistd.h.
25374         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
25375         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
25376         module's job.
25377         * m4/jm-macros.m4 (gl_MACROS): Likewise.
25378         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
25379
25380         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
25381         (gl_GETDATE): Use it.
25382
25383         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
25384
25385 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25386
25387         Sync from coreutils.
25388
25389         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
25390         stat-time.h.
25391         * lib/argmatch.h: Include verify.h
25392         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
25393         (ARGMATCH_ASSERT): Remove; unused.
25394         * lib/canonicalize.c: Assume STDC_HEADERS.
25395         * lib/exclude.c: Include "strcase.h".
25396         * lib/regex_internal.h [!defined _LIBC]: Likewise.
25397         * lib/getusershell.c: Include stdio--.h rather than stdio.h
25398         and stdio-safer.h.
25399         (getusershell): Call fopen, not fopen_safer.
25400         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
25401         Do not include unistd-safer.h.
25402         (save_cwd): Don't call fd_safer; no longer needed
25403         now that we include fcntl--.h.
25404
25405         * lib/getdate.y (relative_time): New type.
25406         (RELATIVE_TIME_0): New constant.
25407         (parser_control): Use relative_time instead of doing it ourselves.
25408         (%union): Add new relative_time rel member.
25409         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
25410         Now typeless.
25411         (relunit, relunit_snumber): Now of type rel.
25412         (zone, rel, relunit, get_date): Adjust to above changes.
25413
25414         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
25415         Do not include unistd-safer.h.
25416         (getloadavg): Don't call fd_safer; no longer needed
25417         now that we include fcntl--.h.
25418
25419         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
25420         (make_dir_parents): Treat ENOSYS like EEXIST.
25421
25422         Improve quality of diagnostics on restore_cwd failure.
25423         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
25424         (make_dir_parents): Last arg is now int * (for errno), not bool *.
25425         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
25426         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
25427         each time through the loop.  Do not diagnose restore_cwd failure;
25428         that is the caller's job (and perhaps the caller does not care).
25429
25430         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
25431         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
25432         If the file already exists but is not a directory, don't bother
25433         to try to make its parents.
25434         Close potential file descriptor leak if we can't chdir("/") (!).
25435         Don't always return true if chdir($PWD) fails; return true only
25436         if the requested action was done successfully (except for the
25437         chdir($PWD)).
25438         Don't log final directory unless we actually made it.
25439         Refactor to avoid duplicate code to fix up permissions.
25440         Don't attempt to fix up parent permissions if chdir($PWD) fails.
25441
25442         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
25443         to make it a bit faster and (I hope) clearer.
25444         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
25445         Fix bug in formats like %2N.
25446
25447         * lib/verify.h: New file.
25448
25449 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25450
25451         Sync from coreutils.
25452         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
25453
25454 2005-09-22  Jim Meyering  <jim@meyering.net>
25455
25456         Sync from coreutils.
25457
25458         * m4/lstat.m4 (gl_FUNC_LSTAT):
25459         Use AC_LIBSOURCES to require lstat.c and lstat.h.
25460         Remove obsolete comment.
25461         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
25462         * m4/xstrtod.m4: Likewise.
25463
25464         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
25465
25466 2005-09-22  Jim Meyering  <jim@meyering.net>
25467
25468         Sync from coreutils.
25469
25470         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
25471
25472         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
25473         the .tm_year member, since otherwise gcc-4.0 would now warn about
25474         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
25475
25476         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
25477         order to avoid an unsuppressible warning from gcc on 64-bit systems.
25478
25479         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
25480         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
25481         when run in a time zone for which daylight savings time is in effect
25482         for the starting date.
25483
25484         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
25485         stop us from restricting permissions of just-created absolute-named
25486         directories.
25487         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
25488         to restore initial working directory.
25489         * lib/mkdir-p.c (make_dir_parents): New parameter:
25490         different_working_dir, to tell caller if/when we change the working
25491         directory and are unable to return to the initial one.
25492         * lib/mkdir-p.h (make_dir_parents): Update prototype.
25493         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
25494         `return false'.  This fixes a bug introduced on 2004-07-30.
25495
25496         * lib/openat.c (fdopendir): Be sure to close the supplied
25497         file descriptor before returning.  This makes our replacement
25498         implementation a little closer to Solaris's, where fdopendir
25499         ties the file descriptor to the returned DIR* pointer.
25500         * lib/openat.c (unlinkat): New function.
25501         * lib/openat.h (unlinkat): Add prototype.
25502         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
25503         (openat_restore_fail): Rename from openat_restore_die.
25504         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
25505
25506         Provide an alternative to exiting immediately upon save_cwd or
25507         restore_cwd failure.  Now, an application can arrange e.g.,
25508         to perform a longjump in that case.
25509         * lib/openat.c: Include dirname.h.
25510         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
25511         (rpl_openat, fdopendir, fstatat): Call openat_save_die
25512         and openat_restore_die rather than calling error directly.
25513         Don't include "error.h" or "exitfail.h"; they're no longer needed.
25514
25515         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
25516         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
25517         define.
25518
25519         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
25520         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
25521                             int utc, int nanoseconds);
25522         Background:
25523         date should not have to allocate a megabyte of virtual memory to
25524         handle a format argument like +%1048575T.  When implemented with
25525         strftime, it must allocate such a buffer, use strftime to fill it
25526         in, print it, then free it.
25527         With fprintftime, it simply prints everything and exits.
25528         With no need for memory allocation, that's one fewer way to fail.
25529         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
25530         optional field width, not before, so we accept %9:z, not %:9z.
25531         (my_strftime): Be sure to use L_('x') for literals.
25532
25533         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
25534         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
25535         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
25536         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
25537         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
25538         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
25539         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
25540         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
25541         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
25542         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
25543         * lib/xgethostname.c, lib/xreadlink.c:
25544         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
25545
25546         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
25547         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
25548         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
25549         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
25550         and don't include <sys/file.h>).
25551
25552 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
25553
25554         Sync from coreutils.
25555
25556         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
25557         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
25558         [!LDAV_DONE]: Avoid unused variable warning.
25559
25560 2005-09-21  Bruno Haible  <bruno@clisp.org>
25561
25562         * lib/unicodeio.h (unicode_to_mb): New declaration.
25563
25564 2005-09-20  Derek Price  <derek@ximbiot.com>
25565
25566         * lib/getaddrinfo.c: Don't include <netdb.h> included from
25567         getaddrinfo.h.
25568
25569 2005-09-20  Bruno Haible  <bruno@clisp.org>
25570
25571         * gnulib-tool: Remove trailing slashes from the values specified for
25572         --source-base, --m4-base, --tests-base, --aux-dir.
25573         Suggested by Simon Josefsson <jas@extundo.com>.
25574
25575 2005-09-20  Bruno Haible  <bruno@clisp.org>
25576
25577         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
25578         func_modules_to_filelist, func_import, func_create_testdir): Make all
25579         sorting results locale-independent, so that gnulib-cache.m4 doesn't
25580         change when gnulib-tool is invoked in a different locale.
25581
25582 2005-09-19  Simon Josefsson  <jas@extundo.com>
25583
25584         * m4/socklen.m4: Fix typo.
25585
25586 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25587
25588         Use a consistent style for including <config.h>.
25589         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
25590         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
25591         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
25592         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
25593         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
25594         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
25595         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
25596         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
25597         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
25598         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
25599         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
25600         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
25601         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
25602         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
25603         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
25604         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
25605         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
25606         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
25607         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
25608         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
25609         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
25610         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
25611         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
25612         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
25613         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
25614         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
25615         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
25616         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
25617         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
25618         lib/xstrtoumax.c, lib/yesno.c:
25619         Standardize inclusion of config.h.
25620         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
25621         lib/inttostr.h:  Removed inclusion of config.h from header files.
25622         * lib/inttostr.c:  Adjusted in-tree users.
25623         * lib/timespec.h: Remove superfluous warning to include config.h.
25624         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
25625         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
25626         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
25627         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
25628         config.h with HAVE_CONFIG_H.
25629
25630 2005-09-19  Jim Meyering  <jim@meyering.net>
25631
25632         * modules/pathmax (License): Change to LGPL.
25633
25634 2005-09-19  Derek Price  <derek@ximbiot.com>
25635
25636         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
25637
25638 2005-09-19  Bruno Haible  <bruno@clisp.org>
25639
25640         * gnulib-tool (import): Provide default for --tests-base.
25641
25642 2005-09-19  Bruno Haible  <bruno@clisp.org>
25643
25644         * doc/quote.texi: New file, extracted from gnulib.texi.
25645         * doc/ctime.texi: New file, extracted from gnulib.texi.
25646         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
25647         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
25648         * doc/gnulib.texi: Include them.
25649
25650 2005-09-18  Bruno Haible  <bruno@clisp.org>
25651
25652         Portability fix.
25653         * gnulib-tool (func_readlink): New function.
25654         (func_ln_if_changed): Use it.
25655
25656 2005-09-18  Bruno Haible  <bruno@clisp.org>
25657
25658         * gnulib-tool: Support --with-tests also with --import.
25659         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
25660         (func_import): Use variables $testsbase and $inctests. Emit a
25661         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
25662         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
25663         SUBDIRS += $testsdir.
25664         (func_create_testdir): Update.
25665
25666 2005-09-18  Bruno Haible  <bruno@clisp.org>
25667
25668         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
25669         instead of $dry_run.
25670         (func_cp_if_changed, func_mv_if_changed): Remove functions.
25671         (func_ln_if_changed): Don't handle dry-run here.
25672         (func_import): In dry-run mode, detect more precisely which actions
25673         would be performed, and don't use "...ing" verbs.
25674
25675 2005-09-18  Bruno Haible  <bruno@clisp.org>
25676
25677         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
25678         (func_import): Use join on two temporary files instead of three nested
25679         loops, in order to determine which files are new or old.
25680
25681 2005-09-18  Bruno Haible  <bruno@clisp.org>
25682
25683         * gnulib-tool (func_import): Comment out code that spits out the
25684         new files with --dry-run.
25685
25686 2005-09-18  Bruno Haible  <bruno@clisp.org>
25687
25688         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
25689
25690 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
25691
25692         * lib/stat-time.h: New file.
25693         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
25694         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
25695         in a different way.
25696         (timespec_cmp): New function.
25697         * lib/utimecmp.c: Include stat-time.h.
25698         (SYSCALL_RESOLUTION): Depend on whether various struct stat
25699         members exist, not on the obsolescent ST_MTIM_NSEC.
25700         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
25701
25702 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
25703
25704         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
25705
25706 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
25707
25708         * MODULES.html.sh (File system functions): Add stat-time.
25709         * modules/stat-time: New file.
25710         * modules/timespec (Files): Remove m4/st_mtim.m4; this
25711         is now done in a different way, by the stat-time module.
25712         * modules/utimecmp (Depends-on): Add stat-time.
25713
25714 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
25715
25716         * m4/st_mtim.m4: Remove.  Superseded by...
25717         * m4/stat-time.m4: New file.
25718         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
25719         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
25720
25721 2005-09-15  Derek Price  <derek@ximbiot.com>
25722
25723         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
25724
25725 2005-09-15  Derek Price  <derek@ximbiot.com>
25726
25727         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
25728         * lib/regex_internal.c: Ditto, using this...
25729         (__GNUC_PREREQ): ...new macro.
25730         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
25731         using...
25732         (__GNUC_PREREQ): ...this new macro.
25733
25734         * lib/strstr.h: Include string.h. Define strstr as a macro here.
25735
25736 2005-09-15  Derek Price  <derek@ximbiot.com>
25737             Paul Eggert  <eggert@cs.ucla.edu>
25738
25739         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
25740         changes, consolidating in...
25741         * lib/regex_internal.h: ...this file.
25742
25743 2005-09-13  Jim Meyering  <jim@meyering.net>
25744
25745         * lib/canon-host.c: Filter through gnu indent and reword comments
25746         slightly.
25747         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
25748
25749 2005-09-13  Derek Price  <derek@ximbiot.com>
25750
25751         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
25752         failure.
25753         Reported by Jim Meyering  <jim@meyering.net>.
25754
25755 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
25756
25757         * lib/base64.c: Typo.
25758         (base64_encode): Put b64str in initialized data section.
25759
25760 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
25761
25762         Merge glibc and coreutils changes into gnulib, plus a few
25763         extra fixes.
25764         * lib/md5.c: Use #error rather than a string.
25765         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
25766         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
25767         (__attribute__): Define to empty for non recent-GCC.
25768         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
25769         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
25770         Renamed from their non-__ counterparts, with new macros replacing
25771         them if not _LIBC.  Add __THROW attribute.
25772         (rol): Remove.
25773         (struct md5_ctx): Align buffer if using GCC.
25774         * lib/sha1.h (struct sha1_ctx): Likewise.
25775         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
25776         The old name was backwards.
25777         (NOTSWAP): Remove; not used.
25778         (rol): New macro, moved here from md5.h.
25779         (sha1_process_block): Remove a FIXME that doesn't make sense.
25780
25781 2005-09-12  Derek Price  <derek@ximbiot.com>
25782
25783         Return usable errors from canon-host.
25784         * lib/canon-host.h: New file.
25785         * lib/canon-host.c (canon_host): Wrap...
25786         (canon_host_r): ...this new function, which now relies exclusively on
25787         getaddrinfo.
25788         (ch_strerror): New function.
25789         (last_cherror): New global.
25790         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
25791         interface.
25792         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
25793         void *.
25794         (freeaddrinfo): Free ai->ai_canonname when set.
25795
25796 2005-09-12  Derek Price  <derek@ximbiot.com>
25797
25798         Make canon-host require getaddrinfo.
25799         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
25800         AC_LIBSOURCE canon-host.h.  Call...
25801         (gl_PREREQ_CANON_HOST): ...this new function, which requires
25802         gl_GETADDRINFO.
25803         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
25804
25805 2005-09-12  Derek Price  <derek@ximbiot.com>
25806
25807         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
25808         LGPL.
25809         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
25810
25811 2005-09-12  Derek Price  <derek@ximbiot.com>
25812
25813         * lib/gai_strerror.c: Include config.h when available.  Include
25814         getaddrinfo.h before other headers to test interface.
25815         Reported by Larry Jones <lawrence.jones@ugs.com>.
25816
25817 2005-09-12  Derek Price  <derek@ximbiot.com>
25818             Paul Eggert  <eggert@cs.ucla.edu>
25819
25820         * modules/glob (Files): Add glob-libc.h.
25821
25822 2005-09-12  Derek Price  <derek@ximbiot.com>
25823             Paul Eggert  <eggert@cs.ucla.edu>
25824
25825         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
25826         glob_.h, glob-libc.h.
25827         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
25828
25829 2005-09-12  Derek Price  <derek@ximbiot.com>
25830             Paul Eggert  <eggert@cs.ucla.edu>
25831
25832         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
25833         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
25834         protecting things that should be done only in gnulib contexts.
25835         * lib/glob_.h: New file, containing only the glob things needed for
25836         gnulib.
25837         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
25838         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
25839         (glob, globfree, glob_pattern_p): Now defined simply in terms of
25840         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
25841         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
25842         and to respect the namespace rules better.
25843
25844 2005-09-08  Simon Josefsson  <jas@extundo.com>
25845
25846         * modules/socklen: New file.
25847
25848 2005-09-08  Simon Josefsson  <jas@extundo.com>
25849
25850         * m4/socklen.m4: New file.
25851
25852 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
25853
25854         * modules/utimens (Files): Add m4/utimbuf.m4, since
25855         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
25856         Reported by Sergey Poznyakoff.
25857
25858 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
25859
25860         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
25861         definitions, since that's the preferred style in glibc.
25862         Fix a minor spacing issue, and update copyright notice to match
25863         glibc's.
25864
25865 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
25866
25867         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
25868
25869 2005-09-06  Simon Josefsson  <jas@extundo.com>
25870
25871         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
25872         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
25873
25874 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
25875
25876         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
25877         warning.
25878
25879 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
25880
25881         * config/srclist.txt: Add glibc bug 1302.
25882
25883 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
25884
25885         Change bitset word type from unsigned int to unsigned long int,
25886         as this has better performance on typical 64-bit hosts.
25887         Port bitset code to hosts with unusual word sizes.
25888         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
25889         (build_collating_symbol):
25890         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
25891         argument is a bitset.  This is merely a style issue, but it makes
25892         it clearer that an entire array is expected.
25893         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
25894         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
25895         Port to the case where bitset_word is not the same as unsigned int.
25896         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
25897         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
25898         Likewise.
25899         * lib/regexec.c (check_dst_limits_calc_pos_1,
25900         check_subexp_matching_top):
25901         (build_trtable, group_nodes_into_DFAstates):
25902         Likewise.
25903         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
25904         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
25905         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
25906         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
25907         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
25908         * lib/regcomp.c (optimize_subexps, lower_subexp):
25909         Work even if bitset_word has holes in its bitwise representation.
25910         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
25911         * lib/regexec.c (check_dst_limits_calc_pos_1,
25912         check_subexp_matching_top):
25913         Likewise.
25914         * lib/regex_internal.c (re_string_reconstruct):
25915         Don't assume UCHAR_MAX == 255.
25916         * lib/regex_internal.h (bitset_set_all): Likewise.
25917         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
25918         All uses changed.
25919         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
25920         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
25921         All uses changed.
25922         (BITSET_WORD_MAX): New macro.
25923         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
25924         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
25925         (bitset_empty, bitset_copy):
25926         Prefer sizeof (bitset) to multiplying it out ourselves.
25927         (bitset_not_merge): Remove; unused.
25928         (bitset_contain): Return bool, not unsigned int with one bit on.
25929         All callers changed.
25930         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
25931         alignment than re_node_set; do this by defining a new internal
25932         type struct dests_alloc and using it to allocate memory.
25933
25934 2005-09-05  Bruno Haible  <bruno@clisp.org>
25935
25936         * gnulib-tool (func_import): Fix comparison in handling of symbolic
25937         links.
25938
25939 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
25940
25941         * modules/size_max (Makefile.am): Add size_max.h
25942
25943 2005-09-04  Derek Price  <derek@ximbiot.com>
25944
25945         * gnulib-tool (func_import): Fix reversed $symbolic logic.
25946
25947 2005-09-03  Simon Josefsson  <jas@extundo.com>
25948
25949         * gnulib-tool: Fix typo.
25950
25951 2005-09-03  Simon Josefsson  <jas@extundo.com>
25952
25953         * config/srclist.txt: Add glibc bug 1293.
25954
25955 2005-09-03  Derek Price  <derek@ximbiot.com>
25956
25957         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
25958         From Larry Jones <lawrence.jones@ugs.com>.
25959
25960 2005-09-02  Simon Josefsson  <jas@extundo.com>
25961
25962         * modules/socklen: New file.
25963
25964 2005-09-02  Simon Josefsson  <jas@extundo.com>
25965
25966         * modules/havelib: New module.
25967
25968         * modules/gettext, modules/iconv, modules/lock, modules/readline:
25969         Use havelib.
25970
25971 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
25972
25973         Check for arithmetic overflow when calculating sizes, to prevent
25974         some buffer-overflow issues.  These patches are conservative, in the
25975         sense that when I couldn't determine whether an overflow was possible,
25976         I inserted a run-time check.
25977         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
25978         macros.
25979         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
25980         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
25981         (re_xnrealloc, re_x2nrealloc): New inline functions.
25982         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
25983         parse_bracket_exp):
25984         (build_equiv_class, build_charclass): Check for arithmetic overflow
25985         in size expression calculations.
25986         * lib/regex_internal.c (re_string_realloc_buffers):
25987         (build_wcs_upper_buffer, re_node_set_add_intersect):
25988         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
25989         (re_dfa_add_node, register_state): Likewise.
25990         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
25991         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
25992         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
25993         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
25994
25995 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
25996
25997         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
25998         m4/ulonglong.m4.  Problem reported by Martin Lambers.
25999
26000 2005-09-02  Bruno Haible  <bruno@clisp.org>
26001
26002         Support for lib vs. lib64 distinction on biarch platforms.
26003         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
26004         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
26005         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
26006
26007 2005-09-02  Bruno Haible  <bruno@clisp.org>
26008
26009         * gnulib-tool (import): In the other first-use case, provide defaults
26010         as well.
26011
26012 2005-09-02  Bruno Haible  <bruno@clisp.org>
26013
26014         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
26015         patches not yet found in the latest gettext release.
26016
26017 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26018
26019         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
26020         to avoid a collision with bits/local_lim.h in glibc.
26021         All uses changed.  Problem reported by Dmitry V. Levin in
26022         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
26023
26024         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
26025         bugs in int versus size_t comparisons.
26026         (re_string_context_at): Fix bug where the code assumed that
26027         Idx is signed.
26028
26029         Use bool where appropriate.
26030         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
26031         All callers changed.
26032         (calc_eclosure_iter): Likewise, for ROOT arg.
26033         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
26034         (build_charclass_op): Likewise, for NON_MATCH arg.
26035         * lib/regex_internal.c (re_string_allocate, re_string_construct):
26036         (re_string_construct_common): Likewise, for ICASE arg.
26037         * lib/regexec.c (re_search_2_stub, re_search_stub):
26038         Likewise, for RET_LEN arg.
26039         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
26040         (set_regs): Likewise, for FL_BACKTRACK arg.
26041         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
26042         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
26043         (calc_eclosure_iter, parse_bracket_exp):
26044         Use bool for internal variables that are booleans.
26045         * lib/regexec.c (re_search_internal, check_matching,
26046         proceed_next_node):
26047         (set_regs, build_sifted_states, sift_states_bkref):
26048         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
26049         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
26050         (find_collation_sequence_value):
26051         Likewise.
26052         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
26053         (re_node_set_compare):
26054         Return bool, not int. All callers changed.
26055         * lib/regexec.c (check_halt_node_context, check_dst_limits):
26056         (build_trtable, check_node_accept): Likewise.
26057         * lib/regex_internal.h: Include stdbool.h.
26058
26059         Fix bugs uncovered when converting to bool.
26060         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
26061         failure instead of charging ahead blindly.
26062         * lib/regex_internal.c (register_state): Likewise.
26063         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
26064         for freeing internal storage.
26065         (group_nodes_into_DFA_states): Use unsigned int, not int, for
26066         bitset pieces used as boolean, to avoid undefined behavior
26067         on hosts that do int overflow checking.
26068
26069 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26070
26071         * config/srclist.txt: Add glibc bugs 1285-1287.
26072
26073 2005-09-01  Jim Meyering  <jim@meyering.net>
26074
26075         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
26076         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
26077         Require gl_STAT_MACROS, too.
26078
26079 2005-09-01  Bruno Haible  <bruno@clisp.org>
26080
26081         * gnulib-tool (import): In the first-use case, provide defaults.
26082
26083 2005-09-01  Bruno Haible  <bruno@clisp.org>
26084
26085         * gnulib-tool (func_import): Remove the .tmp files.
26086
26087 2005-09-01  Bruno Haible  <bruno@clisp.org>
26088
26089         * gnulib-tool (func_import): Fix handling of symbolic links.
26090
26091 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26092
26093         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
26094         old glibc regex code mishandles strings longer than 2**31 bytes.
26095         This patch fixes this when the regex code is used in gnulib
26096         (i.e., outside glibc).
26097
26098         This patch should not affect the use of the regex code inside
26099         glibc.  No doubt this problem also needs to be handled for glibc
26100         as well, but the result will be an incompatible change to the
26101         glibc ABI, and the old ABI will have to be supported too.  That
26102         can be the the subject for another patch.
26103
26104         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
26105         governing whether the rest of this patch is active.  By default,
26106         the macro is disabled and the patch has no effect.
26107         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
26108         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
26109         (struct re_pattern_buffer, re_search, re_search_2, re_match):
26110         (re_match_2, re_set_registers): Use the new types.
26111         * lib/regex_internal.h (Idx, re_hashval_t): New types.
26112         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
26113         New macros.
26114         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
26115         (re_string_context_at, bin_tree_t, re_dfastate_t):
26116         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
26117         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
26118         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
26119         (re_string_char_size_at, re_string_wchar_at):
26120         (re_string_elem_size_at):
26121         Use the new types and macros to port to 64-bit hosts.
26122         Use unsigned types for internal values, so that the code
26123         mostly works even for arrays larger than SSIZE_MAX.
26124         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
26125         (search_duplicated_node, calc_eclosure_iter, fetch_number):
26126         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
26127         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
26128         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
26129         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
26130         (calc_inveclosure, parse_dup_op, build_range_exp):
26131         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
26132         (fetch_number, create_token_tree, mark_opt_subexp):
26133         Likewise.
26134         * lib/regex_internal.c (re_string_construct_common,
26135         create_ci_newstate):
26136         (create_cd_newstate, re_string_allocate, re_string_construct):
26137         (re_string_realloc_buffers, build_wcs_upper_buffer):
26138         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
26139         (re_string_reconstruct, re_string_peek_byte_case):
26140         (re_string_fetch_byte_case, re_string_context_at):
26141         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
26142         (re_node_set_init_copy, re_node_set_add_intersect):
26143         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
26144         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
26145         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
26146         (re_acquire_state, re_acquire_state_context, register_state):
26147         Likewise.
26148         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
26149         search_cur_bkref_entry):
26150         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
26151         (re_search_internal, re_search_2_stub, re_search_stub)
26152         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
26153         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
26154         (update_cur_sifted_state, check_dst_limits):
26155         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
26156         (check_subexp_limits, sift_states_bkref, merge_state_array):
26157         (check_subexp_matching_top, get_subexp, get_subexp_sub):
26158         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
26159         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
26160         (expand_bkref_cache, check_node_accept_bytes):
26161         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
26162         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
26163         (acquire_init_state_context, check_halt_node_context):
26164         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
26165         (sift_states_backward, clean_state_log_if_needed):
26166         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
26167         (find_recover_state, transit_state_sb, transit_state_mb):
26168         (transit_state_bkref, build_trtable, match_ctx_clean):
26169         Likewise.
26170         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
26171         to work around an assumption that REG_MISSING is negative.
26172
26173         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
26174         (seek_collating_symbol_entry) [defined _LIBC]:
26175         (lookup_collation_sequence_value) [defined _LIBC]:
26176         (build_range_exp, build_collating_symbol) [defined _LIBC]:
26177         Use prototypes rather than old-style function definitions.
26178         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
26179         (transit_state_sb) [0]:
26180         (find_collation_sequence_value) [defined _LIBC]: Likewise.
26181
26182         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
26183         rm_eo.
26184
26185         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
26186         (optimize_subexps, lower_subexp):
26187         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
26188         since the signed shift might overflow.  Use 1u<<31 instead.
26189         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
26190         Likewise.
26191         * lib/regexec.c (check_dst_limits_calc_pos_1,
26192         check_subexp_matching_top): Likewise.
26193
26194         * lib/regcomp.c (optimize_subexps, lower_subexp):
26195         Use CHAR_BIT rather than 8, for clarity.
26196         * lib/regexec.c (check_dst_limits_calc_pos_1):
26197         (check_subexp_matching_top): Likewise.
26198         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
26199         have to worry about portability issues when shifting it left.
26200         Remove no-longer-needed test for table_size > 0.
26201         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
26202         in a word, as the resulting behavior is undefined.
26203         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
26204         in one case, a <= should have been an <, and in another case the
26205         whole test was missing.
26206         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
26207         the standard name CHAR_BIT.
26208         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
26209         this is not true on one's complement and signed-magnitude hosts.
26210
26211         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
26212         next_last_offset.
26213         (struct re_dfa_t): Remove unused member states_alloc.
26214         * lib/regcomp.c (init_dfa): Don't initialize unused members.
26215
26216 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26217
26218         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
26219         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
26220         and large-file glibc and in 32-bit large-file Solaris.
26221
26222 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26223
26224         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
26225         lengths fit in regoff_t; this isn't true if regoff_t is the same
26226         width as size_t.
26227         * lib/regex.c (re_search_internal): 5th arg is LAST_START
26228         (= START + RANGE) instead of RANGE.  This avoids overflow
26229         problems when regoff_t is the same width as size_t.
26230         All callers changed.
26231         (re_search_2_stub): Check for overflow when adding the
26232         sizes of the two strings.
26233         (re_search_stub): Check for overflow when adding START
26234         to RANGE; if it occurs, substitute the extreme value.
26235
26236 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26237
26238         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
26239
26240 2005-08-31  Jim Meyering  <jim@meyering.net>
26241
26242         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
26243         a pointer-to-const.
26244         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
26245         (register_state): Likewise.
26246         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
26247         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
26248         (group_nodes_into_DFAstates): Likewise.
26249
26250 2005-08-31  Jim Meyering  <jim@meyering.net>
26251
26252         * check-module: Add a FIXME comment.
26253
26254 2005-08-31  Eric Blake  <ebb9@byu.net>
26255
26256         * modules/unistd-safer (Files): Add unistd--.h.
26257         * modules/stdio-safer (Files): Add stdio--.h.
26258
26259 2005-08-31  Derek Price  <derek@ximbiot.com>
26260
26261         * lib/getdelim.c (getdelim): Return EOF on EOF.
26262         Reported by Larry Jones <lawrence.jones@ugs.com>.
26263
26264 2005-08-31  Bruno Haible  <bruno@clisp.org>
26265
26266         Avoid unnecessary diffs in the generated lib/Makefile.am.
26267         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
26268         the generated files.
26269         (func_import): Don't set cmd.
26270
26271 2005-08-31  Bruno Haible  <bruno@clisp.org>
26272
26273         * lib/strstr.c: Include <stddef.h>, for NULL.
26274         * lib/strcasestr.c: Likewise.
26275         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26276
26277 2005-08-31  Bruno Haible  <bruno@clisp.org>
26278
26279         * gnulib-tool: New option --macro-prefix.
26280         (func_import): Use macro_prefix.
26281         (import): Handle option --macro-prefix.
26282
26283 2005-08-31  Bruno Haible  <bruno@clisp.org>
26284
26285         * gnulib-tool (import): Rename most ac_* variables to cached_*.
26286         Also use new variables cached_lgpl, cached_libtool.
26287
26288 2005-08-31  Bruno Haible  <bruno@clisp.org>
26289
26290         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
26291         always instantiating them.
26292
26293 2005-08-31  Bruno Haible  <bruno@clisp.org>
26294
26295         * gnulib-tool (func_import): Read the previous cached settings
26296         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
26297         earlier added by gnulib but are now dropped. Warn when a gnulib file
26298         overwrites a non-gnulib file.
26299
26300 2005-08-31  Bruno Haible  <bruno@clisp.org>
26301
26302         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
26303         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
26304         projects that don't keep autogenerated files in CVS. Put into
26305         actioncmd only the specified modules, not the transitive closure.
26306
26307 2005-08-31  Bruno Haible  <bruno@clisp.org>
26308
26309         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
26310         Create directories that shall be filled.
26311         (import): Don't look for gl_* macros in configure.ac. Recurse across
26312         all directories containing a gnulib-cache.m4 files, if meaningful.
26313
26314 2005-08-31  Bruno Haible  <bruno@clisp.org>
26315
26316         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
26317         (import): Set seen_libtool when we see gl_LIBTOOL.
26318
26319 2005-08-31  Bruno Haible  <bruno@clisp.org>
26320
26321         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
26322         declaration macro definitions from generated gnulib.m4.
26323
26324 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
26325
26326         * lib/iconvme.h: Add prototype for iconv_alloc.
26327
26328 2005-08-29  Simon Josefsson  <jas@extundo.com>
26329
26330         * lib/iconvme.c: Fix errno.
26331
26332 2005-08-29  Bruno Haible  <bruno@clisp.org>
26333
26334         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
26335         that it works when the directory contains spaces.
26336
26337 2005-08-29  Bruno Haible  <bruno@clisp.org>
26338
26339         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
26340
26341 2005-08-29  Bruno Haible  <bruno@clisp.org>
26342
26343         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
26344         Emit more advice.
26345
26346 2005-08-29  Bruno Haible  <bruno@clisp.org>
26347         and Stepan Kasal  <kasal@ucw.cz>
26348
26349         * check-module: If more parameters are given, check each of them
26350         separately; add more exceptions, as noted by Jim Meyering.
26351         (check_module): New procedure.
26352         (%exempt_header): Now contains all exceptions.
26353
26354 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
26355
26356         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
26357
26358 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
26359
26360         * lib/iconvme.c: Split iconv_string into iconv_alloc.
26361
26362 2005-08-28  Bruno Haible  <bruno@clisp.org>
26363
26364         * m4/gnulib-tool.m4: New file.
26365
26366 2005-08-27  Jim Meyering  <jim@meyering.net>
26367
26368         * modules/unistd-safer (Files): Add pipe-safer.c.
26369         * modules/fcntl-safer (Files): Add creat-safer.c.
26370
26371 2005-08-27  Jim Meyering  <jim@meyering.net>
26372
26373         * m4/stdlib-safer.m4: New file.  From coreutils.
26374         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
26375         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
26376         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
26377         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
26378         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
26379
26380 2005-08-27  Jim Meyering  <jim@meyering.net>
26381
26382         * lib/fopen-safer.c: Merge minor changes from coreutils.
26383         * lib/dup-safer.c: Likewise.
26384         * lib/fd-safer.c: Likewise.
26385
26386         Merge from coreutils.
26387         * lib/stdio--.h: New file.
26388         * lib/stdlib--.h: New file.
26389         * lib/mkstemp-safer.c: New file.
26390
26391         GNU tar needs these.
26392         * lib/pipe-safer.c: New file.
26393         * lib/creat-safer.c: New file.
26394         * lib/fcntl--.h (creat): Define to creat_safer.
26395         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
26396         * lib/unistd--.h (pipe): Define to pipe_safer.
26397         * lib/unistd-safer.h: Declare pipe_safer.
26398
26399 2005-08-26  Simon Josefsson  <jas@extundo.com>
26400
26401         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
26402         Haible <bruno@clisp.org>.
26403
26404 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
26405
26406         * lib/regex_internal.h: Remove all references to
26407         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
26408         or better.
26409         (bitset_not, bitset_merge, bitset_not_merge):
26410         (bitset_mask, re_string_allocate, re_string_construct):
26411         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
26412         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
26413         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
26414         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
26415         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
26416         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
26417         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
26418         (re_acquire_state_context):
26419         Remove unnecessary forward decls.
26420         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
26421         Put __attribute at function definition,
26422         now that the function decl has been removed.
26423         * lib/regex_internal.c (re_string_peek_byte_case):
26424         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
26425         Likewise.
26426
26427 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
26428
26429         * m4/regex.m4: Add AC_PREREQ(2.50).
26430         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
26431
26432 2005-08-25  Simon Josefsson  <jas@extundo.com>
26433
26434         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
26435         __fsetlocking.
26436
26437 2005-08-25  Simon Josefsson  <jas@extundo.com>
26438
26439         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
26440         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
26441         GLIBC specific code.
26442
26443 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
26444
26445         Make regex safe for g++.  This fixes one real bug (an "err"
26446         that should have been "*err").  g++ problem reported by
26447         Sam Steingold.
26448         * lib/regex_internal.h (re_calloc): New macro, consistent with
26449         re_malloc etc.  All callers of calloc changed to use re_calloc.
26450         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
26451         not int.  All callers changed.
26452         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
26453         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
26454         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
26455         (find_recover_state): Change "err" to "*err"; this fixes what
26456         appears to be a real bug.
26457         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
26458         versus int.
26459
26460 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
26461
26462         * modules/regex (Depends-on): Add malloc, since the code
26463         assumes that !malloc(0) means failure.
26464
26465 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
26466
26467         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
26468
26469         alloca modernization/simplification for regex.
26470         * lib/regex.c: Remove portability cruft for alloca.  This no longer
26471         needs to be at the start of the file, and can be moved into
26472         regex_internal.h and simplified.
26473         * lib/regex_internal.h: Include <alloca.h>.
26474         (__libc_use_alloca) [!defined _LIBC]: New macro.
26475         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
26476         now works outside glibc.
26477
26478 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
26479
26480         * config/srclist.txt: Add glibc bugs 1241, 1245.
26481
26482 2005-08-25  Jim Meyering  <jim@meyering.net>
26483
26484         * lib/open-safer.c: Include <config.h>.
26485         Otherwise, we'd lose LARGEFILE support in any file using
26486         e.g. "fcntl--.h"
26487
26488 2005-08-25  Bruno Haible  <bruno@clisp.org>
26489
26490         * m4/minmax.m4: Require autoconf 2.52.
26491         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
26492         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
26493         alternatives of translit over the alphabet.
26494         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
26495
26496 2005-08-24  Simon Josefsson  <jas@extundo.com>
26497
26498         * tests/test-getpass.c: New file.
26499
26500 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26501
26502         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
26503         for GNU regex features.
26504
26505 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26506
26507         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
26508         * lib/regex.h (regerror): Likewise.
26509
26510         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
26511         requires this.  (The code never needed it.)
26512
26513         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
26514         All uses of recently-renamed identifiers changed to use the new,
26515         POSIX-compliant names.  The code will build and run just fine
26516         without these changes, but it's better to eat our own dog food
26517         and use the standard-conforming names.
26518
26519         * lib/regex.h: Fix a multitude of POSIX name space violations.
26520         These changes have an effect only for programs that define
26521         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
26522         do not change anything for programs compiled in the normal way.
26523         Also, there is no effect on the ABI.
26524
26525         (_REGEX_SOURCE): New macro.
26526         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
26527         defined and _GNU_SOURCE is not; this fixes a name space violation.
26528
26529         Rename the following macros to obey POSIX requirements.
26530         The old names are still visible as macros if _REGEX_SOURCE is defined.
26531         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
26532         RE_BACKSLASH_ESCAPE_IN_LISTS.
26533         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
26534         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
26535         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
26536         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
26537         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
26538         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
26539         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
26540         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
26541         (REG_INTERVALS): renamed from RE_INTERVALS.
26542         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
26543         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
26544         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
26545         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
26546         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
26547         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
26548         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
26549         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
26550         RE_UNMATCHED_RIGHT_PAREN_ORD.
26551         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
26552         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
26553         (REG_DEBUG): renamed from RE_DEBUG.
26554         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
26555         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
26556         unusual, since we can't clash with the POSIX REG_ICASE.
26557         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
26558         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
26559         (REG_NO_SUB): renamed from RE_NO_SUB.
26560         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
26561         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
26562         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
26563         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
26564         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
26565         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
26566         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
26567         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
26568         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
26569         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
26570         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
26571         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
26572         RE_SYNTAX_POSIX_MINIMAL_BASIC.
26573         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
26574         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
26575         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
26576         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
26577         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
26578         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
26579         (REG_FIXED): Renamed from REGS_FIXED.
26580         (REG_NREGS): Renamed from RE_NREGS.
26581
26582         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
26583         of other REG_* macros, since POSIX says the user is allowed to
26584         #undef these macros selectively.
26585
26586         (reg_errcode_t): Update comment stating what other tables need
26587         to be consistent.
26588
26589         Rename the following enum values to obey POSIX requirements.
26590         The old names are still visible as macros.
26591         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
26592         is not defined, since GNU is supposed to be a superset of POSIX as
26593         much as possible, and since we want reg_errcode_t to be a signed
26594         type for implementation consistency.
26595         (_REG_NOERROR): Renamed from REG_NOERROR.
26596         (_REG_NOMATCH): Renamed from REG_NOMATCH.
26597         (_REG_BADPAT): Renamed from REG_BADPAT.
26598         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
26599         (_REG_ECTYPE): Renamed from REG_ECTYPE.
26600         (_REG_EESCAPE): Renamed from REG_EESCAPE.
26601         (_REG_ESUBREG): Renamed from REG_ESUBREG.
26602         (_REG_EBRACK): Renamed from REG_EBRACK.
26603         (_REG_EPAREN): Renamed from REG_EPAREN.
26604         (_REG_EBRACE): Renamed from REG_EBRACE.
26605         (_REG_BADBR): Renamed from REG_BADBR.
26606         (_REG_ERANGE): Renamed from REG_ERANGE.
26607         (_REG_ESPACE): Renamed from REG_ESPACE.
26608         (_REG_BADRPT): Renamed from REG_BADRPT.
26609         (_REG_EEND): Renamed from REG_EEND.
26610         (_REG_ESIZE): Renamed from REG_ESIZE.
26611         (_REG_ERPAREN): Renamed from REG_ERPAREN.
26612         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
26613         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
26614         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
26615         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
26616
26617         (_REG_RE_NAME, _REG_RM_NAME): New macros.
26618         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
26619         changed.  But support the old name if the new one is not defined
26620         and if _REGEX_SOURCE.
26621
26622         Change the following member names in struct re_pattern_buffer.
26623         The old names are still supported if !_REGEX_SOURCE.
26624         The new names are always supported, regardless of _REGEX_SOURCE.
26625         (re_buffer): Renamed from buffer.
26626         (re_allocated): Renamed from allocated.
26627         (re_used): Renamed from used.
26628         (re_syntax): Renamed from syntax.
26629         (re_fastmap): Renamed from fastmap.
26630         (re_translate): Renamed from translate.
26631         (re_can_be_null): Renamed from can_be_null.
26632         (re_regs_allocated): Renamed from regs_allocated.
26633         (re_fastmap_accurate): Renamed from fastmap_accurate.
26634         (re_no_sub): Renamed from no_sub.
26635         (re_not_bol): Renamed from not_bol.
26636         (re_not_eol): Renamed from not_eol.
26637         (re_newline_anchor): Renamed from newline_anchor.
26638
26639         Change the following member names in struct re_registers.
26640         The old names are still supported if !_REGEX_SOURCE.
26641         The new names are always supported, regardless of _REGEX_SOURCE.
26642         (rm_num_regs): Renamed from num_regs.
26643         (rm_start): Renamed from start.
26644         (rm_end): Renamed from end.
26645
26646         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
26647         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
26648         Prepend __ to parameter names.
26649
26650         Undo yesterday's changes.
26651
26652 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26653
26654         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
26655         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
26656         lib/regex.c.
26657
26658 2005-08-24  Jim Meyering  <jim@meyering.net>
26659
26660         Sync from coreutils.
26661         * m4/fcntl-safer.m4: New file.
26662
26663         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
26664         and object files for this module.
26665
26666 2005-08-24  Jim Meyering  <jim@meyering.net>
26667
26668         Sync from coreutils.
26669         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
26670
26671 2005-08-24  Jim Meyering  <jim@meyering.net>
26672
26673         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
26674         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
26675
26676 2005-08-24  Jim Meyering  <jim@meyering.net>
26677
26678         * modules/fcntl-safer: New module.
26679         * modules/fts (Depends-on): Add fcntl-safer.
26680         * MODULES.html.sh (File descriptor based Input/Output):
26681         Add fcntl-safer.
26682
26683 2005-08-24  Bruno Haible  <bruno@clisp.org>
26684
26685         Support for unit test modules.
26686         * modules/README: Mention tests modules.
26687         * modules/TEMPLATE-TESTS: New file.
26688         * gnulib-tool: New options --extract-tests-module, --with-tests and
26689         --tests-base (unused for the moment).
26690         (testsbase, inctests): New variables.
26691         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
26692         (func_verify_module): Exclude TEMPLATE-TESTS.
26693         (func_verify_nontests_module, func_verify_tests_module): New functions.
26694         (func_get_dependencies): Add implicit dependency for tests modules.
26695         (func_get_tests_module): New function.
26696         (func_modules_transitive_closure): When --with-tests was specified,
26697         include the unit tests as well, unless explicitly avoided.
26698         (func_emit_lib_Makefile_am): Ignore the tests modules here.
26699         (func_emit_tests_Makefile_am): New function.
26700         (func_create_testdir): When --with-tests was specified, emit a
26701         tests/ directory.
26702         * MODULES.html.sh (Future developments): Update.
26703
26704 2005-08-24  Bruno Haible  <bruno@clisp.org>
26705
26706         * modules/tls-tests: New file.
26707         * tests/test-tls.c: New file, from GNU gettext.
26708
26709 2005-08-24  Bruno Haible  <bruno@clisp.org>
26710
26711         * modules/lock-tests: New file.
26712         * tests/test-lock.c: New file, from GNU gettext.
26713
26714 2005-08-24  Bruno Haible  <bruno@clisp.org>
26715
26716         * lib/lock.h: Add multiple inclusion guard.
26717         * lib/tls.h: Add multiple inclusion guard.
26718
26719 2005-08-24  Bruno Haible  <bruno@clisp.org>
26720
26721         * gnulib-tool: Add support for the --aux-dir option to
26722         --create-testdir, --create-megatestdir, --test, --megatest.
26723         (func_create_testdir, func_create_megatestdir): Optionally emit a
26724         AC_CONFIG_AUX_DIR directive.
26725         (create-testdir, create-megatestdir, test, megatest): Provide a
26726         default value for $auxdir.
26727
26728 2005-08-24  Bruno Haible  <bruno@clisp.org>
26729
26730         * gnulib-tool (import): Use compound statement instead of subshell
26731         where possible.
26732
26733 2005-08-24  Bruno Haible  <bruno@clisp.org>
26734
26735         * gnulib-tool (import): Change --aux-dir default to "build-aux".
26736
26737 2005-08-24  Bruno Haible  <bruno@clisp.org>
26738
26739         * gnulib-tool (func_version): Update.
26740
26741 2005-08-24  Bruno Haible  <bruno@clisp.org>
26742
26743         * gnulib-tool (func_import, func_create_testdir,
26744         func_create_megatestdir): Quote all autoconf macro arguments.
26745
26746 2005-08-24  Bruno Haible  <bruno@clisp.org>
26747
26748         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
26749         option --force, because --force causes the aclocal.m4 of each
26750         subdirectory to be newer than the corresponding config.h.in.
26751
26752 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26753
26754         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
26755         All contents moved to gl_REGEX.
26756         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
26757         assume that it does.
26758
26759 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26760
26761         * lib/regex.h (REG_NOSYS)
26762         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
26763         Define, since POSIX requires it as of 2001.
26764         (_REG_ENOSYS)
26765         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
26766         New private symbol, used to keep the enum signed in all cases.
26767         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
26768         Youngman in
26769         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
26770
26771         * lib/regex_internal.c (re_string_skip_chars, register_state):
26772         (calc_state_hash):
26773         Remove forward decls; no longer needed now that we use prototypes.
26774         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
26775         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
26776         (clean_state_log_if_needed): Likewise.
26777
26778 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26779
26780         * config/srclist.txt: Add glibc bugs 1231-1233.
26781
26782 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
26783
26784         Fix problems reported by Sam Steingold in
26785         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
26786         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
26787         assumed that reg_errcode_t is a signed type, which is not
26788         necessarily true if _XOPEN_SOURCE is not defined.
26789         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
26790         since some compilers warn about it otherwise.
26791
26792 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
26793
26794         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
26795         (init_word_char, create_initial_state, duplicate_node_closure):
26796         (fetch_token, peek_token_bracket, build_range_exp):
26797         (build_collating_symbol): Remove forward decls; no longer needed
26798         now that we use prototypes.
26799
26800         * lib/regcomp.c:
26801         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
26802         (re_compile_fastmap_iter, regcomp, regerror, regfree):
26803         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
26804         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
26805         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
26806         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
26807         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
26808         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
26809         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
26810         (build_range_exp, build_collating_symbol, parse_bracket_exp):
26811         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
26812         (build_charclass, build_charclass_op, fetch_number, create_tree):
26813         (create_token_tree, mark_opt_subexp, duplicate_tree):
26814         Use prototypes rather than old-style definitions.
26815
26816         * lib/regex_internal.c:
26817         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
26818         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
26819         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
26820         (re_string_reconstruct, re_string_peek_byte_case):
26821         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
26822         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
26823         (re_node_set_init_copy, re_node_set_add_intersect):
26824         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
26825         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
26826         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
26827         (re_acquire_state, re_acquire_state_context, register_state):
26828         (create_ci_newstate, create_cd_newstate, free_state):
26829         Likewise.
26830         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
26831         re_search_2):
26832         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
26833         (re_search_internal, prune_impossible_nodes):
26834         (acquire_init_state_context, check_matching, static):
26835         (check_halt_node_context, check_halt_state_context, proceed_next_node):
26836         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
26837         (update_regs, sift_states_backward, build_sifted_states):
26838         (clean_state_log_if_needed, merge_state_array):
26839         (update_cur_sifted_state, add_epsilon_src_nodes):
26840         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
26841         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
26842         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
26843         (find_recover_state, check_subexp_matching_top, transit_state_mb):
26844         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
26845         (check_arrival, check_arrival_add_next_nodes):
26846         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
26847         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
26848         (check_node_accept_bytes, check_node_accept, extend_buffers):
26849         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
26850         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
26851         (sift_ctx_init):
26852         Likewise.
26853
26854         * lib/regex_internal.h:
26855         (re_string_allocate, re_string_construct, re_string_reconstruct):
26856         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
26857         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
26858         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
26859         (re_string_context_at, re_string_peek_byte_case):
26860         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
26861         is defined, since we now use prototypes always.
26862
26863         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
26864         C89 or better.  All uses removed.
26865
26866 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
26867
26868         * config/srclist.txt: Add glibc bugs 1220-1227.
26869
26870 2005-08-20  Jim Meyering  <jim@meyering.net>
26871
26872         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
26873         of unused local, dfa.
26874
26875 2005-08-20  Bruno Haible  <bruno@clisp.org>
26876
26877         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
26878
26879 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
26880
26881         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
26882         (re_node_set_insert_last, re_dfa_add_node):
26883         Rename local variables to avoid GCC shadowing warnings.
26884
26885 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
26886
26887         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
26888         [defined lint]: Suppress bogus uninitialized-variable warnings.
26889
26890         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
26891         and let the caller return REG_ESPACE if out of space.  This
26892         removes an uninitialied-variable warning with GCC 4.0.1, and also
26893         avoids taking the address of a local variable.  All callers
26894         changed.
26895
26896 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
26897
26898         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
26899         $LIBCSRC/posix/regexec.c.
26900         Add glibc bug 1217 for regcomp.c.
26901
26902 2005-08-19  Jim Meyering  <jim@meyering.net>
26903
26904         * lib/regexec.c (proceed_next_node): Redo local variables to
26905         avoid GCC shadowing warnings.
26906
26907 2005-08-18  Bruno Haible  <bruno@clisp.org>
26908
26909         * lib/strstr.c (strstr): Fix return value in multibyte case.
26910         * lib/strcasestr.c (strcasestr): Likewise.
26911
26912 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
26913
26914         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
26915
26916 2005-08-17  Jim Meyering  <jim@meyering.net>
26917
26918         Make the %s format (seconds since the epoch) work for a negative
26919         number and when used with a zero-padded field width, e.g. %015s.
26920
26921         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
26922         label so that it precedes the code to set `digits'.  Otherwise,
26923         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
26924         print `00-22'.  Now, it prints `-0022', as it should.
26925
26926 2005-08-17  Bruno Haible  <bruno@clisp.org>
26927
26928         * modules/strstr (Files): Add m4/mbrtowc.m4.
26929         (Depends-on): Add mbuiter.
26930
26931 2005-08-17  Bruno Haible  <bruno@clisp.org>
26932
26933         * modules/strcasestr: New file.
26934         * MODULES.html.sh (String handling, based on ANSI C 89): Add
26935         strcasestr.
26936
26937 2005-08-17  Bruno Haible  <bruno@clisp.org>
26938
26939         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
26940
26941 2005-08-17  Bruno Haible  <bruno@clisp.org>
26942
26943         * modules/mbuiter: New file.
26944         * MODULES.html.sh (Extended multibyte and wide character utilities):
26945         Add mbuiter.
26946
26947 2005-08-17  Bruno Haible  <bruno@clisp.org>
26948
26949         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
26950         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
26951
26952 2005-08-17  Bruno Haible  <bruno@clisp.org>
26953
26954         * m4/strcasestr.m4: New file.
26955
26956 2005-08-17  Bruno Haible  <bruno@clisp.org>
26957
26958         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
26959         * lib/strstr.c: Completely rewritten, with multibyte locale support.
26960
26961 2005-08-17  Bruno Haible  <bruno@clisp.org>
26962
26963         * lib/strcasestr.h: New file.
26964         * lib/strcasestr.c: New file.
26965
26966 2005-08-17  Bruno Haible  <bruno@clisp.org>
26967
26968         * lib/strcasecmp.c: Use mbuiter.h.
26969
26970 2005-08-17  Bruno Haible  <bruno@clisp.org>
26971
26972         * lib/mbuiter.h: New file.
26973
26974 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
26975
26976         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
26977         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
26978         and gl_GETOPT are both invoked via different paths (as happens
26979         with GNU tar CVS because it uses both argp and getopt), the former
26980         wins.
26981
26982 2005-08-16  Bruno Haible  <bruno@clisp.org>
26983
26984         * modules/tls: New file.
26985         * MODULES.html.sh (Multithreading): Add tls.
26986
26987 2005-08-16  Bruno Haible  <bruno@clisp.org>
26988
26989         * modules/strnlen1: New file.
26990         * MODULES.html.sh (String handling): Add strnlen1.
26991
26992 2005-08-16  Bruno Haible  <bruno@clisp.org>
26993
26994         * modules/strcase (Files): Add m4/mbrtowc.m4.
26995         (Depends-on): Add strnlen1, mbchar.
26996
26997 2005-08-16  Bruno Haible  <bruno@clisp.org>
26998
26999         * modules/mbiter: New file.
27000         * MODULES.html.sh (Extended multibyte and wide character utilities):
27001         Add mbiter.
27002
27003 2005-08-16  Bruno Haible  <bruno@clisp.org>
27004
27005         * modules/mbfile: New file.
27006         * MODULES.html.sh (Extended multibyte and wide character utilities):
27007         Add mbfile.
27008
27009 2005-08-16  Bruno Haible  <bruno@clisp.org>
27010
27011         * modules/mbchar: New file.
27012         * MODULES.html.sh (Extended multibyte and wide character utilities):
27013         New section.
27014
27015 2005-08-16  Bruno Haible  <bruno@clisp.org>
27016
27017         * m4/tls.m4: New file, from GNU gettext.
27018
27019 2005-08-16  Bruno Haible  <bruno@clisp.org>
27020
27021         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
27022         always.
27023         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
27024
27025 2005-08-16  Bruno Haible  <bruno@clisp.org>
27026
27027         * m4/mbiter.m4: New file.
27028
27029 2005-08-16  Bruno Haible  <bruno@clisp.org>
27030
27031         * m4/mbfile.m4: New file.
27032
27033 2005-08-16  Bruno Haible  <bruno@clisp.org>
27034
27035         * m4/mbchar.m4: New file.
27036
27037 2005-08-16  Bruno Haible  <bruno@clisp.org>
27038
27039         * lib/tls.h: New file, from GNU gettext.
27040         * lib/tls.c: New file, from GNU gettext.
27041
27042 2005-08-16  Bruno Haible  <bruno@clisp.org>
27043
27044         * lib/strnlen1.h: New file.
27045         * lib/strnlen1.c: New file.
27046
27047 2005-08-16  Bruno Haible  <bruno@clisp.org>
27048
27049         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
27050         (mbi_init): Update.
27051         (mbi_avail, mbi_advance): Let the iteration end before the terminating
27052         NUL byte, not after it.
27053
27054 2005-08-16  Bruno Haible  <bruno@clisp.org>
27055
27056         * lib/strcase.h (strcasecmp): Add note in comments.
27057         * lib/strncasecmp.c: Use code from strcasecmp.c.
27058         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
27059         (strcasecmp): Work correctly in multibyte locales.
27060
27061 2005-08-16  Bruno Haible  <bruno@clisp.org>
27062
27063         * lib/mbiter.h: New file.
27064
27065 2005-08-16  Bruno Haible  <bruno@clisp.org>
27066
27067         * lib/mbfile.h: New file.
27068
27069 2005-08-16  Bruno Haible  <bruno@clisp.org>
27070
27071         * lib/mbchar.h: New file.
27072         * lib/mbchar.c: New file.
27073
27074 2005-08-16  Bruno Haible  <bruno@clisp.org>
27075
27076         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
27077         the valid ones. Makes the comparison operations transitive:
27078         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
27079         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
27080
27081 2005-08-15  Simon Josefsson  <jas@extundo.com>
27082
27083         * modules/ssize_t (License): Change to 'unlimited'.
27084
27085         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
27086
27087 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
27088
27089         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
27090         Add comments for each pending glibc patch.
27091
27092 2005-08-15  Bruno Haible  <bruno@clisp.org>
27093
27094         * lib/regex.h (__restrict_arr): Don't define to __restrict if
27095         __cplusplus is defined.
27096
27097 2005-08-14  Jim Meyering  <jim@meyering.net>
27098
27099         Sync from coreutils.
27100
27101         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
27102         Use the hash-table-based cycle-detection code not just when
27103         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
27104         Reported by James Youngman in
27105         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
27106         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
27107         FTS_TIGHT_CYCLE_CHECK.
27108         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
27109         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
27110         once again.
27111         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
27112         * lib/fts.c (fd_safer): Remove decl.
27113         Include fcntl--.h rather than unistd-safer.h
27114         (fts_safe_changedir): Don't call fd_safer; no longer needed
27115         now that we include fcntl--.h.
27116
27117 2005-08-12  Simon Josefsson  <jas@extundo.com>
27118
27119         * modules/getndelim2: Use ssize_t module.
27120         * modules/getnline: Likewise.
27121         * modules/safe-read: Likewise.
27122         * modules/xreadlink: Likewise.
27123
27124         * modules/ssize_t: New file.
27125
27126 2005-08-12  Simon Josefsson  <jas@extundo.com>
27127
27128         * m4/readline.m4: Look for termcap, curses or ncurses if required.
27129
27130 2005-08-12  Simon Josefsson  <jas@extundo.com>
27131
27132         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27133         ssize_t.
27134
27135 2005-08-12  Simon Josefsson  <jas@extundo.com>
27136
27137         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
27138         readline, getdelim and check_version.
27139         (Support for systems lacking ISO C 99: Sizes of integer types):
27140         Add size_max.
27141
27142 2005-08-12  Bruno Haible  <bruno@clisp.org>
27143
27144         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
27145
27146 2005-08-11  Simon Josefsson  <jas@extundo.com>
27147
27148         * modules/readline: New file.
27149
27150         * modules/strnlen (Files): Add strnlen.h.
27151
27152 2005-08-11  Simon Josefsson  <jas@extundo.com>
27153
27154         * m4/readline.m4: New file.
27155
27156 2005-08-11  Simon Josefsson  <jas@extundo.com>
27157
27158         * lib/readline.h, readline.c: New file.
27159
27160 2005-08-11  Simon Josefsson  <jas@extundo.com>
27161
27162         * doc/gnulib.texi (Initial import, Finishing touches): Mention
27163         gl_AVOID.
27164
27165 2005-08-11  Bruno Haible  <bruno@clisp.org>
27166
27167         * lib/strnlen.h (strnlen): Change parameter name to match comment.
27168
27169 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
27170
27171         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
27172
27173 2005-08-10  Simon Josefsson  <jas@extundo.com>
27174
27175         * tests/test-iconvme.c: New file.
27176
27177 2005-08-10  Simon Josefsson  <jas@extundo.com>
27178
27179         * m4/strnlen.m4: New file.
27180
27181         * m4/strndup.m4: Don't check for strnlen declaration, done in
27182         strnlen.m4.
27183
27184 2005-08-10  Simon Josefsson  <jas@extundo.com>
27185
27186         * lib/strndup.c: Use strnlen.h.
27187
27188         * lib/strnlen.h: New file.
27189
27190 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
27191
27192         * README: Typos.
27193
27194 2005-08-02  Simon Josefsson  <jas@extundo.com>
27195
27196         * modules/readline: New file.
27197
27198 2005-08-02  Simon Josefsson  <jas@extundo.com>
27199
27200         * modules/getdelim: New file.
27201
27202         * modules/getline: Rewrite, don't use getndelim2.
27203
27204 2005-08-02  Simon Josefsson  <jas@extundo.com>
27205
27206         * m4/getline.m4: Separate out getdelim stuff into separate module.
27207
27208         * m4/getdelim.m4: New file.
27209
27210 2005-08-02  Simon Josefsson  <jas@extundo.com>
27211
27212         * lib/getline.h, getline.c: Rewrite.
27213
27214         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
27215
27216 2005-07-31  Bruno Haible  <bruno@clisp.org>
27217
27218         * lib/lock.h (gl_lock_initializer): New macro.
27219         (gl_lock_define_initialized): Use it.
27220         (gl_rwlock_initializer): New macro.
27221         (gl_rwlock_define_initialized): Use it.
27222         (gl_recursive_lock_initializer): New macro.
27223         (gl_recursive_lock_define_initialized): Use it.
27224
27225 2005-07-30  Karl Berry  <karl@gnu.org>
27226
27227         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
27228         Report from Ben Pfaff, regarding getopt.
27229
27230 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
27231
27232         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
27233         normal way.
27234         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
27235         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
27236         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
27237         (gl_GETOPT): Use the new macros.  Most of the implementation
27238         is moved to the new macros.  This is for programs like Emacs
27239         that don't want all the functionality of gl_GETOPT.
27240
27241 2005-07-26  Bruno Haible  <bruno@clisp.org>
27242
27243         * m4/lock.m4: Update from GNU gettext.
27244
27245 2005-07-26  Bruno Haible  <bruno@clisp.org>
27246
27247         * lib/lock.h: Update from GNU gettext.
27248         * lib/lock.c: Update from GNU gettext.
27249
27250 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
27251
27252         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
27253         obsolescent AC_TRY_RUN.  Include the default includes files, for
27254         'exit'.
27255
27256 2005-07-24  Bruno Haible  <bruno@clisp.org>
27257
27258         * modules/visibility: New file.
27259         * MODULES.html.sh (Misc): Add visibility.
27260
27261 2005-07-24  Bruno Haible  <bruno@clisp.org>
27262
27263         * m4/visibility.m4: New file.
27264
27265 2005-07-24  Bruno Haible  <bruno@clisp.org>
27266
27267         * doc/visibility.texi: New file.
27268
27269 2005-07-22  Bruno Haible  <bruno@clisp.org>
27270
27271         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
27272         $(ALLOCA_H), redundant through BUILT_SOURCES.
27273         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
27274         redundant through BUILT_SOURCES.
27275         * modules/byteswap (Makefile.am): Remove explicit dependency on
27276         $(BYTESWAP_H), redundant through BUILT_SOURCES.
27277         * modules/fnmatch (Makefile.am): Remove explicit dependency on
27278         $(FNMATCH_H), redundant through BUILT_SOURCES.
27279         * modules/getopt (Makefile.am): Remove explicit dependency on
27280         $(GETOPT_H), redundant through BUILT_SOURCES.
27281         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
27282         redundant through BUILT_SOURCES.
27283         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
27284         redundant through BUILT_SOURCES.
27285         * modules/stdbool (Makefile.am): Remove explicit dependency on
27286         $(STDBOOL_H), redundant through BUILT_SOURCES.
27287         * modules/stdint (Makefile.am): Remove explicit dependency on
27288         $(STDINT_H), redundant through BUILT_SOURCES.
27289         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
27290         Remove explicit dependency on $(SYSEXITS_H).
27291         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
27292
27293 2005-07-18  Simon Josefsson  <jas@extundo.com>
27294
27295         * lib/check-version.c (check_version): Accept identical versions too.
27296
27297 2005-07-18  Bruno Haible  <bruno@clisp.org>
27298
27299         * modules/lock: New file.
27300         * MODULES.html.sh (Multithreading): New section.
27301
27302 2005-07-18  Bruno Haible  <bruno@clisp.org>
27303
27304         * m4/lock.m4: New file, from GNU gettext.
27305
27306 2005-07-18  Bruno Haible  <bruno@clisp.org>
27307
27308         * lib/lock.h: New file, from GNU gettext.
27309         * lib/lock.c: New file, from GNU gettext.
27310
27311 2005-07-18  Bruno Haible  <bruno@clisp.org>
27312
27313         * lib/lock.h (gl_once_t): New type.
27314         (gl_once_define, gl_once): New macros.
27315         * lib/lock.c (fresh_once): New variable.
27316         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
27317         functions.
27318
27319 2005-07-16  Simon Josefsson  <jas@extundo.com>
27320
27321         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
27322         workaround, suggested by Bruno.
27323
27324 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
27325
27326         * modules/xalloc (Depends-on): Add xalloc-die.
27327         * modules/xvasprintf (Depends-on): Add xalloc-die.
27328
27329 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
27330
27331         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
27332         with a minor change.
27333
27334 2005-07-15  Bruno Haible  <bruno@clisp.org>
27335
27336         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
27337         When using lib/poll.c, define poll as rpl_poll.
27338
27339 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
27340
27341         * modules/argp (Depends-on): Remove unlocked-io.
27342
27343 2005-07-14  Derek Price  <derek@ximbiot.com>
27344
27345         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
27346         for glob symlink bug.
27347
27348 2005-07-14  Bruno Haible  <bruno@clisp.org>
27349
27350         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
27351         Instead, test for *_unlocked function declarations directly.
27352
27353 2005-07-11  Simon Josefsson  <jas@extundo.com>
27354
27355         * modules/size_max: New file.
27356
27357         * modules/xsize: Depend on size_max module for size_max.m4.
27358
27359 2005-07-11  Simon Josefsson  <jas@extundo.com>
27360
27361         * lib/size_max.h: New file.
27362
27363 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
27364
27365         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
27366         copyright symbol and the year.
27367         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
27368         (version_etc_va): Use parameterized copyright notice.
27369         Reword to conform to the current GNU coding standards.
27370
27371 2005-07-11  Karl Berry  <karl@gnu.org>
27372
27373         * doc/gnulib.texi (Quoting): new node.
27374         (Initial import): more info, from Patrice.
27375
27376 2005-07-11  Bruno Haible  <bruno@clisp.org>
27377
27378         * gnulib-tool (func_usage): Document option --avoid.
27379         (Command line options): Handle --avoid.
27380         (func_acceptable): New function.
27381         (func_modules_transitive_closure): Use it.
27382
27383 2005-07-11  Bruno Haible  <bruno@clisp.org>
27384
27385         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
27386         Reported by Jim Meyering.
27387
27388 2005-07-10  Bruno Haible  <bruno@clisp.org>
27389
27390         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
27391         Needed when size_t is smaller than 'unsigned int'.
27392         Reported by Paul Eggert.
27393
27394 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
27395
27396         * modules/argp (Depends-on): Add unlocked-io
27397
27398 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
27399
27400         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
27401         block of defines.
27402
27403 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27404
27405         * config/srclist.txt: Comment out regcomp.c, since we have a porting
27406         fix now.
27407
27408 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
27409         and Paul Eggert  <eggert@cs.ucla.edu>
27410
27411         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
27412         in wint_t, not wchar_t.  Remove now-unnecessary cast.
27413
27414 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
27415
27416         * modules/regex (Files): Add lib/regex_internal.c,
27417         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
27418         (Depends-on): Add extensions.
27419         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
27420
27421 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
27422
27423         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
27424         pathconf.
27425         * m4/same.m4 (gl_SAME): Likewise.
27426         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
27427
27428         * m4/regex.m4: Adjust to new libc regex implementation.
27429         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
27430         all the .c and .h parts of (the new) regex.
27431         Quote the m4 stuff better.
27432         Check for RE_ICASE bug of old gnulib.
27433         Check for REG_STARTEND of recent libc.
27434         Rename local variables from jm_* to gl_*.
27435         Quote operand of "test -f".
27436         Say "recent enough" version of libc, not "version 2".
27437         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
27438         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
27439         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
27440         Remove check for btowc, isascii.
27441         Require AM_LANGINFO_CODESET.
27442
27443 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
27444
27445         * lib/regex.c, regex.h: Sync from libc.
27446         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
27447         * lib/regexec.c:
27448         New files, synced from libc, except that regex_internal.h
27449         currently has a small porting fix.
27450
27451 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
27452
27453         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
27454         regex_internal.c, regexec.c.
27455         Add regex_internal.h too, but as a comment, since the libc version
27456         is currently broken in gnulib mode.
27457
27458 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
27459
27460         Support programs like Emacs that use gnulib but not gettext.
27461         * MODULES.html.sh (Internationalization functions): Add gettext-h.
27462         * modules/gettext-h: New file.
27463         * modules/gettext (Files): Remove lib/gettext.h.
27464         (Depends-on): Add gettext-h.
27465         (Makefile.am): Remove lib_SOURCES.
27466         * modules/argmatch, modules/c-stack, modules/closeout:
27467         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
27468         * modules/execute, modules/file-type, modules/getaddrinfo:
27469         * modules/getopt, modules/human, modules/javacomp:
27470         * modules/javaexec, modules/mkdir-p, modules/obstack:
27471         * modules/openat, modules/pagealign_alloc, modules/pipe:
27472         * modules/quotearg, modules/regex, modules/rpmatch:
27473         * modules/unicodeio, modules/userspec, modules/version-etc:
27474         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
27475         * modules/xsetenv:
27476         Depend on gettext-h, not gettext.
27477
27478 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
27479
27480         * gnulib-tool (func_import): Add support for 'public domain' license.
27481         * modules/alloca, modules/atexit, modules/memmove:
27482         Now public domain, not GPL.
27483         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
27484         * modules/realloc, modules/strerror, modules/strtod:
27485         Now LGPL, not GPL.
27486
27487 2005-07-05  Bruno Haible  <bruno@clisp.org>
27488
27489         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
27490         autoconf CVS. Needed for mingw.
27491
27492 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
27493
27494         Remove the dependency of the strftime module on the tzset module.
27495         * modules/strftime (Depends-on): Remove dependency on tzset.
27496
27497 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
27498
27499         Remove the dependency of the strftime module on the tzset module.
27500         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
27501         gl_FUNC_TZSET_CLOBBER.
27502
27503 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
27504
27505         Remove the dependency of the strftime module on the tzset module.
27506         * lib/strftime.c (my_strftime)
27507         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
27508         Copy the input structure, to work around some of the bug with
27509         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
27510         Solaris releases, you should also use the tzset module, but we won't
27511         require it as a dependency any more since we don't want LGPLed code
27512         to depend on GPLed code.
27513
27514 2005-07-02  Jim Meyering  <jim@meyering.net>
27515
27516         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
27517         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
27518         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
27519         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
27520
27521 2005-07-02  Jim Meyering  <jim@meyering.net>
27522
27523         * lib/backupfile.c (backup_args): Change a `0' to NULL.
27524
27525 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
27526
27527         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
27528         declares only 'struct timespec;' (!).
27529
27530 2005-07-01  Jim Meyering  <jim@meyering.net>
27531
27532         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
27533         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
27534         * lib/save-cwd.c, tempname.c:
27535         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
27536         and don't include <sys/file.h>).
27537
27538 2005-06-29  Jim Meyering  <jim@meyering.net>
27539
27540         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
27541         type name.  Use the variable name instead.
27542         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
27543         Likewise.
27544
27545 2005-06-28  Simon Josefsson  <jas@extundo.com>
27546
27547         * modules/check-version (Files): Add check-version.m4.
27548
27549 2005-06-28  Simon Josefsson  <jas@extundo.com>
27550
27551         * m4/check-version.m4: New file, suggested by Jim Meyering
27552         <jim@meyering.net>.
27553
27554 2005-06-28  Simon Josefsson  <jas@extundo.com>
27555
27556         * lib/check-version.h, lib/check-version.c: New files.
27557
27558 2005-06-28  Simon Josefsson  <jas@extundo.com>
27559
27560         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
27561         collision with global variable.  Better indentation.  Don't
27562         increment buffer pointer beyond buffer end.  Based on comments
27563         from Paul Eggert <eggert@cs.ucla.edu>.
27564
27565         * lib/base64.h: Indent.
27566
27567 2005-06-28  Simon Josefsson  <jas@extundo.com>
27568
27569         * doc/gnulib.texi (Library version handling): New section.
27570
27571 2005-06-28  Jim Meyering  <jim@meyering.net>
27572
27573         * check-module (find_included_lib_files): Hard-code another
27574         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
27575         but modules/fts-lgpl (correctly) does not list those files.
27576
27577         * modules/canonicalize (Files): Add lib/pathmax.h.
27578
27579 2005-06-25  Simon Josefsson  <jas@extundo.com>
27580
27581         * modules/check-version: New file.
27582
27583 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
27584
27585         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
27586         initializer of struct addrinfo, as an indication that we don't
27587         care how many members the structure has.
27588
27589 2005-06-24  Derek Price  <derek@ximbiot.com>
27590         and Bruno Haible  <bruno@clisp.org>
27591
27592         Remove stat module & update lstat.
27593         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
27594         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
27595         * m4/stat.m4: Remove this file.
27596
27597 2005-06-24  Derek Price  <derek@ximbiot.com>
27598         and Bruno Haible  <bruno@clisp.org>
27599
27600         Remove stat module & update lstat.
27601         * lib/stat.c: Remove this file...
27602         (slash_aware_lstat): ...moving this content and its support...
27603         * lib/lstat.c (rpl_lstat): ...into here.
27604         * lib/lstat.h: New file.
27605
27606 2005-06-24  Derek Price  <derek@ximbiot.com>
27607         and Bruno Haible  <bruno@clisp.org>
27608
27609         Remove stat module & update lstat.
27610         * config/srclist.txt (libc sources): Remove stat.
27611
27612 2005-06-24  Derek Price  <derek@ximbiot.com>
27613         and Bruno Haible  <bruno@clisp.org>
27614
27615         Remove stat module & update lstat.
27616         * MODULES.html.sh (stat): Remove.
27617         * MODULES.html: Regenerated.
27618         * modules/lstat (Description): Correct function name.
27619         (Files): Add "lstat.h".
27620         (Depends-on): Remove stat, add xalloc, stat-macros.
27621         * modules/stat: Remove this file.
27622         (Include): Add "lstat.h", remove <sys/stat.h>.
27623
27624 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
27625
27626         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
27627         (ranged_convert): Don't save conversion in a temporary struct.
27628         This causes a warning with GCC 4.0.0, and anyway in the typical
27629         case it's not worth the extra 100 bytes or so of code.
27630         (ranged_convert, __mktime_internal): When calling a function via a
27631         pointer P, use P () rather than (*P) (), as we now assume C89 or
27632         better.
27633
27634 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
27635
27636         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
27637         "who -r" failed to give output.  Problem reported by Tim Waugh.
27638
27639         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
27640         (xcalloc): Use it to avoid needless tests.
27641         Problem reported by Jim Meyering.
27642
27643 2005-06-20  Derek Price  <derek@ximbiot.com>
27644
27645         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
27646         unnecessary for Autoconfs > 2.59c.
27647
27648 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27649
27650         * lib/argp.h (__option_is_short): Check upper limit of
27651         __key. Isprint() requires its argument to have the value
27652         of an unsigned char or EOF.
27653
27654 2005-06-16  Jim Meyering  <jim@meyering.net>
27655
27656         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
27657         when either N or S is zero.
27658
27659 2005-06-16  Derek Price  <derek@ximbiot.com>
27660
27661         * m4/bison.m4: Declare YACC & YFLAGS precious.
27662
27663 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
27664
27665         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
27666         multibyte string or pattern, fall back on unibyte matching.
27667         Problem reported by James Youngman.
27668
27669 2005-06-08  Bruno Haible  <bruno@clisp.org>
27670
27671         * modules/csharpcomp: New file.
27672         * MODULES.html.sh (C#): Add csharpcomp.
27673
27674 2005-06-08  Bruno Haible  <bruno@clisp.org>
27675
27676         * m4/csharpcomp.m4: New file, from GNU gettext.
27677
27678 2005-06-08  Bruno Haible  <bruno@clisp.org>
27679
27680         * lib/csharpcomp.h: New file, from GNU gettext.
27681         * lib/csharpcomp.c: New file, from GNU gettext.
27682         * lib/csharpcomp.sh.in: New file, from GNU gettext.
27683
27684 2005-06-08  Bruno Haible  <bruno@clisp.org>
27685
27686         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
27687         warning on mingw.
27688
27689 2005-06-07  Derek Price  <derek@ximbiot.com>
27690
27691         Sync from CVS.
27692         * lib/glob_.h: Indent nested #ifdef.
27693
27694 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
27695
27696         Sync from coreutils.
27697         Use "file name" when talking about file names, instead of "filename"
27698         or "path", as per the GNU coding standards.
27699         * lib/mkdir-p.c: Renamed from makepath.c.
27700         (make_dir_parents): Renamed from make_path.  All callers changed.
27701         * lib/mkdir-p.h: Likewise.  All includers changed.
27702         * lib/filenamecat.c: Renamed from path-concat.c.
27703         (file_name_concat): Renamed from path_concat.  All callers changed.
27704         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
27705         * lib/filenamecat.h: Likewise.  All includers changed.
27706         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
27707         in comments or local variable names.
27708         * lib/basename.c: Likewise.
27709         * lib/canonicalize.c, canonicalize.h: Likewise.
27710         * lib/dirname.c, dirname.h: Likewise.
27711         * lib/euidaccess.c: Likewise.
27712         * lib/exclude.c: Likewise
27713         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
27714         * lib/fsusage.c, fsuage.h: Likewise.
27715         * lib/fts.c, fts_.h: Likewise.
27716         * lib/getcwd.c: Likewise.
27717         * lib/getloadavg.c: Likewise.
27718         * lib/mkstemp.c: Likewise.
27719         * lib/mountlist.c, mountlist.h: Likewise.
27720         * lib/openat.c, openat.h: Likewise.
27721         * lib/readlink-stub.c: Likewise.
27722         * lib/readutmp.c, readutmp.h: Likewise.
27723         * lib/rename.c: Likewise.
27724         * lib/rmdir.c: Likewise.
27725         * lib/same.c: Likewise.
27726         * lib/savedir.c: Likewise.
27727         * lib/stripslash.c: Likewise.
27728         * lib/tempname.c: Likewise.
27729         * lib/xreadlink.c: Likewise.
27730         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
27731         All uses changed.
27732         * lib/exclude.h: Likewise.
27733
27734         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
27735         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
27736         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
27737         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
27738         * lib/pathmax.h: Include <limits.h> unconditionally, since other
27739         files have been getting away with it for years (MORE/BSD 4.3
27740         is extinct now).
27741         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
27742         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
27743
27744         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
27745         Define to 256, not 255, as per modern POSIX.
27746
27747 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
27748
27749         Sync from coreutils.
27750         Use "file name" when talking about file names, instead of "filename"
27751         or "path", as per the GNU coding standards.
27752         * MODULES.html.sh: mkdir-p renamed from makepath.
27753         filenamecat renamed from path-concat.
27754         * modules/filenamecat: Renamed from modules/path-concat.
27755         (Files): filenamecat.h and filenamecat.c renamed from
27756         path-concat.h and path-concat.c.
27757         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
27758         (Include): filenamecat.h, not path-concat.h.
27759         * modules/mkdir-p: Renamed from modules/makepath.
27760         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
27761         makepath.c.
27762         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
27763         (Include): mkdir-p.h, not makepath.h.
27764
27765 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
27766
27767         Sync from coreutils.
27768         * m4/mkdir-p.m4: Renamed from makepath.m4.
27769         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
27770         Rename files from makepath.c to mkdir-p.c, and from
27771         makepath.h to mkdir-p.h.
27772         * m4/filenamecat.m4: Renamed from path-concat.m4.
27773         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
27774         Rename files from path-concat.c to filenamecat.c,
27775         and from path-concat.h to filenamecat.h.
27776         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
27777         "file name" in local variables or comments.
27778         * m4/rename.m4: Likewise.
27779
27780 2005-06-01  Bruno Haible  <bruno@clisp.org>
27781
27782         * modules/csharpexec: New file.
27783         * MODULES.html.sh (C#): New section.
27784
27785 2005-06-01  Bruno Haible  <bruno@clisp.org>
27786
27787         * m4/csharp.m4: New file, from GNU gettext.
27788         * m4/csharpexec.m4: New file, from GNU gettext.
27789
27790 2005-06-01  Bruno Haible  <bruno@clisp.org>
27791
27792         * lib/csharpexec.h: New file, from GNU gettext.
27793         * lib/csharpexec.c: New file, from GNU gettext.
27794         * lib/csharpexec.sh.in: New file, from GNU gettext.
27795
27796 2005-05-31  Derek Price  <derek@ximbiot.com>
27797             Paul Eggert  <eggert@cs.ucla.edu>
27798
27799         Sync from cvs.
27800         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
27801
27802 2005-05-31  Derek Price  <derek@ximbiot.com>
27803             Paul Eggert  <eggert@cs.ucla.edu>
27804
27805         Sync from cvs.
27806         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
27807
27808 2005-05-29  Derek Price  <derek@ximbiot.com>
27809
27810         * config/srclist.txt (glob_.h, glob.c): Add these files.
27811
27812 2005-05-29  Derek Price  <derek@ximbiot.com>
27813
27814         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
27815         * modules/glob: New file.
27816         * modules/getlogin_r: Add link to POSIX spec in description.
27817
27818 2005-05-29  Derek Price  <derek@ximbiot.com>
27819             Paul Eggert  <eggert@cs.ucla.edu>
27820
27821         * m4/glob.m4: New file.
27822
27823 2005-05-29  Derek Price  <derek@ximbiot.com>
27824             Paul Eggert  <eggert@cs.ucla.edu>
27825
27826         * lib/glob_.h, lib/glob.c: New files.
27827
27828 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
27829
27830         * modules/fts (Files): Remove m4/inttypes-pri.m4.
27831         * modules/fts-lgpl (Depends-on): Remove gettext.
27832
27833 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
27834
27835         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
27836         and don't require gt_INTTYPES_PRI.
27837
27838 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
27839
27840         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
27841
27842         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
27843         the configuration hassle isn't worth it.
27844         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
27845         (LONGEST_MODIFIER, PRIuMAX): Remove.
27846
27847 2005-05-27  Bruno Haible  <bruno@clisp.org>
27848
27849         * lib/getlogin_r.h: Remove second include of <stddef.h>.
27850
27851 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
27852
27853         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
27854         _POSIX_PTHREAD_SEMANTICS for Solaris.
27855
27856 2005-05-25  Derek Price  <derek@ximbiot.com>
27857
27858         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
27859
27860 2005-05-25  Derek Price  <derek@ximbiot.com>
27861             Paul Eggert  <eggert@cs.ucla.edu>
27862
27863         * modules/getlogin_r, m4/getlogin_r.m4: New files.
27864         * lib/getlogin_r.c, getlogin_r.h: New files.
27865
27866 2005-05-25  Bruno Haible  <bruno@clisp.org>
27867             Derek Price  <derek@ximbiot.com>
27868
27869         * lib/getlogin_r.h: Simplify API documentation.
27870
27871 2005-05-23  Derek Price  <derek@ximbiot.com>
27872
27873         * modules/minmax (Files): Add m4/minmax.m4.
27874         (configure.ac): Add gl_MINMAX.
27875
27876 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
27877
27878         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
27879         so that unistd-safer.h (GPL'ed code) need not be included.
27880
27881 2005-05-22  Bruno Haible  <bruno@clisp.org>
27882
27883         * m4/minmax.m4: New file.
27884         Based on a patch by Derek Price <derek@ximbiot.com>.
27885
27886 2005-05-22  Bruno Haible  <bruno@clisp.org>
27887
27888         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
27889         (INT64_MIN): Fix definition.
27890         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
27891
27892         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
27893         NEED_SIGNED_INT_TYPES.
27894
27895         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
27896         HAVE_SYSTEM_INTTYPES.
27897
27898 2005-05-22  Bruno Haible  <bruno@clisp.org>
27899
27900         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
27901         Also include <sys/param.h> if it defines MIN, MAX.
27902         Based on a patch by Derek Price <derek@ximbiot.com>.
27903
27904 2005-05-21  Jim Meyering  <jim@meyering.net>
27905
27906         * modules/fts (Files): Add m4/inttypes-pri.m4.
27907         (Depends-on): Add lstat and remove gettext.  Alphabetize.
27908
27909 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
27910
27911         New fts module.
27912         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
27913         (setup_dir, free_dir): New functions.
27914         (enter_dir, leave_dir): Define trivial
27915         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
27916         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
27917         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
27918         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
27919         Move to fts-cycle.c.
27920         (fts_open): Use setup_dir.
27921         (fts_close): Use free_dir.
27922         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
27923         This adds a label and some gotos, but the alternatives were messier.
27924         Check for memory allocation failure when entering a dir.
27925         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
27926         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
27927         (FTS): New member fts_cycle, that is a union that contains the
27928         old active_dir_ht and cycle_state.  All uses changed to mention
27929         fts_cycle.ht and fts_cycle.state.
27930         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
27931         fts.c, with the following changes:
27932         (setup_dir, free_dir): New functions.
27933         (enter_dir): Now returns bool.  Return true if successful, false
27934         if memory exhausted.  All callers changed.
27935         Do not bother partly cleaning up on
27936         memory allocation failure; that is free_dir's job.
27937         However, free ad if hash_insert fails, to avoid memory leak.
27938         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
27939         fts->fts_options to see which union member to use.
27940
27941 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
27942
27943         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
27944         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
27945
27946 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
27947
27948         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
27949
27950 2005-05-20  Jim Meyering  <jim@meyering.net>
27951
27952         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
27953         Now a macro, to pacify GCC.
27954
27955 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
27956
27957         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
27958         of -1.
27959
27960 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
27961
27962         * lib/chown.c (rpl_chown): Return -1 on failure.
27963
27964 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
27965
27966         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
27967         Don't check for stddef.h.
27968         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
27969         don't use its results.
27970         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
27971         since we include them unconditionally.  Don't require
27972         AM_STDBOOL_H, since stdbool is a prerequisite.
27973         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
27974         since we assume C89 or better.
27975         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
27976         as we don't use their results.
27977         Don't check for fchdir, memmove, memset, strrchr, as we use
27978         them unconditionally.
27979         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
27980         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
27981
27982 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
27983
27984         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
27985         Include <stddef.h> unconditionally, since we assume C89 now.
27986         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
27987         * lib/fts.c: Include fts_.h first, to check interface.
27988         Do not include intprops.h; no longer needed.
27989         Include cycle-check.h and hash.h, since fts_.h no longer does.
27990         Remove unnecessary casts of closedir to void.
27991         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
27992         decide whether to decrement nlinks.
27993         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
27994         (FTS): Use struct hash_table * instead of Hash_table, so that
27995         we no longer need to include hash.h here.
27996
27997 2005-05-18  Jim Meyering  <jim@meyering.net>
27998
27999         * modules/dirfd (License): Change to LGPL.  Most of the code
28000         is already in the public domain.
28001
28002 2005-05-18  Jim Meyering  <jim@meyering.net>
28003
28004         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
28005         Reported by Yoann Vandoorselaere.
28006
28007 2005-05-17  Jim Meyering  <jim@meyering.net>
28008
28009         * m4/fts.m4: New file, from coreutils.
28010
28011 2005-05-17  Jim Meyering  <jim@meyering.net>
28012
28013         * lib/fts.c, lib/fts_.h: New files, from coreutils.
28014
28015 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
28016
28017         Sync from coreutils.
28018         * m4/unlinkdir.m4: New file.
28019
28020 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
28021
28022         Sync from coreutils.
28023         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
28024         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
28025         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
28026         White space changes only.
28027         * lib/makepath.c (make_path): Port to hosts where leading "//" is
28028         special.
28029         * lib/yesno.c: Include getline.h, not ctype.h.
28030         (yesno): Don't remove leading white space; POSIX doesn't allow it.
28031         Use getline to remove arbitrary restriction on response length.
28032
28033 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
28034
28035         * config/srclist-update: Spell out "Street" in FSF postal
28036         mail address; this is the style the FSF seems to prefer.
28037
28038         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
28039         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
28040         this updates FSF postal mail address.
28041
28042         Sync from coreutils.
28043         * modules/unlinkdir: New file.
28044         * modules/yesno (Depends-on): Add getline.
28045         * MODULES.html.sh (File system functions): Add unlinkdir.
28046
28047 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
28048
28049         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
28050         lib/strsep.h:
28051         Change the initial comment to refer to GPL, not LGPL.
28052         gnulib-tool will change it to LGPL as needed.
28053
28054         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
28055         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
28056         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
28057         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
28058         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
28059         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
28060         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
28061         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
28062         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
28063         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
28064         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
28065         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
28066         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
28067         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
28068         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
28069         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
28070         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
28071         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
28072         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
28073         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
28074         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
28075         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
28076         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
28077         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
28078         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
28079         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
28080         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
28081         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
28082         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
28083         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
28084         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
28085         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
28086         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
28087         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
28088         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
28089         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
28090         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
28091         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
28092         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
28093         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
28094         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
28095         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
28096         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
28097         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
28098         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
28099         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
28100         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
28101         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
28102         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
28103         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
28104         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
28105         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
28106         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
28107         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
28108         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
28109         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
28110         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
28111         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
28112         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
28113         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
28114         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
28115         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
28116         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
28117         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
28118         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
28119         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
28120         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
28121         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
28122         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
28123         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
28124         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
28125         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
28126         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
28127         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
28128         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
28129         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
28130         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
28131         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
28132         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
28133         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
28134         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
28135         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
28136         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
28137         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
28138         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
28139         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
28140         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
28141         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
28142         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
28143         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
28144         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
28145         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
28146         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
28147         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
28148         lib/yesno.c, lib/yesno.h:
28149         Update FSF postal mail address.
28150
28151 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
28152
28153         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
28154         tests/test-memmem.c, tests/test-stpncpy.c:
28155         Update FSF postal mail address.
28156
28157 2005-05-13  Bruno Haible  <bruno@clisp.org>
28158
28159         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
28160         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
28161         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
28162         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
28163         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
28164         Add support for 64-bit integers in the MSVC compiler.
28165
28166 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28167
28168         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
28169
28170 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
28171
28172         * gnulib-tool (func_import): Sort and uniquify recommended includes.
28173
28174 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
28175
28176         * doc/getdate.texi (General date syntax): Don't say that date
28177         date --iso-8601=ns generates acceptable dates; it doesn't yet.
28178         Problem reported by Nic Ferrier.
28179
28180 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28181
28182         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
28183         specified in ai_socktype. Fix invalid ai_protocol
28184         check. ai_protocol is usually set to 0 or depending on
28185         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
28186         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
28187         ai_socktype / ai_protocol in the returned addrinfo structure.
28188
28189 2005-05-10  Simon Josefsson  <jas@extundo.com>
28190
28191         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
28192         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28193
28194 2005-05-10  Karl Berry  <karl@gnu.org>
28195
28196         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
28197         (from http://www.gnu.org/licenses).
28198         * doc/COPYING.LIB: also rename to COPYING.LESSER.
28199         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
28200         fdl.texi suffices.
28201
28202 2005-05-10  Karl Berry  <karl@gnu.org>
28203
28204         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
28205         (COPYING.DOC): remove.
28206
28207         * config/srclist-update: new FSF address.
28208
28209 2005-05-10  Derek Price  <derek@ximbiot.com>
28210
28211         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
28212         possible.
28213
28214 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28215             Bruno Haible  <bruno@clisp.org>
28216
28217         * modules/inet_ntop: New file.
28218         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28219         inet_ntop.
28220
28221 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28222             Bruno Haible  <bruno@clisp.org>
28223
28224         * m4/inet_ntop.m4: New file.
28225
28226 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28227             Bruno Haible  <bruno@clisp.org>
28228
28229         * lib/inet_ntop.h: New file.
28230         * lib/inet_ntop.c: New file, from glibc with modifications.
28231
28232 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
28233
28234         * modules/time_r (License): Change to LGPL.
28235         * modules/extensions (License): Change to LGPL.  Actually,
28236         the license is more permissive than that, but currently gnulib-tool
28237         doesn't know how to handle more-permissive licenses.
28238
28239         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
28240         Problem reported by Dave Love.
28241
28242 2005-05-08  Jim Meyering  <jim@meyering.net>
28243
28244         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
28245         blank.
28246
28247 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
28248
28249         * modules/argmatch (Depends-on): Add stdbool.
28250         * modules/backupfile (Depends-on): Likewise.
28251         * modules/chdir-long (Depends-on): Likewise.
28252         * modules/closeout (Depends-on): Likewise.
28253         * modules/cycle-check (Depends-on): Likewise.
28254         * modules/dirname (Depends-on): Likewise.
28255         * modules/fnmatch (Depends-on): Likewise.
28256         * modules/fsusage (Depends-on): Likewise.
28257         * modules/fwriteerror (Depends-on): Likewise.
28258         * modules/getcwd (Depends-on): Likewise.
28259         * modules/getloadavg (Depends-on): Likewise.
28260         * modules/hard-locale (Depends-on): Likewise.
28261         * modules/makepath (Depends-on): Likewise.
28262         * modules/mountlist (Depends-on): Likewise.
28263         * modules/nanosleep (Depends-on): Likewise.
28264         * modules/posixtm (Depends-on): Likewise.
28265         * modules/quotearg (Depends-on): Likewise.
28266         * modules/readtokens (Depends-on): Likewise.
28267         * modules/readtokens0 (Depends-on): Likewise.
28268         * modules/readutmp (Depends-on): Likewise.
28269         * modules/save-cwd (Depends-on): Likewise.
28270         * modules/strftime (Depends-on): Likewise.
28271         * modules/userspec (Depends-on): Likewise.
28272         * modules/utimecmp (Depends-on): Likewise.
28273         * modules/xgetcwd (Depends-on): Likewise.
28274         * modules/xnanosleep (Depends-on): Likewise.
28275         * modules/xstrtod (Depends-on): Likewise.
28276         * modules/yesno (Depends-on): Likewise.
28277
28278 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
28279
28280         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
28281         needless checks.
28282
28283 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
28284
28285         Merge from coreutils.  Among other things,
28286         add bulletproofing for cases where stdin, stdout, or stderr are closed.
28287         * lib/fd-safer.c: New file.
28288         * lib/fcntl-safer.h, open-safer.c: Remove.
28289         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
28290         * lib/dup-safer.c: Include unistd-safer.h first.
28291         Don't include errno.h.
28292         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
28293         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
28294         * lib/file-type.c: Rely on file-type.h change.
28295         * lib/getloadavg.c: Include unistd-safer.h.
28296         (getloadavg): Use safer open.
28297         * lib/getusershell.c: Include "stdio-safer.h".
28298         (getusershell): Use safer fopen.
28299         * lib/long-options.c (long_options): Use NULL rather than 0.
28300         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
28301         'free'.
28302         * lib/modechange.c: Likewise.
28303         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
28304         (MODE_DONE): New constant.
28305         (struct mode_change): Remove 'next' member.
28306         (make_node_op_equals): New function; like the old one of the
28307         same name, except it allocates an array.
28308         (mode_compile, mode_create_from_ref): Use it.
28309         (mode_compile): Allocate result as an array, not a linked list.
28310         Parse octal string ourself, so that we catch mistakes like "+0".
28311         (mode_adjust): Arg is an array, not a linked list.
28312         * lib/modechange.c: Include stat-macros.h, xalloc.h.
28313         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
28314         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
28315         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
28316         Remove.  This is now stat-macros.h's job.
28317         (talloc): Remove.  All callers replaced by xalloc, so that
28318         our invokers don't have to worry about reporting memory failures.
28319         (make_node_op_equals): Remove.
28320         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
28321         New constants.
28322         (struct mode_change): Moved here from modechange.h.
28323         (mode_append_entry): Remove.
28324         (mode_compile): Remove MASKED_OPS arg, since it encouraged
28325         apps to have incorrect behavior.  Use simpler algorithm for head
28326         and tail.  Don't futz with umask; that's now the job of mode_adjust.
28327         Detect more invalid usages rather than having somewhat-random behavior.
28328         Don't insert an "a=" action, as that leads to incorrect behavior.
28329         (mode_compile, mode_create_from_ref): Return NULL on error instead
28330         of an enum, since now there's only one way to have an error.  All
28331         callers changed.
28332         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
28333         at the correct time.  Simplify calculation of "+u" and its ilk.
28334         Don't mishandle "+X".
28335         (mode_free): Remove "register" and localize decls.
28336         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
28337         (struct mode_change): Move to modechange.c; callers don't
28338         need to see this stuff.
28339         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
28340         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
28341         (mode_change, mode_adjust): Reflect the new signatures noted above.
28342         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
28343         that might redefine system include files.
28344         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
28345         (my_usleep): Use NULL rather than (void *) 0.
28346         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
28347         Use siginterrupt to specify that system calls should be interrupted.
28348         (rpl_nanosleep): Move initialization of suspended closer to call of
28349         my_usleep.
28350         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
28351         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
28352         (desirable_utmp_entry): New function.
28353         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
28354         using x2nrealloc, to simplify logic.
28355         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
28356         size calculation.  Do not assume utmp file is a regular file.
28357         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
28358         (READ_UTMP_CHECK_PIDS): New constant.
28359         * lib/save-cwd.c: Include unistd-safer.h.
28360         (save_cwd): Use fd_safer.
28361         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
28362         [!_LIBC] Include "stat-macros.h" instead.
28363         * lib/unistd-safer.h (fd_safer): New decl.
28364
28365 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
28366
28367         * modules/getloadavg (Depends-on): Add unistd-safer.
28368         * modules/getusershell (Depends-on): Add stdio-safer.
28369         * modules/lstat (Depends-on): Remove xalloc.
28370         * modules/mkstemp (Depends-on): Add stat-macros.
28371         * modules/modechange (Depends-on): Remove xstrtol.
28372         Add stat-macros, xalloc.
28373         * modules/save-cwd (Depends-on): Add unistd-safer.
28374         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
28375         * modules/unistd-safer (Files): Add lib/fd-safer.c
28376         (Makefile.am): Remove lib_SOURCES.
28377
28378         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
28379         Remove fcntl-safer; unistd-safer supersedes it.
28380
28381 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
28382
28383         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
28384         AC_HEADER_STAT.
28385         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
28386         (gl_PREREQ_CHOWN): Remove.
28387         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
28388         it.  Don't require AC_HEADER_STAT.
28389         (gl_PREREQ_LSTAT): Remove.
28390         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
28391         Don't require AC_HEADER_STAT.
28392         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
28393         (gl_PREREQ_RMDIR): Remove.
28394         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
28395         mention stat-macros.h or AC_HEADER_STAT, since we'll make
28396         the stat-macros module a prerequisite.
28397         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
28398         * m4/filemode.m4 (gl_FILEMODE): Likewise.
28399         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
28400         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
28401         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
28402         variable names.
28403         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
28404         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
28405         variable prefixes.
28406         * m4/fcntl-safer.m4: Remove.
28407         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
28408         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
28409         Invoke gl_PREREQ_FD_SAFER.
28410         (gl_PREREQ_FD_SAFER): New macro.
28411         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
28412         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
28413         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
28414         Remove duplicate call to AC_LIBOBJ(readutmp).
28415         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
28416
28417         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
28418         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
28419
28420 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
28421
28422         * MODULES.html.sh (Misc): Add byteswap.
28423
28424 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
28425
28426         * modules/getcwd (Depends-on): Add extensions.
28427         * modules/openat (Depends-on): Likewise.
28428
28429 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
28430
28431         * modules/byteswap: New file.
28432
28433 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
28434
28435         * m4/byteswap.m4: New file.
28436
28437 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
28438
28439         * lib/byteswap_.h: New file.
28440
28441 2005-04-25  Karl Berry  <karl@gnu.org>
28442
28443         * m4/gettext.m4: Update from GNU gettext 0.14.4.
28444
28445 2005-04-25  Albert Chin  <china@thewrittenword.com>
28446
28447         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
28448         Toolkit C bug.
28449
28450 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
28451
28452         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
28453         (func_ln_if_changed) Remove forcibly for no error message
28454         in case file does not exist.
28455
28456 2005-04-19  Simon Josefsson  <jas@extundo.com>
28457
28458         * gnulib-tool (Options): Make --symlink mean --symbolic.
28459
28460 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
28461
28462         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
28463
28464 2005-04-16  Simon Josefsson  <jas@extundo.com>
28465
28466         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
28467
28468 2005-04-15  Simon Josefsson  <jas@extundo.com>
28469
28470         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
28471
28472 2005-04-15  Simon Josefsson  <jas@extundo.com>
28473
28474         * gnulib-tool: Rename --symlink to --symbolic.
28475
28476 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
28477
28478         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
28479         symbolic links to files instead of copying/moving.  Add --aux-dir,
28480         specifying directory relative --dir where auxiliary build tools
28481         are placed.
28482
28483 2005-04-14  Bruno Haible  <bruno@clisp.org>
28484
28485         * modules/allocsa (License): Change to LGPL.
28486         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28487
28488 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
28489
28490         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
28491         that "UTC +1 second" continues to work.  Problem reported
28492         by Dmitry V. Levin.
28493         (relunit_snumber): New rule.
28494         (relunit): Use it.
28495
28496 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
28497
28498         * lib/getdate.y (universal_time_zone_table): New constant.
28499         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
28500         universal_time_zone_table.
28501         (lookup_zone): Prefer universal_time_zone_table to
28502         local_time_zone_table, so that "GMT" time stamps are allowed in
28503         London during the summer.  Problem reported by Ian Abbott.
28504
28505 2005-04-12  Jim Meyering  <jim@meyering.net>
28506
28507         * lib/human.c (humblock): Set *options even when returning due to
28508         xstrtoumax conversion failure.  Thanks to a used-uninitialized
28509         warning from gcc-4.
28510
28511 2005-04-09  Jim Meyering  <jim@meyering.net>
28512
28513         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
28514         -Wuninitialized: initialize tm0.tm_year.
28515
28516 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
28517
28518         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
28519         count, since there's no maximum.  All uses changed.
28520         Add member dsts_seen.
28521         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
28522         not being INT_MAX.
28523         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
28524         Use pc_rels_seen to decide whther a date is absolute.
28525
28526         * lib/getdate.y (number): Don't overwrite year.
28527         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
28528         check.
28529
28530 2005-04-02  Simon Josefsson  <jas@extundo.com>
28531
28532         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
28533         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
28534
28535 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
28536
28537         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
28538         where no absolute path name can be longer than PATH_MAX.
28539
28540 2005-03-27  Jim Meyering  <jim@meyering.net>
28541
28542         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
28543
28544 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
28545
28546         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
28547         "one's complement" -> "ones' complement" in comment, as per Knuth.
28548         "value of type" -> "type or expression" in comment.
28549         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
28550
28551 2005-03-26  Jim Meyering  <jim@meyering.net>
28552
28553         Comment nits.
28554         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
28555         Correct typos: s/or/of/.
28556
28557 2005-03-26  Jim Meyering  <jim@meyering.net>
28558
28559         * modules/check-include-files: Move to ../ and rename to...
28560         * check-module: ...this.
28561
28562 2005-03-25  Jim Meyering  <jim@meyering.net>
28563
28564         * modules/xvasprintf (Files): Add xalloc.h.
28565
28566 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
28567
28568         * modules/gettext (Files): config/config.rpath ->
28569         build-aux/config.rpath
28570         * modules/iconv (Files): Likewise.
28571         Problem reported by Oskar Liljeblad.
28572
28573 2005-03-23  Jim Meyering  <jim@meyering.net>
28574
28575         * modules/check-include-files: New script to check for
28576         missing dependencies, multiple includes, etc.
28577
28578         * modules/c-strtold (Depends-on): Add xalloc.
28579         * modules/c-strtod (Depends-on): Add xalloc.
28580         * modules/hash (Depends-on): Add xalloc.
28581         (Files): Remove lib/xalloc.h.
28582
28583         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
28584         * modules/userspec (Files): Add lib/inttostr.h.
28585
28586 2005-03-23  Jim Meyering  <jim@meyering.net>
28587
28588         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
28589
28590 2005-03-22  Jim Meyering  <jim@meyering.net>
28591
28592         * modules/stat-macros: New module.
28593         * modules/canonicalize, modules/euidaccess, modules/file-type,
28594         * modules/filemode, modules/lchown, modules/makepath,
28595         * modules/rmdir, modules/stat: Depend on new stat-macros module
28596         rather than listing lib/stat-macros.h manually.
28597         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
28598
28599 2005-03-22  Jim Meyering  <jim@meyering.net>
28600
28601         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
28602
28603 2005-03-22  Bruno Haible  <bruno@clisp.org>
28604
28605         * config/srclist.txt: Replace target directory 'config' with
28606         'build-aux'.
28607         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
28608         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
28609         ../build-aux/.
28610
28611 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
28612
28613         * modules/chdir-long (Depends-on): Add mempcpy.
28614
28615         * modules/acl, modules/backupfile, modules/c-strtod,
28616         modules/c-strtold, modules/canon-host, modules/canonicalize,
28617         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
28618         modules/exclude, modules/exitfail, modules/file-type,
28619         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
28620         modules/getdate, modules/getline, modules/getpagesize,
28621         modules/getpass, modules/getugroups, modules/group-member,
28622         modules/hard-locale, modules/hash, modules/human, modules/idcache,
28623         modules/inttostr, modules/long-options, modules/makepath,
28624         modules/md5, modules/memcasecmp, modules/memcoll,
28625         modules/modechange, modules/mountlist, modules/path-concat,
28626         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
28627         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
28628         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
28629         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
28630         modules/strftime, modules/strndup, modules/strverscmp,
28631         modules/timespec, modules/unlocked-io, modules/userspec,
28632         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
28633         modules/yesno:
28634         Remove lib_SOURCES line from Makefile.am section, as this is now
28635         done automatically by the corresponding Autoconf macro.
28636
28637 2005-03-21  Jim Meyering  <jim@meyering.net>
28638
28639         Changes imported from coreutils.
28640
28641         * lib/cycle-check.c: Don't include xalloc.h.
28642
28643         * lib/path-concat.c: Don't include assert.h.
28644         (path_concat): Remove assertion that would have triggered
28645         for ABASE starting with more than one slash.
28646         Reported by Andreas Schwab.
28647
28648         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
28649         properly when ABASE is an absolute file name.
28650         Correct the description of this function.
28651         Include <assert.h>.
28652         Add an assertion and a test driver.
28653         This fixes a bug introduced on 2004-07-02.
28654         Andreas Schwab reported the resulting failure of cp --parents:
28655         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
28656
28657 2005-03-21  Jim Meyering  <jim@meyering.net>
28658
28659         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
28660         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
28661
28662 2005-03-21  Jim Meyering  <jim@meyering.net>
28663         and  Paul Eggert  <eggert@cs.ucla.edu>
28664
28665         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
28666         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
28667         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
28668         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
28669         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
28670         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
28671         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
28672         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
28673         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
28674         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
28675         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
28676         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
28677         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
28678         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
28679         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
28680         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
28681         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
28682         for these modules.
28683
28684 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
28685
28686         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
28687         (which shouldn't happen), generate nothing instead of returning 0
28688         immediately, so that nstrftime (NULL, ...) doesn't return 0.
28689
28690 2005-03-16  Bruno Haible  <bruno@clisp.org>
28691
28692         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
28693         HAVE_LONGLONG_64BIT.
28694
28695 2005-03-16  Bruno Haible  <bruno@clisp.org>
28696
28697         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
28698         HAVE_LONGLONG_64BIT.
28699
28700 2005-03-16  Bruno Haible  <bruno@clisp.org>
28701
28702         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
28703         HAVE_LONGLONG_64BIT.
28704
28705 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
28706
28707         * lib/strftime.c (my_strftime): Prepend space to format so that we can
28708         reliably distinguish strftime failure from empty output on POSIX
28709         hosts.
28710
28711 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
28712
28713         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
28714         (iconv_string): Don't guess a size-zero buffer, as that might cause
28715         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
28716         result would be 'too large', where 'too large' is (heuristically)
28717         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
28718         overflow concerns.  This will prevent some unwanted malloc failures
28719         when the inputs are very large.
28720
28721 2005-03-15  Karl Berry  <karl@gnu.org>
28722
28723         * config/srclist.txt (config.rpath): from gettext.
28724         * config/config.rpath: update.
28725
28726 2005-03-15  Bruno Haible  <bruno@clisp.org>
28727
28728         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
28729         to 'negate'.
28730
28731         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
28732         variable.
28733
28734         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
28735         results.
28736
28737 2005-03-14  Simon Josefsson  <jas@extundo.com>
28738
28739         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
28740         <fx@gnu.org>.
28741
28742 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
28743
28744         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
28745         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
28746         intprops.h.
28747         * lib/strtol.c: Likewise.
28748
28749 2005-03-14  Jim Meyering  <jim@meyering.net>
28750
28751         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
28752         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
28753         to be nonzero so that we (and caller) can detect the difference
28754         between a valid zero-length expansion and an error return, even
28755         when the underlying strftime fails before writing anything into
28756         that location.
28757
28758 2005-03-14  Bruno Haible  <bruno@clisp.org>
28759
28760         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
28761         Update from GNU gettext 0.14.3.
28762
28763 2005-03-10  Jim Meyering  <jim@meyering.net>
28764
28765         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
28766
28767 2005-03-10  Jim Meyering  <jim@meyering.net>
28768
28769         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
28770         so that this module works on systems without fchdir.
28771
28772 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
28773
28774         Factor int-properties macros into a single file, except for
28775         glibc-related files.
28776         * lib/intprops.h: New file.
28777         * lib/getloadavg.c: Include it instead of limits.h.
28778         (INT_STRLEN_BOUND): Remove.
28779         * lib/human.c: Include intprops.h.
28780         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
28781         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
28782         302/1000.
28783         * lib/inttostr.h: Include intprops.h instead of limits.h.
28784         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
28785         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
28786         for consistency with intprops.h.
28787         (time_t_is_integer, twos_complement_arithmetic): Use them.
28788         * lib/sig2str.h: Include <signal.h>, intprops.h.
28789         (INT_STRLEN_BOUND): Remove.
28790         * lib/strftime.c (TYPE_SIGNED): Remove.
28791         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
28792         * lib/strtol.c: Adjust comments to match intprops.h.
28793         * lib/userspec.c: Include intprops.h.
28794         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
28795         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
28796         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
28797         instead of rolling our own expressions.
28798         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
28799
28800         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
28801         instead of int.
28802         (my_strftime): Do not mishandle years close to INT_MAX, by doing
28803         the right thing even if adding 1900 would overflow.  Similarly
28804         for tm_mon + 1 and tm_yday + 1.
28805         Make %Y always equivalent to %C%y, and similarly for %G and %g.
28806         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
28807         (DO_SIGNED_NUMBER): New macro.
28808         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
28809
28810 2005-03-07  Bruno Haible  <bruno@clisp.org>
28811
28812         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
28813
28814 2005-03-07  Bruno Haible  <bruno@clisp.org>
28815
28816         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
28817
28818 2005-03-04  Derek R. Price  <derek@ximbiot.com>
28819
28820         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
28821         (func_import): Only replace files via --import when they have actually
28822         changed.
28823
28824 2005-03-03  Derek R. Price  <derek@ximbiot.com>
28825
28826         * m4/mmap-anon.m4: New file.
28827         * m4/pagealign_alloc.m4: New file.
28828
28829 2005-03-03  Derek R. Price  <derek@ximbiot.com>
28830             Bruno Haible  <bruno@clisp.org>
28831
28832         * modules/pagealign_alloc: New file.
28833         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
28834
28835 2005-03-03  Derek R. Price  <derek@ximbiot.com>
28836             Bruno Haible  <bruno@clisp.org>
28837
28838         * lib/pagealign_alloc.h: New file.
28839         * lib/pagealign_alloc.c: New file.
28840
28841 2005-03-03  Bruno Haible  <bruno@clisp.org>
28842
28843         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
28844         Use an all-permissive copyright notice, recommended by RMS.
28845
28846 2005-03-02  Bruno Haible  <bruno@clisp.org>
28847
28848         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
28849         of AIX, the replacement has to be done only after <string.h> is
28850         included, therefore not in config.h. stpncpy.h does the replacement,
28851         and stpncpy.c uses it.
28852
28853 2005-03-02  Bruno Haible  <bruno@clisp.org>
28854
28855         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
28856         stpncpy.c uses it.
28857
28858 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
28859
28860         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
28861         The workaround isn't strictly needed for POSIX conformance, and
28862         it's too much of a pain to configure and maintain.  We'll ask
28863         people to fix their kernels instead.
28864         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
28865         (NANOSLEEP_BUG_WORKAROUND): Remove.
28866         (xnanosleep): Remove the workaround.
28867
28868 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
28869
28870         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
28871         Reported by Derek Price.
28872         (Include): Add "timespec.h".
28873
28874         * modules/xnanosleep (Depends-on): Remove gethrxtime.
28875
28876 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
28877
28878         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
28879         to detect nanosleep bug.
28880
28881 2005-03-01  Bruno Haible  <bruno@clisp.org>
28882
28883         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
28884
28885 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
28886
28887         * modules/gethrxtime: New file.
28888         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
28889         (Depends-on): Add gethrxtime.
28890         (configure.ac): Add gl_XNANOSLEEP.
28891         (Makefile.am): Remove lib_SOURCES line.
28892
28893 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
28894
28895         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
28896         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
28897
28898 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
28899
28900         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
28901         * lib/timespec.h (gettime): Return void, since it always
28902         succeeds now.  All uses changed.
28903         * lib/gettime.c (gettime) Likewise.
28904         [HAVE_NANOTIME]: Prefer nanotime.
28905         Assume gettimeofday succeeds, as POSIX requires.
28906         Assime time () succeeds, since other code already does.
28907         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
28908         (timespec_subtract): Remove.
28909         (NANOSLEEP_BUG_WORKAROUND): New constant.
28910         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
28911         things considerably.  Use it only on GNU/Linux hosts, since the
28912         workaround shouldn't be needed elsewhere.
28913
28914 2005-02-24  Bruno Haible  <bruno@clisp.org>
28915
28916         * modules/gettext (Files): Add m4/glibc2.m4.
28917
28918 2005-02-24  Bruno Haible  <bruno@clisp.org>
28919
28920         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
28921         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
28922         * m4/progtest.m4:
28923         Update from GNU gettext 0.14.2.
28924         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
28925
28926 2005-02-24  Bruno Haible  <bruno@clisp.org>
28927
28928         * lib/localcharset.c: Update from GNU gettext 0.14.2.
28929         * lib/config.charset: Update from GNU gettext 0.14.2.
28930
28931 2005-02-24  Bruno Haible  <bruno@clisp.org>
28932
28933         * lib/gettext.h: Update from GNU gettext 0.14.2.
28934
28935 2005-02-23  Simon Josefsson  <jas@extundo.com>
28936
28937         * m4/iconvme.m4: New file.
28938
28939 2005-02-23  Jim Meyering  <jim@meyering.net>
28940
28941         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
28942         change.
28943         Thanks to Bruno Haible for catching it.
28944
28945 2005-02-22  Simon Josefsson  <jas@extundo.com>
28946
28947         * modules/iconvme: New file.
28948
28949         * MODULES.html.sh: Add iconvme.
28950
28951 2005-02-22  Simon Josefsson  <jas@extundo.com>
28952
28953         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
28954
28955 2005-02-22  Simon Josefsson  <jas@extundo.com>
28956
28957         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
28958
28959 2005-02-22  Jim Meyering  <jim@meyering.net>
28960
28961         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
28962         s/ifndef/ifdef/.
28963
28964 2005-02-20  Neil Conway  <neilc@samurai.com>
28965
28966         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
28967         returned by OSX/Darwin if the specified buffer is not large
28968         enough for the hostname.
28969
28970 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28971
28972         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
28973         pass it to _help, otherwise the latter coredumps trying to
28974         dereference state.root_argp.
28975
28976 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
28977
28978         * modules/chdir-long (Depends-on): Add memrchr.
28979         * modules/memrchr (Files): Add lib/memrchr.h.
28980         (Include): "memrchr.h".
28981
28982 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
28983
28984         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
28985
28986 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
28987
28988         * lib/memrchr.h: New file.
28989         * lib/chdir-long.c: Include it.
28990         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
28991         Don't bother including stddef.h.
28992
28993 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
28994
28995         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
28996         inclusion.
28997         Include <sys/types.h>, for dev_t.
28998         (ME_DUMMY, ME_REMOTE): Move from here....
28999         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
29000         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
29001         Dmitry V. Levin.
29002         Include mountlist.h first, to test the interface.
29003
29004 2005-01-29  Bruno Haible  <bruno@clisp.org>
29005
29006         * lib/progname.c (program_name): Initialize.
29007         Needed when linking statically on MacOS X.
29008
29009 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
29010
29011         Sync from coreutils.
29012         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
29013         (Depends-on): Add c-strtod.
29014         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
29015
29016 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
29017
29018         Sync from coreutils.
29019         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
29020
29021         Remove files that are specific to coreutils.
29022         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
29023
29024 2005-01-28  Bruno Haible  <bruno@clisp.org>
29025
29026         * modules/javacomp: New file.
29027         * MODULES.html.sh (Java): Add javacomp.
29028
29029 2005-01-28  Bruno Haible  <bruno@clisp.org>
29030
29031         * m4/javacomp.m4: New file, from GNU gettext.
29032
29033 2005-01-28  Bruno Haible  <bruno@clisp.org>
29034
29035         * lib/javacomp.sh.in: New file, from GNU gettext.
29036         * lib/javacomp.h: New file, from GNU gettext.
29037         * lib/javacomp.c: New file, from GNU gettext.
29038
29039 2005-01-26  Simon Josefsson  <jas@extundo.com>
29040
29041         * lib/gai_strerror.c: Use GPL in header.
29042
29043 2005-01-26  Bruno Haible  <bruno@clisp.org>
29044
29045         * modules/javaexec: New file.
29046         * MODULES.html.sh (Java): Add javaexec.
29047
29048 2005-01-26  Bruno Haible  <bruno@clisp.org>
29049
29050         * m4/javaexec.m4: New file, from GNU gettext.
29051
29052 2005-01-26  Bruno Haible  <bruno@clisp.org>
29053
29054         * lib/javaexec.sh.in: New file, from GNU gettext.
29055         * lib/javaexec.h: New file, from GNU gettext.
29056         * lib/javaexec.c: New file, from GNU gettext.
29057
29058 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29059
29060         * modules/lchown (Depends-on): Remove lchown.h
29061
29062 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29063
29064         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
29065         must be defined if the header file was not found, in order
29066         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
29067
29068 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29069
29070         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
29071         initializers for struct pentry_state.
29072         (__argp_error): Check return value of __asprintf
29073         (__argp_failure): Translate error message
29074
29075         * lib/argp-parse.c: Removed braces around the expansion of N_()
29076
29077 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
29078
29079         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
29080         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
29081         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
29082         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
29083         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
29084         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
29085         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
29086         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
29087         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
29088         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
29089         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
29090         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
29091         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
29092         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
29093         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
29094         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
29095         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
29096         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
29097         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
29098         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
29099         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
29100         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
29101         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
29102         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
29103         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
29104         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
29105         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
29106         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
29107         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
29108         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
29109         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
29110         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
29111         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
29112         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
29113         xstrtol.m4, xstrtoumax.m4, yesno.m4:
29114         Use an all-permissive copyright notice, recommended by RMS.
29115
29116 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
29117
29118         * modules/chdir-long (Depends-on): Remove mempcpy.
29119
29120 2005-01-21  Jim Meyering  <jim@meyering.net>
29121
29122         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
29123         same value as for Solaris 9.
29124
29125         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
29126         component length.  This included changing the parameter to be
29127         of type `char *' rather than `char const *'.
29128         * lib/chdir-long.h (chdir_long): Update prototype.
29129
29130         * lib/openat.c (fdopendir, fstatat): New functions.
29131         * lib/openat.h: Include headers required for use of DIR and struct
29132         stat.
29133         [AT_SYMLINK_NOFOLLOW]: Define.
29134         (fdopendir, fstatat): Add prototypes.
29135
29136 2005-01-21  Bruno Haible  <bruno@clisp.org>
29137
29138         * modules/classpath: New file.
29139         * MODULES.html.sh (Java): Add classpath.
29140
29141 2005-01-21  Bruno Haible  <bruno@clisp.org>
29142
29143         * lib/classpath.h: New file, from GNU gettext.
29144         * lib/classpath.c: New file, from GNU gettext.
29145
29146 2005-01-20  Simon Josefsson  <jas@extundo.com>
29147
29148         * modules/version-etc-fsf: New file.
29149
29150 2005-01-20  Simon Josefsson  <jas@extundo.com>
29151
29152         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
29153         * lib/version-etc.c: Remove version_etc_copyright.
29154         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
29155         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
29156
29157 2005-01-20  Simon Josefsson  <jas@extundo.com>
29158
29159         * lib/base64.h (isbase64): Add.
29160
29161         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
29162         using a unsigned prototype, don't inline.
29163         (base64_decode): Use it.
29164
29165 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
29166
29167         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
29168         it.
29169
29170 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
29171
29172         * lib/save-cwd.c (save_cwd): Remove code to support the case
29173         where fchdir is missing or flaky.
29174
29175 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
29176
29177         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
29178
29179 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
29180
29181         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
29182         AC_LIBSOURCES now does this.
29183         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
29184         with new ullong_max module.
29185
29186 2005-01-19  Bruno Haible  <bruno@clisp.org>
29187
29188         * modules/sh-quote: New file.
29189         * MODULES.html.sh (Executing programs): Add sh-quote.
29190
29191 2005-01-19  Bruno Haible  <bruno@clisp.org>
29192
29193         * lib/sh-quote.h: New file, from GNU gettext.
29194         * lib/sh-quote.c: New file, from GNU gettext.
29195
29196 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
29197
29198         Merge from coreutils.
29199         * m4/ullong_max.m4: New file.
29200         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
29201         (gl_MACROS): Assume localeconv exists.
29202
29203 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
29204
29205         Merge changes from coreutils, as described below in several
29206         changelogs dated today.
29207
29208         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
29209         (O_DIRECTORY): Remove; not needed here, since "." must be
29210         a directory.  All uses removed.
29211         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
29212         universal on Suns, and we also need to test for IRIX.
29213         Revamp code to use 'if' rather than '#if'.
29214         Avoid unnecessary comparison of cwd->desc to 0.
29215
29216         * lib/utimens.c (futimens): Robustify the previous patch, by checking
29217         for known valid error numbers rather than observed invalid ones.
29218
29219 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
29220
29221         * modules/ullong_max: New file.
29222
29223         * modules/chdir-long, modules/openat: New files.
29224         * modules/save-cwd (Depends-on): Depend on chdir-long.
29225         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
29226
29227 2005-01-18  Jim Meyering  <jim@meyering.net>
29228
29229         Merge from coreutils.
29230         * m4/chdir-long.m4, m4/openat.m4: New files.
29231         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
29232         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
29233         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
29234         is sane and DOES follow symlinks.  Besides, testing 20 different
29235         systems found no broken chown implementations.
29236         Prompted by a change in rsync's copy of this macro.
29237         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
29238
29239         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
29240
29241         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
29242         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
29243         NULL-means-set-to-current-time semantics.
29244         Remove temporary file immediately, rather than waiting
29245         for configure's at-exit trap code to do it.
29246
29247 2005-01-18  Jim Meyering  <jim@meyering.net>
29248
29249         * lib/version-etc.c (version_etc_copyright): Update copyright date.
29250
29251         * lib/utimens.c (futimens): Account for the fact that futimes
29252         can also fail with errno == ENOSYS or errno == ENOENT.
29253         Patch from Dmitry V. Levin.
29254
29255         Change the name of the robust chdir function from chdir to chdir_long.
29256         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
29257         (restore_cwd): Use chdir_long, not chdir.
29258         * lib/chdir-long.c: Renamed from chdir.c.
29259         * lib/chdir-long.h: Renamed from chdir.h.
29260         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
29261         Hurd.
29262
29263 2005-01-18  Bruno Haible  <bruno@clisp.org>
29264
29265         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
29266         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
29267         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
29268         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
29269         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
29270         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
29271         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
29272         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
29273         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
29274         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
29275         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
29276         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
29277         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
29278         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
29279         Use an all-permissive copyright notice, recommended by RMS.
29280
29281 2005-01-18  Bob Proulx  <bob@proulx.com>
29282
29283         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
29284         simplify offsetof() macro construct to avoid compile failure with
29285         native HP-UX 11.0 ANSI C compiler.
29286
29287 2005-01-17  Bruno Haible  <bruno@clisp.org>
29288
29289         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
29290         redundant because stpncpy.m4 takes care of it.
29291
29292 2005-01-17  Bruno Haible  <bruno@clisp.org>
29293
29294         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
29295
29296 2005-01-17  Bruno Haible  <bruno@clisp.org>
29297
29298         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
29299         used.
29300
29301 2005-01-17  Bruno Haible  <bruno@clisp.org>
29302
29303         * lib/fwriteerror.h (fwriteerror): Change specification to include
29304         fclose.
29305         * lib/fwriteerror.c: Include <stdbool.h>.
29306         (fwriteerror): At the end, close the file stream. Record whether
29307         stdout was already closed.
29308
29309 2005-01-17  Bruno Haible  <bruno@clisp.org>
29310
29311         * lib/execute.c (environ): Declare if needed.
29312         * lib/pipe.c (environ): Likewise.
29313         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
29314
29315 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29316
29317         * modules/argp: Depend on vsnprintf
29318
29319 2005-01-10  Jim Meyering  <jim@meyering.net>
29320
29321         * modules/closeout (Depends-on): Add atexit.
29322
29323 2005-01-06  Bruno Haible  <bruno@clisp.org>
29324
29325         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
29326
29327 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
29328
29329         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
29330         definitions to be after all include files, to avoid collisions.
29331         Problem reported by Bob Proulx.
29332
29333 2005-01-04  Jim Meyering  <jim@meyering.net>
29334
29335         Changes imported from coreutils.
29336         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
29337         as the mkstemp template, use a temporary directory and an
29338         8.3-friendly template to avoid trouble on systems like DJGPP.
29339         Reported by Juan M. Guerrero via Stepan Kasal.
29340         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
29341         close. Remove the temporary directory right away, rather than waiting
29342         for configure's at-exit trap code to do it.
29343         Suggestion from Stepan Kasal.
29344
29345 2005-01-01  Simon Josefsson  <jas@extundo.com>
29346
29347         * gnulib-tool: Print #include directives when --import'ing.
29348
29349 2004-12-28  Simon Josefsson  <jas@extundo.com>
29350
29351         * tests/test-base64.c: Include required header files.  Remove
29352         unused variables.
29353
29354 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
29355
29356         * modules/error (Depends-on): Remove gettext.
29357
29358 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
29359
29360         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
29361         not needed.  This removes a dependency on the gettext module.
29362         [defined _LIBC]: Do not include <libintl.h>; not needed.
29363
29364 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
29365
29366         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
29367         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
29368
29369 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
29370
29371         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
29372         HAVE_DECL_STRTOLD.
29373
29374 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
29375
29376         * modules/getdate (Depends-on): Remove alloca-opt.
29377
29378 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
29379
29380         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
29381
29382 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
29383
29384         * lib/argp-parse.c: Include <stddef.h>.
29385         (alignof, alignto): New macros.
29386         (parser_init): Don't assume that void * is aligned sufficiently
29387         for struct option.
29388
29389         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
29390         need to extend the stack.
29391         (YYINITDEPTH): New macro, so that the initial stack isn't overly
29392         large.
29393
29394 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29395
29396         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
29397
29398 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
29399
29400         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
29401         (2004-10-24) change.  Apparently this was a false alarm.
29402
29403         * modules/getdate: Depend on alloca-opt, not alloca.
29404
29405 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
29406
29407         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
29408         Remove now-obsolete comment about AIX.
29409         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
29410         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
29411         (YYMAXDEPTH): New macro.
29412
29413 2004-12-18  Simon Josefsson  <jas@extundo.com>
29414
29415         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
29416
29417 2004-12-18  Bruno Haible  <bruno@clisp.org>
29418
29419         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
29420
29421 2004-12-18  Bruno Haible  <bruno@clisp.org>
29422
29423         * lib/fatal-signal.c (fatal_signals): Make non-const.
29424         (init_fatal_signals): New function.
29425         (uninstall_handlers, install_handlers): Ignore signals that were set to
29426         SIG_IGN.
29427         (at_fatal_signal): Call init_fatal_signals.
29428         (init_fatal_signal_set): Likewise. Ignore signals that were set to
29429         SIG_IGN.
29430         Reported by Paul Eggert.
29431
29432 2004-12-18  Bruno Haible  <bruno@clisp.org>
29433
29434         * doc/alloca.texi: New file.
29435         * doc/alloca-opt.texi: New file.
29436
29437 2004-12-17  Jim Meyering  <jim@meyering.net>
29438
29439         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
29440         Otherwise, install-sh could exit with improper exit status when
29441         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
29442
29443 2004-12-16  Simon Josefsson  <jas@extundo.com>
29444
29445         * tests/test-base64.c: Add license.
29446
29447 2004-12-15  Stepan Kasal  <address@hidden>
29448
29449         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
29450
29451 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
29452
29453         * modules/getcwd (Files): Add m4/d-ino.m4.
29454         Suggested by Mark D. Baushke.
29455
29456 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
29457
29458         * lib/getdate.y (textint): New member "negative".
29459         (time_zone_hhmm): New function.
29460         Expect 14 shift-reduce conflicts, not 13.
29461         (o_colon_minutes): New rule.
29462         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
29463         (yylex): Set the "negative" member of signed numbers.
29464
29465 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
29466
29467         * doc/getdate.texi (Time of day items, Time zone items):
29468         Describe new formats +00:00, UTC+00:00.
29469
29470 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
29471
29472         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
29473         spurious "-l"s.  Problem reported by Stepan Kasal.
29474
29475 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
29476
29477         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
29478         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
29479
29480 2004-12-04  Simon Josefsson  <jas@extundo.com>
29481
29482         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
29483         Vandoorselaere <yoann@prelude-ids.org>.
29484
29485 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
29486
29487         Changes imported from coreutils.
29488         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
29489         exist.
29490         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
29491
29492 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
29493
29494         Changes imported from coreutils.
29495         * lib/hard-locale.c: Assume <locale.h> exists.
29496         Include "strdup.h".
29497         (GLIBC_VERSION): New macro.
29498         (hard_locale): Assume setlocale exists.
29499         Rewrite to avoid #ifdef.
29500         Use strdup rather than malloc + strcpy.
29501         * lib/human.c: Assume <locale.h> exists.
29502         (human_readable): Assume localeconv exists.
29503
29504 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
29505
29506         * modules/hard-locale (Depends-on): Add strdup.
29507
29508 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
29509
29510         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
29511         convert T2, not T.  (Imported from libc.)
29512
29513 2004-11-30  Simon Josefsson  <jas@extundo.com>
29514
29515         * modules/restrict (License): Change to LGPL.
29516
29517 2004-11-30  Simon Josefsson  <jas@extundo.com>
29518
29519         * m4/restrict.m4: Add copyright and copying conditions.
29520
29521 2004-11-30  Simon Josefsson  <jas@extundo.com>
29522
29523         * m4/base64.m4: New file.
29524
29525 2004-11-30  Simon Josefsson  <jas@extundo.com>
29526
29527         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
29528         base64.
29529
29530         * tests/test-base64.c: New file.
29531
29532         * modules/base64: New file.
29533
29534 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
29535
29536         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
29537         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
29538
29539         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
29540
29541 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
29542
29543         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
29544         (__getcwd.c): Don't restore errno; glibc doesn't.
29545         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
29546         first, falling back to our code only if its results look suspicious.
29547         Ensure that the resulting buffer is only as large as necessary.
29548
29549         * lib/readutmp.c: Include readutmp.h first.
29550         Include <errno.h>, since readutmp.h no longer does that.
29551         * lib/readutmp.h: Don't include <errno.h>,
29552         <sys/param.h>, <time.h>; not needed to establish interface.
29553         (errno): Remove decl.
29554         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
29555         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
29556         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
29557
29558 2004-11-28  Simon Josefsson  <jas@extundo.com>
29559
29560         * lib/base64.h, base64.c: New file.
29561
29562 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
29563
29564         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
29565
29566 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
29567
29568         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
29569         (Depends-on): Remove pathmax, same.  Add mempcpy.
29570         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
29571         (Makefile.am): Append getcwd.h to lib_SOURCES.
29572         (Include): Add getcwd.h.
29573         (Maintainer): Change from Jim Meyering to "all, glibc",
29574         since getdate now uses intended-for-glibc code.
29575         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
29576         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
29577
29578 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
29579
29580         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
29581         HP's ANSI C compiler.
29582         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
29583         Declaring int functions causes warnings on some modern systems and
29584         shouldn't be needed to compile on ancient ones.
29585         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
29586         defined.
29587
29588         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
29589         with the following changes.
29590         (__set_errno): Parenthesize properly.
29591         Include <stdbool.h>.
29592         (MIN, MAX, MATCHING_INO): New macros.
29593         (__getcwd): Define with prototype, not K&R form.
29594         Use heuristics to allocate default buffer on stack if possible.
29595         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
29596         behavior, and to avoid the PATH_MAX limit when computing
29597         ../../../../...
29598         Use MATCHING_INO to compare inode number to file.
29599         Check for arithmetic overflow in size calculations.
29600         Fix bug in reallocation of dot array that caused getcwd to fail
29601         on directories nested deeper than 75.
29602         Be more careful about saving errno on error.
29603         Do not use realloc; use only free+malloc, as this is a bit
29604         more flexible and avoids a needless copy operation.
29605         Do not inspect st_dev and st_ino for symbolic links; POSIX
29606         doesn't specify the latter.
29607         Check for closedir errors.
29608         Avoid needless casts.
29609         Use "#ifdef weak_alias" around weak_alias, to be like other
29610         glibc code.
29611         The following changes to getcwd.c have effect only when used in
29612         gnulib; they have no effect inside glibc proper.
29613         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
29614         as alloca isn't used.
29615         (alloca, __alloca): Likewise.
29616         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
29617         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
29618         unconditionally, as gnulib assumes C89 or better.
29619         Do not include <sys/param.h>.
29620         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
29621         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
29622         better.
29623         (NULL) [!defined NULL]: Remove; we assume C89 or better.
29624         Include <dirent.h> in a way that is compatible with modern Autoconf.
29625         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
29626         New macros, if not already defined.
29627         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
29628         Use "_LIBC", not "defined _LIBC", for consistency.
29629         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
29630         a mempcpy module.
29631         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
29632         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
29633         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
29634         credit only to Jim Meyering and adjust the copyright dates.
29635         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
29636         <stdlib.h>, <unistd.h>, "pathmax.h".
29637         Instead, include "xgetcwd.h" (first) and "getcwd.h".
29638         (INITIAL_BUFFER_SIZE): Remove.
29639         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
29640
29641 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
29642
29643         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
29644         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
29645         Use the _ONCE methods, for efficiency.
29646         Check for fcntl.h.  In test program, include <errno.h>
29647         and <fcntl.h> if available.  Remove old K&R cruft from
29648         test program.  Check for common errors in GNU/Linux,
29649         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
29650         don't do AC_LIBOBJ, as that's getcwd.m4's job.
29651         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
29652         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
29653         name accordingly.
29654         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
29655         accommodate new getcwd.c.
29656         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
29657         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
29658         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
29659         that's all we need now.
29660
29661 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29662
29663         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
29664         argp-parse.c depends on getopt internals, that means we should
29665         always use our getopt, to be on the safe side.
29666         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
29667         order not to spoil the result of an eventual previous invocation
29668         of gl_GETOPT_SUBSTITUTE.
29669
29670 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29671
29672         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
29673         redefinition warnings. To avoid them, include the defines
29674         in `#if !defined __need_getopt ... #endif'. The only place
29675         where __getopt_argv_const is used is in definitions
29676         of getopt_long and getopt_long_only below, which are as well
29677         protected by `#ifndef __need_getopt'.
29678         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
29679         __need_getopt after including <stdio.h> and <unistd.h> These
29680         headers might have defined it.
29681
29682 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
29683
29684         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
29685
29686 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
29687
29688         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
29689         (futimens): New function, which uses futimes if available.
29690         (futimens, utimens): Support timespec==NULL, with same semantics
29691         as utime and utimens.
29692         * lib/utimens.h (futimens): New decl.
29693
29694 2004-11-23  Jim Meyering  <jim@meyering.net>
29695
29696         * lib/getopt_.h: Remove trailing blanks.
29697
29698 2004-11-23  Jim Meyering  <jim@meyering.net>
29699
29700         * lib/__fpending.c: Add comment.
29701
29702 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
29703
29704         * modules/canonicalize (Depends-on): Add xreadlink.
29705         Problem reported by James Youngman.
29706
29707 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
29708
29709         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
29710         New macros.
29711         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
29712         optopt): Use them instead of invoking ## directly; otherwise, the
29713         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
29714
29715 2004-11-19  Bruno Haible  <bruno@clisp.org>
29716
29717         * lib/strtok_r.c: Move comments from here...
29718         * lib/strtok_r.h: ... to here.
29719
29720 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29721
29722         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
29723         implementations that mishandle size_t overflow.
29724
29725 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29726
29727         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
29728         might fail.  Problem reported by Yoann Vandoorselaere.
29729         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
29730         implementations that mishandle size_t overflow.
29731
29732 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
29733
29734         * modules/canon-host (Depends-on): Add strdup.
29735
29736 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
29737
29738         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
29739
29740 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
29741
29742         * lib/canon-host.c: Include "strdup.h".
29743         (canon_host): Use getaddrinfo if available, so that IPv6 works.
29744         Use strdup instead of malloc/strcpy to duplicate strings.
29745
29746         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
29747         (human_space_before_unit): New constant.
29748         * lib/human.c (human_readable): Support it.
29749
29750         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
29751         (xgetcwd): Set errno correctly when failing.
29752         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
29753         the failure is actually due to a PATH_MAX problem.
29754
29755         Further getopt changes to make it more likely that glibc will
29756         buy the changes back.
29757         * lib/getopt.c (POSIXLY_CORRECT): New constant.
29758         (getopt): Use it, so to preserve glibc semantic
29759         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
29760         when compiling for libc.
29761         * lib/getopt_.h (__getopt_argv_const): Bring it back.
29762         (getopt_long, getopt_long_only): Use it.
29763
29764         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
29765         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
29766         (getopt): Argv is now char * const *, as per standard.
29767         (_getopt_internal_r, _getopt_internal): Argv is now char **,
29768         not char *__getopt_argv_const *.
29769         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
29770         _getopt_long_only_r): Likewise.
29771         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
29772         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
29773         _getopt_long_r, _getopt_long_only_r): Likewise.
29774         * lib/getopt_.h (__getopt_argv_const): Remove.
29775         (getopt): Argv is now char * const *, as per standard.
29776
29777         * lib/getdate.y (tORDINAL): New token.
29778         (day, relunit): Allow it for relative times.
29779         (relative_time_table): Use tORDINAL for ordinals.
29780
29781 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
29782
29783         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
29784         Document that "second" isn't allowed as an ordinal number.
29785
29786 2004-11-16  Jim Meyering  <jim@meyering.net>
29787
29788         * modules/closeout (Depends-on): Add fpending.
29789
29790 2004-11-15  Jim Meyering  <jim@meyering.net>
29791
29792         * lib/closeout.c: Include "__fpending.h" once again.
29793         Include <stdbool.h>.
29794         (close_stdout): Don't fail just because stdout was closed initially,
29795         since some programs don't write to stdout in the normal course of
29796         operation (other than --version and --help), and we don't want this
29797         function to make e.g. `touch file >&-' fail.
29798         But do fail if it was closed and someone has tried to write to it.
29799         E.g., `printf foo >&-' must fail.
29800
29801 2004-11-13  Jim Meyering  <jim@meyering.net>
29802
29803         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
29804
29805 2004-11-12  Simon Josefsson  <jas@extundo.com>
29806
29807         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
29808         small doc fix is still pending.
29809
29810 2004-11-11  Simon Josefsson  <jas@extundo.com>
29811
29812         * modules/strtok_r: New file.
29813
29814         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29815         strtok_r.
29816
29817 2004-11-11  Simon Josefsson  <jas@extundo.com>
29818
29819         * m4/strtok_r.m4: New file.
29820
29821         * m4/getopt.m4: Replace opterr.
29822
29823 2004-11-11  Simon Josefsson  <jas@extundo.com>
29824
29825         * lib/strtok_r.h, strtok_r.c: New file.
29826
29827 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
29828
29829         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
29830         of replacing opterr, getopt, etc.  This should handle the
29831         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
29832
29833 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
29834
29835         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
29836         we can stop lying to compilers about the constness of argv when we
29837         are compiled outside glibc.
29838         (getopt, getopt_long, getopt_long_only): Use it.
29839         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
29840         _getopt_internal, getopt): Likewise.
29841         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
29842         _getopt_long_only_r): Likewise.
29843         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
29844         _getopt_long_r, _getopt_long_only_r): Likewise.
29845
29846         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
29847         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
29848         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
29849         the other external symbols.
29850         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
29851         declaration, since the above renaming now works around collisions.
29852
29853 2004-11-11  Jim Meyering  <jim@meyering.net>
29854
29855         * lib/linebreak.c: Remove trailing blanks.
29856         * lib/alloca_.h: Likewise.
29857         * lib/acosl.c: Likewise.
29858         * lib/euidaccess.c: Likewise.
29859         * lib/allocsa.h: Likewise.
29860
29861 2004-11-10  Simon Josefsson  <jas@extundo.com>
29862
29863         * m4/getaddrinfo.m4: New file.
29864
29865 2004-11-10  Simon Josefsson  <jas@extundo.com>
29866
29867         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
29868
29869 2004-11-10  Simon Josefsson  <jas@extundo.com>
29870
29871         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29872         getaddrinfo.
29873
29874         * modules/getaddrinfo: New file.
29875
29876 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
29877
29878         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
29879
29880 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
29881
29882         * lib/mktime.c (SHR): New macro, which is a portable
29883         substitute for >> that should work even on Crays.
29884         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
29885         Problem reported by Mark D. Baushke in
29886         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
29887         * lib/getdate.y (SHR): Likewise.
29888         (tm_diff): Use it.
29889         * lib/strftime.c (SHR): Likewise.
29890         (tm_diff): Use it.
29891         * lib/quotearg.c (struct quoting_options): Use unsigned int for
29892         quote_these_too, so that right shifts are well defined.  All uses
29893         changed.
29894
29895 2004-11-10  Jim Meyering  <jim@meyering.net>
29896
29897         Ensure that no close failure goes unreported.
29898         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
29899         return early when it seems there's nothing to flush.
29900         Don't include __fpending.h.
29901
29902 2004-11-10  Jim Meyering  <jim@meyering.net>
29903
29904         * modules/closeout (Depends-on): Remove fpending.
29905
29906 2004-11-10  Jim Meyering  <jim@meyering.net>
29907
29908         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
29909
29910 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
29911
29912         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
29913         gl_FUNC_STRFTIME.
29914         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
29915         and AC_REQUIRE when possible, to avoid duplicate checks.
29916         Check for <wchar.h>.
29917
29918 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
29919
29920         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
29921
29922 2004-11-09  Bruno Haible  <bruno@clisp.org>
29923
29924         * m4/sockpfaf.m4: New file.
29925
29926 2004-11-05  Bruno Haible  <bruno@clisp.org>
29927
29928         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
29929         Reported by Mark D. Baushke <mdb@cvshome.org>.
29930
29931 2004-11-04  Bruno Haible  <bruno@clisp.org>
29932
29933         2004-09-11  Bruno Haible  <bruno@clisp.org>
29934                 * allocsa.valgrind: New file.
29935         2004-02-06  Bruno Haible  <bruno@clisp.org>
29936                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
29937                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
29938                 Reported by Christopher Seip <chris.seip@hp.com>.
29939
29940 2004-11-04  Bruno Haible  <bruno@clisp.org>
29941
29942         * modules/allocsa (Files): Add lib/allocsa.valgrind.
29943         (Makefile.am): Distribute it.
29944
29945 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
29946
29947         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
29948         with errno == ERANGE if the buffer is too small.
29949         Problem reported by Mark D. Baushke.
29950
29951 2004-11-03  Albert Chin  <china@thewrittenword.com>
29952             Paul Eggert  <eggert@cs.ucla.edu>
29953
29954         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
29955         equivalent, substitute $ac_type for equivalent type rather than
29956         blindly using uint32_t *always* which won't work if uint32_t is not
29957         available.  Define _UINT32_T to work around typedef of uint32_t if
29958         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
29959         2.5.1.
29960
29961 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
29962
29963         * m4/jm-macros.m4: Sync from coreutils.
29964         (gl_MACROS): Check for mbrlen, for pathchk.
29965         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
29966
29967 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
29968
29969         * lib/xreadlink.c (MAXSIZE): New macro.
29970         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
29971         size does not exceed MAXSIZE.  Avoid cast.
29972         As suggested by Mark D. Baushke in
29973         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
29974         if readlink fails with buffer size just under MAXSIZE, try again
29975         with MAXSIZE.
29976
29977 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
29978
29979         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
29980
29981 2004-11-02  Derek R. Price  <derek@ximbiot.com>
29982         and  Paul Eggert  <eggert@cs.ucla.edu>
29983
29984         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
29985         (get_date): Overparenthesize to avoid GCC warning.
29986
29987 2004-11-02  Bruno Haible  <bruno@clisp.org>
29988
29989         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
29990         returns void.
29991
29992 2004-11-02  Bruno Haible  <bruno@clisp.org>
29993
29994         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
29995         function returns void.
29996
29997 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
29998
29999         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
30000         fflush_unlocked, flockfile, funlockfile, funlockfile,
30001         fputs_unlocked, putc_unlocked.
30002
30003 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
30004
30005         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
30006         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
30007         already declared.
30008
30009 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
30010
30011         * modules/getdate (Files): Add doc/getdate.texi.
30012         (Depends-on): Add setenv, xalloc.
30013
30014 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
30015
30016         * lib/getdate.y: Add support for TZ="foo" within a date string.
30017         Fix some bugs near time_t boundaries.  Reject dates with
30018         out-of-range components, e.g., "Sept 31".
30019         Include <stdlib.h>, "setenv.h", "xalloc.h".
30020         (ISDIGIT_LOCALE): Remove; unused.
30021         Note that the TZ and time functions used here are not reentrant.
30022         (mktime_ok, get_tz): New functions.
30023         (TZBUFSIZE): New constant.
30024         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
30025         This requires that we sometimes generate our own TZ="XXX..." setting.
30026
30027 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
30028
30029         * doc/getdate.texi: New file, from coreutils with modifications for
30030         the new TZ parsing.
30031
30032 2004-10-27  Derek R. Price  <derek@ximbiot.com>
30033
30034         * lib/mktime.c (not_equal_tm): Remove redundant check.
30035
30036 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30037
30038         * modules/regex (lib_SOURCES): Add regex.c.
30039         Reported by James Youngman in
30040         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
30041
30042 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30043
30044         * lib/getdate.y: Use Bison 1.875 features, and some minor
30045         code cleanups.  This change does not affect semantics.
30046         Don't include <stdlib.h>; no longer needed.
30047         Don't include unlocked-io.h; only the "#if TEST" code uses
30048         stdio, and performance isn't crucial there.
30049         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
30050         Bison 1.875 features as described below.
30051         All uses of "PC." replaced by "pc->".
30052         (YYSTYPE): Add a forward declaration.
30053         (yylex, yyerror): Use full prototypes in forward decls.
30054         Use "%pure-parser" rather than obsolescent "%pure_parser".
30055         Use %parse-param and %lex-param instead of obsolescent
30056         YYPARSE_PARAM and YYLEX_PARAM.
30057         (meridian_table, month_and_day_table, time_units_table,
30058         relative_time_table, time_zone_table, military_table,
30059         lookup_zone, lookup_word, get_date):
30060         Use NULL instead of 0 where appropriate.
30061         (to_hour): Avoid abort (), to avoid a dependency on
30062         stdlib.h.
30063         (yyerror, yylex): Now accepts parser_control * arg.
30064         (main) [TEST]: Use '\0' rather than 0 for char.
30065
30066 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30067
30068         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
30069
30070 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30071
30072         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
30073         It's now the caller's responsibility to handle the case where
30074         !HAVE_GETPAGESIZE && !defined getpagesize.
30075
30076         * lib/mktime.c (leapyear): Arg is long int, not int.
30077
30078 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
30079
30080         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
30081
30082 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
30083
30084         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
30085         missing.  Problem reported by James Youngman.
30086
30087 2004-10-16  Simon Josefsson  <jas@extundo.com>
30088
30089         * gnulib-tool: Fix comments.  Fix parse problem.
30090         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
30091
30092 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
30093
30094         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
30095         implementation of getopt_long.  Problem reported by Alexander Taler in:
30096         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
30097
30098 2004-10-15  Bruno Haible  <bruno@clisp.org>
30099
30100         * gnulib-tool: Untabify. Initialize supplied_libname.
30101         (func_usage): More homogenous output.
30102         (func_modules_transitive_closure, func_modules_to_filelist,
30103         func_emit_lib_Makefile_am): New functions.
30104         (func_import): New function, extracted from big case statement. Use
30105         func_get_license, func_modules_transitive_closure,
30106         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
30107         opt_lgpl. Don't use test -a, as it's not portable.
30108         (func_create_testdir): Use func_modules_transitive_closure,
30109         func_modules_to_filelist, func_emit_lib_Makefile_am.
30110
30111 2004-10-15  Bruno Haible  <bruno@clisp.org>
30112
30113         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
30114
30115 2004-10-15  Bruno Haible  <bruno@clisp.org>
30116
30117         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
30118         the portions belonging to each module.
30119         Suggested by Derek Robert Price <derek@ximbiot.com>.
30120
30121 2004-10-12  Simon Josefsson  <jas@extundo.com>
30122
30123         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
30124         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
30125         to real functions.
30126
30127 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30128
30129         * modules/vsnprintf: New file.
30130
30131 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30132
30133         * m4/vsnprintf.m4: New file.
30134
30135 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30136
30137         * lib/vsnprintf.h: New file.
30138         * lib/vsnprintf.c: New file.
30139
30140 2004-10-11  Bruno Haible  <bruno@clisp.org>
30141
30142         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
30143         vsnprintf.
30144
30145 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30146
30147         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
30148
30149 2004-10-07  Bruno Haible  <bruno@clisp.org>
30150
30151         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
30152         fits into the provided buffer.
30153
30154 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
30155
30156         * lib/diacrit.c, diacrit.h: Add GPL notice.
30157
30158         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
30159         notice.
30160         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
30161         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
30162         This avoids a potential constant-folding bug.
30163
30164 2004-10-05  Bruno Haible  <bruno@clisp.org>
30165
30166         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
30167         for the declaration of strsep.
30168
30169 2004-10-05  Bruno Haible  <bruno@clisp.org>
30170
30171         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
30172
30173 2004-10-04  Simon Josefsson  <jas@extundo.com>
30174
30175         * modules/memmem: New file.
30176         * tests/test-memmem.c: New file.
30177         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
30178
30179 2004-10-04  Simon Josefsson  <jas@extundo.com>
30180
30181         * m4/memmem.m4: New file.
30182
30183 2004-10-04  Simon Josefsson  <jas@extundo.com>
30184
30185         * lib/memmem.h: New file.
30186         * lib/memmem.c: New file, taken from glibc.
30187
30188 2004-10-04  Simon Josefsson  <jas@extundo.com>
30189
30190         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
30191         '#ifdef USE_UNLOCKED_IO'.
30192
30193 2004-10-04  Simon Josefsson  <jas@extundo.com>
30194
30195         * config/srclist.txt: Add memmem from glibc.
30196
30197 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
30198
30199         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
30200
30201         * modules/argmatch, modules/argp, modules/closeout, modules/error,
30202         modules/exclude, modules/getdate, modules/getline,
30203         modules/getndelim2, modules/getpass, modules/getpass-gnu,
30204         modules/getusershell, modules/linebuffer, modules/md5,
30205         modules/mountlist, modules/posixtm, modules/readtokens,
30206         modules/readutmp, modules/regex, modules/sha1,
30207         modules/version-etc, modules/yesno:
30208         Remove dependency on unlocked-io.
30209
30210 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
30211
30212         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
30213
30214         * m4/unlocked-io.m4: Add copyright notice.
30215         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
30216
30217 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
30218
30219         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
30220         * lib/xmalloc.c (xmemdup): Likewise.
30221         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
30222         XFREE): Remove these long-obsolescent macros.
30223         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
30224         * lib/xstrdup.c: Remove.
30225
30226         * lib/regex.c (re_comp): Cast gettext return value to char *,
30227         Problem reported by Martin Neitzel via Mark D. Baushke.
30228
30229 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
30230
30231         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
30232         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
30233         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
30234         regex.c, sha1.c, version-etc.c, yesno.c:
30235         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
30236         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
30237         the includer's responsibility.
30238
30239         Sync from coreutils.
30240
30241         * lib/modechange.c (mode_compile): Don't decrement a pointer that
30242         points to the start of a string, as the C Standard says the
30243         resulting behavior is undefined.
30244
30245         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
30246         simple -> simple_backups, numbered_existing ->
30247         numbered_existing_backups, numbered -> numbered_backups
30248         to avoid shadowing problems.  All uses changed.
30249         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
30250         * lib/backupfile.c (check_extension, numbered_backup):
30251         Rename locals to avoid shadowing 'basename'.
30252         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
30253         once.
30254
30255         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
30256         * lib/.cvsignore: Add getopt.h.
30257
30258 2004-10-04  Bruno Haible  <bruno@clisp.org>
30259
30260         * modules/README: New file.
30261         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
30262         not a module.
30263
30264 2004-10-02  Jim Meyering  <jim@meyering.net>
30265
30266         * lib/dirfd.h, getpagesize.h: Add copyright notice.
30267
30268 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30269
30270         * modules/strsep: New file.
30271
30272 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30273
30274         * m4/strsep.m4: New file.
30275
30276 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30277
30278         * lib/strsep.h: New file.
30279         * lib/strsep.c: New file.
30280
30281 2004-10-01  Simon Josefsson  <jas@extundo.com>
30282
30283         * lib/snprintf.c (snprintf): Handle size==0.
30284
30285 2004-10-01  Simon Josefsson  <jas@extundo.com>
30286             Bruno Haible  <bruno@clisp.org>
30287
30288         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
30289         (snprintf): Declare 'args'.
30290
30291 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
30292
30293         * lib/snprintf.c: Remove comments as to why each header is needed.
30294
30295 2004-10-01  Bruno Haible  <bruno@clisp.org>
30296
30297         * MODULES.html.sh: Add strsep.
30298
30299 2004-09-30  Simon Josefsson  <jas@extundo.com>
30300
30301         * modules/snprintf: New file.
30302
30303 2004-09-30  Simon Josefsson  <jas@extundo.com>
30304
30305         * m4/snprintf.m4: New file.
30306
30307 2004-09-30  Simon Josefsson  <jas@extundo.com>
30308
30309         * lib/snprintf.h, lib/snprintf.c: New files.
30310
30311 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30312
30313         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
30314         (hol_entry_help): Never translate an empty string.
30315         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
30316         * lib/argp.h (OPTION_NO_TRANS): New option.
30317
30318 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
30319
30320         * modules/argp (Maintainer): Replace Simon Josefsson
30321         by Sergey Poznyakoff.
30322
30323 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
30324
30325         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
30326         changes merged back into glibc.
30327
30328 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
30329
30330         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
30331
30332 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
30333
30334         * lib/xvasprintf.c: Include xalloc.h.
30335         (xvasprintf): Use xalloc_die, not xmalloc_die.
30336
30337 2004-09-29  Bruno Haible  <bruno@clisp.org>
30338
30339         * modules/alloca-opt: New file, derived from modules/alloca.
30340         * modules/allocsa: Depend on alloca-opt instead of alloca.
30341         * modules/setenv: Likewise.
30342         * modules/vasnprintf: Likewise.
30343         * MODULES.html.sh: Add alloca-opt.
30344
30345 2004-09-28  Simon Josefsson  <jas@extundo.com>
30346
30347         * gnulib-tool: New parameter --lgpl, to asseert that modules are
30348         LGPL, and to replace license template from GPL to LGPL.
30349
30350 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
30351
30352         * modules/dummy: Change license to LGPL.
30353
30354 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
30355
30356         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
30357
30358 2004-09-24  Simon Josefsson  <jas@extundo.com>
30359
30360         * modules/minmax (License): Change from GPL to LGPL.
30361
30362 2004-09-23  Simon Josefsson  <jas@extundo.com>
30363
30364         * gnulib-tool (--import): Typo.
30365
30366 2004-09-23  Simon Josefsson  <jas@extundo.com>
30367
30368         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
30369
30370 2004-09-22  Bruno Haible  <bruno@clisp.org>
30371
30372         * modules/*: Add 'License' field.
30373         * gnulib-tool: Accept --extract-license option.
30374         (func_get_license): New function.
30375
30376 2004-09-21  Bruno Haible  <bruno@clisp.org>
30377
30378         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
30379         Reported by Simon Josefsson.
30380
30381 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
30382
30383         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
30384         gl_AC_TYPE_LONG_LONG.
30385
30386 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
30387
30388         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
30389
30390 2004-09-18  Simon Josefsson  <jas@extundo.com>
30391         and  Paul Eggert  <eggert@cs.ucla.edu>
30392
30393         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
30394         calls with autoreconf.  Define GL_LIB.
30395
30396 2004-09-14  Karl Berry  <karl@gnu.org>
30397
30398         * config/srclist.txt: unsync setenv.c, sigh.
30399
30400 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30401
30402         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
30403         Problem reported by Bruno Haible in:
30404         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
30405
30406 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30407
30408         * config/srclist.txt: Comment out argp-pvh.c.
30409
30410 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
30411
30412         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
30413         in case some system header has #define'd it.  Problem reported by
30414         Soeren D. Schulze in
30415         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
30416
30417 2004-09-09  Karl Berry  <karl@gnu.org>
30418
30419         * regex.[ch]: delete from the root.  These were supposed to be
30420                 synced with emacs cvs, but this has not happened for about
30421                 a year, and anyway nothing else uses emacs regex.[ch].
30422                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
30423                 lib/regex[.ch] is untouched.
30424
30425 2004-09-09  Bruno Haible  <bruno@clisp.org>
30426
30427         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
30428
30429 2004-09-09  Bruno Haible  <bruno@clisp.org>
30430
30431         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
30432         modifications.
30433         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
30434
30435 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
30436
30437         * modules/xvasprintf: New file.
30438         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
30439
30440 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
30441
30442         * lib/xvasprintf.h: New file.
30443         * lib/xvasprintf.c: New file.
30444         * lib/xasprintf.c: New file.
30445
30446 2004-09-08  Bruno Haible  <bruno@clisp.org>
30447
30448         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
30449
30450 2004-09-08  Bruno Haible  <bruno@clisp.org>
30451
30452         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
30453         length is > INT_MAX.
30454         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
30455         more.
30456
30457 2004-09-08  Bruno Haible  <bruno@clisp.org>
30458
30459         * lib/stdint_.h: New file, taken from GNU clisp.
30460
30461 2004-09-08  Bruno Haible  <bruno@clisp.org>
30462             Oskar Liljeblad  <oskar@osk.mine.nu>
30463
30464         * modules/stdint: New file.
30465         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
30466
30467 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30468
30469         Import from coreutils.
30470         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
30471         strings on unbounded length.  alloca's performance benefits aren't
30472         that important here.
30473         (V_STRDUP): Remove.
30474         (parse_with_separator): New function, with most of the internals
30475         of the old parse_user_spec.  Allow user to omit both user and group,
30476         for compatibility with FreeBSD.
30477         Clone only the user name, not the entire spec.
30478         Do not set *uid, *gid unless entirely successful.
30479         Avoid memory leak in some failing cases.
30480         Fix regression for USER.GROUP reported by Dmitry V. Levin in
30481         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
30482         (parse_user_spec): Rewrite to use parse_with_separator.
30483
30484 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30485
30486         * modules/userspec: Don't depend on alloca.
30487
30488 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30489
30490         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
30491
30492 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
30493
30494         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
30495         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
30496         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
30497
30498 2004-08-16  Simon Josefsson  <jas@extundo.com>
30499
30500         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
30501         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
30502         Add --dry-run for --import.
30503         Let user provided command line parameters override configure.ac
30504         settings.
30505
30506 2004-08-12  Simon Josefsson  <jas@extundo.com>
30507
30508         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
30509         as discussed with Paul Eggert in threads rooted at
30510         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
30511         and
30512         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
30513         Before, the test was empty, and relied on ELIDE_CODE in source
30514         code.)
30515         (gl_PREREQ_GETOPT): New macro.
30516         (gl_GETOPT): Use them.
30517
30518 2004-08-12  Simon Josefsson  <jas@extundo.com>
30519
30520         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
30521         * lib/getopt_.h: Renamed from getopt.h.
30522
30523 2004-08-12  Simon Josefsson  <jas@extundo.com>
30524
30525         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
30526         Change default library name from libfoo to libgnu.
30527         Now, if you have a configure.ac that says:
30528                 gl_SOURCE_BASE(gl)
30529                 gl_M4_BASE(gl/m4)
30530                 gl_MODULES(error getopt etcetera)
30531                 gl_INIT
30532         you can import all you need by running:
30533                 ../gnulib/gnulib-tool --import
30534
30535         * modules/getopt (Files): Rename getopt.h to getopt_.h.
30536         (Makefile.am): Rewrite, use logic from argz.
30537         (Include): Use <getopt.h> instead of "getopt.h".
30538
30539 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
30540
30541         * modules/argp (Files): Add m4/unlocked-io.m4.
30542         (Depends-on): Add extensions.
30543
30544 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
30545
30546         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
30547         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
30548         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
30549         Check for program_invocation_name, program_invocation_short_name,
30550         flockfile, funlockfile, features.h, _getopt_long_only_r.
30551
30552 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
30553
30554         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
30555         its complicated substitute.
30556         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
30557         and program_invocation_name.
30558         (__argp_basename) [!_LIBC]: Remove; the only use was
30559         replaced by its body.
30560         (__argp_short_program_name): Change condition from
30561         !defined __argp_short_program_name to
30562         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
30563         to match argp-namefrob.h.
30564         (__argp_failure): Don't assume strerror_r returns char *.
30565         * lib/argp-parse.c (N_): Define unconditionally.
30566         (argp_default_options): Fill out initializers with 0 to avoid
30567         gcc warnings.
30568
30569 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
30570
30571         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
30572         getopt1.c.
30573
30574 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
30575
30576         Merge from coreutils.
30577
30578         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
30579
30580         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
30581         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
30582
30583 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
30584
30585         Merge from coreutils.
30586
30587         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
30588         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
30589         for Reliant Unix 5.43.
30590
30591         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
30592         (union fooround): Use uintmax_t, not long int.
30593         The rest is a merge from libc:
30594         [defined _LIBC]: Include <shlib-compat.h>.
30595         (_obstack) [defined _LIBC]: Remove after 2.3.4.
30596
30597         * lib/settime.c (settime): Recode to avoid warning with
30598         Sun Forte C 6U2.
30599
30600         * lib/strverscmp.c: Convert to UTF-8.
30601
30602 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
30603
30604         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
30605         m4/uintmax_t.m4.
30606
30607 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
30608
30609         * modules/xalloc-die: New file.
30610         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
30611
30612         * modules/md5 (Files): Add m4/uint32_t.m4.
30613         * modules/sha1: Renamed from modules/sha.
30614         (Files):
30615         Rename lib/sha.h to lib/sha1.h.
30616         Rename lib/sha.c to lib/sha1.c.
30617         Rename m4/sha.m4 to m4/sha1.m4.
30618         (lib_SOURCES): Likewise.
30619         (configure.ac): Rename gl_SHA to gl_SHA1.
30620         (Include): sha.h -> sha1.h.
30621
30622 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
30623
30624         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
30625         * m4/sha1.m4: Renamed from sha.m4.
30626         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
30627
30628 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
30629
30630         * lib/obstack.h (obstack_empty_p):
30631         Don't assume that chunk->contents is suitably aligned.
30632         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
30633         Likewise. Problem reported by Benno in
30634         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
30635
30636         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
30637         readable.  This could be improved further but it'd take some work.
30638
30639 2004-08-08  Simon Josefsson  <jas@extundo.com>
30640
30641         * modules/xgethostname (Depends-on): Remove exit and error (not
30642         used).
30643
30644         * modules/getpass-gnu: Add getpass.h.
30645         (Depends-on): Add stdbool.
30646         * modules/getpass: Add getpass.h.
30647
30648 2004-08-08  Simon Josefsson  <jas@extundo.com>
30649
30650         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
30651         Check getpass declaration.
30652
30653 2004-08-08  Simon Josefsson  <jas@extundo.com>
30654
30655         * lib/xgethostname.c: Don't include error.h (not used).
30656
30657         * lib/getpass.h: Add.
30658         * lib/getpass.c: Include getpass.h first.
30659
30660 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
30661
30662         * lib/xalloc-die.c: New file.
30663         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
30664         All uses removed.
30665         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
30666         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
30667         xalloc-die.c.
30668         (_, N_, xalloc_die): Move to xalloc-die.c.
30669         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
30670         so that we needn't mess with xalloc_msg_memory_exhausted.
30671
30672         * lib/sha1.h: Renamed from sha.h.
30673         (SHA1_H): Renamed from _SHA_H.
30674         (sha1_ctx): Renamed from sha_ctx.
30675         (sha1_init_ctx): Renamed from sha_init_ctx.
30676         (sha1_process_block): Renamed from sha_process_block.
30677         (sha1_process_bytes): Renamed from sha_process_bytes.
30678         (sha1_finish_ctx): Renamed from sha_finish_ctx.
30679         (sha1_read_ctx): Renamed from sha_read_ctx.
30680         (sha1_stream): Renamed from sha_stream.
30681         (sha1_buffer): Renamed from sha_buffer.
30682         * lib/sha1.c: Likewise; renamed from sha.c.
30683         Do not include <sys/types.h>.
30684         Include <stddef.h> rather than <stdlib.h>.
30685
30686 2004-08-08  Bruno Haible  <bruno@clisp.org>
30687
30688         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
30689         FILESYSTEM_PREFIX_LEN.
30690         * lib/progreloc.c: Likewise.
30691         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
30692
30693 2004-08-06  Simon Josefsson  <jas@extundo.com>
30694
30695         * modules/progname (Depends-on): Don't depend on stdbool.
30696
30697 2004-08-06  Simon Josefsson  <jas@extundo.com>
30698
30699         * modules/getsubopt: New file.
30700         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30701         getsubopt.
30702
30703 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
30704
30705         More merge from coreutils.
30706
30707         * m4/utimens.m4, m4/utimecmp.m4: New files.
30708         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
30709         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
30710         prereq.m4, sha.m4: Import changes from coreutils.
30711
30712 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
30713
30714         More merge from coreutils.
30715         * modules/raise, modules/readtokens0, modules/utimens:
30716         * modules/utimecmp, module/xnanosleep: New files.
30717         * modules/strftime: Add lib/strftime.h.
30718         Change include from <time.h> to "strftime.h".
30719         * modules/yesno: Add lib/yesno.h.
30720         * modules/backupfile: Remove lib/addext.c.
30721         * modules/euidaccess: Add stat-macros.h.
30722         * modules/canonicalize, modules/euidaccess,
30723         modules/filemode, modules/lchown, modules/makepath,
30724         modules/rmdir, modules/stat: Likewise.
30725
30726 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
30727
30728         Merge from tar.
30729         * lib/argp-help.c (make_hol, hol_append): Don't assume that
30730         SIZE_MAX is a valid preprocessor constant.
30731         (__argp_basename): Change from "#ifndef _LIBC"
30732         to "#ifndef __argp_short_program_name", so that
30733         we don't compile these functions for tar.
30734
30735         More merges from coreutils.
30736         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
30737         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
30738         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
30739         * lib/addext.c: Remove; no longer needed.
30740         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
30741         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
30742         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
30743         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
30744         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
30745         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
30746         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
30747         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
30748         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
30749         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
30750         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
30751         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
30752         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
30753         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
30754         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
30755         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
30756         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
30757         Import changes from coreutils.
30758
30759 2004-08-05  Simon Josefsson  <jas@extundo.com>
30760
30761         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
30762
30763 2004-08-05  Simon Josefsson  <jas@extundo.com>
30764
30765         * m4/getsubopt.m4: New file.
30766
30767 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
30768
30769         Merge from coreutils.
30770
30771         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
30772         * m4/getcwd-path-max.m4: New files.
30773
30774         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
30775         FILESYSTEM_PREFIX_LEN ->
30776         FILE_SYSTEM_PREFIX_LEN.
30777         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
30778         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
30779         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
30780         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
30781
30782         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
30783         prerequisite modules now handle the DOS stuff.
30784         Don't check for unistd.h.
30785
30786 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
30787
30788         Merge from coreutils.
30789
30790         * lib/.gdb-history: Remove; this doesn't belong here.
30791
30792         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
30793         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
30794         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
30795         * lib/getcwd.c: New files.
30796
30797         * lib/dirname.h: Include <stdbool.h>.
30798         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
30799         for consistency with POSIX terminology.  All uses changed.
30800         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
30801         (strip_trailing_slashes): Use bool for booleans.
30802         * lib/stripslash.c (strip_trailing_slashes): Likewise.
30803
30804         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
30805         sometimes returns a positive errno value even when it succeeds.
30806         (print_errno_message) [!LIBC]: Fall back on strerror if
30807         __strerror_r fails.
30808
30809         * lib/path-concat.c (mempcpy): Don't define if a system header defines
30810         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
30811         (longest_relative_suffix): New function.
30812         (path_concat): Use it.  Assume first argument is not NULL.
30813         Port to DOS.  Omit redundant separators.
30814         Report an error instead of returning NULL.
30815         Use mempcpy instead of memcpy.
30816         (xpath_concat): Remove: not declared or used.
30817
30818         * lib/same.h: Include <stdbool.h>
30819         (same_name): Return bool, not int.
30820         * lib/same.c (same_name): Likewise.
30821         (errno): Don't declare; we assume C89 or better now.
30822
30823         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
30824         if not already defined.
30825
30826         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
30827         * lib/dup-safer.c (errno): Likewise.
30828
30829 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
30830
30831         Merge from coreutils.
30832         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
30833         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
30834         * modules/path-concat: Don't depend on strdup.
30835
30836 2004-08-03  Simon Josefsson  <jas@extundo.com>
30837
30838         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
30839         * lib/progname.h: Don't include stdbool.h.
30840
30841 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
30842
30843         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
30844         * MODULES.html.sh (func_all_modules): Remove fatal.
30845
30846 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
30847
30848         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
30849
30850 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
30851
30852         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
30853         working.
30854
30855 2004-08-02  Simon Josefsson  <jas@extundo.com>
30856
30857         * lib/getsubopt.h: New file, with comments from Bruno Haible.
30858         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
30859         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
30860
30861 2004-08-01  Simon Josefsson  <jas@extundo.com>
30862
30863         * lib/xgetdomainname.c: Include stdlib.h, for free().
30864
30865 2004-07-19  Bruno Haible  <bruno@clisp.org>
30866
30867         * MODULES.html.sh (func_all_modules): Add dummy.
30868
30869 2004-07-16  Simon Josefsson  <jas@extundo.com>
30870
30871         * modules/dummy: New file.
30872
30873 2004-07-16  Simon Josefsson  <jas@extundo.com>
30874
30875         * lib/dummy.c: New file.
30876
30877 2004-07-16  Bruno Haible  <bruno@clisp.org>
30878
30879         * lib/backupfile.h: Add extern "C" for C++.
30880         * lib/closeout.h: Likewise.
30881         * lib/copy-file.h: Likewise.
30882         * lib/findprog.h: Likewise.
30883         * lib/full-write.h: Likewise.
30884         * lib/pathname.h: Likewise.
30885         * lib/progname.h: Likewise.
30886         * lib/stpcpy.h: Likewise.
30887         * lib/stpncpy.h: Likewise.
30888         * lib/strcase.h: Likewise.
30889         * lib/strstr.h: Likewise.
30890         * lib/xalloc.h: Likewise.
30891
30892         * lib/mbswidth.h: Add extern "C" for C++.
30893         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
30894
30895 2004-07-13  Robert Millan  <robertmh@gnu.org>
30896
30897         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
30898
30899 2004-07-09  Simon Josefsson  <jas@extundo.com>
30900
30901         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
30902         failed without this.)
30903
30904 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
30905
30906         * modules/chown (Files): Add lib/fchown-stub.c, since
30907         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
30908
30909 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
30910
30911         * lib/fchown-stub.c: New file.
30912
30913 2004-06-24  Jim Meyering  <jim@meyering.net>
30914
30915         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
30916
30917 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
30918
30919         * modules/argz: Omit "#include".
30920
30921         * MODULES.html.sh (func_all_modules): Add calloc, to match
30922         2004-06-01 addition of calloc module.
30923
30924 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
30925
30926         * m4/argz.m4: New file, which is autoupdated from libtool.
30927
30928 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
30929
30930         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
30931         libtool.
30932
30933 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
30934
30935         * config/srclist-update: Don't insist on "USA." before the
30936         close-comment, as libtool omits the period and puts the */ on a
30937         separate line.
30938         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
30939         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
30940
30941 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
30942
30943         * modules/argz: New file.
30944         * MODULES.html.sh (func_all_modules): Add argz.
30945
30946 2004-06-12  Jim Meyering  <jim@meyering.net>
30947         and  Paul Eggert  <eggert@cs.ucla.edu>
30948
30949         * modules/hash (Files): Add lib/xalloc.h.
30950         * modules/pipe (Depends-on): Add wait-process.
30951         * modules/stat (Depends-on): Add xalloc.
30952         * modules/userspec (Files): Add lib/userspec.h.
30953         * modules/xstrto
30954
30955         Upgrade from gettext-0.13.
30956         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
30957         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
30958         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
30959
30960 2004-06-10  Jim Meyering  <jim@meyering.net>
30961
30962         * lib/calloc.c: New file.
30963
30964 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
30965
30966         * lib/getdate.y (yylex): Allow space between sign and number.
30967         Problem reported by Dan Jacobson.
30968
30969 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
30970
30971         Merge from coreutils CVS.
30972
30973         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
30974         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
30975         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
30976         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
30977         xstrtol.m4: Fix copyright date and/or serial number.
30978
30979         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
30980         See if we need an fchown replacement.
30981         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
30982         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
30983         and use the replacement function if we detect either defect.
30984
30985         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
30986         gl_UTIMECMP.
30987
30988 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
30989         and  Jim Meyering  <jim@meyering.net>
30990
30991         Merge from coreutils CVS.
30992
30993         * lib/stat-macros.h: New file, with contents from file-type.h
30994         and coreutils' system.h.
30995         * lib/file-type.c: Include "stat-macros.h".
30996         * lib/file-type.h (file_type): Move all macro definitions to new file,
30997         stat-macros.h.
30998
30999         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
31000         Wrap old code with this conditional.
31001         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
31002         function that does not dereference symlinks.
31003         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
31004
31005         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
31006         dependency problems.
31007         (xreadlink): Accept new arg SIZE, for efficiency.
31008         All decls and uses changed.
31009         * lib/xreadlink.h: Include <stddef.h>, for size_t.
31010
31011         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
31012         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
31013
31014         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
31015         sysexits.h.
31016
31017 2004-06-01  Jim Meyering  <jim@meyering.net>
31018
31019         * m4/calloc.m4: New file.
31020
31021 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
31022
31023         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
31024         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
31025         Also, fix a typo in a diagnostic.
31026
31027 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
31028
31029         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
31030         or AC_FUNC_REALLOC.
31031
31032 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
31033
31034         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
31035         macros to be defined.
31036         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
31037         the allocator returns NULL because the requested size is zero.
31038
31039 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
31040
31041         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
31042         var.  Add comment explaining why libc still defines it.  This
31043         merges the following patch from glibc:
31044         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
31045
31046 2004-05-20  Andreas Schwab  <schwab@suse.de>
31047
31048         * m4/free.m4: Replace free if it not known to work, not the other
31049         way round.
31050
31051 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
31052
31053         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
31054         present in glibc since revision 1.1 of this file.
31055         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
31056         obstack_alignment_mask, obstack_alloc, obstack_base,
31057         obstack_blank, obstack_blank_fast, obstack_chunk_size,
31058         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
31059         obstack_grow0, obstack_init, obstack_int_grow,
31060         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
31061         obstack_next_free, obstack_object_size, obstack_ptr_grow,
31062         obstack_ptr_grow_fast, obstack_room): Remove declarations of
31063         nonexistent functions.
31064
31065 2004-05-18  Karl Berry  <karl@gnu.org>
31066
31067         * config/srclist.txt: break link for vasnprintf.c.
31068
31069 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
31070
31071         Port obstack to the AS/400, where pointers are 16 bytes wide and
31072         you cannot cast an integer to a valid pointer.  This patch is
31073         currently waiting to be integrated into glibc; see
31074         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
31075
31076         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
31077         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
31078         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
31079         (struct obstack): temp member is now a union of a pointer and
31080         an integer, instead of an integer.  All integer uses changed.
31081         This does not affect the physical layout of struct obstack,
31082         except on hosts (like the AS/400) where the size or alignment of
31083         void * is greater than that of ptrdiff_t.
31084         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
31085         __STDC__)]: Store temporary in pointer member of union, not
31086         integer member.
31087         * lib/obstack.c: Include <stddef.h>, for offsetof.
31088         (struct fooalign): Remove; it doesn't need a name.
31089         (union fooround): Change double to long double, and add void *.
31090         (DEFAULT_ALIGNMENT): Use offsetof to compute.
31091         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
31092         not a macro.  Hence the values are always int; so remove all
31093         casts-to-int in uses.
31094
31095 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
31096
31097         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
31098         we can get this patch merged into glibc.
31099
31100 2004-05-17  Derek R. Price  <derek@ximbiot.com>
31101             Paul Eggert  <eggert@cs.ucla.edu>
31102
31103         * m4/argp: Depend on alloca.
31104
31105 2004-05-17  Derek R. Price  <derek@ximbiot.com>
31106             Paul Eggert  <eggert@cs.ucla.edu>
31107
31108         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
31109         freecoding.
31110
31111 2004-05-17  Bruno Haible  <bruno@clisp.org>
31112
31113         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
31114         precision that consists of a '.' followed by an empty digit string.
31115         Patch by Tor Lillqvist <tml@iki.fi>.
31116
31117 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
31118
31119         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
31120         for backward compatibility with older code.  We need our own
31121         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
31122         it under some other name, and our alloca.h will define it.
31123
31124 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
31125             Derek Price  <derek@ximbiot.com>
31126
31127         * lib/alloca.c: Include <alloca.h>, to get our interface.
31128         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
31129         include <alloca.h> first.  Use C89 prototype for alloca; this
31130         requires including <stddef.h> for size_t.  Use extern "C" if C++.
31131         Use #elif for simplicity, since we can assume C89 now.
31132         Don't try to source the system alloca.h since it will not be found
31133         and to prevent recursively including its replacement.
31134         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
31135         * lib/regex.c: Likewise.
31136
31137 2004-05-16  Derek Price  <derek@ximbiot.com>
31138             Paul Eggert  <eggert@cs.ucla.edu>
31139
31140         getline cleanup.  This changes the getndelim2 API: both order of
31141         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
31142         no delimiter).
31143
31144         * lib/getline.c: Don't include stddef.h or stdio.h, since our
31145         interface does that.
31146         (getline): Always use getdelim, so that we don't have two
31147         copies of this code.
31148         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
31149         if available.
31150         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
31151         (GETNDELIM2_MAXIMUM): New macro.
31152         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
31153         instead of the old practice of delim2==0.  All callers changed.
31154         Return -1 on overflow, instead of returning junk.
31155         Do not set *linesize unless allocation succeeds.
31156         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
31157         that we include sys/types.h.
31158         * lib/getnline.h: Likewise.
31159         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
31160         (getndelim2): Reorder arguments.
31161         * lib/getnline.c (getnline, getndelim):
31162         Don't discard the NMAX argument.
31163         (getnline): Invoke getndelim, to avoid code duplication.
31164         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
31165         of (size_t) -1 by callers of the getnline family.
31166
31167 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
31168
31169         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
31170         Check for gettimeofday.
31171         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
31172         Check for settimeofday, stime.
31173
31174 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
31175
31176         * lib/nanosleep.c (suspended): Change its type from int to
31177         sig_atomic_t volatile.
31178         (first_call): Make it private to rpl_nanosleep, and have it
31179         be zero initially as that's a bit faster.
31180         (my_usleep): Round up fractional times instead of truncating them,
31181         as this is the usual meaning for 'sleep'.
31182
31183         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
31184         doesn't work.
31185         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
31186         (ENOSYS): Define if not defined.
31187         (settime): Fall back on stime if it exists and settimeofday fails.
31188         But don't bother with fallbacks if a method fails with errno == EPERM.
31189
31190 2004-05-11  Jim Meyering  <jim@meyering.net>
31191
31192         Prior to this change, the save_cwd caller required read access to the
31193         current directory on most systems (ones with the fchdir function).
31194
31195         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
31196         fails, try write-only, and finally, resort to using xgetcwd.
31197
31198 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
31199
31200         * lib/obstack.c, obstack.h: Import changes from libc.
31201
31202 2004-04-28  Bruno Haible  <bruno@clisp.org>
31203
31204         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
31205         also implicitly appends .exe to executables.
31206         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
31207         accepts Windows pathnames.
31208         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
31209         Treat Cygwin like Windows, since it now accepts Windows pathnames.
31210         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
31211         Treat Cygwin like Windows, since it now accepts Windows pathnames.
31212         Reported by Derek Robert Price <derek@ximbiot.com>.
31213
31214 2004-04-21  Karl Berry  <karl@gnu.org>
31215
31216         * config/srclist.txt (localcharset.c): break sync.
31217
31218 2004-04-20  Paul Eggert  <eggert@twinsun.com>
31219
31220         * m4/host-os.m4: Add a copyright notice.
31221
31222 2004-04-20  Jim Meyering  <jim@meyering.net>
31223
31224         Change UTILS_ to gl_ in AC_DEFINE'd names.
31225         Change utils_- and jm_-prefixed variables, too.
31226         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
31227         UTILS_FUNC_MKDIR_TRAILING_SLASH.
31228         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
31229
31230         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
31231         Don't emit trailing blanks.
31232         Also rename jm_-prefixed variables to have gl_ prefix.
31233
31234         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
31235         Also rename jm_-prefixed variables to have gl_ prefix.
31236
31237         * m4/jm-macros.m4: Reflect the renamings.
31238         * m4/prereq.m4: Likewise.
31239
31240 2004-04-20  Jim Meyering  <jim@meyering.net>
31241
31242         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
31243         memory.
31244
31245 2004-04-20  Jim Meyering  <jim@meyering.net>
31246             Bruno Haible  <bruno@clisp.org>
31247
31248         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
31249         memory when realloc fails.
31250
31251 2004-04-19  Jim Meyering  <jim@meyering.net>
31252
31253         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
31254         now that readutmp.c may call `free (0)'.
31255
31256 2004-04-19  Bruno Haible  <bruno@clisp.org>
31257
31258         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
31259         * m4/inttypes_h.m4: Likewise.
31260         * m4/stdint_h.m4: Likewise.
31261         * m4/intmax_t.m4: Likewise.
31262         * m4/uintmax_t.m4: Likewise.
31263
31264 2004-04-18  Jim Meyering  <jim@meyering.net>
31265
31266         * m4/prereq.m4: Don't forbid jm_ prefix.
31267
31268         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
31269         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
31270         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
31271         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
31272         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
31273         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
31274         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
31275         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
31276         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
31277         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
31278         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
31279         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
31280         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
31281         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
31282         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
31283         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
31284         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
31285         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
31286         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
31287
31288 2004-04-18  Jim Meyering  <jim@meyering.net>
31289
31290         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
31291         failure, don't leak memory and do call END_UTMP_ENT.
31292
31293 2004-04-16  Jim Meyering  <jim@meyering.net>
31294
31295         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
31296         coreutils' stat program.
31297         (gl_PREREQ): Don't require jm_PREREQ_STAT.
31298
31299 2004-04-11  Paul Eggert  <eggert@twinsun.com>
31300
31301         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
31302         C89.
31303         (CHAR_BIT): Remove, since we assume C89.
31304         Include <stdint.h> if available, as per current Autoconf CVS advice.
31305
31306 2004-03-31  Jim Meyering  <jim@meyering.net>
31307
31308         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
31309         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
31310         * m4/xalloc.m4: Likewise.
31311
31312 2004-03-30  Paul Eggert  <eggert@twinsun.com>
31313
31314         Merge from coreutils.
31315
31316         * m4/inttostr.m4: New file.
31317         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
31318         Require AM_STDBOOL_H and gl_TIMESPEC instead.
31319         Require gl_CLOCK_TIME.
31320         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
31321
31322 2004-03-30  Paul Eggert  <eggert@twinsun.com>
31323
31324         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
31325         not bool, to be more consistent with Unix conventions.
31326         Suggested by Bruno Haible.
31327
31328         Merge from coreutils.
31329
31330         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
31331         * lib/umaxtostr.c: New files.
31332
31333         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
31334         the usual <time.h> dance.
31335         (get_date): Change signature to support fractional time stamps.
31336         All callers changed.
31337         * lib/getdate.y: Include "getdate.h" first, as we can now
31338         assume C89 and don't need to worry about 'const'.
31339         Similarly, include "unlocked-io.h" near start, not in middle.
31340         Include <limits.h>.
31341         (textint.value): Use long int rather than int.
31342         (textint.digits): Use size_t rather than int.
31343         (BILLION, LOG10_BILLION): New constants.
31344         (parser_control): New member rel_ns.  Members day_ordinal,
31345         time_zone, month, day, hour, minutes, rel_year, rel_month,
31346         rel_day, rel_hour, rel_minutes, rel_seconds
31347         are now long int, not int.  Member seconds is now struct timespec,
31348         not int.  New member timespec_seen.  Members dates_seen, days_seen,
31349         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
31350         not int.
31351         (%union.intval): Now long int, not int.
31352         New member timespec.
31353         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
31354         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
31355         (spec): Now is a timespec or an item list.
31356         (timespec, items): New nonterminals.
31357         (time, rel, relunit, number, get_date):
31358         Add support for fractional seconds.
31359         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
31360         (gmtime, localtime, mktime): Remove decls; not needed with C89.
31361         (to_hour): First arg is now long int, not int.
31362         (to_year): Returns long int, not int.
31363         Don't treat year -70 like 70.
31364         (tm_diff): Returns long int, not int.
31365         (lookup_word): Use bool instead of int when appropriate.
31366         (yylex): Use size_t for count, not int.
31367         Detect overflow when parsing large integer constants.
31368         Add support for fractions.
31369         (get_date): Make pointers 'const' if possible.
31370         Use more-portable code to detect integer overflow.
31371         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
31372         Don't use ctime; it's not reliable if the year has >4 digits.
31373
31374         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
31375         This is for compatibility with BSD.
31376
31377         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
31378         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
31379         From coreutils' system.h.
31380
31381         * lib/userspec.c: Don't include "posixver.h".
31382         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
31383         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
31384         compatible extension.  Simplify code by removing a boolean int
31385         that was always nonzero if a string was nonnull.
31386
31387 2004-03-30  Jim Meyering  <jim@meyering.net>
31388
31389         Merge from coreutils.
31390
31391         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
31392         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
31393         on some systems one must include <grp.h> before it.
31394         Reported by Christian Krackowizer.
31395
31396 2004-03-30  Jim Meyering  <jim@meyering.net>
31397
31398         Merge from coreutils.
31399
31400         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
31401
31402         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
31403         an empty input stream.
31404
31405         * lib/readtokens.c: Include <stdbool.h>.
31406         (readtoken): Use `size_t' rather than int/long.
31407         All callers adjusted.
31408         Use `bool' rather than `int' where appropriate.
31409         Use memset rather than an explicit loop.
31410         Use x2nrealloc rather than xrealloc.
31411         Allow the use of `\0' as a delimiter.
31412         (readtokens): Likewise.
31413         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
31414
31415 2004-03-30  Jim Meyering  <jim@meyering.net>
31416
31417         * m4/realloc.m4: Remove file, since now it does no more than
31418         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
31419         the `configure.ac' section of module/realloc.
31420         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
31421
31422 2004-03-30  Bruno Haible  <bruno@clisp.org>
31423
31424         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
31425         nonnull.
31426
31427 2004-03-29  Paul Eggert  <eggert@twinsun.com>
31428
31429         Merge changes to getloadavg.c from coreutils and Emacs.
31430
31431         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
31432         Define to an expression, not to the empty string.
31433         Include cloexec.h and xalloc.h.
31434         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
31435         Use set_cloexec_flag rather than rolling our own.
31436         * lib/cloexec.c, lib/cloexec.h: New files.
31437
31438 2004-03-29  Paul Eggert  <eggert@twinsun.com>
31439
31440         * m4/cloexec.m4: New file.
31441
31442 2004-03-18  Paul Eggert  <eggert@twinsun.com>
31443
31444         * lib/getopt.h: Sync with libc CVS.
31445
31446 2004-03-18  Paul Eggert  <eggert@twinsun.com>
31447             Bruno Haible  <bruno@clisp.org>
31448
31449         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
31450         mbswidth.
31451
31452 2004-03-18  Paul Eggert  <eggert@twinsun.com>
31453             Bruno Haible  <bruno@clisp.org>
31454
31455         * lib/mbswidth.h: Include <wchar.h> only if
31456         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
31457         <wchar.h>.
31458         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
31459
31460 2004-03-09  Paul Eggert  <eggert@twinsun.com>
31461
31462         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
31463         Sync with libc CVS.
31464         * lib/getopt_int.h: New file, also synced from libc.
31465
31466 2004-03-09  Paul Eggert  <eggert@twinsun.com>
31467
31468         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
31469         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
31470         Bring back getopt.c, getopt.h, getopt1.c.
31471
31472 2004-03-07  Paul Eggert  <eggert@twinsun.com>
31473
31474         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
31475         All uses changed.  Check for sa_sigaction member; this fixes
31476         a bug first reported by Jason Andrade in
31477         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
31478
31479 2004-03-07  Paul Eggert  <eggert@twinsun.com>
31480
31481         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
31482         '#if' expressions.  Unlike the code it replaces, it does not
31483         depend on (defined _SC_PAGESIZE).  However, it does depend on
31484         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
31485         first reported by Jason Andrade in
31486         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
31487
31488 2004-02-25  Simon Josefsson  <jas@extundo.com>
31489
31490         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
31491
31492 2004-02-25  Simon Josefsson  <jas@extundo.com>
31493
31494         * lib/strdup.h: New file.
31495         * lib/strdup.c: Include it.
31496         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
31497         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
31498
31499 2004-02-23  Karl Berry  <karl@gnu.org>
31500
31501         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
31502         (from fencepost.gnu.org:/gd/gnuorg).
31503
31504 2004-02-23  Karl Berry  <karl@gnu.org>
31505
31506         * config/srclistvars.sh (GNUORG) [karl]: redefine.
31507         * config/srclist.txt: add maintain/standards documents.
31508
31509 2004-02-18  Bruno Haible  <bruno@clisp.org>
31510
31511         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
31512         Reported by Derek Robert Price <derek@ximbiot.com>.
31513
31514 2004-02-16  Karl Berry  <karl@gnu.org>
31515
31516         * config/mkinstalldirs, install-sh: update from automake.
31517
31518 2004-02-06  Karl Berry  <karl@gnu.org>
31519
31520         * m4/po.m4: update from gettext 0.14.1.
31521
31522 2004-02-06  Karl Berry  <karl@gnu.org>
31523
31524         * lib/config.charset: update from gettext 0.14.1.
31525
31526 2004-02-05  Paul Eggert  <eggert@twinsun.com>
31527
31528         Add comments and code, prompted by suggestions from Bruno Haible
31529         for sh-quote.
31530         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
31531         describing the enum quoting_style values.
31532         * lib/quotearg.c (quotearg_alloc): New function.
31533         (quotearg_buffer_restyled): Treat lone { and } as special.
31534         Treat = as special.  Work around bug with older shells
31535         that "see" a '\' that is really the 2nd byte of a multibyte char.
31536         Quote empty string with shell_quoting_style.
31537
31538 2004-02-03  Bruno Haible  <bruno@clisp.org>
31539
31540         * m4/pipe.m4: New file, from GNU gettext.
31541
31542 2004-02-03  Bruno Haible  <bruno@clisp.org>
31543
31544         * lib/pipe.h: New file, from GNU gettext.
31545         * lib/pipe.c: New file, from GNU gettext.
31546
31547 2004-01-27  Bruno Haible  <bruno@clisp.org>
31548
31549         * m4/execute.m4: New file, from GNU gettext.
31550
31551 2004-01-27  Bruno Haible  <bruno@clisp.org>
31552
31553         * lib/execute.h: New file, from GNU gettext.
31554         * lib/execute.c: New file, from GNU gettext.
31555         * lib/w32spawn.h: New file, from GNU gettext.
31556
31557 2004-01-24  Paul Eggert  <eggert@twinsun.com>
31558
31559         Merge from diffutils.
31560
31561         * lib/file-type.c (file_type): Add typed memory objects.
31562         * lib/file-type.h (S_TYPEISTMO): New macro.
31563
31564         * lib/c-stack.h (c_stack_action): Remove argv argument.
31565         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
31566         (die): Don't calculate message unless segv_action returns.
31567         (get_stack_location, min_address_from_argv, max_address_from_argv,
31568         volatile stack_base, volatile_stack_size): Remove.
31569         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
31570         that every segmentation violation is a stack overflow.  (Ouch!)
31571         See Debian bug 136249 (still outstanding) for more info about why
31572         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
31573
31574 2004-01-24  Paul Eggert  <eggert@twinsun.com>
31575
31576         Exit-status fix from coreutils.
31577
31578         Use exit_failure consistently in place of EXIT_FAILURE,
31579         so that program exit statuses are consistent on failure.
31580
31581         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
31582         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
31583         * lib/argmatch.h: Comment fix to match the above.
31584         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
31585         Now a macro referring to exit_failure, instead of a separate
31586         variable.  Include "exitfail.h" to get it.
31587         * lib/xstrtol.h: Include "exitfail.h".
31588         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
31589
31590         * lib/long-options.c (parse_long_options): Use prototype
31591         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
31592         for clarity.
31593
31594 2004-01-21  Jim Meyering  <jim@meyering.net>
31595
31596         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
31597         so as not to conflict with a different-sized __mktime_internal
31598         function in GNU libc.
31599         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
31600         Problem building statically-linked `ls' reported by Michael Brunnbauer.
31601
31602 2004-01-20  Karl Berry  <karl@gnu.org>
31603
31604         * config/config.guess: update from config.
31605
31606         * config/srclistvars.sh: GNUWWWLICENSES for karl.
31607
31608 2004-01-20  Bruno Haible  <bruno@clisp.org>
31609
31610         Safer stack allocation.
31611         * lib/setenv.c: Include allocsa.h.
31612         (alloca): Remove fallback definition.
31613         (freea): Remove macro.
31614         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
31615         instead of freea.
31616
31617 2004-01-20  Bruno Haible  <bruno@clisp.org>
31618
31619         * m4/eealloc.m4: New file, from GNU gettext.
31620
31621 2004-01-20  Bruno Haible  <bruno@clisp.org>
31622
31623         * m4/allocsa.m4: New file, from GNU gettext.
31624
31625 2004-01-20  Bruno Haible  <bruno@clisp.org>
31626
31627         * lib/xallocsa.h: New file, from GNU gettext.
31628         * lib/xallocsa.c: New file, from GNU gettext.
31629
31630 2004-01-20  Bruno Haible  <bruno@clisp.org>
31631
31632         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
31633
31634 2004-01-20  Bruno Haible  <bruno@clisp.org>
31635
31636         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
31637         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
31638         specially.
31639
31640 2004-01-20  Bruno Haible  <bruno@clisp.org>
31641
31642         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
31643         patch.
31644
31645 2004-01-20  Bruno Haible  <bruno@clisp.org>
31646
31647         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
31648
31649 2004-01-20  Bruno Haible  <bruno@clisp.org>
31650
31651         * lib/eealloc.h: New file.
31652
31653 2004-01-20  Bruno Haible  <bruno@clisp.org>
31654
31655         * lib/binary-io.h: Avoid warnings on Cygwin.
31656
31657 2004-01-20  Bruno Haible  <bruno@clisp.org>
31658
31659         * lib/allocsa.h: New file, from GNU gettext.
31660         * lib/allocsa.c: New file, from GNU gettext.
31661
31662 2004-01-18  Karl Berry  <karl@gnu.org>
31663
31664         * doc/gpl.texi, doc/lgpl.texi: new files.
31665
31666 2004-01-18  Karl Berry  <karl@gnu.org>
31667
31668         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
31669         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
31670
31671 2004-01-15  Paul Eggert  <eggert@twinsun.com>
31672
31673         Merge from coreutils.
31674
31675         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
31676         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
31677         (gl_DEFAULT_POSIX2_VERSION): Move
31678         the documentation from 'configure' into 'config.hin',
31679         so that 'configure --help' isn't burdened by it and
31680         we don't have to worry about its formatting there.
31681         Reword the documentation so that it's more succinct
31682         and can be run together into a single paragraph.
31683         * m4/same.m4 (gl_SAME): Check for pathconf.
31684
31685 2004-01-15  Paul Eggert  <eggert@twinsun.com>
31686
31687         Merge from coreutils.
31688
31689         * lib/posixver.c: Include posixver.h.
31690
31691         * lib/same.c: Include <stdbool.h>, <limits.h>.
31692         (_POSIX_NAME_MAX): Define if not defined.
31693         (MIN): New macro.
31694         (same_name): If file names are silently truncated, report
31695         that the file names are the same if they are the same after
31696         the silent truncation.
31697
31698         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
31699         conversion function.
31700         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
31701         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
31702         longer needed.
31703
31704 2004-01-15  Jim Meyering  <jim@meyering.net>
31705
31706         Merge from coreutils.
31707
31708         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
31709         if no library is required.
31710         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
31711         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
31712         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
31713         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
31714         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
31715         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
31716         value, $ac_cv_search_crypt, if it's "none required".
31717         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
31718         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
31719         not gl_FUNC_GETLOADAVG.
31720         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
31721         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
31722
31723 2004-01-15  Jim Meyering  <jim@meyering.net>
31724
31725         Merge from coreutils.
31726
31727         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
31728         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
31729         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
31730
31731         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
31732         optional configure-time default.
31733
31734         * lib/version-etc.c (version_etc_copyright): Update copyright date.
31735
31736         * lib/xreadlink.c (xreadlink): Correct outdated comment.
31737
31738 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
31739
31740         Merge from coreutils.
31741
31742         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
31743         value, $ac_cv_search_nanosleep, if it's "none required".
31744
31745 2004-01-14  Paul Eggert  <eggert@twinsun.com>
31746
31747         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
31748         with like-named macro in fnmatch.c.
31749         (EXT): Use an internal constant instead.
31750
31751         Merge fnmatch patches from glibc.
31752         * lib/fnmatch.c (mbsinit): Remove define.
31753         Add libc_hidden_ver (__fnmatch, fnmatch).
31754         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
31755         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
31756
31757 2004-01-14  Karl Berry  <karl@gnu.org>
31758
31759         * config/install-sh: update from automake.
31760
31761 2004-01-13  Karl Berry  <karl@gnu.org>
31762
31763         * config/install-sh: update from automake.
31764
31765 2004-01-09  Karl Berry  <karl@gnu.org>
31766
31767         * config/install-sh: update from automake.
31768
31769 2004-01-05  Karl Berry  <karl@gnu.org>
31770
31771         * config/config.{sub,guess}: update from config.
31772
31773 2003-12-31  Karl Berry  <karl@gnu.org>
31774
31775         * config/depcomp: update from automake.
31776
31777 2003-12-14  Karl Berry  <karl@gnu.org>
31778
31779         * lib/config.charset: update from gettext-runtime.
31780
31781 2003-12-03  Paul Eggert  <eggert@twinsun.com>
31782
31783         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
31784         Bug reported by Alfred M. Szmidt.
31785
31786 2003-12-03  Bruno Haible  <bruno@clisp.org>
31787
31788         * m4/gettext.m4: Upgrade from gettext-0.13.
31789         * m4/po.m4: Upgrade from gettext-0.13.
31790         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
31791         * m4/intmax.m4: New file, from gettext-0.13.
31792         * m4/printf-posix.m4: New file, from gettext-0.13.
31793
31794 2003-11-29  Karl Berry  <karl@gnu.org>
31795
31796         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
31797
31798 2003-11-25  Paul Eggert  <eggert@twinsun.com>
31799             Bruno Haible  <bruno@clisp.org>
31800
31801         * lib/printf-parse.h: Don't include sys/types.h.
31802         (ARG_NONE): New macro.
31803         (char_directive): Change type of *arg_index fields to size_t.
31804         * lib/printf-parse.c: Don't include sys/types.h.
31805         (SSIZE_MAX): Remove macro.
31806         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
31807         Remove unnecessary overflow check.
31808         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
31809         fields.
31810
31811 2003-11-25  Bruno Haible  <bruno@clisp.org>
31812
31813         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
31814
31815 2003-11-25  Bruno Haible  <bruno@clisp.org>
31816
31817         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
31818         gt_TYPE_SSIZE_T.
31819
31820 2003-11-24  Paul Eggert  <eggert@twinsun.com>
31821
31822         * modules/alloca: Remove dependency on xalloc.
31823
31824 2003-11-24  Paul Eggert  <eggert@twinsun.com>
31825
31826         * lib/alloca.c: Remove dependency on xalloc module.
31827         (xalloc_die): Remove.
31828         (memory_full) [!defined emacs]: New macro.
31829         [!defined emacs]: Don't include xalloc.h.
31830         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
31831         address arithmetic overflows.  Change datatypes a bit to avoid
31832         unnecessary casts.
31833
31834 2003-11-22  Jim Meyering  <jim@meyering.net>
31835
31836         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
31837         s/size/size_t/.
31838
31839 2003-11-21  Karl Berry  <karl@gnu.org>
31840
31841         * config/config.{sub,guess}: update from config.
31842
31843 2003-11-18  Karl Berry  <karl@gnu.org>
31844
31845         * config/config.{sub,guess}: update from config.
31846
31847         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
31848
31849 2003-11-17  Paul Eggert  <eggert@twinsun.com>
31850
31851         * README: Mention that S+T cannot overflow if S is the size of
31852         an existing object and T is sufficiently small.
31853
31854 2003-11-17  Jim Meyering  <jim@meyering.net>
31855
31856         On systems without utime and without a utimes function capable of
31857         dealing with a NULL struct utimbuf* argument, this utime replacement
31858         could -- in unusual circumstances -- leak a file descriptor.
31859         * lib/utime.c: Include <unistd.h> and <errno.h>.
31860         (utime_null): Be sure to close `fd' and to preserve errno.
31861         Reported by Geoff Collyer via Arnold Robbins.
31862
31863 2003-11-17  Bruno Haible  <bruno@clisp.org>
31864
31865         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
31866         (Depends-on): Add xsize.
31867
31868 2003-11-17  Bruno Haible  <bruno@clisp.org>
31869
31870         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
31871
31872 2003-11-17  Bruno Haible  <bruno@clisp.org>
31873
31874         * lib/vasnprintf.c (alloca): Remove fallback definition.
31875         (freea): Remove definition.
31876         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
31877         Reported by Paul Eggert.
31878
31879 2003-11-16  Paul Eggert  <eggert@twinsun.com>
31880             Bruno Haible  <bruno@clisp.org>
31881
31882         Protect against address arithmetic overflow.
31883         * lib/printf-args.h: Include stddef.h.
31884         (arguments): Change type of field 'count' to size_t.
31885         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
31886         'unsigned int' where appropriate.
31887         * lib/printf-parse.h: Include sys/types.h.
31888         (char_directive): Change type of *arg_index fields to ssize_t.
31889         (char_directives): Change type of fields 'count', max_*_length to
31890         size_t.
31891         * lib/printf-parse.c: Include sys/types.h and xsize.h.
31892         (SSIZE_MAX): Define fallback value.
31893         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
31894         instead of 'int' where appropriate. Check a_allocated, d_allocated
31895         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
31896         * lib/vasnprintf.c: Include xsize.h.
31897         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
31898         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
31899         overflow. Avoid wraparound when converting a width or precision from
31900         decimal to binary.
31901
31902 2003-11-16  Bruno Haible  <bruno@clisp.org>
31903
31904         Update from GNU gettext.
31905         * lib/printf-parse.c: Generalize to it can be compiled for wide
31906         strings.
31907         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
31908         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
31909         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
31910         SNPRINTF): New macros.
31911         Don't include <alloca.h> if the file is used inside libintl.
31912         (local_wcslen): New function, for Solaris 2.5.1.
31913         (VASNPRINTF): Use it instead of wcslen.
31914
31915 2003-11-16  Bruno Haible  <bruno@clisp.org>
31916
31917         * lib/xsize.h (xmax): New function.
31918         (xsum, xsum3, xsum4): Declare as "pure" functions.
31919
31920 2003-11-12  Paul Eggert  <eggert@twinsun.com>
31921
31922         * modules/xalloc (Files): Undo latest change, since xalloc.h
31923         no longer needs SIZE_MAX or PTRDIFF_MAX.
31924
31925 2003-11-12  Paul Eggert  <eggert@twinsun.com>
31926
31927         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
31928         gl_PTRDIFF_MAX.
31929
31930 2003-11-12  Paul Eggert  <eggert@twinsun.com>
31931
31932         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
31933         "return", to pacify some unknown compiler.  Problem reported
31934         by Joerg Schilling.
31935
31936 2003-11-12  Paul Eggert  <eggert@twinsun.com>
31937
31938         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
31939         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
31940         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
31941         heuristic is just as accurate as far as we know, and it removes a
31942         dependency on size_max.m4 and ptrdiff_max.m4.
31943
31944 2003-11-11  Bruno Haible  <bruno@clisp.org>
31945
31946         * modules/xsize (Files): Add m4/size_max.m4.
31947         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
31948
31949 2003-11-11  Bruno Haible  <bruno@clisp.org>
31950
31951         * m4/size_max.m4: New file.
31952         * m4/ptrdiff_max.m4: New file.
31953         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
31954         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
31955         (gl_XALLOC): Invoke it.
31956
31957 2003-11-11  Bruno Haible  <bruno@clisp.org>
31958
31959         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
31960         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
31961         defined.
31962
31963 2003-11-10  Paul Eggert  <eggert@twinsun.com>
31964
31965         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
31966         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
31967         rejected some allocations of exactly SIZE_MAX - 2 bytes.
31968         From Bruno Haible.
31969         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
31970         not (size_t) -1, since it's defined here.
31971
31972 2003-11-09  Karl Berry  <karl@gnu.org>
31973
31974         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
31975
31976 2003-11-06  Paul Eggert  <eggert@twinsun.com>
31977
31978         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
31979         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
31980         Reject sizes of exactly SIZE_MAX bytes.
31981         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
31982         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
31983
31984 2003-11-05  Bruno Haible  <bruno@clisp.org>
31985
31986         * lib/xsize.h: Include limits.h, to avoid a possible collision with
31987         SIZE_MAX defined in <limits.h> on Solaris.
31988
31989 2003-11-04  Jim Meyering  <jim@meyering.net>
31990
31991         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
31992         variable names, rather than @VAR@.
31993         * modules/poll: Likewise.
31994
31995 2003-11-04  Bruno Haible  <bruno@clisp.org>
31996
31997         * modules/xsize: New file.
31998         * modules/linebreak: Depend on xsize.
31999         * MODULES.html.sh (func_all_modules): Add xsize.
32000
32001 2003-11-04  Bruno Haible  <bruno@clisp.org>
32002
32003         * m4/xsize.m4: New file.
32004
32005 2003-11-04  Bruno Haible  <bruno@clisp.org>
32006
32007         * lib/xsize.h: New file.
32008         * lib/linebreak.c: Include xsize.h.
32009         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
32010         argument for overflow.
32011         Suggested by Paul Eggert.
32012
32013 2003-11-03  Karl Berry  <karl@gnu.org>
32014
32015         * config/config.{guess,sub}: update from config.
32016
32017 2003-11-03  Jim Meyering  <jim@meyering.net>
32018
32019         * modules/userspec (lib_SOURCES): Add userspec.h.
32020         (Include): Add "userspec.h".
32021         Improve description.
32022
32023 2003-11-03  Jim Meyering  <jim@meyering.net>
32024
32025         * lib/userspec.c: Include "userspec.h".
32026         * lib/userspec.h: New file.
32027
32028 2003-11-03  Bruno Haible  <bruno@clisp.org>
32029
32030         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
32031
32032 2003-11-03  Bruno Haible  <bruno@clisp.org>
32033
32034         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
32035         available, to avoid (extremely rare) race condition.
32036         Suggested by Paul Eggert.
32037
32038 2003-11-02  Karl Berry  <karl@gnu.org>
32039
32040         * config/srclist.txt (vasprintf.c): sync broken, sigh.
32041
32042 2003-10-31  Paul Eggert  <eggert@twinsun.com>
32043
32044         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
32045         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
32046         (read_filesystem_list): Set and use me_type_malloced.
32047         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
32048         whatever the type happens to be), for brevity and consistency.
32049         Check for size calculation overflow on Alphas running OSF/1.
32050
32051 2003-10-31  Jim Meyering  <jim@meyering.net>
32052
32053         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
32054
32055         * lib/linebuffer.c: Include <string.h> for declaration of memset.
32056
32057 2003-10-30  Paul Eggert  <eggert@twinsun.com>
32058             Bruno Haible  <bruno@clisp.org>
32059
32060         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
32061         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
32062
32063 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
32064
32065         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
32066         netbsd*-gnu*.  Suggested by Robert Millan.
32067
32068 2003-10-29  Paul Eggert  <eggert@twinsun.com>
32069
32070         * modules/group-member: Depend on stdbool.
32071
32072 2003-10-29  Paul Eggert  <eggert@twinsun.com>
32073
32074         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
32075
32076 2003-10-29  Paul Eggert  <eggert@twinsun.com>
32077
32078         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
32079         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
32080         after the 'gnu' in these cases.  This fixes some bugs in the
32081         previous change, and is based on suggestions by Robert Millan.
32082
32083 2003-10-29  Paul Eggert  <eggert@twinsun.com>
32084
32085         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
32086         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
32087         no longer needed.
32088         * lib/quotearg.c (quotearg_n_options): Use it.
32089         * lib/group-member.c: Include <stdbool.h>.
32090         (free_group_info): Arg is now const *; don't free arg.
32091         (get_group_info): Now returns bool and accepts struct group_info *,
32092         rather than returning a malloc'ed struct group_info *.
32093         All uses changed.  Check for overflow in internal size calculation.
32094
32095         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
32096         rather than xmalloc/xrealloc.
32097         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
32098         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
32099         conformance bug: the old code used a pointer after freeing the
32100         storage that it addressed.
32101         * lib/hash.c (hash_initialize): Simplify the code by using
32102         xalloc_oversized rather than doing it by hand.
32103         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
32104         the buffer preserved.  Use free and xmalloc instead.
32105         * lib/quotearg.c (quotearg_n_options): Likewise.
32106         Use a simpler test for size overflow.  Don't use xalloc_oversized
32107         because unsigned int might be wider than size_t (!); this suggests
32108         that we should switch from unsigned int to size_t for slot numbers.
32109
32110 2003-10-28  Paul Eggert  <eggert@twinsun.com>
32111
32112         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
32113         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
32114         NetBSD kernels.  Requested by Richard Stallman.
32115
32116 2003-10-27  Paul Eggert  <eggert@twinsun.com>
32117
32118         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
32119         to allocate the returned structure.  Do not allocate a subarray,
32120         as x2nrealloc will do that.
32121         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
32122         instead of xnrealloc.
32123         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
32124
32125 2003-10-27  Bruno Haible  <bruno@clisp.org>
32126
32127         * lib/stdbool_.h: Better support for BeOS.
32128
32129 2003-10-26  Paul Eggert  <eggert@twinsun.com>
32130
32131         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
32132         now uses inline.
32133
32134 2003-10-26  Paul Eggert  <eggert@twinsun.com>
32135
32136         * lib/xalloc.h (xalloc_oversized): New static inline function, for
32137         callers that want to do their own size-overflow checking.  Include
32138         <stdbool.h>, since xalloc_oversized returns bool.
32139         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
32140         to use xalloc_oversized.
32141
32142         Add two functions x2realloc, x2nrealloc, for programs that grow
32143         arrays dynamically by doubling their sizes.
32144         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
32145         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
32146         New functions.
32147
32148         Port to C99 semantics for 'inline' of external functions.
32149         Bug reported by Bruno Haible.
32150         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
32151         with the old contents of xnmalloc.
32152         (xnmalloc, xmalloc): Use it.
32153         (xnrealloc_inline): New static inline function,
32154         with the old contents of xnrealloc.
32155         (xnrealloc, xrealloc): Use it.
32156
32157         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
32158         that.
32159
32160 2003-10-26  Karl Berry  <karl@gnu.org>
32161
32162         * config/srclist.txt (COPYING.DOC): no longer available from
32163         /gd/gnuorg; don't know where the ultimate source is.
32164
32165 2003-10-25  Paul Eggert  <eggert@twinsun.com>
32166
32167         Fix several address-calculation bugs in the hash modules,
32168         plus some minor code cleanup.
32169
32170         * lib/hash.h: Include <stdbool.h>, for bool.
32171         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
32172         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
32173         hash_get_n_entries, hash_get_max_bucket_length,
32174         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
32175         hash_rehash): Use size_t rather than unsigned.
32176         * lib/hash.c (struct hash_table, hash_get_n_buckets,
32177         hash_get_n_buckets_used, hash_get_n_entries,
32178         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
32179         hash_get_entries, hash_do_for_each, hash_string, is_prime,
32180         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
32181         Likewise.
32182         (SIZE_MAX): Define if not defined.
32183         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
32184         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
32185         hash_print):
32186         Use const * when possible.
32187         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
32188         (check_tuning): Fix bug: if tuning parameters were very close to
32189         0 or 1, rounding errors could have caused subscript violations.
32190         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
32191         (hash_initialize): Add 'fail:' label
32192         to free table and return NULL, and use it to simplify code.
32193         Use calloc rather than clearing the storage ourself.
32194         (hash_initialize, hash_rehash): Check for arithmetic overflow in
32195         buffer size calculations.
32196         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
32197         Include <stddef.h>, for size_t.
32198         * lib/hash-pjw.c (hash_pjw): Likewise.
32199         Switch to method described by Bruno Haible.
32200         Include <limits.h>, for CHAR_BIT.
32201         (SIZE_BITS): New macro.
32202
32203 2003-10-23  Paul Eggert  <eggert@twinsun.com>
32204
32205         * m4/getline.m4 (AM_FUNC_GETLINE):
32206         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
32207         hosts.  Problem reported by Derek Robert Price in
32208         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
32209         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
32210         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
32211
32212 2003-10-21  Paul Eggert  <eggert@twinsun.com>
32213
32214         * lib/getndelim2.c (getndelim2): When size calculation overflows,
32215         ceiling the allocation at NMAX bytes rather than silently
32216         discarding input bytes before NMAX is reached.  This makes
32217         a difference only if NMAX exceeds SIZE_MAX / 2.
32218
32219         * lib/obstack.c: Merge from glibc.
32220         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
32221         Add libc_hidden_def (_obstack_newchunk).
32222         (_obstack_free) [! defined _LIBC]: Remove.
32223         [defined _LIBC]: Make a strong alias from obstack_free, rather than
32224         a clone of the function body.
32225         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
32226         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
32227
32228         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
32229         glibc.
32230         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
32231         arg to memcpy.
32232
32233         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
32234         (obstack_ptr_grow_fast, obstack_int_grow_fast):
32235         Don't use lvalue casts, as GCC plans to remove support for them
32236         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
32237         was also present in the non-GCC version, indicating that this
32238         code had always been buggy and had never been widely used.
32239         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
32240         Use the fast variant of each macro, rather than copying the
32241         definiens of the fast variant; that way, we'll be more likely to
32242         catch future bugs in the fast variants.
32243
32244 2003-10-20  Bruno Haible  <bruno@clisp.org>
32245
32246         * modules/wait-process: New file.
32247         * MODULES.html.sh (func_all_modules): Add wait-process.
32248
32249 2003-10-20  Bruno Haible  <bruno@clisp.org>
32250
32251         * m4/wait-process.m4: New file.
32252
32253 2003-10-20  Bruno Haible  <bruno@clisp.org>
32254
32255         * lib/wait-process.h: New file, from GNU gettext.
32256         * lib/wait-process.c: New file, from GNU gettext.
32257
32258 2003-10-19  Jim Meyering  <jim@meyering.net>
32259
32260         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
32261         HPUX 10.20.
32262
32263 2003-10-18  Karl Berry  <karl@gnu.org>
32264
32265         * config/config.guess: update from config.
32266
32267 2003-10-16  Paul Eggert  <eggert@twinsun.com>
32268
32269         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
32270         (getgroups): First arg is int, not size_t.
32271         Don't let 'free' mangle errno.
32272
32273 2003-10-16  Paul Eggert  <eggert@twinsun.com>
32274
32275         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
32276
32277 2003-10-16  Karl Berry  <karl@gnu.org>
32278
32279         * config/config.{guess,sub}: update from config.
32280
32281 2003-10-16  Jim Meyering  <jim@meyering.net>
32282
32283         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
32284         memcpy.
32285
32286 2003-10-15  Paul Eggert  <eggert@twinsun.com>
32287
32288         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
32289         (SIZE_MAX): Remove.
32290         (new_exclude, add_exclude_file): Initial size no longer needs to
32291         be a power of 2.
32292         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
32293         our own address arithmetic overflow checking.
32294
32295         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
32296         (fnmatch): Do not alloca more than 2000 wide characters;
32297         instead, use malloc for large buffers.
32298         Check for address arithmetic overflow, and return -1
32299         with errno set to ENOMEM in that case.
32300         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
32301         (NEW_PATTERN): Do not alloca more than 8000 bytes;
32302         instead, return -1.  Check for address arithmetic overflow.
32303
32304 2003-10-14  Paul Eggert  <eggert@twinsun.com>
32305
32306         Handle invalid suffixes and overflow independently, so that
32307         callers can treat them independently as needed.  Fix some bugs in
32308         suffix handling, e.g., "100k@" was not diagnosed as an invalid
32309         suffix for a human-readable blocksize.  The major caller-visible
32310         change is the addition of a new
32311         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
32312         that both overflow and suffix chars were found.
32313
32314         * lib/human.c (humblock): Don't check separately for invalid suffix
32315         char; that is xstrtoumax's job (now that its bug is fixed).
32316         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
32317         INTMAX_MAX]: New macros.
32318         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
32319         TYPE_MAXIMUM): New macros.
32320         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
32321         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
32322         if overflow occurs, as it's what __strtol does and it's more useful
32323         in practice.
32324         (__xstrtol): If __strtol reports some error other than ERANGE,
32325         reflect it to the caller as LONGINT_INVALID.  If it reports
32326         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
32327         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
32328         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
32329         value.
32330         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
32331         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
32332         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
32333         [defined UINTMAX_MAX]: New macros.
32334
32335 2003-10-14  Bruno Haible  <bruno@clisp.org>
32336
32337         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
32338
32339 2003-10-14  Bruno Haible  <bruno@clisp.org>
32340
32341         * m4/sig_atomic_t: New file, from GNU gettext.
32342         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
32343
32344 2003-10-14  Bruno Haible  <bruno@clisp.org>
32345
32346         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
32347         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
32348         Also use volatile where needed.
32349
32350 2003-10-12  Paul Eggert  <eggert@twinsun.com>
32351
32352         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
32353         Change maintainer from Bruno Haible to 'all'.
32354
32355 2003-10-12  Paul Eggert  <eggert@twinsun.com>
32356
32357         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
32358
32359 2003-10-12  Paul Eggert  <eggert@twinsun.com>
32360
32361         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
32362         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
32363         and define in terms of the other primitives.
32364         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
32365         (SIZE_MAX): Define if not already defined.
32366         (array_size_overflow): New function.
32367         (xalloc_die): Abort instead of exiting if 'error' returns.
32368         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
32369         (xmalloc, xrealloc): Use them.
32370         (xcalloc): Check for address arithmetic overflow.
32371         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
32372         a bit faster than strcpy.
32373
32374 2003-10-10  Simon Josefsson  <jas@extundo.com>
32375
32376         * modules/argp (Depends-on): Add restrict and strcase.
32377
32378 2003-10-10  Simon Josefsson  <jas@extundo.com>
32379
32380         * m4/argp.m4: Add AC_C_INLINE.
32381
32382 2003-10-08  Paul Eggert  <eggert@twinsun.com>
32383
32384         Merge getpass from libc, plus a few fixes.
32385
32386         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
32387         Include <stdbool.h>.
32388         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
32389         __fsetlocking to empty.
32390         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
32391         do include <bits/libc-lock.h>.
32392         Do not include <fcntl.h>; not needed.
32393         [_LIBC]: Include <wchar.h>.
32394         (NOTCANCEL_MODE): New macro.
32395         (flockfile, funlockfile) [_LIBC]: New macros.
32396         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
32397         [!_LIBC]: New macros.
32398         (call_fclose): New function.
32399         (getpass): Use it.  Save tty stream separately; this simplifies the
32400         code and makes it more reliable if stdin happens to equal stdout.
32401         Invoke __fsetlocking on tty.
32402         Handle thread cancellation if needed.
32403         Namespace cleanup (use __tcgetattr, __getline).
32404         Use bool for Booleans.
32405         [USE_IN_LIBIO]: Handle wide streams.
32406         [!_LIBC]: Unconditionally do the fseek, since we don't know what
32407         stream might go where.
32408
32409         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
32410         doesn't have to include <stdio.h> before us.
32411         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
32412         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
32413         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
32414         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
32415         if not declared, so that we can use getpass.c code from libc without
32416         rewriting it.
32417         (flockfile, ftrylockfile, funlockfile): New macros.
32418
32419 2003-10-08  Paul Eggert  <eggert@twinsun.com>
32420
32421         * modules/getpass: Depend on stdbool.
32422
32423 2003-10-08  Paul Eggert  <eggert@twinsun.com>
32424
32425         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
32426
32427 2003-10-07  Karl Berry  <karl@gnu.org>
32428
32429         * config/config.{guess,sub}: update from config.
32430
32431 2003-10-06  Jim Meyering  <jim@meyering.net>
32432             Bruno Haible  <bruno@clisp.org>
32433
32434         This lets translators provide better translations for the
32435         "Written by ..." part of --version output.
32436         * lib/version-etc.h: Include stdarg.h.
32437         (version_etc_copyright): Declare as readonly.
32438         (version_etc): Make this function variadic with a NULL-terminated list
32439         of author name strings.
32440         (version_etc_va): New declaration.
32441         * lib/version-etc.c: Include stdarg.h, stdlib.h.
32442         (version_etc_copyright): Declare as readonly.
32443         (version_etc_va): New function. Provide a different translatable string
32444         for each possible number of authors < 10. Abbreviate when there are 10
32445         authors or more.
32446         (version_etc): Make this function variadic. Call version_etc_va.
32447         Suggestion from Gary V. Vaughan.
32448
32449         * lib/long-options.h (parse_long_options): Change prototype: the
32450         authors string is moved to the end and becomes variadic.
32451         * lib/long-options.c: Include stdarg.h.
32452         (parse_long_options): Make this function variadic, too.
32453         Call version_etc_va, not version_etc.
32454
32455 2003-10-06  Bruno Haible  <bruno@clisp.org>
32456
32457         * modules/version-etc-2: Remove file.
32458         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
32459
32460 2003-10-06  Bruno Haible  <bruno@clisp.org>
32461
32462         * modules/fatal-signal: New file.
32463         * MODULES.html.sh (func_all_modules): Add fatal-signal.
32464
32465 2003-10-06  Bruno Haible  <bruno@clisp.org>
32466
32467         * m4/fatal-signal.m4: New file.
32468         * m4/signalblocking.m4: New file, from GNU gettext.
32469
32470 2003-10-06  Bruno Haible  <bruno@clisp.org>
32471
32472         * lib/version-etc-2.h: Remove file.
32473         * lib/version-etc-2.c: Remove file.
32474
32475 2003-10-06  Bruno Haible  <bruno@clisp.org>
32476
32477         * lib/fatal-signal.h: New file, from GNU gettext.
32478         * lib/fatal-signal.c: New file, from GNU gettext.
32479
32480 2003-10-05  Paul Eggert  <eggert@twinsun.com>
32481
32482         * README: Rework advice for preventing empty .o files.
32483         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
32484         not <sys/types.h>.
32485
32486 2003-10-04  Karl Berry  <karl@gnu.org>
32487
32488         * lib/argp*: update from libc.
32489
32490 2003-10-04  Karl Berry  <karl@gnu.org>
32491
32492         * config/config.{guess,sub}: update from config.
32493
32494 2003-10-02  Bruno Haible  <bruno@clisp.org>
32495
32496         * modules/lchown (Include): Add lchown.h.
32497         * modules/time_r (Include): Use "..." syntax.
32498         * modules/xgetdomainname (Include): Add xgetdomainname.h.
32499
32500 2003-10-01  Simon Josefsson  <jas@extundo.com>
32501
32502         * MODULES.html.sh (func_all_modules): Move gethostname from section
32503         'based on' to section 'lacking' POSIX:2001.
32504
32505 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
32506
32507         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
32508         to output mode on the same stream.
32509
32510 2003-09-29  Paul Eggert  <eggert@twinsun.com>
32511
32512         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
32513         Fix arg typo in previous patch.
32514
32515 2003-09-28  Jim Meyering  <jim@meyering.net>
32516
32517         * lib/error.c: Correct cpp indentation.
32518
32519 2003-09-27  Paul Eggert  <eggert@twinsun.com>
32520
32521         * modules/free: New file.
32522
32523 2003-09-27  Paul Eggert  <eggert@twinsun.com>
32524
32525         * m4/free.m4: New file.
32526
32527 2003-09-27  Paul Eggert  <eggert@twinsun.com>
32528
32529         * lib/minmax.h (MIN, MAX)
32530         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
32531         Omit the special code that used __typeof__, since we worry that
32532         it could be more trouble than it's worth.  See:
32533         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
32534         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
32535
32536         * lib/free.c: New file.
32537
32538 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
32539
32540         Trivial fixes to Makefile.am parts of module listings.
32541         * modules/strstr: Append strstr.h to lib_SOURCES.
32542         * modules/strcase: Likewise, for strcase.h.
32543
32544 2003-09-27  Karl Berry  <karl@gnu.org>
32545
32546         * config/mkinstalldirs: update from automake.
32547
32548 2003-09-26  Paul Eggert  <eggert@twinsun.com>
32549
32550         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
32551         (error_tail): Do not loop, reallocating temporary buffer, since
32552         the output cannot contain more wide characters than the input
32553         contains bytes, the size must be big enough already.  This avoids
32554         one potential size overflow calculation.  Check for size overflow
32555         when calculating temporary buffer size.  Free temporary buffer
32556         when done, if it was allocated with malloc; this plugs a memory
32557         leak.  Remove casts from void * to pointers, that are no longer
32558         needed now that we're assuming C89 or better.
32559
32560         Merge error changes from glibc.
32561
32562         * lib/error.c, error.h: Update copyright notice header to match glibc.
32563         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
32564         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
32565         Disable cancellation while printing error.
32566         * lib/error.h: Prepend __ to parameter names.
32567
32568 2003-09-26  Jim Meyering  <jim@meyering.net>
32569
32570         * lib/error.c (error_tail): Move some declarations
32571         into inner scope where the local variables are used.
32572
32573 2003-09-26  Bruno Haible  <bruno@clisp.org>
32574
32575         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
32576         stpncpy().
32577         Don't define stpncpy through config.h; it's now done through stpncpy.h.
32578
32579 2003-09-26  Bruno Haible  <bruno@clisp.org>
32580
32581         * lib/stpncpy.h (gnu_stpncpy): New declaration.
32582         (stpncpy): Define as alias for gnu_stpncpy.
32583         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
32584
32585 2003-09-25  Simon Josefsson  <jas@extundo.com>
32586
32587         * lib/xgetdomainname.h: New file.
32588         * lib/xgetdomainname.c: New file.
32589
32590 2003-09-25  Simon Josefsson  <jas@extundo.com>
32591             Bruno Haible  <bruno@clisp.org>
32592
32593         * modules/getdomainname: New file.
32594         * modules/xgetdomainname: New file.
32595         * MODULES.html.sh (func_all_modules): Add getdomainname,
32596         xgetdomainname.
32597
32598 2003-09-25  Simon Josefsson  <jas@extundo.com>
32599             Bruno Haible  <bruno@clisp.org>
32600
32601         * m4/getdomainname.m4: New file.
32602
32603 2003-09-25  Simon Josefsson  <jas@extundo.com>
32604             Bruno Haible  <bruno@clisp.org>
32605
32606         * lib/getdomainname.h: New file.
32607         * lib/getdomainname.c: New file.
32608
32609 2003-09-25  Karl Berry  <karl@gnu.org>
32610
32611         * lib/argp-fmtstream.c, argp-help.c: update from libc.
32612
32613 2003-09-25  Karl Berry  <karl@gnu.org>
32614
32615         * config/install-sh: update from automake.
32616
32617 2003-09-25  Bruno Haible  <bruno@clisp.org>
32618
32619         * modules/version-etc-2: New file, from modules/version-etc with
32620         modifications.
32621         * MODULES.html.sh (func_all_modules): Add version-etc-2.
32622
32623 2003-09-25  Bruno Haible  <bruno@clisp.org>
32624
32625         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
32626         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
32627
32628 2003-09-24  Simon Josefsson  <jas@extundo.com>
32629
32630         * modules/xgethostname: Add xgethostname.h.
32631
32632 2003-09-24  Paul Eggert  <eggert@twinsun.com>
32633
32634         * lib/linebuffer.c (freebuffer): Don't free the argument, just
32635         the buffer associated with the argument.  Bug reported by
32636         Simon Josefsson.
32637
32638 2003-09-24  Paul Eggert  <eggert@twinsun.com>
32639
32640         * README: Document assumptions that 'int' is at least 32 bits
32641         wide, that integer arithmetic is 2's complement without overflow,
32642         that there are no holes in integer values, that adding sizes of
32643         two nonoverlapping objects can't overflow, and that all-bits-zero
32644         yields scalar zero.  Fix spelling and capitalization typos.
32645
32646 2003-09-19  Karl Berry  <karl@gnu.org>
32647
32648         * lib/argp.h: update from libc.
32649
32650 2003-09-17  Paul Eggert  <eggert@twinsun.com>
32651
32652         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
32653         to avoid spurious warnings like "AC_RUN_IFELSE was called before
32654         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
32655
32656 2003-09-17  Paul Eggert  <eggert@twinsun.com>
32657
32658         * gnulib-tool: Use "test -h", not "test -L", for portability
32659         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
32660         (tags_regexp): Remove, since \| doesn't conform to POSIX.
32661         (sed_extract_prog): Issue s commands one-by-one, rather than
32662         using \| in one s command.
32663
32664 2003-09-16  Paul Eggert  <eggert@twinsun.com>
32665
32666         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
32667         input error, instead of returning NULL the next time we are called
32668         (and therefore losing track of errno).
32669
32670 2003-09-16  Bruno Haible  <bruno@clisp.org>
32671
32672         * gnulib-tool (func_create_testdir): Warn about duplicated
32673         dependencies.
32674
32675 2003-09-15  Paul Eggert  <eggert@twinsun.com>
32676
32677         * modules/argmatch, modules/fatal, modules/obstack,
32678         modules/xalloc, modules/xgethostname: Sort dependencies by
32679         importance, not alphabetically.
32680
32681 2003-09-15  Paul Eggert  <eggert@twinsun.com>
32682
32683         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
32684         fails, so that the caller gets the proper errno.
32685
32686         * lib/readutmp.c (read_utmp): Likewise.
32687         Check for fstat error.  Close stream and free storage
32688         when failing.
32689
32690 2003-09-14  Karl Berry  <karl@gnu.org>
32691
32692         * config/srclist.txt (strdup.c): disable for c89 changes.
32693
32694 2003-09-14  Jim Meyering  <jim@meyering.net>
32695
32696         * lib/getloadavg.c: Correct cpp indentation.
32697         * lib/strdup.c: Likewise.
32698         * lib/vasnprintf.c: Likewise.
32699
32700 2003-09-14  Bruno Haible  <bruno@clisp.org>
32701
32702         * modules/fwriteerror: New file.
32703         * MODULES.html.sh (func_all_modules): Add fwriteerror.
32704
32705 2003-09-14  Bruno Haible  <bruno@clisp.org>
32706
32707         * lib/fwriteerror.h: New file.
32708         * lib/fwriteerror.c: New file.
32709
32710 2003-09-12  Paul Eggert  <eggert@twinsun.com>
32711
32712         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
32713         modules/xgethostname, modules/xalloc: Depend on exit.
32714
32715 2003-09-12  Paul Eggert  <eggert@twinsun.com>
32716
32717         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
32718
32719         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
32720         and AC_MINIX, too, so that their extensions are available.
32721
32722         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
32723         This macro has been superseded by gl_BACKUPFILE.
32724
32725         More patches to assume C89 or better.
32726
32727         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
32728
32729         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
32730         unconditionally.
32731         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
32732         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
32733         Include <string.h>, <stdlib.h> unconditionally.
32734         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
32735         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
32736         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
32737         headers or for string.h.
32738         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
32739         or strtoul.
32740
32741         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
32742         headers.
32743         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
32744         * m4/userspec.m4 (gl_USERSPEC): Likewise.
32745         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
32746         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
32747         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
32748         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
32749         memcpy, memset.
32750         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
32751         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
32752         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
32753         strtol.
32754         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
32755         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
32756         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
32757         strtoul.
32758
32759 2003-09-12  Paul Eggert  <eggert@twinsun.com>
32760
32761         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
32762         * lib/obstack.c [!defined _LIBC]: Likewise.
32763         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
32764         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
32765         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
32766
32767         More changes to assume C89 or better.
32768
32769         * lib/error.c (error_tail): Assume vprintf.
32770
32771         * lib/argmatch.c (getenv): Remove decl.
32772         * lib/progreloc.c (get_full_program_name): Define via prototype.
32773         * lib/setenv.c (clearenv): Likewise.
32774         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
32775         needed.
32776         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
32777         (malloc, memcpy): Remove decls.
32778         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
32779         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
32780         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
32781         (memcpy): Remove macro.
32782         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
32783         (__P): Remove.  All uses removed.
32784         (PTR): Remove.  All uses changed to void *.
32785         (CHAR_BIT, NULL): Remove.
32786         (spaces, zeros, memset_space, memset_zero)
32787         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
32788         Remove.
32789         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
32790         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
32791         Define with prototype.
32792         Remove now-unnecessary prototype decl.
32793         (extra_args_spec): Assume ANSI C.  All uses changed.
32794         (extra_args_spec_iso): Remove.
32795         (my_strftime, emacs_strftimeu): Define via prototype.
32796         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
32797         unconditionally.
32798         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
32799         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
32800         (strtoul, strtol): Remove decls.
32801         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
32802         LONG_MAX): Remove.
32803         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
32804         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
32805         (LOCALE_PARAM_PROTO): New macro.
32806         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
32807         (INTERNAL (strtol), strtol): Define with a prototype.
32808         (PARAMS): Remove.  All uses removed.
32809         * lib/tempname.c: Include <string.h> unconditionally.
32810         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
32811         * lib/xgethostname.c (main): Define with a prototype.
32812         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
32813         Include <stdlib.h> unconditionally.
32814         (calloc, malloc, realloc, free): Remove decls.
32815         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
32816         Include <stdlib.h> unconditionally.  Sort include file names.
32817         (strtod): Remove.
32818         (xstrtod): Define with a prototype.
32819         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
32820         (strtol, strtoul): Remove decls.
32821
32822 2003-09-11  Paul Eggert  <eggert@twinsun.com>
32823
32824         More patches to assume C89 or better.
32825         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
32826         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
32827         string.h, memchr, STDC_HEADERS.
32828
32829 2003-09-11  Paul Eggert  <eggert@twinsun.com>
32830
32831         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
32832         Include <stdlib.h>, <string.h> unconditionally.
32833         Remove now-unnecessary cast to char *.
32834         * lib/strnlen.c: Include <string.h> unconditionally.
32835         * lib/yesno.c (yesno): Define with a prototype.
32836
32837 2003-09-11  Bruno Haible  <bruno@clisp.org>
32838
32839         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
32840
32841 2003-09-10  Jim Meyering  <jim@meyering.net>
32842
32843         * lib/error.c: Correct indentation of cpp directives.
32844
32845 2003-09-10  Bruno Haible  <bruno@clisp.org>
32846
32847         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
32848         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
32849         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
32850         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
32851         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
32852         <stdlib.h> and <string.h> checks.
32853         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
32854         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
32855
32856 2003-09-10  Bruno Haible  <bruno@clisp.org>
32857
32858         * lib/strcspn.c: Include <string.h> unconditionally.
32859         * lib/strpbrk.c: Include <string.h> unconditionally.
32860         * lib/strstr.c: Include <string.h> unconditionally.
32861         * lib/unicodeio.c: Include <string.h> unconditionally.
32862         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
32863         * lib/unsetenv.c: Likewise.
32864         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
32865         * lib/yesno.c: Include <stdlib.h> unconditionally.
32866         (rpmatch): Add prototype.
32867
32868 2003-09-09  Paul Eggert  <eggert@twinsun.com>
32869
32870         More patches to assume C89 or better.
32871         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
32872         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
32873         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
32874         or for string.h.
32875         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
32876         stdlib.h.
32877         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
32878         C headers.
32879         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
32880         string.h.
32881         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
32882         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
32883         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
32884         or for string.h.
32885         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
32886         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
32887         C headers.
32888         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
32889         memcpy.
32890         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
32891         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
32892         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
32893         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
32894         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
32895         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
32896         string.h, free.
32897         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
32898         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
32899         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
32900         C headers, or for string.h.
32901         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
32902         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
32903         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
32904         headers, memory.h, stdlib.h, string.h, strings.h.
32905         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
32906         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
32907         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
32908         strchr.
32909         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
32910         headers, memory.h, string.h.
32911         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
32912         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
32913         free.
32914         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
32915         headers.
32916         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
32917         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
32918         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
32919         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
32920         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
32921
32922 2003-09-09  Paul Eggert  <eggert@twinsun.com>
32923
32924         More K&R removal.
32925
32926         * lib/acosl.c (main): Use a prototype.
32927         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
32928         tanl.c: Likewise.
32929
32930         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
32931
32932         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
32933         (getopt, etopt_long, getopt_long_only, _getopt_internal)
32934         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
32935         with a prototype.
32936         * lib/getopt.c (const): Remove macro.
32937         Include <string.h> unconditionally.
32938         (my_index): Remove; all uses changed to strchr.
32939         (strlen): Remove decl.
32940         (exchange): Remove forward decl; no longer needed.
32941         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
32942         Define with prototype.
32943         * lib/getopt1.c (const): Remove macro.
32944         (getopt_long, getopt_long_only, main): Define with prototype.
32945
32946         * lib/getugroups.c: Include <string.h> unconditionally.
32947
32948         * lib/getusershell.c: Include <stdlib.h> unconditionally.
32949         (getusershell, setusershell, endusershell, readname, main):
32950         Define with prototypes.
32951
32952         * lib/group-member.c: Include group-member.h first.
32953         Include <stdlib.h> unconditionally.
32954
32955         * lib/hard-locale.c: Include hard-locale.h first.
32956         Include <stdlib.h>, <string.h> unconditionally.
32957
32958         * lib/hash.c (free, malloc): Remove decls.
32959         Include <stdlib.h> unconditionally.
32960
32961         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
32962         (getenv): Do not declare.
32963
32964         * lib/idcache.c: Include <string.h> unconditionally.
32965
32966         * lib/long-options.c: Include long-options.h first, to test interface.
32967         Include <stdlib.h> unconditionally.
32968
32969         * lib/makepath.c: Include makepath.h first, to test interface.
32970         Include <stdlib.h> and <string.h> unconditionally.
32971
32972         * lib/linebuffer.c: Include <stdlib.h>.
32973         (free): Remove decl.
32974
32975         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
32976         stddef.h. rpl_malloc returns void *, not char *.
32977         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
32978         prototype.
32979
32980         * lib/md5.h: Include <limits.h> unconditionally.
32981         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
32982         (__P): Remove; all uses removed.
32983         * lib/md5.c: Include "md5.h" first.
32984         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
32985         md5_buffer, md5_process_bytes, md5_process_block):
32986         Define with prototypes.
32987         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
32988         * lib/sha.c: Include "sha.h" first.
32989         Include <stdlib.h>, <string.h> unconditionally.
32990
32991         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
32992         * lib/memcmp.c (__ptr_t): Likewise.
32993         * lib/memrchr.c (__ptr_t): Likewise.
32994         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
32995         Include <string.h> unconditionally.
32996         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
32997         * lib/memchr.c: Include <stdlib.h> unconditionally.
32998         * lib/memchr.c (LONG_MAX): Remove.
32999         * lib/memrchr.c (LONG_MAX): Likewise.
33000         * lib/memchr.c (__memchr): Define via a prototype.
33001         * lib/memrchr.c (__memrchr): Likewise.
33002         * lib/memcmp.c (__P): Remove, and remove all uses.
33003         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
33004         Remove forward decls; no longer needed.
33005         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
33006         Use types required by C89 in prototype.
33007
33008         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
33009         * lib/savedir.c: Likewise.
33010         * lib/mkdir.c (free): Remove decl.
33011         * lib/rmdir.c (rmdir): Define with a prototype.
33012         * lib/savedir.c: Include savedir.h first, to test interface.
33013
33014         * lib/mktime.c (STDC_HEADERS): Remove.
33015         Include <stdlib.h>, <string.h> unconditionally.
33016
33017         * lib/modechange.c: Include <stdlib.h> unconditionally.
33018         (malloc): Remove decl.
33019
33020         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
33021         (free): Remove decl.
33022
33023         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
33024         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
33025         (This type really should be intptr_t, but that's a C99ism.)
33026         (_obstack_memcpy): Remove: all uses changed to memcpy.
33027         Include <string.h> unconditionally.
33028         (struct obstack): Assume __STDC__ for types of members
33029         chunkfun, freefun, extra_arg.
33030         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
33031         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
33032         obstack_begin, obstack_specify_allocation,
33033         obstack_specify_allocation_with_arg, obstack_chunkfun,
33034         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
33035         Remove unprototyped decls and the macros that use them.
33036         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
33037         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
33038         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
33039         (defined __STDC__ && __STDC__)]:
33040         Remove nonprototyped code.
33041         Include <stdlib.h> unconditionally.
33042         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
33043         _obstack_allocated_p, _obstack_free, obstack_free,
33044         _obstack_memory_used, print_and_abort):
33045         Define using prototypes.
33046         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
33047         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
33048         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
33049         obstack_next_free, obstack_object_size, obstack_room) [0]:
33050         Remove unused, unprototyped code.
33051
33052         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
33053
33054         * lib/physmem.c (physmem_total, physmem_available, main): Define
33055         with prototypes.
33056
33057         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
33058         (main): Define with a prototype.
33059
33060         * lib/posixver.c (getenv): Remove decl.
33061
33062         * lib/putenv.c (malloc): Returns void *, not char *.
33063         Include <string.h> unconditionally.
33064         (strchr, memcpy, NULL): Do not define.
33065
33066         * lib/readtokens.c: Include readtokens.h first, to test interface.
33067         Include <stdlib.h>, <string.h> unconditionally.
33068         (init_tokenbuffer): Define with a prototype.
33069
33070         * lib/regex.c (PARAMS): Remove.  All uses removed.
33071         All uses of _RE_ARGS removed, too.
33072         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
33073         unconditionally.
33074         (bzero): Assume memset exists.
33075         (memcmp, memcpy, NULL): Remove.
33076         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
33077         char, or assignments to local vars of type signed char.
33078         (init_syntax_once, PREFIX(extract_number_and_incr),
33079         PREFIX(print_partial_compiled_pattern),
33080         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
33081         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
33082         PREFIX(regex_grow_registers), PREFIX(regex_compile),
33083         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
33084         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
33085         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
33086         wcs_compile_range, byte_compile_range, truncate_wchar,
33087         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
33088         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
33089         count_mbs_length, wcs_re_match_2_internal,
33090         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
33091         PREFIX(alt_match_null_string_p),
33092         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
33093         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
33094         regfree, PREFIX(extract_number)): Define with prototype.  Remove
33095         now-unnecessary declaration, if any.
33096         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
33097         regcomp, regexec):
33098         Remove now-unnecessary casts among pointer types.
33099         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
33100
33101         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
33102         (free): Remove decl.
33103
33104         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
33105
33106         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
33107         (free): Remove decl.
33108
33109         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
33110         * lib/xgetcwd.c: Likewise.
33111
33112         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
33113         (free): Remove decl.
33114
33115         * lib/strchrnul.c (strchrnul): Define with a prototype.
33116         Fix bug: c_in was not converted to char before searching.
33117
33118         The following changes are not K&R related:
33119
33120         * lib/group-member.h: Include <sys/types.h>, so that this file is
33121         self-contained.
33122         * lib/makepath.h: Likewise.
33123
33124         * lib/getusershell.c (readname, default_index, line_size, readname):
33125         Use size_t, not int, for sizes.
33126         (readname): If the size overflows, report an error instead of
33127         looping forever.
33128
33129 2003-09-09  Paul Eggert  <eggert@twinsun.com>
33130
33131         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
33132         libc.
33133
33134 2003-09-09  Paul Eggert  <eggert@twinsun.com>
33135
33136         * README: New section: portability guidelines.
33137
33138 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
33139
33140         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
33141         C89 spec.
33142
33143 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
33144
33145         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
33146
33147 2003-09-08  Paul Eggert  <eggert@twinsun.com>
33148
33149         Assume C89 or better; remove K&R cruft.
33150         A few of these changes were first proposed by Derek Robert Price
33151         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
33152
33153         * lib/addext.c: Include <string.h> unconditionally.
33154         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
33155         Don't declare getenv or malloc.
33156
33157         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
33158         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
33159         (NULL): Remove.
33160         (find_stack_direction, alloca): Use prototypes.
33161
33162         * lib/atexit.c (atexit): Define using a prototype.
33163
33164         * lib/basename.c, dirname.c, stripslash.c:
33165         Include <string.h> unconditionally.
33166
33167         * lib/bcopy.c: Include <stddef.h>.
33168         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
33169
33170         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
33171
33172         * lib/error.h (error, error_at_line, error_print_progname)
33173         [! (defined (__STDC__) && __STDC__)]: Remove decls.
33174         * lib/error.c: Include error.h first, to check interface.
33175         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
33176         (VA_START): Remove; all uses changeed to va_start.
33177         (exit, strerror): Remove decls.
33178         (error_print_progname): Prototype uncondionally.
33179         Don't include <errno.h>; no longer needed.
33180         (private_strerror): Remove.
33181         (error_tail): Always define.
33182         (error, error_at_line): Assume C89 or better; always use prototypes.
33183         * lib/fatal.c: Include "fatal.h" first, to test interface.
33184         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
33185         (VA_START): Remove; all uses changed to va_start.
33186         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
33187         this case.
33188         (exit): Remove decl.
33189         (fatal): Prototype unconditionally.  Assume va_start works.
33190         Abort at end, to pacify gcc.
33191
33192         * lib/euidaccess.c (main): Define with a prototype.
33193
33194         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
33195
33196         * lib/exitfail.c: Include <stdlib.h> unconditionally.
33197
33198         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
33199         prototypes.
33200         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
33201         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
33202         (getenv): Remove decl.
33203         (fnmatch): Define using a prototype.
33204         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
33205         (FCT): Define using a prototype.
33206
33207         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
33208
33209         * lib/gethostname.c: Include <stddef.h>.
33210         (gethostname): Define with prototype.  Length is size_t, not int.
33211
33212 2003-09-08  Paul Eggert  <eggert@twinsun.com>
33213
33214         Assume C89 or better; remove K&R cruft.
33215         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
33216         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
33217         string.h, getenv, malloc.
33218         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
33219         headers.
33220         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
33221         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
33222         do not check for strerror.
33223         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
33224         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
33225         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
33226         do not check for doprnt or vprintf.
33227         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
33228         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
33229
33230 2003-09-08  Paul Eggert  <eggert@twinsun.com>
33231
33232         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
33233         getversion.c should have been removed then, but was accidentally
33234         preserved.
33235
33236         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
33237         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
33238
33239 2003-09-08  Karl Berry  <karl@gnu.org>
33240
33241         * config/config.sub, config.guess, srclistvars.sh: update from savannah
33242                 config, forget about prep.
33243
33244         * config/depcomp, missing: update from automake.
33245
33246 2003-09-07  Paul Eggert  <eggert@twinsun.com>
33247
33248         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
33249         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
33250
33251 2003-09-07  Paul Eggert  <eggert@twinsun.com>
33252
33253         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
33254         copy_tm_result.  Bug reported by Simon Josefsson in
33255         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
33256
33257 2003-09-06  Paul Eggert  <eggert@twinsun.com>
33258
33259         * m4/time_r.m4: New file.
33260         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
33261         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
33262         is. Check for timegm declaration.
33263         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
33264         Do not check for gmtime_r.
33265         Replace mktime if __mktime_internal does not exist and if mktime
33266         hasn't been replaced already.
33267
33268 2003-09-06  Paul Eggert  <eggert@twinsun.com>
33269
33270         * lib/time_r.c, lib/time_r.h: New files.
33271
33272         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
33273         __localtime_r.
33274         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
33275         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
33276
33277         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
33278         __gmtime_r.
33279         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
33280         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
33281         Include <time_r.h>.
33282
33283         * lib/timegm.c: Switch to glibc implementation, with the following
33284         changes:
33285         [defined HAVE_CONFIG_H]: Include <config.h>.
33286         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
33287         (__mktime_internal) [!defined _LIBC]: New decl.
33288         (__gmtime_r) [!defined _LIBC]: New macro and function.
33289         (timegm): Use a prototype, since gnulib assumes C89.
33290         Do not bother declaring tmp to be const, as it's not really usefu.
33291         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
33292         (timegm): Declare only if HAVE_DECL_TIMEGM.
33293
33294 2003-09-06  Paul Eggert  <eggert@twinsun.com>
33295
33296         * MODULES.html.sh (func_all_modules): Add time_r.
33297         * modules/time_r: New file.
33298         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
33299         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
33300
33301 2003-09-03  Paul Eggert  <eggert@twinsun.com>
33302
33303         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
33304         Bug reported by Lute Kamstra in
33305         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
33306
33307         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
33308         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
33309         course with correspondingly smaller numbers for tomorrow and
33310         yesterday.  From Tadayoshi Funaba.  Originally installed into
33311         sh-utils on 1999-08-07, but the patch got lost (I guess during the
33312         coreutils merge?).
33313
33314 2003-08-31  Simon Josefsson  <jas@extundo.com>
33315
33316         * modules/timegm: New file.
33317         * MODULES.html.sh (func_all_modules): Add timegm.
33318
33319 2003-08-31  Simon Josefsson  <jas@extundo.com>
33320
33321         * m4/timegm.m4: New file.
33322
33323 2003-08-31  Simon Josefsson  <jas@extundo.com>
33324
33325         * lib/timegm.h: New file.
33326         * lib/timegm.c: New file.  Based on
33327         wget-1.8.2/src/http.c:mktime_from_utc.
33328
33329 2003-08-31  Karl Berry  <karl@gnu.org>
33330
33331         * lib/argp.h: update from libc.
33332
33333 2003-08-28  Bruno Haible  <bruno@clisp.org>
33334
33335         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
33336         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
33337         followed by '#define fnmatch fnmatch_posix' gives an error.
33338
33339 2003-08-28  Bruno Haible  <bruno@clisp.org>
33340
33341         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
33342         warning on QNX, which defines O_BINARY to 000000.
33343
33344 2003-08-27  Jim Meyering  <jim@meyering.net>
33345
33346         * m4/mkstemp.m4: Require that the system mkstemp be able to create
33347         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
33348         would fail after 32.  Reported by Danny Levinson.  Details here:
33349         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
33350
33351 2003-08-24  Bruno Haible  <bruno@clisp.org>
33352
33353         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
33354         MSVC7 <stdio.h> is included later.
33355
33356 2003-08-22  Simon Josefsson  <jas@extundo.com>
33357
33358         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
33359
33360 2003-08-20  Karl Berry  <karl@gnu.org>
33361
33362         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
33363
33364 2003-08-20  Bruno Haible  <bruno@clisp.org>
33365
33366         * modules/progname: New file.
33367         * MODULES.html.sh (func_all_modules): Add progname.
33368
33369 2003-08-20  Bruno Haible  <bruno@clisp.org>
33370
33371         * lib/progname.h: New file, from GNU gettext.
33372         * lib/progname.c: New file, from GNU gettext.
33373         * lib/progreloc.c: New file, from GNU gettext.
33374
33375 2003-08-19  Jim Meyering  <jim@meyering.net>
33376
33377         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
33378         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
33379
33380 2003-08-19  Bruno Haible  <bruno@clisp.org>
33381
33382         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
33383         more.
33384
33385 2003-08-19  Bruno Haible  <bruno@clisp.org>
33386
33387         * lib/xstrdup.c: Assume <string.h> exists.
33388
33389 2003-08-18  Paul Eggert  <eggert@twinsun.com>
33390
33391         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
33392         in makefile rules.
33393
33394 2003-08-18  Jim Meyering  <jim@meyering.net>
33395
33396         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
33397         * m4/lib-ld.m4: Likewise.
33398
33399 2003-08-18  Jim Meyering  <jim@meyering.net>
33400
33401         * lib/setenv.h: Indent nested cpp directive.
33402         * lib/vasnprintf.c: Remove trailing blanks.
33403
33404 2003-08-17  Simon Josefsson  <jas@extundo.com>
33405
33406         * modules/xstrndup: New file.
33407         * MODULES.html.sh (func_all_modules): Add xstrndup.
33408
33409 2003-08-17  Simon Josefsson  <jas@extundo.com>
33410
33411         * modules/argp: Fix autoconf macro name. Add more dependencies.
33412
33413 2003-08-17  Simon Josefsson  <jas@extundo.com>
33414
33415         * m4/xstrndup.m4: New file.
33416
33417 2003-08-17  Simon Josefsson  <jas@extundo.com>
33418
33419         * m4/argp.m4: New file.
33420
33421 2003-08-17  Simon Josefsson  <jas@extundo.com>
33422             Bruno Haible  <bruno@clisp.org>
33423
33424         * lib/xstrndup.h: New file.
33425         * lib/xstrndup.c: New file.
33426
33427 2003-08-17  Bruno Haible  <bruno@clisp.org>
33428
33429         * modules/strndup (Files, Include): Add lib/strndup.h.
33430
33431 2003-08-17  Bruno Haible  <bruno@clisp.org>
33432
33433         * modules/euidaccess (Files): Add lib/euidaccess.h.
33434
33435 2003-08-17  Bruno Haible  <bruno@clisp.org>
33436
33437         * lib/strndup.h: New file.
33438
33439 2003-08-17  Bruno Haible  <bruno@clisp.org>
33440
33441         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
33442         like AC_GNU_SOURCE.
33443         * modules/extensions (configure.ac): Comment out the invocation of
33444         gl_USE_SYSTEM_EXTENSIONS.
33445
33446 2003-08-16  Paul Eggert  <eggert@twinsun.com>
33447
33448         Merges from coreutils, etc.
33449         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
33450         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
33451         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
33452         fixing a typo.
33453         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
33454         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
33455
33456 2003-08-16  Paul Eggert  <eggert@twinsun.com>
33457
33458         Document merge from coreutils.
33459         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
33460         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
33461         * modules/utime: Add m4/utimes-null.m4.
33462
33463 2003-08-16  Paul Eggert  <eggert@twinsun.com>
33464
33465         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
33466         space, undoing this 2003-08-12 change:
33467         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
33468
33469 2003-08-16  Paul Eggert  <eggert@twinsun.com>
33470
33471         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
33472         strtoul.c from libc, undoing this 2003-08-12 change:
33473         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
33474
33475 2003-08-16  Jim Meyering  <jim@meyering.net>
33476
33477         Merges from coreutils.
33478         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
33479         prefix.  Adjust cache variables similarly.  Create 500 rather than
33480         just 300 files, to exercise bug on Darwin6.5, too.
33481         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
33482         $missing_dir.
33483         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
33484         AM_SYS_POSIX_TERMIOS.
33485         Reported by mkc@mathdogs.com.
33486         Also change use of $am_cv_sys_posix_termios
33487         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
33488         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
33489         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
33490         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
33491         in /proc/mounts until it finds one with matching device number.  This
33492         is unnecessary when the FILE argument *is* a mount point.  No stat call
33493         is necessary in that case.  So, disable the statvfs-testing code on
33494         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
33495         as RedHat bug# 84846.
33496         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
33497         to 1MB, so as not to render systems with no stack size limit (e.g.,
33498         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
33499         Include <unistd.h>.  On some systems,
33500         it is required for the definition of _SC_PAGESIZE.
33501
33502 2003-08-16  Jim Meyering  <jim@meyering.net>
33503
33504         Merge from coreutils.
33505         * lib/xstrtoimax.c: #else #if -> #elif.
33506         * lib/xstrtoumax.c: Likewise.
33507
33508 2003-08-16  Jim Meyering  <jim@meyering.net>
33509
33510         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
33511         * m4/utimes.m4: Removed.
33512         * m4/utimes-null.m4: Renamed from utimes.m4.
33513
33514         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
33515         to 1MB, so as not to render systems with no stack size limit (e.g.,
33516         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
33517         Include <unistd.h>.  On some systems,
33518         it is required for the definition of _SC_PAGESIZE.
33519
33520 2003-08-16  Jim Meyering  <jim@meyering.net>
33521         and Paul Eggert  <eggert@cs.ucla.edu>
33522
33523         Merges from coreutils, etc.
33524
33525         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
33526         using the latest version from cvs.  This avoids problems with #line
33527         directives using a vendor (Sun) compiler.
33528         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
33529         Don't set GETGROUPS_LIB here; now it's
33530         done via getgroups.m4's wrapper function.
33531         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
33532         rather than just in sh-util/configure.in, so that the
33533         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
33534         same.
33535         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
33536         AC_FUNC_GETLOADAVG where to find getloadavg.c.
33537         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
33538         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
33539         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
33540         Remove code that is now done by the newly-required macros.
33541         Append $(EXEEXT) to DF_PROG.
33542         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
33543         Do not invoke or require the following here,
33544         since prereq.m4 or some gnulib .m4 now does this for us:
33545         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
33546         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
33547         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
33548         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
33549         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
33550         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
33551         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
33552         AC_FUNC_OBSTACK.
33553         Do not replace the following functions, as this is now the job
33554         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
33555         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
33556         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
33557         atexit getpass, strdup, getpagesize.
33558         Replace 'raise'.
33559         Do not check for the following functions, as this is now the job
33560         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
33561         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
33562         setregid.
33563         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
33564         Check for sys/sysctl.h.
33565         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
33566         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
33567         of checking for ssize_t ourselves.
33568
33569         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
33570         Require every macro that gnulib/modules/* suggests for us.
33571         (jm_PREREQ_ADDEXT): New macro.
33572         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
33573         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
33574
33575         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
33576         (gl_PHYSMEM): Use it.
33577         Also check for `table' function.
33578         Check for new headers and functions.
33579         Add check for sys/sysmp.h.
33580         With suggestions from Kaveh Ghazi.
33581         Ignore headers that are present but cannot be compiled.  This
33582         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
33583         C 5.4.
33584
33585 2003-08-15  Paul Eggert  <eggert@twinsun.com>
33586
33587         Document merge from coreutils.
33588         * modules/userspec: Depend on posixver.
33589         * modules/strftime: Depend on tzset.
33590
33591 2003-08-15  Paul Eggert  <eggert@twinsun.com>
33592
33593         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
33594         rather than tab, after '#' in shell-script copyright notices.
33595         Suggested by Bruno Haible.
33596
33597 2003-08-15  Paul Eggert  <eggert@twinsun.com>
33598
33599         * config/srclist-update: Use three spaces, rather than tab, after '#'
33600         in shell-script copyright notices.  Suggested by Bruno Haible.
33601         Remove unnecessary parenthesization in regular expression.
33602
33603 2003-08-15  Jim Meyering  <jim@meyering.net>
33604
33605         Merge from coreutils.
33606         * lib/xgethostname.c: Include <stdlib.h>.
33607         (xghostname): Don't exit for anything other than memory-related
33608         failure; just return NULL.
33609         * lib/userspec.c: Include "posixver.h".
33610         (parse_user_spec): Accept `.' as a separator only
33611         in pre-POSIX-200112 mode.
33612         * lib/strtoimax.c: Use #elif rather than #else #if.
33613         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
33614         Remove function, now that we can rely on a working tzset function.
33615         [!_LIBC]: Ensure that the required autoconf test has been run.
33616         [!defined _NL_CURRENT && HAVE_STRFTIME]:
33617         Use underlying_strftime for %r.
33618         * lib/sha.c: Merge in some clean-up and optimization changes from
33619         glibc.
33620         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
33621         Ensure that it is a multiple of 64.
33622         Rearrange loop exit tests so as to avoid performing an
33623         additional fread after encountering an error or EOF.
33624         * lib/realloc.c: Update copyright date.
33625
33626 2003-08-15  Jim Meyering  <jim@meyering.net>
33627         and Paul Eggert  <eggert@twinsun.com>
33628
33629         Merge from coreutils.
33630         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
33631         member but strut utmpx does not.  Needed for AIX 4.3.3.
33632         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
33633
33634 2003-08-15  Jim Meyering  <jim@meyering.net>
33635         and Paul Eggert  <eggert@cs.ucla.edu>
33636
33637         Merges from coreutils, etc.
33638         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
33639         Require gl_FUNC_TZSET_CLOBBER.
33640         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
33641         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
33642         members.
33643
33644 2003-08-14  Paul Eggert  <eggert@twinsun.com>
33645
33646         Help the merge from coreutils.
33647         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
33648         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
33649         * m4/tzset.m4: Use it too.
33650
33651 2003-08-14  Paul Eggert  <eggert@twinsun.com>
33652
33653         * modules/tzset: New file.
33654
33655 2003-08-14  Jim Meyering  <jim@meyering.net>
33656
33657         Merges from coreutils.
33658         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
33659         variable names, rather than @FNMATCH_H@.
33660         * modules/alloca: Likewise for $(ALLOCA_H).
33661
33662         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
33663         the three copies of the literal target, `fnmatch.h'.
33664         * modules/alloca (alloca.h): Likewise.
33665
33666 2003-08-14  Jim Meyering  <jim@meyering.net>
33667
33668         Merge from coreutils.
33669         * m4/tzset.m4: New file.
33670         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
33671         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
33672         otherwise, AIX 5.1 systems would end up using the latter.
33673         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
33674         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
33675         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
33676         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
33677
33678 2003-08-14  Jim Meyering  <jim@meyering.net>
33679
33680         Merge from coreutils.
33681         * lib/obstack.h: Whitespace changes.
33682         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
33683         and xcalloc return values.
33684         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
33685         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
33686         hang on OSF/1 5.1 for DIR on both local and remote file systems.
33687         Reported by (and fix confirmed by) Nelson H. F. Beebe.
33688         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
33689         error from mntctl.
33690         Use mntctl's return value to drive the entry-processing loop, since
33691         we can't rely on the value of the vmt_length member in the last
33692         entry.  On some systems doing so could result in exhausting
33693         virtual memory.  Based in part on a patch from Mike Jetzer.
33694
33695 2003-08-14  Jim Meyering  <jim@meyering.net>
33696         and Paul Eggert  <eggert@twinsun.com>
33697
33698         Merges from coreutils, plus other fixes.
33699         * lib/physmem.c: Merge in portability changes from gcc/libiberty
33700         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
33701         for credits and details.  Thanks to Kaveh Ghazi for helping
33702         to keep these files in sync.
33703         (ARRAY_SIZE): Define it.
33704         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
33705         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
33706         (memcasecmp): Don't assume size_t fits in unsigned int.
33707         Remove casts and duplicate code.
33708         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
33709         (memcpy): Remove definition.
33710         Merge in some clean-up and optimization changes from glibc.
33711         [BLOCKSIZE]: Move definition to top of file.
33712         Ensure that it is a multiple of 64.
33713         Rearrange loop exit tests so as to avoid performing an
33714         additional fread after encountering an error or EOF.
33715         * lib/md5.h (md5_uintptr): Define.
33716         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
33717         return to the initial working directory.  Preserve errno
33718         for caller.
33719         * lib/idcache.c: Include "xalloc.h".
33720         (xmalloc, xrealloc): Remove decls.
33721         (getuser): Remove casts no longer required in C89.
33722         * lib/human.c: Include stdio.h, for sprintf.
33723         * lib/group-member.c: Include "xalloc.h".
33724         (xmalloc, xrealloc): Remove decls.
33725         (get_group_info): Remove casts no longer required in C89.
33726         * lib/getusershell.c (readname): Remove casts no longer required in
33727         C89.
33728         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
33729         * lib/getline.c: Whitespace fix, from coreutils.
33730
33731 2003-08-13  Paul Eggert  <eggert@twinsun.com>
33732
33733         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
33734         Check for isascii.
33735
33736         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
33737         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
33738         Undo previous (whitespace-only) change.
33739
33740 2003-08-13  Paul Eggert  <eggert@twinsun.com>
33741
33742         * lib/exclude.c: Include <ctype.h>
33743         (IN_CTYPE_DOMAIN): New macro.
33744         (is_space): New fn.
33745         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
33746         and empty lines.
33747
33748         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
33749         Undo previous (whitespace-only) change.
33750
33751 2003-08-13  Paul Eggert  <eggert@twinsun.com>
33752
33753         * config/srclist-update: Change update back to the old behavior,
33754         leaving whitespace alone.  Use one 'sed' command rather than a
33755         pipeline.
33756         (fixlicense): Now a variable, not a function.
33757         (remove_trailing_blanks): Remove.
33758         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
33759         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
33760         Undo previous (whitespace-only) change.
33761
33762 2003-08-12  Paul Eggert  <eggert@twinsun.com>
33763
33764         Merge from coreutils.
33765         * modules/euidaccess: Add lib_SOURCES, include for new
33766         file euidaccess.h
33767
33768 2003-08-12  Paul Eggert  <eggert@twinsun.com>
33769
33770         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
33771         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
33772         Normalize leading white space and remove trailing white space.
33773
33774         Merge from coreutils
33775         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
33776
33777         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
33778         0.12.1.  These files are now being upgraded automatically by
33779         ../config/srclist-update.
33780
33781 2003-08-12  Paul Eggert  <eggert@twinsun.com>
33782
33783         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
33784         Normalize leading white space and remove trailing white space.
33785         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
33786         notice, as per ../config/srclist-update.
33787
33788         Merge from coreutils.
33789         * lib/euidaccess.h: New file.
33790         * lib/euidaccess.c: Include it.
33791         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
33792         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
33793         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
33794
33795 2003-08-12  Paul Eggert  <eggert@twinsun.com>
33796
33797         * config/srclist-update: Add copyright notice.
33798         (remove_id_lines, remove_trailing_blanks): New constants.
33799         (fixfile): Use them to normalize spacing a bit in copied files.
33800         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
33801         Normalize leading white space and remove trailing white space.
33802
33803         * config/texinfo.tex: Sync with texinfo.
33804
33805         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
33806         strtoul.c from libc, to merge coreutils whitespace changes.
33807
33808         * config/srclist.txt: Get the following m4 files from gettext:
33809         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
33810         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
33811         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
33812         wint_t.m4.
33813
33814 2003-08-12  Karl Berry  <karl@gnu.org>
33815
33816         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
33817         been made.
33818
33819 2003-08-11  Paul Eggert  <eggert@twinsun.com>
33820
33821         * modules/gnu-source, m4/gnu-source.m4:
33822         Remove; we're assuming Autoconf 2.54 or later now.
33823         Suggested by Bruno Haible.
33824         * MODULES.html.sh (func_all_modules): Remove gnu-source.
33825
33826 2003-08-11  Bruno Haible  <bruno@clisp.org>
33827
33828         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
33829
33830 2003-08-11  Bruno Haible  <bruno@clisp.org>
33831
33832         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
33833         (vasnprintf): Use it instead of wcslen.
33834
33835 2003-08-11  Bruno Haible  <bruno@clisp.org>
33836
33837         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
33838         value to ensure that _Bool promotes to int. Use #define for _Bool when
33839         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
33840
33841 2003-08-10  Karl Berry  <karl@gnu.org>
33842
33843         * lib/regex.h: update from libc (whitespace fix).
33844
33845 2003-08-09  Paul Eggert  <eggert@twinsun.com>
33846
33847         Merge some files from coreutils.  These changes were
33848         originally made by Jim Meyering.
33849         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
33850         many older Unixes require this.
33851         * lib/alloca.c (alloca): Remove cast to argument of free;
33852         no longer needed in C89.
33853         * lib/alloca_.h, regex.h: Fix white space to match
33854         what GNU indent does.
33855
33856 2003-08-09  Paul Eggert  <eggert@twinsun.com>
33857
33858         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
33859         apparently Emacs's Unicode mode got confused before my 2003-08-05
33860         checkin.
33861
33862 2003-08-08  Paul Eggert  <eggert@twinsun.com>
33863
33864         * m4/extensions.m4: New file.
33865         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
33866         Require gl_USE_SYSTEM_EXTENSIONS.
33867         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
33868         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
33869
33870 2003-08-08  Paul Eggert  <eggert@twinsun.com>
33871
33872         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
33873         * modules/extensions, modules/gnu-source: New files.
33874         * modules/timespec, modules/unlocked-io: Depend on extensions.
33875
33876 2003-08-07  Paul Eggert  <eggert@twinsun.com>
33877
33878         * modules/restrict: New file.
33879         * MODULES.html.sh (func_all_modules): Add restrict.
33880         * modules/regex: Depend on restrict.
33881
33882 2003-08-07  Paul Eggert  <eggert@twinsun.com>
33883
33884         * m4/restrict.m4: New file.
33885         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
33886
33887 2003-08-07  Bruno Haible  <bruno@clisp.org>
33888
33889         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
33890         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
33891
33892 2003-08-07  Bruno Haible  <bruno@clisp.org>
33893
33894         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
33895         makes the module 'getndelim2' compatible with the module 'getline'.
33896
33897 2003-08-05  Paul Eggert  <eggert@twinsun.com>
33898
33899         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
33900         byte with "\201" to avoid glitches when editing that source file
33901         with multi-gnome-terminal.
33902
33903 2003-08-05  Paul Eggert  <eggert@twinsun.com>
33904
33905         * lib/bumpalloc.h: Remove.
33906
33907 2003-08-05  Paul Eggert  <eggert@twinsun.com>
33908
33909         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
33910         * modules/bumpalloc: Remove.
33911
33912 2003-08-04  Paul Eggert  <eggert@twinsun.com>
33913
33914         * lib/getloadavg.c: Change copyright notice and spacing to conform to
33915         GNU coding style.
33916
33917         Merge from coreutils.
33918         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
33919         1. From glibc.
33920         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
33921         from Karl Berry, implemented by Jim Meyering.
33922         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
33923         from Dmitry V. Levin.
33924         Remove anachronistic cast of xrealloc.
33925         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
33926         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
33927         type. Otherwise, it wouldn't compile with at least /bin/cc on
33928         ymp-cray-unicos9.0.2.X.
33929         Combine two mostly-identical uses of alloca into one.
33930         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
33931
33932 2003-08-04  Dave Love  <d.love@dl.ac.uk>
33933
33934         [From Emacs.]
33935
33936         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
33937         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
33938         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
33939         obsolete NLIST_NAME_UNION.
33940         [__GNU__]: Undef BSD and FSCALE.
33941         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
33942
33943 2003-08-03  Paul Eggert  <eggert@twinsun.com>
33944
33945         * lib/stdbool_.h (_Bool): Make it signed char, instead of
33946         an enum type, so that it's guaranteed to promote to int.  See:
33947         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
33948
33949 2003-08-03  Karl Berry  <karl@gnu.org>
33950
33951         * config/depcomp: update from automake.
33952
33953 2003-07-31  Paul Eggert  <eggert@twinsun.com>
33954
33955         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
33956         (strerror): Don't assume that a printable int fits in 14 bytes.
33957
33958 2003-07-31  Bruno Haible  <bruno@clisp.org>
33959
33960         * modules/getpass-gnu: New file.
33961         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
33962
33963 2003-07-31  Bruno Haible  <bruno@clisp.org>
33964
33965         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
33966
33967 2003-07-24  Karl Berry  <karl@gnu.org>
33968
33969         * config/missing: update from automake.
33970
33971 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
33972             Bruno Haible  <bruno@clisp.org>
33973
33974         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
33975         * lib/getline.c (getline, getdelim): Likewise.
33976         Remove _GNU_SOURCE define; now it's defined in config.h through
33977         m4/getline.m4.
33978
33979 2003-07-23  Karl Berry  <karl@gnu.org>
33980
33981         * config/config.sub: update from prep.
33982
33983 2003-07-22  Paul Eggert  <eggert@twinsun.com>
33984
33985         * modules/xalloc (Depends-on): Add exitfail.
33986         * modules/xmemcoll: Likewise.
33987
33988 2003-07-22  Paul Eggert  <eggert@twinsun.com>
33989
33990         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
33991         over-parenthesization in macros.
33992
33993         Sync with coreutils.
33994
33995         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
33996         required by C99.
33997
33998         Use `exit_failure' for xalloc and xmemcoll instead of their own
33999         private exit-failure variables.
34000         * lib/xalloc.h (xalloc_exit_failure): Remove.
34001         * lib/xmalloc.c: Likewise.  Include exitfail.h.
34002         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
34003         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
34004         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
34005         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
34006
34007 2003-07-20  Jim Meyering  <jim@meyering.net>
34008
34009         * modules/closeout (Depends-on): Add exitfail.
34010         Suggestion from Bruno Haible.
34011
34012 2003-07-19  Karl Berry  <karl@gnu.org>
34013
34014         * config/config.sub: update from prep.
34015
34016 2003-07-18  Paul Eggert  <eggert@twinsun.com>
34017
34018         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
34019         Remove.
34020         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
34021         to test that it can stand by itself.  Include "exitfail.h".
34022         Clients should set exit_failure instead.
34023         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
34024
34025 2003-07-18  Bruno Haible  <bruno@clisp.org>
34026
34027         * modules/getndelim2: New file.
34028         * modules/getline: Share files with module getndelim2.
34029         * modules/getnline: Depend on getndelim2 instead of sharing files with
34030         it. Add getnline.c to lib_SOURCES.
34031         * MODULES.html.sh (func_all_modules): Add getndelim2.
34032
34033 2003-07-18  Bruno Haible  <bruno@clisp.org>
34034
34035         * m4/getndelim2.m4: New file.
34036         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
34037         invoke gl_PREREQ_GETNDELIM2.
34038         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
34039         gl_PREREQ_GETNDELIM2.
34040         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
34041         gl_GETNDELIM2.
34042
34043 2003-07-18  Bruno Haible  <bruno@clisp.org>
34044
34045         * lib/getndelim2.h: New file.
34046         * lib/getndelim2.c: Make into a module of its own. Include config.h,
34047         getndelim2.h.
34048         (getndelim2): Make non-static. Change return type to ssize_t.
34049         * lib/getline.h: Change argument names.
34050         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
34051         * lib/getnline.c: Include getndelim2.h.
34052
34053 2003-07-18  Andreas Schwab  <schwab@suse.de>
34054
34055         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
34056
34057 2003-07-17  Karl Berry  <karl@gnu.org>
34058
34059         * config/config.sub: update from prep.
34060
34061 2003-07-17  Bruno Haible  <bruno@clisp.org>
34062
34063         * modules/getnline: New file.
34064         * modules/getline: Add lib/getndelim2.c to source file list.
34065         * MODULES.html.sh (func_all_modules): Add getnline.
34066
34067 2003-07-17  Bruno Haible  <bruno@clisp.org>
34068
34069         * m4/getnline.m4: New file.
34070
34071 2003-07-17  Bruno Haible  <bruno@clisp.org>
34072
34073         * m4/Makefile.am.in: Remove file.
34074         * m4/Makefile.am: Remove file.
34075         * m4/Makefile.in: Remove file.
34076
34077 2003-07-17  Bruno Haible  <bruno@clisp.org>
34078
34079         * lib/getnline.h: New file.
34080         * lib/getnline.c: New file.
34081         * lib/getndelim2.c: New file, extracted from getline.c.
34082         (getndelim2): Renamed from getdelim2, with added nmax argument.
34083         * lib/getline.c: Include getndelim2.c.
34084         (getdelim2): Moved out to getndelim2.c.
34085         (getline, getdelim): Update.
34086
34087 2003-07-17  Bruno Haible  <bruno@clisp.org>
34088
34089         * lib/Makefile.am: Remove file.
34090         * lib/Makefile.in: Remove file.
34091
34092 2003-07-17  Bruno Haible  <bruno@clisp.org>
34093
34094         * configure.in: Remove file.
34095         * Makefile.in: Remove file.
34096
34097 2003-07-17  Bruno Haible  <bruno@clisp.org>
34098
34099         * MODULES.html.sh: Put the </BODY> right before </HTML>.
34100
34101 2003-07-16  Karl Berry  <karl@gnu.org>
34102
34103         * config/srclist-update: was running fixlicense twice, which caused
34104                 texinfo.tex to be nullified for some reason.  Simplify,
34105                 $gplsrc is no longer needed as far as I can see?
34106
34107 2003-07-16  Jim Meyering  <jim@meyering.net>
34108
34109         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
34110
34111 2003-07-15  Paul Eggert  <eggert@twinsun.com>
34112
34113         * config/srclist.txt: Get the following files from gettext-runtime/intl
34114         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
34115         ref-del.sin.  From Bruno Haible.
34116         * config/srclist-update (fixfile): Change grep pattern again, since the
34117         previous fix didn't work (there was another trailing $).  Use
34118         '[$]' to escape the $s.
34119
34120 2003-07-15  Karl Berry  <karl@gnu.org>
34121
34122         * lib/vasnprintf.c: update from gettext.
34123
34124 2003-07-15  Karl Berry  <karl@gnu.org>
34125
34126         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
34127         gets expanded when surrounded by '$'.
34128
34129 2003-07-15  Jim Meyering  <jim@meyering.net>
34130
34131         * modules/save-cwd: Don't depend on error.  From Derek Price.
34132
34133 2003-07-15  Jim Meyering  <jim@meyering.net>
34134
34135         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
34136
34137 2003-07-14  Simon Josefsson  <jas@extundo.com>
34138
34139         * modules/mempcpy: New file.
34140         * MODULES.html.sh (func_all_modules): Add mempcpy.
34141
34142 2003-07-14  Simon Josefsson  <jas@extundo.com>
34143
34144         * m4/mempcpy.m4: New file.
34145
34146 2003-07-14  Simon Josefsson  <jas@extundo.com>
34147
34148         * lib/mempcpy.h: New file.
34149         * lib/mempcpy.c: New file.
34150
34151 2003-07-14  Paul Eggert  <eggert@twinsun.com>
34152
34153         * modules/getdate, modules/posixtm: Depend on mktime.
34154
34155 2003-07-14  Paul Eggert  <eggert@twinsun.com>
34156
34157         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
34158         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
34159         unicodeio.c, unicodeio.h, unlocked-io.h:
34160         Switch from LGPL to GPL.
34161
34162 2003-07-14  Paul Eggert  <eggert@twinsun.com>
34163
34164         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
34165         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
34166         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
34167         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
34168         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
34169         updated automatically by ../config/srclist-update.  This changes
34170         their license from LPGL to GPL.
34171
34172 2003-07-14  Paul Eggert  <eggert@twinsun.com>
34173
34174         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
34175         assumed to refer to the root of the most recent stable gettext version.
34176         * config/srclistvars.sh: Add defaults for eggert.
34177         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
34178         Match "This program" as well as "The program".  This is needed
34179         for gettext.
34180
34181 2003-07-14  Jim Meyering  <jim@meyering.net>
34182
34183         Don't emit diagnostics.  Let callers do that.
34184         * lib/save-cwd.c: Don't include "error.h".
34185         (save_cwd): Don't call error.  Ensure that errno is valid
34186         when returning nonzero.
34187
34188         * lib/save-cwd.h (restore_cwd): Update prototype.
34189         * lib/save-cwd.c (restore_cwd): Remove two parameters.
34190         Simplify.  Don't call error upon failure.  Let callers do that.
34191         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
34192         when auditing is enabled.  But don't bother updating the #if.
34193
34194 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
34195
34196         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
34197         it breaks C++ compilation.
34198         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
34199
34200 2003-07-10  Simon Josefsson  <jas@extundo.com>
34201
34202         * modules/strchrnul (Makefile.am): Add strchrnul.h.
34203
34204 2003-07-10  Jim Meyering  <jim@meyering.net>
34205
34206         * m4/clock_time.m4: Remove trailing blank.
34207         * m4/intmax_t.m4: Likewise.
34208
34209 2003-07-10  Jim Meyering  <jim@meyering.net>
34210
34211         * lib/vasnprintf.c: Remove trailing blanks.
34212         Make cpp indentation consistent.
34213
34214 2003-07-09  Paul Eggert  <eggert@twinsun.com>
34215
34216         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
34217         posixver.c, strftime.c, strnlen.c, strverscmp.c:
34218         Switch from LGPL to GPL.
34219
34220 2003-07-09  Paul Eggert  <eggert@twinsun.com>
34221
34222         * config/srclist.txt: Sort sublists.  Add
34223         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
34224         that differ from gnulib for one reason or another; we'd like this list
34225         to be smaller but for now let's document what we have.
34226
34227 2003-07-08  Paul Eggert  <eggert@twinsun.com>
34228
34229         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
34230         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
34231         and sweeter "eval x=$x".
34232         * config/srclist.txt: Get lib/argp* from glibc.
34233
34234 2003-07-07  Paul Eggert  <eggert@twinsun.com>
34235
34236         * lib/mktime.c: Fix some boundary cases and remove need for floating
34237         point.
34238
34239         Issue a compile-time diagnostic if time_t is floating point, or if
34240         two's complement arithmetic is not in effect, or if arithmetic
34241         right shift does not propagate the sign.  These assumptions were
34242         all in the original code but they weren't checked.
34243
34244         (TIME_T_MIDPOINT, verify): New macros.
34245         (__isleap): Remove; it has integer overflow problems.
34246         (leapyear): New function, without those problems.
34247         (ydhms_tm_diff): Remove; splitting into two parts.
34248         (ydhms_diff): New function, containing the arithmetic part of
34249         the old ydhms_tm_diff function.  Issue a compile-time
34250         diagnostic if we are not using C99 integer division.
34251         Avoid casts when possible.
34252         (guess_time_tm): New function, containing the checking part of
34253         the old ydhms_tm_diff function.  Return the new value, rather than
34254         the difference between it and the old.  Accept a new argument T
34255         so that *T specifies the old value.  Check for overflow in the result.
34256
34257         (__mktime_internal): Use a time_t offset, not a long int offset.
34258         This undoes the 2003-06-04 change, which is no longer needed now
34259         that we have better overflow checking.
34260         (localtime_offset): Likewise.
34261
34262         (__mktime_internal): Avoid harmful overflow on hosts where time_t
34263         and long are 64-bit but int is only 32-bit.
34264         (ydhms_diff): Use long int to store year1 and yday1.
34265         Issue a compile-time diagnostic if long int is not wide enough.
34266
34267         (__mktime_internal): Use long int to store adjusted year and yday.
34268         Use plain C rather than preprocessor commands, if that doesn't
34269         affect efficiency.
34270         Check for overflow (and try to repair) after each probe
34271         rather than checking only at the very end.  This avoids some bugs
34272         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
34273         does not equal GMT offset at maximum time).
34274         Use integer to check for overflow rather than floating point; this
34275         is more portable to non-IEEE hosts, and is a tad faster.
34276         When we detect that we are oscillating between two values,
34277         don't check whether tm_isdst has the requested value, since
34278         we already know the answer.  When tm_isdst has the wrong value,
34279         use a different heuristic to find the right one, based on the
34280         extreme values actually observed in practice in tz2003a,
34281         rather than the (overly optimistic) "previous 3 calendar quarters".
34282
34283         (not_equal_tm, print_tm, check_result): Use "const T" rather than
34284         "T const" to accommodate glibc style.
34285         (check_result): Use less-confusing report format.  "long" -> "long int.
34286         (main): Likewise.
34287         Don't loop if the iteration overflows time_t.
34288         Allow a negative step in the iteration.
34289
34290 2003-07-06  Karl Berry  <karl@gnu.org>
34291
34292         * config/depcomp: update from automake.
34293         * config/config.sub: update from prep.
34294
34295 2003-07-03  Karl Berry  <karl@gnu.org>
34296
34297         * config/config.guess: update from prep.
34298
34299 2003-07-01  Paul Eggert  <eggert@twinsun.com>
34300
34301         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
34302         xreadlink.c now includes it unconditionally.
34303
34304 2003-07-01  Paul Eggert  <eggert@twinsun.com>
34305
34306         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
34307         having it depend on HAVE_SYS_TYPES_H.
34308
34309 2003-07-01  Bruno Haible  <bruno@clisp.org>
34310
34311         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
34312         <sys/types.h> should be sufficient.
34313         Reported by Paul Eggert.
34314
34315 2003-06-26  Karl Berry  <karl@gnu.org>
34316
34317         * config/depcomp: update from automake.
34318
34319 2003-06-26  Bruno Haible  <bruno@clisp.org>
34320
34321         * modules/human: Depend on module stdbool.
34322
34323 2003-06-25  Bruno Haible  <bruno@clisp.org>
34324
34325         * modules/readlink: New file.
34326         * modules/xreadlink: Depend on it.
34327         * MODULES.html.sh (func_all_modules): Add readlink.
34328
34329 2003-06-25  Bruno Haible  <bruno@clisp.org>
34330
34331         * m4/readlink.m4: New file.
34332
34333 2003-06-25  Bruno Haible  <bruno@clisp.org>
34334
34335         * lib/readlink.c: New file.
34336
34337 2003-06-22  Karl Berry  <karl@gnu.org>
34338
34339         * config/srclist.txt: update mkinstalldirs from automake.
34340         * config/mkinstalldirs: update.
34341
34342 2003-06-22  Bruno Haible  <bruno@clisp.org>
34343
34344         Portability to mingw32.
34345         * m4/ssize_t.m4: New file, from GNU gettext.
34346         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
34347         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
34348
34349 2003-06-22  Bruno Haible  <bruno@clisp.org>
34350
34351         * modules/safe-read: Add m4/ssize_t.m4.
34352         * modules/xreadlink: Add m4/ssize_t.m4.
34353
34354 2003-06-20  Bruno Haible  <bruno@clisp.org>
34355
34356         Assume C89, so PARAMS isn't needed.
34357         * lib/unicodeio.h (PARAMS): Remove.
34358         * lib/unicodeio.c: Don't use PARAMS.
34359
34360 2003-06-18  Karl Berry  <karl@gnu.org>
34361
34362         * config/config.{guess,sub}: update from prep.
34363
34364 2003-06-18  Jim Meyering  <jim@meyering.net>
34365
34366         Merge changes from coreutils.
34367         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
34368         Remove explicit declarations of xmalloc and realloc.
34369         Include xalloc.h.
34370         (read_utmp): Remove anachronistic cast of xmalloc.
34371
34372 2003-06-17  Paul Eggert  <eggert@twinsun.com>
34373
34374         Assume C89, so PARAMS isn't needed.
34375         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
34376         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
34377         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
34378         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
34379         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
34380         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
34381         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
34382         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
34383         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
34384         lib/xstrtod.h, lib/xstrtol.h: Likewise.
34385         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
34386         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
34387         no longer needed. Anyway, config.h should always be included before any
34388         other file.
34389
34390 2003-06-11  Simon Josefsson  <jas@extundo.com>
34391
34392         * modules/sysexits: New file.
34393         * MODULES.html.sh (func_all_modules): Add sysexits.
34394
34395 2003-06-11  Simon Josefsson  <jas@extundo.com>
34396
34397         * lib/sysexit_.h: New file.
34398
34399 2003-06-11  Derek Price  <derek@ximbiot.com>
34400
34401         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
34402         necessary.
34403
34404 2003-06-11  Bruno Haible  <bruno@clisp.org>
34405
34406         * m4/sysexits.m4: New file.
34407
34408 2003-06-10  Simon Josefsson  <jas@extundo.com>
34409
34410         * lib/argp.h: New file, from glibc.
34411         * lib/argp-ba.c: New file, from glibc.
34412         * lib/argp-eexst.c: New file, from glibc.
34413         * lib/argp-fmtstream.c: New file, from glibc.
34414         * lib/argp-fmtstream.h: New file, from glibc.
34415         * lib/argp-fs-xinl.c: New file, from glibc.
34416         * lib/argp-help.c: New file, from glibc.
34417         * lib/argp-namefrob.h: New file, from glibc.
34418         * lib/argp-parse.c: New file, from glibc.
34419         * lib/argp-pv.c: New file, from glibc.
34420         * lib/argp-pvh.c: New file, from glibc.
34421         * lib/argp-xinl.c: New file, from glibc.
34422
34423 2003-06-10  Simon Josefsson  <jas@extundo.com>
34424
34425         * modules/strchrnul: New file.
34426
34427 2003-06-10  Simon Josefsson  <jas@extundo.com>
34428
34429         * modules/argp: New file.
34430
34431 2003-06-10  Simon Josefsson  <jas@extundo.com>
34432
34433         * m4/strchrnul.m4: New file.
34434
34435 2003-06-10  Simon Josefsson  <jas@extundo.com>
34436
34437         * lib/strchrnul.h: New file.
34438         * lib/strchrnul.c: New file.
34439
34440 2003-06-10  Bruno Haible  <bruno@clisp.org>
34441
34442         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
34443
34444 2003-06-07  Karl Berry  <karl@gnu.org>
34445
34446         * config/config.{guess,sub}: update from prep.
34447
34448 2003-06-07  Jim Meyering  <jim@meyering.net>
34449
34450         * modules/strtod: Use $(...) notation, not @...@ for
34451         AC_REPLACE'd variables.
34452         * modules/localcharset: Likewise.
34453
34454 2003-06-07  Jim Meyering  <jim@meyering.net>
34455
34456         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
34457         in place of my name in the copyright comment.
34458         Remove definition and uses of __P.
34459
34460         From coreutils.
34461         * lib/stat.c: Don't declare xmalloc explicitly.
34462         Instead, include "xalloc.h".
34463         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
34464         xrealloc, and xcalloc return values.
34465         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
34466         Improve comment.
34467         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
34468
34469 2003-06-07  Bruno Haible  <bruno@clisp.org>
34470
34471         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
34472         avoid AC_CONFIG_LINKS.
34473         * modules/fnmatch (Makefile.am): Use explicit creation rule for
34474         fnmatch.h, to avoid AC_CONFIG_LINKS.
34475         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
34476
34477 2003-06-07  Bruno Haible  <bruno@clisp.org>
34478
34479         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
34480         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
34481         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
34482         directory.
34483         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
34484         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
34485         directory.
34486
34487 2003-06-06  Jim Meyering  <jim@meyering.net>
34488
34489         Merge from coreutils.
34490         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
34491         Consolidate declarations and initializations of *_base* locals.
34492
34493         Merge from coreutils.
34494         This avoids a core dump on systems without GNU putenv,
34495         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
34496         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
34497         (unsetenv): New static function, from GNU libc.
34498         (rpl_putenv): Use it.
34499
34500         * lib/modechange.c: Remove trailing blanks.
34501
34502         Merge from coreutils.
34503         * lib/fsusage.c: Remove declaration of statfs.
34504         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
34505
34506         * lib/posixtm.c: Include <stdbool.h> unconditionally.
34507
34508 2003-06-06  Jim Meyering  <jim@meyering.net>
34509
34510         * lib/stdbool_.h: Renamed from stdbool.h.in.
34511
34512 2003-06-06  Jim Meyering  <jim@meyering.net>
34513             Bruno Haible  <bruno@clisp.org>
34514
34515         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
34516         Adjust Makefile.am snippet not to redirect directly to target.
34517         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
34518
34519 2003-06-05  Paul Eggert  <eggert@twinsun.com>
34520
34521         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
34522         mismatch, look in future quarters as well as past.  This fixes a
34523         bug when processing fall-backwards gaps immediately after a long
34524         period of daylight-saving time.
34525
34526         * lib/mktime.c: Assume freestanding C89 or better.
34527         (HAVE_LIMITS_H): Remove.  Assume it's 1.
34528         (__P): Remove; not used.
34529         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
34530         (mktime, not_equal_tm, print_tm, check_result,
34531         main): Use prototypes.  Use const * where appropriate.
34532         (main): Fix typo in testing code that uncovered by above changes.
34533         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
34534
34535 2003-06-04  Paul Eggert  <eggert@twinsun.com>
34536
34537         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
34538         locale.h, localeconv.  This merges changes from coreutils.
34539
34540         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
34541         It can be removed after the next Autoconf is released.
34542         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
34543         needed.
34544
34545 2003-06-04  Paul Eggert  <eggert@twinsun.com>
34546
34547         * lib/mktime.c: Fix Debian bug 177940
34548         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
34549         (localtime_offset): Now long int, not time_t, because we want it
34550         to be guaranteed to be signed.  All uses changed.
34551         (__mktime_internal): If overflow would occur when adding offset,
34552         don't add it.
34553
34554         Merge 'human' changes from coreutils.  Rewrite to support
34555         locale-specific notations like thousands separators.
34556         * lib/human.c: Simplify authorship notice.
34557         Include human.h immediately after config.h.
34558         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
34559         <limits.h>: Do not include, since human.h does.
34560         (SIZE_MAX, UINTMAX_MAX): New macros.
34561         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
34562         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
34563         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
34564         (power_letter): Renamed from suffixes.
34565         (generate_suffix_backwards): Remove.
34566         (adjust_value): Now takes int style (because of human.h changes)
34567         and long double value (for greater precision on some platforms).
34568         (group_number): New function.
34569         (human_readable): Use it.  Use integer options, not enum.
34570         Put the options before the sizes in the arg list.
34571         Support all the new options.
34572         The old human_readable function has been removed;
34573         use inttostr.h instead.
34574         (human_readable, default_block_size, humblock):
34575         Use uintmax_t, not int, for block sizes.
34576         (human_readable_inexact, block_size_types): Remove.
34577         (block_size_opts): New constant.
34578         (human_options): Renamed from human_block_size, with new signature
34579         that allows block sizes up to UINTMAX_MAX.  All callers changed.
34580         * lib/human.h: Add copyright and authorship notice.
34581         Include <limits.h> and <stdbool.h> unconditionally.
34582         (PARAMS): Remove.  All uses removed.
34583         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
34584         (enum human_inexact_style): Remove tag; now a nameless enum.
34585         (human_floor, human_ceiling, human_round_to_even): Now have
34586         values 2, 0, 1 rather than -1, 1, 0.
34587         (human_group_digits, human_suppress_point_zero, human_autoscale,
34588         human_base_1024, human_SI, human_B): New constants.
34589         (human_readable_inexact, human_block_size): Remove.
34590         (human_readable): Size args are now uintmax_t, not int.
34591         (human_options): New decl.
34592
34593         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
34594         unnecessary now that we assume C89 or better.  This change
34595         imported from coreutils.
34596
34597         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
34598         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
34599         in the 2003-05-30 sync from glibc.
34600
34601         .h files should stand alone, but we shouldn't include <sys/types.h>
34602         if we can get away with just <stddef.h>.
34603
34604         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
34605         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
34606         rather than <sys/types.h>, as we merely need size_t.
34607         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
34608         to get size_t.
34609         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
34610         Include <stdio.h>, to get FILE.
34611         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
34612         memcasecmp.h has included <stddef.h> and all we need is size_t.
34613         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
34614         our interface, instead of including <sys/types.h>
34615
34616 2003-06-04  Paul Eggert  <eggert@twinsun.com>
34617
34618         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
34619         now, as glibc mktime is buggy on non-glibc systems.
34620
34621 2003-06-03  Karl Berry  <karl@gnu.org>
34622
34623         * config/config.sub: update from prep.
34624
34625 2003-06-02  Paul Eggert  <eggert@twinsun.com>
34626
34627         [from coreutils]
34628         Fix some minor time-related bugs with POSIX time arguments.
34629         Some valid time stamps were being rejected (notably -1, and
34630         time stamps before 1900 on 64-bit hosts).  And some invalid
34631         time stamps were being accepted, e.g. September 31.
34632
34633         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
34634         that we can return (time_t) -1 successfully.
34635         * lib/posixtm.c: Likewise.
34636         [HAVE_STDBOOL_H]: Include <stdbool.h>.
34637         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
34638         (t): Remove static var.
34639         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
34640         of static var.  All uses changed.
34641         (year): Do not reject years before 1900; they can occur with
34642         64-bit time_t.
34643         (posix_time_parse): Do not check for out-of-range components;
34644         that is now the caller's responsibility, since our checks were
34645         only approximations.
34646         (posixtime): Use mktime to check for out-of-range components,
34647         since it knows them exactly.
34648         If mktime returns (time_t) -1, check whether an error actually occurred
34649         by invoking localtime on -1.
34650         (main) [TEST_POSIXTIME]: Check for input data errors, and report
34651         posixtime failures better.
34652         Improve the test data (in comments only).
34653
34654 2003-06-02  Karl Berry  <karl@gnu.org>
34655
34656         * config/mkinstalldirs (version): new variable.
34657         (--version): new option.
34658         (usage): improve message.
34659
34660 2003-05-30  Karl Berry  <karl@gnu.org>
34661
34662         * lib/mktime.c: update from libc.
34663
34664 2003-05-30  Bruno Haible  <bruno@clisp.org>
34665
34666         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
34667         * config/config.rpath: Upgrade to gettext-0.12.1.
34668
34669 2003-05-30  Bruno Haible  <bruno@clisp.org>
34670
34671         * m4/gettext.m4: Upgrade to gettext-0.12.1.
34672         * m4/nls.m4: New file, from gettext-0.12.1.
34673         * m4/po.m4: New file, from gettext-0.12.1.
34674         * m4/progtest.m4: Upgrade to gettext-0.12.1.
34675
34676 2003-05-30  Bruno Haible  <bruno@clisp.org>
34677
34678         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
34679         * lib/localcharset.h: Likewise.
34680         * lib/localcharset.c: Likewise.
34681
34682 2003-05-29  Karl Berry  <karl@gnu.org>
34683
34684         * config/config.rpath: update from gettext.
34685
34686 2003-05-28  Paul Eggert  <eggert@twinsun.com>
34687
34688         Assume the headers required for C89 freestanding compilers.
34689         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
34690         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
34691         * m4/human.m4 (gl_HUMAN): Likewise.
34692         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
34693         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
34694         * m4/userspec.m4 (gl_USERSPEC): Likewise.
34695         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
34696         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
34697         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
34698
34699 2003-05-28  Paul Eggert  <eggert@twinsun.com>
34700
34701         Assume the headers required for C89 freestanding compilers.
34702         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
34703         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
34704         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
34705         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
34706         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
34707         define, since <limits.h> is guaranteed to do that.
34708         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
34709         * lib/exclude.c: Include <stdbool.h> unconditionally.
34710         * lib/tempname.c: Include <stddef.h> unconditionally.
34711         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
34712         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
34713         <stddef.h> does that.
34714         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
34715         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
34716         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
34717         needed.
34718         * lib/xstrtol.c: Likewise.
34719         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
34720         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
34721
34722         * lib/addext.c (addext): Use assignment rather than cast, to avoid
34723         warnings on some platforms.
34724
34725         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
34726         arbitrarily.
34727
34728 2003-05-26  Jim Meyering  <jim@meyering.net>
34729
34730         Merge in a change from coreutils:
34731         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
34732         that is guaranteed to be `no'.  Use `no_such_member' to indicate
34733         that condition, rather than `-1' which is slightly misleading.
34734         Change the name of the cache variable to have the gl_ prefix.
34735         Prompted by a patch from Richard Dawe for DJGPP.
34736
34737 2003-05-24  Karl Berry  <karl@gnu.org>
34738
34739         * config/config.guess: update from prep.
34740
34741 2003-05-22  Karl Berry  <karl@gnu.org>
34742
34743         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
34744
34745 2003-05-20  Karl Berry  <karl@gnu.org>
34746
34747         * config/config.guess: update from prep.
34748
34749 2003-05-18  Karl Berry  <karl@gnu.org>
34750
34751         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
34752         might actually be set by the user.
34753
34754         * config/depcomp, install-sh, mdate-sh: update from automake.
34755
34756 2003-05-17  Bruno Haible  <bruno@clisp.org>
34757
34758         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
34759         invalid expansion for AC_EGREP_CPP.
34760         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
34761         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
34762         Suggested by Akim Demaille <akim@epita.fr> in
34763         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
34764
34765 2003-05-12  Jim Meyering  <jim@meyering.net>
34766
34767         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
34768         the space-padded-by-default conversion specifiers, %e, %k, %l.
34769
34770 2003-05-12  Bruno Haible  <bruno@clisp.org>
34771
34772         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
34773         the string is longer than 4 KB.
34774
34775 2003-05-11  Karl Berry  <karl@gnu.org>
34776
34777         * config/config.{guess,sub}: update from prep.
34778
34779 2003-05-09  Bruno Haible  <bruno@clisp.org>
34780
34781         * modules/error: Add m4/strerror_r.m4 to file list.
34782
34783 2003-05-03  Bruno Haible  <bruno@clisp.org>
34784
34785         Upgrade to Unicode-4.0.
34786         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
34787         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
34788         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
34789         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
34790         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
34791         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
34792         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
34793         Change width of U+E0100..U+E01EF from 1 to 0.
34794
34795 2003-04-25  Jim Meyering  <jim@meyering.net>
34796
34797         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
34798         of type size_t, not int.
34799
34800 2003-04-25  Bruno Haible  <bruno@clisp.org>
34801
34802         * lib/copy-file.c: Include <stddef.h>, for size_t.
34803
34804 2003-04-21  Paul Eggert  <eggert@twinsun.com>
34805
34806         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
34807         code which expansion is under static control.  Patch imported from
34808         Akim Demaille's patch to Bison; see
34809         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
34810
34811 2003-04-14  Bruno Haible  <bruno@clisp.org>
34812
34813         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
34814
34815 2003-04-11  Jim Meyering  <jim@meyering.net>
34816
34817         Merge changes from Coreutils.
34818
34819         2003-03-22  Jim Meyering  <jim@meyering.net>
34820
34821         * lib/strftime.c (widen): Cast alloca return value to proper type.
34822
34823         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
34824
34825         From GNU libc.
34826         * lib/strftime.c (my_strftime): Handle very large width
34827         specifications for numeric values correctly.  Improve checks for
34828         overflow.
34829
34830         2003-01-19  Jim Meyering  <jim@meyering.net>
34831
34832         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
34833         definitions.
34834         (nl_get_alt_digit) [! defined my_strftime]: Define.
34835         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
34836         _nl_get_alt_digit and _nl_get_walt_digit.
34837
34838         * lib/strftime.c (my_strftime): Merge in locale-related changes from
34839         libc. These changes have no effect outside of _LIBC.
34840
34841 2003-04-10  Bruno Haible  <bruno@clisp.org>
34842
34843         * modules/findprog: New file.
34844         * MODULES.html.sh (func_all_modules): Add it.
34845
34846 2003-04-10  Bruno Haible  <bruno@clisp.org>
34847
34848         * m4/findprog.m4: New file.
34849         * m4/eaccess.m4: New file.
34850
34851 2003-04-10  Bruno Haible  <bruno@clisp.org>
34852
34853         * lib/findprog.h: New file, from GNU gettext.
34854         * lib/findprog.c: New file, from GNU gettext.
34855
34856 2003-04-05  Jim Meyering  <jim@meyering.net>
34857
34858         Merge changes from Coreutils.
34859
34860         * lib/exclude.h (PARAMS): Remove definition and uses.
34861         * lib/exclude.c: Remove uses of `PARAMS'.
34862
34863         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
34864         Add test-cases for DOS filenames. Declare program_name.
34865         (main): Set up program_name.  Patch by Rich Dawe.
34866
34867         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
34868         error from mntctl.
34869         Use mntctl's return value to drive the entry-processing loop, since
34870         we can't rely on the value of the vmt_length member in the last
34871         entry.  On some systems doing so could result in exhausting
34872         virtual memory.  Based in part on a patch from Mike Jetzer.
34873
34874 2003-04-04  Bruno Haible  <bruno@clisp.org>
34875
34876         * modules/linebreak: New file.
34877         * MODULES.html.sh (func_all_modules): Add it.
34878
34879 2003-04-04  Bruno Haible  <bruno@clisp.org>
34880
34881         * m4/linebreak.m4: New file.
34882
34883 2003-04-04  Bruno Haible  <bruno@clisp.org>
34884
34885         * lib/linebreak.h: New file, from GNU gettext.
34886         * lib/linebreak.c: New file, from GNU gettext with slight
34887         modifications.
34888         * lib/lbrkprop.h: New file, from GNU gettext.
34889
34890 2003-04-03  Bruno Haible  <bruno@clisp.org>
34891
34892         * modules/utf8-ucs4: New file.
34893         * modules/utf16-ucs4: New file.
34894         * modules/ucs4-utf8: New file.
34895         * modules/ucs4-utf16: New file.
34896         * MODULES.html.sh (func_all_modules): Add them.
34897
34898 2003-04-03  Bruno Haible  <bruno@clisp.org>
34899
34900         * m4/utf-ucs4.m4: New file.
34901         * m4/ucs4-utf.m4: New file.
34902
34903 2003-04-03  Bruno Haible  <bruno@clisp.org>
34904
34905         * lib/utf8-ucs4.h: New file, from GNU gettext.
34906         * lib/utf16-ucs4.h: New file, from GNU gettext.
34907         * lib/ucs4-utf8.h: New file, from GNU gettext.
34908         * lib/ucs4-utf16.h: New file, from GNU gettext.
34909
34910 2003-04-02  Bruno Haible  <bruno@clisp.org>
34911
34912         * modules/binary-io: New file.
34913         * MODULES.html.sh (func_all_modules): Add it.
34914
34915 2003-04-02  Bruno Haible  <bruno@clisp.org>
34916
34917         * lib/binary-io.h: New file, from GNU gettext.
34918
34919 2003-04-01  Bruno Haible  <bruno@clisp.org>
34920
34921         * modules/pathname: New file.
34922         * MODULES.html.sh (func_all_modules): Add it.
34923
34924 2003-04-01  Bruno Haible  <bruno@clisp.org>
34925
34926         * lib/pathname.h: New file, from GNU gettext.
34927         * lib/concatpath.c: New file, from GNU gettext.
34928
34929 2003-03-30  Bruno Haible  <bruno@clisp.org>
34930
34931         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
34932
34933 2003-03-30  Bruno Haible  <bruno@clisp.org>
34934
34935         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
34936         function chown() doesn't exist.
34937
34938 2003-03-28  Bruno Haible  <bruno@clisp.org>
34939
34940         * modules/copy-file: New file.
34941         * MODULES.html.sh (func_all_modules): Add it.
34942
34943 2003-03-28  Bruno Haible  <bruno@clisp.org>
34944
34945         * m4/copy-file.m4: New file.
34946
34947 2003-03-28  Bruno Haible  <bruno@clisp.org>
34948
34949         * lib/copy-file.h: New file, from GNU gettext.
34950         * lib/copy-file.c: New file, from GNU gettext.
34951
34952 2003-03-18  Jim Meyering  <jim@meyering.net>
34953
34954         * lib/quote.c (quote_n): Fix typo in comment.
34955
34956 2003-03-18  Bruno Haible  <bruno@clisp.org>
34957
34958         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
34959         checking.
34960         * m4/onceonly_2_57.m4: Likewise.
34961
34962 2003-03-17  Bruno Haible  <bruno@clisp.org>
34963
34964         * m4/onceonly.m4: Require autoconf 2.54 or newer.
34965         (m4_quote): Remove macro.
34966         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
34967
34968 2003-03-14  Jim Meyering  <jim@meyering.net>
34969
34970         Merge changes from Coreutils.
34971         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
34972         to be const, in order to avoid warnings.
34973         (obstack_room): Likewise.
34974         (obstack_empty_p): Likewise.
34975
34976 2003-03-14  Bruno Haible  <bruno@clisp.org>
34977
34978         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
34979         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
34980
34981 2003-03-13  Paul Eggert  <eggert@twinsun.com>
34982
34983         Merge changes from Bison.
34984         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
34985         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
34986         when compiling Bison 1.875's `bitset bset = obstack_alloc
34987         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
34988         * lib/hash.c: Include <stdbool.h> unconditionally.
34989
34990 2003-03-13  Paul Eggert  <eggert@twinsun.com>
34991
34992         * m4/onceonly.m4 (m4_quote): New macro.
34993         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
34994         Quote AC_FOREACH variable-expansions properly.
34995
34996 2003-03-13  Paul Eggert  <eggert@twinsun.com>
34997
34998         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
34999
35000 2003-03-09  Paul Eggert  <eggert@twinsun.com>
35001
35002         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
35003         Reported by Bruce Becker; see:
35004         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
35005
35006 2003-03-03  Paul Eggert  <eggert@twinsun.com>
35007             Bruno Haible  <bruno@clisp.org>
35008
35009         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
35010         Reported by John Hughes, see
35011         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
35012
35013 2003-02-20  Bruno Haible  <bruno@clisp.org>
35014
35015         * MODULES.html.sh (func_all_modules): Add poll.
35016
35017 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
35018
35019         * modules/poll: New file.
35020
35021 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
35022
35023         * lib/poll_.h: New file.
35024         * lib/poll.c: New file.
35025
35026 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
35027
35028         * m4/poll.m4: New file.
35029
35030 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
35031
35032         * modules/mathl: New file.
35033
35034 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
35035
35036         * lib/mathl.h: New file.
35037         * lib/acosl.c: New file.
35038         * lib/asinl.c: New file.
35039         * lib/atanl.c: New file.
35040         * lib/ceill.c: New file.
35041         * lib/cosl.c: New file.
35042         * lib/expl.c: New file.
35043         * lib/floorl.c: New file.
35044         * lib/frexpl.c: New file.
35045         * lib/ldexpl.c: New file.
35046         * lib/logl.c: New file.
35047         * lib/sincosl.c: New file.
35048         * lib/sinl.c: New file.
35049         * lib/sqrtl.c: New file.
35050         * lib/tanl.c: New file.
35051         * lib/trigl.c: New file.
35052         * lib/trigl.h: New file.
35053
35054 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
35055
35056         * m4/mathl.m4: New file.
35057
35058 2003-02-18  Bruno Haible  <bruno@clisp.org>
35059
35060         * MODULES.html.sh (func_all_modules): Add mathl.
35061
35062 2003-02-17  Bruno Haible  <bruno@clisp.org>
35063
35064         * modules/mkdtemp: New module.
35065         * MODULES.html.sh (func_all_modules): Add it.
35066
35067 2003-02-17  Bruno Haible  <bruno@clisp.org>
35068
35069         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
35070
35071 2003-02-17  Bruno Haible  <bruno@clisp.org>
35072
35073         * lib/mkdtemp.h: New file, from GNU gettext.
35074         * lib/mkdtemp.c: New file, from GNU gettext.
35075
35076 2003-02-02  Jim Meyering  <jim@meyering.net>
35077
35078         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
35079         e.g. glibc-2.2.93.
35080
35081 2003-01-31  Bruno Haible  <bruno@clisp.org>
35082
35083         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
35084         'rpl_rename'.
35085         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
35086         'rpl_strnlen'.
35087         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
35088         'rpl_strtod'.
35089         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
35090         'rpl_utime'.
35091
35092 2003-01-31  Bruno Haible  <bruno@clisp.org>
35093
35094         * lib/rename.c: #undef rename before defining rpl_rename.
35095         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
35096
35097 2003-01-30  Bruno Haible  <bruno@clisp.org>
35098
35099         * modules/vasnprintf, modules/vasprintf: New modules.
35100         * MODULES.html.sh (func_all_modules): Add them.
35101
35102 2003-01-30  Bruno Haible  <bruno@clisp.org>
35103
35104         * m4/signed.m4: New file, from GNU gettext.
35105         * m4/longdouble.m4: New file, from GNU gettext.
35106         * m4/wchar_t.m4: New file, from GNU gettext.
35107         * m4/wint_t.m4: New file, from GNU gettext.
35108         * m4/vasnprintf.m4: New file.
35109         * m4/vasprintf.m4: New file.
35110
35111 2003-01-30  Bruno Haible  <bruno@clisp.org>
35112
35113         * lib/printf-args.h: New file, from GNU gettext.
35114         * lib/printf-args.c: New file, from GNU gettext.
35115         * lib/printf-parse.h: New file, from GNU gettext.
35116         * lib/printf-parse.c: New file, from GNU gettext.
35117         * lib/vasnprintf.h: New file, from GNU gettext.
35118         * lib/vasnprintf.c: New file, from GNU gettext.
35119         * lib/asnprintf.c: New file, from GNU gettext.
35120         * lib/vasprintf.h: New file, from GNU gettext with modifications.
35121         * lib/vasprintf.c: New file, from GNU gettext.
35122         * lib/asprintf.c: New file, from GNU gettext.
35123
35124 2003-01-29  Bruno Haible  <bruno@clisp.org>
35125
35126         * modules/stpncpy: New module.
35127         * MODULES.html.sh (func_all_modules): Add it.
35128
35129 2003-01-29  Bruno Haible  <bruno@clisp.org>
35130
35131         * m4/stpncpy.m4: New file.
35132
35133 2003-01-29  Bruno Haible  <bruno@clisp.org>
35134
35135         * lib/stpncpy.h: New file, from GNU gettext with modifications.
35136         * lib/stpncpy.c: New file, from GNU gettext with modifications.
35137
35138 2003-01-28  Bruno Haible  <bruno@clisp.org>
35139
35140         * modules/c-ctype: New module.
35141         * MODULES.html.sh (func_all_modules): Add it.
35142
35143 2003-01-28  Bruno Haible  <bruno@clisp.org>
35144
35145         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
35146         Paul Eggert.
35147         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
35148         Paul Eggert.
35149
35150 2003-01-27  Bruno Haible  <bruno@clisp.org>
35151
35152         * modules/xsetenv: New module.
35153         * MODULES.html.sh (func_all_modules): Add it.
35154
35155 2003-01-27  Bruno Haible  <bruno@clisp.org>
35156
35157         * lib/xsetenv.h: New file, from GNU gettext.
35158         * lib/xsetenv.c: New file, from GNU gettext.
35159
35160 2003-01-23  Jim Meyering  <jim@meyering.net>
35161
35162         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
35163         from working on systems without dirfd (at least Irix and OSF1/Tru64).
35164
35165 2003-01-23  Bruno Haible  <bruno@clisp.org>
35166
35167         * modules/minmax: New module.
35168         * MODULES.html.sh (func_all_modules): Add it.
35169
35170 2003-01-23  Bruno Haible  <bruno@clisp.org>
35171
35172         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
35173         Eggert.
35174
35175 2003-01-22  Bruno Haible  <bruno@clisp.org>
35176
35177         * modules/exit: New module.
35178         * MODULES.html.sh (func_all_modules): Add it.
35179
35180 2003-01-22  Bruno Haible  <bruno@clisp.org>
35181
35182         * lib/exit.h: New file, from GNU gettext.
35183
35184 2003-01-19  Bruno Haible  <bruno@clisp.org>
35185
35186         * gnulib-tool: Recognize option --extract-maintainer.
35187         (func_get_maintainer): New function.
35188         * modules/*: Add Maintainer entry.
35189
35190 2003-01-16  Jim Meyering  <jim@meyering.net>
35191
35192         * m4/regex.m4: The `regex' struct is both input and output.
35193         Initialize it before each use.  Patch by Tim Waugh.
35194
35195 2003-01-16  Bruno Haible  <bruno@clisp.org>
35196
35197         * MODULES.html.sh: Add a table of contents. Add the module name as
35198         leftmost column. Add hyperlinks.
35199
35200 2003-01-15  Bruno Haible  <bruno@clisp.org>
35201
35202         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
35203
35204 2003-01-15  Bruno Haible  <bruno@clisp.org>
35205
35206         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
35207         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
35208         suffix.
35209
35210 2003-01-15  Bruno Haible  <bruno@clisp.org>
35211
35212         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
35213
35214 2003-01-15  Bruno Haible  <bruno@clisp.org>
35215
35216         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
35217         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
35218
35219 2003-01-14  Jim Meyering  <jim@meyering.net>
35220
35221         * lib/same.c (same_name): Tweak a comment.
35222
35223 2003-01-14  Bruno Haible  <bruno@clisp.org>
35224
35225         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
35226         when a string comparison is sufficient.
35227
35228 2003-01-14  Bruno Haible  <bruno@clisp.org>
35229
35230         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
35231         'unsigned int'.
35232
35233 2003-01-14  Bruno Haible  <bruno@clisp.org>
35234
35235         * lib/hash-pjw.c: Add comment about low quality of this function.
35236
35237 2003-01-13  Bruno Haible  <bruno@clisp.org>
35238
35239         * modules/stpcpy: Distribute lib/stpcpy.h.
35240         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
35241
35242 2003-01-13  Bruno Haible  <bruno@clisp.org>
35243
35244         * modules/*: Add a description.
35245         * modules/strpbrk: Fix Makefile.am snippet.
35246         * modules/strtoimax: Fix dependencies.
35247         * modules/strtoumax: Likewise.
35248
35249 2003-01-13  Bruno Haible  <bruno@clisp.org>
35250
35251         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
35252         * modules/alloca (Makefile.am): All object files depend on alloca.h.
35253         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
35254
35255 2003-01-13  Bruno Haible  <bruno@clisp.org>
35256
35257         * gnulib-tool (func_create_testdir): Store config/* files in the main
35258         directory.
35259         * config.rpath: Move to ...
35260         * config/config.rpath: ... here.
35261         * modules/gettext: Contains config/config.rpath, not config.rpath.
35262         * modules/iconv: Likewise.
35263
35264 2003-01-12  Paul Eggert  <eggert@twinsun.com>
35265
35266         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
35267         to avoid collisions with libcurses and libreadline.
35268
35269         * m4/getstr.m4: Remove.
35270         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
35271
35272 2003-01-12  Paul Eggert  <eggert@twinsun.com>
35273
35274         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
35275         to avoid collisions with libcurses and libreadline.
35276
35277         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
35278         * lib/getstr.h, getstr.c: Remove.
35279         * lib/getline.c: Include "getline.h", to check interface.
35280         Move body of old getstr.c here: this defines MIN_CHUNK and
35281         declares getdelim2, which is renamed from getstr.
35282         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
35283
35284         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
35285         All uses changed.
35286         * lib/linebuffer.h: Likewise.
35287         (readline): Remove backward-compatibility macro.
35288
35289 2003-01-12  Paul Eggert  <eggert@twinsun.com>
35290
35291         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
35292         to avoid collisions with libcurses and libreadline.
35293         * getstr: Remove.
35294         * MODULES.html.sh: Remove getstr.
35295         * modules/getline: Depend on unlocked-io, not getstr.
35296
35297 2003-01-12  Jim Meyering  <jim@meyering.net>
35298
35299         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
35300
35301 2003-01-10  Bruno Haible  <bruno@clisp.org>
35302
35303         * modules/alloca: Change Makefile.am requirements. Simplify Include
35304         requirements. Add lib/alloca_.h to file list.
35305
35306 2003-01-10  Bruno Haible  <bruno@clisp.org>
35307
35308         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
35309
35310 2003-01-10  Bruno Haible  <bruno@clisp.org>
35311
35312         * lib/alloca_.h: New file.
35313         * lib/getdate.y: Unconditionally include alloca.h.
35314         * lib/makepath.c: Likewise.
35315         * lib/setenv.c: Likewise.
35316         * lib/userspec.c: Likewise.
35317
35318 2003-01-09  Karl Berry  <karl@gnu.org>
35319
35320         * MODULES.html.sh: include `dirname $0` in PATH, to find
35321         gnulib-tool.
35322
35323 2003-01-09  Bruno Haible  <bruno@clisp.org>
35324
35325         * modules/stdbool: Change configure.ac, Makefile.am requirements.
35326         Simplify Include requirements. Add lib/stdbool.h.in to file list.
35327
35328 2003-01-09  Bruno Haible  <bruno@clisp.org>
35329
35330         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
35331
35332 2003-01-09  Bruno Haible  <bruno@clisp.org>
35333
35334         * lib/stdbool.h.in: New file.
35335
35336 2003-01-09  Bruno Haible  <bruno@clisp.org>
35337
35338         * gnulib-tool (func_all_modules): Ignore files ending in ~.
35339         * MODULES.html.sh: Likewise.
35340
35341 2003-01-08  Jim Meyering  <jim@meyering.net>
35342
35343         * lib/full-write.c: Undefine and define-away `const' after inclusion
35344         of errno.h, not before.  Suggestion from Bruno Haible.
35345
35346 2003-01-08  Bruno Haible  <bruno@clisp.org>
35347
35348         * modules/full-read: Depend on full-write.
35349
35350 2003-01-08  Bruno Haible  <bruno@clisp.org>
35351
35352         * lib/safe-read.c: Include specification header first, to ensure its
35353         selfcontainedness.
35354         * lib/full-write.c: Likewise.
35355
35356 2003-01-07  Jim Meyering  <jim@meyering.net>
35357
35358         * lib/full-write.c: Rework so that it may serve to define full_read,
35359         too.
35360         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
35361
35362 2003-01-07  Bruno Haible  <bruno@clisp.org>
35363
35364         * lib/strtoimax.c: Include <stdint.h> as an alternative to
35365         <inttypes.h>.
35366         * lib/xstrtol.h: Likewise.
35367         * lib/xstrtoimax.c: Likewise.
35368         * lib/xstrtoumax.c: Likewise.
35369         * lib/human.h: Likewise.
35370
35371         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
35372         on systems that have <inttypes.h> but not <stdint.h>.
35373
35374 2003-01-07  Bruno Haible  <bruno@clisp.org>
35375
35376         * MODULES.html.sh: Add copyright notice.
35377         (missed_files): Omit CVS directory entries.
35378         (func_module): Make it work with sed-3.02.
35379         * MODULES.txt: Remove file.
35380
35381 2003-01-06  Jim Meyering  <jim@meyering.net>
35382
35383         * lib/version-etc.c: Update year in translatable copyright string.
35384
35385 2003-01-03  Karl Berry  <karl@gnu.org>
35386
35387         * config/config.{guess,sub}: update from prep.
35388
35389 2003-01-02  Karl Berry  <karl@gnu.org>
35390
35391         * doc/COPYING.DOC: belatedly updated to 1.2.
35392
35393 2003-01-01  Karl Berry  <karl@gnu.org>
35394
35395         * gnulib-tool (func_verify_module): report module name $module in
35396         error message, not $1.
35397         * gnulib-tool (create-testdir): don't complain if destdir couldn't
35398         be created, only if it doesn't exist.
35399         * gnulib-tool (last_checkin_date): don't expand the $Date here.
35400
35401 2002-12-31  Paul Eggert  <eggert@twinsun.com>
35402
35403         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
35404
35405 2002-12-31  Paul Eggert  <eggert@twinsun.com>
35406
35407         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
35408         memcmp if strcoll doesn't work.
35409
35410 2002-12-31  Bruno Haible  <bruno@clisp.org>
35411
35412         * lib/utime.c (utime_null): No need to call ftruncate if the file was
35413         nonempty.
35414
35415 2002-12-31  Bruno Haible  <bruno@clisp.org>
35416
35417         * lib/memcoll.c (STRCOLL): New macro.
35418         (memcoll): Use it.
35419
35420 2002-12-31  Bruno Haible  <bruno@clisp.org>
35421
35422         * lib/localcharset.h: New file.
35423         * lib/localcharset.c: Include it.
35424         * lib/unicodeio.c: Likewise.
35425
35426 2002-12-31  Bruno Haible  <bruno@clisp.org>
35427
35428         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
35429         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
35430
35431 2002-12-31  Bruno Haible  <bruno@clisp.org>
35432
35433         * lib/getline.h: Include <stddef.h>, for size_t.
35434
35435         * lib/unicodeio.h: Include <stddef.h>, for size_t.
35436         * lib/unicodeio.c: Don't include <stddef.h>.
35437
35438 2002-12-31  Bruno Haible  <bruno@clisp.org>
35439
35440         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
35441         HAVE_TM_ZONE.
35442
35443 2002-12-24  Karl Berry  <karl@gnu.org>
35444
35445         * config/config.guess: update from prep.
35446
35447 2002-12-24  Bruno Haible  <bruno@clisp.org>
35448
35449         General infrasructure.
35450         * m4/README: Rewritten.
35451         * m4/onceonly.m4: New file.
35452         * m4/onceonly_2_57.m4: New file.
35453
35454         Module atexit.
35455         * m4/atexit.m4: New file.
35456
35457         Module strtod.
35458         * m4/strtod.m4: New file.
35459
35460         Module strtol.
35461         * m4/strtol.m4: New file.
35462
35463         Module strtoul.
35464         * m4/strtoul.m4: New file.
35465
35466         Module memchr.
35467         * m4/memchr.m4: New file.
35468
35469         Module memcmp.
35470         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
35471         (jm_FUNC_MEMCMP): Invoke it.
35472
35473         Module memcpy.
35474         * m4/memcpy.m4: New file.
35475
35476         Module memmove.
35477         * m4/memmove.m4: New file.
35478
35479         Module memset.
35480         * m4/memset.m4: New file.
35481
35482         Module strcspn.
35483         * m4/strcspn.m4: New file.
35484
35485         Module strpbrk.
35486         * m4/strpbrk.m4: New file.
35487
35488         Module strstr.
35489         * m4/strstr.m4: New file.
35490
35491         Module strerror.
35492         * m4/strerror.m4: New file.
35493
35494         Module mktime.
35495         * m4/mktime.m4: Renamed from jm-mktime.m4.
35496         (gl_PREREQ_MKTIME): New macro.
35497         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
35498
35499         Module malloc.
35500         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
35501         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
35502         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
35503
35504         Module realloc.
35505         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
35506         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
35507         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
35508
35509         Module strftime.
35510         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
35511         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
35512         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
35513         gl_TM_GMTOFF.
35514         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
35515
35516         Module xalloc.
35517         * m4/xalloc.m4: New file.
35518
35519         Module alloca.
35520         * m4/alloca.m4: New file.
35521
35522         Module putenv.
35523         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
35524         (jm_FUNC_PUTENV): Invoke it.
35525
35526         Module setenv.
35527         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
35528         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
35529         when invoked twice.
35530         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
35531         gt_FUNC_SETENV.
35532
35533         Module memrchr.
35534         * m4/memrchr.m4: New file.
35535
35536         Module stpcpy.
35537         * m4/stpcpy.m4: New file.
35538
35539         Module strcase.
35540         * m4/strcase.m4: New file.
35541
35542         Module strdup.
35543         * m4/strdup.m4: New file.
35544
35545         Module strnlen.
35546         * m4/strnlen.m4: New file.
35547
35548         Module strndup.
35549         * m4/strndup.m4: New file.
35550
35551         Module xstrtod.
35552         * m4/xstrtod.m4: New file.
35553
35554         Module xstrtol.
35555         * m4/xstrtol.m4: New file.
35556
35557         Module getdate.
35558         * m4/getdate.m4: New file.
35559
35560         Module unlocked-io.
35561         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
35562         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
35563         * m4/jm-glibc-io.m4n: Remove file.
35564
35565         Module long-options.
35566         * m4/long-options.m4: New file.
35567
35568         Module md5.
35569         * m4/md5.m4: New file.
35570
35571         Module sha.
35572         * m4/sha.m4: New file.
35573
35574         Module getstr.
35575         * m4/getstr.m4: New file.
35576
35577         Module getline.
35578         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
35579         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
35580         <sys/types.h>, for size_t. Use the function name gnu_getline, not
35581         simply getline. Infoke gl_PREREQ_GETLINE.
35582
35583         Module obstack.
35584         * m4/obstack.m4: New file.
35585
35586         Module hash.
35587         * m4/hash.m4: New file.
35588
35589         Module readtokens.
35590         * m4/readtokens.m4: New file.
35591
35592         Module strverscmp.
35593         * m4/strverscmp.m4: New file.
35594
35595         Module stdbool.
35596         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
35597         OSF/1.
35598
35599         Module strtoll.
35600         * m4/strtoll.m4: New file.
35601
35602         Module strtoull.
35603         * m4/strtoull.m4: New file.
35604
35605         Module strtoimax.
35606         * m4/strtoimax.m4: New file.
35607
35608         Module strtoumax.
35609         * m4/strtoumax.m4: New file.
35610
35611         Module xstrtoimax.
35612         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
35613         jm_AC_PREREQ_XSTRTOIMAX.
35614         Moved the strtol prerequisites to strtol.m4.
35615         Moved the strtoll prerequisites to strtoll.m4.
35616         Moved the strtoimax prerequisites to strtoimax.m4.
35617
35618         Module xstrtoumax.
35619         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
35620         jm_AC_PREREQ_XSTRTOUMAX.
35621         Moved the strtoul prerequisites to strtoul.m4.
35622         Moved the strtoull prerequisites to strtoull.m4.
35623         Moved the strtoumax prerequisites to strtoumax.m4.
35624
35625         Module chown.
35626         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
35627         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
35628
35629         Module dup2.
35630         * m4/dup2.m4: New file.
35631
35632         Module ftruncate.
35633         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
35634         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
35635
35636         Module getgroups.
35637         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
35638         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
35639
35640         Module gettimeofday.
35641         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
35642         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
35643         gl_PREREQ_GETTIMEOFDAY.
35644
35645         Module mkdir.
35646         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
35647         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
35648
35649         Module mkstemp.
35650         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
35651         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
35652         jm_AC_TYPE_UINTMAX_T.
35653         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
35654
35655         Module stat.
35656         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
35657         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
35658
35659         Module lstat.
35660         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
35661         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
35662
35663         Module timespec.
35664         * m4/timespec.m4 (gl_TIMESPEC): New macro.
35665         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
35666         * m4/st_mtim.m4: Indentation.
35667
35668         Module nanosleep.
35669         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
35670         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
35671         gl_PREREQ_NANOSLEEP.
35672
35673         Module regex.
35674         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
35675         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
35676         (gl_REGEX): New macro.
35677
35678         Module rename.
35679         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
35680         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
35681
35682         Module rmdir.
35683         * m4/rmdir.m4: New file.
35684
35685         Module utime.
35686         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
35687         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
35688         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
35689
35690         Module dirname.
35691         * m4/dirname.m4: New file.
35692
35693         Module getopt.
35694         * m4/getopt.m4: New file.
35695
35696         Module unistd-safer.
35697         * m4/unistd-safer.m4: New file.
35698
35699         Module fnmatch.
35700         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
35701         declaration.
35702         (gl_PREREQ_FNMATCH_EXTRA): New macro.
35703         (gl_FUNC_FNMATCH_POSIX): New macro.
35704         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
35705         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
35706         simply fnmatch.
35707
35708         Module exclude.
35709         * m4/exclude.m4: New file.
35710
35711         Module human.
35712         * m4/human.m4: New file.
35713
35714         Module acl.
35715         * m4/acl.m4: Nop.
35716
35717         Module backupfile.
35718         * m4/backupfile.m4: New file.
35719         * m4/d-ino.m4: Indentation.
35720
35721         Module fsusage.
35722         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
35723         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
35724         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
35725
35726         Module dirfd.
35727         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
35728         requirements.
35729
35730         Module euidaccess.
35731         * m4/euidaccess.m4: New file.
35732
35733         Module file-type.
35734         * m4/file-type.m4: New file.
35735
35736         Module fileblocks.
35737         * m4/fileblocks.m4: New file.
35738
35739         Module filemode.
35740         * m4/filemode.m4: New file.
35741
35742         Module isdir.
35743         * m4/isdir.m4: New file.
35744
35745         Module lchown.
35746         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
35747         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
35748
35749         Module makepath.
35750         * m4/makepath.m4: New file.
35751
35752         Module modechange.
35753         * m4/modechange.m4: New file.
35754
35755         Module mountlist.
35756         * m4/mountlist.m4: New file.
35757         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
35758         Indentation.
35759
35760         Module path-concat.
35761         * m4/path-concat.m4: New file.
35762
35763         Module pathmax.
35764         * m4/pathmax.m4: New file.
35765
35766         Module same.
35767         * m4/same.m4: New file.
35768
35769         Module save-cwd.
35770         * m4/save-cwd.m4: New file.
35771
35772         Module savedir.
35773         * m4/savedir.m4: New file.
35774
35775         Module xgetcwd.
35776         * m4/xgetcwd.m4: New file.
35777         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
35778
35779         Module xreadlink.
35780         * m4/xreadlink.m4: New file.
35781
35782         Module safe-read.
35783         * m4/safe-read.m4: New file.
35784
35785         Module safe-write.
35786         * m4/safe-write.m4: New file.
35787
35788         Module closeout.
35789         * m4/closeout.m4: New file.
35790
35791         Module stdio-safer.
35792         * m4/stdio-safer.m4: New file.
35793
35794         Module getpass.
35795         * m4/getpass.m4: New file.
35796
35797         Module getugroups.
35798         * m4/getugroups.m4: New file.
35799
35800         Module group-member.
35801         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
35802         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
35803
35804         Module idcache.
35805         * m4/idcache.m4: New file.
35806
35807         Module userspec.
35808         * m4/userspec.m4: New file.
35809
35810         Module gettime.
35811         * m4/clock_time.m4: New file.
35812         * m4/gettime.m4: New file.
35813
35814         Module settime.
35815         * m4/settime.m4: New file.
35816
35817         Module posixtm.
35818         * m4/posixtm.m4: New file.
35819
35820         Module gethostname.
35821         * m4/gethostname.m4: New file.
35822
35823         Module canon-host.
35824         * m4/canon-host.m4: New file.
35825
35826         Module gettext.
35827         * m4/codeset.m4: New file, from gettext-0.11.5.
35828         * m4/gettext.m4: New file, from gettext-0.11.5.
35829         * m4/glibc21.m4: New file, from gettext-0.11.5.
35830         * m4/iconv.m4: New file, from gettext-0.11.5.
35831         * m4/intdiv0.m4: New file, from gettext-0.11.5.
35832         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
35833         * m4/inttypes.m4: New file, from gettext-0.11.5.
35834         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
35835         * m4/isc-posix.m4: New file, from gettext-0.11.5.
35836         * m4/lcmessage.m4: New file, from gettext-0.11.5.
35837         * m4/lib-ld.m4: New file, from gettext-0.11.5.
35838         * m4/lib-link.m4: New file, from gettext-0.11.5.
35839         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
35840         * m4/progtest.m4: New file, from gettext-0.11.5.
35841         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
35842         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
35843         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
35844
35845         Module localcharset.
35846         * m4/localcharset.m4: New file.
35847
35848         Module hard-locale.
35849         * m4/hard-locale.m4: New file.
35850
35851         Module mbswidth.
35852         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
35853         onceonly macros.
35854         * m4/mbrtowc.m4: Add comment.
35855
35856         Module memcasecmp.
35857         * m4/memcasecmp.m4: New file.
35858
35859         Module memcoll.
35860         * m4/memcoll.m4: New file.
35861
35862         Module unicodeio.
35863         * m4/unicodeio.m4: New file.
35864
35865         Module rpmatch.
35866         * m4/rpmatch.m4: New file.
35867
35868         Module yesno.
35869         * m4/yesno.m4: New file.
35870
35871         Module exitfail.
35872         * m4/exitfail.m4: New file.
35873
35874         Module c-stack.
35875         * m4/c-stack.m4 (gl_C_STACK): New macro.
35876         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
35877
35878         Module error.
35879         * m4/error.m4 (gl_ERROR): New macro.
35880         (jm_PREREQ_ERROR): Use onceonly macros.
35881
35882         Module fatal.
35883         * m4/fatal.m4: New file.
35884
35885         Module getloadavg.
35886         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
35887         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
35888
35889         Module getpagesize.
35890         * m4/getpagesize.m4: New file.
35891
35892         Module getusershell.
35893         * m4/getusershell.m4: New file.
35894
35895         Module physmem.
35896         * m4/physmem.m4: New file.
35897
35898         Module posixver.
35899         * m4/posixver.m4: New file.
35900
35901         Module quotearg.
35902         * m4/quotearg.m4: New file.
35903
35904         Module quote.
35905         * m4/quote.m4: New file.
35906
35907         Module readutmp.
35908         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
35909
35910         Module sig2str.
35911         * m4/sig2str.m4: New file.
35912
35913         Other.
35914         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
35915         ulonglong.m4.
35916         * m4/intmax_t.m4: New file.
35917         * m4/d-type.m4: Indentation.
35918         * m4/jm-macros.m4: Update.
35919         * m4/prereq.m4 (jm_PREREQ): Update.
35920         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
35921         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
35922         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
35923         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
35924         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
35925         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
35926         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
35927         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
35928         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
35929         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
35930         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
35931         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
35932         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
35933         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
35934         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
35935         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
35936         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
35937         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
35938         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
35939
35940 2002-12-24  Bruno Haible  <bruno@clisp.org>
35941
35942         * MODULES.txt: Update according to m4/ changes.
35943
35944         Module gettext.
35945         * config.rpath: New file, from gettext-0.11.5.
35946
35947         * modules/*: New module descriptions.
35948         * gnulib-tool: New file.
35949         * MODULES.html.sh: New file.
35950
35951 2002-12-21  Karl Berry  <karl@gnu.org>
35952
35953         * doc/fdl.texi: update to version 1.2.
35954
35955 2002-12-19  Karl Berry  <karl@gnu.org>
35956
35957         * config/config.guess: update from prep.
35958
35959 2002-12-18  Bruno Haible  <bruno@clisp.org>
35960
35961         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
35962         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
35963
35964 2002-12-17  Bruno Haible  <bruno@clisp.org>
35965
35966         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
35967         stdlib.h, string.h.
35968
35969 2002-12-17  Bruno Haible  <bruno@clisp.org>
35970
35971         * lib/canon-host.c (strdup): Remove unused declaration.
35972
35973         * lib/fsusage.c: Include full_read.h.
35974         (get_fs_usage): Use full_read instead of safe_read.
35975
35976         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
35977
35978 2002-12-12  Karl Berry  <karl@gnu.org>
35979
35980         * config/config.guess: update from prep.
35981
35982 2002-12-11  Bruno Haible  <bruno@clisp.org>
35983
35984         * m4/setenv.m4: New file, from gettext-0.11.5.
35985
35986 2002-12-11  Bruno Haible  <bruno@clisp.org>
35987
35988         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
35989         not unsetenv().
35990         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
35991         modifications:
35992
35993         2002-12-11  Bruno Haible  <bruno@clisp.org>
35994
35995                 * setenv.c (alloca): Fall back to malloc.
35996                 (freea): New macro.
35997                 (setenv): Use freea() to free memory allocated with alloca().
35998
35999         2002-11-13  Bruno Haible  <bruno@clisp.org>
36000
36001                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
36002                 function declarations.
36003                 * unsetenv.c (unsetenv): Likewise.
36004
36005         2002-03-04  Bruno Haible  <bruno@clisp.org>
36006
36007                 Portability to AIX 4.3.3.
36008                 * unsetenv.c: New file, extracted from setenv.c.
36009                 * setenv.c: Move the unsetenv() function to unsetenv.c.
36010
36011         2001-12-20  Bruno Haible  <bruno@clisp.org>
36012
36013                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
36014                 use malloc instead. For SunOS 4.
36015
36016         2001-12-11  Bruno Haible  <bruno@clisp.org>
36017
36018                 * setenv.c: Declare alloca.
36019                 (compar_fn_t): New typedef.
36020                 (KNOWN_VALUE, STORE_VALUE): Use it.
36021
36022         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
36023         setenv.h.
36024
36025 2002-12-10  Paul Eggert  <eggert@twinsun.com>
36026
36027         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
36028         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
36029         Choose values that are less likely to collide with system fnmatch
36030         options.
36031         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
36032         defined (e.g., a pure POSIX system).
36033         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
36034         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
36035
36036 2002-12-06  Paul Eggert  <eggert@twinsun.com>
36037
36038         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
36039         a pain in practice to deal with generated m4 files.  This change
36040         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
36041
36042         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
36043         and jm-glibc-io.m4, as they are no longer a special case.
36044         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
36045         kludge and the auto-generation stuff.  Check only whether the
36046         functions are declared, not whether they exist, since older hosts
36047         that don't declare the functions can't use the optimization anyway.
36048
36049 2002-12-06  Jim Meyering  <jim@meyering.net>
36050
36051         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
36052
36053         Merge in changes from libc's misc/error.c, in preparation
36054         for the merge of gnulib's changes back into libc.
36055
36056         * lib/error.c (_): Define only if not already defined.
36057         Move definition to follow all #include directives.
36058         Include unlocked-io.h only if !_LIBC.
36059         [_LIBC]: Include <libio/libioP.h>.
36060         [USE_IN_LIBIO]: Include <libio/iolibio.h>
36061         (fflush): Tweak definition to use INTUSE.
36062         (putc): Define.
36063
36064 2002-12-05  Paul Eggert  <eggert@twinsun.com>
36065
36066         * lib/alloca.c [defined emacs]: Include "lisp.h".
36067         (xalloc_die) [defined emacs]: New macro.
36068         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
36069         [! defined emacs]: Include <xalloc.h>.
36070         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
36071         (pointer): Typedef to POINTER_TYPE *.
36072         (malloc): Remove decl; we now always use xmalloc.
36073         (alloca): Use old-style definition, since Emacs needs this.
36074         Check for arithmetic overflow when computing combined size.
36075
36076 2002-12-04  Paul Eggert  <eggert@twinsun.com>
36077
36078         Do not generate unlocked-io.h automatically, since it's easier to
36079         maintain it by hand.
36080
36081         * lib/unlocked-io.h: New file, from GNU diffutils,
36082         but with proper copyright notice and attribution.
36083         * lib/gen-uio: Remove.
36084         * lib/Makefile.am: Add copyright notice.
36085         (libfetish_a_SOURCES): Add unlocked-io.h.
36086         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
36087         (DISTCLEANFILES, io_functions): Remove macros.
36088         (EXTRA_DIST): Remove gen_uio.
36089         (unlocked-io.h): Remove rule.
36090
36091 2002-12-04  Jim Meyering  <jim@meyering.net>
36092
36093         Reflect the fact that stat.c and lstat.c are no longer generated.
36094         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
36095         (DISTCLEANFILES): Likewise.
36096         (EXTRA_DIST): Likewise.
36097         (all_local): Don't depend on stat.c or lstat.c.
36098         (stat.c, lstat.c): Remove rules.
36099         (EXTRA_DIST): Remove xstat.in.
36100
36101         * lib/xstat.in: Remove file.  Contents moved into stat.c.
36102         * lib/stat.c: New file.  Contents mostly from xstat.in.
36103         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
36104         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
36105
36106         * lib/safe-read.c: Rework so that it may serve to define safe_write,
36107         too.
36108         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
36109
36110 2002-12-03  Jim Meyering  <jim@meyering.net>
36111
36112         * lib/safe-read.c, safe-write.c: Change variable names and comments,
36113         but not semantics, to minimize the differences between these two files.
36114         (safe_read): Change comment to mention SAFE_READ_ERROR.
36115
36116         * lib/safe-read.c (IS_EINTR): Define.
36117         (safe_read): Use IS_EINTR in place of in-function cpp directives.
36118
36119 2002-12-02  Jim Meyering  <jim@meyering.net>
36120
36121         * lib/safe-read.c (EINTR): Define.
36122         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
36123         (INT_MAX): Provide fallback.
36124         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
36125
36126         * lib/safe-read.h (SAFE_READ_ERROR): Define.
36127
36128 2002-12-02  Bruno Haible  <bruno@clisp.org>
36129
36130         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
36131         Define, taken from safe-read.c.
36132         (INT_MAX): Provide fallback.
36133         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
36134         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
36135
36136         * lib/safe-read.c (EINTR): Remove definition.
36137         (safe_read): Don't use EINTR if it is absent.
36138
36139 2002-12-01  Jim Meyering  <jim@meyering.net>
36140
36141         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
36142         zero.
36143         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
36144
36145 2002-11-27  Paul Eggert  <eggert@twinsun.com>
36146
36147         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
36148         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
36149         with `if (! (value < limit)) abort ();', for readability.
36150
36151 2002-11-26  Karl Berry  <karl@gnu.org>
36152
36153         * lib/strdup.c: copy from libc again, with jim's ok.
36154         * lib/.cppi-disable: re-add strdup.c
36155
36156 2002-11-25  Karl Berry  <karl@gnu.org>
36157
36158         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
36159         instead of "strtol.c".
36160
36161 2002-11-25  Karl Berry  <karl@gnu.org>
36162
36163         * config/install-sh: update from automake for variable quoting, $0 in
36164         error msgs, etc.
36165
36166         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
36167         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
36168         entry.
36169
36170 2002-11-25  Jim Meyering  <jim@meyering.net>
36171
36172         * lib/mktime.c: Sync from libc, now that it has the latest fix.
36173
36174 2002-11-24  Karl Berry  <karl@gnu.org>
36175
36176         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
36177         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
36178
36179 2002-11-24  Jim Meyering  <jim@meyering.net>
36180
36181         Update from coreutils:
36182
36183         * lib/mktime.c: Merge in changes from libc.
36184
36185         Avoid a link-time failure on some Linux systems.
36186         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
36187         (otherwise).
36188         (__mon_yday): Declare with the STATIC attribute.
36189         (__mktime_internal): Likewise.
36190         Based on a report from Greg Schafer.
36191
36192 2002-11-23  Jim Meyering  <jim@meyering.net>
36193
36194         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
36195         Use `unsigned', not `int', as type of index.
36196
36197         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
36198
36199         * lib/fsusage.c: Remove unneeded parentheses around operands of
36200         `defined'.
36201
36202 2002-11-22  Paul Eggert  <eggert@twinsun.com>
36203
36204         * lib/quotearg.h: Allow multiple inclusion by surrounding with
36205         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
36206         so that we can be included first.
36207         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
36208         * lib/quotearg.c: Include quotearg.h immediately after config.h.
36209         No need to include stddef.h or sys/types.h any more.
36210         Surround local include files with "", not "<>".
36211         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
36212         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
36213         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
36214         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
36215         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
36216         (ISPRINT): Remove; no longer needed now that we assume C89.
36217
36218         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
36219         Preserve errno.
36220
36221         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
36222         quotearg_char): Use SIZE_MAX rather than
36223         (size_t) -1 when we are talking about "infinity".
36224
36225         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
36226
36227 2002-11-22  Paul Eggert  <eggert@twinsun.com>
36228
36229         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
36230         hint that one should use `if (! x) abort ();' rather than `assert
36231         (x);', and anyway it's one less thing to worry about configuring.
36232         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
36233         hash_rehash, hash_insert): Use abort rather than assert.
36234
36235 2002-11-22  Bruno Haible  <bruno@clisp.org>
36236
36237         * lib/safe-read.h: Assume C89. Add comments.
36238         (safe_read): Change return type to size_t.
36239         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
36240         byte counts > SSIZE_MAX correctly.
36241         * lib/safe-write.h: New file.
36242         * lib/safe-write.c: New file.
36243         * lib/full-read.h: New file.
36244         * lib/full-read.c: New file.
36245         * lib/full-write.h: Assume C89. Add comments.
36246         * lib/full-write.c: Include safe-write.h.
36247         (full_write): Rewritten to use safe_write.
36248         Suggested by Jim Meyering and Paul Eggert.
36249
36250 2002-11-21  Jim Meyering  <jim@meyering.net>
36251
36252         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
36253
36254         Merge in changes from the coreutils.
36255
36256         2002-09-25  Paul Eggert  <eggert@twinsun.com>
36257         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
36258         <stdint.h>.
36259         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
36260         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
36261         int.  Work more efficiently if X is the same width as uintmax_t.
36262         Do not compare X to -1, to avoid bogus compiler warning.
36263         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
36264         Don't assume that f_frsize and f_bsize are the same type.
36265
36266         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
36267         warning on FreeBSD.
36268
36269         * lib/makepath.c (make_path): Restore umask *before* creating the final
36270         component.
36271         (make_path): Minor reformatting.
36272
36273         * lib/xmalloc.c: Adjust to work with new autoconf macros,
36274         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
36275         HAVE_MALLOC/HAVE_REALLOC.
36276
36277         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
36278         dummy ones.  At least on GNU/Linux systems, `auto' means something
36279         else.
36280         From Michael Stone.
36281
36282 2002-11-21  Bruno Haible  <bruno@clisp.org>
36283
36284         Remove case insensitive option matching.
36285         * lib/argmatch.h (argcasematch): Remove declaration.
36286         (ARGCASEMATCH): Remove macro.
36287         (__xargmatch_internal): Remove case_sensitive argument.
36288         (XARGMATCH): Update.
36289         (XARGCASEMATCH): Remove macro.
36290         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
36291         case_sensitive argument.
36292         (argcasematch): Remove function.
36293         (__xargmatch_internal): Remove case_sensitive argument.
36294         (main): Use XARGMATCH instead of XARGCASEMATCH.
36295
36296         * lib/xmalloc.c: Change compile-time error message. Add comment about
36297         required autoconf version.
36298
36299 2002-11-20  Paul Eggert  <eggert@twinsun.com>
36300
36301         Merge argmatch cleanups from Bison.  Assume C89.
36302
36303         * lib/argmatch.c: Include config.h here, not in argmatch.h.
36304         Include stdlib.h, for EXIT_FAILURE.
36305         Always include <string.h>, since we assume C89.
36306         (EXIT_FAILURE): Remove pre-C89 bug workaround.
36307         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
36308         Include <stddef.h> instead, since it's all we need for size_t.
36309         (PARAMS): Remove.  All uses removed.
36310         (ARRAY_CARDINALITY): Do not bother to #undef.
36311         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
36312         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
36313         Remove unnecessary parentheses.
36314         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
36315         Insert necessary parentheses.
36316         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
36317         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
36318
36319 2002-11-19  Bruno Haible  <bruno@clisp.org>
36320
36321         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
36322         * lib/mbswidth.h: Include <stddef.h>, for size_t.
36323
36324         * lib/mbswidth.h (PARAMS): Remove macro.
36325         (mbswidth, mbsnwidth): Use ANSI C function declarations.
36326         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
36327
36328         * lib/gcd.h (PARAMS): Remove macro.
36329         (gcd): Use ANSI C function declarations.
36330         * lib/gcd.c (gcd): Likewise.
36331
36332 2002-11-15  Bruno Haible  <bruno@clisp.org>
36333
36334         * lib/strcspn.c: Include <stddef.h>.
36335         (strcspn): Use ANSI C function declaration. Change return type to
36336         size_t. Use NULL.
36337         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
36338         (strpbrk): Use NULL.
36339         * lib/strpbrk.h (PARAMS): Remove macro.
36340         (strpbrk): Use ANSI C function declaration.
36341         * lib/strstr.c: Don't include <sys/types.h>.
36342         * lib/strstr.h (PARAMS): Remove macro.
36343         (strstr): Use ANSI C function declarations.
36344
36345 2002-11-14  Karl Berry  <karl@gnu.org>
36346
36347         * config/mkinstalldirs: `do' on separate line, instead of
36348         `for var; do'.
36349
36350 2002-11-06  Bruno Haible  <bruno@clisp.org>
36351
36352         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
36353         * lib/gcd.c (gcd): Likewise.
36354
36355 2002-11-05  Bruno Haible  <bruno@clisp.org>
36356
36357         * lib/gcd.h: New file, from gettext-0.11.5.
36358         * lib/gcd.c: New file, from gettext-0.11.5.
36359
36360 2002-11-05  Bruno Haible  <bruno@clisp.org>
36361
36362         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
36363         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
36364         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
36365         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
36366
36367         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
36368         <libintl.h>.
36369         * lib/makepath.c: Include gettext.h instead of <locale.h> and
36370         <libintl.h>.
36371
36372         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
36373         * lib/human.c: Include gettext.h instead of <libintl.h>.
36374         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
36375         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
36376         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
36377         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
36378         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
36379         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
36380         (textdomain): Remove definition.
36381         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
36382
36383         * lib/long-options.c: Remove include of <libintl.h> and definition of
36384         _.
36385         * lib/same.c: Remove include of <libintl.h> and definition of _.
36386
36387 2002-11-04  Owen Taylor  <otaylor@redhat.com>
36388
36389         * lib/config.charset: A few additions for Solaris.
36390
36391 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
36392
36393         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
36394         * lib/localcharset.c (locale_charset): Declare as extern "C".
36395
36396 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
36397
36398         * lib/config.charset: msdos in uk_UA uses CP1125.
36399
36400 2002-11-04  Bruno Haible  <bruno@clisp.org>
36401
36402         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
36403         * lib/strcase.h: New file, from GNU gettext-0.11.5.
36404         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
36405         * lib/strstr.h: New file, from GNU gettext-0.11.5.
36406         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
36407
36408 2002-11-04  Bruno Haible  <bruno@clisp.org>
36409
36410         * lib/localcharset.c (locale_charset): Don't return an empty string.
36411
36412 2002-11-04  Bruno Haible  <bruno@clisp.org>
36413
36414         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
36415         aliases.
36416
36417 2002-11-04  Bruno Haible  <bruno@clisp.org>
36418
36419         * lib/config.charset: Update for newest glibc. Add canonical names
36420         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
36421
36422 2002-11-04  Bruno Haible  <bruno@clisp.org>
36423
36424         * lib/config.charset: Add support for NetBSD.
36425
36426 2002-11-04  Bruno Haible  <bruno@clisp.org>
36427
36428         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
36429
36430 2002-11-01  Bruno Haible  <bruno@clisp.org>
36431
36432         * configure.in: Add AC_CONFIG_AUX_DIR call.
36433         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
36434         test/Makefile.
36435         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
36436
36437 2002-09-28  Karl Berry  <karl@gnu.org>
36438
36439         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
36440         installed automake until the next release, since changes have been
36441         made.
36442
36443 2002-09-25  Karl Berry  <karl@gnu.org>
36444
36445         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
36446         * lib/getopt*: copy from libc/posix.
36447         * lib/gettext.h: copy from gettext.
36448         * lib/.cppi-disable: add strdup.c, gettext.h.
36449
36450 2002-09-25  Karl Berry  <karl@gnu.org>
36451
36452         * config/srclist.txt: enable gettext.h check.
36453         * config/config.{guess,sub}: update from prep.
36454         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
36455                 from automake 1.6.3.
36456         See srclist*.
36457
36458 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
36459
36460         * regex.c (PATFETCH): Remove the translating fetch.
36461         (PATFETCH_RAW): Rename to PATFETCH.
36462         (set_image_of_range): New fun.
36463         (SET_RANGE_TABLE_WORK_AREA): Use it.
36464         (regex_compile): Don't translate the pattern chars so eagerly.
36465         Only do it when inserting an `exactn' bytecode or when handling
36466         a char-range.
36467         (mutually_exclusive_p): Avoid empty statement.
36468
36469 2002-07-06  Jim Meyering  <meyering@lucent.com>
36470
36471         * m4/README: Don't mention Makefile.am.in.
36472         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
36473
36474 2002-07-01  Jim Meyering  <meyering@lucent.com>
36475
36476         * lib/c-stack.c: Include sys/time.h.
36477         From Volker Borchert.
36478
36479 2002-06-26  Paul Eggert  <eggert@twinsun.com>
36480
36481         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
36482
36483 2002-06-26  Paul Eggert  <eggert@twinsun.com>
36484
36485         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
36486         New macro.  Use it uniformly instead of
36487         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
36488         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
36489         reported by Vin Shelton.
36490
36491 2002-06-22  Paul Eggert  <eggert@twinsun.com>
36492
36493         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
36494         Do not assume SA_SIGINFO behavior.
36495         Bug reported by Jim Meyering on NetBSD 1.5.2.
36496
36497 2002-06-22  Jim Meyering  <meyering@lucent.com>
36498
36499         * m4/c-stack.m4: New file, from diffutils-2.8.2.
36500         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
36501
36502         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
36503         now that configure.ac uses AC_GNU_SOURCE.
36504         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
36505         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
36506
36507         Update to latest tools.  Suggestions from Paul Eggert.
36508         * m4/stdbool.m4: New file, from diffutils-2.8.2.
36509         * m4/gnu-source.m4: Update from diffutils-2.8.2.
36510         * m4/fnmatch.m4: Likewise.
36511         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
36512         to AC_HEADER_STDBOOL
36513
36514 2002-06-22  Jim Meyering  <meyering@lucent.com>
36515
36516         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
36517         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
36518
36519 2002-06-22  Jim Meyering  <meyering@lucent.com>
36520
36521         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
36522
36523         * lib/exitfail.c, exitfail.h: Likewise.
36524         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
36525
36526         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
36527         of fnmatch.h.
36528         (EXTRA_DIST): Add fnmatch_loop.c.
36529         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
36530
36531         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
36532         * lib/fnmatch.c: Update from diffutils-2.8.2.
36533         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
36534         * lib/fnmatch.h: Remove file.
36535
36536 2002-06-21  Jim Meyering  <meyering@lucent.com>
36537
36538         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
36539         * m4/mbrtowc.m4: Likewise.
36540
36541         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
36542         * m4/mbswidth.m4: Reflect name change:
36543         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
36544         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
36545
36546         * m4/lib-link.m4: Update from gettext-0.11.2.
36547         * m4/gettext.m4: Likewise.
36548
36549         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
36550         From Alfred M. Szmidt.
36551
36552 2002-06-18  Paul Eggert  <eggert@twinsun.com>
36553
36554         * lib/file-type.h: Report an error if neither S_ISREG nor
36555         S_IFREG is defined, instead of using a test specific to glibc
36556         2.2.  This should be safe, since POSIX requires S_ISREG and
36557         Unix Version 7 had S_IFREG.  We don't need to check for
36558         <sys/types.h> since we don't use any symbols that it defines.
36559
36560 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
36561
36562         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
36563         $@-t, so that each temporary file name is unique and valid in the first
36564         8 characters, for operation under DOS.
36565
36566 2002-06-15  Paul Eggert  <eggert@twinsun.com>
36567
36568         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
36569
36570 2002-06-15  Jim Meyering  <meyering@lucent.com>
36571
36572         Work even with DJGPP 2.03, which lacks support for symlinks.
36573         From Richard Dawe.
36574         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
36575         is defined.
36576         * lib/lchown.c (S_ISLNK): Likewise.
36577
36578 2002-06-15  Jim Meyering  <meyering@lucent.com>
36579
36580         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
36581         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
36582         have been included before this file.
36583
36584 2002-06-14  Jim Meyering  <meyering@lucent.com>
36585
36586         * lib/file-type.h: Use the version from diffutils-2.8.2.
36587         * lib/file-type.c: Likewise.
36588
36589 2002-06-07  Jim Meyering  <meyering@lucent.com>
36590
36591         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
36592         They're needed at least for NetBSD 1.5.2.
36593         ($statxfs_includes): Include those same headers.
36594         ($statxfs_includes): Include sys/vfs.h if available.
36595         ($statxfs_includes): Likewise for sys/statvfs.h.
36596         Check for the following members in both structs statfs and statvfs:
36597         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
36598
36599 2002-06-01  Jim Meyering  <meyering@lucent.com>
36600
36601         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
36602         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
36603
36604 2002-05-28  Jim Meyering  <meyering@lucent.com>
36605
36606         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
36607         Reported by Volker Borchert.
36608
36609 2002-05-27  Jim Meyering  <meyering@lucent.com>
36610
36611         Fix a problem seen only on nonconforming systems whereby ls.c's
36612         use of localtime, and then of gettimeofday would cause trouble:
36613         the localtime call used to initialize rpl_gettimeofday's save
36614         mechanism would clobber ls's current local time information so
36615         that in any long listing the first file would always be listed
36616         with date 1970-01-01.  Analysis by Volker Borchert.
36617
36618         * lib/gettimeofday.c (localtime): Undefine.
36619         (rpl_localtime): New function.
36620
36621 2002-05-27  Jim Meyering  <meyering@lucent.com>
36622
36623         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
36624         localtime.
36625
36626         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
36627         use the replacement function; it wouldn't resolve at link time.
36628         Reported by Volker Borchert.
36629
36630 2002-05-22  Jim Meyering  <meyering@lucent.com>
36631
36632         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
36633         file-type.h.
36634         * lib/file-type.h: New file.
36635         * lib/file-type.c (file_type): New file/function.  Extracted from
36636         diffutils.
36637
36638 2002-04-30  Jim Meyering  <meyering@lucent.com>
36639
36640         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
36641
36642 2002-04-29  Paul Eggert  <eggert@twinsun.com>
36643
36644         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
36645
36646 2002-04-29  Paul Eggert  <eggert@twinsun.com>
36647
36648         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
36649         Do not check for alloca.h (no longer used) or stdbool.h (was never
36650         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
36651
36652 2002-04-29  Paul Eggert  <eggert@twinsun.com>
36653
36654         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
36655
36656 2002-04-29  Jim Meyering  <meyering@lucent.com>
36657
36658         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
36659         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
36660         Use AC_FUNC_STRNLEN here instead.
36661
36662         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
36663         With autoconf-2.53a, it's part of AC_PROG_CC.
36664
36665 2002-04-28  Paul Eggert  <eggert@twinsun.com>
36666
36667         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
36668         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
36669
36670 2002-04-28  Paul Eggert  <eggert@twinsun.com>
36671
36672         * lib/sig2str.h, lib/sig2str.c: New files.
36673         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
36674
36675 2002-04-28  Paul Eggert  <eggert@twinsun.com>
36676
36677         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
36678         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
36679         of 127, since 64 is the largest conceivable number for ancient
36680         nonstandard hosts.
36681         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
36682
36683 2002-04-28  Jim Meyering  <meyering@lucent.com>
36684
36685         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
36686
36687 2002-04-24  Jim Meyering  <meyering@lucent.com>
36688
36689         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
36690         (jm_PREREQ): Use it.
36691
36692         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
36693         mach/mach.h fcntl.h.
36694         Check for this function: setlocale.
36695
36696 2002-04-24  Jim Meyering  <meyering@lucent.com>
36697
36698         * lib/gettext.h: New file, from Gettext.
36699         * lib/Makefile.am (INCLUDES): Remove -I../intl.
36700         (libfetish_a_SOURCES): Add gettext.h.
36701
36702 2002-04-16  Jim Meyering  <meyering@lucent.com>
36703
36704         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
36705         ut_pid, ut_id, ut_exit.
36706
36707 2002-04-16  Jim Meyering  <meyering@lucent.com>
36708
36709         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
36710         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
36711         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
36712
36713 2002-04-12  Jim Meyering  <meyering@lucent.com>
36714
36715         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
36716         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
36717         existence of the getmntinfo function.  Needed for Darwin 5.3.
36718
36719         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
36720         This is necessary at least on Darwin 5.3.
36721
36722         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
36723         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
36724         strnlen.o in the library, and that makes some versions of ranlib
36725         object.
36726
36727 2002-04-12  Jim Meyering  <meyering@lucent.com>
36728
36729         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
36730
36731 2002-04-09  Jim Meyering  <meyering@lucent.com>
36732
36733         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
36734         to be more precise.  Rather than saying we're checking whether the
36735         function `works', say what we're testing.
36736         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
36737         Reported by Bruno Haible.
36738
36739 2002-03-10  Jim Meyering  <meyering@lucent.com>
36740
36741         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
36742         Suggestion from Santiago Vila.
36743
36744 2002-03-08  Jim Meyering  <meyering@lucent.com>
36745
36746         * lib/rename.c: Mention that this wrapper is needed also on
36747         mips-dec-ultrix4.4 systems.
36748
36749 2002-03-02  Jim Meyering  <meyering@lucent.com>
36750
36751         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
36752         not HAVE_CLOCK_SETTIME.
36753
36754 2002-02-27  Paul Eggert  <eggert@twinsun.com>
36755
36756         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
36757         Check for clock_settime.
36758
36759 2002-02-27  Paul Eggert  <eggert@twinsun.com>
36760
36761         * lib/nanosleep.h: Rename to....
36762         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
36763
36764         * lib/gettime.c: New file.
36765         * lib/settime.c: New file.
36766         * lib/stime.c: Remove.
36767
36768         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
36769         timespec.h.  Remove nanosleep.h.
36770
36771 2002-02-25  Paul Eggert  <eggert@twinsun.com>
36772
36773         * m4/acl.m4: New file.
36774         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
36775         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
36776
36777 2002-02-25  Paul Eggert  <eggert@twinsun.com>
36778
36779         * lib/acl.c, lib/acl.h: New files.
36780         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
36781
36782 2002-02-24  Jim Meyering  <meyering@lucent.com>
36783
36784         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
36785         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
36786         cause trouble.  Reported by Nelson Beebe.
36787
36788 2002-02-23  Paul Eggert  <eggert@twinsun.com>
36789
36790         * lib/path-concat.c (xpath_concat): Reorder code to pacify
36791         compilers that don't know that xalloc_die never returns.
36792
36793 2002-02-20  Jim Meyering  <meyering@lucent.com>
36794
36795         * lib/getdate.c: Regenerate using bison-1.33.
36796
36797 2002-02-17  Jim Meyering  <meyering@lucent.com>
36798
36799         * config/config.guess (main): Don't use `head -1'; it's no longer
36800         portable. Use `sed 1q' instead.
36801
36802 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
36803
36804         * m4/codeset.m4: Upgrade to gettext-0.11.
36805         * m4/gettext.m4: Upgrade to gettext-0.11.
36806         * m4/glibc21.m4: Upgrade to gettext-0.11.
36807         * m4/iconv.m4: Upgrade to gettext-0.11.
36808         * m4/isc-posix.m4: Upgrade to gettext-0.11.
36809         * m4/lcmessage.m4: Upgrade to gettext-0.11.
36810         * m4/lib-ld.m4: New file, from gettext-0.11.
36811         * m4/lib-link.m4: New file, from gettext-0.11.
36812         * m4/lib-prefix.m4: New file, from gettext-0.11.
36813         * m4/progtest.m4: Upgrade to gettext-0.11.
36814
36815 2002-02-15  Paul Eggert  <eggert@twinsun.com>
36816
36817         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
36818         (jm_PREREQ): Use it.
36819
36820 2002-02-15  Paul Eggert  <eggert@twinsun.com>
36821
36822         * lib/posixver.c, lib/posixver.h: New files.
36823         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
36824
36825 2002-02-02  Paul Eggert  <eggert@twinsun.com>
36826             Bruno Haible  <bruno@clisp.org>
36827
36828         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
36829         (fwrite_success_callback): New declaration.
36830         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
36831         print_unicode_char. Call failure callback instead of error.
36832         (fwrite_success_callback): New function.
36833         (exit_failure_callback): New function.
36834         (fallback_failure_callback): New function.
36835         (print_unicode_char): Call unicode_to_mb.
36836
36837 2002-01-26  Jim Meyering  <meyering@lucent.com>
36838
36839         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
36840         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
36841
36842 2002-01-26  Jim Meyering  <meyering@lucent.com>
36843
36844         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
36845
36846 2002-01-22  Paul Eggert  <eggert@twinsun.com>
36847
36848         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
36849
36850 2002-01-22  Jim Meyering  <meyering@lucent.com>
36851
36852         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
36853         Otherwise, some versions of automake would omit the rule that makes
36854         Makefile from Makefile.in.
36855
36856 2002-01-21  Paul Eggert  <eggert@twinsun.com>
36857
36858         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
36859         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
36860         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
36861         (memcoll): Set errno to zero if there is no error.
36862
36863         * lib/quotearg.c (quotearg_buffer_restyled):
36864         Fix bug with quoting buffers containing NUL when backslashing escapes.
36865         This bug was exposed by the other changes in this patch.
36866         (quotearg_n_options): New arg ARGSIZE.
36867         All callers changed.
36868         (quoting_options_from_style): New function.
36869         (quotearg_n_style): Use it.
36870         (quotearg_n_style_mem): New function.
36871
36872         * lib/quotearg.h (quotearg_n_style_mem): New function.
36873
36874 2002-01-19  Jim Meyering  <meyering@lucent.com>
36875
36876         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
36877         Remove useless quotes: DF_PROG="df".
36878         * m4/strnlen.m4: New file.
36879
36880 2002-01-16  Paul Eggert  <eggert@twinsun.com>
36881
36882         * lib/backupfile.c (ISDIGIT): Comment fix.
36883         * lib/getdate.y (ISDIGIT): Likewise.
36884         * lib/posixtm.c (ISDIGIT, year): Likewise.
36885         * lib/strverscmp.c (ISDIGIT): Likewise.
36886         * lib/userspec.c (ISDIGIT): Likewise.
36887
36888 2002-01-16  Jim Meyering  <meyering@lucent.com>
36889
36890         * lib/getdate.y: Add three semicolons, each just before a closing
36891         brace. Bison (as of version 1.31) no longer papers over that mistake.
36892
36893 2002-01-05  Jim Meyering  <meyering@lucent.com>
36894
36895         * lib/version-etc.c (version_etc_copyright): Update copyright year.
36896
36897 2001-12-19  Paul Eggert  <eggert@twinsun.com>
36898
36899         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
36900         not silently exit merely because the output buffer happens to
36901         have nothing pending.
36902
36903 2001-12-18  Paul Eggert  <eggert@twinsun.com>
36904
36905         See the big note in ../ChangeLog.
36906         * lib/human.c (suffixes): Prefer K to k for 1024.
36907         (generate_suffix_backwards): New function.
36908         (human_readable_inexact): Use it.
36909         * lib/xstrtol.c (__xstrtol): If there is no number but there
36910         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
36911         Accept 'K' as well as 'k'.
36912
36913 2001-12-15  Jim Meyering  <meyering@lucent.com>
36914
36915         * lib/regex.h (__restrict_arr): Update from libc.
36916
36917         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
36918         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
36919         (STREQ): Define.
36920
36921 2001-12-14  Jim Meyering  <meyering@lucent.com>
36922
36923         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
36924         Suggestion from Bruno Haible.
36925
36926 2001-12-10  Jim Meyering  <meyering@lucent.com>
36927
36928         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
36929         xrealloc, Instead, include "xalloc.h".
36930         (initbuffer): Don't cast xmalloc return value to char*.
36931         (readline): Reword comment.
36932         Don't cast xrealloc return value to char*
36933         Return NULL, not 0.
36934
36935 2001-12-09  Jim Meyering  <meyering@lucent.com>
36936
36937         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
36938         about `signed and unsigned type in conditional expression'.
36939         * lib/posixtm.c (posix_time_parse): Likewise.
36940
36941         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
36942
36943         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
36944         to avoid a pedantic warning.
36945
36946         * lib/getstr.c: Don't include assert.h.
36947         (getstr): Remove warning-evoking assertions.
36948         Return -1 if offset parameter is out of bounds.
36949         Change the type of a local from int to size_t.
36950
36951         * lib/strftime.c (my_strftime_localtime_r): Include this function
36952         definition in the `#if ! HAVE_TM_GMTOFF' block.
36953
36954         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
36955         Include xalloc.h instead.
36956
36957 2001-12-02  Jim Meyering  <meyering@lucent.com>
36958
36959         * lib/tempname.c: Don't declare getenv, thus reverting the change of
36960         2001-11-18.  It's no longer necessary, now that stdlib.h is always
36961         included.
36962
36963         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
36964         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
36965
36966 2001-11-30  Akim Demaille  <akim@epita.fr>
36967
36968         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
36969         before being defined.
36970
36971 2001-11-27  Paul Eggert  <eggert@twinsun.com>
36972
36973         * lib/quotearg.h (quotearg_n, quotearg_n_style):
36974         First arg is int, not unsigned.
36975         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
36976         (SIZE_MAX, UINT_MAX): New macros.
36977         (quotearg_n_options): Abort if N is negative.
36978         Avoid overflow check on hosts where size_t is 64 bits and int
36979         is 32 bits, as overflow is impossible there.
36980         Fix off-by-one typo that caused unnecessary reallocation.
36981
36982 2001-11-27  Jim Meyering  <meyering@lucent.com>
36983
36984         * lib/tempname.c: Merge with version from libc.
36985         * lib/regex.c: Likewise.
36986
36987         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
36988         systems for which STDC_HEADERS is 0, it was not included, resulting in
36989         a warning about an integer-to-pointer conversion problem with getenv.
36990         Reported by Volker Borchert.
36991
36992 2001-11-26  Jim Meyering  <meyering@lucent.com>
36993
36994         * lib/gtod.h: Remove file.
36995         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
36996         * lib/gettimeofday.c: Don't include gtod.h.
36997         (GTOD_init): Remove function.
36998         (rpl_gettimeofday): Do its job here instead, rather than aborting.
36999         Suggestion from Volker Borchert.
37000
37001 2001-11-23  Jim Meyering  <meyering@lucent.com>
37002
37003         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
37004         it.
37005         * lib/hash.c (struct hash_table): Define it here instead.
37006
37007 2001-11-22  Jim Meyering  <meyering@lucent.com>
37008
37009         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
37010
37011 2001-11-20  Jim Meyering  <meyering@lucent.com>
37012
37013         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
37014         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
37015
37016 2001-11-19  Jim Meyering  <meyering@lucent.com>
37017
37018         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
37019         directory.  Use "conftestXXXXXX" as the template.
37020         Suggestion from Paul Eggert.
37021
37022         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
37023         immediately, so the test doesn't mistakenly hit the max-open-files
37024         limit.
37025
37026 2001-11-18  Paul Eggert  <eggert@twinsun.com>
37027
37028         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
37029         (TEMPORARIES): New macro.
37030         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
37031         removes an artificial limitation (e.g. HP-UX 10.20, where
37032         TMP_MAX is 17576).
37033
37034 2001-11-18  Jim Meyering  <meyering@lucent.com>
37035
37036         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
37037
37038 2001-11-18  Jim Meyering  <meyering@lucent.com>
37039
37040         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
37041         on SunOS 4.
37042
37043         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
37044         files will be created before anything else.
37045
37046 2001-11-17  Paul Eggert  <eggert@twinsun.com>
37047
37048         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
37049         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
37050
37051 2001-11-17  Jim Meyering  <meyering@lucent.com>
37052
37053         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
37054         Prompted by a report from Bob Proulx.
37055
37056         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
37057         Instead, require UTILS_FUNC_MKSTEMP.
37058
37059 2001-11-17  Jim Meyering  <meyering@lucent.com>
37060
37061         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
37062         Now, that's done as part of AC_FUNC_STRTOD.
37063
37064 2001-11-17  Jim Meyering  <meyering@lucent.com>
37065
37066         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
37067         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
37068         rather than group writable.  Patch by Juan F. Codagnone.
37069
37070         * lib/readtokens.c: Remove explicit declarations of xmalloc and
37071         xrealloc, Instead, include "xalloc.h".
37072
37073         * lib/mountlist.c: Include unlocked-io.h after all system headers.
37074         Remove explicit declarations of xmalloc, xrealloc,
37075         and xstrdup.  Instead, include "xalloc.h".
37076
37077         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
37078         unlocked-io.h.
37079         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
37080         Likewise.
37081         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
37082
37083         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
37084         Reported by Padraig Brady.
37085
37086         * lib/mkstemp.c: #undef mkstemp.
37087         Include config.h.
37088         (rpl_mkstemp): Rename from mkstemp.
37089         Protoize.
37090
37091 2001-11-16  Jim Meyering  <meyering@lucent.com>
37092
37093         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
37094         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
37095         determine the amount of total physical memory, use pstat_getstatic.
37096         HPUX-11 doesn't define _SC_PHYS_PAGES.
37097         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
37098         If sysconf couldn't be used to determine the amount of available
37099         physical memory, use both pstat_getstatic and pstat_getdynamic.
37100         Based on a patch from Bob Proulx.
37101
37102 2001-11-10  Jim Meyering  <meyering@lucent.com>
37103
37104         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
37105         (jm_PREREQ): Use it.
37106
37107 2001-11-09  Jim Meyering  <meyering@lucent.com>
37108
37109         * m4/jm-macros.m4: Require autoconf-2.52f.
37110         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
37111         Use these AC_-prefixed names, not the AM_-prefixed ones.
37112
37113         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
37114
37115 2001-11-05  Jim Meyering  <meyering@lucent.com>
37116
37117         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
37118
37119 2001-11-04  Jim Meyering  <meyering@lucent.com>
37120
37121         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
37122         $DEFS.
37123
37124 2001-11-03  Jim Meyering  <meyering@lucent.com>
37125
37126         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
37127         of AC_DEFUN.
37128
37129         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
37130         know the name of the variable in the macro definition.
37131
37132 2001-11-03  Jim Meyering  <meyering@lucent.com>
37133
37134         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
37135         in argmatch_to_argument call.
37136
37137         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
37138         argument.
37139
37140         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
37141         e.g., a fault due to an attempt to free a NULL pointer.
37142
37143 2001-11-01  Jim Meyering  <meyering@lucent.com>
37144
37145         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
37146         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
37147
37148 2001-11-01  Jim Meyering  <meyering@lucent.com>
37149
37150         * lib/dirfd.c, lib/dirfd.h: New files.
37151         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
37152
37153         * lib/hash.c (hash_print) [TESTING]: Clean up.
37154
37155 2001-10-22  Paul Eggert  <eggert@twinsun.com>
37156
37157         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
37158         to avoid a warning if -Wall.
37159
37160 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
37161
37162         * README: New file
37163         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
37164         (per RMS's instructions, this is now the canonical source)
37165         * lgpl/, gpl/: New directories.
37166
37167 2001-10-21  Paul Eggert  <eggert@twinsun.com>
37168
37169         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
37170
37171 2001-10-21  Jim Meyering  <meyering@lucent.com>
37172
37173         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
37174         this code would end up calling gettext even in packages built
37175         with --disable-nls.
37176         * lib/getopt.c (_): Likewise.
37177         * lib/regex.c (_): Likewise.
37178
37179 2001-10-20  Paul Eggert  <eggert@twinsun.com>
37180
37181         * m4/error.m4 (jm_PREREQ_ERROR):
37182         Do not invoke AC_CHECK_FUNCS with strerror_r, as
37183         AC_FUNC_STRERROR_R does that.
37184         Check for strerror declaration.
37185
37186         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
37187         are supposed to have them these days.
37188         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
37189         Merge changes from latest Autoconf CVS.
37190         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
37191         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
37192         POSIX decided to standardize on the int flavor of strerror_r.
37193
37194 2001-10-20  Paul Eggert  <eggert@twinsun.com>
37195
37196         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
37197         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
37198         Use strerror_r that is only a macro, even if it is not a function.
37199         (strerror): Check for HAVE_DECL_STRERROR before declaring.
37200         (private_strerror): Use prototypes, not old-style function definition.
37201         (print_errno_message): New function.
37202         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
37203         char*-flavored one.
37204         (error_tail, error, error_at_line): Use it.
37205
37206 2001-10-11  Jim Meyering  <meyering@lucent.com>
37207
37208         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
37209         and quote_n (1, ... to avoid clobbering a buffer.
37210
37211 2001-10-05  Jim Meyering  <meyering@lucent.com>
37212
37213         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
37214         hash-pjw.h.
37215         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
37216         * lib/hash-pjw.h: New file.
37217
37218 2001-09-30  Jim Meyering  <meyering@lucent.com>
37219
37220         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
37221         `struct fsstat' has the `f_fstypename' member.
37222         Use that to define FS_TYPE, which is now used to make
37223         the getfsstat link test tighter.
37224
37225 2001-09-30  Jim Meyering  <meyering@lucent.com>
37226
37227         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
37228         Include <sys/ucred.h>, for Apple Darwin.
37229         Include sys/mount.h and sys/fs_types.h only if available.
37230         (FS_TYPE): Define.
37231         (read_filesystem_list): Use FS_TYPE.
37232
37233 2001-09-29  Paul Eggert  <eggert@twinsun.com>
37234
37235         * lib/exclude.c (excluded_filename): 0 -> false, since it's
37236         a boolean context.
37237
37238 2001-09-29  Jim Meyering  <meyering@lucent.com>
37239
37240         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
37241         [one-argument getmntent function]): Include stdio.h before mntent.h.
37242         SunOS 4.1.x needs it for the declaration of `FILE'.
37243         Patch by Volker Borchert.
37244
37245         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
37246         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
37247         sys/fs_types.h, and make the link-test for getfsstat guard #include
37248         directives with appropriate #if HAVE_*_H tests so that we can
37249         detect getfsstat on Apple Darwin1.3.7 systems.
37250         Reported by Nelson Beebe.
37251         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
37252
37253 2001-09-28  Paul Eggert  <eggert@twinsun.com>
37254
37255         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
37256         #defines strtoimax.  Also treat the other strto* functions
37257         like strtoimax.
37258
37259         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
37260         Check for strtoul and strtoumax,
37261         as those declarations are made even in the signed case.
37262         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
37263         Likewise, for strtol and strtoimax.
37264
37265 2001-09-28  Paul Eggert  <eggert@twinsun.com>
37266
37267         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
37268         #defines strtoimax.  Also treat the other strto* functions
37269         like strtoimax.
37270
37271         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
37272         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
37273         (strtoimax, strtoumax): Do not declare if already defined as a macro.
37274
37275 2001-09-26  Jim Meyering  <meyering@lucent.com>
37276
37277         Most macros in unlocked-io.h had the wrong number of arguments.
37278         * lib/gen-uio: New script.
37279         (USE_UNLOCKED_IO): Define to 1 if not already defined.
37280         * lib/unlocked-io.hin: Remove file.
37281         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
37282         rather than trying to embed it here.
37283         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
37284         Reported by Padraig Brady.
37285
37286 2001-09-25  Volker Borchert  <bt@teknon.de>
37287
37288         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
37289         `result'.
37290
37291 2001-09-24  Jim Meyering  <meyering@lucent.com>
37292
37293         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
37294
37295 2001-09-23  Jim Meyering  <meyering@lucent.com>
37296
37297         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
37298         instead of the mere test for existence of mntent.h.  The latter
37299         would get a false-positive on AIX 3.4 systems.
37300         In the outer getmntent if-block, don't die if neither of the getmntent
37301         tests succeeds.  Instead, just fall through and continue with the
37302         remaining tests.
37303
37304 2001-09-23  Jim Meyering  <meyering@lucent.com>
37305
37306         * lib/mountlist.c: Remove useless parentheses in #if directives.
37307         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
37308         the deprecated MOUNTED symbol is no longer defined in mntent.h.
37309
37310 2001-09-22  Jim Meyering  <meyering@lucent.com>
37311
37312         * m4/gettext.m4: New file.  From gettext.
37313         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
37314         * m4/progtest.m4: Likewise
37315         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
37316         * m4/glibc21.m4: Likewise.
37317
37318         * m4/libintl.m4: Remove.  No longer used.
37319
37320 2001-09-22  Jim Meyering  <meyering@lucent.com>
37321
37322         * lib/localcharset.c: Update from latest gettext.
37323         * lib/config.charset: Likewise.
37324
37325 2001-09-20  Jim Meyering  <meyering@lucent.com>
37326
37327         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
37328         strtoimax.
37329         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
37330         strtoumax.
37331
37332 2001-09-20  Jim Meyering  <meyering@lucent.com>
37333
37334         * lib/xstrtol.c (strtoimax): Guard declaration with
37335         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
37336         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
37337         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
37338         (strtoumax): Likewise, for completeness (it wasn't necessary).
37339
37340 2001-09-17  Paul Eggert  <eggert@twinsun.com>
37341
37342         * lib/strtoimax.c (HAVE_LONG_LONG):
37343         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
37344         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
37345         to work around bug in IBM C compiler.
37346
37347 2001-09-17  Jim Meyering  <meyering@lucent.com>
37348
37349         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
37350         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
37351         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
37352         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
37353         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
37354         whenever the right hand side need not be expanded by the shell.
37355
37356 2001-09-16  Paul Eggert  <eggert@twinsun.com>
37357
37358         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
37359         library.  It's not correct, as some older glibcs are buggy.
37360         fnmatch wasn't fixed until glibc 2.2.
37361
37362         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
37363         special shell magic here.
37364
37365 2001-09-16  Jim Meyering  <meyering@lucent.com>
37366
37367         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
37368         * m4/jm-macros.m4: Require it.
37369
37370 2001-09-16  Jim Meyering  <meyering@lucent.com>
37371
37372         * lib/mkdir.c: New file.
37373
37374 2001-09-15  Jim Meyering  <meyering@lucent.com>
37375
37376         * m4/jm-macros.m4: Check for help2man.
37377
37378 2001-09-11  Jim Meyering  <meyering@lucent.com>
37379
37380         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
37381         The body, by Paul Eggert, was moved here from configure.in.
37382         * m4/jm-macros.m4: Require UTILS_HOST_OS.
37383
37384 2001-09-04  Paul Eggert  <eggert@twinsun.com>
37385
37386         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
37387         (jm_PREREQ): Use it.
37388
37389 2001-09-04  Paul Eggert  <eggert@twinsun.com>
37390
37391         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
37392         Use ssize_t, not int, to store result of readlink.
37393         Check for ssize_t overflow as well as size_t overflow,
37394         as POSIX says the result of readlink is implementation-defined
37395         when ssize_t overflows.
37396         Remove unnecessary cast to char*.
37397         Use free+malloc instead of realloc, as the storage doesn't need
37398         to be preserved and it's clearer and can be more efficient that way.
37399         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
37400         * lib/xreadlink.h (xreadlink): Update prototype.
37401
37402 2001-09-04  Paul Eggert  <eggert@twinsun.com>
37403
37404         * lib/xgetcwd.c: Revert some of the previous change; intead,
37405         fix the HAVE_GETCWD_NULL code to behave more like the
37406         !HAVE_GETCWD_NULL code used to.
37407
37408         Include "xalloc.h".
37409         (xgetcwd): Do not return NULL when memory is exhausted; instead,
37410         invoke xalloc_die.
37411
37412 2001-09-03  Paul Eggert  <eggert@twinsun.com>
37413
37414         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
37415         sys/param.h, as pathmax.h includes them.
37416
37417 2001-09-03  Paul Eggert  <eggert@twinsun.com>
37418
37419         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
37420         (jm_PREREQ_XGETCWD): New macro.
37421
37422         * m4/getcwd.m4: New file.
37423
37424 2001-09-03  Paul Eggert  <eggert@twinsun.com>
37425
37426         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
37427         like the HAVE_GETCWD_NULL code.
37428         Include pathmax.h if not HAVE_GETCWD.
37429         Do not include xalloc.h.
37430         (INITIAL_BUFFER_SIZE): New symbol.
37431         Do not use xmalloc / xrealloc, since the caller is responsible for
37432         handling errors.  Preserve errno around `free' during failure.
37433         Do not overrun buffer when using getwd.
37434
37435 2001-09-03  Paul Eggert  <eggert@twinsun.com>
37436
37437         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
37438         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
37439         getcwd (NULL, 0).
37440
37441 2001-09-03  Paul Eggert  <eggert@twinsun.com>
37442
37443         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
37444         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
37445         spotted by Jim Meyering.
37446
37447 2001-09-03  Jim Meyering  <meyering@lucent.com>
37448
37449         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
37450         failure.
37451
37452 2001-09-02  Jim Meyering  <meyering@lucent.com>
37453
37454         * lib/error.c: Update from GNU libc.
37455
37456 2001-09-01  Jim Meyering  <meyering@lucent.com>
37457
37458         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
37459         Used by df.
37460
37461 2001-09-01  Jim Meyering  <meyering@lucent.com>
37462
37463         * lib/xreadlink.c: New file.
37464         * lib/xreadlink.h: New file.
37465         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
37466         xreadlink.h.
37467
37468         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
37469         doesn't conflict with sparc Solaris 7's definition in
37470         /usr/include/sys/int_types.h.
37471
37472         * lib/exclude.c: Use `""', not `<>' to #include non-system header
37473         files.
37474         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
37475         and strncasecmp as r-values.  Unixware didn't have declarations.
37476
37477 2001-08-31  Paul Eggert  <eggert@twinsun.com>
37478
37479         * lib/xstrtol.h: Add copyright notice.
37480         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
37481         LONGINT_INVALID_SUFFIX_CHAR.
37482
37483 2001-08-31  Paul Eggert  <eggert@twinsun.com>
37484
37485         * lib/xstrtol.c (strtoimax): New decl.
37486
37487 2001-08-31  Paul Eggert  <eggert@twinsun.com>
37488
37489         * lib/xgetcwd.c: Don't include pathmax.h.
37490         Include stdlib.h and unistd.h if available.
37491         Include xalloc.h.
37492         (xmalloc, xstrdup, free): Remove decls.
37493         (xgetcwd): Don't assume sizes fit in unsigned.
37494         Check for overflow when computing sizes.
37495         Simplify reallocation code.
37496
37497 2001-08-31  Paul Eggert  <eggert@twinsun.com>
37498
37499         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
37500         a directory's st_size can have an arbitrary value, so the old
37501         usage could waste an arbitrary amount of memory.  All uses
37502         changed.
37503         * lib/savedir.h: Update prototype.
37504
37505 2001-08-31  Paul Eggert  <eggert@twinsun.com>
37506
37507         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
37508
37509         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
37510         old strtoimax.c.
37511
37512         Also, make the following further changes to make this file's
37513         configuration more similar to that of strtol.c:
37514         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
37515         (strtoumax, uintmax_t, strtoull, strtol): Remove.
37516         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
37517         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
37518         changed to signed values.
37519
37520         And make the following changes as well:
37521         Fix copyright notice, as 1999 was missing.
37522         (verify): New macro.
37523         (strtoimax): Check sizes at compile-time, not run-time.
37524         Prefer strtol to strtoll if both work.
37525         (main): Remove; it was not that useful and was a pain to maintain.
37526
37527         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
37528
37529 2001-08-31  Jim Meyering  <meyering@lucent.com>
37530
37531         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
37532         Use an initial, malloc'd, buffer of length 128 rather than
37533         a statically allocated one of length 1024.
37534
37535 2001-08-30  Paul Eggert  <eggert@twinsun.com>
37536
37537         Simplify code, partly by assuming autoconf 2.52 semantics.
37538
37539         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
37540
37541         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
37542         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
37543         All uses removed.
37544         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
37545         Move AC_REQUIRE to next-to-top level, to avoid confusion.
37546         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
37547         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
37548         jm_AC_HEADER_INTTYPES_H.
37549         * m4/jm-macros.m4 (jm_MACROS): Likewise.
37550
37551         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
37552
37553         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
37554         Quote first arg of AC_DEFUN.
37555         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
37556         since they are needed to parse the include file even if we need
37557         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
37558         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
37559         but with opposite signedness.
37560
37561 2001-08-30  Paul Eggert  <eggert@twinsun.com>
37562
37563         Merge 'exclude' changes from tar 1.13.22.
37564         This fixes one or two unlikely storage allocation overflow bugs,
37565         but doesn't change user-visible behavior otherwise.
37566
37567 2001-08-30  Paul Eggert  <eggert@twinsun.com>
37568
37569         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
37570         (jm_PREREQ_EXCLUDE): New macro.
37571
37572 2001-08-30  Paul Eggert  <eggert@twinsun.com>
37573
37574         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
37575         tm to be declared.
37576
37577 2001-08-30  Paul Eggert  <eggert@twinsun.com>
37578
37579         * lib/hash.c: Remove '2001' from copyright notice.
37580
37581 2001-08-30  Paul Eggert  <eggert@twinsun.com>
37582
37583         * lib/full-write.h: New file.
37584         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
37585         * lib/full-write.c: Correct credits, as cccp.c no longer
37586         exists and anyway it was so heavily changed from the old cccp
37587         code as to be unrecognizable.  Include full-write.h.
37588         (full_write) Return size_t, with short writes meaning failure.
37589         All callers changed.  This fixes a bug with large buffers
37590         on 64-bit hosts.
37591         * lib/utime.c: Include full-write.h.
37592
37593 2001-08-30  Paul Eggert  <eggert@twinsun.com>
37594
37595         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
37596         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
37597         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
37598         Include if available.
37599         (<xalloc.h>): Include
37600         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
37601         (verify): New macro.  Use it to verify that EXCLUDE macros do not
37602         collide with FNM macros.
37603         (struct patopts): New struct.
37604         (struct exclude): Use it, as exclude patterns now come with options.
37605         (new_exclude): Support above changes.
37606         (new_exclude, add_exclude_file):
37607         Initial size must now be a power of two to simplify overflow checking.
37608         (free_exclude, fnmatch_no_wildcards): New function.
37609         (excluded_filename): No longer requires options arg, as the options
37610         are determined by add_exclude.  Now returns bool, not int.
37611         (excluded_filename, add_exclude):
37612         Add support for the fancy new exclusion options.
37613         (add_exclude, add_exclude_file): Now takes int options arg.
37614         Check for arithmetic overflow when computing sizes.
37615         (add_exclude_file): xrealloc might modify errno, so don't
37616         realloc until after errno might be used.
37617
37618         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
37619         New macros.
37620         (free_exclude): New decl.
37621         (add_exclude, add_exclude_file): Now takes int options arg.
37622         (excluded_filename): No longer requires options arg, as the options
37623         are determined by add_exclude.  Now returns bool, not int.
37624
37625 2001-08-30  Paul Eggert  <eggert@twinsun.com>
37626
37627         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
37628
37629 2001-08-27  Jim Meyering  <meyering@lucent.com>
37630
37631         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
37632
37633         * lib/version-etc.c (N_): Remove definition.
37634         Revert most of last change.
37635         Instead, simply don't mark the `Copyright...' string for translation.
37636         Based on advice from Paul Eggert.
37637
37638         * lib/strtoxmax.c: Tweak comment.
37639
37640 2001-08-26  Jim Meyering  <meyering@lucent.com>
37641
37642         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
37643
37644         * m4/xstrtoimax.m4: New file.
37645         * m4/xstrtoumax.m4: Add comments explaining why we
37646         AC_REPLACE_FUNCS(strtol).
37647
37648 2001-08-26  Jim Meyering  <meyering@lucent.com>
37649
37650         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
37651         of copyright with `%s' so translators don't get an untranslated
37652         message in 2002.
37653         (COPYRIGHT_YEAR): Define.
37654         (version_etc): Use fprintf rather than fputs.
37655         Suggestion from Ulrich Drepper.
37656
37657         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
37658
37659         * lib/strtoll.c: New file, from GNU libc.
37660         * lib/xstrtoimax.c: New file.
37661
37662         * lib/xstrtol.h: Add xstrtoimax.
37663         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
37664         * lib/strtoimax.c: New file.  Likewise, but first define
37665         STRTOUXMAX_SIGNED.
37666
37667         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
37668         ...
37669         * lib/strtoxmax.c: ... then renamed to this.
37670
37671 2001-08-18  Paul Eggert  <eggert@twinsun.com>
37672
37673         * m4/inttypes.m4: Add AC_PREREQ(2.13).
37674         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
37675         (jm_AC_TYPE_INTMAX_T): New macro.
37676         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
37677
37678         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
37679
37680         * m4/longlong.m4: Renamed from ulonglong.m4.
37681         * m4/inttypes.m4: Renamed from inttypes_h.m4.
37682         * m4/uintmax_t.m4: Removed.
37683
37684 2001-08-13  Paul Eggert  <eggert@twinsun.com>
37685
37686         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
37687         Port to Solaris 8, where 'sed' requires a space after the 'r'
37688         command, and where sh dislikes "$/".  Clean up the spacing a bit.
37689         Redirect output to $tmp just once.
37690
37691 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
37692
37693         * lib/addext.c (<errno.h>): Include.
37694         (errno): Declare if not defined.
37695         (addext): Work correctly when pathconf returns -1 and leaves
37696         errno alone because there is no limit.  Also, work even if
37697         pathconf returns a value greater than SIZE_MAX.
37698
37699 2001-08-12  Jim Meyering  <meyering@lucent.com>
37700
37701         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
37702         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
37703         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
37704         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
37705         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
37706         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
37707         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
37708         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
37709         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
37710         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
37711         utime.m4, utimes.m4, xstrtoumax.m4:
37712         Quote the first argument in each use of AC_DEFUN.
37713
37714 2001-08-12  Jim Meyering  <meyering@lucent.com>
37715
37716         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
37717         Simply `return getcwd (NULL, 0);'.
37718         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
37719         Use 1300 as initial value for length, not PATH_MAX.
37720
37721         * lib/pathmax.h: Clean up cpp syntax.
37722
37723 2001-08-12  Jim Meyering  <meyering@lucent.com>
37724
37725         * lib/gettimeofday.c: New file.
37726         * lib/gtod.h: New file.
37727         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
37728
37729 2001-08-05  Jim Meyering  <meyering@lucent.com>
37730
37731         * m4/jm-macros.m4: Require autoconf-2.52.
37732
37733 2001-08-04  Jim Meyering  <meyering@lucent.com>
37734
37735         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
37736         stmt, to get in sync with glibc.
37737
37738 2001-08-03  Paul Eggert  <eggert@twinsun.com>
37739
37740         The following changes are from gettext 0.10.39 as maintained by
37741         Bruno Haible.
37742
37743         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
37744         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
37745         with inverted sense.  All uses changed.
37746
37747         * lib/mbswidth.c: Don't include <limits.h>.
37748         Include <stdlib.h> and <string.h> unconditionally.
37749         (iswcntrl, mbsinit, ISCNTRL): New macros.
37750         (mbsnwidth): Use K&R style function declarations.
37751         Don't bother checking for MB_LEN_MAX == 1, since the compiler
37752         can optimize it when MB_CUR_MAX == 1.
37753         The width of control characters is zero, not 1.
37754
37755 2001-08-03  Paul Eggert  <eggert@twinsun.com>
37756
37757         The following changes are from gettext 0.10.39 as maintained by
37758         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
37759
37760         * m4/codeset.m4: Upgrade to serial AM1.
37761         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
37762         all uses changed.  Quote first arg of AC_DEFUN.
37763         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
37764
37765         * m4/iconv.m4: Upgrade to serial AM2.
37766         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
37767         Add --with-libconv-prefix.
37768         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
37769         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
37770         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
37771         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
37772         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
37773
37774         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
37775         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
37776         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
37777         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
37778         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
37779         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
37780         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
37781         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
37782         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
37783
37784         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
37785         string.h any more.
37786
37787         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
37788         not the default value.
37789
37790         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
37791         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
37792         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
37793         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
37794         Also check for iswcntrl, used for wcwidth fallback.
37795         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
37796         to Autoconf 2.13.
37797
37798 2001-08-03  Jim Meyering  <meyering@lucent.com>
37799
37800         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
37801         as it was in the original.  Reported by Paul Eggert.
37802
37803 2001-07-16  Jim Meyering  <meyering@lucent.com>
37804
37805         * m4/gettimeofday.m4: New file.
37806         Prompted by a report from Bernhard Baehr.
37807
37808 2001-07-15  Jim Meyering  <meyering@lucent.com>
37809
37810         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
37811         stuff. Now it's in ../Makefile.cfg.
37812
37813 2001-07-15  Jim Meyering  <meyering@lucent.com>
37814
37815         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
37816         (BUILT_SOURCES): Add unlocked-io.h.
37817         (io_functions): Define.
37818         (unlocked-io.h): New rule.
37819         (DISTCLEANFILES): Add unlocked-io.h.
37820         (all-local): Depend on unlocked-io.h, to ensure it is created.
37821
37822         * lib/unlocked-io.hin: New file
37823
37824         * lib/regex.c: Update from glibc.
37825
37826 2001-07-05  Jim Meyering  <meyering@lucent.com>
37827
37828         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
37829         recommendation.
37830         (libfetish_a_SOURCES): Put all .h files here instead.
37831         Remove a thus-exposed (better checks in automake) duplicate and
37832         two unnecessary .h files.
37833
37834 2001-07-04  Jim Meyering  <meyering@lucent.com>
37835
37836         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
37837         that generates jm-glibc-io.m4 so that it doesn't trigger any make
37838         distcheck failure.
37839
37840 2001-07-02  Jim Meyering  <meyering@lucent.com>
37841
37842         The following changes were prompted by suggestions from Bruno Haible.
37843
37844         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
37845         is now generated.
37846         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
37847         definition of EXTRA_DIST.
37848         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
37849         ensure that the generated file is created/updated whenever the list
37850         of $(unlocked_functions) is changed.
37851         (jm-glibc-io.m4): New rule.
37852         (unlocked-io.h): New rule -- currently unused.
37853
37854 2001-06-24  Jim Meyering  <meyering@lucent.com>
37855
37856         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
37857         unmatched right bracket, rather than kludging it with an extra,
37858         falsely-matching quote in a comment.  Patch by Akim Demaille.
37859
37860 2001-06-11  Jim Meyering  <meyering@lucent.com>
37861
37862         * lib/regex.c: Update from GNU libc.
37863
37864 2001-05-27  Jim Meyering  <meyering@lucent.com>
37865
37866         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
37867         Check for ut_type in struct utmp.
37868
37869 2001-05-27  Jim Meyering  <meyering@lucent.com>
37870
37871         * lib/readutmp.h (UT_TYPE): Define.
37872
37873 2001-05-24  Jim Meyering  <meyering@lucent.com>
37874
37875         * lib/argmatch.c: Include "quote.h".
37876         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
37877         quote function.  Reported by Göran Uddeborg.
37878
37879 2001-05-22  Jim Meyering  <meyering@lucent.com>
37880
37881         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
37882         now that we use the package-supplied version unconditionally.
37883         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
37884
37885 2001-05-21  Jim Meyering  <meyering@lucent.com>
37886
37887         * m4/regex.m4: Change a couple backticks to single quotes to avoid
37888         shell syntax errors.
37889
37890 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
37891
37892         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
37893
37894 2001-05-20  Paul Eggert  <eggert@twinsun.com>
37895
37896         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
37897         Don't bother to check library strftime, since
37898         we'll be using our own my_strftime function anyway.
37899         Define my_strftime instead of strftime.
37900
37901 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
37902
37903         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
37904         which is not yet declared.
37905
37906 2001-05-15  Jim Meyering  <meyering@lucent.com>
37907
37908         * m4/regex.m4: Use proper quoting so brackets appear in the test
37909         program.
37910         Reported by, and with help from, Bruno Haible.
37911
37912 2001-05-13  Jim Meyering  <meyering@lucent.com>
37913
37914         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
37915         undefined.
37916
37917 2001-05-11  Paul Eggert  <eggert@twinsun.com>
37918
37919         dirname code cleanup.  base_name now behaves more compatibly
37920         with POSIX basename when given file names that have trailing
37921         slashes, and similarly for dir_name.  Add new primitives
37922         base_len and dir_len.  Put the directory-name-related decls
37923         into dirname.h.
37924
37925         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
37926         * lib/backupfile.c (base_name): Likewise.
37927         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
37928         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
37929         * lib/makepath.c (strip_trailing_slashes): Likewise.
37930         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
37931         ISSLASH): Likewise.
37932         * lib/rename.c (strip_trailing_slashes): Likewise.
37933         * lib/same.c (base_name): Likewise.
37934         * lib/stripslash.c (ISSLASH): Likewise.
37935
37936         * lib/addext.c: Include <dirname.h> after size_t is defined.
37937         * lib/backupfile.c: Likewise.
37938
37939         * lib/addext.c (addext): Use base_len to trim redundant
37940         trailing slashes instead of doing it ourselves.
37941         But do not trim the last slash if it is not redundant.
37942
37943         * lib/backupfile.c (find_backup_file_name,
37944         max_backup_version): Use base_len instead of rolling it ourselves.
37945         Handle the case of "" and (on DOS) "C:" correctly.
37946
37947         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
37948         needed. Include <string.h>, <dirname.h>.
37949         (base_name): Allow file names ending in slashes, other than names
37950         that are all slashes.  In this case, return the basename followed
37951         by the slashes.  This is more general, and can be used in places
37952         where the original base_name purposely had an assertion failure.
37953         (base_len): New function.
37954
37955         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
37956         Do not include <assert.h>; no longer needed.
37957         Include xalloc.h.
37958         (memrchr): Remove decl.
37959         (dir_name_r): Remove.
37960         (dir_len): Renamed from dirlen.  All callers changed.
37961         Rewrite in terms of base_name, for simplicity and consistency.
37962         (dir_name): Never return NULL.  All callers changed.
37963         Do not include <stdlib.h> in test program; no longer needed.
37964         return 0; is fine for test program.
37965
37966         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
37967         New macros.
37968         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
37969
37970         * lib/path-concat.c (path_concat): Use base_len to compute
37971         base length, not strlen; this means we cannot rely on memcpy
37972         to null-terminate.
37973
37974         * lib/same.c (STREQ): Remove.
37975         (same_name): Handle the case where the basename ends in trailing '/'.
37976
37977         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
37978         a slash was stripped.  Do not strip the last slash after a
37979         file system prefix.
37980
37981 2001-05-11  Paul Eggert  <eggert@twinsun.com>
37982
37983         * lib/Makefile.am (libfetish_a_SOURCES):
37984         Add strftime.c, since we now compile it on all hosts.
37985
37986         * lib/strftime.c (my_strftime):
37987         Define to nstrftime if emacs, but only if my_strftime is not defined.
37988         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
37989         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
37990         Add one more extra argument: a nanoseconds value.
37991         All uses changed.
37992         (ns): New macro.
37993         (my_strftime function): Add %N format.
37994         (emacs_strftimeu): Renamed from emacs_strftime,
37995         with extra ut argument.
37996
37997 2001-05-09  Paul Eggert  <eggert@twinsun.com>
37998
37999         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
38000
38001 2001-04-21  Jim Meyering  <meyering@lucent.com>
38002
38003         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
38004         doesn't interfere.
38005
38006 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
38007
38008         * m4/ftruncate.m4: Check for chsize.
38009         Link with ftruncate.o unconditionally if ftruncate is missing.
38010         This was required when cross-compiling to i586-mingw32msvc.
38011
38012 2001-04-08  Jim Meyering  <meyering@lucent.com>
38013
38014         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
38015         recomputed; that's necessary when the offset spans a DST transition.
38016         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
38017
38018 2001-04-02  Jim Meyering  <meyering@lucent.com>
38019
38020         * lib/regex.h, regex.c: Update from GNU libc.
38021
38022 2001-03-24  Jim Meyering  <meyering@lucent.com>
38023
38024         * m4/jm-macros.m4: Require autoconf-2.49d.
38025
38026 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
38027
38028         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
38029
38030 2001-03-19  Paul Eggert  <eggert@twinsun.com>
38031
38032         * lib/version-etc.c (version_etc_copyright): Update to 2001.
38033
38034 2001-03-17  Jim Meyering  <meyering@lucent.com>
38035
38036         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
38037         now that the version in autoconf is equivalent.
38038         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
38039
38040         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
38041         Suggestion from Akim Demaille.
38042
38043         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
38044         (jm_PREREQ_TEMPNAME): New function.
38045
38046 2001-03-16  Paul Eggert  <eggert@twinsun.com>
38047
38048         * lib/tempname.c (uint64_t): Define to uintmax_t if
38049         not defined, and if UINT64_MAX is not defined.
38050         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
38051         Reported by John David Anglin.
38052
38053 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
38054
38055         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
38056         resolve alias if codeset is empty.
38057         * lib/config.charset (BeOS): Use wildcard syntax.
38058
38059 2001-03-13  Jim Meyering  <meyering@lucent.com>
38060
38061         * lib/path-concat.c (path_concat)
38062         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
38063         concatenating e.g., `C:' and `foo'.
38064         From Bruno Haible.
38065
38066 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
38067
38068         * lib/localcharset.c (locale_charset): Don't use
38069         setlocale(LC_CTYPE,NULL). Don't return NULL.
38070         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
38071
38072 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
38073
38074         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
38075         support for DOS/DJGPP.
38076
38077 2001-03-01  Paul Eggert  <eggert@twinsun.com>
38078
38079         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
38080         lacks mkstemp.  Compile our own tempname.c if we compile our own
38081         mkstemp.c, as mkstemp relies on tempname.
38082
38083 2001-03-01  Jim Meyering  <meyering@lucent.com>
38084
38085         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
38086         AH_VERBATIM really does output its argument verbatim.
38087
38088 2001-02-28  Paul Eggert  <eggert@twinsun.com>
38089
38090         * lib/Makefile.am (libfetish_a_SOURCES):
38091         Add dup-safer.c, fopen-safer.c.
38092         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
38093
38094         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
38095         * lib/unistd-safer.h: New files.
38096
38097 2001-02-25  Paul Eggert  <eggert@twinsun.com>
38098
38099         The mkstemp replacement is taken from glibc 2.2.2, with some
38100         portability fixes for use outside glibc, as follows:
38101
38102         * lib/tempname.c (struct_stat64): New macro.
38103         (direxists, __gen_tempname): Use it.
38104         This avoids a portability problem with Solaris 8.
38105
38106         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
38107         (<stddef.h>, <stdint.h>, <string.h>):
38108         Include only if STDC_HEADERS || _LIBC.
38109         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
38110         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
38111         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
38112         (__set_errno): Define this macro if <errno.h> doesn't.
38113         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
38114         Define these macros if <stdio.h> doesn't.
38115         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
38116         Define these macros if <sys/stat.h>
38117         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
38118         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
38119         __xstat64): Define if not _LIBC.
38120         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
38121         (__gen_tempname): Invoke gettimeofday only if
38122         HAVE_GETTIMEOFDAY || _LIBC;
38123         otherwise, fall back on plain "time".
38124         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
38125
38126         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
38127
38128         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
38129
38130 2001-02-18  Paul Eggert  <eggert@twinsun.com>
38131
38132         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
38133
38134 2001-02-17  Paul Eggert  <eggert@twinsun.com>
38135
38136         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
38137         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
38138         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
38139         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
38140
38141 2001-02-17  Paul Eggert  <eggert@twinsun.com>
38142
38143         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
38144         Remove workaround macros for hosts that have mbrtowc but not
38145         mbstate_t, as we now insist on proper declarations for both
38146         before using mbrtowc.
38147
38148 2001-02-17  Jim Meyering  <meyering@lucent.com>
38149
38150         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
38151         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
38152         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
38153         UnixWare 7.1.1.
38154
38155         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
38156         rather than AC_CACHE_VAL.
38157
38158 2001-02-17  Jim Meyering  <meyering@lucent.com>
38159
38160         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
38161         around included file name.
38162
38163         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
38164
38165         * lib/strftime.c: Update from GNU libc (the only changes were to
38166         comments).
38167
38168 2001-02-17  Jim Meyering  <meyering@lucent.com>
38169
38170         * lib/regex.c: Update from libc.
38171
38172 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
38173
38174         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
38175         clash.
38176
38177 2001-02-16  Paul Eggert  <eggert@twinsun.com>
38178
38179         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
38180         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
38181         Reported by Mark Hounschell via Paul Eggert.
38182
38183 2001-02-07  Jim Meyering  <meyering@lucent.com>
38184
38185         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
38186
38187 2001-02-05  Jim Meyering  <meyering@lucent.com>
38188
38189         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
38190         it includes the patch required for `large file' support with at least
38191         HP-UX's 10.20 /bin/cc.
38192
38193 2001-02-03  Jim Meyering  <meyering@lucent.com>
38194
38195         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
38196         AS_IF, now that it works once again (mysteriously).
38197         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
38198
38199 2001-01-30  Jim Meyering  <meyering@lucent.com>
38200
38201         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
38202         * m4/chown.m4: Rename conftestchown to conftest.chown.
38203         * m4/rename.m4: s/conftestdir/conftest.d1/ and
38204         s/conftestdir2/conftest.d2/.
38205         * m4/utimes.m4: s/conftestdata/conftest.data/
38206         Inspired by Pavel Roskin's change in autoconf.
38207
38208 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
38209
38210         * lib/config.charset: Update for FreeBSD 4.2.
38211
38212 2001-01-27  Jim Meyering  <meyering@lucent.com>
38213
38214         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
38215         a use of AS_IF.
38216         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
38217
38218 2001-01-26  Jim Meyering  <meyering@lucent.com>
38219
38220         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
38221         quotearg.c includes it.
38222
38223 2001-01-26  Jim Meyering  <meyering@lucent.com>
38224
38225         * lib/quotearg.c: Include stddef.h.
38226         * lib/quote.c: Include stddef.h.
38227         Reported by Axel Kittenberger.
38228
38229         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
38230         line in double quotes so that it evokes a better diagnostic.
38231         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
38232         Reported by Axel Kittenberger.
38233
38234 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
38235
38236         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
38237         as if it was a `charset'.
38238
38239 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
38240
38241         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
38242         has const.
38243
38244 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
38245
38246         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
38247         to avoid a warning.  Add back 'const' to inptr.
38248
38249 2001-01-20  Jim Meyering  <meyering@lucent.com>
38250
38251         Be sure that headers are checked before used in code compiled
38252         for the type checks.
38253         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
38254         In place of that, invoke jm_CHECK_ALL_TYPES.
38255         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
38256         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
38257         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
38258         The check for ssize_t was mistakenly run before the test for unistd.h.
38259
38260         The configure-time check for stdbool.h was missing.
38261         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
38262         (jm_PREREQ_HASH): New function.
38263
38264 2001-01-17  Jim Meyering  <meyering@lucent.com>
38265
38266         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
38267         for autoconf-2.49c.
38268         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
38269
38270 2001-01-16  Jim Meyering  <meyering@lucent.com>
38271
38272         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
38273         From Bruno Haible.
38274
38275 2001-01-14  Jim Meyering  <meyering@lucent.com>
38276
38277         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
38278         foo and bar.  Create conftestdir/ in the script, not in the C code.
38279         Remove directories in the script, not in the C code.
38280         Remove conftestdir{,2} before trying to create the directory.
38281         Make the entire configure script fail if the mkdir fails.
38282
38283 2001-01-14  Jim Meyering  <meyering@lucent.com>
38284
38285         * lib/rename.c: New file.  From Volker Borchert.
38286         Include stdlib.h, string.h or strings.h, and xalloc.h.
38287         Use strip_trailing_slashes rather than open-coding it.
38288
38289 2001-01-03  Paul Eggert  <eggert@twinsun.com>
38290
38291         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
38292
38293 2001-01-03  Jim Meyering  <meyering@lucent.com>
38294
38295         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
38296         of local `inptr' to avoid warning with some system declarations of
38297         iconv.
38298
38299 2001-01-02  Volker Borchert  <bt@teknon.de>
38300
38301         * m4/rename.m4: New file.
38302         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
38303
38304 2001-01-01  Jim Meyering  <meyering@lucent.com>
38305
38306         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
38307         even on systems with utmpx.h.  It's necessary for the declaration of
38308         utmp's ut_user member.  Reported by Andreas Jaeger.
38309
38310         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
38311         available. They are required for the declarations of getgrgid and
38312         getpwuid resp.
38313         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
38314         Reported by Andreas Jaeger.
38315
38316 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
38317
38318         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
38319         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
38320         so `make install' also works in VPATH builds.
38321
38322 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
38323
38324         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
38325         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
38326         can be used in subdirectories.
38327
38328 2000-12-29  Paul Eggert  <eggert@twinsun.com>
38329
38330         * lib/modechange.c: Do not assume that mode_t uses the
38331         traditional octal encoding.  E.g. "chmod 1 FOO" should set
38332         the other-execute bit of FOO even if S_IXOTH != 1.
38333
38334         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
38335         WOTH, XOTH, ALLM): New macros.
38336         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
38337          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
38338         Use them.
38339         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
38340         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
38341         (mode_compile):
38342         No need to use uintmax_t; unsigned long is long enough.
38343         Don't bother to get suffix since we don't use it.
38344
38345 2000-12-26  Jim Meyering  <meyering@lucent.com>
38346
38347         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
38348         better with autoheader.
38349
38350 2000-12-24  Jim Meyering  <meyering@lucent.com>
38351
38352         * lib/hash.c (is_prime): Return explicit boolean values.
38353         (hash_get_first): Return NULL to appease Irix5.6's 89.
38354         Reported by Nelson Beebe.
38355
38356 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
38357
38358         * lib/localcharset.c (locale_charset): Add support for Win32.
38359
38360 2000-12-18  Paul Eggert  <eggert@twinsun.com>
38361
38362         * lib/physmem.h, lib/physmem.c: New files.
38363
38364         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
38365         (noinst_HEADERS): Add physmem.h.
38366
38367         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
38368         't' for compatibility with Solaris 8 sort.
38369
38370 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
38371
38372         * lib/config.charset: Add support for BeOS.
38373
38374 2000-12-17  Jim Meyering  <meyering@lucent.com>
38375
38376         * m4/dos.m4 (jm_AC_DOS): New file and macro.
38377         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
38378
38379 2000-12-16  Jim Meyering  <meyering@lucent.com>
38380
38381         This bug had a serious impact on chown: `chown N:M FILE' (for integer
38382         N and M) would have treated it like `chown N:N FILE'.
38383
38384         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
38385
38386 2000-12-16  Jim Meyering  <meyering@lucent.com>
38387
38388         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
38389         SHELLS_FILE to a file name that's useful on djgpp systems.
38390         Include stdlib.h.
38391         (ADDITIONAL_DEFAULT_SHELLS): Define.
38392         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
38393         Based mostly on a patch from Prashant TR.
38394
38395 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
38396
38397         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
38398         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
38399         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
38400
38401 2000-12-08  Andreas Schwab  <schwab@suse.de>
38402
38403         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
38404         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
38405
38406 2000-12-07  Jim Meyering  <meyering@lucent.com>
38407
38408         * lib/stripslash.c (ISSLASH): Define.
38409         (strip_trailing_slashes): Use ISSLASH rather than comparing against
38410         `/'.
38411         From Prashant TR.
38412
38413         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
38414         (dir_name_r): Declare this function as static.
38415         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
38416         manifest itself on a name containing a mix of slashes and
38417         backslashes.
38418         Make this function work with names starting with a DOS-style
38419         drive letter and colon prefix.
38420         (dir_name): Append `.' if necessary.
38421         Based mostly on patches from Prashant TR and Eli Zaretskii.
38422
38423         * lib/dirname.h (dir_name_r): Remove prototype.
38424
38425 2000-12-06  Paul Eggert  <eggert@twinsun.com>
38426
38427         * m4/off_t-format.m4: Remove this file.
38428         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
38429
38430 2000-12-06  Jim Meyering  <meyering@lucent.com>
38431
38432         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
38433         replacement strtoull, we may well need the replacement strtoul, too.
38434         Check for declarations of strtoul and strtoull.
38435         Check for strtol.  Mainly as a cue to cause automake to include
38436         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
38437         Check for limits.h -- strtol.c needs it.
38438
38439 2000-12-05  Jim Meyering  <meyering@lucent.com>
38440
38441         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
38442
38443 2000-12-04  Jim Meyering  <meyering@lucent.com>
38444
38445         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
38446         Also include memory.h, stdlib.h, unistd.h if appropriate.
38447         Reported by Andreas Jaeger (conflicting declaration of malloc).
38448
38449 2000-12-02  Jim Meyering  <meyering@lucent.com>
38450
38451         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
38452         * m4/jm-macros.m4 (jm_MACROS): require it.
38453
38454 2000-12-02  Jim Meyering  <meyering@lucent.com>
38455
38456         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
38457
38458 2000-12-01  Paul Eggert  <eggert@twinsun.com>
38459
38460         * lib/memrchr.c: Include <config.h> before any system include file.
38461
38462 2000-11-30  Jim Meyering  <meyering@lucent.com>
38463
38464         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
38465
38466 2000-11-30  Jim Meyering  <meyering@lucent.com>
38467
38468         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
38469
38470 2000-11-29  Paul Eggert  <eggert@twinsun.com>
38471
38472         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
38473
38474 2000-11-26  Jim Meyering  <meyering@lucent.com>
38475
38476         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
38477
38478 2000-11-22  Paul Eggert  <eggert@twinsun.com>
38479
38480         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
38481         size of (size_t) -1; it's not portable.
38482
38483 2000-11-17  Jim Meyering  <meyering@lucent.com>
38484
38485         * lib/strstr.c: Update from GNU libc.
38486
38487 2000-11-17  Akim Demaille  <akim@epita.fr>
38488
38489         * lib/obstack.h: Formatting changes.
38490         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
38491         prevent type checking.
38492         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
38493         cast the value to (void *): assigning a `foo *' to a `void *'
38494         variable is valid.
38495         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
38496
38497 2000-11-16  Jim Meyering  <meyering@lucent.com>
38498
38499         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
38500
38501 2000-11-11  Jim Meyering  <meyering@lucent.com>
38502
38503         * lib/error.c: Add a couple #includes, merging from GNU libc version.
38504
38505 2000-11-10  Jim Meyering  <meyering@lucent.com>
38506
38507         * lib/obstack.h: Update from GNU libc.
38508         * lib/obstack.c: Likewise.
38509
38510 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
38511
38512         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
38513
38514 2000-11-06  Paul Eggert  <eggert@twinsun.com>
38515
38516         * lib/getusershell.c (setusershell): Use rewind rather than
38517         fseek/fseeko, to avoid configuration hassles with fseeko.
38518         Don't bother opening SHELLS_FILE if shellstream is NULL;
38519         it's not necessary.
38520
38521 2000-11-05  Jim Meyering  <meyering@lucent.com>
38522
38523         * lib/makepath.h (make_dir): Declare.
38524         * lib/makepath.c (make_dir): Remove `static' attribute.
38525         Tweak a comment.
38526
38527 2000-11-04  Jim Meyering  <meyering@lucent.com>
38528
38529         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
38530
38531 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
38532
38533         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
38534         last one in a bucket, advance to the next bucket.
38535
38536 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
38537
38538         * lib/fnmatch.c: Do not comment out all the code if we are using
38539         the GNU C library, because in some cases we are replacing buggy
38540         code in the GNU C library itself.
38541
38542 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
38543
38544         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
38545         (regex_compile): Catch bogus \(\1\).
38546
38547 2000-10-30  Paul Eggert  <eggert@twinsun.com>
38548
38549         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
38550         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
38551         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
38552
38553 2000-10-30  Paul Eggert  <eggert@twinsun.com>
38554
38555         * lib/error.h, getline.h, modechange.h:
38556         Remove "2000" from Copyright line, as the file hasn't been
38557         changed this year other than in the copyright notice.
38558
38559         * lib/xalloc.h: Add "2000" to Copyright line, as this file
38560         was changed this year.
38561
38562 2000-10-29  Jim Meyering  <meyering@lucent.com>
38563
38564         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
38565         renaming.
38566         * m4/ls-mntd-fs.m4: Likewise
38567
38568 2000-10-29  Jim Meyering  <meyering@lucent.com>
38569
38570         * lib/xstat.in: Fix grammar in comment.
38571
38572 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
38573
38574         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
38575         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
38576         doesn't define __restrict_arr.
38577
38578 2000-10-28  Jim Meyering  <meyering@lucent.com>
38579
38580         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
38581         (jm_PREREQ_MEMCHR): New function.
38582
38583 2000-10-28  Jim Meyering  <meyering@lucent.com>
38584
38585         * lib/memchr.c: Update from libc.
38586         Adjust for portability:
38587         [HAVE_STDLIB_H]: Include stdlib.h.
38588         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
38589         Undef __memchr, too.
38590         [!weak_alias]: Define __memchr to memchr.
38591
38592         * lib/regex.c: Update from libc.
38593         * lib/regex.h: Likewise.
38594         * lib/getopt1.c: Likewise.
38595         * lib/memcmp.c: Likewise.
38596
38597         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
38598         Avoid using fseek, when possible -- it's broken by design.
38599         Patch by Ulrich Drepper.
38600
38601 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
38602
38603         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
38604         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
38605         Giving in to popular pressure to shut up the compiler with casts.
38606
38607 2000-10-26  Jim Meyering  <meyering@lucent.com>
38608
38609         * lib/strftime.c: Update from libc.
38610
38611 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
38612
38613         * regex.c: More `unsigned char' -> `re_char' changes.
38614         Also change several `int' into `re_wchar_t'.
38615         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
38616         (PUSH_FAILURE_POINTER): Don't cast any more.
38617         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
38618         We want GCC to complain, since this piece of code makes
38619         re_match non-reentrant, which *should* be fixed.
38620         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
38621         (EXTEND_BUFFER): Use RETALLOC.
38622         (SET_LIST_BIT): Don't cast.
38623         (re_wchar_t): New type.
38624         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
38625         that those two functions will always properly return.
38626         (IMMEDIATE_QUIT_CHECK): Cast to void.
38627         (analyse_first): Use recursion rather than an explicit stack.
38628         (re_compile_fastmap): Can't fail anymore.
38629         (re_search_2): Don't check re_compile_fastmap for failure.
38630         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
38631         Now also sets the new value (passed in a new argument).
38632         (re_match_2_internal): Use it.
38633         Also, use a new var `reg' of type size_t when looping through regs
38634         rather than reuse the inappropriate `mcnt'.
38635
38636 2000-10-25  Jim Meyering  <meyering@lucent.com>
38637
38638         * lib/obstack.c: Update from libc.
38639
38640 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
38641
38642         * regex.c (regex_compile): Change the way of handling a range from
38643         a char less than 256 to a char not less than 256.
38644
38645 2000-10-24  Andrew Innes  <andrewi@gnu.org>
38646
38647         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
38648         NT-Emacs only.
38649         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
38650         so that re_search functions only quit when callers expect them to.
38651
38652 2000-10-23  Jim Meyering  <meyering@lucent.com>
38653
38654         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
38655         wrong.  That set_locale call must not have any side effects.
38656         From Paul Eggert.
38657
38658 2000-10-22  Jim Meyering  <meyering@lucent.com>
38659
38660         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
38661         [CYCLIC]: Remove now-unused definition.
38662
38663         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
38664         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
38665         Suggestion from Ulrich Drepper.
38666
38667 2000-10-21  Jim Meyering  <meyering@lucent.com>
38668
38669         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
38670         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
38671         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
38672
38673 2000-10-21  Jim Meyering  <meyering@lucent.com>
38674
38675         * lib/dirname.c (memrchr): Declare if necessary.
38676         (dir_name): Remove the restriction that there be no
38677         trailing slashes.  Now, this code skips past them, effectively
38678         ignoring them.
38679         [TEST_DIRNAME] (main): New unit tests.
38680
38681         * lib/memrchr.c: New file from GNU libc.
38682         Undef __memrchr, too.
38683         [!weak_alias]: Define __memrchr to memrchr.
38684         Guard weak_alias use with `#ifdef weak_alias'.
38685
38686 2000-10-21  Jim Meyering  <meyering@lucent.com>
38687
38688         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
38689         (dir_name): Use dir_name_r.
38690         * lib/dirname.h (dir_name_r): Declare it.
38691
38692 2000-10-17  Jim Meyering  <meyering@lucent.com>
38693
38694         * lib/quote.h (PARAMS): Define and use.
38695         Reported by Akim Demaille.
38696
38697         * lib/getopt.c: Update from libc.
38698
38699 2000-10-16  Jim Meyering  <meyering@lucent.com>
38700
38701         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
38702         setlocale.
38703         From Jan Fedak.
38704
38705 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
38706
38707         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
38708
38709 2000-09-25  Jim Meyering  <meyering@lucent.com>
38710
38711         * lib/md5.h (rol): Define (from GnuPG).
38712
38713         * lib/sha.c: Give credit (GnuPG) where due.
38714         (M): Use rol rather than open-coding it.
38715         Add a FIXME comment.
38716
38717 2000-09-21  Jim Meyering  <meyering@lucent.com>
38718
38719         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
38720         Reported by Michael Stone.
38721
38722 2000-09-20  Jim Meyering  <meyering@lucent.com>
38723
38724         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
38725         (noinst_HEADERS): Add sha.h.
38726         Based on code from Scott G. Miller and from GnuPG.
38727
38728 2000-09-18  Jim Meyering  <meyering@lucent.com>
38729
38730         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
38731         LIBS. Otherwise, everyone ends up linking with -lelf for some
38732         configurations.
38733         Reported by Mike Stone.
38734
38735 2000-09-15  Jim Meyering  <meyering@lucent.com>
38736
38737         * lib/regex.c: Update from libc.
38738
38739 2000-09-10  Jim Meyering  <meyering@lucent.com>
38740
38741         * lib/getopt.c (_getopt_internal): Update from glibc.
38742
38743 2000-09-09  Jim Meyering  <meyering@lucent.com>
38744
38745         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
38746         think it should be used as a general replacement for isascii.
38747         * lib/fnmatch.c: Likewise.
38748         * lib/mbswidth.c: Likewise
38749         * lib/regex.c: Likewise.
38750
38751         Don't use atoi.
38752         * lib/userspec.c: Include sys/param.h and limits.h.
38753         Include xstrtol.h.
38754         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
38755         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
38756         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
38757         UID, GID.  Check range.
38758
38759 2000-09-06  Jim Meyering  <meyering@lucent.com>
38760
38761         * lib/getopt.c (_getopt_internal): Update from glibc.
38762
38763 2000-08-30  Jim Meyering  <meyering@lucent.com>
38764
38765         * lib/strftime.c: Merge in changes from GNU libc.
38766
38767 2000-08-26  Jim Meyering  <meyering@lucent.com>
38768
38769         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
38770         * m4/fpending.m4: New file.
38771
38772 2000-08-26  Jim Meyering  <meyering@lucent.com>
38773
38774         * lib/closeout.c: Include "__fpending.h".
38775         (close_stdout_status): Return right away if there's nothing to flush.
38776
38777         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
38778         * lib/__fpending.c: New file.
38779         * lib/__fpending.h: New file.
38780
38781 2000-08-20  Jim Meyering  <meyering@lucent.com>
38782
38783         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
38784         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
38785         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
38786
38787 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
38788
38789         Improve fileutils installation on systems where running
38790         programs (like install) can't be unlinked.
38791         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
38792         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
38793
38794 2000-08-07  Paul Eggert  <eggert@twinsun.com>
38795
38796         Standardize on "memory exhausted" instead of "Memory exhausted"
38797         or "virtual memory exhausted".
38798         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
38799         "virtual memory exhausted".
38800         * lib/same.c (same_name): Invoke xalloc_die instead of printing
38801         our own message.
38802         * lib/userspec.c (parse_user_spec): Likewise.
38803         * lib/bumpalloc.h: comment fix
38804         * lib/same.c, userspec.c: Include xalloc.h.
38805
38806         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
38807         not char *const and pointing to a constant array.
38808         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
38809         (xrealloc): Comment fix.
38810
38811         * lib/userspec.c (parse_user_spec):
38812         Don't translate a message until just before returning,
38813         to avoid unnecessary translation.
38814
38815 2000-08-07  Jim Meyering  <meyering@lucent.com>
38816
38817         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
38818         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
38819         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
38820         getgroups.c, gethostname.c, getopt.h, group-member.c,
38821         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
38822         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
38823         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
38824         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
38825         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
38826         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
38827         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
38828         yesno.c: Back out Copyright date changes for each file with no change
38829         this year.  This eases coordination with other programs using the same
38830         source code modules.  From Paul Eggert.
38831
38832 2000-08-06  Paul Eggert  <eggert@twinsun.com>
38833
38834         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
38835         not char, for compatibility with glibc 2.1.3 strftime.c.
38836
38837 2000-08-03  Greg McGary  <greg@mcgary.org>
38838
38839         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
38840         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
38841         (EXTEND_BUFFER): Use them.
38842
38843 2000-08-01  Jim Meyering  <meyering@lucent.com>
38844
38845         * lib/dirname.c (ISSLASH): Define.
38846         (BACKSLASH_IS_PATH_SEPARATOR): Define.
38847         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
38848         both `\' and `/' may be use as path separators.
38849         Based on a patch from Prashant TR.
38850
38851 2000-07-31  Paul Eggert  <eggert@twinsun.com>
38852
38853         * lib/quotearg.c (quotearg_n_options): Don't make the initial
38854         slot vector a constant, since it might get modified.
38855
38856 2000-07-31  Jim Meyering  <meyering@lucent.com>
38857
38858         * lib/xmalloc.c: Use `virtual memory exhausted', not
38859         `Memory exhausted'.
38860         * lib/obstack.c (print_and_abort): Likewise.
38861
38862 2000-07-30  Paul Eggert  <eggert@twinsun.com>
38863
38864         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
38865         buffer, so that the caller can always quote one small
38866         component of a "memory exhausted" message in slot 0.
38867         From a suggestion by Jim Meyering.
38868
38869 2000-07-30  Jim Meyering  <meyering@lucent.com>
38870
38871         * lib/makepath.c (make_path): Quote the other instance, too.
38872
38873         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
38874         (STATIC_BUF_SIZE): Define.
38875         (quotearg_n_options): Use only statically allocated storage when
38876         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
38877         than STATIC_BUF_SIZE.
38878
38879 2000-07-29  Jim Meyering  <meyering@lucent.com>
38880
38881         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
38882         * lib/dirname.c (dir_name): Likewise.
38883
38884         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
38885         `/'.
38886
38887         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
38888         (dir_name): Assert that there are no trailing slashes.
38889
38890 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
38891
38892         * lib/mbswidth.h (mbswidth): Add a flags argument.
38893         (mbswidth): New declaration.
38894         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
38895         * lib/mbswidth.c (mbswidth): Add a flags argument.
38896         (mbsnwidth): New function.
38897
38898 2000-07-24  Jim Meyering  <meyering@lucent.com>
38899
38900         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
38901
38902 2000-07-23  Paul Eggert  <eggert@twinsun.com>
38903
38904         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
38905
38906 2000-07-23  Paul Eggert  <eggert@twinsun.com>
38907
38908         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
38909         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
38910         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
38911         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
38912         invoke multibyte primitives.
38913
38914 2000-07-23  Paul Eggert  <eggert@twinsun.com>
38915
38916         * lib/quotearg.c:
38917         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
38918         so that mbstate_t is always defined.
38919
38920         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
38921         be 1 in at least one GCC installation, and this configuration
38922         error is likely to be common.  Ignoring MB_LEN_MAX hurts
38923         performance on hosts that have mbrtowc but have only unibyte
38924         locales, but I assume these hosts are rare.
38925
38926 2000-07-23  Paul Eggert  <eggert@twinsun.com>
38927
38928         * lib/mbswidth.c (_XOPEN_SOURCE):
38929         Don't define; this causes problems on Solaris 7.
38930         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
38931
38932 2000-07-23  Jim Meyering  <meyering@lucent.com>
38933
38934         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
38935         too: getgrgid, getpwuid, getuid.
38936
38937 2000-07-23  Jim Meyering  <meyering@lucent.com>
38938
38939         * lib/basename.c (base_name): Add an assertion.
38940
38941 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
38942
38943         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
38944         shadow its mbsinit function.
38945
38946 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
38947
38948         * lib/mbswidth.h: New file.
38949         * lib/mbswidth.c: New file.
38950         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
38951         (noinst_HEADERS): Add mbswidth.h.
38952
38953 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
38954
38955         * lib/config.charset: Add support for FreeBSD. Improve support for
38956         HP-UX and IRIX 6.
38957
38958 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
38959
38960         * m4/mbswidth.m4: New file.
38961         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
38962
38963 2000-07-15  Jim Meyering  <meyering@lucent.com>
38964
38965         * lib/makepath.c: Include quote.h.
38966         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
38967         corresponding argument in a `quote (...)' call.
38968         Give better diagnostics.
38969
38970         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
38971         (noinst_HEADERS): Add quote.h.
38972
38973         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
38974         from tar's src/misc.c.
38975         * lib/quote.h: New file.  Prototypes for same.
38976
38977 2000-07-14  Paul Eggert  <eggert@twinsun.com>
38978
38979         From a suggestion by Bruno Haible.
38980         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
38981         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
38982         to decide whether to define the BeOS workaround macro;
38983         this adjusts to the change to AC_MBSTATE_T.
38984
38985 2000-07-14  Jim Meyering  <meyering@lucent.com>
38986
38987         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
38988         jm_AC_TYPE_UINTMAX_T.
38989
38990 2000-07-13  Paul Eggert  <eggert@twinsun.com>
38991
38992         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
38993
38994         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
38995         quotearg_buffer_restyled): Add support for
38996         clocale_quoting_style.  Undo previous change to
38997         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
38998         and "{RIGHT QUOTATION MARK}" msgids.
38999
39000 2000-07-10  Paul Eggert  <eggert@twinsun.com>
39001
39002         From a suggestion by Bruno Haible.
39003         * m4/mbstate_t.m4 (AC_MBSTATE_T):
39004         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
39005         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
39006         and mbstate_t, to a single-part test that simply defines mbstate_t.
39007         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
39008         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
39009
39010 2000-07-10  Jim Meyering  <meyering@lucent.com>
39011
39012         * m4/strerror_r.m4: Mirror the correction made in autoconf.
39013
39014         * m4/gnu-source.m4: Output to confdefs.h directly.
39015         Suggestion from Akim Demaille.
39016
39017 2000-07-09  Paul Eggert  <eggert@twinsun.com>
39018
39019         The old behavior of quoting `like this' doesn't look good with
39020         newer, ISO-style fonts.  See:
39021         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
39022
39023         Instead, quote "like this" by default.  Let the translator
39024         tailor the locale-specific quoting behavior by providing
39025         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
39026
39027         * lib/quotearg.c (N_): New macro.
39028         (gettext_default): New function.
39029         (quotearg_buffer_restyled): Use
39030         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
39031         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
39032
39033 2000-07-09  Jim Meyering  <meyering@lucent.com>
39034
39035         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
39036         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
39037
39038         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
39039         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
39040
39041 2000-07-09  Jim Meyering  <meyering@lucent.com>
39042
39043         * lib/Most files: Update copyright dates to include 2000.
39044
39045 2000-07-08  Jim Meyering  <meyering@lucent.com>
39046
39047         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
39048         if not defined.
39049         (xgethostname): Remove now-unnecessary #ifdef.
39050         Move declaration of `err' into loop where it's used.
39051
39052 2000-07-05  Paul Eggert  <eggert@twinsun.com>
39053         and Bruno Haible  <haible@clisp.cons.org>
39054
39055         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
39056         only if the test for an object-type mbstate_t fails.  This
39057         prevents us from mistakenly reporting that mbstate_t is a
39058         system object type after we "#define mbstate_t int" to work
39059         around its lack.
39060
39061 2000-07-05  Paul Eggert  <eggert@twinsun.com>
39062         and Bruno Haible  <haible@clisp.cons.org>
39063
39064         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
39065
39066 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
39067
39068         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
39069         to strerror_r.
39070         Include <ctype.h> for use of isalpha.
39071
39072 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
39073
39074         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
39075         by allocating a larger buffer. Test the gethostname return value for
39076         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
39077         returns an error and ENAMETOOLONG isn't defined.
39078
39079 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
39080
39081         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
39082         dimension.
39083
39084 2000-07-04  Jim Meyering  <meyering@lucent.com>
39085
39086         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
39087         of the deprecated AC_CHECKING.
39088
39089 2000-07-04  Jim Meyering  <meyering@lucent.com>
39090
39091         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
39092         Reported by Bruno Haible.
39093
39094 2000-07-04  Jim Meyering  <meyering@lucent.com>
39095
39096         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
39097         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
39098         lacks mbrtowc.
39099
39100 2000-07-03  Paul Eggert  <eggert@twinsun.com>
39101
39102         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
39103         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
39104
39105 2000-07-03  Paul Eggert  <eggert@twinsun.com>
39106         and Bruno Haible  <haible@clisp.cons.org>
39107
39108         * lib/quotearg.c (mbrtowc):
39109         Assign to *pwc, and return 1 only if result is nonzero.
39110         (iswprint): Use ISPRINT when substituting our own mbrtowc.
39111
39112 2000-07-03  Jim Meyering  <meyering@lucent.com>
39113
39114         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
39115
39116 2000-07-03  Jim Meyering  <meyering@lucent.com>
39117
39118         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
39119         This is necessary to get a definition of e.g., UTMP_FILE on
39120         HP-UX 10.20.
39121         From Bob Proulx.
39122
39123 2000-07-02  Jim Meyering  <meyering@lucent.com>
39124
39125         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
39126
39127         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
39128         AC_LIBOBJ(function_name).
39129         * m4/chown.m4: Likewise.
39130         * m4/fnmatch.m4: Likewise.
39131         * m4/ftruncate.m4: Likewise.
39132         * m4/getgroups.m4: Likewise.
39133         * m4/getline.m4: Likewise.
39134         * m4/group-member.m4: Likewise.
39135         * m4/jm-macros.m4: Likewise.
39136         * m4/lstat.m4: Likewise.
39137         * m4/malloc.m4: Likewise.
39138         * m4/memcmp.m4: Likewise.
39139         * m4/nanosleep.m4: Likewise.
39140         * m4/putenv.m4: Likewise.
39141         * m4/realloc.m4: Likewise.
39142         * m4/regex.m4: Likewise.
39143         * m4/stat.m4: Likewise.
39144         * m4/strftime.m4: Likewise.
39145
39146 2000-07-02  Jim Meyering  <meyering@lucent.com>
39147
39148         * lib/quotearg.c (mbstate_t): Don't define here.
39149
39150 2000-07-02  Jim Meyering  <meyering@lucent.com>
39151
39152         * lib/nanosleep.c (SIGCONT): Define if not already defined.
39153
39154 2000-07-01  Jim Meyering  <meyering@lucent.com>
39155
39156         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
39157
39158 2000-07-01  Jim Meyering  <meyering@lucent.com>
39159
39160         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
39161         problem.
39162
39163 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
39164
39165         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
39166         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
39167
39168 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
39169
39170         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
39171         per change in ../m4/ls-mntd-fs.m4.
39172         (read_filesystem_list): Ignore symbolic links.
39173
39174 2000-06-29  Jim Meyering  <meyering@lucent.com>
39175
39176         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
39177         for declaration of strcmp.
39178
39179         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
39180
39181         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
39182         Avoid warning by casting result to `char *' to remove `const'.
39183
39184 2000-06-28  Jim Meyering  <meyering@lucent.com>
39185
39186         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
39187         included by quotearg.c, for which we perform this test.  From
39188         Bruno Haible.
39189
39190 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
39191
39192         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
39193         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
39194         <utmpx.h> exists, put readutmp.o into LIBOBJS.
39195
39196 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
39197
39198         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
39199
39200 2000-06-26  Paul Eggert  <eggert@twinsun.com>
39201
39202         savedir now sets errno on failure and invokes xmalloc to get memory.
39203         Fix a couple of other minor bugs while we're at it.
39204
39205         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
39206         (NAMLEN): Remove macro.
39207         (malloc, realloc): Remove decls.
39208         (stpcpy): Likewise.
39209         ("xalloc.h"): Include.
39210         (NAME_SIZE_DEFAULT): New macro.
39211         (savedir): Use xmalloc / xrealloc to allocate memory.
39212         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
39213         Skip "" directory entries.
39214         Use strlen to calculate directory entry length, since the old method
39215         is rarely used these days and isn't worth supporting.
39216         Don't use a pointer after freeing it.
39217         Check for integer overflow when calculating allocation size.
39218         Use memcpy to copy entries, instead of stpcpy.
39219         Set errno properly when returning NULL.
39220         Check for readdir error.
39221
39222 2000-06-26  Jim Meyering  <meyering@lucent.com>
39223
39224         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
39225
39226 2000-06-25  Jim Meyering  <meyering@lucent.com>
39227
39228         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
39229         Linux header bug when _XOPEN_SOURCE is defined to 500.
39230
39231 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
39232
39233         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
39234         deficiency.
39235
39236 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
39237
39238         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
39239         Include xalloc.h.
39240         Don't include <stdlib.h>.  Don't declare malloc, realloc.
39241
39242 2000-06-24  Jim Meyering  <meyering@lucent.com>
39243
39244         * m4/strerror_r.m4: Revive this file -- to try out an experimental
39245         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
39246         for which strerror does return char*, but which lacks a conveniently
39247         accessible declaration of the function.  If the compile-test says
39248         strerror_r doesn't work, then resort to a `run'-test that works on
39249         BeOS and segfaults on DEC Unix.
39250
39251 2000-06-24  Jim Meyering  <meyering@lucent.com>
39252
39253         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
39254
39255 2000-06-23  Paul Eggert  <eggert@twinsun.com>
39256
39257         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
39258         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
39259
39260 2000-06-23  Paul Eggert  <eggert@twinsun.com>
39261
39262         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
39263         (mbrtowc, mbstate_t): Define substitutes if
39264         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
39265         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
39266         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
39267
39268 2000-06-23  Jim Meyering  <meyering@lucent.com>
39269
39270         * m4/afs.m4: Add missing AC_MSG_RESULT.
39271         Reported by Bruno Haible.
39272
39273         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
39274         Suggestion from Bruno Haible.
39275
39276 2000-06-23  Jim Meyering  <meyering@lucent.com>
39277
39278         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
39279
39280 2000-06-21  Jim Meyering  <meyering@lucent.com>
39281
39282         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
39283
39284 2000-06-21  Jim Meyering  <meyering@lucent.com>
39285
39286         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
39287         (noinst_HEADERS): Add getstr.h.
39288
39289         * lib/getline.c (getstr): Move into a separate file.
39290         * lib/getstr.c (getstr): New file, extracted from getline.c, with
39291         the following changes: new parameter, delim2; both delim[12]
39292         parameters have type `int', not `char'.  The latter would lose
39293         with 8-bit delimiters.
39294         * lib/getstr.h: New file.
39295
39296 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
39297
39298         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
39299         than 1024, return a memory chunk of least possible size, instead
39300         of size PATH_MAX + 2. In the loop, increment the size proportionally.
39301         Use free/xmalloc instead of xrealloc to avoid copying for very long
39302         paths.
39303
39304 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
39305
39306         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
39307         the empty string.
39308
39309 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
39310
39311         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
39312         address, not strdup.  Include <stdlib.h> and don't declare free().
39313
39314 2000-06-19  Jim Meyering  <meyering@lucent.com>
39315
39316         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
39317
39318 2000-06-18  Jim Meyering  <meyering@lucent.com>
39319
39320         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
39321
39322         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
39323         `checking whether...' message to be consistent with that of the
39324         lstat test.
39325
39326 2000-06-18  Jim Meyering  <meyering@lucent.com>
39327
39328         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
39329         Besides, these days every porting target provides a mkdir function.
39330
39331         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
39332         needed. (this snippet comes from src/system.h).
39333
39334 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
39335
39336         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
39337
39338 2000-06-15  Paul Eggert  <eggert@twinsun.com>
39339
39340         * lib/human.c (adjust_value): New function.
39341         (human_readable_inexact): Apply rounding style even when
39342         printing approximate values.
39343
39344 2000-06-14  Paul Eggert  <eggert@twinsun.com>
39345
39346         * lib/human.c (human_readable_inexact): Allow an input block
39347         size that is not a multiple of the output block size, and vice versa.
39348         Reported by Piergiorgio Sartor.
39349
39350 2000-06-14  Paul Eggert  <eggert@twinsun.com>
39351
39352         * lib/getdate.y (get_date): Apply relative times after time
39353         zone indicator, not before.  Reported by Todd A. Jacobs.
39354
39355 2000-06-13  Jim Meyering  <meyering@lucent.com>
39356
39357         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
39358
39359         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
39360
39361 2000-06-12  Paul Eggert  <eggert@twinsun.com>
39362
39363         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
39364
39365 2000-06-12  Jim Meyering  <meyering@lucent.com>
39366
39367         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
39368         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
39369         optional argument.
39370         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
39371         the optional argument, `lib'.
39372
39373 2000-06-08  Jim Meyering  <meyering@lucent.com>
39374
39375         * m4/largefile.m4: Remove file (now that it's part of autoconf).
39376
39377 2000-06-04  Paul Eggert  <eggert@twinsun.com>
39378
39379         Rewrite largefile configuration so that we don't need to run
39380         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
39381         AC_CANONICAL_HOST in configure.in -- jmm]
39382
39383         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
39384         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
39385         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
39386         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
39387         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
39388         All uses changed.
39389         Instead of inspecting the output of getconf, try to compile the
39390         test program without and with the macro definition.
39391         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
39392         for getconf.  Instead, check for the needed flags by compiling
39393         test programs.
39394
39395 2000-06-04  Paul Eggert  <eggert@twinsun.com>
39396
39397         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
39398
39399 2000-06-04  Jim Meyering  <meyering@lucent.com>
39400
39401         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
39402         SunOS 4.1.4 for which gid_t is an unsigned type.
39403
39404 2000-06-03  Jim Meyering  <meyering@lucent.com>
39405
39406         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
39407         now that autoconf requires that.
39408
39409         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
39410         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
39411         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
39412
39413 2000-06-03  Jim Meyering  <meyering@lucent.com>
39414
39415         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
39416
39417 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
39418
39419         * m4/glibc21.m4: New file.
39420         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
39421
39422 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
39423
39424         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
39425         newer, don't install charset.alias.
39426         * lib/config.charset: Change the Linux/glibc rules so they become empty
39427         on glibc-2.1 or newer.
39428
39429 2000-06-02  Jim Meyering  <meyering@lucent.com>
39430
39431         * lib/mountlist.c: Back out last change.  Instead, do this...
39432         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
39433         me_dummy member using the same `ignore'-testing code.
39434         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
39435         fs_type strings.
39436         From Mark D. Roth.
39437
39438 2000-05-29  Jim Meyering  <meyering@lucent.com>
39439
39440         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
39441         mounts with the `ignore' attribute.  Based on a patch from
39442         Mark D. Roth.
39443
39444 2000-05-28  Jim Meyering  <meyering@lucent.com>
39445
39446         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
39447         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39448         * m4/stat.m4: Likewise.
39449         * m4/lstat.m4: Likewise.
39450         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
39451
39452         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
39453         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
39454
39455 2000-05-26  Jim Meyering  <meyering@lucent.com>
39456
39457         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
39458
39459 2000-05-24  Jim Meyering  <meyering@lucent.com>
39460
39461         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
39462         autoconf requires that.
39463         * m4/lib-check.m4: Likewise.
39464         * m4/jm-macros.m4: Likewise.
39465         * m4/strftime.m4: Likewise.
39466
39467         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
39468         AC_CHECK_DECLS, now that autoconf requires that.
39469
39470 2000-05-22  Jim Meyering  <meyering@lucent.com>
39471
39472         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39473         * m4/lstat.m4: Likewise.
39474
39475 2000-05-22  Jim Meyering  <meyering@lucent.com>
39476
39477         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
39478
39479 2000-05-20  Jim Meyering  <meyering@lucent.com>
39480
39481         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
39482         (jm_PREREQ): Use it.
39483
39484 2000-05-18  Jim Meyering  <meyering@lucent.com>
39485
39486         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
39487         back, too, since it may have been modified by allocate_entry.
39488         (hash_delete): Rewrite to use neither the assignment operator
39489         nor the comma operator in an if-expression.
39490
39491 2000-05-15  Paul Eggert  <eggert@twinsun.com>
39492
39493         * lib/closeout.c:
39494         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
39495         Remove; no longer needed.
39496         "quotearg.h": Add include.
39497         (file_name): Do not bother to explicitly initialize to NULL; it's less
39498         efficient on some hosts.
39499         (close_stdout_status): Remove test as to whether stdout was already
39500         closed; it breaks for the case "echo x | sort >&-".
39501         Quote file name colons.
39502         Do not assume that _("write error") lacks format strings.
39503
39504 2000-05-15  Jim Meyering  <meyering@lucent.com>
39505
39506         * lib/version-etc.c (version_etc_copyright): Update the copyright
39507         string used in all --version output.
39508
39509 2000-05-14  Jim Meyering  <meyering@lucent.com>
39510
39511         * lib/closeout.c (close_stdout_set_file_name): New function.
39512         (close_stdout_status): Use new file-scoped global.
39513         Return right away if fstat says the stdout file descriptor is invalid.
39514         * lib/closeout.h (close_stdout_set_file_name): Declare.
39515
39516 2000-05-10  Jim Meyering  <meyering@lucent.com>
39517
39518         * lib/closeout.c [default_exit_status]: New file-scoped variable.
39519         (close_stdout_set_status): New function.
39520         * lib/closeout.h (close_stdout_set_status): Declare.
39521
39522 2000-05-09  Jim Meyering  <meyering@lucent.com>
39523
39524         * m4/gettext.m4: Rename this...
39525         * m4/libintl.m4: ...to this.
39526
39527 2000-05-08  Jim Meyering  <meyering@lucent.com>
39528
39529         * lib/long-options.c: Don't include closeout.h.
39530         (parse_long_options): Don't call close_stdout for --version.
39531
39532 2000-05-06  Paul Eggert  <eggert@twinsun.com>
39533
39534         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
39535         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
39536         2.1.3 bug.  This avoids a clash when files like regex.c define
39537         _GNU_SOURCE.
39538
39539 2000-05-06  Jim Meyering  <meyering@lucent.com>
39540
39541         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
39542         (AC_REPLACE_FUNCS): Add strnlen.
39543
39544         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
39545         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
39546
39547         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
39548         AC_SEARCH_LIBS call for nanosleep.
39549         (LIB_NANOSLEEP): Set and AC_SUBST.
39550
39551 2000-05-06  Jim Meyering  <meyering@lucent.com>
39552
39553         * lib/strnlen.c: Undefine __strnlen and strnlen.
39554         [!weak_alias]: Define __strnlen to strnlen.
39555
39556         * lib/atexit.c: New file, from libiberty.
39557
39558 2000-05-06  Jim Meyering  <meyering@lucent.com>
39559
39560         * lib/closeout.c (close_stdout_status): Also check for errors on the
39561         stderr stream.
39562
39563 2000-05-05  Jim Meyering  <meyering@lucent.com>
39564
39565         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
39566         AC_SEARCH_LIBS call for clock_gettime.
39567         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
39568
39569         * m4/search-libs.m4: Update from autoconf.
39570
39571         su doesn't work on Solaris 2.6.
39572         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
39573         <shadow.h>.  Reported by Dragos Harabor.
39574
39575 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
39576
39577         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
39578         memcpy instead of xmalloc, xrealloc, path_concat.
39579         (locale_charset): Treat empty environment variables as absent.
39580         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
39581
39582 2000-05-04  Jim Meyering  <meyering@lucent.com>
39583
39584         * lib/getopt.c: Update from glibc.
39585         * lib/obstack.c: Likewise.
39586         * lib/obstack.h: Likewise.
39587         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
39588         file
39589
39590         * lib/regex.h: Likewise.
39591         * lib/strndup.c: Likewise.
39592         * lib/strnlen.c: New file, from glibc.
39593
39594 2000-05-03  Jim Meyering  <meyering@lucent.com>
39595
39596         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
39597
39598 2000-05-02  Paul Eggert  <eggert@twinsun.com>
39599
39600         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
39601         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
39602         compile-time test, rather than inspecting host and OS, to
39603         decide whether to define _LARGEFILE_SOURCE.
39604
39605 2000-05-01  Jim Meyering  <meyering@lucent.com>
39606
39607         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
39608
39609         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
39610         Based on a patch from Bruno Haible.
39611
39612 2000-05-01  Jim Meyering  <meyering@lucent.com>
39613
39614         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
39615
39616 2000-04-29  Jim Meyering  <meyering@lucent.com>
39617
39618         * lib/path-concat.c: Declare strdup only if it's not defined.
39619         * lib/canon-host.c: Likewise.
39620
39621 2000-04-28  Jim Meyering  <meyering@lucent.com>
39622
39623         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
39624         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
39625         is included first, then limits.h is included by locale.h by libintl.h.
39626         From John David Anglin.
39627
39628 2000-04-25  Jim Meyering  <meyering@lucent.com>
39629
39630         * lib/makepath.c (S_IRWXUGO): Define.
39631         (make_path): Always perform explicit chmod if MODE specifies any
39632         of the `special' permission bits.  Prompted by a bug report against
39633         install from Mate Wierdl and Joost van Baal.
39634
39635 2000-04-18  Jim Meyering  <meyering@lucent.com>
39636
39637         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
39638         (jm_PREREQ): Use it.
39639
39640 2000-04-18  Jim Meyering  <meyering@lucent.com>
39641
39642         * lib/README: New file.
39643
39644         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
39645         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
39646
39647 2000-04-17  Jim Meyering  <meyering@lucent.com>
39648
39649         Get it right :-)
39650         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
39651         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
39652         Suggestion from Akim Demaille.
39653
39654 2000-04-17  Jim Meyering  <meyering@lucent.com>
39655
39656         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
39657         the definition of it to rpl_strftime also defined-away the system's
39658         declaration.
39659
39660 2000-04-15  Jim Meyering  <meyering@lucent.com>
39661
39662         Use `C' to denote so-called `contiguous' files, the same way
39663         that tar does.
39664         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
39665         (ftypelet): Use S_ISCTG.
39666         From Michael Deutschmann.
39667
39668 2000-04-14  Jim Meyering  <meyering@lucent.com>
39669
39670         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
39671         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
39672         clobbered.
39673
39674 2000-04-14  Jim Meyering  <meyering@lucent.com>
39675
39676         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
39677
39678 2000-04-13  Jim Meyering  <meyering@lucent.com>
39679
39680         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
39681         AH_VERBATIM to insert required #ifndef into config.h.in.
39682         Suggestion from Akim Demaille.
39683
39684 2000-04-12  Jim Meyering  <meyering@lucent.com>
39685
39686         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
39687         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
39688         Christian Krackowizer.
39689
39690         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
39691         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
39692         (AC_SYS_LARGEFILE): Require.
39693         (AM_C_PROTOTYPES): Require.
39694
39695 2000-04-08  Jim Meyering  <meyering@lucent.com>
39696
39697         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
39698         names don't conflict.  Reported by Eli Zaretskii.
39699
39700 2000-04-07  Jim Meyering  <meyering@lucent.com>
39701
39702         * lib/putenv.c: Move inclusion of errno.h so it follows that of
39703         sys/types.h, to work around system header problems on AIX 3.2.5.
39704         From Bruno Haible.
39705
39706 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
39707
39708         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
39709         bug.  Deal with the different error behavior of Irix iconv.
39710
39711 2000-04-05  Paul Eggert  <eggert@twinsun.com>
39712
39713         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
39714         IRIX if the installer said otherwise.
39715
39716 2000-04-05  Jim Meyering  <meyering@lucent.com>
39717
39718         Portability tweaks required for ultrix4.3.
39719         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
39720         (jm_CHECK_DECLS): Add getutent to the list of functions.
39721         (_jm_DECL_HEADERS): Add utmpx.h.
39722         From John David Anglin.
39723
39724         * m4/strftime.m4: Back out the 2000-04-02 change.
39725         Instead of that change, simply undefine putenv in the test program.
39726
39727 2000-04-05  Jim Meyering  <meyering@lucent.com>
39728
39729         Portability tweaks required for ultrix4.3.
39730         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
39731         getutent.
39732         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
39733         * lib/canon-host.c: Declare strdup.
39734         * lib/path-concat.c: Likewise.
39735         From John David Anglin.
39736
39737 2000-04-04  Jim Meyering  <meyering@lucent.com>
39738
39739         Be more DOS 8.3-friendly.
39740         * lib/ref-add.sin: Renamed from ref-add.sed.in.
39741         * lib/ref-del.sin: Renamed from ref-del.sed.in.
39742         * lib/Makefile.am: Reflect renaming.
39743         Reported by Eli Zaretskii.
39744
39745         Use a temporary file name that won't clash with `charset.alias'
39746         in the DOS 8.3 name space.
39747         * lib/Makefile.am (charset_tmp): Define.
39748         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
39749         (uninstall-local): Likewise.
39750         Reported by Eli Zaretskii.
39751
39752 2000-04-03  Jim Meyering  <meyering@lucent.com>
39753
39754         * m4/gettext.m4: Fix typo in comment.
39755
39756         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
39757         textutils/configure.in).  Suggestion from Paul Eggert.
39758         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
39759
39760 2000-04-02  Paul Eggert  <eggert@twinsun.com>
39761
39762         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
39763         variable in the shell rather than using putenv, which isn't
39764         portable.  This avoids the configure-time inter-test dependency
39765         on the potentially-renamed putenv function.
39766
39767 2000-03-30  Paul Eggert  <eggert@twinsun.com>
39768
39769         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
39770         before checking struct stat.st_blksize, so that
39771         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
39772
39773 2000-03-29  Paul Eggert  <eggert@twinsun.com>
39774
39775         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
39776         since strftime.c uses HAVE_STRFTIME to decide whether to use
39777         the underlying strftime.
39778
39779 2000-03-29  Paul Eggert  <eggert@twinsun.com>
39780
39781         * lib/time/strftime.c (my_strftime): Make sure we call the system
39782         strftime, not ourselves, when invoking the underlying strftime.
39783
39784 2000-03-24  Jim Meyering  <meyering@lucent.com>
39785
39786         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
39787         (charset_alias): Define.
39788         (install-exec-local): Factor out common code.
39789         (uninstall-local): Split lines longer than 80.
39790         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
39791         (SUFFIXES): Define.
39792         (.sed.in.sed): New rule.  Don't redirect directly to $@.
39793         (CLEANFILES): Add ref-add.sed and ref-del.sed.
39794
39795 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
39796
39797         * lib/config.charset: Output a line containing "Packages using this
39798         file".
39799         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
39800         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
39801         ref-del.sed): New rules.
39802
39803 2000-03-17  Jim Meyering  <meyering@lucent.com>
39804
39805         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
39806         Otherwise, include <strings.h>
39807
39808 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
39809
39810         * lib/unicodeio.c (utf8_wctomb): New function.
39811         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
39812         format instead of in UCS-4 with platform dependent endianness.
39813
39814 2000-03-10  Jim Meyering  <meyering@lucent.com>
39815
39816         * m4/lib-check.m4: Look for getspnam in -lgen, too.
39817         From Marco Franzen.
39818
39819 2000-03-07  Paul Eggert  <eggert@twinsun.com>
39820
39821         * lib/savedir.c (savedir): Work even if directory size is
39822         negative; this can happen with some screwy NFS configurations.
39823
39824 2000-03-06  Jim Meyering  <meyering@lucent.com>
39825
39826         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
39827         if it's NULL (because we ran out of memory).  From Bruno Haible.
39828
39829 2000-03-05  Jim Meyering  <meyering@lucent.com>
39830
39831         * lib/localcharset.c ("path-concat.h"): Include.
39832         (get_charset_aliases): Use path_concat instead of ANSI string
39833         concatenation.
39834
39835         * lib/unicodeio.h (PARAMS): Define.
39836         Use it to guard prototype.
39837
39838 2000-03-04  Jim Meyering  <meyering@lucent.com>
39839
39840         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
39841         for lib/localcharset.c.
39842
39843 2000-03-04  Jim Meyering  <meyering@lucent.com>
39844
39845         * lib/Makefile.am (install-exec-local): Create $(libdir) before
39846         installing into it.
39847         (uninstall-local): Uncomment this rule so `make distcheck' works
39848         once again.
39849
39850         * lib/unicodeio.c (<errno.h>): Include it.
39851         (errno): Declare if not defined.
39852
39853         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
39854
39855         * lib/config.charset: New version, incorporating remarks from a linux
39856         i18n mailing list.  From Bruno Haible.
39857
39858 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
39859
39860         * m4/codeset.m4: New file.
39861         * m4/iconv.m4: New file.
39862         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
39863
39864 2000-03-03  Jim Meyering  <meyering@lucent.com>
39865
39866         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
39867
39868 2000-03-02  Jim Meyering  <meyering@lucent.com>
39869
39870         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
39871         the messages come out on separate lines.
39872
39873         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
39874         rather than jm_CHECK_DECLARATIONS.
39875         * m4/decl.m4: Remove now-unused file.
39876
39877         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
39878         geteuid.
39879
39880 2000-03-02  Jim Meyering  <meyering@lucent.com>
39881
39882         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
39883
39884 2000-03-01  Jim Meyering  <meyering@lucent.com>
39885
39886         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
39887         * lib/unicodeio.c: Likewise.
39888
39889 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
39890
39891         * lib/config.charset: New file.
39892         * lib/localcharset.c: New file.
39893         * lib/unicodeio.h, lib/unicodeio.c: New files.
39894         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
39895         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
39896         (noinst_HEADERS): Add unicodeio.h.
39897         (all-local, install-exec-local, charset.alias): New targets.
39898
39899 2000-02-28  Paul Eggert  <eggert@twinsun.com>
39900
39901         * lib/quotearg.c (ALERT_CHAR): New macro.
39902         (quotearg_buffer_restyled): Use it.
39903
39904 2000-02-27  Jim Meyering  <meyering@lucent.com>
39905
39906         * m4/check-decl.m4: Add getenv to the list.
39907
39908 2000-02-27  Jim Meyering  <meyering@lucent.com>
39909
39910         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
39911         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
39912
39913         * lib/backupfile.c: Guard inclusion of stdlib.h with
39914         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
39915         Declare malloc if needed.
39916
39917         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
39918         `#ifndef HAVE_DECL..'
39919         now that autoconf always defines the HAVE_DECL_ symbols.
39920         * lib/human.c: Likewise.
39921         * lib/same.c: Likewise.
39922         * lib/strtoumax.c: Likewise.
39923
39924         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
39925         declaration check was not run.
39926         * lib/hash.c: Likewise.
39927         * lib/human.c: Likewise.
39928         * lib/same.c: Likewise.
39929         * lib/strtoumax.c: Likewise.
39930
39931         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
39932         `.', then first look up the entire `.'-containing string as a login
39933         name.
39934
39935 2000-02-23  Jim Meyering  <meyering@lucent.com>
39936
39937         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
39938         in place of my hack.
39939
39940 2000-02-18  Paul Eggert  <eggert@twinsun.com>
39941
39942         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
39943         (textint): New typedef.
39944         (parser_control): Member year changed from int to textint.
39945         All uses changed.
39946         (YYSTYPE): Removed; replaced by %union with int and textint members.
39947         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
39948         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
39949         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
39950         (tSNUMBER, tUNUMBER): Now of type <textintval>.
39951         (date, number, to_year): Use width of number in digits, not its value,
39952         to determine whether it's a 2-digit year, or a 2-digit time.
39953         (yylex): Store number of digits of numeric tokens.
39954         Reported by John Kendall.
39955
39956         (parser_control): Changed from struct parser_control to typedef (for
39957         consistency).  All uses changed.
39958
39959         (tID): Removed; not used.
39960         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
39961
39962 2000-02-14  Paul Eggert  <eggert@twinsun.com>
39963
39964         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
39965         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
39966
39967 2000-02-12  Jim Meyering  <meyering@lucent.com>
39968
39969         * lib/userspec.c (ISDIGIT): Define it.
39970         (isdigit): Remove definition.
39971         (is_number): Use ISDIGIT, not isdigit.
39972         <libintl.h>: Include.
39973         (_ and N_): Define.
39974         (parse_user_spec): Mark translatable strings.
39975
39976 2000-02-10  Jim Meyering  <meyering@lucent.com>
39977
39978         With these changes, nanosleep.[ch] are finally enough like the other
39979         lib/* replacement files to compile on a few more losing systems.
39980
39981         * lib/nanosleep.h: Don't include config.h.
39982         Remove prototype from declaration of nanosleep.
39983         (PARAMS): Remove now-unneeded definition.
39984         * lib/nanosleep.c: #undef nanosleep.
39985         (rpl_nanosleep): Rename from nanosleep.
39986
39987 2000-02-10  Jim Meyering  <meyering@lucent.com>
39988
39989         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
39990         gnu_nanosleep to rpl_nanosleep.
39991
39992 2000-02-09  Jim Meyering  <meyering@lucent.com>
39993
39994         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
39995         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
39996
39997 2000-02-08  Akim Demaille  <akim@epita.fr>
39998
39999         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
40000         `[' and `]' and remove uses of `changequote'.
40001         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
40002         (AC_SYS_LARGEFILE): Likewise.
40003         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
40004         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
40005         of changequote.
40006         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
40007         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
40008         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
40009         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
40010
40011 2000-02-05  Jim Meyering  <meyering@lucent.com>
40012
40013         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
40014         Remove explicit use of AC_HEADER_TIME.  It is required by
40015         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
40016         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
40017         in autoconf whereby the expansion of the latter ended up preceding
40018         the expansion of its prerequisite, AC_HEADER_TIME.
40019         Reported by Volker Borchert.
40020
40021 2000-02-03  Jim Meyering  <meyering@lucent.com>
40022
40023         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
40024
40025 2000-02-03  Jim Meyering  <meyering@lucent.com>
40026
40027         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
40028         rather than with `#if HAVE_UTMPNAME'.
40029
40030 2000-02-02  Jim Meyering  <meyering@lucent.com>
40031
40032         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
40033         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
40034         Reported by Eli Zaretskii.
40035
40036 2000-02-01  Jim Meyering  <meyering@lucent.com>
40037
40038         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
40039
40040 2000-01-31  Jim Meyering  <meyering@lucent.com>
40041
40042         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
40043         functions.  Add the time.h and sys/time.h headers along with the
40044         AC_REQUIRE'ment of AC_HEADER_TIME.
40045
40046 2000-01-31  Jim Meyering  <meyering@lucent.com>
40047
40048         * lib/nanosleep.h (nanosleep): Guard declaration with
40049         `#if ! HAVE_DECL_NANOSLEEP'.
40050         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
40051         the declaration in that vendor's sys/timers.h.
40052         Reported by Christian Krackowizer.
40053
40054         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
40055         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
40056         (ISPRINT): Likewise.
40057         Reported by Tom Tromey.
40058
40059 2000-01-30  Jim Meyering  <meyering@lucent.com>
40060
40061         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
40062
40063         * m4/prereq.m4 (utmp_includes): Define.
40064         Check for ut_user and ut_name members in both struct utmpx
40065         and struct utmp.
40066
40067 2000-01-30  Jim Meyering  <meyering@lucent.com>
40068
40069         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
40070         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
40071         header files where only utmpx.ut_user is declared.
40072
40073         * lib/readutmp.h (UT_USER): Define.
40074
40075 2000-01-29  Jim Meyering  <meyering@lucent.com>
40076
40077         * m4/lib-check.m4: New file containing library-related checks from
40078         fileutils and sh-utils (textutils had none).
40079
40080 2000-01-28  Jim Meyering  <meyering@lucent.com>
40081
40082         * m4/perl.m4: Change format of warning message to look more like that
40083         from the missing script.  Suggestion from François Pinard.
40084
40085 2000-01-25  Jim Meyering  <meyering@lucent.com>
40086
40087         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
40088         well as time.h in the compile check.
40089         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
40090         Fix typo in cross-compiling case: s/yes/no/.
40091
40092 2000-01-23  Jim Meyering  <meyering@lucent.com>
40093
40094         * m4/jm-macros.m4: Move df-related tests here from
40095         fileutils/configure.in
40096
40097         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
40098         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
40099
40100         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
40101         s/space/ac_fsusage_space/.
40102         (jm_FILE_SYSTEM_USAGE): Take two parameters.
40103
40104         * m4/ftruncate.m4: New file (derived from part of
40105         fileutils/configure.in).
40106         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
40107         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
40108
40109         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
40110         AC_SUBST these here, rather than just in sh-util/configure.in, so
40111         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
40112         all the same.
40113         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
40114         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
40115         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
40116         (AC_SUBST(POW_LIBM)): Likewise.
40117         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
40118
40119 2000-01-23  Jim Meyering  <meyering@lucent.com>
40120
40121         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
40122         obstack.c.
40123
40124 2000-01-22  Jim Meyering  <meyering@lucent.com>
40125
40126         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
40127
40128         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
40129
40130         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
40131         configure.in
40132         (AC_CHECK_HEADERS): Likewise for sh-utils.
40133         (AC_CHECK_HEADERS): Likewise for textutils.
40134         Merge the three lists of headers.
40135
40136         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
40137         from fileutils' configure.in.
40138
40139         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
40140         code. Moved tests into their own function (_jm_DECL_HEADERS) in
40141         check-decl.m4.
40142
40143         * m4/check-decl.m4: Use #if rather than #ifdef.
40144         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
40145         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
40146         (_jm_DECL_HEADERS): Define new function.
40147         (jm_CHECK_DECLARATIONS): Require it.
40148
40149 2000-01-22  Jim Meyering  <meyering@lucent.com>
40150
40151         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
40152         [! HAVE_DECL_STRTOULL]: Declare strtoull.
40153         Required for some AIX systems.  Reported by Christian Krackowizer.
40154         [TESTING] (main): New function.
40155
40156         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
40157         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
40158         letters.
40159
40160         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
40161         iswprint.
40162
40163         * lib/strverscmp.c (ISDIGIT): Define.
40164         (strverscmp): Use ISDIGIT, not isdigit.
40165
40166 2000-01-19  Jim Meyering  <meyering@lucent.com>
40167
40168         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
40169         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
40170         defines `struct timespec' in <sys/time.h>
40171
40172         * m4/c-bs-a.m4: Remove uses of changequote altogether.
40173         Thanks to Akim for explaining.
40174
40175 2000-01-17  Paul Eggert  <eggert@twinsun.com>
40176
40177         * lib/nanosleep.c (nanosleep):
40178         Don't use SA_INTERRUPT to decide whether to call sigaction, as
40179         POSIX.1 doesn't require SA_INTERRUPT and some systems
40180         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
40181         it's been part of POSIX.1 since day 1 (in 1988).
40182
40183 2000-01-17  Jim Meyering  <meyering@lucent.com>
40184
40185         * lib/interlock: Remove unused file.  Reported by François Pinard.
40186
40187 2000-01-16  Paul Eggert  <eggert@twinsun.com>
40188
40189         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
40190         alert, backslash, formfeed, and vertical tab unnecessarily in
40191         shell quoting style.
40192
40193 2000-01-16  Jim Meyering  <meyering@lucent.com>
40194
40195         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
40196         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
40197         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
40198         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
40199
40200 2000-01-16  Jim Meyering  <meyering@lucent.com>
40201
40202         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
40203         because the latter didn't work.
40204
40205 2000-01-15  Jim Meyering  <meyering@lucent.com>
40206
40207         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
40208         (AC_REPLACE_FUNCS): Add memcpy and memset.
40209         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
40210         Add strpbrk.
40211         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
40212
40213 2000-01-12  Jim Meyering  <meyering@lucent.com>
40214
40215         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
40216         (jm_PREREQ): Use it.
40217         (jm_PREREQ_READUTMP): New macro.
40218         (jm_PREREQ): Use it.
40219
40220 2000-01-11  Paul Eggert  <eggert@twinsun.com>
40221
40222         Quote multibyte characters correctly.
40223         * m4/c-bs-a.m4: New file.
40224         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
40225         (jm_PREREQ): Use it.
40226
40227 2000-01-11  Paul Eggert  <eggert@twinsun.com>
40228
40229         * m4/uintmax_t.m4: Port to autoconf 2.13.
40230
40231 2000-01-08  Jim Meyering  <meyering@ascend.com>
40232
40233         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
40234         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
40235
40236 2000-01-04  Jim Meyering  <meyering@ascend.com>
40237
40238         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
40239         jm_STRUCT_DIRENT_D_TYPE.
40240         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
40241         jm_STRUCT_DIRENT_D_INO.
40242         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
40243         jm_STRUCT_UTIMBUF.
40244         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
40245         renamings.
40246         * m4/utime.m4: Likewise.
40247
40248         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
40249         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
40250
40251 2000-01-03  Paul Eggert  <eggert@twinsun.com>
40252
40253         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
40254         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
40255
40256 2000-01-02  Jim Meyering  <meyering@ascend.com>
40257
40258         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
40259         remember if this is necessary.
40260
40261 1999-12-26  Jim Meyering  <meyering@ascend.com>
40262
40263         * m4/jm-macros.m4: Use it here.
40264         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
40265
40266 1999-12-23  Jim Meyering  <meyering@ascend.com>
40267
40268         * m4/jm-macros.m4: Check for clock_gettime (moved from
40269         fileutils/configure.in)
40270         Check for gettimeofday.
40271
40272 1999-12-20  Jim Meyering  <meyering@ascend.com>
40273
40274         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
40275         autoconf-2.14a-1999-12-20.
40276
40277 1999-12-19  Jim Meyering  <meyering@ascend.com>
40278
40279         * m4/lstat-slash.m4: New file.
40280         * m4/jm-macros.m4: Use the new macro:
40281         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
40282
40283 1999-12-07  Jim Meyering  <meyering@ascend.com>
40284
40285         * m4/perl.m4: Require that File::Compare be available, too.
40286         Too many systems seem to lack it.
40287
40288         * m4/strftime.m4: Add checks for most of the cpp macros tested in
40289         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
40290
40291 1999-11-18  Paul Eggert  <eggert@twinsun.com>
40292
40293         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
40294         problem with the QNX 4.25 shell, which doesn't propagate exit
40295         status of failed commands inside shell assignments.
40296
40297 1999-11-17  Jim Meyering  <meyering@ascend.com>
40298
40299         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
40300
40301 1999-11-07  Jim Meyering  <meyering@ascend.com>
40302
40303         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
40304
40305 1999-11-06  Jim Meyering  <meyering@ascend.com>
40306
40307         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
40308         * m4/jm-macros.m4 (jm_MACROS): Use it here.
40309
40310 1999-11-05  Jim Meyering  <meyering@ascend.com>
40311
40312         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
40313         configure.in of textutils, fileutils, and sh-utils into this one
40314         (shared between those packages) file.
40315         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
40316         AC_STRUCT_ST_BLKSIZE.
40317
40318 1999-11-03  Jim Meyering  <meyering@ascend.com>
40319
40320         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
40321         of AC_CHECK_TYPE checks includes unistd.h.
40322         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
40323         Suggestion from Akim Demaille.
40324
40325 1999-10-30  Jim Meyering  <meyering@ascend.com>
40326
40327         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
40328         m4-quoted string.
40329         * m4/ls-mntd-fs.m4: Likewise.
40330         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
40331         * m4/jm-winsz1.m4: Likewise.
40332
40333         * m4/const.m4: Remove file, since the fix made it into the experimental
40334         version of autoconf.
40335         * m4/mktime.m4: Likewise.
40336
40337         * m4/check-type.m4: Remove file, now that the latest version of
40338         AC_CHECK_TYPE takes a third arg to specify additional #includes.
40339
40340         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
40341         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
40342         AC_CHECK_TYPE.
40343
40344 1999-10-04  Jim Meyering  <meyering@ascend.com>
40345
40346         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
40347
40348 1999-09-22  Paul Eggert  <eggert@twinsun.com>
40349
40350         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
40351         2.95.1 bug with HP-UX 10.20.
40352
40353 1999-09-17  Jim Meyering  <meyering@ascend.com>
40354
40355         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
40356         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
40357         due to missing strdup (against sh-utils-2.0).
40358
40359 1999-08-29  Jim Meyering  <meyering@ascend.com>
40360
40361         * m4/jm-macros.m4: Require jm_BISON.
40362         * m4/bison.m4: New file.
40363
40364 1999-08-17  Paul Eggert  <eggert@twinsun.com>
40365
40366         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
40367         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
40368
40369 1999-08-05  Jim Meyering  <meyering@ascend.com>
40370
40371         * m4/getline.m4: Rename test file from conftestdata to conftest.data
40372         to avoid conflicts with `conftest' on 8+3 filesystems.
40373         Suggestion from Eli Zaretskii.
40374
40375 1999-08-04  Jim Meyering  <meyering@ascend.com>
40376
40377         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
40378         fileutils and sh-utils (textutils's getline test was inadequate).
40379         (AM_FUNC_GETLINE): Run this test.
40380         (AC_CHECK_FUNCS): Check for getdelim.
40381         Reported by Bob Proulx.
40382
40383 1999-08-02  Jim Meyering  <meyering@ascend.com>
40384
40385         * m4/jm-macros.m4: Add a comment.
40386
40387 1999-08-01  Paul Eggert  <eggert@twinsun.com>
40388
40389         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
40390         <inttypes.h> defines strtoumax as a macro (and not as a
40391         function).
40392
40393 1999-08-01  Paul Eggert  <eggert@twinsun.com>
40394
40395         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
40396         that we can shift, multiply and divide unsigned long long
40397         values; Ultrix cc can't do it.
40398
40399 1999-08-01  Paul Eggert  <eggert@twinsun.com>
40400
40401         * m4/mktime.m4: New file, which is a preview of what should appear
40402         in the next public autoconf release.
40403
40404 1999-08-01  Paul Eggert  <eggert@twinsun.com>
40405
40406         * m4/lfs.m4: Remove this file.
40407         * m4/largefile.m4: New file.  It contains the old contents of
40408         lfs.m4, except that all names with prefix AC_LFS have been
40409         changed to use the prefix AC_SYS_LARGEFILE instead, to be
40410         compatible with future autoconf versions.  Also, some minor m4
40411         quoting problems have been fixed.
40412
40413 1999-08-01  Paul Eggert  <eggert@twinsun.com>
40414
40415         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
40416         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
40417         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
40418         and simplify the shell code.
40419
40420 1999-08-01  Jim Meyering  <meyering@ascend.com>
40421
40422         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
40423         m4.
40424
40425 1999-07-20  Jim Meyering  <meyering@ascend.com>
40426
40427         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
40428
40429 1999-07-15  Jim Meyering  <meyering@ascend.com>
40430
40431         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
40432
40433 1999-05-22  Jim Meyering  <meyering@ascend.com>
40434
40435         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
40436
40437 1999-05-20  Jim Meyering  <meyering@ascend.com>
40438
40439         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
40440         Add a colon after each `then' in case $4 is empty.
40441
40442 1999-05-16  Jim Meyering  <meyering@ascend.com>
40443
40444         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
40445
40446 1999-05-10  Jim Meyering  <meyering@ascend.com>
40447
40448         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
40449
40450         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
40451         AC_FUNC_MKTIME.
40452
40453 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
40454
40455         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
40456
40457 1999-05-04  Paul Eggert  <eggert@twinsun.com>
40458
40459         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
40460         not CPPFLAGS, so that linking works correctly in IRIX.
40461
40462 1999-04-30  Paul Eggert  <eggert@twinsun.com>
40463
40464         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
40465
40466 1999-04-20  Paul Eggert  <eggert@twinsun.com>
40467
40468         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
40469         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
40470         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
40471         jm_AC_TYPE_UNSIGNED_LONG_LONG.
40472         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
40473
40474         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
40475
40476 1999-04-20  Jim Meyering  <meyering@ascend.com>
40477
40478         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
40479         AC_REPLACE xstroull if necessary.  From Paul Eggert.
40480         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
40481
40482 1999-04-18  Jim Meyering  <meyering@ascend.com>
40483
40484         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
40485         * m4/jm-macros.m4: Use it.
40486
40487 1999-04-06  Jim Meyering  <meyering@ascend.com>
40488
40489         * m4/strftime.m4: Remove test for %f.
40490
40491 1999-03-29  Jim Meyering  <meyering@ascend.com>
40492
40493         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
40494         superset of the AC_TYPE_* checks in the textutils, fileutils,
40495         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
40496         AC_TYPE_PID_T.
40497
40498 1999-03-28  Jim Meyering  <meyering@ascend.com>
40499
40500         * m4/jm-macros.m4: Define GNU_PACKAGE here.
40501         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
40502         replaced e.g., in the *.sh files of the sh-utils.
40503
40504 1999-03-20  Jim Meyering  <meyering@ascend.com>
40505
40506         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
40507         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
40508         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
40509
40510 1999-03-19  Jim Meyering  <meyering@ascend.com>
40511
40512         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
40513
40514 1999-03-12  Jim Meyering  <meyering@ascend.com>
40515
40516         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
40517
40518 1999-03-07  Jim Meyering  <meyering@ascend.com>
40519
40520         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
40521         declared.
40522
40523 1999-02-17  Jim Meyering  <meyering@ascend.com>
40524
40525         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
40526         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
40527
40528 1999-02-07  Jim Meyering  <meyering@ascend.com>
40529
40530         * m4/group-member.m4: New file -- extracted from sh-utils'
40531         configure.in.
40532
40533         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
40534         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
40535
40536 1999-02-06  Jim Meyering  <meyering@ascend.com>
40537
40538         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
40539         * m4/fnmatch.m4: Likewise.
40540         * m4/getgroups.m4: Likewise.
40541         * m4/lstat.m4: Likewise.
40542         * m4/malloc.m4: Likewise.
40543         * m4/putenv.m4: Likewise.
40544         * m4/realloc.m4: Likewise.
40545         * m4/regex.m4: Likewise.
40546         * m4/stat.m4: Likewise.
40547         * m4/strftime.m4: Likewise.
40548         Suggestion from Alain Magloire.
40549
40550         * m4/chown.m4: Use `.$ac_objext', not `.o'.
40551         * m4/fnmatch.m4: Likewise.
40552         * m4/getgroups.m4: Likewise.
40553         * m4/getline.m4: Likewise.
40554         * m4/lstat.m4: Likewise.
40555         * m4/malloc.m4: Likewise.
40556         * m4/memcmp.m4: Likewise.
40557         * m4/putenv.m4: Likewise.
40558         * m4/realloc.m4: Likewise.
40559         * m4/regex.m4: Likewise.
40560         * m4/stat.m4: Likewise.
40561         * m4/strftime.m4: Likewise.
40562         Suggestion from Alain Magloire.
40563
40564         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
40565         an argument.
40566
40567         * m4/regex.m4: Add a run-time Test for proper operation of
40568         re_compile_pattern.
40569
40570 1999-01-31  Jim Meyering  <meyering@ascend.com>
40571
40572         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
40573
40574 1999-01-30  Jim Meyering  <meyering@ascend.com>
40575
40576         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
40577
40578         * m4/jm-mktime.m4: Make this a wrapper around the official
40579         AM_FUNC_MKTIME rather than my private copy, now that the official one
40580         is up to date.
40581         * m4/mktime.m4: Remove file.
40582
40583         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
40584         * m4/uptime.m4: Likewise.
40585         * m4/uintmax_t.m4: Likewise.
40586
40587 1999-01-28  Jim Meyering  <meyering@ascend.com>
40588
40589         * m4/jm-macros.m4: Use jm_AFS.
40590         * m4/afs.m4: New file (from fileutils' configure.in).
40591
40592         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
40593         * m4/chown.m4: Likewise.
40594         * m4/d-ino.m4: Likewise.
40595         * m4/d-type.m4: Likewise.
40596         * m4/fnmatch.m4: Likewise.
40597         * m4/getgroups.m4: Likewise.
40598         * m4/gettext.m4: Likewise.
40599         * m4/jm-mktime.m4: Likewise.
40600         * m4/jm-winsz2.m4: Likewise.
40601         * m4/lcmessage.m4: Likewise.
40602         * m4/ls-mntd-fs.m4: Likewise.
40603         * m4/malloc.m4: Likewise.
40604         * m4/memcmp.m4: Likewise.
40605         * m4/putenv.m4: Likewise.
40606         * m4/realloc.m4: Likewise.
40607         * m4/st_mtim.m4: Likewise.
40608         * m4/strftime.m4: Likewise.
40609
40610 1999-01-16  Jim Meyering  <meyering@ascend.com>
40611
40612         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
40613         (ARGMATCH_DIE_DECL): Define.
40614
40615 1999-01-12  Jim Meyering  <meyering@ascend.com>
40616
40617         * m4/Makefile.am.in: Rewrite to avoid using fmt.
40618         Reported by Lars Hecking.
40619
40620 1999-01-10  Jim Meyering  <meyering@ascend.com>
40621
40622         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
40623         gross kludge.
40624         * m4/inttypes_h.m4: Likewise.
40625         * m4/lstat.m4: Likewise.
40626         * m4/malloc.m4: Likewise.
40627         * m4/readdir.m4: Likewise.
40628         * m4/realloc.m4: Likewise.
40629         * m4/st_dm_mode.m4: Likewise.
40630         * m4/stat.m4: Likewise.
40631         * m4/utimbuf.m4: Likewise.
40632         * m4/utimes.m4: Likewise.
40633
40634         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
40635         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
40636         comments in config.h.in are meaningful.
40637
40638         * m4/jm-macros.m4: Require autoconf-2.13 here.
40639
40640         * m4/regex.m4: By default, don't use the included regex.c on systems
40641         with glibc 2.  Suggestion from Uli Drepper.
40642
40643 1999-01-02  Jim Meyering  <meyering@ascend.com>
40644
40645         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
40646
40647 1998-12-18  Jim Meyering  <meyering@ascend.com>
40648
40649         * m4/Makefile.am.in (Makefile.am): Simplify rule.
40650         Based on a suggestion from Lars Hecking.
40651
40652 1998-11-16  Paul Eggert  <eggert@twinsun.com>
40653
40654         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
40655
40656 1998-11-16  Jim Meyering  <meyering@ascend.com>
40657
40658         * m4/lfs.m4: Double-quote the `uname...` expression.
40659
40660 1998-11-14  Jim Meyering  <meyering@ascend.com>
40661
40662         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
40663         * m4/stat.m4: Likewise.
40664
40665 1998-11-03  Jim Meyering  <meyering@ascend.com>
40666
40667         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
40668         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
40669
40670 1998-10-18  Jim Meyering  <meyering@ascend.com>
40671
40672         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
40673
40674 1998-10-17  Jim Meyering  <meyering@ascend.com>
40675
40676         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
40677         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
40678         calls for those previously hard-coded headers.  Instead, take a new
40679         parameter.
40680         (jm_CHECK_DECLARATIONS): Reflect interface change.
40681         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
40682         (jm_CHECK_DECL_LOCALTIME_R): New macro.
40683
40684         * m4/mktime.m4: Test for spring-forward gap before long-running test.
40685
40686 1998-10-14  Jim Meyering  <meyering@ascend.com>
40687
40688         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
40689         instead of "TZ=America/Vancouver".  From Paul Eggert.
40690
40691 1998-10-11  Jim Meyering  <meyering@ascend.com>
40692
40693         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
40694         This adds a test for a recently added compatibility fix for mktime.c.
40695         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
40696
40697 1998-09-27  Jim Meyering  <meyering@ascend.com>
40698
40699         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
40700
40701         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
40702         ../configure.in, including a change from Gordon Matzigkeit to allow
40703         cross-compiling for the Hurd.
40704
40705         * m4/glibc.m4: New file/macro to test for the GNU C Library
40706         versions 1 and 2.  From Gordon Matzigkeit.
40707         Indent.
40708
40709 1998-09-21  Jim Meyering  <meyering@ascend.com>
40710
40711         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
40712
40713 1998-08-18  Paul Eggert  <eggert@twinsun.com>
40714
40715         Port nanosecond-resolution times to UnixWare 2.1.2 and
40716         pedantic Solaris 2.6.
40717
40718         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
40719         AC_STRUCT_ST_MTIM.
40720         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
40721         Generate name of ns member, instead of just 1 or undef.
40722         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
40723
40724 1998-08-15  Jim Meyering  <meyering@ascend.com>
40725
40726         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
40727         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
40728         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
40729         instead of jm_TYPE_SSIZE_T.
40730
40731 1998-08-12  Jim Meyering  <meyering@ascend.com>
40732
40733         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
40734
40735 1998-08-02  Jim Meyering  <meyering@ascend.com>
40736
40737         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
40738         in acconfig.h manually.
40739
40740 1998-07-31  Paul Eggert  <eggert@twinsun.com>
40741
40742         * m4/st_mtim.m4: New file.
40743
40744 1998-07-28  Jim Meyering  <meyering@ascend.com>
40745
40746         * m4/utimes.m4: Undef stat.
40747
40748 1998-07-25  Jim Meyering  <meyering@ascend.com>
40749
40750         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
40751         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
40752
40753 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
40754
40755         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
40756         uid and gid actually remain unchanged.
40757
40758 1998-07-07  Jim Meyering  <meyering@ascend.com>
40759
40760         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
40761
40762 1998-07-04  Jim Meyering  <meyering@ascend.com>
40763
40764         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
40765         to prove that this macro can be used in packages without regex.c.
40766
40767 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
40768
40769         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
40770         is to be used.
40771
40772 1998-07-03  Jim Meyering  <meyering@ascend.com>
40773
40774         * m4/gettext.m4: Add -lintl if it's found to be necessary.
40775
40776         * m4/gettext.m4: New file -- from gettext-0.10.35.
40777         * m4/lcmessage.m4: Likewise.
40778         * m4/progtest.m4: Likewise.
40779
40780         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
40781         * m4/jm-macros.m4: Require the new macro.
40782
40783 1998-06-29  Jim Meyering  <meyering@ascend.com>
40784
40785         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
40786         for the definition of NGROUPS (used in a system header included
40787         by sys/mount.h).
40788
40789 1998-06-28  Jim Meyering  <meyering@ascend.com>
40790
40791         * m4/ls-mntd-fs.m4: New file.
40792         * m4/fstypename.m4: New file.
40793
40794         * m4/jm-macros.m4: Require the new macro.
40795         * m4/jm-glibc-io.m4: New file.
40796
40797 1998-05-19  Jim Meyering  <meyering@ascend.com>
40798
40799         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
40800         * m4/lchown.m4: New file.
40801
40802         * m4/Makefile.am.in: New file.
40803         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
40804
40805 1998-05-14  Jim Meyering  <meyering@ascend.com>
40806
40807         * m4/Makefile.am (EXTRA_DIST): Add them.
40808         * m4/jm-macros.m4: New file.
40809         * m4/utimbuf.m4: New file.
40810
40811 1998-05-12  Jim Meyering  <meyering@ascend.com>
40812
40813         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
40814
40815 1998-05-11  Jim Meyering  <meyering@ascend.com>
40816
40817         * m4/isc-posix.m4: New file.
40818
40819 1998-05-10  Jim Meyering  <meyering@ascend.com>
40820
40821         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
40822
40823 1998-05-09  Jim Meyering  <meyering@ascend.com>
40824
40825         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
40826         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
40827         with automake.
40828
40829         * m4/ssize_t.m4: New file.
40830         * m4/mktime.m4: Remove file -- the new automake has this now.
40831
40832 1998-04-26  Jim Meyering  <meyering@ascend.com>
40833
40834         * m4/assert.m4: New file.
40835         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
40836
40837 1998-04-05  Jim Meyering  <meyering@ascend.com>
40838
40839         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
40840         (jm_PREREQ): Use it here.
40841
40842 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
40843
40844         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
40845         in acconfig.h.
40846
40847 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
40848
40849         * m4/prereq.m4: New file.
40850         * m4/error.m4: New file.
40851         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
40852
40853 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
40854
40855         * m4/getline.m4: Don't set am_cv_func_working_getline before the
40856         cache-check for the same variable -- that defeated the purpose of
40857         the test; the test program was never run.  This was a problem only
40858         on systems with losing getline functions -- HP-UX 10.20 is one.
40859         Reported by Bjorn Helgaas.
40860
40861 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
40862
40863         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
40864
40865 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
40866
40867         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
40868
40869         * m4/const.m4: New file.  Use an initializer in this declaration
40870         typedef int charset[2]; const charset x;
40871         Reported by Bob Glickstein.
40872
40873 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
40874
40875         * m4/chown.m4: Fix reversed types on -1 args to chown.
40876         From Kaveh Ghazi.
40877
40878 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
40879
40880         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
40881         Add lseek and memchr.
40882
40883         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
40884         T.E.Dickey <dickey@clark.net> said that some older preprocessors
40885         have a 20-character limit on names.
40886
40887 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
40888
40889         * m4/inttypes_h.m4: New file.
40890         * m4/uintmax_t.m4: New file.
40891         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
40892
40893
40894         -----
40895
40896         Local Variables:
40897         coding: utf-8
40898         End:
40899
40900         Copyright (C) 1997-2008 Free Software Foundation, Inc.
40901
40902         Copying and distribution of this file, with or without
40903         modification, are permitted provided the copyright notice
40904         and this notice are preserved.