6efdd2dd10669de45bff0907cede2c92910f8083
[gnulib.git] / ChangeLog
1 2008-05-25  Jim Meyering  <meyering@redhat.com>
2
3         useless-if-before-free: efficiency tweak
4         * build-aux/useless-if-before-free: Make the expression-matching
5         regexp "shy".
6
7         update code-in-comment to accept cast of free arg
8         * build-aux/useless-if-before-free: Update regexp.
9
10 2008-05-25  Bruno Haible  <bruno@clisp.org>
11
12         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
13         * modules/copy-file-tests (Files, Makefile.am): Update.
14         * tests/test-copy-file.c (func_test_copy): Update.
15
16 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
17
18         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
19
20 2008-05-23  Bruno Haible  <bruno@clisp.org>
21
22         Improve support for ACLs on OSF/1.
23         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
24         Remove fallback for unknown flavors of ACLs.
25
26 2008-05-22  Bruno Haible  <bruno@clisp.org>
27
28         Add support for ACLs on OSF/1.
29         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
30         replacements.
31         (acl_free_text): New macro fallback.
32         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
33         acl_free.
34         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
35         acl_free_text function. Require AC_C_INLINE.
36
37 2008-05-22  Bruno Haible  <bruno@clisp.org>
38
39         Make copy_acl work on MacOS X 10.5.
40         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
41         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
42         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
43         If MODE_INSIDE_ACL, don't assume that every system has the same text
44         representation for ACLs as FreeBSD.
45         * lib/copy-acl.c (copy_acl): Add support for platforms with
46         !MODE_INSIDE_ACL.
47         * lib/file-has-acl.c (file_has_acl): Likewise.
48         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
49         FreeBSD, MacOS X, or IRIX, respectively.
50
51 2008-05-22  Bruno Haible  <bruno@clisp.org>
52
53         * lib/acl.h: Don't include <sys/acl.h>.
54         (GETACLCNT): Move fallback to lib/acl-internal.h.
55         * lib/acl-internal.h: Include <sys/acl.h> here.
56         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
57
58 2008-05-22  Bruno Haible  <bruno@clisp.org>
59
60         Split off copy_acl function to separate file.
61         * lib/copy-acl.c: New file, extracted from lib/acl.c.
62         * lib/acl.c (copy_acl): Moved function to separate file.
63         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
64         * modules/acl (Files): Add lib/copy-acl.c.
65         (Makefiles.am): Augment lib_SOURCES.
66
67 2008-05-22  Bruno Haible  <bruno@clisp.org>
68
69         * modules/copy-file-tests: New file.
70         * tests/test-copy-file.sh: New file.
71         * tests/test-copy-file.c: New file.
72         * tests/test-copy-file-sameacls.c: New file.
73
74 2008-05-22  Eric Blake  <ebb9@byu.net>
75
76         Avoid gcc warning.
77         * tests/test-memcmp.c (main): Pass NULL indirectly.
78
79 2008-05-21  Bruno Haible  <bruno@clisp.org>
80
81         Add reference doc about ACLs.
82         * doc/acl-resources.txt: New file.
83         * doc/acl-cygwin.txt: New file.
84
85 2008-05-21  Bruno Haible  <bruno@clisp.org>
86
87         Avoid one more warning from gcc.
88         * lib/vasnprintf.c (IF_LINT): Update comments.
89         (VASNPRINTF): Use it also for the 'prefix' array initializer.
90
91 2008-05-21  Jim Meyering  <meyering@redhat.com>
92
93         avoid a warning from gcc
94         * lib/vasnprintf.c (IF_LINT): Define.
95         (scale10_round_decimal_long_double):
96         Use it to avoid a "may be used uninitialized" warning.
97         (scale10_round_decimal_double): Likewise.
98
99 2008-05-21  Simon Josefsson  <simon@josefsson.org>
100
101         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
102         declared.
103
104 2008-05-20  Bruno Haible  <bruno@clisp.org>
105
106         * tests/test-memcmp.c (main): Test also the sign of the result. Test
107         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
108
109 2008-05-20  Simon Josefsson  <simon@josefsson.org>
110
111         * modules/memcmp-tests: New file.
112         * tests/test-memcmp.c: New file.
113
114 2008-05-19  Bruno Haible  <bruno@clisp.org>
115
116         * modules/propername (Notice, configure.ac): Put quoted "..." into
117         --keyword option.
118         * lib/propername.h: Update comments accordingly.
119         Reported by Eric Blake.
120
121 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
122
123         * modules/getpass-gnu (Depends-on): Add fseeko.
124
125 2008-05-19  Simon Josefsson  <simon@josefsson.org>
126
127         * modules/base64-tests: New file.
128
129 2008-05-19  Bo Borgerson <gigabo@gmail.com>
130
131         * lib/base64.c (base64_decode_ctx): If a decode context structure
132         was passed in use it to ignore newlines.  If a context structure
133         was _not_ passed in, continue to treat newlines as garbage (this
134         is the historical behavior).  Formerly base64_decode.
135         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
136         takes a decode context structure.
137         * lib/base64.h (base64_decode): Macro for four-argument calls.
138         (base64_decode_alloc): Likewise.
139         * lib/base64.c (base64_decode_ctx): If a decode context structure
140         was passed in use it to ignore newlines.  If a context structure
141         was _not_ passed in, continue to treat newlines as garbage (this
142         is the historical behavior).  Formerly base64_decode.
143         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
144         takes a decode context structure.
145         * lib/base64.h (base64_decode): Macro for four-argument calls.
146         (base64_decode_alloc): Likewise.
147
148 2008-05-19  Jim Meyering  <meyering@redhat.com>
149
150         avoid a warning from gcc
151         * lib/trim.c (IF_LINT): Define.
152         (trim2): Use it to avoid a "may be used uninitialized" warning.
153
154         Fix doc typo.
155         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
156
157 2008-05-19  Bruno Haible  <bruno@clisp.org>
158
159         * doc/glibc-functions/getpass.texi: Document limits of other
160         implementations.
161
162 2008-05-19  Simon Josefsson  <simon@josefsson.org>
163             Bruno Haible <bruno@clisp.org>
164
165         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
166
167 2008-05-18  Bruno Haible  <bruno@clisp.org>
168
169         * modules/propername: New file, from GNU gettext.
170         * lib/propername.h: New file, from GNU gettext.
171         * lib/propername.c: New file, from GNU gettext.
172         * MODULES.html.sh (Internationalization functions): Add propername.
173
174 2008-05-16  Jim Meyering  <meyering@redhat.com>
175             Bruno Haible  <bruno@clisp.org>
176
177         Avoid some warnings from "gcc -Wshadow".
178         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
179
180 2008-05-15  Eric Blake  <ebb9@byu.net>
181
182         Extend previous patch to cygwin 1.7.0.
183         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
184         fast implementation in cygwin >= 1.7.0.
185         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
186         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
187
188 2008-05-15  Bruno Haible  <bruno@clisp.org>
189
190         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
191         implementation in glibc >= 2.9.
192         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
193         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
194
195 2008-05-15  Bruno Haible  <bruno@clisp.org>
196
197         * MODULES.html.sh (Internationalization functions): Remove linebreak.
198         (Unicode string functions): Add unilbrk/*.
199         Reported by Karl Berry.
200
201 2008-05-15  Eric Blake  <ebb9@byu.net>
202
203         Fix violation of <stdbool.h> replacement in regex.
204         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
205         * lib/regexec.c (re_search_internal): Likewise.
206         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
207
208 2008-05-15  Jim Meyering  <meyering@redhat.com>
209
210         avoid distracting test output when git or cvs is not found
211         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
212         * tests/test-vc-list-files-git.sh: Likewise.
213
214 2008-05-15  Eric Blake  <ebb9@byu.net>
215
216         Glibc finally accepted the memmem speedup code, bugzilla #5514.
217         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
218         glibc version.
219         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
220         * doc/posix-functions/strstr.texi (strstr): Likewise.
221         * lib/str-two-way.h (MAX): Sychronize with glibc.
222
223 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
224
225         * lib/regcomp.c (optimize_utf8): Add a note on why we test
226         opr.ctx_type.
227         (calc_first): Initialize constraint field.
228         (duplicate_node_closure): Use it instead of special casing ANCHORS.
229         Fix grammar.
230         (duplicate_node): Merge constraint field for all node types.
231         (calc_eclosure_iter): Look at constraint field for all node types.
232         * lib/regex_internal.c (create_cd_newstate): Don't look at
233         opr.ctx_type.
234
235 2008-05-14  Bruno Haible  <bruno@clisp.org>
236
237         Help GCC to do better code generation.
238         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
239         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
240         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
241         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
242         Declare with attribute 'malloc' if supported.
243
244 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
245
246         use "echo STR|wc -c" rather than unportable "expr length STR"
247         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
248         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
249
250 2008-05-14  Jim Meyering  <meyering@redhat.com>
251
252         use dd ibs=$n count=1 ... rather than less-portable head -c$n
253         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
254         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
255         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
256         via Collin Lasse.
257
258 2008-05-14  Eric Blake  <ebb9@byu.net>
259
260         Avoid quadratic growth in gl_LIBSOURCES.
261         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
262         Suggested by Bruno Haible.
263
264         Test xmemdup0.
265         * modules/xmemdup0-tests: New file.
266         * tests/test-xmemdup0.c: Likewise.
267
268 2008-05-13  Eric Blake  <ebb9@byu.net>
269
270         Split xmemdup0 into its own module.
271         * modules/xmemdup0: New file.
272         * lib/xmemdup0.h: Likewise.
273         * lib/xmemdup0.c: Likewise.
274         * MODULES.html.sh (Memory management functions): Add xmemdup0.
275         * lib/xalloc.h (xmemdup0): Remove.
276         * lib/xmalloc.c (xmemdup0): Likewise.
277
278 2008-05-13  Eric Blake  <ebb9@byu.net>
279             Bruno Haible  <bruno@clisp.org>
280
281         Reduce number of forks required during autoconf.
282         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
283         and gl_LIBSOURCES_DIR.
284         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
285         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
286         m4_syscmd per file.
287         <m4_foreach_w>: Move...
288         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
289
290 2008-05-13  Eric Blake  <ebb9@byu.net>
291
292         * gnulib-tool: Fix various comment typos.
293
294 2008-05-12  Bruno Haible  <bruno@clisp.org>
295
296         Tailor the linebreaking algorithm.
297         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
298
299 2008-05-12  Bruno Haible  <bruno@clisp.org>
300
301         Update to Unicode 5.0.0.
302         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
303         LBP_JV, LBP_JT. Redistribute values.
304         (unilbrk_table): Change size.
305         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
306         Unicode TR#14 rev. 22.
307         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
308         LBP_JV, LBP_JT. Redistribute values.
309         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
310         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
311         Update.
312         * lib/unilbrk/lbrkprop1.h: Regenerated.
313         * lib/unilbrk/lbrkprop2.h: Regenerated.
314         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
315         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
316         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
317         Likewise.
318         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
319         Likewise.
320         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
321         result.
322         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
323         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
324         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
325         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
326         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
327         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
328
329 2008-05-11  Bruno Haible  <bruno@clisp.org>
330
331         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
332
333 2008-05-11  Bruno Haible  <bruno@clisp.org>
334
335         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
336         * modules/unilbrk/gen-lbrk: New file.
337
338 2008-05-11  Bruno Haible  <bruno@clisp.org>
339
340         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
341         * m4/sha512.m4 (gl_SHA512): Likewise.
342
343 2008-05-11  Jim Meyering  <meyering@redhat.com>
344
345         New modules: crypto/sha256, crypto/sha512 (from coreutils)
346         * modules/crypto/sha256: New file.
347         * modules/crypto/sha512: Likewise.
348         * lib/sha256.c: Likewise.
349         * lib/sha256.h: Likewise.
350         * lib/sha512.c: Likewise.
351         * lib/sha512.h: Likewise.
352         * lib/u64.h: Likewise.
353         * m4/sha256.m4: Likewise.
354         * m4/sha512.m4: Likewise.
355         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
356
357 2008-05-10  Bruno Haible  <bruno@clisp.org>
358
359         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
360         (Input/Output <stdio.h>): Add xprintf.
361         (Signal handling <signal.h>): Add strsignal.
362         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
363         (Core language properties): Add func.
364         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
365         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
366         strings.
367         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
368         (Input/output): New section.
369         (File system functions): Add openat-die, stat-macros.
370         (Networking functions): Add sockets.
371         (Unicode string functions): Add unictype/*.
372         (Support for building libraries and executables): Add gperf.
373         (Support for building documentation): Add agpl-3.0.
374         (Misc): Add nocrash.
375
376 2008-05-10  Bruno Haible  <bruno@clisp.org>
377
378         * modules/unictype/gen-ctype: New file.
379
380 2008-05-10  Jim Meyering  <meyering@redhat.com>
381
382         Make chdir-safer.c more efficient on a system with no symlinks.
383         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
384         also if ELOOP is zero.  Suggested by Bruno Haible.
385
386         Make chdir-safer.c slightly safer.
387         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
388         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
389
390         Avoid compile failure on systems without ELOOP (like mingw).
391         * lib/chdir-safer.c (ELOOP): Define if not already defined.
392         Reported by Bruno Haible.
393
394 2008-05-10  Bruno Haible  <bruno@clisp.org>
395
396         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
397         (is_utf8_encoding): Use a case-insensitive comparison.
398         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
399         streq.
400
401 2008-05-10  Bruno Haible  <bruno@clisp.org>
402
403         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
404         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
405         * lib/unilbrk/ulc-common.h (iconv_string_length,
406         iconv_string_keeping_offsets): Remove declarations.
407         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
408         Don't include <iconv.h>, streq.h, xsize.h.
409         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
410         conversion.
411         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
412         <iconv.h>, streq.h, xsize.h.
413         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
414         conversion.
415         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
416         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
417         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
418         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
419
420 2008-05-10  Bruno Haible  <bruno@clisp.org>
421
422         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
423         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
424
425         * modules/unilbrk/u32-width-linebreaks-tests: New file.
426         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
427
428         * modules/unilbrk/u16-width-linebreaks-tests: New file.
429         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
430
431         * modules/unilbrk/u8-width-linebreaks-tests: New file.
432         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
433
434         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
435         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
436
437         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
438         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
439
440         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
441         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
442
443         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
444         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
445
446 2008-05-10  Bruno Haible  <bruno@clisp.org>
447
448         Split up 'linebreak' module.
449         * lib/unilbrk.h: New file, based on lib/linebreak.h.
450         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
451         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
452         modifications.
453         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
454         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
455         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
456         lib/linebreak.c.
457         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
458         lib/linebreak.c.
459         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
460         lib/linebreak.c.
461         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
462         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
463         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
464         lib/linebreak.c.
465         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
466         lib/linebreak.c.
467         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
468         lib/linebreak.c.
469         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
470         lib/linebreak.c.
471         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
472         lib/linebreak.c.
473         * modules/unilbrk/base: New file.
474         * modules/unilbrk/tables: New file.
475         * modules/unilbrk/u8-possible-linebreaks: New file.
476         * modules/unilbrk/u16-possible-linebreaks: New file.
477         * modules/unilbrk/u32-possible-linebreaks: New file.
478         * modules/unilbrk/ulc-common: New file.
479         * modules/unilbrk/ulc-possible-linebreaks: New file.
480         * modules/unilbrk/u8-width-linebreaks: New file.
481         * modules/unilbrk/u16-width-linebreaks: New file.
482         * modules/unilbrk/u32-width-linebreaks: New file.
483         * modules/unilbrk/ulc-width-linebreaks: New file.
484         * lib/linebreak.h: Remove file.
485         * lib/linebreak.c: Remove file.
486         * m4/linebreak.m4: Remove file.
487         * modules/linebreak: Remove file.
488         * NEWS: Mention the changes.
489
490 2008-05-09  Eric Blake  <ebb9@byu.net>
491
492         Add xmemdup0.
493         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
494         implementation.
495         * lib/xmalloc.c (xmemdup0): New C implementation.
496
497 2008-05-08  Bruno Haible  <bruno@clisp.org>
498
499         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
500
501 2008-05-07  Eric Blake  <ebb9@byu.net>
502
503         Support cross-compilation of <wctype.h>.
504         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
505         AC_CACHE_CHECK.
506
507 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
508
509         * build-aux/vc-list-files: Add support for bzr.
510
511 2008-05-03  Jim Meyering  <meyering@redhat.com>
512
513         avoid failed assertion with tight malloc
514         * tests/test-getndelim2.c: Correct an off-by-one assertion.
515
516 2008-05-03  Simon Josefsson  <simon@josefsson.org>
517
518         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
519         are needed from arpa/inet.h.
520         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
521         Reported by Bruno Haible.
522
523 2008-05-02  Jim Meyering  <meyering@redhat.com>
524
525         avoid compilation error on FreeBSD 6
526         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
527
528 2008-05-01  Jim Meyering  <meyering@redhat.com>
529
530         useless-if-before-free: correct --help's exit status description
531         * build-aux/useless-if-before-free (usage): Like grep, exit 0
532         for one or more matches, etc.  Reported by Bruno Haible.
533
534         vc-list-files: make the stand-alone gnulib test work
535         * modules/vc-list-files-tests (configure.ac):
536         Define and AC_SUBST abs_aux_dir.
537         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
538         $(abs_top_srcdir) to each script and having each of them
539         duplicate the work of setting PATH, set PATH here, using
540         the new variable, abs_aux_dir instead.
541         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
542         * tests/test-vc-list-files-git.sh: Likewise.
543         Reported by Bruno Haible.
544
545 2008-05-01  Bruno Haible  <bruno@clisp.org>
546
547         * lib/getndelim2.c (getndelim2): Fix newsize computation during
548         reallocation. Rename 'done' to 'found_delimiter'.
549
550 2008-05-01  Jim Meyering  <meyering@redhat.com>
551
552         vc-list-files: accommodate /bin/sh like the one from Solaris 10
553         * build-aux/vc-list-files: Use `...`, not $(...).
554
555 2008-04-30  Jim Meyering  <meyering@redhat.com>
556
557         add tests for vc-list-files
558         * modules/vc-list-files-tests: New module.
559         * tests/test-vc-list-files-cvs.sh: New file.
560         * tests/test-vc-list-files-git.sh: New file.
561
562         avoid a warning from gcc
563         * lib/getndelim2.c (IF_LINT): Define.
564         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
565
566         vc-list-files: work properly with build-aux/cvsu, too
567         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
568         to all cvs-based clauses.
569
570         vc-list-files: work properly in the CVS+awk case, too
571         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
572
573         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
574         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
575         take more than one file argument, so .  Add quotes, just in case $dir
576         ever contains a shell meta-character.  Prompted by Soren Hansen in
577         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
578
579 2008-04-29  Eric Blake  <ebb9@byu.net>
580
581         Optimize getndelim2 to use block operations when possible.
582         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
583         freadseek, and memchr2.
584         * lib/getndelim2.c (getndelim2): Use them for block reads.
585
586 2008-04-29  Bruno Haible  <bruno@clisp.org>
587
588         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
589         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
590         * modules/inet_ntop (Depends-on): Add extensions.
591         * modules/inet_pton (Depends-on): Likewise.
592         Reported by Simon Josefsson.
593
594 2008-04-29  Jim Meyering  <meyering@redhat.com>
595
596         When the is more than one match in a block, match all of them.
597         * build-aux/useless-if-before-free: Iterate through each block
598         until there are no more matches.
599
600         Fix broken useless-if-before-free script.
601         * build-aux/useless-if-before-free: Fix typo: missing "?" after
602         the expression to match cast of argument to free-like function.
603
604 2008-04-29  Eric Blake  <ebb9@byu.net>
605
606         Use new header.
607         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
608
609 2008-04-29  Jim Meyering  <meyering@redhat.com>
610
611         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
612         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
613         by gnulib to exist and to declare e.g., inet_ntop.
614         Don't include "inet_ntop.h", now removed.
615
616         * m4/arpa_inet_h.m4: Remove trailing blanks.
617
618 2008-04-29  Eric Blake  <ebb9@byu.net>
619
620         Silence valgrind on safe reads beyond potential array bounds.
621         * lib/rawmemchr.valgrind: New file.
622         * lib/strchrnul.valgrind: Likewise.
623         * modules/rawmemchr (Files): Distribute new file.
624         * modules/strchrnul (Files): Likewise.
625         Suggested by Bruno Haible.
626
627 2008-04-29  Bruno Haible  <bruno@clisp.org>
628
629         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
630         (inet_ntop, inet_pton): Change portability warning's wording.
631         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
632         Invoke gl_CHECK_NEXT_HEADERS.
633         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
634         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
635         set ARPA_INET_H.
636         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
637         * modules/arpa_inet (Description): No longer only for systems that
638         lack it.
639         (Depends-on): Add include_next.
640         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
641         HAVE_ARPA_INET_H.
642
643 2008-04-29  Jim Meyering  <meyering@redhat.com>
644
645         * modules/mkdir (License): Re-license as LGPLv2+.
646
647 2008-04-29  Bruno Haible  <bruno@clisp.org>
648
649         * modules/rawmemchr (Maintainer): Set to Eric.
650         * modules/strchrnul (Maintainer): Likewise.
651
652 2008-04-29  Simon Josefsson  <simon@josefsson.org>
653
654         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
655         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
656
657         * modules/arpa_inet (arpa/inet.h): Use them.
658
659 2008-04-28  Eric Blake  <ebb9@byu.net>
660
661         Test getndelim2.
662         * modules/getndelim2-tests: New file.
663         * tests/test-getndelim2.c: Likewise.
664         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
665         stream.
666         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
667
668         * MODULES.html.sh: Document new module.
669
670 2008-04-20  Bruno Haible  <bruno@clisp.org>
671
672         * lib/c-stack.c (die): Use raise.
673         * modules/c-stack (Depends-on): Add raise.
674
675 2008-04-28  Bruno Haible  <bruno@clisp.org>
676
677         Expect rpmatch to be declared.
678         * lib/yesno.c (rpmatch): Remove declaration.
679
680         Declare rpmatch.
681         * lib/stdlib.in.h (rpmatch): New declaration.
682         * lib/rpmatch.c: Include <stdlib.h> first.
683         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
684         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
685         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
686         HAVE_RPMATCH.
687         * modules/rpmatch (Depends-on): Add stdlib, extensions.
688         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
689         (Include): Set to <stdlib.h>.
690         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
691         HAVE_RPMATCH.
692         * NEWS: Document the change.
693
694 2008-04-28  Bruno Haible  <bruno@clisp.org>
695
696         Change rpmatch to use nl_langinfo when appropriate.
697         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
698         (N_): New macro.
699         (localized_pattern): New function/macro.
700         (try): Remove match, nomatch arguments. Copy the pattern into safe
701         memory before caching it.
702         (rpmatch): Use localized_pattern. Add translator comments.
703         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
704         Suggested by Eric Blake.
705         * modules/rpmatch (Depends-on): Add stdbool.
706
707 2008-04-28  Eric Blake  <ebb9@byu.net>
708
709         Add rawmemchr module, matching glibc.
710         * modules/string (Makefile.am): New indicator.
711         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
712         * lib/string.in.h (rawmemchr): Declare when appropriate.
713         * modules/rawmemchr: New file.
714         * m4/rawmemchr.m4: Likewise.
715         * lib/rawmemchr.c: Likewise.
716         * modules/rawmemchr-tests: Likewise.
717         * tests/test-rawmemchr.c: Likewise.
718         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
719         module.
720         * modules/strchrnul (Depends-on): Add rawmemchr.
721         * lib/strchrnul.c (strchrnul): Optimize a corner case.
722
723         Whitespace cleanup.
724         * tests/test-strchrnul.c: Reindent.
725         * lib/strchrnul.c: Likewise.
726
727         Optimize and test strchrnul.
728         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
729         * modules/strchrnul-tests: New file.
730         * tests/test-strchrnul.c: Likewise.
731
732         Remove intprops dependency.
733         * modules/memchr (Depends-on): Remove intprops.
734         * modules/memrchr (Depends-on): Likewise.
735         * modules/memchr2 (Depends-on): Likewise.
736         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
737         * lib/memrchr.c (__memrchr): Likewise.
738         * lib/memrchr2.c (memchr2): Likewise.
739         Reported by Simon Josefsson.
740
741 2008-04-28  Simon Josefsson  <simon@josefsson.org>
742
743         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
744         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
745
746 2008-04-28  Simon Josefsson  <simon@josefsson.org>
747
748         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
749
750         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
751
752         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
753
754         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
755         declarations.
756         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
757
758         * m4/inet_pton.m4: Don't check for header files.
759
760         * m4/inet_ntop.m4: Don't check for header files.
761
762 2008-04-28  Simon Josefsson  <simon@josefsson.org>
763
764         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
765         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
766         trigger for cygwin).
767         Reported by Bruno Haible  <bruno@clisp.org>.
768
769 2008-04-28  Bruno Haible  <bruno@clisp.org>
770
771         * doc/posix-functions/strdup.texi: Mention mingw problem.
772
773 2008-04-27  Bruno Haible  <bruno@clisp.org>
774
775         * modules/stat-time-tests (Depends-on): Add sleep.
776         * tests/test-stat-time.c (force_unlink): New function.
777         (cleanup): Use it.
778         (test_mtime): Remove the ctime related tests.
779         (test_ctime): New function, containing the ctime related tests.
780         (main): Call test_ctime, except on native Windows platforms.
781
782 2008-04-27  Bruno Haible  <bruno@clisp.org>
783
784         * lib/rpmatch.c (rpmatch): Add some comments.
785         Reported by James Youngman <jay@gnu.org>.
786
787 2008-04-27  Bruno Haible  <bruno@clisp.org>
788
789         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
790         quiet NaNs.
791
792 2008-04-27  Bruno Haible  <bruno@clisp.org>
793
794         Make test-yesno.sh work on mingw.
795         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
796         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
797         (main): Set stdin to binary mode.
798         * modules/yesno-tests (Depends-on): Add binary-io.
799
800 2008-04-27  Bruno Haible  <bruno@clisp.org>
801
802         Fix 'isfinite' on x86, x86_64, ia64 platforms.
803         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
804         argument that lie outside the IEEE 854 domain.
805         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
806         (gl_ISFINITE): Use it.
807         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
808
809 2008-04-27  Bruno Haible  <bruno@clisp.org>
810
811         Allow local renaming in config.h.
812         * lib/memrchr.c (memrchr): Don't undefine outside libc.
813
814 2008-04-27  Bruno Haible  <bruno@clisp.org>
815
816         * lib/memchr.c (__memchr): Change type of 'i'.
817         * lib/memchr2.c (memchr2): Likewise.
818
819 2008-04-26  Eric Blake  <ebb9@byu.net>
820         and Bruno Haible  <bruno@clisp.org>
821
822         Optimize and test memrchr.
823         * modules/memrchr (Depends-on): Add intprops.
824         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
825         * modules/memrchr-tests: New file.
826         * tests/test-memrchr.c: New file.
827
828 2008-04-26  Bruno Haible  <bruno@clisp.org>
829
830         Add tentative support for DragonFly BSD.
831         * lib/stdio-impl.h: Add macros for DragonFly BSD.
832         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
833         fp.
834         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
835         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
836         * lib/fpurge.c (fpurge): Likewise.
837         * lib/freadable.c (freaadable): Likewise.
838         * lib/freadahead.c (freadahead): Likewise.
839         * lib/freading.c (freading): Likewise.
840         * lib/freadptr.c (freadptr): Likewise.
841         * lib/freadseek.c (freadptrinc): Likewise.
842         * lib/fseeko.c (fseeko): Likewise.
843         * lib/fseterr.c (fseterr): Likewise.
844         * lib/fwritable.c (fwritable): Likewise.
845         * lib/fwriting.c (fwriting): Likewise.
846
847 2008-04-26  Bruno Haible  <bruno@clisp.org>
848
849         * lib/stdio-impl.h: New file.
850         * lib/fbufmode.c: Include stdio-impl.h.
851         (fbufmode): Use fp_, remove redundant #defines.
852         * lib/fflush.c: Include stdio-impl.h.
853         (clear_ungetc_buffer): Remove redundant #defines.
854         * lib/fpurge.c: Include stdio-impl.h.
855         (fpurge): Remove redundant #defines.
856         * lib/freadable.c: Include stdio-impl.h.
857         (freadable): Remove redundant #defines.
858         * lib/freadahead.c: Include stdio-impl.h.
859         (freadahead): Remove redundant #defines.
860         * lib/freading.c: Include stdio-impl.h.
861         (freading): Remove redundant #defines.
862         * lib/freadptr.c: Include stdio-impl.h.
863         (freadptr): Remove redundant #defines.
864         * lib/freadseek.c: Include stdio-impl.h.
865         (freadptrinc): Remove redundant #defines.
866         * lib/fseeko.c: Include stdio-impl.h.
867         (rpl_fseeko): Remove redundant #defines.
868         * lib/fseterr.c: Include stdio-impl.h.
869         (fseterr): Remove redundant #defines.
870         * lib/fwritable.c: Include stdio-impl.h.
871         (fwritable: Remove redundant #defines.
872         * lib/fwriting.c: Include stdio-impl.h.
873         (fwriting): Remove redundant #defines.
874         * modules/fbufmode (Files): Add lib/stdio-impl.h.
875         * modules/fflush (Files): Likewise.
876         * modules/fpurge (Files): Likewise.
877         * modules/freadable (Files): Likewise.
878         * modules/freadahead (Files): Likewise.
879         * modules/freading (Files): Likewise.
880         * modules/freadptr (Files): Likewise.
881         * modules/freadseek (Files): Likewise.
882         * modules/fseeko (Files): Likewise.
883         * modules/fseterr (Files): Likewise.
884         * modules/fwritable (Files): Likewise.
885         * modules/fwriting (Files): Likewise.
886
887 2008-04-26  Bruno Haible  <bruno@clisp.org>
888
889         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
890         restore_seek_optimization, update_fpos_cache): New functions, extracted
891         from rpl_fflush.
892         (rpl_fflush): Use them.
893         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
894         (gl_REPLACE_FFLUSH): Use it.
895
896 2008-04-26  Bruno Haible  <bruno@clisp.org>
897
898         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
899         on Solaris.
900         * tests/test-xstrtoimax.sh: Likewise.
901         * tests/test-xstrtoumax.sh: Likewise.
902         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
903
904 2008-04-26  Bruno Haible  <bruno@clisp.org>
905
906         * modules/memchr-tests: New file.
907         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
908
909 2008-04-26  Eric Blake  <ebb9@byu.net>
910             Bruno Haible  <bruno@clisp.org>
911
912         * lib/memchr.c: Include intprops.h.
913         (__memchr): Optimize parallel detection of matching bytes. Rename local
914         variables. Add explanatory comments.
915
916 2008-04-26  Bruno Haible  <bruno@clisp.org>
917
918         Fix module 'memchr', broken since 2000-10-28.
919         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
920
921 2008-04-26  Bruno Haible  <bruno@clisp.org>
922
923         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
924         comments.
925
926 2008-04-25  Eric Blake  <ebb9@byu.net>
927
928         Use native fstatat on cygwin 1.7.0.
929         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
930         first.
931
932 2008-04-23  Eric Blake  <ebb9@byu.net>
933
934         Improve memchr2 performance.
935         * lib/memchr2.c (memchr2): Further optimize parallel detection of
936         NUL bytes.
937         * modules/memchr2 (Depends-on): Use intprops.h.
938
939 2008-04-23  Simon Josefsson  <simon@josefsson.org>
940
941         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
942         an inline function instead of a CPP macro.  Patch by Ben Pfaff
943         <blp@cs.stanford.edu>.
944
945 2008-04-23  Simon Josefsson  <simon@josefsson.org>
946
947         * lib/arpa_inet.in.h: New file.
948
949         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
950         (Makefile.am): Sed in substitute header file.
951
952         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
953         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
954
955         * modules/inet_ntop (configure.ac): Use
956         gl_ARPA_INET_MODULE_INDICATOR.
957
958         * modules/inet_pton (configure.ac): Use
959         gl_ARPA_INET_MODULE_INDICATOR.
960
961 2008-04-22  Jim Meyering  <meyering@redhat.com>
962
963         * modules/verify (License): Re-license as LGPLv2+.
964
965 2008-04-22  Simon Josefsson  <simon@josefsson.org>
966
967         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
968         parameter to void* as per POSIX standard (MinGW uses char*).
969
970 2008-04-21  Bruno Haible  <bruno@clisp.org>
971
972         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
973         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
974         Define to replacements if REPLACE_ISWCNTRL is 1.
975         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
976         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
977         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
978         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
979         what it fixes.
980         * doc/posix-functions/iswalpha.texi: Likewise.
981         * doc/posix-functions/iswblank.texi: Likewise.
982         * doc/posix-functions/iswcntrl.texi: Likewise.
983         * doc/posix-functions/iswdigit.texi: Likewise.
984         * doc/posix-functions/iswgraph.texi: Likewise.
985         * doc/posix-functions/iswlower.texi: Likewise.
986         * doc/posix-functions/iswprint.texi: Likewise.
987         * doc/posix-functions/iswpunct.texi: Likewise.
988         * doc/posix-functions/iswspace.texi: Likewise.
989         * doc/posix-functions/iswupper.texi: Likewise.
990         * doc/posix-functions/iswxdigit.texi: Likewise.
991         Reported by Alain Guibert.
992
993 2008-04-21  Bruno Haible  <bruno@clisp.org>
994
995         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
996         Patch by Alain Guibert.
997
998 2008-04-21  Bruno Haible  <bruno@clisp.org>
999
1000         Fix test failures on mingw.
1001         * tests/test-xstrtol.c (print_no_progname): New function.
1002         (main): Install it in error_print_progname hook.
1003         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
1004         * tests/test-xstrtoimax.sh: Likewise.
1005         * tests/test-xstrtoumax.sh: Likewise.
1006
1007 2008-04-21  Bruno Haible  <bruno@clisp.org>
1008
1009         Fix test failure on mingw.
1010         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
1011
1012 2008-04-21  Bruno Haible  <bruno@clisp.org>
1013
1014         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
1015         Actually assign a value.
1016
1017 2008-04-20  Bruno Haible  <bruno@clisp.org>
1018
1019         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
1020         take 2.
1021         * lib/canonicalize.c (canonicalize_file_name): Elide if the
1022         'canonicalize-lgpl' module is also used.
1023         * lib/canonicalize-lgpl.c: Undo last change.
1024         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
1025
1026 2008-04-20  Bruno Haible  <bruno@clisp.org>
1027
1028         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
1029         config.h. Provide _mkdir based fallback for mingw.
1030         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
1031         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
1032         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
1033         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
1034         rather than defining mkdir in config.h.
1035         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
1036         (gl_SYS_STAT_H_DEFAULTS): New macro.
1037         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
1038         HAVE_IO_H any more.
1039         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
1040         HAVE_DECL_MKDIR and HAVE_IO_H.
1041
1042 2008-04-20  Bruno Haible  <bruno@clisp.org>
1043
1044         * lib/isapipe.c: Port to native Windows platforms.
1045
1046 2008-04-20  Bruno Haible  <bruno@clisp.org>
1047
1048         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
1049
1050 2008-04-21  Eric Blake  <ebb9@byu.net>
1051
1052         Work around preprocessors that don't handle UINTMAX_MAX.
1053         * lib/memchr2.c (memchr2): Avoid embedded #if.
1054         Reported by Alain Guibert, fix suggested by Bruno Haible.
1055
1056 2008-04-21  Simon Josefsson  <simon@josefsson.org>
1057
1058         * doc/posix-functions/strftime.texi (strftime): Explain better
1059         Windows incompatibility.  Suggested by Micah Cowan
1060         <micah@cowan.name>.
1061
1062 2008-04-20  Bruno Haible  <bruno@clisp.org>
1063
1064         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
1065         unistr/u8-mblen.
1066
1067 2008-04-20  Bruno Haible  <bruno@clisp.org>
1068
1069         Fix test failure on platforms with non-GNU iconv.
1070         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
1071         (U_TO_U8): Use it, rather than u16_to_u8.
1072         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
1073         units at the end of the input string.
1074         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
1075
1076 2008-04-20  Bruno Haible  <bruno@clisp.org>
1077
1078         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
1079         when the resulting length is 0.
1080         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
1081
1082 2008-04-20  Bruno Haible  <bruno@clisp.org>
1083
1084         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
1085         works.
1086         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
1087
1088 2008-04-20  Bruno Haible  <bruno@clisp.org>
1089
1090         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
1091         * modules/tsearch-tests (configure.ac): Test for initstate function.
1092
1093 2008-04-20  Bruno Haible  <bruno@clisp.org>
1094
1095         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
1096         for nlink_t if missing.
1097         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
1098
1099 2008-04-19  Bruno Haible  <bruno@clisp.org>
1100
1101         Work around snprintf bug on Linux libc5.
1102         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
1103         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
1104         gl_SNPRINTF_SIZE1.
1105         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1106         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
1107         that test failed.
1108         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
1109         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
1110         * modules/snprintf (Files): Add m4/printf.m4.
1111         * modules/vsnprintf (Files): Likewise.
1112         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
1113         * doc/posix-functions/vsnprintf.texi: Likewise.
1114
1115 2008-04-19  Bruno Haible  <bruno@clisp.org>
1116
1117         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
1118         from 0.0058 to less than 10^-7.
1119
1120 2008-04-19  Bruno Haible  <bruno@clisp.org>
1121
1122         Fix rounding when a precision is given.
1123         * lib/vasnprintf.c (is_borderline): New function.
1124         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
1125         9...9x.
1126         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
1127         %e, %g.
1128         * tests/test-vasprintf-posix.c (test_function): Likewise.
1129         * tests/test-snprintf-posix.h (test_function): Likewise.
1130         * tests/test-sprintf-posix.h (test_function): Likewise.
1131         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
1132         * tests/test-printf-posix.h (test_function): Likewise.
1133         * tests/test-printf-posix.output: Update.
1134         Reported by John Darrington <john@darrington.wattle.id.au> via
1135         Ben Pfaff <blp@cs.stanford.edu>.
1136
1137 2008-04-18  Simon Josefsson  <simon@josefsson.org>
1138
1139         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
1140         Suggested by Bruno Haible <bruno@clisp.org>.
1141
1142 2008-04-17  Bruno Haible  <bruno@clisp.org>
1143
1144         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
1145         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
1146         implementation.
1147         Patch by Bruce Merry <bmerry@gmail.com>.
1148
1149 2008-04-17  Simon Josefsson  <simon@josefsson.org>
1150
1151         * doc/posix-functions/strftime.texi (strftime): Mention that %e
1152         doesn't work under Windows.
1153
1154 2008-04-16  Bruno Haible  <bruno@clisp.org>
1155
1156         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
1157         New macros.
1158         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
1159         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
1160         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
1161         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
1162         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
1163         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
1164         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
1165         macros.
1166         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
1167         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
1168         Northern Sotho, Uighur.
1169
1170 2008-04-16  Bruno Haible  <bruno@clisp.org>
1171
1172         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
1173         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
1174         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
1175         Reported by Daniel Bergström <daniel@octocode.com>.
1176
1177 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
1178             Bruno Haible  <bruno@clisp.org>
1179
1180         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
1181         function.
1182         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
1183         New functions, mostly extracted from gl_locale_name_default.
1184         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
1185
1186 2008-04-16  Eric Blake  <ebb9@byu.net>
1187
1188         Adjust strtod detection to catch glibc 2.7 bug.
1189         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
1190         Reported by John Gatewood Ham.
1191
1192 2008-04-16  Bruno Haible  <bruno@clisp.org>
1193
1194         Add tentative support for Linux libc5.
1195         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
1196         * lib/fpurge.c (fpurge): Likewise.
1197         * lib/freadable.c (freadable): Likewise.
1198         * lib/freadahead.c (freadahead): Likewise.
1199         * lib/freading.c (freading): Likewise.
1200         * lib/freadptr.c (freadptr): Likewise.
1201         * lib/freadseek.c (freadptrinc): Likewise.
1202         * lib/fseeko.c (rpl_fseeko): Likewise.
1203         * lib/fseterr.c (fseterr): Likewise.
1204         * lib/fwritable.c (fwritable): Likewise.
1205         * lib/fwriting.c (fwriting): Likewise.
1206         Reported by Alain Guibert <alguibert+bts@free.fr>.
1207
1208 2008-04-15  Bruno Haible  <bruno@clisp.org>
1209
1210         * modules/mathl (configure.ac): Define module indicator.
1211
1212 2008-04-15  Bruno Haible  <bruno@clisp.org>
1213
1214         * lib/logl.c (logl): Remove unused variables.
1215
1216 2008-04-15  Bruno Haible  <bruno@clisp.org>
1217
1218         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
1219         fails.
1220
1221 2008-04-15  Bruno Haible  <bruno@clisp.org>
1222
1223         * lib/trim.c (trim2): Fix argument of isspace() macro.
1224
1225 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
1226
1227         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
1228         to 0.
1229         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
1230
1231 2008-04-14  Bruno Haible  <bruno@clisp.org>
1232
1233         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
1234         AC_LANG_PROGRAM argument.
1235         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
1236         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
1237         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
1238         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1239         * m4/math_h.m4 (gl_MATH_H): Likewise.
1240         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
1241         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
1242         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
1243         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
1244         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
1245         * m4/regex.m4 (gl_REGEX): Likewise.
1246         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
1247         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
1248         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1249         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
1250         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
1251         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
1252         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1253         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1254
1255 2008-04-14  Jim Meyering  <meyering@redhat.com>
1256
1257         test-strtod: fix typos: s/abs/fabs/
1258         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
1259
1260 2008-04-13  Bruno Haible  <bruno@clisp.org>
1261
1262         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
1263         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
1264         module is also used and while not building the reloc-wrapper.
1265
1266 2008-04-13  Bruno Haible  <bruno@clisp.org>
1267
1268         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
1269
1270 2008-04-13  Bruno Haible  <bruno@clisp.org>
1271
1272         Fix AIX compilation failure introduced on 2008-04-02.
1273         * tests/test-frexp.c (exp): Undefine before redefining.
1274         * tests/test-frexpl.c (exp): Likewise.
1275
1276 2008-04-13  Bruno Haible  <bruno@clisp.org>
1277
1278         Work around a HP-UX stdio bug.
1279         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
1280         * tests/test-ftello.c (main): Likewise.
1281         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
1282         * doc/posix-functions/ftello.texi: Likewise.
1283
1284 2008-04-13  Bruno Haible  <bruno@clisp.org>
1285
1286         Make test-signbit pass on HP-UX/hppa.
1287         * tests/test-signbit.c (minus_zerol): New variable.
1288         (test_signbitl): Use it.
1289
1290 2008-04-13  Bruno Haible  <bruno@clisp.org>
1291
1292         Make truncl work on OSF/1 4.0.
1293         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
1294         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
1295         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
1296         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
1297         HAVE_DECL_TRUNCL.
1298         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
1299         HAVE_DECL_TRUNCL.
1300         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
1301
1302 2008-04-13  Bruno Haible  <bruno@clisp.org>
1303
1304         * lib/unictype.h: Remove trailing comma from enumeration definitions.
1305
1306 2008-04-13  Bruno Haible  <bruno@clisp.org>
1307
1308         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
1309         expression, so as to avoid HP-UX 11 cc compiler bug.
1310
1311 2008-04-13  Bruno Haible  <bruno@clisp.org>
1312
1313         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
1314
1315 2008-04-13  Bruno Haible  <bruno@clisp.org>
1316
1317         * lib/git-merge-changelog.c: Remove empty declaration outside of
1318         functions.
1319
1320 2008-04-13  Bruno Haible  <bruno@clisp.org>
1321
1322         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
1323
1324 2008-04-13  Bruno Haible  <bruno@clisp.org>
1325
1326         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
1327         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
1328         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
1329         also if it exists but lacks definitions of the SHUT_* macros.
1330         * modules/sys_socket (Description): Update.
1331         Reported by Elbert Pol <e.pol@chello.nl>.
1332
1333 2008-04-13  Bruno Haible  <bruno@clisp.org>
1334
1335         * lib/localcharset.c (OS2): Don't redefine if already defined.
1336         Reported by Elbert Pol <e.pol@chello.nl>.
1337
1338 2008-04-13  Bruno Haible  <bruno@clisp.org>
1339
1340         * lib/binary-io.h [__EMX__]: Include <io.h>.
1341         Reported by Elbert Pol <e.pol@chello.nl>.
1342
1343 2008-04-12  Bruno Haible  <bruno@clisp.org>
1344
1345         * lib/fpucw.h: Enable the definitions also for x86_64.
1346         Needed for NetBSD/x86_64.
1347         Reported by Thomas Klausner <tk@giga.or.at>.
1348
1349 2008-04-12  Bruno Haible  <bruno@clisp.org>
1350
1351         * tests/test-strtod.c: Include isnand.h.
1352         (main): Use isnand instead of isnan.
1353         Reported by Jim Meyering.
1354
1355 2008-04-12  Bruno Haible  <bruno@clisp.org>
1356
1357         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
1358         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
1359
1360 2008-04-12  Jim Meyering  <meyering@redhat.com>
1361
1362         * m4/math_h.m4 (gl_MATH_H): Fix typos.
1363
1364 2008-04-12  Bruno Haible  <bruno@clisp.org>
1365
1366         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
1367         Reported by Elbert Pol <e.pol@chello.nl>.
1368
1369 2008-04-12  Eric Blake  <ebb9@byu.net>
1370
1371         Work around Solaris 10 math.h bug.
1372         * m4/math_h.m4 (gl_MATH_H): Check for bug.
1373         (gl_MATH_H_DEFAULTS): Set up default.
1374         * modules/math (Makefile.am): Replace new indicators.
1375         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
1376         * tests/test-math.c (main): Test this.
1377         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
1378         * doc/posix-headers/math.texi (math.h): Mention bug.
1379         Reported by Nelson H. F. Beebe and Jim Meyering.
1380
1381 2008-04-11  Bruno Haible  <bruno@clisp.org>
1382
1383         Adapt to future versions of Apple GCC.
1384         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
1385         Reported by Peter O'Gorman <peter@pogma.com>.
1386
1387 2008-04-11  Bruno Haible  <bruno@clisp.org>
1388
1389         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
1390
1391 2008-04-11  Bruno Haible  <bruno@clisp.org>
1392
1393         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
1394
1395         * modules/getaddrinfo-tests (Makefile.am): Define
1396         test_getaddrinfo_LDADD.
1397
1398 2008-04-11  Bruno Haible  <bruno@clisp.org>
1399
1400         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
1401         (init): Fix syntax error.
1402         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
1403         is declared.
1404
1405 2008-04-11  Bruno Haible  <bruno@clisp.org>
1406
1407         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
1408         * modules/glob (Depends-on): Add stdbool.
1409
1410 2008-04-11  Bruno Haible  <bruno@clisp.org>
1411
1412         * lib/trim.c: Include <string.h>.
1413
1414 2008-04-11  Eric Blake  <ebb9@byu.net>
1415
1416         Avoid compile failure on OS/2.
1417         * lib/regex_internal.h (internal_function): Disable optimization
1418         on OS/2 (__EMX__), where it caused compiler error.
1419         Reported by Elbert Pol.
1420
1421 2008-04-11  Bruno Haible  <bruno@clisp.org>
1422
1423         Flush the standard error stream before aborting. Needed on mingw.
1424         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
1425         * tests/test-array_list.c (ASSERT): Likewise.
1426         * tests/test-array_oset.c (ASSERT): Likewise.
1427         * tests/test-avltree_list.c (ASSERT): Likewise.
1428         * tests/test-avltree_oset.c (ASSERT): Likewise.
1429         * tests/test-avltreehash_list.c (ASSERT): Likewise.
1430         * tests/test-binary-io.c (ASSERT): Likewise.
1431         * tests/test-byteswap.c (ASSERT): Likewise.
1432         * tests/test-c-ctype.c (ASSERT): Likewise.
1433         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
1434         * tests/test-c-strcasestr.c (ASSERT): Likewise.
1435         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
1436         * tests/test-c-strstr.c (ASSERT): Likewise.
1437         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
1438         * tests/test-canonicalize.c (ASSERT): Likewise.
1439         * tests/test-carray_list.c (ASSERT): Likewise.
1440         * tests/test-ceilf1.c (ASSERT): Likewise.
1441         * tests/test-ceilf2.c (ASSERT): Likewise.
1442         * tests/test-ceill.c (ASSERT): Likewise.
1443         * tests/test-count-one-bits.c (ASSERT): Likewise.
1444         * tests/test-fbufmode.c (ASSERT): Likewise.
1445         * tests/test-fflush2.c (ASSERT): Likewise.
1446         * tests/test-floorf1.c (ASSERT): Likewise.
1447         * tests/test-floorf2.c (ASSERT): Likewise.
1448         * tests/test-floorl.c (ASSERT): Likewise.
1449         * tests/test-fopen.c (ASSERT): Likewise.
1450         * tests/test-fpending.c (ASSERT): Likewise.
1451         * tests/test-fprintf-posix.c (ASSERT): Likewise.
1452         * tests/test-fpurge.c (ASSERT): Likewise.
1453         * tests/test-freadable.c (ASSERT): Likewise.
1454         * tests/test-freadahead.c (ASSERT): Likewise.
1455         * tests/test-freading.c (ASSERT): Likewise.
1456         * tests/test-freadptr.c (ASSERT): Likewise.
1457         * tests/test-freadptr2.c (ASSERT): Likewise.
1458         * tests/test-freadseek.c (ASSERT): Likewise.
1459         * tests/test-freopen.c (ASSERT): Likewise.
1460         * tests/test-frexp.c (ASSERT): Likewise.
1461         * tests/test-frexpl.c (ASSERT): Likewise.
1462         * tests/test-fseek.c (ASSERT): Likewise.
1463         * tests/test-fseeko.c (ASSERT): Likewise.
1464         * tests/test-fstrcmp.c (ASSERT): Likewise.
1465         * tests/test-ftell.c (ASSERT): Likewise.
1466         * tests/test-ftello.c (ASSERT): Likewise.
1467         * tests/test-func.c (ASSERT): Likewise.
1468         * tests/test-fwritable.c (ASSERT): Likewise.
1469         * tests/test-fwriting.c (ASSERT): Likewise.
1470         * tests/test-getdelim.c (ASSERT): Likewise.
1471         * tests/test-getline.c (ASSERT): Likewise.
1472         * tests/test-i-ring.c (ASSERT): Likewise.
1473         * tests/test-iconv-utf.c (ASSERT): Likewise.
1474         * tests/test-iconv.c (ASSERT): Likewise.
1475         * tests/test-isfinite.c (ASSERT): Likewise.
1476         * tests/test-isnand.c (ASSERT): Likewise.
1477         * tests/test-isnanf.c (ASSERT): Likewise.
1478         * tests/test-isnanl.h (ASSERT): Likewise.
1479         * tests/test-ldexpl.c (ASSERT): Likewise.
1480         * tests/test-linked_list.c (ASSERT): Likewise.
1481         * tests/test-linkedhash_list.c (ASSERT): Likewise.
1482         * tests/test-localename.c (ASSERT): Likewise.
1483         * tests/test-lseek.c (ASSERT): Likewise.
1484         * tests/test-mbscasecmp.c (ASSERT): Likewise.
1485         * tests/test-mbscasestr1.c (ASSERT): Likewise.
1486         * tests/test-mbscasestr2.c (ASSERT): Likewise.
1487         * tests/test-mbscasestr3.c (ASSERT): Likewise.
1488         * tests/test-mbscasestr4.c (ASSERT): Likewise.
1489         * tests/test-mbschr.c (ASSERT): Likewise.
1490         * tests/test-mbscspn.c (ASSERT): Likewise.
1491         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
1492         * tests/test-mbspbrk.c (ASSERT): Likewise.
1493         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
1494         * tests/test-mbsrchr.c (ASSERT): Likewise.
1495         * tests/test-mbsspn.c (ASSERT): Likewise.
1496         * tests/test-mbsstr1.c (ASSERT): Likewise.
1497         * tests/test-mbsstr2.c (ASSERT): Likewise.
1498         * tests/test-mbsstr3.c (ASSERT): Likewise.
1499         * tests/test-memchr2.c (ASSERT): Likewise.
1500         * tests/test-memmem.c (ASSERT): Likewise.
1501         * tests/test-open.c (ASSERT): Likewise.
1502         * tests/test-printf-frexp.c (ASSERT): Likewise.
1503         * tests/test-printf-frexpl.c (ASSERT): Likewise.
1504         * tests/test-printf-posix.c (ASSERT): Likewise.
1505         * tests/test-quotearg.c (ASSERT): Likewise.
1506         * tests/test-rbtree_list.c (ASSERT): Likewise.
1507         * tests/test-rbtree_oset.c (ASSERT): Likewise.
1508         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
1509         * tests/test-round1.c (ASSERT): Likewise.
1510         * tests/test-roundf1.c (ASSERT): Likewise.
1511         * tests/test-roundl.c (ASSERT): Likewise.
1512         * tests/test-signbit.c (ASSERT): Likewise.
1513         * tests/test-sleep.c (ASSERT): Likewise.
1514         * tests/test-snprintf-posix.c (ASSERT): Likewise.
1515         * tests/test-snprintf.c (ASSERT): Likewise.
1516         * tests/test-sprintf-posix.c (ASSERT): Likewise.
1517         * tests/test-stat-time.c (ASSERT): Likewise.
1518         * tests/test-strcasestr.c (ASSERT): Likewise.
1519         * tests/test-strerror.c (ASSERT): Likewise.
1520         * tests/test-striconv.c (ASSERT): Likewise.
1521         * tests/test-striconveh.c (ASSERT): Likewise.
1522         * tests/test-striconveha.c (ASSERT): Likewise.
1523         * tests/test-strsignal.c (ASSERT): Likewise.
1524         * tests/test-strstr.c (ASSERT): Likewise.
1525         * tests/test-strtod.c (ASSERT): Likewise.
1526         * tests/test-trunc1.c (ASSERT): Likewise.
1527         * tests/test-trunc2.c (ASSERT): Likewise.
1528         * tests/test-truncf1.c (ASSERT): Likewise.
1529         * tests/test-truncf2.c (ASSERT): Likewise.
1530         * tests/test-truncl.c (ASSERT): Likewise.
1531         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
1532         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
1533         * tests/test-vasnprintf.c (ASSERT): Likewise.
1534         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
1535         * tests/test-vasprintf.c (ASSERT): Likewise.
1536         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
1537         * tests/test-vprintf-posix.c (ASSERT): Likewise.
1538         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
1539         * tests/test-vsnprintf.c (ASSERT): Likewise.
1540         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
1541         * tests/test-wcwidth.c (ASSERT): Likewise.
1542         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
1543         * tests/test-xprintf-posix.c (ASSERT): Likewise.
1544         * tests/test-xvasprintf.c (ASSERT): Likewise.
1545         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
1546         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
1547         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
1548         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
1549         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
1550         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
1551         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
1552         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
1553         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
1554         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
1555         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
1556         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
1557         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
1558         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
1559         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
1560         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
1561         * tests/unictype/test-block_list.c (ASSERT): Likewise.
1562         * tests/unictype/test-block_of.c (ASSERT): Likewise.
1563         * tests/unictype/test-block_test.c (ASSERT): Likewise.
1564         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
1565         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
1566         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
1567         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
1568         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
1569         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
1570         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
1571         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
1572         * tests/unictype/test-combining.c (ASSERT): Likewise.
1573         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
1574         * tests/unictype/test-digit.c (ASSERT): Likewise.
1575         * tests/unictype/test-mirror.c (ASSERT): Likewise.
1576         * tests/unictype/test-numeric.c (ASSERT): Likewise.
1577         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
1578         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
1579         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
1580         * tests/unictype/test-scripts.c (ASSERT): Likewise.
1581         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
1582         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
1583         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
1584         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
1585         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
1586         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
1587         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
1588         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
1589         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
1590         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
1591         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
1592         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
1593         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
1594         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
1595         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
1596         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
1597         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
1598         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
1599         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
1600         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
1601         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
1602         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
1603         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
1604         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
1605         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
1606         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
1607         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
1608         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
1609         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
1610         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
1611         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
1612         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
1613         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
1614         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
1615         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
1616         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
1617         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
1618         Reported by Eric Blake.
1619
1620 2008-04-11  Bruno Haible  <bruno@clisp.org>
1621
1622         * lib/wchar.in.h: Tweak comment.
1623
1624 2008-04-11  Bruno Haible  <bruno@clisp.org>
1625
1626         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
1627         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
1628         gl_COMMON.
1629         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
1630
1631 2008-04-11  Bruno Haible  <bruno@clisp.org>
1632
1633         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
1634
1635 2008-04-11  Simon Josefsson  <simon@josefsson.org>
1636
1637         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
1638         of attempting to use non-existing /dev/*random.  Based on patch
1639         from Adam Strzelecki <ono@java.pl> in
1640         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
1641
1642 2008-04-08  Bruno Haible  <bruno@clisp.org>
1643
1644         Add tentative support for emx+gcc.
1645         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
1646         * lib/fpurge.c (fpurge): Likewise.
1647         * lib/freadable.c (freadable): Likewise.
1648         * lib/freadahead.c (freadahead): Likewise.
1649         * lib/freading.c (freading): Likewise.
1650         * lib/freadptr.c (freadptr): Likewise.
1651         * lib/freadseek.c (freadptrinc): Likewise.
1652         * lib/fseeko.c (rpl_fseeko): Likewise.
1653         * lib/fseterr.c (fseterr): Likewise.
1654         * lib/fwritable.c (fwritable): Likewise.
1655         * lib/fwriting.c (fwriting): Likewise.
1656         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
1657
1658 2008-04-09  Eric Blake  <ebb9@byu.net>
1659
1660         Avoid some autoconf warnings.
1661         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
1662         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
1663         * m4/afs.m4 (gl_AFS): Likewise.
1664         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
1665         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
1666         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
1667         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
1668         (gl_INTEGER_TYPE_SUFFIX): Likewise.
1669         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
1670         (AC_CHECK_DECLS_ONCE): Likewise.
1671         Rename file...
1672         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
1673         gnulib-tool requires autoconf 2.59 or better.
1674         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
1675
1676 2008-04-08  Eric Blake  <ebb9@byu.net>
1677
1678         Use 'git describe --match' if present (added in git 1.5.5).
1679         * build-aux/git-version-gen: Limit result to tags that match 'v*'
1680         if possible.
1681
1682 2008-04-08  Bruno Haible  <bruno@clisp.org>
1683
1684         Add tentative support for OpenServer.
1685         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
1686         _ptr, _cnt.
1687         * lib/fpurge.c (fpurge): Likewise.
1688         * lib/freadable.c (freadable): Likewise.
1689         * lib/freadahead.c (freadahead): Likewise.
1690         * lib/freading.c (freading): Likewise.
1691         * lib/freadptr.c (freadptr): Likewise.
1692         * lib/freadseek.c (freadptrinc): Likewise.
1693         * lib/fseeko.c (rpl_fseeko): Likewise.
1694         * lib/fseterr.c (fseterr): Likewise.
1695         * lib/fwritable.c (fwritable): Likewise.
1696         * lib/fwriting.c (fwriting): Likewise.
1697         Reported by Roger Cornelius <rac@tenzing.org> and
1698         Brian K. White <brian@aljex.com>.
1699
1700 2008-04-06  Jim Meyering  <meyering@redhat.com>
1701
1702         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
1703
1704 2008-04-06  Bruno Haible  <bruno@clisp.org>
1705
1706         Avoid possible error with non-ASCII bytes in UTF-8 locales.
1707         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
1708         * tests/test-printf-posix.sh: Likewise.
1709         * tests/test-vfprintf-posix.sh: Likewise.
1710         * tests/test-vprintf-posix.sh: Likewise.
1711         * tests/test-xprintf-posix.sh: Likewise.
1712
1713 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1714
1715         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
1716         hide error from 'ls', needed on OS/2.
1717         Report by Elbert Pol <elbert.pol@gmail.com>.
1718
1719 2008-04-04  Eric Blake  <ebb9@byu.net>
1720
1721         Make test-fseeko.c failures meaningful.
1722         * tests/test-fseeko.c: Print line number on failure.
1723         * tests/test-fseek.c: Likewise.
1724         Reported by Nelson H. F. Beebe.
1725
1726         Improve strtod bug detection check.
1727         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
1728         required for Solaris 10.
1729         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
1730
1731 2008-04-04  Bruno Haible  <bruno@clisp.org>
1732
1733         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
1734         by m4/setenv.m4.
1735
1736 2008-04-03  Eric Blake  <ebb9@byu.net>
1737
1738         Ensure sane .version contents.
1739         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
1740         version string.
1741         * build-aux/git-version-gen: Improve documentation.
1742
1743         Make GNU make output nicer.
1744         * top/GNUmakefile [!_have-Makefile]: Add dependency on
1745         MAKECMDGOALS to enforce message for all command line targets.  Set
1746         srcdir for use in maint.mk.
1747
1748         Another maintainer tweak.
1749         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
1750         a target that regenerates version.
1751
1752 2008-04-03  Jim Meyering  <meyering@redhat.com>
1753
1754         vc-list-files: don't cause coreutils "make po-check" failure
1755         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
1756
1757 2008-04-03  Eric Blake  <ebb9@byu.net>
1758
1759         Allow VPATH usage of vc-list-files.
1760         * build-aux/vc-list-files (scriptversion): Add timestamp.
1761         (options): Add --help, --version, -C.
1762         (CVS): Support installed cvsu.
1763
1764 2008-04-02  Bruno Haible  <bruno@clisp.org>
1765
1766         Avoid some "statement with no effect" warnings from gcc.
1767         * tests/test-wctype.c (main): Explicitly ignore unused values.
1768         Reported by Jim Meyering.
1769
1770 2008-04-02  Jim Meyering  <meyering@redhat.com>
1771
1772         Avoid some warnings from "gcc -Wshadow".
1773         * tests/test-frexp.c (exp): Define to a different identifier.
1774         * tests/test-frexpl.c (exp): Likewise.
1775
1776 2008-04-03  Jim Meyering  <meyering@redhat.com>
1777
1778         bootstrap: remove dangling *.[ch] symlinks from lib
1779         * build-aux/bootstrap [dangling symlink removal]: Move find's
1780         -depth option to precede all others, to avoid a warning.
1781         Remove *.[ch] files too, and from "$source_base" (usually lib/).
1782
1783 2008-04-02  Bruno Haible  <bruno@clisp.org>
1784
1785         Avoid some warnings from "gcc -Wshadow".
1786         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
1787         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
1788         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
1789         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
1790         Reported by Jim Meyering.
1791
1792 2008-04-01  Bruno Haible  <bruno@clisp.org>
1793
1794         Fix test to work on IRIX 6.5 with cc.
1795         * tests/test-math.c (numeric_equal): New function.
1796         (main): Use it.
1797
1798 2008-04-01  Bruno Haible  <bruno@clisp.org>
1799
1800         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
1801
1802 2008-04-01  Bruno Haible  <bruno@clisp.org>
1803
1804         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
1805         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
1806         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
1807         (Depends-on): Remove math.
1808
1809         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
1810         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
1811         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
1812         (Depends-on): Remove math.
1813
1814         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
1815         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
1816         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
1817         (Depends-on): Remove math.
1818         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
1819         (Depends-on): Remove math.
1820
1821         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
1822         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
1823         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
1824         (Depends-on): Remove math.
1825         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
1826         (Depends-on): Remove math.
1827
1828         * tests/test-round1.c: Include nan.h.
1829         (main): Use NaNd instead of NAN.
1830         * modules/round-tests (Files): Add tests/nan.h.
1831
1832         * tests/test-trunc1.c: Include nan.h.
1833         (main): Use NaNd instead of NAN.
1834         * modules/trunc-tests (Files): Add tests/nan.h.
1835
1836         * tests/test-roundf1.c: Include nan.h.
1837         (main): Use NaNf instead of NAN.
1838         * modules/roundf-tests (Files): Add tests/nan.h.
1839
1840         * tests/test-truncf1.c: Include nan.h.
1841         (main): Use NaNf instead of NAN.
1842         * modules/truncf-tests (Files): Add tests/nan.h.
1843
1844         * tests/test-ceilf1.c: Include nan.h.
1845         (main): Use NaNf instead of NAN.
1846         * modules/ceilf-tests (Files): Add tests/nan.h.
1847
1848         * tests/test-floorf1.c: Include nan.h.
1849         (main): Use NaNf instead of NAN.
1850         * modules/floorf-tests (Files): Add tests/nan.h.
1851
1852         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
1853         (main): Use NaNf instead of NAN.
1854         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
1855
1856         * tests/test-isnand.c: Include nan.h instead of <math.h>.
1857         (main): Use NaNd instead of NAN.
1858         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
1859
1860         * tests/test-frexp.c: Include nan.h.
1861         (main): Use NaNd instead of NAN.
1862         * modules/frexp-tests (Files): Add tests/nan.h.
1863
1864         * lib/isnan.c: Don't include <math.h>.
1865         (FUNC): Don't use NAN macro.
1866         * modules/isnand-nolibm (Depends-on): Remove math.
1867         * modules/isnanf-nolibm (Depends-on): Remove math.
1868         * modules/isnanl (Depends-on): Remove math.
1869         * modules/isnanl-nolibm (Depends-on): Remove math.
1870
1871         * tests/nan.h: New file.
1872
1873 2008-04-01  Eric Blake  <ebb9@byu.net>
1874
1875         Fix typos.
1876         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
1877         values to be the right type.
1878
1879         For now, cater to gnulib strtod inaccuracies.
1880         * tests/test-strtod.c (main): Allow 1-ulp error on expected
1881         fractional results.  While not as nice from a QoI perspective, it
1882         is a quicker patch than correctly implementing decimal to binary
1883         rounding.
1884
1885 2008-03-31  Eric Blake  <ebb9@byu.net>
1886
1887         Guarantee a definition of NAN.
1888         * lib/math.in.h (NAN): Define if missing.
1889         * tests/test-math.c (main): Test it.
1890         * doc/posix-headers/math.texi (math.h): Document this.
1891         * lib/isnan.c (rpl_isnand): Use it.
1892         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
1893         * tests/test-floorf1.c (NaN): Likewise.
1894         * tests/test-frexp.c (NaN): Likewise.
1895         * tests/test-isnand.c (NaN): Likewise.
1896         * tests/test-isnanf.c (NaN): Likewise.
1897         * tests/test-round1.c (NaN): Likewise.
1898         * tests/test-roundf1.c (NaN): Likewise.
1899         * tests/test-snprintf-posix.h (NaN): Likewise.
1900         * tests/test-sprintf-posix.h (NaN): Likewise.
1901         * tests/test-trunc1.c (NaN): Likewise.
1902         * tests/test-truncf1.c (NaN): Likewise.
1903         * tests/test-vasnprintf-posix.c (NaN): Likewise.
1904         * tests/test-vasprintf-posix.c (NaN): Likewise.
1905         * modules/isnand-nolibm (Depends-on): Add math.
1906         * modules/isnanf-nolibm (Depends-on): Likewise.
1907         * modules/isnanl (Depends-on): Likewise.
1908         * modules/isnanl-nolibm (Depends-on): Likewise.
1909         * modules/snprintf-posix-tests (Depends-on): Likewise.
1910         * modules/sprintf-posix-tests (Depends-on): Likewise.
1911         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
1912         * modules/vsprintf-posix-tests (Depends-on): Likewise.
1913         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
1914         * modules/vasprintf-posix-tests (Depends-on): Likewise.
1915
1916 2008-03-31  Bruno Haible  <bruno@clisp.org>
1917
1918         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
1919         * doc/posix-functions/strtod.texi: Likewise.
1920
1921 2008-03-31  Bruno Haible  <bruno@clisp.org>
1922
1923         * tests/test-strtod.c (main): Don't use C99 syntax.
1924
1925 2008-03-31  Bruno Haible  <bruno@clisp.org>
1926
1927         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
1928         Reported by Eric Blake.
1929
1930 2008-03-31  Jim Meyering  <meyering@redhat.com>
1931
1932         Don't compare actual signbit return values.
1933         * tests/test-strtod.c (main): Rather, compare only their
1934         zero/non-zero nature.
1935
1936 2008-03-31  Eric Blake  <ebb9@byu.net>
1937
1938         More strtod documentation.
1939         * doc/posix-functions/strtod.texi (strtod): Interpret more test
1940         failures as distinct bugs.
1941
1942 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1943
1944         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
1945         Problem reported by Erik Benada in
1946         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
1947
1948 2008-03-30  Bruno Haible  <bruno@clisp.org>
1949
1950         * tests/test-strtod.c: Add comments about which assertion fails on which
1951         platform.
1952         * doc/posix-functions/strtod.texi: Add info about many more platforms.
1953
1954 2008-03-30  Eric Blake  <ebb9@byu.net>
1955
1956         Test signbit behavior on zeros.
1957         * tests/test-signbit.c (test_signbitf): Add tests for zero.
1958         (test_signbitd, test_signbitl): Likewise.
1959
1960         More strtod touchups.
1961         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
1962         sign of negative underflow, for now.  Use .5, not .1.
1963         * doc/posix-functions/strtod.texi (strtod): Mention these
1964         limitations.
1965         Reported by Jim Meyering.
1966
1967 2008-03-30  Bruno Haible  <bruno@clisp.org>
1968
1969         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
1970         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
1971
1972 2008-03-30  Bruno Haible  <bruno@clisp.org>
1973
1974         Avoid failure when attempting to return empty iconv results on some
1975         platforms.
1976         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
1977         allocation, don't report ENOMEM when the resulting string is empty.
1978
1979 2008-03-30  Bruno Haible  <bruno@clisp.org>
1980
1981         Fix buffer overrun.
1982         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
1983         Don't consider the width for tmp_length. Check count against tmp_length
1984         before doing the padding. Ensure enough allocation during padding.
1985
1986 2008-03-30  Eric Blake  <ebb9@byu.net>
1987
1988         strtod touchups.
1989         * lib/strtod.c (strtod): Avoid compiler warnings.
1990         Reported by Jim Meyering.
1991
1992 2008-03-30  Bruno Haible  <bruno@clisp.org>
1993
1994         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
1995         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
1996         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
1997         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
1998         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
1999         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
2000         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
2001         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
2002
2003         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
2004         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
2005         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
2006         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
2007         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
2008         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
2009         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
2010         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
2011
2012         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
2013         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
2014         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
2015         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
2016         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
2017         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
2018         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
2019         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
2020
2021         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
2022         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
2023
2024         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
2025         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
2026
2027         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
2028         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
2029
2030         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
2031         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
2032         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
2033
2034         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
2035         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
2036         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
2037
2038         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
2039         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
2040         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
2041
2042         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
2043         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
2044         * modules/vasprintf (Depends-on): Add EOVERFLOW.
2045
2046         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
2047         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
2048         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
2049         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
2050         (Depends-on): Add EOVERFLOW.
2051         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
2052         (Depends-on): Add EOVERFLOW.
2053         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
2054         (Depends-on): Add EOVERFLOW.
2055         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
2056         (Depends-on): Add EOVERFLOW.
2057         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
2058         (Depends-on): Add EOVERFLOW.
2059         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
2060         (Depends-on): Add EOVERFLOW.
2061         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
2062         (Depends-on): Add EOVERFLOW.
2063         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
2064         (Depends-on): Add EOVERFLOW.
2065
2066         * lib/sprintf.c (EOVERFLOW): Remove fallback.
2067         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
2068         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
2069
2070         * lib/snprintf.c (EOVERFLOW): Remove fallback.
2071         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
2072         * modules/snprintf (Depends-on): Add EOVERFLOW.
2073
2074         * lib/poll.c (EOVERFLOW): Remove fallback.
2075         * modules/poll (Depends-on): Add EOVERFLOW.
2076
2077         * lib/getugroups.c (EOVERFLOW): Remove fallback.
2078         * modules/getugroups (Depends-on): Add EOVERFLOW.
2079
2080         * lib/getdelim.c (EOVERFLOW): Remove fallback.
2081         * modules/getdelim (Depends-on): Add EOVERFLOW.
2082
2083         * lib/ftell.c (EOVERFLOW): Remove fallback.
2084         * modules/ftell (Depends-on): Add EOVERFLOW.
2085
2086         * lib/fprintf.c (EOVERFLOW): Remove fallback.
2087         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
2088         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
2089
2090         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
2091
2092         * modules/EOVERFLOW-tests: New file.
2093         * tests/test-EOVERFLOW.c: New file.
2094
2095         * modules/EOVERFLOW: New file.
2096         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
2097
2098 2008-03-30  Bruno Haible  <bruno@clisp.org>
2099
2100         Fix bug introduced on 2007-06-10.
2101         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
2102         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
2103
2104 2008-03-30  Bruno Haible  <bruno@clisp.org>
2105
2106         Improve freadseek's efficiency after ungetc.
2107         * lib/freadseek.c: Include freadahead.h.
2108         (freadptrinc): New function, extracted from freadseek.
2109         (freadseek): Use it in a loop. Use freadahead to determine the number
2110         of loop iterations.
2111         * modules/freadseek (Depends-on): Add freadahead.
2112         (configure.ac): Require AC_C_INLINE.
2113
2114 2008-03-30  Bruno Haible  <bruno@clisp.org>
2115
2116         * lib/freadseek.c (freadseek): Don't ignore the return value of
2117         freadptr.
2118
2119 2008-03-29  Eric Blake  <ebb9@byu.net>
2120
2121         Add hex float support.
2122         * modules/strtod (Depends-on): Add c-ctype.
2123         (Link): Mention POW_LIB.
2124         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
2125         whitespace between 'e' and exponent.
2126         * tests/test-strtod.c (main): Enable hex float tests.
2127         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
2128         now provides.
2129
2130         Document various strtod bugs, with some fixes.
2131         * doc/posix-functions/strtod.texi (strtod): Document bugs with
2132         "-0x", "inf", "nan", and hex constants.
2133         * doc/posix-functions/atof.texi (atof): Likewise.
2134         * modules/stdlib (Makefile.am): Support strtod.
2135         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
2136         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
2137         detect additional strtod bugs.
2138         * lib/stdlib.in.h (rpl_strtod): Add declarations.
2139         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
2140         bool where appropriate.  Parse 'inf' and 'nan'.
2141         * tests/test-strtod.c: New file.
2142         * modules/strtod (Depends-on): Add stdbool, stdlib.
2143         (configure.ac): Turn on module indicator.
2144         * modules/strtod-tests: New module.
2145
2146 2008-03-29  Eric Blake  <ebb9@byu.net>
2147
2148         Fix ftell on mingw.
2149         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
2150         * modules/ftell-tests (Depends-on): Add binary-io.
2151         * modules/ftello-tests (Depends-on): Likewise.
2152         * tests/test-ftell.c (main): Enhance test to cover behavior after
2153         ungetc.  Enforce binary mode.
2154         * tests/test-ftello.c (main): Likewise.
2155
2156         Pass test-freadseek on cygwin.
2157         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
2158         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
2159         ungetc buffer.
2160
2161         * tests/test-fflush2.c (main): Fix typo.
2162
2163 2008-03-29  Bruno Haible  <bruno@clisp.org>
2164
2165         * tests/test-fflush2.c (main): Temporarily disable the contents of
2166         this test.
2167         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
2168         Reported by Eric Blake.
2169
2170 2008-03-28  Simon Josefsson  <simon@josefsson.org>
2171
2172         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
2173         (GC_SHA224_DIGEST_SIZE): Add.
2174
2175         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
2176         (gc_hash_digest_length): Likewise.
2177         (gc_hash_buffer): Likewise.
2178
2179 2008-03-25  Bruno Haible  <bruno@clisp.org>
2180
2181         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
2182         detail which gettext release to use.
2183         Reported by Simon Josefsson.
2184
2185 2008-03-26  Jim Meyering  <meyering@redhat.com>
2186
2187         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
2188         * modules/gnumakefile (clean-GNUmakefile): Also, use
2189         test ... && ... || : syntax rather than if-then ... fi.
2190
2191         gnumakefile: Don't double-quote-expand $(VPATH) value.
2192         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
2193
2194 2008-03-24  Eric Blake  <ebb9@byu.net>
2195
2196         Alter GNUmakefile to install into top directory.
2197         * modules/maintainer-makefile: Split, and add dependency...
2198         * modules/gnumakefile: to this new module.
2199         * build-aux/GNUmakefile: Move...
2200         * top/GNUmakefile: ...here.
2201         * build-aux/maint.mk: Move...
2202         * top/maint.mk: ...here.
2203         * MODULES.html.sh (Support for maintaining...): Document new
2204         module.
2205
2206 2008-03-23  Bruno Haible  <bruno@clisp.org>
2207
2208         * gnulib-tool: New options --vc-files, --no-vc-files.
2209         (func_usage): Document them.
2210         (vc_files): New variable.
2211         (func_import): Consider vc_files.
2212         (func_create_testdir): Set vc_files to empty.
2213         Suggested by Jim Meyering and Karl Berry.
2214
2215 2008-03-23  Bruno Haible  <bruno@clisp.org>
2216
2217         Fix regex compilation error on HP-UX 11.
2218         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
2219         * modules/regex (Files): Add m4/mbstate_t.m4.
2220         Reported by Ton Voon <ton.voon@altinity.com>.
2221
2222 2008-03-23  Bruno Haible  <bruno@clisp.org>
2223
2224         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
2225
2226 2008-03-23  Eric Blake  <ebb9@byu.net>
2227             Bruno Haible  <bruno@clisp.org>
2228
2229         Install files from top/ in the destination directory.
2230         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
2231         augmentation also for the files from top/.
2232         (func_import, func_create_testdir): Rewrite file names:
2233         top/filename -> filename.
2234
2235 2008-03-23  Bruno Haible  <bruno@clisp.org>
2236
2237         Tweak "gnulib --version" output.
2238         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
2239
2240 2008-03-23  Bruno Haible  <bruno@clisp.org>
2241
2242         Tweak "gnulib --version" output.
2243         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
2244         rather than contents of ChangeLog, when possible.
2245
2246 2008-03-21  Eric Blake  <ebb9@byu.net>
2247
2248         More --version tweaks.
2249         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
2250         date of last ChangeLog entry.
2251
2252 2008-03-21  Jim Meyering  <meyering@redhat.com>
2253
2254         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
2255
2256 2008-03-20  Eric Blake  <ebb9@byu.net>
2257
2258         VPATH fix.
2259         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
2260
2261 2008-03-20  Simon Josefsson  <simon@josefsson.org>
2262
2263         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
2264         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
2265
2266 2008-03-20  Eric Blake  <ebb9@byu.net>
2267
2268         Sync GNUmakefile with coreutils.
2269         * build-aux/GNUmakefile (have-Makefile): Rename...
2270         (_have-Makefile): ...to this, for namespace consideration.
2271         (GNUmakefile.cfg): Include, if present.
2272         (_autoreconf): Define a default.
2273         (_is-dist-target): New rule for rebuilds to pick up intra-release
2274         version.
2275         (maint-cfg.mk): Rename...
2276         (cfg.mk): ...to this.
2277
2278 2008-03-18  Jim Meyering  <meyering@redhat.com>
2279
2280         New script and module: mktempd
2281         * MODULES.html.sh (maint+release support): Add mktempd.
2282         * build-aux/mktempd: New file.
2283         * modules/mktempd: New file.
2284
2285 2008-03-15  Jim Meyering  <meyering@redhat.com>
2286
2287         Undo last change.
2288         * lib/sha1.c, lib/md5.c: 63 != ~63.
2289         Reported by Andreas Schwab.
2290
2291         sha1.c, md5.c: Hoist a redundant expression.
2292         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
2293         "ctx->buflen" only once, before calling *_process_block.
2294         * lib/md5.c (md5_process_bytes): Likewise.
2295
2296 2008-03-14  Eric Blake  <ebb9@byu.net>
2297
2298         Bump copyright year in files generated by gnulib-tool.
2299         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
2300         gnulib-tool, rather than hard-coding it.
2301
2302         Fix 'gnulib-tool --version' output to work with git.
2303         * gnulib-tool (func_gnulib_dir): New function, extracted from...
2304         (startup): ...here.
2305         (func_version): Use it to invoke git-version-gen, rather than
2306         relying on CVS keyword expansion.  Modernize wording.
2307         (cvsdatestamp, last_checkin_date, version): Kill unused
2308         variables.
2309
2310 2008-03-12  Jim Meyering  <meyering@redhat.com>
2311
2312         Recognize optional cast of the argument to free.
2313         * build-aux/useless-if-before-free: Update regexps.
2314
2315         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
2316
2317 2008-03-11  Bruno Haible  <bruno@clisp.org>
2318
2319         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
2320         by a single package.
2321         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
2322         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
2323         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
2324         Reported by Sam Steingold <sds@gnu.org>.
2325
2326 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
2327
2328         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
2329         repositories.
2330
2331 2008-03-11  Bruno Haible  <bruno@clisp.org>
2332
2333         Avoid conflicts between local macro definitions.
2334         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
2335         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
2336
2337 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
2338             Bruno Haible  <bruno@clisp.org>
2339
2340         Make va_copy work with some version of xlc on AIX 5.1.
2341         * lib/stdarg.in.h: New file.
2342         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
2343         On AIX, use a <stdarg.h> file substitute.
2344         * modules/stdarg (Files): Add lib/stdarg.in.h.
2345         (Depends-on): Add include_next.
2346         (Makefile.am): Build a stdarg.h substitute if requested.
2347         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
2348
2349 2008-03-10  Bruno Haible  <bruno@clisp.org>
2350
2351         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
2352         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
2353         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
2354
2355 2008-03-10  Bruno Haible  <bruno@clisp.org>
2356
2357         * modules/stdlib (Depends-on): Add include_next, remove
2358         absolute-header.
2359
2360 2008-03-09  Bruno Haible  <bruno@clisp.org>
2361
2362         * lib/freadahead.h (freadahead): Document more precisely.
2363         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
2364         the sum of both buffer sizes.
2365         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
2366         * NEWS: Document the change.
2367
2368 2008-03-09  Bruno Haible  <bruno@clisp.org>
2369
2370         Extend freadptr to return also the buffer size.
2371         * lib/freadptr.h (freadptr): Add sizep argument.
2372         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
2373         (freadptr): Add sizep argument. Determine buffer size like freadahead
2374         does.
2375         * tests/test-freadptr.c: Don't include freadahead.h.
2376         (main): Adapt for new calling convention of freadptr.
2377         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
2378         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
2379         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
2380         tests/test-freadptr2.sh.
2381         (Depends): Remove freadahead.
2382         (TESTS): Add test-freadptr2.sh.
2383         (check_PROGRAMS): Add test-freadptr2.
2384
2385 2008-03-09  Bruno Haible  <bruno@clisp.org>
2386
2387         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
2388         Report and solution by Simon Josefsson.
2389
2390 2008-03-06  Bruno Haible  <bruno@clisp.org>
2391
2392         Make fflush after ungetc work on BSD platforms.
2393         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
2394         * tests/test-fflush2.c: New file.
2395         * tests/test-fflush2.sh: New file.
2396         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
2397         tests/test-fflush2.c.
2398         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
2399         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
2400
2401 2008-03-06  Eric Blake  <ebb9@byu.net>
2402
2403         Likewise for ftello.
2404         * modules/ftello (Dependencies): Add extensions.
2405         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
2406
2407 2008-03-06  Bruno Haible  <bruno@clisp.org>
2408
2409         * modules/fseeko (Dependencies): Add extensions.
2410         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
2411         Needed on glibc systems.
2412
2413 2008-03-06  Bruno Haible  <bruno@clisp.org>
2414
2415         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
2416         email address.
2417         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
2418
2419 2008-03-06  Bruno Haible  <bruno@clisp.org>
2420
2421         * users.txt: Add libgnupdf.
2422
2423 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
2424
2425         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
2426         (Header File Substitutes, Function Substitutes,
2427         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
2428         (Build robot for gnulib): Fix typo.
2429
2430 2008-03-06  Bruno Haible  <bruno@clisp.org>
2431
2432         * doc/gnulib-tool.texi (VCS Issues): Small updates.
2433         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
2434
2435 2008-03-06  Bruno Haible  <bruno@clisp.org>
2436
2437         * doc/func.texi: New file, extracted from doc/gnulib.texi.
2438         * doc/gnulib.texi: Include it.
2439
2440 2008-03-06  Simon Josefsson  <simon@josefsson.org>
2441
2442         * modules/func (License): Change license to unlimited; there was
2443         no LGPL parts in the module anyway.
2444
2445 2008-03-06  Simon Josefsson  <simon@josefsson.org>
2446
2447         * modules/__func__: Renamed to modules/func.
2448         * modules/__func__-tests: Renamed to modules/func-tests.
2449         * tests/test-__func__.c: Renamed to tests/test-func.c.
2450         * m4/__func__.m4: Renamed to m4/func.m4.
2451         * doc/gnulib.texi (__func__): Section renamed to func.
2452         Suggested by Eric Blake <ebb9@byu.net>.
2453
2454 2008-03-06  Simon Josefsson  <simon@josefsson.org>
2455
2456         * doc/gnulib.texi (__func__): Use C99 terminology when talking
2457         about __func__.  Make example self-contained.  Suggested by Eric
2458         Blake <ebb9@byu.net>.
2459
2460         * tests/test-__func__.c (main): Avoid extraneous () around __func.
2461         Suggested by Eric Blake <ebb9@byu.net>.
2462
2463 2008-03-06  Simon Josefsson  <simon@josefsson.org>
2464
2465         * modules/__func__: New file.
2466         * modules/__func__-tests: New file.
2467         * tests/test-__func__.c: New file.
2468         * m4/__func__.m4: New file.
2469         * doc/gnulib.texi (__func__): Document __func__ module.
2470
2471 2008-03-05  Simon Josefsson  <simon@josefsson.org>
2472
2473         * modules/byteswap (License): Re-license as LGPLv2+.
2474
2475 2008-03-05  Simon Josefsson  <simon@josefsson.org>
2476
2477         * doc/Makefile: Add pdf target.
2478
2479 2008-03-05  Simon Josefsson  <simon@josefsson.org>
2480
2481         * modules/inline (License): Use 'unlimited', since there are only
2482         *.m4 files in this module.
2483
2484 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
2485             Bruno Haible  <bruno@clisp.org>
2486
2487         Add support for HP C 7.1 on OpenVMS 8.3.
2488         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
2489
2490 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
2491
2492         Update VMS specifics.
2493         * lib/getopt.c [VMS]: Remove include of unixlib.h.
2494
2495 2008-03-02  Jim Meyering  <meyering@redhat.com>
2496
2497         Remove the last dependency on the "free" module.
2498         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
2499         Reported by Bob Proulx.
2500
2501         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
2502
2503         Remove useless "if" tests before free.  Deprecate "free" module.
2504         * doc/posix-functions/free.texi: Mention that this
2505         module is no longer useful.
2506         * modules/free (Notice): Say this module is obsolete.
2507         * modules/readutmp (Depends-on): Remove free.
2508         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
2509         * lib/putenv.c (putenv): Likewise.
2510         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
2511         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
2512         * tests/test-c-strcasestr.c (main): Likewise.
2513         * tests/test-c-strstr.c (main): Likewise.
2514         * tests/test-mbscasestr1.c (main): Likewise.
2515         * tests/test-mbscasestr2.c (main): Likewise.
2516         * tests/test-mbsstr1.c (main): Likewise.
2517         * tests/test-mbsstr2.c (main): Likewise.
2518         * tests/test-memmem.c (main): Likewise.
2519         * tests/test-strcasestr.c (main): Likewise.
2520         * tests/test-striconv.c (main): Likewise.
2521         * tests/test-striconveh.c (main): Likewise.
2522         * tests/test-striconveha.c (main): Likewise.
2523         * tests/test-strstr.c (main): Likewise.
2524
2525         * build-aux/git-version-gen: Adjust a comment and the Usage string.
2526
2527         bootstrap: sync from coreutils again
2528         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
2529
2530 2008-03-01  Jim Meyering  <meyering@redhat.com>
2531
2532         bootstrap: sync from coreutils
2533         * build-aux/bootstrap (update_po_files): Copy a .po file into place
2534         also when the target doesn't exist.
2535
2536 2008-03-01  Eric Blake  <ebb9@byu.net>
2537
2538         Fix bugs in last patch.
2539         * lib/memchr2.c (memchr2): Fix typo.
2540         * tests/test-memchr2.c: Test previous bug, and don't use GNU
2541         extension.
2542         Reported by Bruce Korb.
2543
2544         New module 'memchr2'.
2545         * modules/memchr2: New file.
2546         * modules/memchr2-tests: Likewise.
2547         * lib/memchr2.h: Likewise.
2548         * lib/memchr2.c: Likewise, based on memchr.c.
2549         * tests/test-memchr2.c: New test.
2550         * MODULES.html.sh (String handling): Add memchr2.
2551
2552 2008-02-29  Bruno Haible  <bruno@clisp.org>
2553
2554         * modules/freadseek-tests: New file.
2555         * tests/test-freadseek.sh: New file.
2556         * tests/test-freadseek.c: New file.
2557
2558         New module 'freadseek'.
2559         * modules/freadseek: New file.
2560         * lib/freadseek.h: New file.
2561         * lib/freadseek.c: New file.
2562         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
2563
2564 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
2565
2566         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
2567         wydawca.
2568
2569         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
2570         program_invocation_name and program_invocation_short_name are
2571         present.
2572
2573 2008-02-28  Bruno Haible  <bruno@clisp.org>
2574
2575         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
2576         * tests/test-freadptr.sh: Also test non-seekable stdin.
2577
2578 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
2579
2580         * build-aux/bootstrap (source_base, m4_base)
2581         (doc_base, tests_base): New variables.
2582         (gnulib_tool_options): Do not hardcode base directories, use
2583         the above variables instead.
2584
2585 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
2586
2587         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
2588
2589 2008-02-28  Bruno Haible  <bruno@clisp.org>
2590
2591         * modules/freadptr-tests: New file.
2592         * tests/test-freadptr.sh: New file.
2593         * tests/test-freadptr.c: New file.
2594
2595         New module 'freadptr'.
2596         * modules/freadptr: New file.
2597         * lib/freadptr.h: New file.
2598         * lib/freadptr.c: New file.
2599         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
2600
2601 2008-02-26  Karl Berry  <karl@freefriends.org>
2602
2603         Sync from Libtool:
2604         * libltdl/argz.c (argz_add, argz_count): New functions.
2605         * libltdl/argz.in.h: Declare them.
2606         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
2607
2608 2008-02-22  Bruno Haible  <bruno@clisp.org>
2609
2610         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
2611         is a pointer type.  Needed for HP-UX 10.
2612         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
2613         * doc/posix-functions/gmtime_r.texi: Likewise.
2614         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
2615
2616 2008-02-24  Bruno Haible  <bruno@clisp.org>
2617
2618         * modules/environ-tests: New file.
2619         * tests/test-environ.c: New file.
2620
2621         New module 'environ'.
2622         * modules/environ: New file.
2623         * lib/unistd.in.h (environ): New declaration.
2624         * m4/environ.m4: New file.
2625         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
2626         after use.
2627         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
2628         HAVE_DECL_ENVIRON.
2629         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
2630         HAVE_DECL_ENVIRON.
2631         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
2632         wrong claim that 'environ' is missing on some systems.
2633         * modules/execute (Depends-on): Add environ.
2634         * lib/execute.c (environ): Remove fallback declaration.
2635         * modules/pipe (Depends-on): Add environ.
2636         * lib/pipe.c (environ): Remove fallback declaration.
2637         * modules/setenv (Depends-on): Add environ.
2638         * lib/setenv.c (environ): Remove fallback declaration.
2639         * modules/unsetenv (Depends-on): Add environ.
2640         * lib/unsetenv.c (environ): Remove fallback declaration.
2641         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
2642         m4/environ.m4.
2643         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
2644         (gl_PREREQ_UNSETENV): Likewise.
2645
2646 2008-02-24  Bruno Haible  <bruno@clisp.org>
2647
2648         * doc/posix-functions/environ.texi: Document the MacOS X problem.
2649
2650 2008-02-20  Bob Proulx  <bob@proulx.com>
2651
2652         Enable use of older two part flavor 'git describe'.
2653         * build-aux/git-version-gen: If using the older two part flavor of
2654         git version then recreate the third part now present in the
2655         newer three part flavor of git describe.
2656
2657 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
2658
2659         * lib/fts.c (fts_build): Typo correction to comment.
2660
2661 2008-02-17  Bruno Haible  <bruno@clisp.org>
2662
2663         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
2664         generating no-op conflicts.
2665
2666 2008-02-17  Bruno Haible  <bruno@clisp.org>
2667
2668         Speed up by 10%.
2669         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
2670         result_entries, rather than an index-based loop.
2671
2672 2008-02-17  Bruno Haible  <bruno@clisp.org>
2673
2674         Speed up by 25%.
2675         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
2676         'hashcode_cached'.
2677         (entry_create): New function.
2678         (entry_hashcode): Use the cached hashcode if possible.
2679         (read_changelog_file, try_split_merged_entry): Use entry_create.
2680
2681 2008-02-17  Bruno Haible  <bruno@clisp.org>
2682
2683         Speed up from O(n^2) to O(n) for long ChangeLog files.
2684         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
2685         (read_changelog_file): Change implementation of entries_reversed list
2686         to rbtreehash.
2687         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
2688
2689 2008-02-17  Bruno Haible  <bruno@clisp.org>
2690
2691         New option --split-merged-entry.
2692         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
2693         (find_paragraph_end, try_split_merged_entry): New functions.
2694         (long_options): Add option --split-merged-entry.
2695         (usage): Document option --split-merged-entry.
2696         (main): Implement option --split-merged-entry.
2697         Reported by Eric Blake.
2698
2699 2008-02-17  Bruno Haible  <bruno@clisp.org>
2700
2701         * lib/git-merge-changelog.c: Include c-strstr.h.
2702         (main): Support the "git pull --rebase" situation.
2703         * modules/git-merge-changelog (Depends-on): Add c-strstr.
2704         Reported by Eric Blake.
2705
2706 2008-02-16  Eric Blake  <ebb9@byu.net>
2707
2708         Avoid doubling \ in common case of "c-maybe" quoting style.
2709         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
2710         eliding outer quotes.
2711         * lib/quotearg.h: Document this.
2712         * tests/test-quotearg.c (result_strings, inputs, results_g)
2713         (flag_results, locale_results): Test it by adding a new string to
2714         each test group.
2715         (compare_strings): Test new string.
2716
2717 2008-02-13  Eric Blake  <ebb9@byu.net>
2718
2719         Avoid trigraph quoting in default output.
2720         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
2721         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
2722         unless explicitly requested.
2723         * tests/test-quotearg.c (flag_results, main): Add additional tests.
2724
2725 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
2726
2727         Don't rely on signed integer overflowing to negative value.
2728         * lib/getugroups.c (getugroups): Include <limits.h>.
2729         Instead, compare against INT_MAX, and increment only if the test passes.
2730
2731 2008-02-13  Jim Meyering  <meyering@redhat.com>
2732         and Eric Blake  <ebb9@byu.net>
2733
2734         Avoid shadowing warning and compile errors on Linux.
2735         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
2736         forwarding macros on Linux.
2737         (dcgettext): Define a stub, for Linux.
2738         (results_g, main): Avoid warnings.
2739
2740 2008-02-12  Eric Blake  <ebb9@byu.net>
2741
2742         Silence warning in last patch.
2743         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
2744
2745         Quotearg part 4: add tests, fix c-maybe colon quoting.
2746         * lib/quotearg.h: Improve documentation.
2747         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
2748         escapes when adding outer quotes.  When quoting trigraphs, use
2749         valid C notation.  When quoting NUL, omit extra characters if next
2750         character is not digit.  Alter prototype.
2751         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
2752         callers.
2753         * modules/quotearg-tests: New module.
2754         * tests/test-quotearg.c: New test.
2755
2756 2008-02-07  Eric Blake  <ebb9@byu.net>
2757
2758         Quotearg part 3: add flag to control outer quote elision.
2759         * lib/quotearg.h (c_maybe_quoting_style): New style.
2760         (enum quoting_flags): Better documentation of flags.
2761         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
2762         c-maybe style.
2763         (quotearg_buffer_restyled): Handle new flag to elide outer
2764         quotes.
2765
2766         Quotearg part 2: add flag that can control NUL elision.
2767         * lib/quotearg.h (set_quoting_flags): New prototype.
2768         * lib/quotearg.c (struct quoting_options): Add flag field.
2769         (set_quoting_flags): New function.
2770         (quotearg_buffer_restyled): Add flags parameter.
2771         (quotearg_alloc_mem): Set the flag if length cannot be returned.
2772         (quotearg_n_options): Set the flag, since length cannot be
2773         returned.
2774         (quoting_options_from_style): Default flags correctly.
2775
2776         Quotearg part 1: more wrappers, restore quotearg_char state.
2777         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
2778         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
2779         (quotearg_colon_mem): New wrappers.
2780         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
2781         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
2782         functions.
2783         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
2784         (quotearg_colon_mem): New functions.
2785
2786 2008-02-11  Bruno Haible  <bruno@clisp.org>
2787
2788         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
2789         library in the current directory: it does not work with parallel make.
2790         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2791
2792 2008-02-11  Bruno Haible  <bruno@clisp.org>
2793
2794         * .gitattributes: New file.
2795
2796 2008-02-11  Jim Meyering  <meyering@redhat.com>
2797
2798         useless-if-before-free: Fix reversed exit values.
2799         * build-aux/useless-if-before-free: Use correct values
2800         for EXIT_MATCH and EXIT_NO_MATCH.
2801
2802         * build-aux/useless-if-before-free: Close stdout carefully.
2803
2804 2008-02-10  Bruno Haible  <bruno@clisp.org>
2805
2806         New module 'git-merge-changelog'.
2807         * modules/git-merge-changelog: New file.
2808         * lib/git-merge-changelog.c: New file.
2809
2810 2008-02-10  Jim Meyering  <meyering@redhat.com>
2811
2812         useless-if-before-free: New option: --list (-l).
2813
2814         useless-if-before-free: Don't exit immediately upon open failure.
2815         * build-aux/useless-if-before-free: Exit 2 for errors.
2816         Upon failure to open a file, don't exit immediately.
2817         Rather, just warn and continue with any remaining files.
2818
2819 2008-02-10  Bruno Haible  <bruno@clisp.org>
2820
2821         New abstract list operation 'node_set_value'.
2822         * lib/gl_list.h (gl_list_node_set_value): New function.
2823         (struct gl_list_implementation): New field node_set_value.
2824         * lib/gl_list.c (gl_list_node_set_value): New function.
2825         * lib/gl_array_list.c (gl_array_node_set_value): New function.
2826         (gl_array_list_implementation): Update.
2827         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
2828         (gl_carray_list_implementation): Update.
2829         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
2830         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
2831         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
2832         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
2833         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
2834         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
2835         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
2836         Update.
2837         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
2838         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
2839         (gl_sublist_list_implementation): Update.
2840
2841 2008-02-10  Bruno Haible  <bruno@clisp.org>
2842
2843         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
2844         Needed when ELEMENT is #defined to 'some_type *'.
2845
2846 2008-02-10  Jim Meyering  <meyering@redhat.com>
2847
2848         New script and module: useless-if-before-free
2849         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
2850         * build-aux/useless-if-before-free: New file.
2851         * modules/useless-if-before-free: New file.
2852
2853         * build-aux/gitlog-to-changelog: Use committer date, not author date.
2854
2855         xstrtol_error: Fix typo.
2856         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
2857         s/exit_failure/exit_status/.
2858
2859 2008-02-09  Jim Meyering  <meyering@redhat.com>
2860
2861         New script and module: gitlog-to-changelog
2862         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
2863         * modules/gitlog-to-changelog: New file.
2864         * build-aux/gitlog-to-changelog: New file.
2865
2866 2008-02-08  Jim Meyering  <meyering@redhat.com>
2867
2868         Avoid two "parameter unused" warnings.
2869         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
2870         Mark "st" as used.
2871
2872         Use "git COMMAND", not "git-COMMAND".
2873         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
2874         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
2875         * build-aux/git-version-gen: Use "git status", not "git-status".
2876
2877 2008-02-07  Bruno Haible  <bruno@clisp.org>
2878
2879         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
2880         Avoids a crash on Windows Vista.
2881         Reported by Adam Strzelecki <ono@java.pl> via
2882         Simon Josefsson <simon@josefsson.org>.
2883
2884 2008-02-06  Bruno Haible  <bruno@clisp.org>
2885
2886         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
2887         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
2888         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
2889         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
2890         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
2891         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2892         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
2893         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
2894         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2895         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2896         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2897         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2898         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2899         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2900         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2901         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
2902         left-adjust flag.
2903         * tests/test-snprintf-posix.h (test_function): Likewise.
2904         * tests/test-sprintf-posix.h (test_function): Likewise.
2905         * tests/test-vasprintf-posix.c (test_function): Likewise.
2906         * doc/posix-functions/fprintf.texi: Update.
2907         * doc/posix-functions/printf.texi: Update.
2908         * doc/posix-functions/snprintf.texi: Update.
2909         * doc/posix-functions/sprintf.texi: Update.
2910         * doc/posix-functions/vfprintf.texi: Update.
2911         * doc/posix-functions/vprintf.texi: Update.
2912         * doc/posix-functions/vsnprintf.texi: Update.
2913         * doc/posix-functions/vsprintf.texi: Update.
2914         Reported by Peter Fales <psfales@alcatel-lucent.com>.
2915
2916 2008-02-06  Bruno Haible  <bruno@clisp.org>
2917
2918         Fix bug introduced on 2008-01-26.
2919         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
2920
2921 2008-02-06  Bruno Haible  <bruno@clisp.org>
2922
2923         Fix bug introduced on 2007-06-10.
2924         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
2925         !NEED_PRINTF_FLAG_ZERO.
2926
2927 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
2928
2929         getloadavg: use libperfstat on AIX5
2930         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
2931
2932 2008-02-03  Bruno Haible  <bruno@clisp.org>
2933
2934         * lib/diffseq.h: Add comments about required #includes.
2935         Reported by Michael Biggs <gnulib@doubleplum.net>.
2936
2937 2008-02-01  Bruno Haible  <bruno@clisp.org>
2938
2939         * users.txt: Add gnuit.
2940
2941 2008-01-31  Bruno Haible  <bruno@clisp.org>
2942
2943         * lib/md4.c (set_uint32): Mark as inline.
2944         * lib/md5.c (set_uint32): Likewise.
2945         * lib/sha1.c (set_uint32): Likewise.
2946         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
2947         * m4/md5.m4 (gl_MD5): Likewise.
2948         * m4/sha1.m4 (gl_SHA1): Likewise.
2949
2950 2008-01-31  Jim Meyering  <meyering@redhat.com>
2951
2952         Use "sizeof VAR", rather than a literal "4".
2953         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
2954         * lib/md4.c (md4_read_ctx): Likewise.
2955         * lib/sha1.c (sha1_read_ctx): Likewise.
2956
2957 2008-01-31  Simon Josefsson  <simon@josefsson.org>
2958
2959         * tests/test-sha1.c: New file, based on test-md5.c.
2960
2961         * modules/crypto/sha1-tests: New file.
2962
2963 2008-01-31  Simon Josefsson  <simon@josefsson.org>
2964
2965         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
2966
2967 2008-01-31  Jim Meyering  <meyering@redhat.com>
2968
2969         Prefer "sizeof v" over the equivalent "4".
2970         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
2971         * lib/md5.c (set_uint32): Likewise.
2972         * lib/sha1.c (set_uint32): Likewise.
2973
2974 2008-01-31  Simon Josefsson  <simon@josefsson.org>
2975
2976         * lib/sha1.c (set_uint32): Mark function as static.
2977
2978 2008-01-31  Simon Josefsson  <simon@josefsson.org>
2979
2980         md2: clarify comments to say that alignment is not required.
2981         * lib/md2.h: Remove warning about alignment in comment.
2982         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
2983         never been required.
2984
2985 2008-01-31  Simon Josefsson  <simon@josefsson.org>
2986
2987         md4: adapt alignment constraint fix from sha1.
2988         * lib/md4.c (set_uint32): New function, from sha1.c
2989         (md4_read_ctx): Use it.
2990         (md4_finish_ctx): Doc fix.
2991         * lib/md4.h: Doc fix.
2992
2993 2008-01-31  Simon Josefsson  <simon@josefsson.org>
2994
2995         md5: adapt alignment constraint fix from sha1.
2996         * lib/md5.c (set_uint32): New function, from sha1.c
2997         (md5_read_ctx): Use it.
2998         (md5_finish_ctx): Doc fix.
2999         * lib/md5.h: Doc fix.
3000
3001 2008-01-30  Peter Palfrader  <weasel@debian.org>
3002
3003         sha1: remove the result buffer alignment constraint
3004         * lib/sha1.c (set_uint32): New function.
3005         (sha1_read_ctx): Rewrite to remove the result buffer alignment
3006         constraint.
3007         (sha1_finish_ctx): Remove comment warning about alignment constraint.
3008         * lib/sha1.h: Likewise.
3009
3010 2008-01-30  Andreas Schwab  <schwab@suse.de>
3011             Bruno Haible  <bruno@clisp.org>
3012
3013         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
3014         correct definition of LDBL_MIN_EXP.
3015
3016 2008-01-30  Karl Berry  <karl@gnu.org>
3017
3018         * config/srclist-update: try to preserve x bit on updates.
3019         * config/srclistvars.sh: update for karl.
3020
3021 2008-01-29  Jim Meyering  <meyering@redhat.com>
3022
3023         vasnprintf.c: Avoid warning about unused label
3024         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
3025         "overflow" label definition and associated code with the
3026         same cpp condition that guards the sole use of that label.
3027
3028 2008-01-26  Bruno Haible  <bruno@clisp.org>
3029
3030         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
3031         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
3032         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
3033         * lib/isnanl-nolibm.h (isnanl): Likewise.
3034         Reported by Paul Eggert <eggert@cs.ucla.edu>.
3035
3036 2008-01-26  Bruno Haible  <bruno@clisp.org>
3037
3038         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
3039         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
3040
3041 2008-01-26  Bruno Haible  <bruno@clisp.org>
3042
3043         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
3044         GCC >= 4.0 built-in.
3045         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
3046
3047 2008-01-26  Bruno Haible  <bruno@clisp.org>
3048
3049         Rename isnan, applicable to 'double' only, to isnand.
3050         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
3051         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
3052         (configure.ac): Update.
3053         (Include): Replace "isnan.h" with "isnand.h".
3054         * m4/isnand.m4: Renamed from m4/isnan.m4.
3055         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
3056         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
3057         instead of isnan.c.
3058         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
3059         instead of HAVE_ISNAN_IN_LIBC.
3060         (isnand): Renamed from isnan.
3061         * lib/isnand.c: New file.
3062         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
3063         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
3064         (Makefile.am): Update.
3065         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
3066         Include isnand.h instead of isnan.h.
3067         (main): Test isnand instead of isnan.
3068         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
3069         isnan-nolibm.
3070         * modules/frexp (Depends-on): Likewise.
3071         * modules/frexp-tests (Depends-on): Likewise.
3072         * modules/frexp-nolibm (Depends-on): Likewise.
3073         * modules/frexp-nolibm-tests (Depends-on): Likewise.
3074         * modules/isfinite (Depends-on): Likewise.
3075         * modules/round-tests (Depends-on): Likewise.
3076         * modules/signbit (Depends-on): Likewise.
3077         * modules/signbit-tests (Depends-on): Likewise.
3078         * modules/snprintf-posix (Depends-on): Likewise.
3079         * modules/sprintf-posix (Depends-on): Likewise.
3080         * modules/trunc-tests (Depends-on): Likewise.
3081         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
3082         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3083         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3084         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3085         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3086         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3087         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3088         * modules/vasnprintf-posix (Depends-on): Likewise.
3089         * modules/vasprintf-posix (Depends-on): Likewise.
3090         * modules/vfprintf-posix (Depends-on): Likewise.
3091         * modules/vsnprintf-posix (Depends-on): Likewise.
3092         * modules/vsprintf-posix (Depends-on): Likewise.
3093         * lib/frexp.c: Include isnand.h instead of isnan.h.
3094         (ISNAN): Set to isnand instead of isnan.
3095         * lib/isfinite.c: Include isnand.h instead of isnan.h.
3096         (gl_isfinited): Use isnand instead of isnan.
3097         * lib/signbitd.c: Include isnand.h instead of isnan.h.
3098         (gl_signbitd): Use isnand instead of isnan.
3099         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
3100         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
3101         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
3102         (main): Use isnand instead of isnan.
3103         * tests/test-round1.c: Include isnand.h.
3104         (main): Use isnand instead of isnan.
3105         * tests/test-round2.c: Include isnand.h instead of isnan.h.
3106         (ISNAN): Set to isnand instead of isnan.
3107         * tests/test-trunc1.c: Include isnand.h.
3108         (main): Use isnand instead of isnan.
3109         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
3110         (equal): Use isnand instead of isnan.
3111         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
3112         isnand-nolibm.
3113         * NEWS: Mention the change.
3114
3115 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
3116             Bruno Haible  <bruno@clisp.org>
3117
3118         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
3119         the GCC builtins for signbits are present and set
3120         REPLACE_SIGNBIT_USING_GCC if so.
3121         * lib/math.in.h (signbit): Define using GCC builtins if
3122         REPLACE_SIGNBIT_USING_GCC is set.
3123         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
3124         REPLACE_SIGNBIT_USING_GCC.
3125         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
3126
3127 2008-01-25  Jim Meyering  <meyering@redhat.com>
3128
3129         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
3130         * lib/poll.c: Include <config.h>, not "config.h".
3131         * tests/test-getaddrinfo.c: Likewise.
3132
3133 2008-01-25  Simon Josefsson  <simon@josefsson.org>
3134
3135         * modules/sockets-tests: New file.
3136
3137 2008-01-24  Simon Josefsson  <simon@josefsson.org>
3138
3139         * modules/sockets: New module, can be used to call WSA_Startup and
3140         WSA_Cleanup when needed.
3141
3142         * lib/sockets.h, lib/sockets.c: New files.
3143
3144         * m4/sockets.m4: New file.
3145
3146         * tests/test-sockets.c: New file.
3147
3148 2008-01-19  Bruno Haible  <bruno@clisp.org>
3149
3150         * doc/posix-headers: Renamed from doc/headers.
3151         * doc/posix-functions: Renamed from doc/functions.
3152         * doc/gnulib.texi: Update.
3153
3154 2008-01-19  Bruno Haible  <bruno@clisp.org>
3155
3156         * doc/glibc-functions/strcasestr.texi: Include contents of
3157         doc/functions/strcasestr.texi, fixing the list of platforms.
3158         * doc/functions/strcasestr.texi: Remove file.
3159
3160 2008-01-19  Bruno Haible  <bruno@clisp.org>
3161
3162         * doc/glibc-functions/memmem.texi: Include contents of
3163         doc/functions/memmem.texi.
3164         * doc/functions/memmem.texi: Remove file.
3165
3166 2008-01-18  Bruno Haible  <bruno@clisp.org>
3167
3168         * doc/glibc-functions/*.texi: New files.
3169         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
3170         to use the new files.
3171
3172 2008-01-17  Bruno Haible  <bruno@clisp.org>
3173
3174         * tests/test-gethostname.c (main): Fix printf statement.
3175
3176 2008-01-17  Simon Josefsson  <simon@josefsson.org>
3177
3178         * modules/gethostname-tests: New file.
3179
3180         * tests/test-gethostname.c: New file.
3181
3182 2008-01-17  Simon Josefsson  <simon@josefsson.org>
3183
3184         * lib/gethostname.c: Include string.h unconditionally, strncpy is
3185         used by the UNAME case.  Reported by Bruno Haible
3186         <bruno@clisp.org>.
3187
3188 2008-01-17  Eric Blake  <ebb9@byu.net>
3189
3190         Convert c-strcasestr to be more efficient.
3191         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
3192         (Depends-on): Add c-strcase, remove malloca, strnlen.
3193         * tests/test-c-strcasestr.c (main): Enhance test.
3194         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
3195
3196 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
3197
3198         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
3199         Use it in creating po/Makevars.
3200
3201 2008-01-15  Simon Josefsson  <simon@josefsson.org>
3202
3203         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
3204         Applications that requires it should initialize libgcrypt
3205         manually.
3206
3207 2008-01-16  Simon Josefsson  <simon@josefsson.org>
3208
3209         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
3210
3211 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
3212
3213         Fix problem with getdate on mingw32 reported by Simon Josefsson
3214         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
3215         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
3216         tzname", when deciding whether to declare tzname.
3217         * lib/strftime.c (tzname): Likewise.
3218
3219 2008-01-15  Bruno Haible  <bruno@clisp.org>
3220
3221         Work around a MacOS X 10.5 bug in frexpl().
3222         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
3223         * doc/functions/frexpl.texi: Document the bug.
3224         Reported by Elias Pipping <pipping@gentoo.org>.
3225
3226 2008-01-14  Eric Blake  <ebb9@byu.net>
3227
3228         Touch up previous patch.
3229         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
3230         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
3231
3232         Convert strcasestr module to use Two-Way algorithm.
3233         * modules/strcasestr-simple: New module, based on the old
3234         strcasestr, but with Two-Way rather than KMP.
3235         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
3236         * lib/string.in.h (rpl_strcasestr): Declare.
3237         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
3238         performance.
3239         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
3240         * modules/string (Makefile.am): Support strcasestr.
3241         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
3242         * modules/strcasestr-tests (Depends-on): Check for alarm.
3243         * tests/test-strcasestr.c: Augment test.
3244         * lib/str-two-way.h: Clean up stray macro.
3245         * NEWS: Document new module.
3246         * MODULES.html.sh (string handling): Likewise.
3247         * doc/functions/strcasestr.texi: New file.
3248         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
3249         here, since it is not a POSIX function.
3250
3251 2008-01-14  Colin Watson  <cjwatson@debian.org>
3252             Bruno Haible  <bruno@clisp.org>
3253
3254         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
3255         works fine; if not, set REPLACE_STRSIGNAL.
3256         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
3257         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3258         REPLACE_STRSIGNAL.
3259         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
3260         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
3261         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
3262
3263 2008-01-14  Bruno Haible  <bruno@clisp.org>
3264
3265         * modules/strsignal (Include): Change to <string.h>.
3266
3267 2008-01-14  Colin Watson  <cjwatson@debian.org>
3268
3269         * modules/argp (Notice): Add a notice recommending to change
3270         XGETTEXT_OPTIONS.
3271         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
3272
3273 2008-01-13  Colin Watson  <cjwatson@debian.org>
3274
3275         * modules/strsignal-tests: New file.
3276         * tests/test-strsignal.c: New file.
3277
3278         * lib/strsignal.c: New file, from glibc with modifications.
3279         * lib/siglist.h: New file, from glibc with modifications.
3280         * lib/string.in.h (strsignal): New declaration.
3281         * m4/strsignal.m4: New file.
3282         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3283         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
3284         * modules/strsignal: New file.
3285         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
3286         HAVE_DECL_STRSIGNAL.
3287
3288 2008-01-13  Bruno Haible  <bruno@clisp.org>
3289
3290         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
3291         locale encoding is not ASCII. Needed for OpenBSD 4.0.
3292         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3293         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3294
3295 2008-01-13  Bruno Haible  <bruno@clisp.org>
3296
3297         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
3298         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
3299         * lib/argp.h (__attribute__): Likewise.
3300         * lib/c-stack.c (__attribute__): Likewise.
3301         * lib/error.h (__attribute__): Likewise.
3302         * lib/fts.c (__attribute__): Likewise.
3303         * lib/openat.h (__attribute__): Likewise.
3304         * lib/stdio.in.h (__attribute__): Likewise.
3305         * lib/string.in.h (__attribute__): Likewise.
3306         * lib/utimens.c (__attribute__): Likewise.
3307         * lib/vasnprintf.h (__attribute__): Likewise.
3308         * lib/xalloc.h (__attribute__): Likewise.
3309         * lib/xprintf.h (__attribute__): Likewise.
3310         * lib/xstrtol.h (__attribute__): Likewise.
3311         * lib/xvasprintf.h (__attribute__): Likewise.
3312
3313 2008-01-12  Bruno Haible  <bruno@clisp.org>
3314
3315         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
3316         * doc/glibc-headers/a.out.texi: New file.
3317         * doc/glibc-headers/aliases.texi: New file.
3318         * doc/glibc-headers/alloca.texi: New file.
3319         * doc/glibc-headers/ar.texi: New file.
3320         * doc/glibc-headers/argp.texi: New file.
3321         * doc/glibc-headers/argz.texi: New file.
3322         * doc/glibc-headers/byteswap.texi: New file.
3323         * doc/glibc-headers/crypt.texi: New file.
3324         * doc/glibc-headers/endian.texi: New file.
3325         * doc/glibc-headers/envz.texi: New file.
3326         * doc/glibc-headers/err.texi: New file.
3327         * doc/glibc-headers/error.texi: New file.
3328         * doc/glibc-headers/execinfo.texi: New file.
3329         * doc/glibc-headers/fpu_control.texi: New file.
3330         * doc/glibc-headers/fstab.texi: New file.
3331         * doc/glibc-headers/fts.texi: New file.
3332         * doc/glibc-headers/getopt.texi: New file.
3333         * doc/glibc-headers/ieee754.texi: New file.
3334         * doc/glibc-headers/ifaddrs.texi: New file.
3335         * doc/glibc-headers/libintl.texi: New file.
3336         * doc/glibc-headers/mcheck.texi: New file.
3337         * doc/glibc-headers/mntent.texi: New file.
3338         * doc/glibc-headers/obstack.texi: New file.
3339         * doc/glibc-headers/paths.texi: New file.
3340         * doc/glibc-headers/printf.texi: New file.
3341         * doc/glibc-headers/pty.texi: New file.
3342         * doc/glibc-headers/resolv.texi: New file.
3343         * doc/glibc-headers/shadow.texi: New file.
3344         * doc/glibc-headers/sysexits.texi: New file.
3345         * doc/glibc-headers/ttyent.texi: New file.
3346
3347 2008-01-12  Jim Meyering  <meyering@redhat.com>
3348
3349         announce-gen: emit Gnulib's git-based version string.
3350         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
3351         New option --gnulib-version=V, where V is expected to be
3352         the output of running git describe in the gnulib directory.
3353         (get_tool_versions): Request feedback on xdelta.  I suspect it's
3354         not useful, and plan to stop publishing an xdelta file with each
3355         coreutils release.
3356
3357         * build-aux/announce-gen: Also check for lzma-compressed files.
3358
3359 2008-01-11  Bruno Haible  <bruno@clisp.org>
3360
3361         * tests/test-memmem.c (main): Increase maximum allowed time.
3362         * tests/test-strstr.c (main): Likewise.
3363
3364 2008-01-11  Bruno Haible  <bruno@clisp.org>
3365
3366         * doc/functions/memmem.texi: Add more precisions about platforms.
3367         * doc/functions/strstr.texi: Likewise.
3368
3369 2008-01-10  Eric Blake  <ebb9@byu.net>
3370
3371         * m4/strstr.m4: Delete cruft from copy-n-paste.
3372         Reported by Bruno Haible.
3373
3374 2008-01-10  Bruno Haible  <bruno@clisp.org>
3375
3376         Make c-strstr rely on strstr.
3377         * lib/c-strstr.c: Don't include str-kmp.h.
3378         (c_strstr): Define in terms of strstr.
3379         * modules/c-strstr (Files): Remove lib/str-kmp.h.
3380         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
3381
3382 2008-01-10  Bruno Haible  <bruno@clisp.org>
3383
3384         * doc/gnulib.texi (String Functions in C Locale): New section.
3385         * doc/c-ctype.texi: New file.
3386         * doc/c-strcase.texi: New file.
3387         * doc/c-strcaseeq.texi: New file.
3388         * doc/c-strcasestr.texi: New file.
3389         * doc/c-strstr.texi: New file.
3390         * doc/c-strtod.texi: New file.
3391         * doc/c-strtold.texi: New file.
3392
3393 2008-01-10  Eric Blake  <ebb9@byu.net>
3394
3395         * lib/relocatable.h: Fix a comment.
3396
3397 2008-01-10  Eric Blake  <ebb9@byu.net>
3398
3399         Share two-way algorithm.
3400         * lib/str-two-way.h: New file, merged from...
3401         * lib/memmem.c: ...here...
3402         * lib/strstr.c: ...and here.
3403         * modules/memmem (Files): Use it.
3404         * modules/strstr (Files): Likewise.
3405
3406         Avoid quadratic strstr implementations.
3407         * lib/strstr.c: New file.
3408         * m4/strstr.m4: Likewise.
3409         * modules/strstr: Likewise.
3410         * modules/strstr-tests: Likewise.
3411         * tests/test-strstr.c: Likewise.
3412         * lib/string.in.h (rpl_strstr): Declare.
3413         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
3414         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
3415         * modules/string (Makefile.am): Likewise.
3416         * MODULES.html.sh (string handling): Mention new module.
3417         * doc/functions/strstr.texi (strstr): Document the bug.
3418
3419 2008-01-10  Bruno Haible  <bruno@clisp.org>
3420
3421         * lib/relocatable.h (relocate): State whether result is freshly
3422         allocated or not.
3423         * lib/relocatable.c (relocate): Return a freshly allocated string
3424         instead of a pointer to a privately held string.
3425         Reported by Sylvain Beucler <beuc@gnu.org>.
3426
3427 2008-01-10  Colin Watson  <cjwatson@debian.org>
3428
3429         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
3430         s/S_ISNLK/S_ISLNK/.
3431
3432 2008-01-09  Bruno Haible  <bruno@clisp.org>
3433
3434         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
3435         and other files.
3436         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
3437         if it's only a guess.
3438         * modules/memmem: Simplify by depending on memmem-simple.
3439
3440 2008-01-09  Bruno Haible  <bruno@clisp.org>
3441
3442         Work around OpenBSD 4.0 tdelete() bug.
3443         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
3444         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
3445         macros and don't redefine the enum values.
3446         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
3447         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
3448         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
3449
3450 2008-01-09  Bruno Haible  <bruno@clisp.org>
3451
3452         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
3453         (main): Don't perform the tests if setlocale did not install a UTF-8
3454         locale. Needed on OpenBSD 4.0.
3455         * modules/wcwidth-tests (Depends-on): Add localcharset.
3456
3457 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
3458
3459         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
3460         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
3461         * NEWS: announce this.
3462         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
3463
3464 2008-01-09  Simon Josefsson  <simon@josefsson.org>
3465         and Eric Blake  <ebb9@byu.net>
3466
3467         Add memmem-simple module.
3468         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
3469         (gl_FUNC_MEMMEM): Separate performance from presence checks.
3470         * modules/memmem-simple: New file.
3471         * modules/memmem (Description): Tweak.
3472         * MODULES.html.sh (string handling): Mention new module.
3473         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
3474         addressed by memmem-simple.
3475         * NEWS: Document the difference.
3476
3477 2008-01-09  Eric Blake  <ebb9@byu.net>
3478
3479         Give gcc some memmem optimization hints.
3480         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
3481         (strcasestr): Declare as pure.
3482         * modules/memmem (Maintainer): Claim my implementation.
3483
3484 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3485
3486         Support AIX 6.1 and higher.
3487         * build-aux/config.libpath: Likewise.
3488         * build-aux/config.rpath: Likewise.
3489
3490 2008-01-08  Jim Meyering  <meyering@redhat.com>
3491             Bruno Haible  <bruno@clisp.org>
3492
3493         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
3494         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
3495         Reported by Peter Fales in
3496         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
3497
3498 2008-01-08  Bruno Haible  <bruno@clisp.org>
3499
3500         * modules/unictype/category-of (Depends-on): Add
3501         unictype/category-none.
3502         * modules/unictype/category-and-tests (Depends-on): Add
3503         unictype/category-{L,N,Lu,Nd}.
3504         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
3505         * modules/unictype/category-or-tests (Depends-on): Add
3506         unictype/category-{L,N}.
3507         * modules/unictype/category-name-tests (Depends-on): Add
3508         unictype/category-{Z,Nl}.
3509         Reported by Simon Josefsson.
3510
3511 2008-01-08  Bruno Haible  <bruno@clisp.org>
3512
3513         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
3514         convention better.
3515         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
3516         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
3517         Reported by Peter Miller <millerp@canb.auug.org.au>.
3518
3519 2008-01-08  Eric Blake  <ebb9@byu.net>
3520
3521         Rewrite memmem to guarantee linear complexity without malloc.
3522         * lib/memmem.c (memmem): Use Two-Way rather than
3523         Knuth-Morris-Pratt, to allow O(1) space usage.
3524         (critical_factorization, two_way_short_needle)
3525         (two_way_long_needle): New functions.
3526         (knuth_morris_pratt): Delete.
3527         * modules/memmem (Depends-on): No longer need malloca or stdbool.
3528         Add stdint.
3529         * tests/test-memmem.c (main): Add tests for periodic needle and
3530         sublinear performance.
3531         * doc/functions/memmem.texi (memmem): Document other deficiencies
3532         in cygwin and older glibc.
3533
3534 2008-01-08  Bruno Haible  <bruno@clisp.org>
3535
3536         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
3537         augmentation.
3538
3539 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
3540
3541         Add a configure time option: --disable-acl.
3542         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
3543         AC_ARG_ENABLE(acl).
3544
3545 2008-01-06  Simon Josefsson  <simon@josefsson.org>
3546
3547         * tests/test-localename.c: Don't include obsolete "setenv.h".
3548
3549         * modules/localename-tests (Depends-on): Need unsetenv.
3550
3551 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3552
3553         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
3554
3555 2008-01-06  Colin Watson  <cjwatson@debian.org>
3556
3557         * users.txt: Add man-db.
3558
3559 2008-01-07  Bruno Haible  <bruno@clisp.org>
3560
3561         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
3562         previous section name.
3563
3564 2008-01-07  Bruno Haible  <bruno@clisp.org>
3565
3566         * lib/progname.c (set_program_name): Don't strip off a leading
3567         "lt-" prefix outside a .libs directory.
3568         Suggested by Paul Eggert.
3569
3570 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
3571             Bruno Haible  <bruno@clisp.org>
3572
3573         Improve memory cleanup in 'relocatable' module.
3574         * lib/relocatable.h (compute_curr_prefix): Change return type to
3575         'char *'.
3576         * lib/relocatable.c (compute_curr_prefix): Change return type to
3577         'char *'. Free curr_installdir after use.
3578         (relocate): Free curr_prefix_better after use.
3579         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
3580
3581 2008-01-01  Bruno Haible  <bruno@clisp.org>
3582
3583         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
3584         failure on older glibc systems.
3585         Reported by Peter Fales <psfales@alcatel-lucent.com>.
3586
3587 2008-01-05  Eric Blake  <ebb9@byu.net>
3588
3589         Avoid quadratic system memmem.
3590         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
3591         Reported by Ralf Wildenhues.
3592
3593         Fix memmem test for mingw.
3594         * modules/memmem-tests (configure.ac): Check for alarm.
3595         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
3596         it.
3597         * doc/functions/memmem.texi: New file.
3598         * doc/gnulib.texi (Function Substitutes): Add memmem.
3599         Reported by Bruno Haible.
3600
3601 2008-01-04  Bruno Haible  <bruno@clisp.org>
3602
3603         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
3604         Require gl_HEADER_STRINGS_H_DEFAULTS, not
3605         gl_HEADER_STRING_H_DEFAULTS.
3606
3607 2008-01-04  Eric Blake  <ebb9@byu.net>
3608
3609         Shorten duration of memmem test.
3610         * tests/test-memmem.c (main): Use alarm to declare failure if test
3611         is taking too long.
3612         Reported by Ralf Wildenhues.
3613
3614 2007-12-21  Simon Josefsson  <simon@josefsson.org>
3615
3616         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
3617         string, needed by strerror.
3618
3619 2008-01-03  Colin Watson  <cjwatson@debian.org>
3620             Bruno Haible  <bruno@clisp.org>
3621
3622         * doc/gnulib-tool.texi (Localization): New section.
3623
3624 2008-01-02  Bruno Haible  <bruno@clisp.org>
3625
3626         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
3627         variables to 'unsigned char *' type.
3628         Reported by Paul Eggert.
3629
3630 2008-01-02  Jim Meyering  <jim@meyering.net>
3631
3632         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
3633
3634 2007-12-31  Jim Meyering  <jim@meyering.net>
3635
3636         Avoid use of private FTS type name.
3637         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
3638
3639 2007-12-30  Karl Berry  <karl@gnu.org>
3640
3641         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
3642         work around defect in Texinfo and/or the standalone Info browser.
3643
3644 2007-12-30  Bruno Haible  <bruno@clisp.org>
3645
3646         Unify 5 copies of the KMP code.
3647         * lib/str-kmp.h: New file.
3648         * lib/c-strcasestr.c: Include str-kmp.h.
3649         (knuth_morris_pratt): Remove function.
3650         (c_strcasestr): Update.
3651         * lib/c-strstr.c: Include str-kmp.h.
3652         (knuth_morris_pratt): Remove function.
3653         (c_strcasestr): Update.
3654         * lib/mbscasestr.c: Include str-kmp.h.
3655         (knuth_morris_pratt_unibyte): Remove function.
3656         * lib/mbsstr.c: Include str-kmp.h.
3657         (knuth_morris_pratt_unibyte): Remove function.
3658         * lib/strcasestr.c: Include str-kmp.h.
3659         (knuth_morris_pratt): Remove function.
3660         (strcasestr): Update.
3661         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
3662         * modules/c-strstr (Files): Likewise.
3663         * modules/mbscasestr (Files): Likewise.
3664         * modules/mbsstr (Files): Likewise.
3665         * modules/strcasestr (Files): Likewise.
3666         Suggested by Paul Eggert.
3667
3668 2007-12-30  Bruno Haible  <bruno@clisp.org>
3669
3670         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
3671         defined.
3672
3673 2007-12-30  Bruno Haible  <bruno@clisp.org>
3674
3675         * lib/xmalloca.h: Include xalloc.h.
3676         (xnmalloca): New macro.
3677
3678 2007-12-30  Bruno Haible  <bruno@clisp.org>
3679
3680         * lib/malloca.h (nmalloca): New macro.
3681         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
3682         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
3683         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
3684         knuth_morris_pratt_multibyte): Likewise.
3685         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
3686         knuth_morris_pratt_multibyte): Likewise.
3687         * lib/memmem.c (knuth_morris_pratt): Likewise.
3688         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
3689
3690 2007-12-25  Bruno Haible  <bruno@clisp.org>
3691
3692         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
3693         * lib/glob.c: Don't include openat.h.
3694         (link_exists2_p): Add back the code that deals with the
3695         !GLOB_ALTDIRFUNC case.
3696         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
3697         let it do the filename concatenation.
3698         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
3699         * modules/glob (Depends-on): Remove openat.
3700
3701 2007-12-31  Bruno Haible  <bruno@clisp.org>
3702
3703         * modules/dirfd (License): Change to LGPLv2+.
3704         Approved by Jim Meyering.
3705
3706 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
3707
3708         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
3709         when multiplying M by sizeof (size_t).
3710
3711 2007-12-10  Martin Lambers  <marlam@marlam.de>
3712
3713         Override getpagesize on mingw.
3714         * lib/getpagesize.c: New file.
3715         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
3716         * modules/getpagesize (Files): Add lib/getpagesize.c.
3717         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
3718         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3719         REPLACE_GETPAGESIZE.
3720         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
3721
3722 2007-12-25  Bruno Haible  <bruno@clisp.org>
3723
3724         * modules/localcharset (Notice): New field.
3725         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
3726         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
3727
3728 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
3729             Bruno Haible  <bruno@clisp.org>
3730
3731         Avoid using the syntax symbol() in formatted documentation.
3732         * MODULES.html.sh (func_module): When replacing symbol() with a
3733         hyperlink, remove the parentheses. Show an error if some remain.
3734         Recognize and render the '...' syntax.
3735         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
3736         Rework. Add paragraph about GCC's inlining.
3737         * doc/alloca.texi: Likewise.
3738         * doc/error.texi: Remove parentheses from symbol reference.
3739         * doc/gnulib-intro.texi: Likewise.
3740         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
3741         * modules/fnmatch (Description): Reword to say "the ... function".
3742         * modules/full-read (Description): Likewise.
3743         * modules/full-write (Description): Likewise.
3744         * modules/safe-read (Description): Likewise.
3745         * modules/safe-write (Description): Likewise.
3746         * modules/strchrnul (Description): Likewise.
3747         * modules/trim (Description): Likewise.
3748         * modules/error (Description): Remove parentheses from symbol
3749         references.
3750         * modules/verror (Description): Likewise.
3751         Reported by Karl Berry.
3752
3753 2007-12-25  Bruno Haible  <bruno@clisp.org>
3754
3755         Fixup after 2007-10-16 commit.
3756         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
3757
3758 2007-12-24  Bruno Haible  <bruno@clisp.org>
3759
3760         Make --enable-relocatable work with DESTDIR.
3761         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
3762         to compute installdir from destprog.
3763         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
3764         also set the RELOC_DESTDIR variable.
3765         Reported by Левашев Иван <octagram@bluebottle.com>.
3766
3767 2007-12-24  Bruno Haible  <bruno@clisp.org>
3768
3769         Fix link error due to xalloc_die().
3770         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
3771         of xreadlink.
3772         * lib/relocwrapper.c: Update comments.
3773         * build-aux/install-reloc: Remove xreadlink.c from file list.
3774         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
3775         xreadlink.c.
3776         Reported by Левашев Иван <octagram@bluebottle.com>.
3777
3778 2007-12-24  Bruno Haible  <bruno@clisp.org>
3779
3780         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
3781         * lib/setenv.h: Remove file.
3782         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
3783         lib/setenv.h.
3784         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
3785         (Depends-on): Add stdlib.
3786         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
3787         gl_FUNC_UNSETENV.
3788         (Include): Replace setenv.h with <stdlib.h>.
3789         * modules/unsetenv: New file.
3790         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
3791         * lib/unsetenv.c: Include <stdlib.h> first.
3792         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
3793         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
3794         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
3795         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
3796         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
3797         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
3798         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
3799         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
3800         * doc/functions/unsetenv.texi: Update.
3801         * modules/xsetenv (Depends-on): Add unsetenv.
3802         * modules/getdate (Depends-on): Likewise.
3803         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
3804         * lib/xsetenv.c: Don't include setenv.h.
3805         * lib/getdate.y: Likewise.
3806         * lib/relocwrapper.c: Likewise.
3807         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
3808         (Depends-on): Add stdlib.
3809         * NEWS: Mention the changes.
3810         Reported by Левашев Иван <octagram@bluebottle.com>.
3811
3812 2007-12-23  Bruno Haible  <bruno@clisp.org>
3813
3814         * lib/memmem.c (memmem): Use lowercase variable names. Tab
3815         indentation.
3816
3817 2007-12-23  Bruno Haible  <bruno@clisp.org>
3818
3819         * lib/c-strcasestr.c: Add more comments.
3820         * lib/c-strstr.c: Likewise.
3821         * lib/mbscasestr.c: Likewise.
3822         * lib/mbsstr.c: Likewise.
3823         * lib/strcasestr.c: Likewise.
3824         * lib/memmem.c: Likewise.
3825
3826 2007-12-23  Bruno Haible  <bruno@clisp.org>
3827
3828         * tests/test-memmem.c: Include <string.h> first.
3829
3830 2007-12-22  Bruno Haible  <bruno@clisp.org>
3831
3832         * gnulib-tool (func_create_testdir): Change $auxdir while generating
3833         the contents of $testsbase.
3834         Reported by Ralf Wildenhues.
3835
3836 2007-12-22  Bruno Haible  <bruno@clisp.org>
3837
3838         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
3839         two variables local_ldadd_before, local_ldadd_last.
3840
3841 2007-12-20  Eric Blake  <ebb9@byu.net>
3842
3843         Work around circular library issue when cross-compiling.
3844         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
3845         that progname.o does not need to pull in rpl_memcmp.
3846
3847 2007-12-19  Eric Blake  <ebb9@byu.net>
3848
3849         Fix memmem to avoid O(n^2) worst-case complexity.
3850         * lib/memmem.c (knuth_morris_pratt): New function.
3851         (memmem): Use it if first few naive iterations fail.
3852         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
3853         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
3854         * modules/memchr (License): Likewise.
3855         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
3856         malloca.
3857         * tests/test-memmem.c: Rewrite, borrowing ideas from
3858         test-mbsstr1.c; the old version wouldn't even compile!
3859         * modules/memmem-tests: New file.
3860         * lib/string.in.h (rpl_memmem): Add declaration.
3861         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
3862         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
3863         REPLACE_MEMMEM.
3864
3865 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
3866
3867         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
3868         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
3869         before any system include files, and undef after them all.  This
3870         should fix a problem on VMS reported by John E. Malmberg in
3871         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
3872
3873 2007-12-17  Eric Blake  <ebb9@byu.net>
3874
3875         Revert addition of verify, for BSD/OS.
3876         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
3877         can't handle large files, for the sake of obsolete platforms.
3878         * modules/fseeko (Depends-on): Remove verify.
3879         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
3880         * doc/functions/ftello.texi (ftello): Likewise.
3881         * doc/functions/fgetpos.texi (fgetpos): Likewise.
3882         Reported by Larry Jones.
3883
3884 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
3885
3886         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
3887         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
3888
3889 2007-12-17  Jim Meyering  <meyering@redhat.com>
3890
3891         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
3892         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
3893         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
3894         * modules/getcwd (Depends-on): Add openat.
3895         Reported by Petr Salinger.
3896
3897 2007-12-17  Bruno Haible  <bruno@clisp.org>
3898
3899         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
3900         avoid a segmentation fault of the configure test on x86_64 systems.
3901
3902 2007-12-15  Jim Meyering  <meyering@redhat.com>
3903
3904         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
3905
3906 2007-12-13  Eric Blake  <ebb9@byu.net>
3907
3908         Another fseek test.
3909         * tests/test-fseek.c (main): Also test ungetc handling.
3910         * tests/test-fseeko.c (main): Likewise.
3911         * modules/fseeko (Depends-on): Add verify.
3912         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
3913         large.
3914         Reported by Larry Jones.
3915
3916         Fix fseeko on mingw.
3917         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
3918         seek.
3919
3920         Beef up fseek tests.
3921         * tests/test-fseek.c (main): Also test eof handling.
3922         * tests/test-fseeko.c (main): Likewise.
3923         Reported by Larry Jones.
3924
3925 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
3926
3927         Fix fseeko on BSD-based platforms.
3928         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
3929         successful seek.
3930
3931 2007-12-12  Eric Blake  <ebb9@byu.net>
3932
3933         Allow circular dependency of separate libtests.a
3934         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
3935         when use_libtests.
3936
3937 2007-12-11  Eric Blake  <ebb9@byu.net>
3938
3939         Fix bug with -0.0L in previous patch.
3940         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
3941         * tests/test-isnan.c (main): Also test on zeroes.
3942         * tests/test-isnanf.c (main): Likewise.
3943         * tests/test-isnanl.h (main): Likewise.
3944
3945         Detect pseudo-denormals on x86 even when cross-compiling.
3946         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
3947         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
3948         invalid bit patterns that happen to satisfy ==.
3949
3950         Avoid link failures with separate libtests.a.
3951         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
3952         last, to satisfy circular dependencies.
3953
3954 2007-12-11  Eric Blake  <ebb9@byu.net>
3955         and Bruno Haible  <bruno@clisp.org>
3956
3957         Fix OpenBSD 4.0 <float.h> handling of long double.
3958         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
3959         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
3960         * doc/headers/float.texi (float.h): Document OpenBSD bug.
3961
3962 2007-12-11  Jim Meyering  <meyering@redhat.com>
3963
3964         * users.txt: Add libvirt.
3965
3966         Support versions of autoconf prior to 2.59c.
3967         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
3968         if it is not already defined.
3969
3970 2007-12-09  Bruno Haible  <bruno@clisp.org>
3971
3972         Let 'gnulib-tool --import' collect sources needed for the tests in
3973         tests/ rather than in lib/.
3974         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
3975         argument. If true, add rules to generate libtests.a, and put libtests.a
3976         into $(LDADD). Consider source files in subdirectories and set
3977         uses_subdirs.
3978         (func_emit_initmacro_start, func_emit_initmacro_end,
3979         func_emit_initmacro_done): Pass all arguments explicitly.
3980         (func_import): Determine two module lists main_modules,
3981         testsrelated_modules. Determine use_libtests. Determine two variables
3982         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
3983         instead of just sed_transform_lib_file. Determine two variables
3984         main_files and testsrelated_files. Compute 'files' as the union of
3985         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
3986         func_add_or_update. In the generated gnulib-comp.m4, collect the
3987         object files for tests/ in different variables than those for lib/.
3988         Substitute LIBTESTS_LIBDEPS.
3989         (func_create_testdir): Combine the uses_subdirs results from
3990         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
3991
3992 2007-12-09  Bruno Haible  <bruno@clisp.org>
3993
3994         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
3995         the build-aux directory.
3996
3997 2007-12-09  Bruno Haible  <bruno@clisp.org>
3998
3999         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
4000         introduced on 2006-09-09.
4001
4002 2007-12-07  Jim Meyering  <meyering@redhat.com>
4003
4004         Let these macros work also with autoconf-2.59.
4005         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
4006         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
4007         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
4008
4009 2007-12-06  Jim Meyering  <meyering@redhat.com>
4010
4011         Avoid a configure-time syntax error in gl_FUNC_ACL.
4012         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
4013         function in each branch, before testing the cache variable.
4014
4015 2007-12-04  Eric Blake  <ebb9@byu.net>
4016
4017         Make scripts executable.
4018         * build-aux/config.guess: Add execute permissions.
4019         * build-aux/config.sub: Likewise.
4020         * build-aux/gendocs.sh: Likewise.
4021
4022         Fix frexp on mingw.
4023         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
4024         cross-compiling.
4025         * doc/functions/frexp.texi (frexp): Document the bug.
4026
4027         Make cygwin fseeko check more reliable.
4028         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
4029         version numbers, rather than unrelated feature check.
4030         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
4031         * doc/functions/ftello.texi (ftello): Likewise.
4032         Reported by Bruno Haible.
4033
4034         * m4/strerror.m4: Bump version number.
4035
4036 2007-12-03  Bruno Haible  <bruno@clisp.org>
4037
4038         * doc/functions/mprotect.texi: Mention the mingw problem.
4039
4040 2007-12-03  Eric Blake  <ebb9@byu.net>
4041
4042         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
4043         REPLACE_STRERROR is initialized before this macro.
4044
4045 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
4046
4047         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
4048         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
4049         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
4050         put -lsec in even for programs other than 'ls'.  This fixes a problem
4051         for gettext reported by Bruno Haible in
4052         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
4053         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
4054         Add support for Solaris 10.  This isn't efficient, but should get the
4055         job done for now.
4056
4057 2007-12-03  James Youngman  <jay@gnu.org>
4058
4059         * doc/regexprops-generic.texi: change "an close-group" to "a
4060         close-group" and "illegal" to "not allowed".
4061
4062 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4063
4064         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
4065         pr_byname.h. Needed for the rare case when the maintainer has done
4066         "make maintainer-clean" in the source directory and then attempts a
4067         build outside the source directory.
4068         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
4069         scripts_byname.h.
4070
4071 2007-12-02  Martin Lambers <marlam@marlam.de>
4072             Bruno Haible  <bruno@clisp.org>
4073
4074         * lib/getpagesize.h: Remove file.
4075         * lib/unistd.in.h: Include declaration of getpagesize here.
4076         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
4077         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
4078         HAVE_SYS_PARAM_H.
4079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
4080         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
4081         * modules/getpagesize (Files): Remove lib/getpagesize.h.
4082         (Depends-on): Add unistd.
4083         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4084         (Include): Use <unistd.h> instead of getpagesize.h.
4085         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
4086         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
4087         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
4088         gl_GETPAGESIZE invocation, already handled by module dependency.
4089         * lib/pagealign_alloc.c: Don't include getpagesize.h.
4090
4091 2007-12-02  Bruno Haible  <bruno@clisp.org>
4092
4093         * modules/strings-tests: New file.
4094         * tests/test-strings.c: New file.
4095
4096         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
4097         * lib/strings.in.h: New file.
4098         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
4099         * m4/strings_h.m4: New file.
4100         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
4101         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
4102         * modules/strings: New file.
4103         * modules/string (Makefile.am): Update.
4104         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
4105         Reported by Karl Berry.
4106
4107 2007-12-01  Eric Blake  <ebb9@byu.net>
4108
4109         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
4110         accomodate fix in cygwin 1.5.25.
4111
4112 2007-12-01  Jim Meyering  <meyering@redhat.com>
4113
4114         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
4115         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
4116         that would inhibit utf8-optimization of a regexp containing line-
4117         or buffer-anchors, e.g., `^', `$'.
4118
4119 2007-11-30  Bruno Haible  <bruno@clisp.org>
4120
4121         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
4122         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
4123         glthread_recursive_lock_init.
4124         * lib/lock.c (glthread_recursive_lock_init)
4125         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
4126         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
4127
4128 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
4129
4130         New function qset_acl, like set_acl but with syscall semantics.
4131         * lib/acl.h (qset_acl): New decl.
4132         * lib/acl.c (qset_acl): New function.
4133         (set_acl): Use new function.  Use more-consistent diagnostics.
4134
4135 2007-11-28  Jim Meyering  <meyering@redhat.com>
4136
4137         * modules/physmem (License): Change from GPL to LGPLv2+.
4138
4139 2007-11-26  Bruno Haible  <bruno@clisp.org>
4140
4141         * lib/vasnprintf.c (decode_long_double): Don't abort if the
4142         'long double' type has excess precision.
4143         Reported by Jim Meyering in
4144         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
4145
4146 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4147
4148         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
4149         Sync from <http://gnu.org/licenses>.
4150         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
4151         with license text from same location.
4152         * doc/maintain.texi, doc/standards.texi:  Sync from
4153         <http://savannah.gnu.org/projects/gnustandards>.
4154
4155 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
4156         and Jim Meyering  <meyering@redhat.com>
4157
4158         Adjust getdate' grammar to accept a slightly more regular language.
4159         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
4160         Before, the former was rejected.
4161         * lib/getdate.y (digits_to_date_time): New function, factored
4162         out of ...
4163         (number): ...here.  Just call digits_to_date_time.
4164         (hybrid): New non-terminal to handle an <unsigned number,
4165         signed relative offset> sequence consistently.
4166
4167 2007-11-18  Jim Meyering  <meyering@redhat.com>
4168
4169         Pull my changes from coreutils:
4170         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
4171         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
4172         use of $gnulib_tool_option_extras, so that it's separated from the
4173         preceding argument.
4174
4175         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
4176         * build-aux/bootstrap (cp_mark_as_generated): Create any required
4177         parent destination directories before copying a file into place.
4178
4179 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
4180
4181         bootstrap: work also with 4-argument variant of AC_INIT
4182         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
4183
4184 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
4185
4186         Port test-getaddrinfo to Solaris.
4187         Problem reported by Bruno Haible in
4188         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
4189         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
4190         explanation of setting 'hints'.
4191         Don't reject an implementation merely because it returns EAI_SERVICE.
4192         (EAI_SERVICE): Define to 0 if not defined.
4193
4194 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
4195
4196         The license of gnu-make and posix-shell is now "GPLed build tool".
4197         * modules/gnu-make (License): Likewise.
4198         * modules/posix-shell (License): Likewise.
4199
4200         New module posix-shell, for determining a POSIX shell
4201         or perhaps something that is close enough to a POSIX shell.
4202         * m4/posix-shell.m4: New file.
4203         * modules/posix-shell: New file.
4204
4205         * MODULES.html.sh: Mention new module.
4206
4207         New module gnu-make, for determining whether we're using GNU Make.
4208         * m4/gnu-make.m4: New file.
4209         * modules/gnu-make: New file.
4210         * MODULES.html.sh: Mention new module.
4211
4212 2007-11-14  Jim Meyering  <meyering@redhat.com>
4213
4214         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
4215         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
4216         use this macro to create a function _definition_.
4217         Remove useless "#undef ARGMATCH_DIE".
4218
4219 2007-11-14  Bruno Haible  <bruno@clisp.org>
4220
4221         * lib/config.charset: Update for OpenBSD 4.1.
4222         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
4223
4224 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
4225
4226         Document 64-bit #if problems in stdint.texi.
4227         * doc/headers/stdint.texi (stdint.h): Mention problems with
4228         64-bit-#if, and how to work around them.
4229
4230         Don't insist on 'long long int' support in the preprocessor.  It
4231         breaks too many things.  For example, PRIdMAX still uses a 'long
4232         long int' format with the latest Sun compiler, even though
4233         HAVE_LONG_LONG_INT isn't defined due to that compiler's
4234         preprocessor problem.  This causes the latest coreutils to dump
4235         core on Solaris 10 sparc with the Sun C compiler.
4236         Instead, fix the 2007-10-16 problem in a different way, by evaluating
4237         the troublesome expressions at configure-time, not at #if-time.
4238         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
4239         preprocessor.
4240         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
4241         compile-time C checks, done at 'configure'-time.
4242         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
4243         * modules/inttypes (Makefile): Substitute the new symbols that
4244         gl_INTTYPES_H now generates.
4245         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
4246
4247 2007-11-12  Bruno Haible  <bruno@clisp.org>
4248
4249         Tests for Unicode character classification functions.
4250
4251         * modules/unictype/bidicategory-byname-tests: New file.
4252         * modules/unictype/bidicategory-name-tests: New file.
4253         * modules/unictype/bidicategory-of-tests: New file.
4254         * modules/unictype/bidicategory-test-tests: New file.
4255         * modules/unictype/block-list-tests: New file.
4256         * modules/unictype/block-of-tests: New file.
4257         * modules/unictype/block-test-tests: New file.
4258         * modules/unictype/category-C-tests: New file.
4259         * modules/unictype/category-Cc-tests: New file.
4260         * modules/unictype/category-Cf-tests: New file.
4261         * modules/unictype/category-Cn-tests: New file.
4262         * modules/unictype/category-Co-tests: New file.
4263         * modules/unictype/category-Cs-tests: New file.
4264         * modules/unictype/category-L-tests: New file.
4265         * modules/unictype/category-Ll-tests: New file.
4266         * modules/unictype/category-Lm-tests: New file.
4267         * modules/unictype/category-Lo-tests: New file.
4268         * modules/unictype/category-Lt-tests: New file.
4269         * modules/unictype/category-Lu-tests: New file.
4270         * modules/unictype/category-M-tests: New file.
4271         * modules/unictype/category-Mc-tests: New file.
4272         * modules/unictype/category-Me-tests: New file.
4273         * modules/unictype/category-Mn-tests: New file.
4274         * modules/unictype/category-N-tests: New file.
4275         * modules/unictype/category-Nd-tests: New file.
4276         * modules/unictype/category-Nl-tests: New file.
4277         * modules/unictype/category-No-tests: New file.
4278         * modules/unictype/category-P-tests: New file.
4279         * modules/unictype/category-Pc-tests: New file.
4280         * modules/unictype/category-Pd-tests: New file.
4281         * modules/unictype/category-Pe-tests: New file.
4282         * modules/unictype/category-Pf-tests: New file.
4283         * modules/unictype/category-Pi-tests: New file.
4284         * modules/unictype/category-Po-tests: New file.
4285         * modules/unictype/category-Ps-tests: New file.
4286         * modules/unictype/category-S-tests: New file.
4287         * modules/unictype/category-Sc-tests: New file.
4288         * modules/unictype/category-Sk-tests: New file.
4289         * modules/unictype/category-Sm-tests: New file.
4290         * modules/unictype/category-So-tests: New file.
4291         * modules/unictype/category-Z-tests: New file.
4292         * modules/unictype/category-Zl-tests: New file.
4293         * modules/unictype/category-Zp-tests: New file.
4294         * modules/unictype/category-Zs-tests: New file.
4295         * modules/unictype/category-and-not-tests: New file.
4296         * modules/unictype/category-and-tests: New file.
4297         * modules/unictype/category-byname-tests: New file.
4298         * modules/unictype/category-name-tests: New file.
4299         * modules/unictype/category-none-tests: New file.
4300         * modules/unictype/category-of-tests: New file.
4301         * modules/unictype/category-or-tests: New file.
4302         * modules/unictype/category-test-withtable-tests: New file.
4303         * modules/unictype/combining-class-tests: New file.
4304         * modules/unictype/ctype-alnum-tests: New file.
4305         * modules/unictype/ctype-alpha-tests: New file.
4306         * modules/unictype/ctype-blank-tests: New file.
4307         * modules/unictype/ctype-cntrl-tests: New file.
4308         * modules/unictype/ctype-digit-tests: New file.
4309         * modules/unictype/ctype-graph-tests: New file.
4310         * modules/unictype/ctype-lower-tests: New file.
4311         * modules/unictype/ctype-print-tests: New file.
4312         * modules/unictype/ctype-punct-tests: New file.
4313         * modules/unictype/ctype-space-tests: New file.
4314         * modules/unictype/ctype-upper-tests: New file.
4315         * modules/unictype/ctype-xdigit-tests: New file.
4316         * modules/unictype/decimal-digit-tests: New file.
4317         * modules/unictype/digit-tests: New file.
4318         * modules/unictype/mirror-tests: New file.
4319         * modules/unictype/numeric-tests: New file.
4320         * modules/unictype/property-alphabetic-tests: New file.
4321         * modules/unictype/property-ascii-hex-digit-tests: New file.
4322         * modules/unictype/property-bidi-arabic-digit-tests: New file.
4323         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
4324         * modules/unictype/property-bidi-block-separator-tests: New file.
4325         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
4326         * modules/unictype/property-bidi-common-separator-tests: New file.
4327         * modules/unictype/property-bidi-control-tests: New file.
4328         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
4329         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
4330         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
4331         * modules/unictype/property-bidi-european-digit-tests: New file.
4332         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
4333         * modules/unictype/property-bidi-left-to-right-tests: New file.
4334         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
4335         * modules/unictype/property-bidi-other-neutral-tests: New file.
4336         * modules/unictype/property-bidi-pdf-tests: New file.
4337         * modules/unictype/property-bidi-segment-separator-tests: New file.
4338         * modules/unictype/property-bidi-whitespace-tests: New file.
4339         * modules/unictype/property-byname-tests: New file.
4340         * modules/unictype/property-combining-tests: New file.
4341         * modules/unictype/property-composite-tests: New file.
4342         * modules/unictype/property-currency-symbol-tests: New file.
4343         * modules/unictype/property-dash-tests: New file.
4344         * modules/unictype/property-decimal-digit-tests: New file.
4345         * modules/unictype/property-default-ignorable-code-point-tests: New file.
4346         * modules/unictype/property-deprecated-tests: New file.
4347         * modules/unictype/property-diacritic-tests: New file.
4348         * modules/unictype/property-extender-tests: New file.
4349         * modules/unictype/property-format-control-tests: New file.
4350         * modules/unictype/property-grapheme-base-tests: New file.
4351         * modules/unictype/property-grapheme-extend-tests: New file.
4352         * modules/unictype/property-grapheme-link-tests: New file.
4353         * modules/unictype/property-hex-digit-tests: New file.
4354         * modules/unictype/property-hyphen-tests: New file.
4355         * modules/unictype/property-id-continue-tests: New file.
4356         * modules/unictype/property-id-start-tests: New file.
4357         * modules/unictype/property-ideographic-tests: New file.
4358         * modules/unictype/property-ids-binary-operator-tests: New file.
4359         * modules/unictype/property-ids-trinary-operator-tests: New file.
4360         * modules/unictype/property-ignorable-control-tests: New file.
4361         * modules/unictype/property-iso-control-tests: New file.
4362         * modules/unictype/property-join-control-tests: New file.
4363         * modules/unictype/property-left-of-pair-tests: New file.
4364         * modules/unictype/property-line-separator-tests: New file.
4365         * modules/unictype/property-logical-order-exception-tests: New file.
4366         * modules/unictype/property-lowercase-tests: New file.
4367         * modules/unictype/property-math-tests: New file.
4368         * modules/unictype/property-non-break-tests: New file.
4369         * modules/unictype/property-not-a-character-tests: New file.
4370         * modules/unictype/property-numeric-tests: New file.
4371         * modules/unictype/property-other-alphabetic-tests: New file.
4372         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
4373         * modules/unictype/property-other-grapheme-extend-tests: New file.
4374         * modules/unictype/property-other-id-continue-tests: New file.
4375         * modules/unictype/property-other-id-start-tests: New file.
4376         * modules/unictype/property-other-lowercase-tests: New file.
4377         * modules/unictype/property-other-math-tests: New file.
4378         * modules/unictype/property-other-uppercase-tests: New file.
4379         * modules/unictype/property-paired-punctuation-tests: New file.
4380         * modules/unictype/property-paragraph-separator-tests: New file.
4381         * modules/unictype/property-pattern-syntax-tests: New file.
4382         * modules/unictype/property-pattern-white-space-tests: New file.
4383         * modules/unictype/property-private-use-tests: New file.
4384         * modules/unictype/property-punctuation-tests: New file.
4385         * modules/unictype/property-quotation-mark-tests: New file.
4386         * modules/unictype/property-radical-tests: New file.
4387         * modules/unictype/property-sentence-terminal-tests: New file.
4388         * modules/unictype/property-soft-dotted-tests: New file.
4389         * modules/unictype/property-space-tests: New file.
4390         * modules/unictype/property-terminal-punctuation-tests: New file.
4391         * modules/unictype/property-test-tests: New file.
4392         * modules/unictype/property-titlecase-tests: New file.
4393         * modules/unictype/property-unassigned-code-value-tests: New file.
4394         * modules/unictype/property-unified-ideograph-tests: New file.
4395         * modules/unictype/property-uppercase-tests: New file.
4396         * modules/unictype/property-variation-selector-tests: New file.
4397         * modules/unictype/property-white-space-tests: New file.
4398         * modules/unictype/property-xid-continue-tests: New file.
4399         * modules/unictype/property-xid-start-tests: New file.
4400         * modules/unictype/property-zero-width-tests: New file.
4401         * modules/unictype/scripts-tests: New file.
4402         * modules/unictype/syntax-c-ident-tests: New file.
4403         * modules/unictype/syntax-c-whitespace-tests: New file.
4404         * modules/unictype/syntax-java-ident-tests: New file.
4405         * modules/unictype/syntax-java-whitespace-tests: New file.
4406         * tests/unictype/test-bidi_byname.c: New file.
4407         * tests/unictype/test-bidi_name.c: New file.
4408         * tests/unictype/test-bidi_of.c: New file.
4409         * tests/unictype/test-bidi_test.c: New file.
4410         * tests/unictype/test-block_list.c: New file.
4411         * tests/unictype/test-block_of.c: New file.
4412         * tests/unictype/test-block_test.c: New file.
4413         * tests/unictype/test-categ_and.c: New file.
4414         * tests/unictype/test-categ_and_not.c: New file.
4415         * tests/unictype/test-categ_byname.c: New file.
4416         * tests/unictype/test-categ_name.c: New file.
4417         * tests/unictype/test-categ_none.c: New file.
4418         * tests/unictype/test-categ_of.c: New file.
4419         * tests/unictype/test-categ_or.c: New file.
4420         * tests/unictype/test-categ_test_withtable.c: New file.
4421         * tests/unictype/test-combining.c: New file.
4422         * tests/unictype/test-decdigit.c: New file.
4423         * tests/unictype/test-digit.c: New file.
4424         * tests/unictype/test-mirror.c: New file.
4425         * tests/unictype/test-numeric.c: New file.
4426         * tests/unictype/test-pr_byname.c: New file.
4427         * tests/unictype/test-pr_test.c: New file.
4428         * tests/unictype/test-predicate-part1.h: New file.
4429         * tests/unictype/test-predicate-part2.h: New file.
4430         * tests/unictype/test-scripts.c: New file.
4431         * tests/unictype/test-sy_c_ident.c: New file.
4432         * tests/unictype/test-sy_java_ident.c: New file.
4433
4434         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
4435         for Unicode 5.0.0.
4436         * tests/unictype/test-categ_Cc.c: Likewise.
4437         * tests/unictype/test-categ_Cf.c: Likewise.
4438         * tests/unictype/test-categ_Cn.c: Likewise.
4439         * tests/unictype/test-categ_Co.c: Likewise.
4440         * tests/unictype/test-categ_Cs.c: Likewise.
4441         * tests/unictype/test-categ_L.c: Likewise.
4442         * tests/unictype/test-categ_Ll.c: Likewise.
4443         * tests/unictype/test-categ_Lm.c: Likewise.
4444         * tests/unictype/test-categ_Lo.c: Likewise.
4445         * tests/unictype/test-categ_Lt.c: Likewise.
4446         * tests/unictype/test-categ_Lu.c: Likewise.
4447         * tests/unictype/test-categ_M.c: Likewise.
4448         * tests/unictype/test-categ_Mc.c: Likewise.
4449         * tests/unictype/test-categ_Me.c: Likewise.
4450         * tests/unictype/test-categ_Mn.c: Likewise.
4451         * tests/unictype/test-categ_N.c: Likewise.
4452         * tests/unictype/test-categ_Nd.c: Likewise.
4453         * tests/unictype/test-categ_Nl.c: Likewise.
4454         * tests/unictype/test-categ_No.c: Likewise.
4455         * tests/unictype/test-categ_P.c: Likewise.
4456         * tests/unictype/test-categ_Pc.c: Likewise.
4457         * tests/unictype/test-categ_Pd.c: Likewise.
4458         * tests/unictype/test-categ_Pe.c: Likewise.
4459         * tests/unictype/test-categ_Pf.c: Likewise.
4460         * tests/unictype/test-categ_Pi.c: Likewise.
4461         * tests/unictype/test-categ_Po.c: Likewise.
4462         * tests/unictype/test-categ_Ps.c: Likewise.
4463         * tests/unictype/test-categ_S.c: Likewise.
4464         * tests/unictype/test-categ_Sc.c: Likewise.
4465         * tests/unictype/test-categ_Sk.c: Likewise.
4466         * tests/unictype/test-categ_Sm.c: Likewise.
4467         * tests/unictype/test-categ_So.c: Likewise.
4468         * tests/unictype/test-categ_Z.c: Likewise.
4469         * tests/unictype/test-categ_Zl.c: Likewise.
4470         * tests/unictype/test-categ_Zp.c: Likewise.
4471         * tests/unictype/test-categ_Zs.c: Likewise.
4472         * tests/unictype/test-ctype_alnum.c: Likewise.
4473         * tests/unictype/test-ctype_alpha.c: Likewise.
4474         * tests/unictype/test-ctype_blank.c: Likewise.
4475         * tests/unictype/test-ctype_cntrl.c: Likewise.
4476         * tests/unictype/test-ctype_digit.c: Likewise.
4477         * tests/unictype/test-ctype_graph.c: Likewise.
4478         * tests/unictype/test-ctype_lower.c: Likewise.
4479         * tests/unictype/test-ctype_print.c: Likewise.
4480         * tests/unictype/test-ctype_punct.c: Likewise.
4481         * tests/unictype/test-ctype_space.c: Likewise.
4482         * tests/unictype/test-ctype_upper.c: Likewise.
4483         * tests/unictype/test-ctype_xdigit.c: Likewise.
4484         * tests/unictype/test-decdigit.h: Likewise.
4485         * tests/unictype/test-digit.h: Likewise.
4486         * tests/unictype/test-numeric.h: Likewise.
4487         * tests/unictype/test-pr_alphabetic.c: Likewise.
4488         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
4489         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
4490         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
4491         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
4492         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
4493         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
4494         * tests/unictype/test-pr_bidi_control.c: Likewise.
4495         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
4496         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
4497         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
4498         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
4499         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
4500         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
4501         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
4502         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
4503         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
4504         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
4505         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
4506         * tests/unictype/test-pr_combining.c: Likewise.
4507         * tests/unictype/test-pr_composite.c: Likewise.
4508         * tests/unictype/test-pr_currency_symbol.c: Likewise.
4509         * tests/unictype/test-pr_dash.c: Likewise.
4510         * tests/unictype/test-pr_decimal_digit.c: Likewise.
4511         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
4512         * tests/unictype/test-pr_deprecated.c: Likewise.
4513         * tests/unictype/test-pr_diacritic.c: Likewise.
4514         * tests/unictype/test-pr_extender.c: Likewise.
4515         * tests/unictype/test-pr_format_control.c: Likewise.
4516         * tests/unictype/test-pr_grapheme_base.c: Likewise.
4517         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
4518         * tests/unictype/test-pr_grapheme_link.c: Likewise.
4519         * tests/unictype/test-pr_hex_digit.c: Likewise.
4520         * tests/unictype/test-pr_hyphen.c: Likewise.
4521         * tests/unictype/test-pr_id_continue.c: Likewise.
4522         * tests/unictype/test-pr_id_start.c: Likewise.
4523         * tests/unictype/test-pr_ideographic.c: Likewise.
4524         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
4525         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
4526         * tests/unictype/test-pr_ignorable_control.c: Likewise.
4527         * tests/unictype/test-pr_iso_control.c: Likewise.
4528         * tests/unictype/test-pr_join_control.c: Likewise.
4529         * tests/unictype/test-pr_left_of_pair.c: Likewise.
4530         * tests/unictype/test-pr_line_separator.c: Likewise.
4531         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
4532         * tests/unictype/test-pr_lowercase.c: Likewise.
4533         * tests/unictype/test-pr_math.c: Likewise.
4534         * tests/unictype/test-pr_non_break.c: Likewise.
4535         * tests/unictype/test-pr_not_a_character.c: Likewise.
4536         * tests/unictype/test-pr_numeric.c: Likewise.
4537         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
4538         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
4539         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
4540         * tests/unictype/test-pr_other_id_continue.c: Likewise.
4541         * tests/unictype/test-pr_other_id_start.c: Likewise.
4542         * tests/unictype/test-pr_other_lowercase.c: Likewise.
4543         * tests/unictype/test-pr_other_math.c: Likewise.
4544         * tests/unictype/test-pr_other_uppercase.c: Likewise.
4545         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
4546         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
4547         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
4548         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
4549         * tests/unictype/test-pr_private_use.c: Likewise.
4550         * tests/unictype/test-pr_punctuation.c: Likewise.
4551         * tests/unictype/test-pr_quotation_mark.c: Likewise.
4552         * tests/unictype/test-pr_radical.c: Likewise.
4553         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
4554         * tests/unictype/test-pr_soft_dotted.c: Likewise.
4555         * tests/unictype/test-pr_space.c: Likewise.
4556         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
4557         * tests/unictype/test-pr_titlecase.c: Likewise.
4558         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
4559         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
4560         * tests/unictype/test-pr_uppercase.c: Likewise.
4561         * tests/unictype/test-pr_variation_selector.c: Likewise.
4562         * tests/unictype/test-pr_white_space.c: Likewise.
4563         * tests/unictype/test-pr_xid_continue.c: Likewise.
4564         * tests/unictype/test-pr_xid_start.c: Likewise.
4565         * tests/unictype/test-pr_zero_width.c: Likewise.
4566         * tests/unictype/test-sy_c_whitespace.c: Likewise.
4567         * tests/unictype/test-sy_java_whitespace.c: Likewise.
4568
4569 2007-11-12  Bruno Haible  <bruno@clisp.org>
4570
4571         Unicode character classification functions.
4572         * lib/unictype.h: New file.
4573         * modules/unictype/base: New file.
4574         * modules/unictype/category-L: New file.
4575         * modules/unictype/category-Lu: New file.
4576         * modules/unictype/category-Ll: New file.
4577         * modules/unictype/category-Lt: New file.
4578         * modules/unictype/category-Lm: New file.
4579         * modules/unictype/category-Lo: New file.
4580         * modules/unictype/category-M: New file.
4581         * modules/unictype/category-Mn: New file.
4582         * modules/unictype/category-Mc: New file.
4583         * modules/unictype/category-Me: New file.
4584         * modules/unictype/category-N: New file.
4585         * modules/unictype/category-Nd: New file.
4586         * modules/unictype/category-Nl: New file.
4587         * modules/unictype/category-No: New file.
4588         * modules/unictype/category-P: New file.
4589         * modules/unictype/category-Pc: New file.
4590         * modules/unictype/category-Pd: New file.
4591         * modules/unictype/category-Ps: New file.
4592         * modules/unictype/category-Pe: New file.
4593         * modules/unictype/category-Pi: New file.
4594         * modules/unictype/category-Pf: New file.
4595         * modules/unictype/category-Po: New file.
4596         * modules/unictype/category-S: New file.
4597         * modules/unictype/category-Sm: New file.
4598         * modules/unictype/category-Sc: New file.
4599         * modules/unictype/category-Sk: New file.
4600         * modules/unictype/category-So: New file.
4601         * modules/unictype/category-Z: New file.
4602         * modules/unictype/category-Zs: New file.
4603         * modules/unictype/category-Zl: New file.
4604         * modules/unictype/category-Zp: New file.
4605         * modules/unictype/category-C: New file.
4606         * modules/unictype/category-Cc: New file.
4607         * modules/unictype/category-Cf: New file.
4608         * modules/unictype/category-Cs: New file.
4609         * modules/unictype/category-Co: New file.
4610         * modules/unictype/category-Cn: New file.
4611         * modules/unictype/category-or: New file.
4612         * modules/unictype/category-of: New file.
4613         * modules/unictype/category-test: New file.
4614         * modules/unictype/category-test-withtable: New file.
4615         * modules/unictype/category-byname: New file.
4616         * modules/unictype/category-none: New file.
4617         * modules/unictype/category-and: New file.
4618         * modules/unictype/category-and-not: New file.
4619         * modules/unictype/category-name: New file.
4620         * modules/unictype/combining-class: New file.
4621         * modules/unictype/category-all: New file.
4622         * modules/unictype/bidicategory-all: New file.
4623         * modules/unictype/bidicategory-byname: New file.
4624         * modules/unictype/bidicategory-name: New file.
4625         * modules/unictype/bidicategory-of: New file.
4626         * modules/unictype/bidicategory-test: New file.
4627         * modules/unictype/decimal-digit: New file.
4628         * modules/unictype/digit: New file.
4629         * modules/unictype/numeric: New file.
4630         * modules/unictype/mirror: New file.
4631         * modules/unictype/property-white-space: New file.
4632         * modules/unictype/property-alphabetic: New file.
4633         * modules/unictype/property-other-alphabetic: New file.
4634         * modules/unictype/property-not-a-character: New file.
4635         * modules/unictype/property-default-ignorable-code-point: New file.
4636         * modules/unictype/property-other-default-ignorable-code-point: New
4637         file.
4638         * modules/unictype/property-deprecated: New file.
4639         * modules/unictype/property-logical-order-exception: New file.
4640         * modules/unictype/property-variation-selector: New file.
4641         * modules/unictype/property-private-use: New file.
4642         * modules/unictype/property-unassigned-code-value: New file.
4643         * modules/unictype/property-uppercase: New file.
4644         * modules/unictype/property-other-uppercase: New file.
4645         * modules/unictype/property-lowercase: New file.
4646         * modules/unictype/property-other-lowercase: New file.
4647         * modules/unictype/property-titlecase: New file.
4648         * modules/unictype/property-soft-dotted: New file.
4649         * modules/unictype/property-id-start: New file.
4650         * modules/unictype/property-other-id-start: New file.
4651         * modules/unictype/property-id-continue: New file.
4652         * modules/unictype/property-other-id-continue: New file.
4653         * modules/unictype/property-xid-start: New file.
4654         * modules/unictype/property-xid-continue: New file.
4655         * modules/unictype/property-pattern-white-space: New file.
4656         * modules/unictype/property-pattern-syntax: New file.
4657         * modules/unictype/property-join-control: New file.
4658         * modules/unictype/property-grapheme-base: New file.
4659         * modules/unictype/property-grapheme-extend: New file.
4660         * modules/unictype/property-other-grapheme-extend: New file.
4661         * modules/unictype/property-grapheme-link: New file.
4662         * modules/unictype/property-bidi-control: New file.
4663         * modules/unictype/property-bidi-left-to-right: New file.
4664         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
4665         * modules/unictype/property-bidi-arabic-right-to-left: New file.
4666         * modules/unictype/property-bidi-european-digit: New file.
4667         * modules/unictype/property-bidi-eur-num-separator: New file.
4668         * modules/unictype/property-bidi-eur-num-terminator: New file.
4669         * modules/unictype/property-bidi-arabic-digit: New file.
4670         * modules/unictype/property-bidi-common-separator: New file.
4671         * modules/unictype/property-bidi-block-separator: New file.
4672         * modules/unictype/property-bidi-segment-separator: New file.
4673         * modules/unictype/property-bidi-whitespace: New file.
4674         * modules/unictype/property-bidi-non-spacing-mark: New file.
4675         * modules/unictype/property-bidi-boundary-neutral: New file.
4676         * modules/unictype/property-bidi-pdf: New file.
4677         * modules/unictype/property-bidi-embedding-or-override: New file.
4678         * modules/unictype/property-bidi-other-neutral: New file.
4679         * modules/unictype/property-hex-digit: New file.
4680         * modules/unictype/property-ascii-hex-digit: New file.
4681         * modules/unictype/property-ideographic: New file.
4682         * modules/unictype/property-unified-ideograph: New file.
4683         * modules/unictype/property-radical: New file.
4684         * modules/unictype/property-ids-binary-operator: New file.
4685         * modules/unictype/property-ids-trinary-operator: New file.
4686         * modules/unictype/property-zero-width: New file.
4687         * modules/unictype/property-space: New file.
4688         * modules/unictype/property-non-break: New file.
4689         * modules/unictype/property-iso-control: New file.
4690         * modules/unictype/property-format-control: New file.
4691         * modules/unictype/property-dash: New file.
4692         * modules/unictype/property-hyphen: New file.
4693         * modules/unictype/property-punctuation: New file.
4694         * modules/unictype/property-line-separator: New file.
4695         * modules/unictype/property-paragraph-separator: New file.
4696         * modules/unictype/property-quotation-mark: New file.
4697         * modules/unictype/property-sentence-terminal: New file.
4698         * modules/unictype/property-terminal-punctuation: New file.
4699         * modules/unictype/property-currency-symbol: New file.
4700         * modules/unictype/property-math: New file.
4701         * modules/unictype/property-other-math: New file.
4702         * modules/unictype/property-paired-punctuation: New file.
4703         * modules/unictype/property-left-of-pair: New file.
4704         * modules/unictype/property-combining: New file.
4705         * modules/unictype/property-composite: New file.
4706         * modules/unictype/property-decimal-digit: New file.
4707         * modules/unictype/property-numeric: New file.
4708         * modules/unictype/property-diacritic: New file.
4709         * modules/unictype/property-extender: New file.
4710         * modules/unictype/property-ignorable-control: New file.
4711         * modules/unictype/property-test: New file.
4712         * modules/unictype/property-byname: New file.
4713         * modules/unictype/property-all: New file.
4714         * modules/unictype/scripts: New file.
4715         * modules/unictype/scripts-all: New file.
4716         * modules/unictype/block-of: New file.
4717         * modules/unictype/block-test: New file.
4718         * modules/unictype/block-list: New file.
4719         * modules/unictype/block-all: New file.
4720         * modules/unictype/syntax-c-whitespace: New file.
4721         * modules/unictype/syntax-java-whitespace: New file.
4722         * modules/unictype/syntax-c-ident: New file.
4723         * modules/unictype/syntax-java-ident: New file.
4724         * modules/unictype/ctype-alnum: New file.
4725         * modules/unictype/ctype-alpha: New file.
4726         * modules/unictype/ctype-cntrl: New file.
4727         * modules/unictype/ctype-digit: New file.
4728         * modules/unictype/ctype-graph: New file.
4729         * modules/unictype/ctype-lower: New file.
4730         * modules/unictype/ctype-print: New file.
4731         * modules/unictype/ctype-punct: New file.
4732         * modules/unictype/ctype-space: New file.
4733         * modules/unictype/ctype-upper: New file.
4734         * modules/unictype/ctype-xdigit: New file.
4735         * modules/unictype/ctype-blank: New file.
4736         * lib/unictype/bidi_byname.c: New file.
4737         * lib/unictype/bidi_name.c: New file.
4738         * lib/unictype/bidi_of.c: New file.
4739         * lib/unictype/bidi_test.c: New file.
4740         * lib/unictype/bitmap.h: New file.
4741         * lib/unictype/block_test.c: New file.
4742         * lib/unictype/blocks.c: New file.
4743         * lib/unictype/categ_C.c: New file.
4744         * lib/unictype/categ_Cc.c: New file.
4745         * lib/unictype/categ_Cf.c: New file.
4746         * lib/unictype/categ_Cn.c: New file.
4747         * lib/unictype/categ_Co.c: New file.
4748         * lib/unictype/categ_Cs.c: New file.
4749         * lib/unictype/categ_L.c: New file.
4750         * lib/unictype/categ_Ll.c: New file.
4751         * lib/unictype/categ_Lm.c: New file.
4752         * lib/unictype/categ_Lo.c: New file.
4753         * lib/unictype/categ_Lt.c: New file.
4754         * lib/unictype/categ_Lu.c: New file.
4755         * lib/unictype/categ_M.c: New file.
4756         * lib/unictype/categ_Mc.c: New file.
4757         * lib/unictype/categ_Me.c: New file.
4758         * lib/unictype/categ_Mn.c: New file.
4759         * lib/unictype/categ_N.c: New file.
4760         * lib/unictype/categ_Nd.c: New file.
4761         * lib/unictype/categ_Nl.c: New file.
4762         * lib/unictype/categ_No.c: New file.
4763         * lib/unictype/categ_P.c: New file.
4764         * lib/unictype/categ_Pc.c: New file.
4765         * lib/unictype/categ_Pd.c: New file.
4766         * lib/unictype/categ_Pe.c: New file.
4767         * lib/unictype/categ_Pf.c: New file.
4768         * lib/unictype/categ_Pi.c: New file.
4769         * lib/unictype/categ_Po.c: New file.
4770         * lib/unictype/categ_Ps.c: New file.
4771         * lib/unictype/categ_S.c: New file.
4772         * lib/unictype/categ_Sc.c: New file.
4773         * lib/unictype/categ_Sk.c: New file.
4774         * lib/unictype/categ_Sm.c: New file.
4775         * lib/unictype/categ_So.c: New file.
4776         * lib/unictype/categ_Z.c: New file.
4777         * lib/unictype/categ_Zl.c: New file.
4778         * lib/unictype/categ_Zp.c: New file.
4779         * lib/unictype/categ_Zs.c: New file.
4780         * lib/unictype/categ_and.c: New file.
4781         * lib/unictype/categ_and_not.c: New file.
4782         * lib/unictype/categ_byname.c: New file.
4783         * lib/unictype/categ_name.c: New file.
4784         * lib/unictype/categ_none.c: New file.
4785         * lib/unictype/categ_of.c: New file.
4786         * lib/unictype/categ_or.c: New file.
4787         * lib/unictype/categ_test.c: New file.
4788         * lib/unictype/combining.c: New file.
4789         * lib/unictype/ctype_alnum.c: New file.
4790         * lib/unictype/ctype_alpha.c: New file.
4791         * lib/unictype/ctype_blank.c: New file.
4792         * lib/unictype/ctype_cntrl.c: New file.
4793         * lib/unictype/ctype_digit.c: New file.
4794         * lib/unictype/ctype_graph.c: New file.
4795         * lib/unictype/ctype_lower.c: New file.
4796         * lib/unictype/ctype_print.c: New file.
4797         * lib/unictype/ctype_punct.c: New file.
4798         * lib/unictype/ctype_space.c: New file.
4799         * lib/unictype/ctype_upper.c: New file.
4800         * lib/unictype/ctype_xdigit.c: New file.
4801         * lib/unictype/decdigit.c: New file.
4802         * lib/unictype/digit.c: New file.
4803         * lib/unictype/identsyntaxmap.h: New file.
4804         * lib/unictype/mirror.c: New file.
4805         * lib/unictype/numeric.c: New file.
4806         * lib/unictype/pr_alphabetic.c: New file.
4807         * lib/unictype/pr_ascii_hex_digit.c: New file.
4808         * lib/unictype/pr_bidi_arabic_digit.c: New file.
4809         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
4810         * lib/unictype/pr_bidi_block_separator.c: New file.
4811         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
4812         * lib/unictype/pr_bidi_common_separator.c: New file.
4813         * lib/unictype/pr_bidi_control.c: New file.
4814         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
4815         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
4816         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
4817         * lib/unictype/pr_bidi_european_digit.c: New file.
4818         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
4819         * lib/unictype/pr_bidi_left_to_right.c: New file.
4820         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
4821         * lib/unictype/pr_bidi_other_neutral.c: New file.
4822         * lib/unictype/pr_bidi_pdf.c: New file.
4823         * lib/unictype/pr_bidi_segment_separator.c: New file.
4824         * lib/unictype/pr_bidi_whitespace.c: New file.
4825         * lib/unictype/pr_byname.c: New file.
4826         * lib/unictype/pr_byname.gperf: New file.
4827         * lib/unictype/pr_combining.c: New file.
4828         * lib/unictype/pr_composite.c: New file.
4829         * lib/unictype/pr_currency_symbol.c: New file.
4830         * lib/unictype/pr_dash.c: New file.
4831         * lib/unictype/pr_decimal_digit.c: New file.
4832         * lib/unictype/pr_default_ignorable_code_point.c: New file.
4833         * lib/unictype/pr_deprecated.c: New file.
4834         * lib/unictype/pr_diacritic.c: New file.
4835         * lib/unictype/pr_extender.c: New file.
4836         * lib/unictype/pr_format_control.c: New file.
4837         * lib/unictype/pr_grapheme_base.c: New file.
4838         * lib/unictype/pr_grapheme_extend.c: New file.
4839         * lib/unictype/pr_grapheme_link.c: New file.
4840         * lib/unictype/pr_hex_digit.c: New file.
4841         * lib/unictype/pr_hyphen.c: New file.
4842         * lib/unictype/pr_id_continue.c: New file.
4843         * lib/unictype/pr_id_start.c: New file.
4844         * lib/unictype/pr_ideographic.c: New file.
4845         * lib/unictype/pr_ids_binary_operator.c: New file.
4846         * lib/unictype/pr_ids_trinary_operator.c: New file.
4847         * lib/unictype/pr_ignorable_control.c: New file.
4848         * lib/unictype/pr_iso_control.c: New file.
4849         * lib/unictype/pr_join_control.c: New file.
4850         * lib/unictype/pr_left_of_pair.c: New file.
4851         * lib/unictype/pr_line_separator.c: New file.
4852         * lib/unictype/pr_logical_order_exception.c: New file.
4853         * lib/unictype/pr_lowercase.c: New file.
4854         * lib/unictype/pr_math.c: New file.
4855         * lib/unictype/pr_non_break.c: New file.
4856         * lib/unictype/pr_not_a_character.c: New file.
4857         * lib/unictype/pr_numeric.c: New file.
4858         * lib/unictype/pr_other_alphabetic.c: New file.
4859         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
4860         * lib/unictype/pr_other_grapheme_extend.c: New file.
4861         * lib/unictype/pr_other_id_continue.c: New file.
4862         * lib/unictype/pr_other_id_start.c: New file.
4863         * lib/unictype/pr_other_lowercase.c: New file.
4864         * lib/unictype/pr_other_math.c: New file.
4865         * lib/unictype/pr_other_uppercase.c: New file.
4866         * lib/unictype/pr_paired_punctuation.c: New file.
4867         * lib/unictype/pr_paragraph_separator.c: New file.
4868         * lib/unictype/pr_pattern_syntax.c: New file.
4869         * lib/unictype/pr_pattern_white_space.c: New file.
4870         * lib/unictype/pr_private_use.c: New file.
4871         * lib/unictype/pr_punctuation.c: New file.
4872         * lib/unictype/pr_quotation_mark.c: New file.
4873         * lib/unictype/pr_radical.c: New file.
4874         * lib/unictype/pr_sentence_terminal.c: New file.
4875         * lib/unictype/pr_soft_dotted.c: New file.
4876         * lib/unictype/pr_space.c: New file.
4877         * lib/unictype/pr_terminal_punctuation.c: New file.
4878         * lib/unictype/pr_test.c: New file.
4879         * lib/unictype/pr_titlecase.c: New file.
4880         * lib/unictype/pr_unassigned_code_value.c: New file.
4881         * lib/unictype/pr_unified_ideograph.c: New file.
4882         * lib/unictype/pr_uppercase.c: New file.
4883         * lib/unictype/pr_variation_selector.c: New file.
4884         * lib/unictype/pr_white_space.c: New file.
4885         * lib/unictype/pr_xid_continue.c: New file.
4886         * lib/unictype/pr_xid_start.c: New file.
4887         * lib/unictype/pr_zero_width.c: New file.
4888         * lib/unictype/scripts.c: New file.
4889         * lib/unictype/sy_c_ident.c: New file.
4890         * lib/unictype/sy_c_whitespace.c: New file.
4891         * lib/unictype/sy_java_ident.c: New file.
4892         * lib/unictype/sy_java_whitespace.c: New file.
4893
4894         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
4895         Unicode 5.0.0.
4896         * lib/unictype/blocks.h: Likewise.
4897         * lib/unictype/categ_C.h: Likewise.
4898         * lib/unictype/categ_Cc.h: Likewise.
4899         * lib/unictype/categ_Cf.h: Likewise.
4900         * lib/unictype/categ_Cn.h: Likewise.
4901         * lib/unictype/categ_Co.h: Likewise.
4902         * lib/unictype/categ_Cs.h: Likewise.
4903         * lib/unictype/categ_L.h: Likewise.
4904         * lib/unictype/categ_Ll.h: Likewise.
4905         * lib/unictype/categ_Lm.h: Likewise.
4906         * lib/unictype/categ_Lo.h: Likewise.
4907         * lib/unictype/categ_Lt.h: Likewise.
4908         * lib/unictype/categ_Lu.h: Likewise.
4909         * lib/unictype/categ_M.h: Likewise.
4910         * lib/unictype/categ_Mc.h: Likewise.
4911         * lib/unictype/categ_Me.h: Likewise.
4912         * lib/unictype/categ_Mn.h: Likewise.
4913         * lib/unictype/categ_N.h: Likewise.
4914         * lib/unictype/categ_Nd.h: Likewise.
4915         * lib/unictype/categ_Nl.h: Likewise.
4916         * lib/unictype/categ_No.h: Likewise.
4917         * lib/unictype/categ_P.h: Likewise.
4918         * lib/unictype/categ_Pc.h: Likewise.
4919         * lib/unictype/categ_Pd.h: Likewise.
4920         * lib/unictype/categ_Pe.h: Likewise.
4921         * lib/unictype/categ_Pf.h: Likewise.
4922         * lib/unictype/categ_Pi.h: Likewise.
4923         * lib/unictype/categ_Po.h: Likewise.
4924         * lib/unictype/categ_Ps.h: Likewise.
4925         * lib/unictype/categ_S.h: Likewise.
4926         * lib/unictype/categ_Sc.h: Likewise.
4927         * lib/unictype/categ_Sk.h: Likewise.
4928         * lib/unictype/categ_Sm.h: Likewise.
4929         * lib/unictype/categ_So.h: Likewise.
4930         * lib/unictype/categ_Z.h: Likewise.
4931         * lib/unictype/categ_Zl.h: Likewise.
4932         * lib/unictype/categ_Zp.h: Likewise.
4933         * lib/unictype/categ_Zs.h: Likewise.
4934         * lib/unictype/categ_of.h: Likewise.
4935         * lib/unictype/combining.h: Likewise.
4936         * lib/unictype/ctype_alnum.h: Likewise.
4937         * lib/unictype/ctype_alpha.h: Likewise.
4938         * lib/unictype/ctype_blank.h: Likewise.
4939         * lib/unictype/ctype_cntrl.h: Likewise.
4940         * lib/unictype/ctype_digit.h: Likewise.
4941         * lib/unictype/ctype_graph.h: Likewise.
4942         * lib/unictype/ctype_lower.h: Likewise.
4943         * lib/unictype/ctype_print.h: Likewise.
4944         * lib/unictype/ctype_punct.h: Likewise.
4945         * lib/unictype/ctype_space.h: Likewise.
4946         * lib/unictype/ctype_upper.h: Likewise.
4947         * lib/unictype/ctype_xdigit.h: Likewise.
4948         * lib/unictype/decdigit.h: Likewise.
4949         * lib/unictype/digit.h: Likewise.
4950         * lib/unictype/mirror.h: Likewise.
4951         * lib/unictype/numeric.h: Likewise.
4952         * lib/unictype/pr_alphabetic.h: Likewise.
4953         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
4954         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
4955         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
4956         * lib/unictype/pr_bidi_block_separator.h: Likewise.
4957         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
4958         * lib/unictype/pr_bidi_common_separator.h: Likewise.
4959         * lib/unictype/pr_bidi_control.h: Likewise.
4960         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
4961         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
4962         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
4963         * lib/unictype/pr_bidi_european_digit.h: Likewise.
4964         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
4965         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
4966         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
4967         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
4968         * lib/unictype/pr_bidi_pdf.h: Likewise.
4969         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
4970         * lib/unictype/pr_bidi_whitespace.h: Likewise.
4971         * lib/unictype/pr_combining.h: Likewise.
4972         * lib/unictype/pr_composite.h: Likewise.
4973         * lib/unictype/pr_currency_symbol.h: Likewise.
4974         * lib/unictype/pr_dash.h: Likewise.
4975         * lib/unictype/pr_decimal_digit.h: Likewise.
4976         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
4977         * lib/unictype/pr_deprecated.h: Likewise.
4978         * lib/unictype/pr_diacritic.h: Likewise.
4979         * lib/unictype/pr_extender.h: Likewise.
4980         * lib/unictype/pr_format_control.h: Likewise.
4981         * lib/unictype/pr_grapheme_base.h: Likewise.
4982         * lib/unictype/pr_grapheme_extend.h: Likewise.
4983         * lib/unictype/pr_grapheme_link.h: Likewise.
4984         * lib/unictype/pr_hex_digit.h: Likewise.
4985         * lib/unictype/pr_hyphen.h: Likewise.
4986         * lib/unictype/pr_id_continue.h: Likewise.
4987         * lib/unictype/pr_id_start.h: Likewise.
4988         * lib/unictype/pr_ideographic.h: Likewise.
4989         * lib/unictype/pr_ids_binary_operator.h: Likewise.
4990         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
4991         * lib/unictype/pr_ignorable_control.h: Likewise.
4992         * lib/unictype/pr_iso_control.h: Likewise.
4993         * lib/unictype/pr_join_control.h: Likewise.
4994         * lib/unictype/pr_left_of_pair.h: Likewise.
4995         * lib/unictype/pr_line_separator.h: Likewise.
4996         * lib/unictype/pr_logical_order_exception.h: Likewise.
4997         * lib/unictype/pr_lowercase.h: Likewise.
4998         * lib/unictype/pr_math.h: Likewise.
4999         * lib/unictype/pr_non_break.h: Likewise.
5000         * lib/unictype/pr_not_a_character.h: Likewise.
5001         * lib/unictype/pr_numeric.h: Likewise.
5002         * lib/unictype/pr_other_alphabetic.h: Likewise.
5003         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
5004         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
5005         * lib/unictype/pr_other_id_continue.h: Likewise.
5006         * lib/unictype/pr_other_id_start.h: Likewise.
5007         * lib/unictype/pr_other_lowercase.h: Likewise.
5008         * lib/unictype/pr_other_math.h: Likewise.
5009         * lib/unictype/pr_other_uppercase.h: Likewise.
5010         * lib/unictype/pr_paired_punctuation.h: Likewise.
5011         * lib/unictype/pr_paragraph_separator.h: Likewise.
5012         * lib/unictype/pr_pattern_syntax.h: Likewise.
5013         * lib/unictype/pr_pattern_white_space.h: Likewise.
5014         * lib/unictype/pr_private_use.h: Likewise.
5015         * lib/unictype/pr_punctuation.h: Likewise.
5016         * lib/unictype/pr_quotation_mark.h: Likewise.
5017         * lib/unictype/pr_radical.h: Likewise.
5018         * lib/unictype/pr_sentence_terminal.h: Likewise.
5019         * lib/unictype/pr_soft_dotted.h: Likewise.
5020         * lib/unictype/pr_space.h: Likewise.
5021         * lib/unictype/pr_terminal_punctuation.h: Likewise.
5022         * lib/unictype/pr_titlecase.h: Likewise.
5023         * lib/unictype/pr_unassigned_code_value.h: Likewise.
5024         * lib/unictype/pr_unified_ideograph.h: Likewise.
5025         * lib/unictype/pr_uppercase.h: Likewise.
5026         * lib/unictype/pr_variation_selector.h: Likewise.
5027         * lib/unictype/pr_white_space.h: Likewise.
5028         * lib/unictype/pr_xid_continue.h: Likewise.
5029         * lib/unictype/pr_xid_start.h: Likewise.
5030         * lib/unictype/pr_zero_width.h: Likewise.
5031         * lib/unictype/scripts.h: Likewise.
5032         * lib/unictype/scripts_byname.gperf: Likewise.
5033         * lib/unictype/sy_c_ident.h: Likewise.
5034         * lib/unictype/sy_c_whitespace.h: Likewise.
5035         * lib/unictype/sy_java_ident.h: Likewise.
5036         * lib/unictype/sy_java_whitespace.h: Likewise.
5037
5038         * lib/unictype/Makefile: New file.
5039         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
5040         glibc.
5041         * lib/unictype/3level.h: New file, copied from glibc.
5042         * lib/unictype/3levelbit.h: New file.
5043
5044 2007-11-11  Bruno Haible  <bruno@clisp.org>
5045
5046         * modules/gperf: New file.
5047         * modules/iconv_open (Depends-on): Add it.
5048         (Makefile.am): Remove the GPERF definition.
5049
5050 2007-11-11  Bruno Haible  <bruno@clisp.org>
5051
5052         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
5053         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
5054
5055 2007-11-11  Bruno Haible  <bruno@clisp.org>
5056
5057         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
5058         (usage): Remove function.
5059
5060 2007-11-11  Bruno Haible  <bruno@clisp.org>
5061
5062         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
5063         gl_FUNC_CEILF_LIBS.
5064         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
5065         gl_FUNC_CEIL_LIBS.
5066         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
5067         gl_FUNC_CEILL_LIBS.
5068         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
5069         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
5070         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
5071
5072 2007-11-11  Bruno Haible  <bruno@clisp.org>
5073
5074         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
5075         roundf were declared but do not exist on functions.
5076         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
5077         roundl were declared but do not exist on functions.
5078         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
5079         HAVE_FLOORL_AND_CEILL, respectively.
5080         Needed for Sun C on Solaris 10.
5081
5082 2007-11-11  Bruno Haible  <bruno@clisp.org>
5083
5084         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
5085         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
5086         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
5087         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
5088         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
5089         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
5090         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
5091         HAVE_DECL_ROUNDF.
5092         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
5093         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
5094         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
5095         of HAVE_DECL_ROUND*.
5096         * modules/math (Makefile.am): Update.
5097
5098 2007-11-10  Bruno Haible  <bruno@clisp.org>
5099
5100         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
5101         ptrdiff_t as m4/intl.m4.
5102
5103 2007-11-10  Jim Meyering  <meyering@redhat.com>
5104
5105         Avoid link failure for the argmatch test.
5106         * tests/test-argmatch.c (usage): Define function to avoid a link
5107         failure: argmatch_die requires a usage function.
5108
5109 2007-11-09  Bruno Haible  <bruno@clisp.org>
5110
5111         * doc/functions/snprintf.texi: Mention BeOS deficiency.
5112         * doc/functions/vsnprintf.texi: Likewise.
5113         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
5114         with a size argument < 2.
5115
5116 2007-11-09  Bruno Haible  <bruno@clisp.org>
5117
5118         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
5119         buffer. Fixes an inefficiency introduced on 2007-11-03.
5120
5121 2007-11-09  Bruno Haible  <bruno@clisp.org>
5122
5123         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
5124         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
5125
5126 2007-11-08  Jim Meyering  <meyering@redhat.com>
5127
5128         Change cache variable name prefix "jm_" to "gl_" everywhere.
5129         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
5130         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
5131         * m4/uptime.m4: s/gl_/jm_/
5132
5133 2007-11-07  Bruno Haible  <bruno@clisp.org>
5134
5135         Update to GNU gettext 0.17.
5136         * m4/intl.m4: Update to GNU gettext 0.17.
5137         * m4/po.m4: Likewise.
5138         * modules/gettext (Files): Remove m4/ulonglong.m4.
5139         (configure.ac): Require gettext infrastructure from version 0.17.
5140
5141 2007-11-06  Bruno Haible  <bruno@clisp.org>
5142
5143         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
5144         symbolic values are not defined in a public header.
5145         * lib/freadable.c (freadable) [QNX]: Likewise.
5146         * lib/freadahead.c (freadahead) [QNX]: Likewise.
5147         * lib/freading.c (freading) [QNX]: Likewise.
5148         * lib/fseterr.c (fseterr) [QNX]: Likewise.
5149         * lib/fwritable.c (fwritable) [QNX]: Likewise.
5150         * lib/fwriting.c (fwriting) [QNX]: Likewise.
5151         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
5152         Reported by Alain Magloire.
5153
5154         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
5155
5156 2007-11-05  Bruno Haible  <bruno@clisp.org>
5157
5158         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
5159         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
5160         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
5161         Reported by Eric Blake.
5162
5163 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5164             Bruno Haible  <bruno@clisp.org>
5165
5166         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
5167         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
5168         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
5169         (malloc): Undefine also before including <stdlib.h>.
5170         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
5171         Needed on OSF/1 4.0.
5172
5173 2007-11-05  Jim Meyering  <meyering@redhat.com>
5174
5175         git-version-gen: sync from coreutils.
5176         * build-aux/git-version-gen: Add comments.
5177         Change the first '-' to '.' in the snapshot version string,
5178         e.g., 6.9-377-08144 -> 6.9.377-08144
5179         Remove first parameter.
5180         Don't declare a version "-dirty" merely because a time
5181         stamp has changed.
5182
5183 2007-11-04  Bruno Haible  <bruno@clisp.org>
5184
5185         * lib/lock.h: Protect all macro definitions containing an 'if'
5186         statement through a "do { ... } while (0)".
5187         * lib/tls.h: Likewise.
5188
5189 2007-11-04  Bruno Haible  <bruno@clisp.org>
5190
5191         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
5192
5193 2007-11-04  Bruno Haible  <bruno@clisp.org>
5194
5195         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
5196         * modules/fprintf-posix (Depends-on): Add nocrash.
5197         * modules/snprintf-posix (Depends-on): Likewise.
5198         * modules/sprintf-posix (Depends-on): Likewise.
5199         * modules/vasnprintf-posix (Depends-on): Likewise.
5200         * modules/vasprintf-posix (Depends-on): Likewise.
5201         * modules/vfprintf-posix (Depends-on): Likewise.
5202         * modules/vsnprintf-posix (Depends-on): Likewise.
5203         * modules/vsprintf-posix (Depends-on): Likewise.
5204         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
5205         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
5206         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
5207         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
5208         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
5209         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
5210         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
5211
5212 2007-11-04  Bruno Haible  <bruno@clisp.org>
5213
5214         * modules/nocrash: New file.
5215         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
5216         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
5217
5218 2007-11-04  Bruno Haible  <bruno@clisp.org>
5219
5220         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
5221         precision handling.
5222         * tests/test-vasprintf-posix.c (test_function): Likewise.
5223         * tests/test-snprintf-posix.h (test_function): Likewise.
5224         * tests/test-sprintf-posix.h (test_function): Likewise.
5225
5226         Fix *printf behaviour for large precisions on mingw and BeOS.
5227         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
5228         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
5229         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
5230         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
5231         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
5232         gl_PRINTF_PRECISION and test its result. Invoke
5233         gl_PREREQ_VASNPRINTF_PRECISION.
5234         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5235         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5236         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5237         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5238         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5239         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5240         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5241         * doc/functions/fprintf.texi: Update.
5242         * doc/functions/printf.texi: Update.
5243         * doc/functions/snprintf.texi: Update.
5244         * doc/functions/sprintf.texi: Update.
5245         * doc/functions/vfprintf.texi: Update.
5246         * doc/functions/vprintf.texi: Update.
5247         * doc/functions/vsnprintf.texi: Update.
5248         * doc/functions/vsprintf.texi: Update.
5249
5250 2007-11-04  Bruno Haible  <bruno@clisp.org>
5251
5252         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
5253
5254 2007-11-04  Bruno Haible  <bruno@clisp.org>
5255
5256         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
5257         Reported by Sylvain Beucler <beuc@gnu.org>.
5258
5259 2007-11-03  Bruno Haible  <bruno@clisp.org>
5260
5261         * tests/test-fprintf-posix2.sh: New file.
5262         * tests/test-fprintf-posix2.c: New file.
5263         * modules/fprintf-posix-tests (Files): Add them.
5264         (TESTS): Add test-fprintf-posix2.sh.
5265         (configure.ac): Check for getrlimit and setrlimit.
5266         (check_PROGRAMS): Add test-fprintf-posix2.
5267
5268         * tests/test-printf-posix2.sh: New file.
5269         * tests/test-printf-posix2.c: New file.
5270         * modules/printf-posix-tests (Files): Add them.
5271         (TESTS): Add test-printf-posix2.sh.
5272         (configure.ac): Check for getrlimit and setrlimit.
5273         (check_PROGRAMS): Add test-printf-posix2.
5274
5275         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
5276         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
5277         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
5278         (decode_double): New function, copied from decode_long_double.
5279         (scale10_round_decimal_decoded): New function, extracted from
5280         scale10_round_decimal_long_double.
5281         (scale10_round_decimal_long_double): Use it.
5282         (scale10_round_decimal_double): New function.
5283         (floorlog10): New function.
5284         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
5285         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
5286         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
5287         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
5288         gl_PRINTF_ENOMEM and test its result. Invoke
5289         gl_PREREQ_VASNPRINTF_ENOMEM.
5290         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5291         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5292         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5293         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5294         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5295         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5296         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5297         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
5298         * modules/snprintf-posix (Depends-on): Likewise.
5299         * modules/sprintf-posix (Depends-on): Likewise.
5300         * modules/vasnprintf-posix (Depends-on): Likewise.
5301         * modules/vasprintf-posix (Depends-on): Likewise.
5302         * modules/vfprintf-posix (Depends-on): Likewise.
5303         * modules/vsnprintf-posix (Depends-on): Likewise.
5304         * modules/vsprintf-posix (Depends-on): Likewise.
5305         * doc/functions/fprintf.texi: Update.
5306         * doc/functions/printf.texi: Update.
5307         * doc/functions/snprintf.texi: Update.
5308         * doc/functions/sprintf.texi: Update.
5309         * doc/functions/vfprintf.texi: Update.
5310         * doc/functions/vprintf.texi: Update.
5311         * doc/functions/vsnprintf.texi: Update.
5312         * doc/functions/vsprintf.texi: Update.
5313
5314 2007-11-03  Bruno Haible  <bruno@clisp.org>
5315
5316         * modules/frexp-nolibm-tests: New file.
5317
5318         * modules/frexp-nolibm: New file.
5319         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
5320
5321 2007-11-03  Bruno Haible  <bruno@clisp.org>
5322
5323         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
5324         value is C99 compliant.
5325         Needed for OSF/1 5.1.
5326
5327 2007-11-03  Bruno Haible  <bruno@clisp.org>
5328
5329         Fix out-of-memory handling of vasnprintf.
5330         * lib/printf-parse.c: Include <errno.h>.
5331         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
5332         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
5333         is already set.
5334
5335 2007-11-02  Eric Blake  <ebb9@byu.net>
5336
5337         Fix tests on cygwin.
5338         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
5339
5340 2007-11-01  Bruno Haible  <bruno@clisp.org>
5341
5342         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
5343         warning.
5344         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
5345         needed for POSIX compatibility.
5346
5347 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5348
5349         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
5350         for compatibility with GNU.
5351
5352 2007-11-01  Bruno Haible  <bruno@clisp.org>
5353
5354         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
5355         (putenv): Renamed from rpl_putenv. Change argument type from
5356         'const char *' to 'char *'.
5357         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
5358         of defining putenv in config.h, just set REPLACE_PUTENV.
5359         * modules/putenv (Depends-on): Add stdlib.
5360         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5361         (Include): Use <stdlib.h>.
5362         * lib/stdlib.in.h (putenv): New declaration.
5363         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
5364         REPLACE_PUTENV.
5365         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
5366         REPLACE_PUTENV.
5367         Needed for MacOS X 10.5.0.
5368         Reported by Peter O'Gorman <peter@pogma.com>.
5369
5370 2007-11-01  Jim Meyering  <meyering@redhat.com>
5371
5372         Treat an empty date string exactly like "0".
5373         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
5374         if the remaining date string (to be parsed) is empty, use "0".
5375         Reported by Mischa Molhoek and discussed in this thread:
5376         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
5377
5378 2007-10-31  Bruno Haible  <bruno@clisp.org>
5379
5380         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
5381         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
5382         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
5383         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
5384         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
5385         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
5386
5387 2007-10-31  Bruno Haible  <bruno@clisp.org>
5388
5389         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
5390         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
5391         (AC_TYPE_LONG_LONG_INT): Use it.
5392         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
5393         it as well.
5394         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
5395         to m4/longlong.m4.
5396         * modules/stdint (Files): Remove m4/ulonglong.m4.
5397         * modules/strtoull (Files): Use m4/longlong.m4 instead of
5398         m4/ulonglong.m4.
5399         * modules/strtoumax (Files): Likewise.
5400
5401 2007-10-30  Bruno Haible  <bruno@clisp.org>
5402
5403         * modules/xvasprintf-posix: New file.
5404         Suggested by Eric Blake.
5405
5406 2007-10-30  Bruno Haible  <bruno@clisp.org>
5407
5408         * modules/xprintf-posix-tests: New file.
5409         * tests/test-xprintf-posix.sh: New file.
5410         * tests/test-xprintf-posix.c: New file.
5411         * tests/test-xfprintf-posix.c: New file.
5412
5413         * modules/xprintf-posix: New file.
5414
5415 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5416
5417         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
5418         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
5419         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
5420
5421 2007-10-29  Bruno Haible  <bruno@clisp.org>
5422
5423         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
5424         contain the special marker '_cv_'.
5425         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
5426         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
5427         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
5428         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
5429         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
5430         Reported by Ralf Wildenhues.
5431
5432 2007-10-29  Bruno Haible  <bruno@clisp.org>
5433
5434         * gnulib-tool (func_import): When --lgpl is not specified, set
5435         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
5436         GPLv3.
5437         Reported by Simon Josefsson.
5438
5439 2007-10-28  Bruno Haible  <bruno@clisp.org>
5440
5441         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
5442         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
5443         HAVE_DECL_ISFINITE.
5444         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
5445         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
5446         HAVE_DECL_ISFINITE.
5447
5448 2007-10-28  Bruno Haible  <bruno@clisp.org>
5449
5450         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
5451         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
5452
5453 2007-10-28  Bruno Haible  <bruno@clisp.org>
5454
5455         Fix link errors with Sun C 5.0 on Solaris 10.
5456         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
5457         function is declared but not present in the compiler's libm.
5458         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
5459         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5460         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
5461         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
5462         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
5463         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
5464         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
5465         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
5466         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
5467         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
5468         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
5469         HAVE_DECL_FLOORL.
5470
5471 2007-10-28  Bruno Haible  <bruno@clisp.org>
5472
5473         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
5474         gl_FUNC_FLOORL. Cache the result.
5475         (gl_FUNC_FLOORL): Use it.
5476         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
5477         gl_FUNC_CEILL. Cache the result.
5478         (gl_FUNC_CEILL): Use it.
5479
5480         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
5481         gl_FUNC_FLOOR. Cache the result.
5482         (gl_FUNC_FLOOR): Use it.
5483         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
5484         gl_FUNC_CEIL. Cache the result.
5485         (gl_FUNC_CEIL): Use it.
5486
5487         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
5488         gl_FUNC_FLOORF. Cache the result.
5489         (gl_FUNC_FLOORF): Use it.
5490         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
5491         gl_FUNC_CEILF. Cache the result.
5492         (gl_FUNC_CEILF): Use it.
5493
5494 2007-10-28  Bruno Haible  <bruno@clisp.org>
5495
5496         * gnulib-tool: Allow specifying the LGPL version number through
5497         --lgpl=2 or --lgpl=3.
5498         (func_usage): Document --lgpl with argument.
5499         Handle --lgpl=... arguments.
5500         (func_import): Recognize also gl_LGPL calls with an argument. When
5501         --lgpl=2 is used and the module's license is just LGPL, report an
5502         error. Set sed_transform_lib_file according to the lgpl variable. In
5503         the generated files, use --lgpl or gl_LGPL invocations with argument,
5504         if necessary.
5505         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
5506         an LGPv2+ license.
5507         * doc/gnulib-tool.texi (Modified imports): Update explanation of
5508         gl_LGPL macro.
5509
5510 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5511             Bruno Haible  <bruno@clisp.org>
5512
5513         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
5514         (u16_uctomb_aux): Likewise.
5515         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
5516         !HAVE_INLINE.
5517         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
5518
5519 2007-10-28  Bruno Haible  <bruno@clisp.org>
5520
5521         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
5522         Invoke AM_GETTEXT_OPTION if it exists.
5523         * modules/vasprintf: Likewise.
5524         * modules/verror: Likewise.
5525         * modules/xprintf: Likewise.
5526         * modules/xvasprintf: Likewise.
5527
5528 2007-10-27  Ben Pfaff  <blp@gnu.org>
5529
5530         * lib/math.in.h: Define isfinite macro and prototypes for
5531         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
5532         implementations.
5533         * m4/math_h.m4: New substitutions for isfinite module.
5534         * lib/isfinite.c: New file.
5535         * m4/isfinite.m4: New file.
5536         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
5537         * modules/isfinite: New file.
5538         * modules/isfinite-tests: New file.
5539         * tests/tests-isfinite.c: New file.
5540         * doc/functions/isfinite.texi: Mention isfinite module.
5541         * MODULES.html.sh: Mention new module.
5542
5543 2007-10-27  Ben Pfaff  <blp@gnu.org>
5544
5545         Ralf Wildenhues reported that Tru64 4.0D declares the round
5546         functions but does not have definitions.
5547         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
5548         cannot be found in any library, set the output variable to
5549         "missing" instead of "".
5550         * m4/round.m4: Also use our substitute if we cannot find round in
5551         any library, even if it is declared.
5552         * m4/roundf.m4: Likewise for roundf.
5553         * m4/roundl.m4: Likewise for roundl.
5554         * lib/math.in.h: Undefine roundf, round, roundl before defining
5555         their replacements, to allow for hypothetical systems where these
5556         may be defined as macros but not available in libraries.
5557
5558 2007-10-27  Bruno Haible  <bruno@clisp.org>
5559
5560         * doc/gnulib.texi: Invoke @firstparagraphindent.
5561         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
5562         changes in gnulib.
5563         (Source changes): New section.
5564
5565 2007-10-26  Bruno Haible  <bruno@clisp.org>
5566
5567         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
5568         borrowed from autoconf.
5569
5570 2007-10-26  Bruno Haible  <bruno@clisp.org>
5571
5572         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
5573         strerror returned the empty string. Needed on HP-UX 11.00.
5574
5575 2007-10-24  Micah Cowan  <micah@cowan.name>
5576
5577         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
5578         * build-aux/bootstrap: Remove support for now-unnecessary option,
5579         --cvs-user, and envvars CVS_USER, CVS_RSH.
5580
5581 2007-10-24  Jim Meyering  <meyering@redhat.com>
5582
5583         Avoid diagnostics from sha1sum when there is no cached checksum.
5584         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
5585         if the po.s1 file hasn't been created yet.
5586
5587         * build-aux/bootstrap: Sync from coreutils:
5588         2007-10-24  Jim Meyering  <meyering@redhat.com>
5589         Get gnulib from the git repository, not from an obsolete cvs one.
5590         * build-aux/bootstrap: Suggestion from Micah Cowan.
5591         2007-10-04  Jim Meyering  <jim@meyering.net>
5592         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
5593         (update_po_files): Work also when there are no .po files in po/.
5594
5595 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
5596
5597         * README: Append ".git" to git and cg examples.
5598         Problem reported by Benoit Sigoure.
5599
5600 2007-10-23  Micah Cowan  <micah@cowan.name>
5601
5602         * users.txt: Add wget.
5603
5604 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5605
5606         Fix linking of some unistdio tests on FreeBSD.
5607         * modules/unistdio/u16-vsnprintf-tests
5608         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
5609         * modules/unistdio/u16-vsprintf-tests
5610         (test_u16_vsnprintf1_LDADD): Likewise.
5611         * modules/unistdio/u32-vsnprintf-tests
5612         (test_u32_vsnprintf1_LDADD): Likewise.
5613         * modules/unistdio/u32-vsprintf-tests
5614         (test_u32_vsprintf1_LDADD): Likewise.
5615         * modules/unistdio/u8-vsnprintf-tests
5616         (test_u8_vsnprintf1_LDADD): Likewise.
5617         * modules/unistdio/u8-vsprintf-tests
5618         (test_u8_vsprintf1_LDADD): Likewise.
5619         * modules/unistdio/ulc-vsnprintf-tests
5620         (test_ulc_vsnprintf1_LDADD): Likewise.
5621         * modules/unistdio/ulc-vsprintf-tests
5622         (test_ulc_vsprintf1_LDADD): Likewise.
5623
5624         Fix linking of some uniconv tests on FreeBSD.
5625         * modules/uniconv/u16-conv-from-enc-tests
5626         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
5627         * modules/uniconv/u16-conv-to-enc-tests
5628         (test_u16_conv_to_enc_LDADD): Likewise.
5629         * modules/uniconv/u16-strconv-from-enc-tests
5630         (test_u16_strconv_from_enc_LDADD): Likewise.
5631         * modules/uniconv/u16-strconv-to-enc-tests
5632         (test_u16_strconv_to_enc_LDADD): Likewise.
5633         * modules/uniconv/u32-conv-from-enc-tests
5634         (test_u32_conv_from_enc_LDADD): Likewise.
5635         * modules/uniconv/u32-conv-to-enc-tests
5636         (test_u32_conv_to_enc_LDADD): Likewise.
5637         * modules/uniconv/u32-strconv-from-enc-tests
5638         (test_u32_strconv_from_enc_LDADD): Likewise.
5639         * modules/uniconv/u32-strconv-to-enc-tests
5640         (test_u32_strconv_to_enc_LDADD): Likewise.
5641         * modules/uniconv/u8-conv-from-enc-tests
5642         (test_u8_conv_from_enc_LDADD): Likewise.
5643         * modules/uniconv/u8-conv-to-enc-tests
5644         (test_u8_conv_to_enc_LDADD): Likewise.
5645         * modules/uniconv/u8-strconv-from-enc-tests
5646         (test_u8_strconv_from_enc_LDADD): Likewise.
5647         * modules/uniconv/u8-strconv-to-enc-tests
5648         (test_u8_strconv_to_enc_LDADD): Likewise.
5649
5650 2007-10-22  Bruno Haible  <bruno@clisp.org>
5651
5652         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
5653         size.
5654
5655 2007-10-22  Eric Blake  <ebb9@byu.net>
5656
5657         Tweak x*printf documentation.
5658         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
5659         variable name and comments.
5660         Suggested by Bruno Haible.
5661
5662 2007-10-22  Bruno Haible  <bruno@clisp.org>
5663
5664         * lib/acl.c (copy_acl): Fix file name in comment.
5665
5666 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
5667
5668         Fix Tru64 problem with stdbool.h.
5669         * lib/stdbool.in.h (false, true):
5670         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
5671         Don't declare as an enum in this situation; it runs afoul of Tru64.
5672         Problem reported by Steven M. Schweda in
5673         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
5674
5675 2007-10-22  Eric Blake  <ebb9@byu.net>
5676
5677         Also wrap vf?printf.
5678         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
5679         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
5680         (xvprintf, xvfprintf): New functions.
5681
5682 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5683
5684         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
5685         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
5686
5687         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
5688         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
5689
5690 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
5691
5692         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
5693         by Bruno Haible.
5694
5695 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5696
5697         * lib/getloadavg.c
5698         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
5699         Undef `sys' after including sys/table.h, for Tru64 4.0D.
5700
5701         * tests/test-i-ring.c: Work for C89.
5702
5703 2007-10-22  Bruno Haible  <bruno@clisp.org>
5704
5705         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
5706         -1u, in preprocessor expression, so that we don't test for the bug
5707         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
5708         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
5709
5710 2007-10-22  Eric Blake  <ebb9@byu.net>
5711
5712         * tests/test-yesno.sh: Silence stderr during test.
5713
5714 2007-10-22  Simon Josefsson  <simon@josefsson.org>
5715
5716         * modules/crypto/gc-camellia: New file.
5717
5718         * m4/gc-camellia.m4: New file.
5719
5720         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
5721
5722         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
5723
5724 2007-10-22  Simon Josefsson  <simon@josefsson.org>
5725
5726         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
5727         --help to stdout.  Reported by sms@antinode.org (Steven
5728         M. Schweda).
5729
5730 2007-10-22  Simon Josefsson  <simon@josefsson.org>
5731
5732         * users.txt: Fix link to libksba.
5733
5734 2007-10-21  Ben Pfaff  <blp@gnu.org>
5735
5736         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
5737         round.c roundf implementation that depends on floorf and ceilf to
5738         be tested unconditionally.
5739
5740 2007-10-21  Ben Pfaff  <blp@gnu.org>
5741
5742         * m4/check-libm-func.m4: Removed.
5743         * m4/check-math-lib.m4: New file.
5744         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
5745         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
5746         definition and lack of AC_LIBOBJ([roundf]).
5747         * m4/roundl.m4: Ditto, and similarly for roundl.
5748         * modules/round: Reference new m4 file.
5749         * modules/roundf: Ditto.
5750         * modules/roundl: Ditto.
5751         * tests/test-round2.c (main): Use ROUND instead of round.
5752         Bug report from Bruno Haible.
5753
5754 2007-10-21  Bruno Haible  <bruno@clisp.org>
5755
5756         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
5757         context.
5758
5759 2007-10-21  Bruno Haible  <bruno@clisp.org>
5760
5761         * tests/test-wcwidth.c (main): Allow negative result for some control
5762         characters.
5763
5764         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
5765         Needed on OSF/1 5.1.
5766
5767 2007-10-21  Bruno Haible  <bruno@clisp.org>
5768
5769         * tests/test-floorf1.c: Include isnanf.h.
5770         (main): Use isnanf() instead of isnan().
5771         * tests/test-ceilf1.c: Include isnanf.h.
5772         (main): Use isnanf() instead of isnan().
5773         * tests/test-truncf1.c: Include isnanf.h.
5774         (main): Use isnanf() instead of isnan().
5775         * tests/test-roundf1.c: Include isnanf.h.
5776         (main): Use isnanf() instead of isnan().
5777
5778 2007-10-21  Eric Blake  <ebb9@byu.net>
5779
5780         * users.txt: Update URL for m4.
5781
5782 2007-10-21  Bruno Haible  <bruno@clisp.org>
5783
5784         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
5785
5786 2007-10-21  Bruno Haible  <bruno@clisp.org>
5787
5788         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
5789         Git's management files if the CVS files are not present.
5790
5791 2007-10-20  Bruno Haible  <bruno@clisp.org>
5792
5793         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
5794         gcc-3.4.x.
5795
5796 2007-10-20  Ben Pfaff  <blp@gnu.org>
5797
5798         * lib/math.in.h: Declare round, roundf, roundl if we are providing
5799         implementations.
5800         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
5801         * lib/round.c: New file.
5802         * lib/roundf.c: New file.
5803         * lib/roundl.c: New file.
5804         * m4/round.m4: New file.
5805         * m4/roundf.m4: New file.
5806         * m4/roundl.m4: New file.
5807         * m4/check-libm-func-m4: New file.
5808         * modules/math: Replace round, roundf, roundl related @VARS@ in
5809         math.in.h.
5810         * modules/round: New file.
5811         * modules/round-tests: New file.
5812         * modules/roundf: New file.
5813         * modules/roundf-tests: New file.
5814         * modules/roundl: New file.
5815         * modules/roundl-tests: New file.
5816         * tests/test-round1.c: New file.
5817         * tests/test-round2.c: New file.
5818         * tests/test-roundf1.c: New file.
5819         * tests/test-roundf2.c: New file.
5820         * tests/test-roundl.c: New file.
5821         * doc/functions/round.texi: Mention round module.
5822         * doc/functions/roundf.texi: Mention roundf module.
5823         * doc/functions/roundl.texi: Mention roundl module.
5824         * MODULES.html.sh: Mention new modules.
5825         Thanks to Bruno Haible for suggestions.
5826
5827 2007-10-20  Jim Meyering  <meyering@redhat.com>
5828
5829         * lib/xprintf.c: Include <config.h> unconditionally.
5830
5831         Change xprintf's license to GPL.
5832         * modules/xprintf (License): s/LGPL/GPL/, since this module
5833         depends on modules (exit and exitfail) which are GPL.
5834         Suggestion from Bruno Haible.
5835
5836         xprintf fixes.
5837         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
5838         Use a clearer diagnostic.
5839         Patch from Bruno Haible.
5840
5841 2007-10-20  Bruno Haible  <bruno@clisp.org>
5842
5843         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
5844         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
5845         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5846
5847 2007-10-20  Bruno Haible  <bruno@clisp.org>
5848
5849         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
5850         precision in the comparison result > x - 1 or similar.
5851         * tests/test-ceilf2.c (correct_result_p): Likewise.
5852         * tests/test-truncf2.c (correct_result_p): Likewise.
5853         * tests/test-trunc2.c (correct_result_p): Likewise.
5854         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5855
5856 2007-10-20  Bruno Haible  <bruno@clisp.org>
5857
5858         * modules/ceil: New file.
5859         * m4/ceil.m4: New file.
5860         * doc/functions/ceil.texi: Mention the 'ceil' module.
5861
5862 2007-10-20  Bruno Haible  <bruno@clisp.org>
5863
5864         * modules/floor: New file.
5865         * m4/floor.m4: New file.
5866         * doc/functions/floor.texi: Mention the 'floor' module.
5867
5868 2007-10-20  Bruno Haible  <bruno@clisp.org>
5869
5870         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
5871         of %a.
5872         * modules/floorf-tests (Depends-on): Likewise.
5873         * modules/truncf-tests (Depends-on): Likewise.
5874         * modules/trunc-tests (Depends-on): Likewise.
5875         Reported by Ben Pfaff.
5876
5877 2007-10-19  Jim Meyering  <meyering@redhat.com>
5878
5879         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
5880         Don't bother testing specific errno values.  Just test ferror.
5881
5882         New module: xprintf
5883         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
5884
5885 2007-10-19  Bruno Haible  <bruno@clisp.org>
5886
5887         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
5888         syntax.
5889         * modules/javaexec (Makefile.am): Likewise.
5890         * modules/relocatable-prog (Makefile.am): Likewise.
5891         Suggested by Jim Meyering.
5892
5893 2007-10-18  Bruno Haible  <bruno@clisp.org>
5894
5895         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
5896         Reported by Jim Meyering.
5897
5898 2007-10-18  Eric Blake  <ebb9@byu.net>
5899
5900         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
5901
5902 2007-10-18  Bruno Haible  <bruno@clisp.org>
5903
5904         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
5905         the format string into writable memory. Needed in Fortify conditions.
5906
5907 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
5908             Bruno Haible  <bruno@clisp.org>
5909
5910         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
5911         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
5912         * modules/trim (Depends-on): Add mbchar.
5913         (configure.ac): Add gl_FUNC_MBRTOWC.
5914         (Makefile.am): Augment lib_SOURCES.
5915
5916 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
5917
5918         Modify glob.c to use fstatat and dirfd, to simplify it.
5919         Suggested by Eric Blake.
5920         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
5921         Don't include <stdbool.h>; not used.
5922         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
5923         (link_exists_p): Simplify implementation, since we can now assume
5924         dirfd and fstatat.
5925         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
5926
5927 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5928
5929         * gnulib-tool (func_get_dependencies): Fix sed script to
5930         match only tests.
5931
5932 2007-10-17  Bruno Haible  <bruno@clisp.org>
5933
5934         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
5935         allow locale names without encoding suffix.
5936         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
5937         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5938
5939 2007-10-16  Bruno Haible  <bruno@clisp.org>
5940
5941         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
5942         * lib/getgroups.c (getgroups): Likewise.
5943         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
5944
5945 2007-10-16  Bruno Haible  <bruno@clisp.org>
5946
5947         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
5948         * modules/malloc-posix (License): Likewise.
5949         * modules/realloc-posix (License): Likewise.
5950         * modules/calloc-posix (License): Likewise.
5951         * modules/intprops (License): Change from GPL to LGPL, with
5952         Paul Eggert's approval.
5953
5954 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
5955
5956         Merge glibc changes into lib/glob.c.
5957
5958         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
5959         2007-10-15 04:59:03 UTC.  Here are the changes:
5960
5961         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
5962
5963         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
5964
5965         * lib/glob.c: Add some branch prediction throughout.
5966
5967         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
5968
5969         [BZ #5103]
5970         * lib/glob.c (glob): Recognize patterns starting \/.
5971
5972         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
5973
5974         [BZ #3996]
5975         * lib/glob.c (attribute_hidden): Define if not defined.
5976         (glob): Unescape dirname, filename or username when needed and not
5977         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
5978         is NULL.  Handle unescaped [ in pattern without closing ].
5979         Don't pass GLOB_CHECK down to recursive glob for directories.
5980         (__glob_pattern_type): New function.
5981         (__glob_pattern_p): Implement using __glob_pattern_type.
5982         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
5983         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
5984         Remove unreachable code.
5985
5986         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
5987
5988         * lib/glob.c (glob_in_dir): Add some comments and asserts to
5989         explain why there are no leaks.
5990
5991         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
5992
5993         [BZ #3253]
5994         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
5995         time, rather allocate increasingly bigger arrays of pointers, if
5996         possible with alloca, if too large with malloc.
5997
5998 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
5999
6000         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
6001         Problem reported by H.Merijn Brand in
6002         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
6003         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
6004         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
6005
6006 2007-10-15  Bruno Haible  <bruno@clisp.org>
6007
6008         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
6009         with explicit rpl_ prefix.
6010         * lib/fopen.c (fopen): Likewise.
6011         * lib/freopen.c (freopen): Likewise.
6012         * lib/iconv.c (iconv): Likewise.
6013         * lib/iconv_close.c (iconv_close): Likewise.
6014
6015 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6016
6017         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
6018
6019 2007-10-15  Bruno Haible  <bruno@clisp.org>
6020
6021         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
6022         <stddef.h> instead of <stdlib.h> since we only need NULL.
6023         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6024
6025 2007-10-15  Bruno Haible  <bruno@clisp.org>
6026
6027         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
6028         Replace paragraph talking about LIBOBJS.
6029         Reported by Colin Watson <cjwatson@debian.org>.
6030
6031 2007-10-15  Bruno Haible  <bruno@clisp.org>
6032
6033         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
6034         <stdlib.h> before using NULL.
6035
6036 2007-10-15  Simon Josefsson  <simon@josefsson.org>
6037
6038         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
6039         Reported by Albert Chin <china@thewrittenword.com>.
6040
6041 2007-10-14  Bruno Haible  <bruno@clisp.org>
6042
6043         * modules/iconv_open-utf-tests: New file.
6044         * tests/test-iconv-utf.c: New file.
6045
6046         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
6047         * modules/iconv_open-utf: New file.
6048         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
6049         (iconv, iconv_close): New declarations.
6050         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
6051         be defined.
6052         (iconv_open): Add special handling of conversion between UTF-8 and
6053         UTF-{16,32}{BE,LE}.
6054         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
6055         * lib/iconv_close.c: New file.
6056         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
6057         gl_FUNC_ICONV_OPEN.
6058         (gl_FUNC_ICONV_OPEN): Use it.
6059         (gl_FUNC_ICONV_OPEN_UTF): New macro.
6060         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
6061         and REPLACE_ICONV_UTF.
6062         * modules/iconv_open (Depends-on): Add c-strcase.
6063         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
6064         ICONV_CONST.
6065         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
6066
6067 2007-10-13  Albert Chin  <china@thewrittenword.com>
6068             Bruno Haible  <bruno@clisp.org>
6069
6070         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
6071         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
6072
6073 2007-10-13  Bruno Haible  <bruno@clisp.org>
6074
6075         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
6076         defined, use the ISO C99 inline semantics.
6077         * lib/argp.h (ARGP_EI): Likewise.
6078
6079 2007-10-13  Bruno Haible  <bruno@clisp.org>
6080
6081         Handle 'inline' change in gcc 4.3.0.
6082         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
6083         argp_fmtstream_write, argp_fmtstream_set_lmargin,
6084         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
6085         argp_fmtstream_point): Disable 'extern' declaration if the function
6086         definition is going to be provided inline.
6087         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
6088         semantics, not the ISO C99 inline semantics.
6089         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
6090         'extern' declaration if the function definition is going to be provided
6091         inline.
6092         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
6093         the GNU C inline semantics, not the ISO C99 inline semantics. With
6094         GCC 4.2, avoid a warning.
6095
6096 2007-10-13  Bruno Haible  <bruno@clisp.org>
6097
6098         * lib/freading.h (freading): Enable the use of __freading for
6099         glibc >= 2.7.
6100         * lib/freading.c (freading): Likewise.
6101
6102 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
6103
6104         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
6105         "warning: C99 inline functions are not supported; using GNU89".
6106
6107 2007-10-12  Bruno Haible  <bruno@clisp.org>
6108
6109         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
6110         of 2.
6111         * tests/test-ceilf2.c: New file.
6112         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
6113
6114         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
6115         * modules/ceilf-tests: Update.
6116
6117 2007-10-12  Bruno Haible  <bruno@clisp.org>
6118
6119         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
6120         of 2.
6121         * tests/test-floorf2.c: New file.
6122         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
6123
6124         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
6125         * modules/floorf-tests: Update.
6126
6127 2007-10-12  Bruno Haible  <bruno@clisp.org>
6128
6129         * tests/test-trunc2.c: New file.
6130         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
6131
6132         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
6133         * modules/trunc-tests: Update.
6134
6135 2007-10-12  Bruno Haible  <bruno@clisp.org>
6136
6137         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
6138         of 2.
6139         * tests/test-truncf2.c: New file.
6140         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
6141
6142         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
6143         * modules/truncf-tests: Update.
6144
6145 2007-10-11  Eric Blake  <ebb9@byu.net>
6146
6147         Don't claim strerror is broken on Interix.
6148         * doc/functions/strerror.texi (strerror): Known broken systems are
6149         now Solaris 8, and not Interix.
6150         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
6151         Interix on cross-compile.
6152         Reported by Martin Koeppe in
6153         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
6154
6155 2007-10-11  Bruno Haible  <bruno@clisp.org>
6156
6157         * modules/i-ring-tests: New file.
6158         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
6159         instead of assert.
6160
6161 2007-10-11  Bruno Haible  <bruno@clisp.org>
6162
6163         * modules/filenamecat-tests: New file.
6164         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
6165         * lib/filenamecat.c: Remove test code.
6166
6167 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
6168
6169         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
6170
6171         * lib/strerror.c: Include <string.h> always, to test interface,
6172         and to remove the need for the dummy.
6173         Include intprops.h to compute width instead of doing it ourselves
6174         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
6175         (strerror): Define it to return NULL if there's no system strerror.
6176         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
6177         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
6178         ancient pre-strerror Unix systems well any more.  Saying "unknown
6179         system error" is enough.
6180         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
6181         simpler strerror.c implementation.
6182         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
6183         Simplify the tests to reflect the simpler strerror implementation.
6184         * modules/strerror (Depends-on): Add intprops.
6185
6186 2007-10-09  Eric Blake  <ebb9@byu.net>
6187
6188         Silence test-fpending.
6189         * modules/fpending-tests (Files): Add wrapper script.
6190         * tests/test-fpending.sh: New file.
6191
6192 2007-10-09  Bruno Haible  <bruno@clisp.org>
6193
6194         * MODULES.html.sh (func_module): Don't create a hyperlink for
6195         function names like 'printf_frexp'.
6196         (Misc): Add crc, memxor.
6197         (Characteristics of floating types): New section.
6198         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
6199         isnanf-nolibm, signbit, trunc, truncf, truncl.
6200         (Enhancements for ISO C 99 functions): New subsection Input/output.
6201         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
6202         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
6203         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
6204         (Compatibility checks for POSIX:2001 functions): Add clock-time.
6205         (Enhancements for POSIX:2001 functions): Add chdir-long.
6206         (File system functions): Add areadlink, chdir-safer, read-file.
6207         Remove cycle-check.
6208         (File system as inode set): New section.
6209         (Date and time): Add gethrxtime.
6210         (Multithreading): Add openmp.
6211         (Internationalization functions): Add localename.
6212         (Unicode string functions): Add unistr/u*-mbsnlen.
6213         (Support for maintaining and releasing projects): Add git-version-gen.
6214         (Lone files): Remove directories.
6215
6216 2007-10-08  Ben Pfaff  <blp@gnu.org>
6217
6218         * lib/xmalloca.h: Fix typo in comment.
6219
6220 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
6221
6222         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
6223         when avoiding problems with integer overflow.  Use a portable test
6224         instead.
6225
6226 2007-10-08  Simon Josefsson  <simon@josefsson.org>
6227
6228         * modules/dummy (License): Change to LGPLv2+.
6229         * modules/float (License): Likewise
6230         * modules/realloc (License): Likewise
6231         * modules/stdlib (License): Likewise
6232
6233 2007-10-07  Bruno Haible  <bruno@clisp.org>
6234
6235         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
6236         * floor.c (TWO_MANT_DIG): Likewise.
6237         * ceil.c (TWO_MANT_DIG): Likewise.
6238         Reported by Ben Pfaff.
6239
6240 2007-10-07  Bruno Haible  <bruno@clisp.org>
6241
6242         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
6243         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
6244         * lib/frexp.c (FUNC): Likewise.
6245         * lib/printf-frexp.h (printf_frexp): Likewise.
6246         * lib/printf-frexpl.h (printf_frexpl): Likewise.
6247         * lib/printf-frexp.c (FUNC): Likewise.
6248         Suggested by Jim Meyering.
6249
6250 2007-10-07  Jim Meyering  <meyering@redhat.com>
6251
6252         Make xnanosleep's integer overflow test more robust.
6253         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
6254         so that gcc-4.3.0 doesn't optimize away this test for overflow.
6255
6256 2007-10-07  Bruno Haible  <bruno@clisp.org>
6257
6258         * NEWS: Mention the license change.
6259
6260         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
6261         abbreviations in the modules files.
6262
6263         Change copyright notice from GPLv2+ to GPLv3+.
6264         * README: Change copyright notice.
6265         * MODULES.html.sh: Likewise.
6266         * build-aux/bootstrap.conf: Likewise.
6267         * build-aux/config.libpath: Likewise.
6268         * build-aux/csharpcomp.sh.in: Likewise.
6269         * build-aux/csharpexec.sh.in: Likewise.
6270         * build-aux/install-reloc: Likewise.
6271         * build-aux/javacomp.sh.in: Likewise.
6272         * build-aux/javaexec.sh.in: Likewise.
6273         * build-aux/ldd.sh.in: Likewise.
6274         * build-aux/reloc-ldflags: Likewise.
6275         * build-aux/relocatable.sh.in: Likewise.
6276         * build-aux/x-to-1.in: Likewise.
6277         * check-module: Likewise.
6278         * config/srclistvars.sh: Likewise.
6279         * gnulib-tool: Likewise.
6280         * lib/acl-internal.h: Likewise.
6281         * lib/acl.c: Likewise.
6282         * lib/acl.h: Likewise.
6283         * lib/acl_entries.c: Likewise.
6284         * lib/areadlink-with-size.c: Likewise.
6285         * lib/areadlink.c: Likewise.
6286         * lib/areadlink.h: Likewise.
6287         * lib/argmatch.c: Likewise.
6288         * lib/argmatch.h: Likewise.
6289         * lib/argp-ba.c: Likewise.
6290         * lib/argp-eexst.c: Likewise.
6291         * lib/argp-fmtstream.c: Likewise.
6292         * lib/argp-fmtstream.h: Likewise.
6293         * lib/argp-fs-xinl.c: Likewise.
6294         * lib/argp-help.c: Likewise.
6295         * lib/argp-namefrob.h: Likewise.
6296         * lib/argp-parse.c: Likewise.
6297         * lib/argp-pin.c: Likewise.
6298         * lib/argp-pv.c: Likewise.
6299         * lib/argp-pvh.c: Likewise.
6300         * lib/argp-xinl.c: Likewise.
6301         * lib/argp.h: Likewise.
6302         * lib/at-func.c: Likewise.
6303         * lib/atanl.c: Likewise.
6304         * lib/backupfile.c: Likewise.
6305         * lib/backupfile.h: Likewise.
6306         * lib/basename.c: Likewise.
6307         * lib/binary-io.h: Likewise.
6308         * lib/byteswap.in.h: Likewise.
6309         * lib/c-stack.c: Likewise.
6310         * lib/c-stack.h: Likewise.
6311         * lib/c-strcasestr.c: Likewise.
6312         * lib/c-strcasestr.h: Likewise.
6313         * lib/c-strstr.c: Likewise.
6314         * lib/c-strstr.h: Likewise.
6315         * lib/c-strtod.c: Likewise.
6316         * lib/calloc.c: Likewise.
6317         * lib/canon-host.c: Likewise.
6318         * lib/canon-host.h: Likewise.
6319         * lib/canonicalize-lgpl.c: Likewise.
6320         * lib/canonicalize.c: Likewise.
6321         * lib/canonicalize.h: Likewise.
6322         * lib/ceil.c: Likewise.
6323         * lib/ceilf.c: Likewise.
6324         * lib/ceill.c: Likewise.
6325         * lib/chdir-long.c: Likewise.
6326         * lib/chdir-long.h: Likewise.
6327         * lib/chdir-safer.c: Likewise.
6328         * lib/chdir-safer.h: Likewise.
6329         * lib/chown.c: Likewise.
6330         * lib/classpath.c: Likewise.
6331         * lib/classpath.h: Likewise.
6332         * lib/clean-temp.c: Likewise.
6333         * lib/clean-temp.h: Likewise.
6334         * lib/cloexec.c: Likewise.
6335         * lib/close-stream.c: Likewise.
6336         * lib/closein.c: Likewise.
6337         * lib/closein.h: Likewise.
6338         * lib/closeout.c: Likewise.
6339         * lib/closeout.h: Likewise.
6340         * lib/concat-filename.c: Likewise.
6341         * lib/copy-file.c: Likewise.
6342         * lib/copy-file.h: Likewise.
6343         * lib/count-one-bits.h: Likewise.
6344         * lib/crc.c: Likewise.
6345         * lib/crc.h: Likewise.
6346         * lib/creat-safer.c: Likewise.
6347         * lib/csharpcomp.c: Likewise.
6348         * lib/csharpcomp.h: Likewise.
6349         * lib/csharpexec.c: Likewise.
6350         * lib/csharpexec.h: Likewise.
6351         * lib/cycle-check.c: Likewise.
6352         * lib/cycle-check.h: Likewise.
6353         * lib/diacrit.c: Likewise.
6354         * lib/diacrit.h: Likewise.
6355         * lib/diffseq.h: Likewise.
6356         * lib/dirchownmod.c: Likewise.
6357         * lib/dirent.in.h: Likewise.
6358         * lib/dirfd.c: Likewise.
6359         * lib/dirfd.h: Likewise.
6360         * lib/dirname.c: Likewise.
6361         * lib/dirname.h: Likewise.
6362         * lib/dummy.c: Likewise.
6363         * lib/dup-safer.c: Likewise.
6364         * lib/dup2.c: Likewise.
6365         * lib/eealloc.h: Likewise.
6366         * lib/error.c: Likewise.
6367         * lib/error.h: Likewise.
6368         * lib/euidaccess.c: Likewise.
6369         * lib/exclude.c: Likewise.
6370         * lib/exclude.h: Likewise.
6371         * lib/execute.c: Likewise.
6372         * lib/execute.h: Likewise.
6373         * lib/exitfail.c: Likewise.
6374         * lib/exitfail.h: Likewise.
6375         * lib/expl.c: Likewise.
6376         * lib/fatal-signal.c: Likewise.
6377         * lib/fatal-signal.h: Likewise.
6378         * lib/fbufmode.c: Likewise.
6379         * lib/fbufmode.h: Likewise.
6380         * lib/fchdir.c: Likewise.
6381         * lib/fchmodat.c: Likewise.
6382         * lib/fchownat.c: Likewise.
6383         * lib/fcntl--.h: Likewise.
6384         * lib/fcntl-safer.h: Likewise.
6385         * lib/fcntl.in.h: Likewise.
6386         * lib/fd-safer.c: Likewise.
6387         * lib/fflush.c: Likewise.
6388         * lib/file-has-acl.c: Likewise.
6389         * lib/file-set.c: Likewise.
6390         * lib/file-type.c: Likewise.
6391         * lib/file-type.h: Likewise.
6392         * lib/fileblocks.c: Likewise.
6393         * lib/filemode.c: Likewise.
6394         * lib/filemode.h: Likewise.
6395         * lib/filename.h: Likewise.
6396         * lib/filenamecat.c: Likewise.
6397         * lib/filenamecat.h: Likewise.
6398         * lib/findprog.c: Likewise.
6399         * lib/findprog.h: Likewise.
6400         * lib/float.in.h: Likewise.
6401         * lib/floor.c: Likewise.
6402         * lib/floorf.c: Likewise.
6403         * lib/floorl.c: Likewise.
6404         * lib/fopen-safer.c: Likewise.
6405         * lib/fopen.c: Likewise.
6406         * lib/fpending.c: Likewise.
6407         * lib/fpending.h: Likewise.
6408         * lib/fprintf.c: Likewise.
6409         * lib/fprintftime.h: Likewise.
6410         * lib/fpucw.h: Likewise.
6411         * lib/fpurge.c: Likewise.
6412         * lib/fpurge.h: Likewise.
6413         * lib/freadable.c: Likewise.
6414         * lib/freadable.h: Likewise.
6415         * lib/freadahead.c: Likewise.
6416         * lib/freadahead.h: Likewise.
6417         * lib/freading.c: Likewise.
6418         * lib/freading.h: Likewise.
6419         * lib/free.c: Likewise.
6420         * lib/freopen.c: Likewise.
6421         * lib/frexp.c: Likewise.
6422         * lib/frexpl.c: Likewise.
6423         * lib/fseek.c: Likewise.
6424         * lib/fseterr.c: Likewise.
6425         * lib/fseterr.h: Likewise.
6426         * lib/fstatat.c: Likewise.
6427         * lib/fstrcmp.c: Likewise.
6428         * lib/fstrcmp.h: Likewise.
6429         * lib/fsusage.c: Likewise.
6430         * lib/fsusage.h: Likewise.
6431         * lib/ftell.c: Likewise.
6432         * lib/ftello.c: Likewise.
6433         * lib/fts-cycle.c: Likewise.
6434         * lib/fts.c: Likewise.
6435         * lib/fts_.h: Likewise.
6436         * lib/full-read.c: Likewise.
6437         * lib/full-read.h: Likewise.
6438         * lib/full-write.c: Likewise.
6439         * lib/full-write.h: Likewise.
6440         * lib/fwritable.c: Likewise.
6441         * lib/fwritable.h: Likewise.
6442         * lib/fwriteerror.c: Likewise.
6443         * lib/fwriteerror.h: Likewise.
6444         * lib/fwriting.c: Likewise.
6445         * lib/fwriting.h: Likewise.
6446         * lib/gcd.c: Likewise.
6447         * lib/gcd.h: Likewise.
6448         * lib/getcwd.c: Likewise.
6449         * lib/getdate.h: Likewise.
6450         * lib/getdate.y: Likewise.
6451         * lib/getdomainname.c: Likewise.
6452         * lib/getdomainname.h: Likewise.
6453         * lib/getgroups.c: Likewise.
6454         * lib/gethostname.c: Likewise.
6455         * lib/gethrxtime.c: Likewise.
6456         * lib/gethrxtime.h: Likewise.
6457         * lib/getloadavg.c: Likewise.
6458         * lib/getndelim2.c: Likewise.
6459         * lib/getndelim2.h: Likewise.
6460         * lib/getnline.c: Likewise.
6461         * lib/getnline.h: Likewise.
6462         * lib/getopt.c: Likewise.
6463         * lib/getopt.in.h: Likewise.
6464         * lib/getopt1.c: Likewise.
6465         * lib/getopt_int.h: Likewise.
6466         * lib/getpagesize.h: Likewise.
6467         * lib/getsubopt.c: Likewise.
6468         * lib/gettime.c: Likewise.
6469         * lib/getugroups.c: Likewise.
6470         * lib/getugroups.h: Likewise.
6471         * lib/getusershell.c: Likewise.
6472         * lib/gl_anyavltree_list1.h: Likewise.
6473         * lib/gl_anyavltree_list2.h: Likewise.
6474         * lib/gl_anyhash_list1.h: Likewise.
6475         * lib/gl_anyhash_list2.h: Likewise.
6476         * lib/gl_anylinked_list1.h: Likewise.
6477         * lib/gl_anylinked_list2.h: Likewise.
6478         * lib/gl_anyrbtree_list1.h: Likewise.
6479         * lib/gl_anyrbtree_list2.h: Likewise.
6480         * lib/gl_anytree_list1.h: Likewise.
6481         * lib/gl_anytree_list2.h: Likewise.
6482         * lib/gl_anytree_oset.h: Likewise.
6483         * lib/gl_anytreehash_list1.h: Likewise.
6484         * lib/gl_anytreehash_list2.h: Likewise.
6485         * lib/gl_array_list.c: Likewise.
6486         * lib/gl_array_list.h: Likewise.
6487         * lib/gl_array_oset.c: Likewise.
6488         * lib/gl_array_oset.h: Likewise.
6489         * lib/gl_avltree_list.c: Likewise.
6490         * lib/gl_avltree_list.h: Likewise.
6491         * lib/gl_avltree_oset.c: Likewise.
6492         * lib/gl_avltree_oset.h: Likewise.
6493         * lib/gl_avltreehash_list.c: Likewise.
6494         * lib/gl_avltreehash_list.h: Likewise.
6495         * lib/gl_carray_list.c: Likewise.
6496         * lib/gl_carray_list.h: Likewise.
6497         * lib/gl_linked_list.c: Likewise.
6498         * lib/gl_linked_list.h: Likewise.
6499         * lib/gl_linkedhash_list.c: Likewise.
6500         * lib/gl_linkedhash_list.h: Likewise.
6501         * lib/gl_list.c: Likewise.
6502         * lib/gl_list.h: Likewise.
6503         * lib/gl_oset.c: Likewise.
6504         * lib/gl_oset.h: Likewise.
6505         * lib/gl_rbtree_list.c: Likewise.
6506         * lib/gl_rbtree_list.h: Likewise.
6507         * lib/gl_rbtree_oset.c: Likewise.
6508         * lib/gl_rbtree_oset.h: Likewise.
6509         * lib/gl_rbtreehash_list.c: Likewise.
6510         * lib/gl_rbtreehash_list.h: Likewise.
6511         * lib/gl_sublist.c: Likewise.
6512         * lib/gl_sublist.h: Likewise.
6513         * lib/group-member.c: Likewise.
6514         * lib/group-member.h: Likewise.
6515         * lib/hard-locale.c: Likewise.
6516         * lib/hard-locale.h: Likewise.
6517         * lib/hash-pjw.c: Likewise.
6518         * lib/hash-pjw.h: Likewise.
6519         * lib/hash-triple.c: Likewise.
6520         * lib/hash.c: Likewise.
6521         * lib/hash.h: Likewise.
6522         * lib/human.c: Likewise.
6523         * lib/human.h: Likewise.
6524         * lib/i-ring.c: Likewise.
6525         * lib/i-ring.h: Likewise.
6526         * lib/idcache.c: Likewise.
6527         * lib/imaxabs.c: Likewise.
6528         * lib/imaxdiv.c: Likewise.
6529         * lib/inet_pton.c: Likewise.
6530         * lib/inet_pton.h: Likewise.
6531         * lib/intprops.h: Likewise.
6532         * lib/inttostr.c: Likewise.
6533         * lib/inttostr.h: Likewise.
6534         * lib/inttypes.in.h: Likewise.
6535         * lib/isapipe.c: Likewise.
6536         * lib/isdir.c: Likewise.
6537         * lib/isnan.c: Likewise.
6538         * lib/isnan.h: Likewise.
6539         * lib/isnanf.c: Likewise.
6540         * lib/isnanf.h: Likewise.
6541         * lib/isnanl-nolibm.h: Likewise.
6542         * lib/isnanl.c: Likewise.
6543         * lib/isnanl.h: Likewise.
6544         * lib/javacomp.c: Likewise.
6545         * lib/javacomp.h: Likewise.
6546         * lib/javaexec.c: Likewise.
6547         * lib/javaexec.h: Likewise.
6548         * lib/javaversion.c: Likewise.
6549         * lib/javaversion.h: Likewise.
6550         * lib/javaversion.java: Likewise.
6551         * lib/lbrkprop.h: Likewise.
6552         * lib/lchmod.h: Likewise.
6553         * lib/lchown.c: Likewise.
6554         * lib/ldexpl.c: Likewise.
6555         * lib/linebreak.c: Likewise.
6556         * lib/linebreak.h: Likewise.
6557         * lib/linebuffer.c: Likewise.
6558         * lib/linebuffer.h: Likewise.
6559         * lib/locale.in.h: Likewise.
6560         * lib/logl.c: Likewise.
6561         * lib/long-options.c: Likewise.
6562         * lib/long-options.h: Likewise.
6563         * lib/lstat.c: Likewise.
6564         * lib/lstat.h: Likewise.
6565         * lib/math.in.h: Likewise.
6566         * lib/mbchar.c: Likewise.
6567         * lib/mbchar.h: Likewise.
6568         * lib/mbfile.h: Likewise.
6569         * lib/mbiter.h: Likewise.
6570         * lib/mbscasecmp.c: Likewise.
6571         * lib/mbscasestr.c: Likewise.
6572         * lib/mbschr.c: Likewise.
6573         * lib/mbscspn.c: Likewise.
6574         * lib/mbslen.c: Likewise.
6575         * lib/mbsncasecmp.c: Likewise.
6576         * lib/mbsnlen.c: Likewise.
6577         * lib/mbspbrk.c: Likewise.
6578         * lib/mbspcasecmp.c: Likewise.
6579         * lib/mbsrchr.c: Likewise.
6580         * lib/mbssep.c: Likewise.
6581         * lib/mbsspn.c: Likewise.
6582         * lib/mbsstr.c: Likewise.
6583         * lib/mbstok_r.c: Likewise.
6584         * lib/mbswidth.c: Likewise.
6585         * lib/mbswidth.h: Likewise.
6586         * lib/mbuiter.h: Likewise.
6587         * lib/memcasecmp.c: Likewise.
6588         * lib/memcasecmp.h: Likewise.
6589         * lib/memchr.c: Likewise.
6590         * lib/memcmp.c: Likewise.
6591         * lib/memcoll.c: Likewise.
6592         * lib/memcoll.h: Likewise.
6593         * lib/memcpy.c: Likewise.
6594         * lib/memrchr.c: Likewise.
6595         * lib/mkancesdirs.c: Likewise.
6596         * lib/mkdir-p.c: Likewise.
6597         * lib/mkdir-p.h: Likewise.
6598         * lib/mkdir.c: Likewise.
6599         * lib/mkdirat.c: Likewise.
6600         * lib/mkdtemp.c: Likewise.
6601         * lib/mkstemp-safer.c: Likewise.
6602         * lib/mkstemp.c: Likewise.
6603         * lib/modechange.c: Likewise.
6604         * lib/modechange.h: Likewise.
6605         * lib/mountlist.c: Likewise.
6606         * lib/mountlist.h: Likewise.
6607         * lib/mpsort.c: Likewise.
6608         * lib/nanosleep.c: Likewise.
6609         * lib/obstack.c: Likewise.
6610         * lib/obstack.h: Likewise.
6611         * lib/open-safer.c: Likewise.
6612         * lib/open.c: Likewise.
6613         * lib/openat-die.c: Likewise.
6614         * lib/openat-priv.h: Likewise.
6615         * lib/openat-proc.c: Likewise.
6616         * lib/openat.c: Likewise.
6617         * lib/openat.h: Likewise.
6618         * lib/pagealign_alloc.c: Likewise.
6619         * lib/pagealign_alloc.h: Likewise.
6620         * lib/physmem.c: Likewise.
6621         * lib/physmem.h: Likewise.
6622         * lib/pipe-safer.c: Likewise.
6623         * lib/pipe.c: Likewise.
6624         * lib/pipe.h: Likewise.
6625         * lib/posixtm.c: Likewise.
6626         * lib/posixtm.h: Likewise.
6627         * lib/posixver.c: Likewise.
6628         * lib/printf-frexp.c: Likewise.
6629         * lib/printf-frexp.h: Likewise.
6630         * lib/printf-frexpl.c: Likewise.
6631         * lib/printf-frexpl.h: Likewise.
6632         * lib/printf.c: Likewise.
6633         * lib/progname.c: Likewise.
6634         * lib/progname.h: Likewise.
6635         * lib/progreloc.c: Likewise.
6636         * lib/putenv.c: Likewise.
6637         * lib/quote.c: Likewise.
6638         * lib/quote.h: Likewise.
6639         * lib/quotearg.c: Likewise.
6640         * lib/quotearg.h: Likewise.
6641         * lib/raise.c: Likewise.
6642         * lib/readline.c: Likewise.
6643         * lib/readline.h: Likewise.
6644         * lib/readlink.c: Likewise.
6645         * lib/readtokens.c: Likewise.
6646         * lib/readtokens.h: Likewise.
6647         * lib/readtokens0.c: Likewise.
6648         * lib/readtokens0.h: Likewise.
6649         * lib/readutmp.c: Likewise.
6650         * lib/readutmp.h: Likewise.
6651         * lib/realloc.c: Likewise.
6652         * lib/relocwrapper.c: Likewise.
6653         * lib/rename-dest-slash.c: Likewise.
6654         * lib/rename.c: Likewise.
6655         * lib/rmdir.c: Likewise.
6656         * lib/rpmatch.c: Likewise.
6657         * lib/safe-read.c: Likewise.
6658         * lib/safe-read.h: Likewise.
6659         * lib/safe-write.c: Likewise.
6660         * lib/safe-write.h: Likewise.
6661         * lib/same-inode.h: Likewise.
6662         * lib/same.c: Likewise.
6663         * lib/same.h: Likewise.
6664         * lib/save-cwd.c: Likewise.
6665         * lib/save-cwd.h: Likewise.
6666         * lib/savedir.c: Likewise.
6667         * lib/savedir.h: Likewise.
6668         * lib/savewd.c: Likewise.
6669         * lib/savewd.h: Likewise.
6670         * lib/search.in.h: Likewise.
6671         * lib/setenv.c: Likewise.
6672         * lib/setenv.h: Likewise.
6673         * lib/settime.c: Likewise.
6674         * lib/sh-quote.c: Likewise.
6675         * lib/sh-quote.h: Likewise.
6676         * lib/sig2str.c: Likewise.
6677         * lib/sig2str.h: Likewise.
6678         * lib/signal.in.h: Likewise.
6679         * lib/signbitd.c: Likewise.
6680         * lib/signbitf.c: Likewise.
6681         * lib/signbitl.c: Likewise.
6682         * lib/sigprocmask.c: Likewise.
6683         * lib/sincosl.c: Likewise.
6684         * lib/sleep.c: Likewise.
6685         * lib/sprintf.c: Likewise.
6686         * lib/sqrtl.c: Likewise.
6687         * lib/stat-time.h: Likewise.
6688         * lib/stdio--.h: Likewise.
6689         * lib/stdio-safer.h: Likewise.
6690         * lib/stdlib--.h: Likewise.
6691         * lib/stdlib-safer.h: Likewise.
6692         * lib/stdlib.in.h: Likewise.
6693         * lib/stpcpy.c: Likewise.
6694         * lib/stpncpy.c: Likewise.
6695         * lib/strchrnul.c: Likewise.
6696         * lib/strcspn.c: Likewise.
6697         * lib/strerror.c: Likewise.
6698         * lib/strftime.c: Likewise.
6699         * lib/strftime.h: Likewise.
6700         * lib/striconveh.c: Likewise.
6701         * lib/striconveh.h: Likewise.
6702         * lib/striconveha.c: Likewise.
6703         * lib/striconveha.h: Likewise.
6704         * lib/stripslash.c: Likewise.
6705         * lib/strnlen1.c: Likewise.
6706         * lib/strnlen1.h: Likewise.
6707         * lib/strtod.c: Likewise.
6708         * lib/strtoimax.c: Likewise.
6709         * lib/strtok_r.c: Likewise.
6710         * lib/strtol.c: Likewise.
6711         * lib/strtoll.c: Likewise.
6712         * lib/strtoul.c: Likewise.
6713         * lib/strtoull.c: Likewise.
6714         * lib/sysexits.in.h: Likewise.
6715         * lib/tempname.c: Likewise.
6716         * lib/tempname.h: Likewise.
6717         * lib/timespec.h: Likewise.
6718         * lib/tls.c: Likewise.
6719         * lib/tls.h: Likewise.
6720         * lib/tmpdir.c: Likewise.
6721         * lib/tmpdir.h: Likewise.
6722         * lib/tmpfile-safer.c: Likewise.
6723         * lib/tmpfile.c: Likewise.
6724         * lib/trigl.c: Likewise.
6725         * lib/trigl.h: Likewise.
6726         * lib/trim.c: Likewise.
6727         * lib/trim.h: Likewise.
6728         * lib/trunc.c: Likewise.
6729         * lib/truncf.c: Likewise.
6730         * lib/truncl.c: Likewise.
6731         * lib/tsearch.c: Likewise.
6732         * lib/unicodeio.c: Likewise.
6733         * lib/unicodeio.h: Likewise.
6734         * lib/unistd--.h: Likewise.
6735         * lib/unistd-safer.h: Likewise.
6736         * lib/unistdio/ulc-fprintf.c: Likewise.
6737         * lib/unistdio/ulc-vfprintf.c: Likewise.
6738         * lib/unlinkdir.c: Likewise.
6739         * lib/unlinkdir.h: Likewise.
6740         * lib/unlocked-io.h: Likewise.
6741         * lib/unsetenv.c: Likewise.
6742         * lib/userspec.c: Likewise.
6743         * lib/utime.c: Likewise.
6744         * lib/utimecmp.c: Likewise.
6745         * lib/utimecmp.h: Likewise.
6746         * lib/utimens.c: Likewise.
6747         * lib/verify.h: Likewise.
6748         * lib/verror.c: Likewise.
6749         * lib/verror.h: Likewise.
6750         * lib/version-etc-fsf.c: Likewise.
6751         * lib/version-etc.c: Likewise.
6752         * lib/version-etc.h: Likewise.
6753         * lib/vfprintf.c: Likewise.
6754         * lib/vprintf.c: Likewise.
6755         * lib/vsprintf.c: Likewise.
6756         * lib/w32spawn.h: Likewise.
6757         * lib/wait-process.c: Likewise.
6758         * lib/wait-process.h: Likewise.
6759         * lib/wcwidth.c: Likewise.
6760         * lib/write-any-file.c: Likewise.
6761         * lib/xalloc-die.c: Likewise.
6762         * lib/xalloc.h: Likewise.
6763         * lib/xasprintf.c: Likewise.
6764         * lib/xgetcwd.c: Likewise.
6765         * lib/xgetcwd.h: Likewise.
6766         * lib/xgetdomainname.c: Likewise.
6767         * lib/xgetdomainname.h: Likewise.
6768         * lib/xgethostname.c: Likewise.
6769         * lib/xmalloc.c: Likewise.
6770         * lib/xmalloca.c: Likewise.
6771         * lib/xmalloca.h: Likewise.
6772         * lib/xmemcoll.c: Likewise.
6773         * lib/xnanosleep.c: Likewise.
6774         * lib/xreadlink.c: Likewise.
6775         * lib/xreadlink.h: Likewise.
6776         * lib/xsetenv.c: Likewise.
6777         * lib/xsetenv.h: Likewise.
6778         * lib/xstriconv.c: Likewise.
6779         * lib/xstriconv.h: Likewise.
6780         * lib/xstrndup.c: Likewise.
6781         * lib/xstrndup.h: Likewise.
6782         * lib/xstrtod.c: Likewise.
6783         * lib/xstrtod.h: Likewise.
6784         * lib/xstrtol-error.c: Likewise.
6785         * lib/xstrtol.c: Likewise.
6786         * lib/xstrtol.h: Likewise.
6787         * lib/xtime.h: Likewise.
6788         * lib/xvasprintf.c: Likewise.
6789         * lib/xvasprintf.h: Likewise.
6790         * lib/yesno.c: Likewise.
6791         * lib/yesno.h: Likewise.
6792         * posix-modules: Likewise.
6793         * tests/test-alloca-opt.c: Likewise.
6794         * tests/test-arcfour.c: Likewise.
6795         * tests/test-arctwo.c: Likewise.
6796         * tests/test-argmatch.c: Likewise.
6797         * tests/test-argp-2.sh: Likewise.
6798         * tests/test-argp.c: Likewise.
6799         * tests/test-arpa_inet.c: Likewise.
6800         * tests/test-array_list.c: Likewise.
6801         * tests/test-array_oset.c: Likewise.
6802         * tests/test-atexit.c: Likewise.
6803         * tests/test-avltree_list.c: Likewise.
6804         * tests/test-avltree_oset.c: Likewise.
6805         * tests/test-avltreehash_list.c: Likewise.
6806         * tests/test-base64.c: Likewise.
6807         * tests/test-binary-io.c: Likewise.
6808         * tests/test-byteswap.c: Likewise.
6809         * tests/test-c-ctype.c: Likewise.
6810         * tests/test-c-strcasecmp.c: Likewise.
6811         * tests/test-c-strcasestr.c: Likewise.
6812         * tests/test-c-strncasecmp.c: Likewise.
6813         * tests/test-c-strstr.c: Likewise.
6814         * tests/test-canonicalize-lgpl.c: Likewise.
6815         * tests/test-canonicalize.c: Likewise.
6816         * tests/test-carray_list.c: Likewise.
6817         * tests/test-ceilf.c: Likewise.
6818         * tests/test-ceill.c: Likewise.
6819         * tests/test-count-one-bits.c: Likewise.
6820         * tests/test-crc.c: Likewise.
6821         * tests/test-dirname.c: Likewise.
6822         * tests/test-fbufmode.c: Likewise.
6823         * tests/test-fcntl.c: Likewise.
6824         * tests/test-fflush.c: Likewise.
6825         * tests/test-floorf.c: Likewise.
6826         * tests/test-floorl.c: Likewise.
6827         * tests/test-fopen.c: Likewise.
6828         * tests/test-fprintf-posix.c: Likewise.
6829         * tests/test-fprintf-posix.h: Likewise.
6830         * tests/test-fpurge.c: Likewise.
6831         * tests/test-freadable.c: Likewise.
6832         * tests/test-freadahead.c: Likewise.
6833         * tests/test-freading.c: Likewise.
6834         * tests/test-freopen.c: Likewise.
6835         * tests/test-frexp.c: Likewise.
6836         * tests/test-frexpl.c: Likewise.
6837         * tests/test-fseek.c: Likewise.
6838         * tests/test-fseeko.c: Likewise.
6839         * tests/test-fseterr.c: Likewise.
6840         * tests/test-fstrcmp.c: Likewise.
6841         * tests/test-ftell.c: Likewise.
6842         * tests/test-ftello.c: Likewise.
6843         * tests/test-fwritable.c: Likewise.
6844         * tests/test-fwriting.c: Likewise.
6845         * tests/test-getaddrinfo.c: Likewise.
6846         * tests/test-getpass.c: Likewise.
6847         * tests/test-gettimeofday.c: Likewise.
6848         * tests/test-hmac-md5.c: Likewise.
6849         * tests/test-hmac-sha1.c: Likewise.
6850         * tests/test-iconv.c: Likewise.
6851         * tests/test-iconvme.c: Likewise.
6852         * tests/test-inttypes.c: Likewise.
6853         * tests/test-isnan.c: Likewise.
6854         * tests/test-isnanf.c: Likewise.
6855         * tests/test-isnanl-nolibm.c: Likewise.
6856         * tests/test-isnanl.c: Likewise.
6857         * tests/test-isnanl.h: Likewise.
6858         * tests/test-ldexpl.c: Likewise.
6859         * tests/test-linked_list.c: Likewise.
6860         * tests/test-linkedhash_list.c: Likewise.
6861         * tests/test-locale.c: Likewise.
6862         * tests/test-localename.c: Likewise.
6863         * tests/test-lock.c: Likewise.
6864         * tests/test-lseek.c: Likewise.
6865         * tests/test-malloca.c: Likewise.
6866         * tests/test-math.c: Likewise.
6867         * tests/test-mbscasecmp.c: Likewise.
6868         * tests/test-mbscasestr1.c: Likewise.
6869         * tests/test-mbscasestr2.c: Likewise.
6870         * tests/test-mbscasestr3.c: Likewise.
6871         * tests/test-mbscasestr4.c: Likewise.
6872         * tests/test-mbschr.c: Likewise.
6873         * tests/test-mbscspn.c: Likewise.
6874         * tests/test-mbsncasecmp.c: Likewise.
6875         * tests/test-mbspbrk.c: Likewise.
6876         * tests/test-mbspcasecmp.c: Likewise.
6877         * tests/test-mbsrchr.c: Likewise.
6878         * tests/test-mbsspn.c: Likewise.
6879         * tests/test-mbsstr1.c: Likewise.
6880         * tests/test-mbsstr2.c: Likewise.
6881         * tests/test-mbsstr3.c: Likewise.
6882         * tests/test-md5.c: Likewise.
6883         * tests/test-memmem.c: Likewise.
6884         * tests/test-netinet_in.c: Likewise.
6885         * tests/test-open.c: Likewise.
6886         * tests/test-printf-frexp.c: Likewise.
6887         * tests/test-printf-frexpl.c: Likewise.
6888         * tests/test-printf-posix.c: Likewise.
6889         * tests/test-printf-posix.h: Likewise.
6890         * tests/test-rbtree_list.c: Likewise.
6891         * tests/test-rbtree_oset.c: Likewise.
6892         * tests/test-rbtreehash_list.c: Likewise.
6893         * tests/test-read-file.c: Likewise.
6894         * tests/test-rijndael.c: Likewise.
6895         * tests/test-search.c: Likewise.
6896         * tests/test-signbit.c: Likewise.
6897         * tests/test-sleep.c: Likewise.
6898         * tests/test-snprintf-posix.c: Likewise.
6899         * tests/test-snprintf-posix.h: Likewise.
6900         * tests/test-snprintf.c: Likewise.
6901         * tests/test-sprintf-posix.c: Likewise.
6902         * tests/test-sprintf-posix.h: Likewise.
6903         * tests/test-stat-time.c: Likewise.
6904         * tests/test-stdbool.c: Likewise.
6905         * tests/test-stdint.c: Likewise.
6906         * tests/test-stdio.c: Likewise.
6907         * tests/test-stdlib.c: Likewise.
6908         * tests/test-stpncpy.c: Likewise.
6909         * tests/test-strcasestr.c: Likewise.
6910         * tests/test-striconv.c: Likewise.
6911         * tests/test-striconveh.c: Likewise.
6912         * tests/test-striconveha.c: Likewise.
6913         * tests/test-string.c: Likewise.
6914         * tests/test-sys_select.c: Likewise.
6915         * tests/test-sys_socket.c: Likewise.
6916         * tests/test-sys_stat.c: Likewise.
6917         * tests/test-sys_time.c: Likewise.
6918         * tests/test-sysexits.c: Likewise.
6919         * tests/test-time.c: Likewise.
6920         * tests/test-tls.c: Likewise.
6921         * tests/test-trunc.c: Likewise.
6922         * tests/test-truncf.c: Likewise.
6923         * tests/test-truncl.c: Likewise.
6924         * tests/test-unistd.c: Likewise.
6925         * tests/test-vasnprintf-posix.c: Likewise.
6926         * tests/test-vasnprintf-posix2.c: Likewise.
6927         * tests/test-vasnprintf.c: Likewise.
6928         * tests/test-vasprintf-posix.c: Likewise.
6929         * tests/test-vasprintf.c: Likewise.
6930         * tests/test-verify.c: Likewise.
6931         * tests/test-vfprintf-posix.c: Likewise.
6932         * tests/test-vprintf-posix.c: Likewise.
6933         * tests/test-vsnprintf-posix.c: Likewise.
6934         * tests/test-vsnprintf.c: Likewise.
6935         * tests/test-vsprintf-posix.c: Likewise.
6936         * tests/test-wchar.c: Likewise.
6937         * tests/test-wctype.c: Likewise.
6938         * tests/test-wcwidth.c: Likewise.
6939         * tests/test-xstrtol.c: Likewise.
6940         * tests/test-xvasprintf.c: Likewise.
6941         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
6942         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
6943         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
6944         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
6945         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
6946         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
6947         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
6948         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
6949         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
6950         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
6951         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
6952         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
6953         * tests/uniname/test-uninames.c: Likewise.
6954         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
6955         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
6956         * tests/unistdio/test-u16-printf1.h: Likewise.
6957         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
6958         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
6959         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
6960         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
6961         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
6962         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
6963         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
6964         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
6965         * tests/unistdio/test-u32-printf1.h: Likewise.
6966         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
6967         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
6968         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
6969         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
6970         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
6971         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
6972         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
6973         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
6974         * tests/unistdio/test-u8-printf1.h: Likewise.
6975         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
6976         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
6977         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
6978         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
6979         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
6980         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
6981         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
6982         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
6983         * tests/unistdio/test-ulc-printf1.h: Likewise.
6984         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
6985         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
6986         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
6987         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
6988         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
6989         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
6990         * tests/uniwidth/test-u16-strwidth.c: Likewise.
6991         * tests/uniwidth/test-u16-width.c: Likewise.
6992         * tests/uniwidth/test-u32-strwidth.c: Likewise.
6993         * tests/uniwidth/test-u32-width.c: Likewise.
6994         * tests/uniwidth/test-u8-strwidth.c: Likewise.
6995         * tests/uniwidth/test-u8-width.c: Likewise.
6996         * tests/uniwidth/test-uc_width.c: Likewise.
6997         * config/srclist-update: Likewise.
6998         (fixlicense): Update to GPLv3+.
6999
7000         Change copyright notice from LGPLv2.1+ to LGPLv3+.
7001         * tests/test-tsearch.c: Change copyright notice.
7002
7003         Change copyright notice from LGPLv2.0+ to LGPLv3+.
7004         * lib/c-strcaseeq.h: Change copyright notice.
7005         * lib/streq.h: Likewise.
7006         * lib/uniconv.h: Likewise.
7007         * lib/uniconv/u-conv-from-enc.h: Likewise.
7008         * lib/uniconv/u-conv-to-enc.h: Likewise.
7009         * lib/uniconv/u-strconv-from-enc.h: Likewise.
7010         * lib/uniconv/u-strconv-to-enc.h: Likewise.
7011         * lib/uniconv/u16-conv-from-enc.c: Likewise.
7012         * lib/uniconv/u16-conv-to-enc.c: Likewise.
7013         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
7014         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
7015         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
7016         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
7017         * lib/uniconv/u32-conv-from-enc.c: Likewise.
7018         * lib/uniconv/u32-conv-to-enc.c: Likewise.
7019         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
7020         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
7021         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
7022         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
7023         * lib/uniconv/u8-conv-from-enc.c: Likewise.
7024         * lib/uniconv/u8-conv-to-enc.c: Likewise.
7025         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
7026         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
7027         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
7028         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
7029         * lib/uniname.h: Likewise.
7030         * lib/uniname/uniname.c: Likewise.
7031         * lib/unistdio.h: Likewise.
7032         * lib/unistdio/u-asnprintf.h: Likewise.
7033         * lib/unistdio/u-asprintf.h: Likewise.
7034         * lib/unistdio/u-printf-args.c: Likewise.
7035         * lib/unistdio/u-printf-args.h: Likewise.
7036         * lib/unistdio/u-printf-parse.h: Likewise.
7037         * lib/unistdio/u-snprintf.h: Likewise.
7038         * lib/unistdio/u-sprintf.h: Likewise.
7039         * lib/unistdio/u-vasprintf.h: Likewise.
7040         * lib/unistdio/u-vsnprintf.h: Likewise.
7041         * lib/unistdio/u-vsprintf.h: Likewise.
7042         * lib/unistdio/u16-asnprintf.c: Likewise.
7043         * lib/unistdio/u16-asprintf.c: Likewise.
7044         * lib/unistdio/u16-printf-parse.c: Likewise.
7045         * lib/unistdio/u16-snprintf.c: Likewise.
7046         * lib/unistdio/u16-sprintf.c: Likewise.
7047         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
7048         * lib/unistdio/u16-u16-asprintf.c: Likewise.
7049         * lib/unistdio/u16-u16-snprintf.c: Likewise.
7050         * lib/unistdio/u16-u16-sprintf.c: Likewise.
7051         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
7052         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
7053         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
7054         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
7055         * lib/unistdio/u16-vasnprintf.c: Likewise.
7056         * lib/unistdio/u16-vasprintf.c: Likewise.
7057         * lib/unistdio/u16-vsnprintf.c: Likewise.
7058         * lib/unistdio/u16-vsprintf.c: Likewise.
7059         * lib/unistdio/u32-asnprintf.c: Likewise.
7060         * lib/unistdio/u32-asprintf.c: Likewise.
7061         * lib/unistdio/u32-printf-parse.c: Likewise.
7062         * lib/unistdio/u32-snprintf.c: Likewise.
7063         * lib/unistdio/u32-sprintf.c: Likewise.
7064         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
7065         * lib/unistdio/u32-u32-asprintf.c: Likewise.
7066         * lib/unistdio/u32-u32-snprintf.c: Likewise.
7067         * lib/unistdio/u32-u32-sprintf.c: Likewise.
7068         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
7069         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
7070         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
7071         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
7072         * lib/unistdio/u32-vasnprintf.c: Likewise.
7073         * lib/unistdio/u32-vasprintf.c: Likewise.
7074         * lib/unistdio/u32-vsnprintf.c: Likewise.
7075         * lib/unistdio/u32-vsprintf.c: Likewise.
7076         * lib/unistdio/u8-asnprintf.c: Likewise.
7077         * lib/unistdio/u8-asprintf.c: Likewise.
7078         * lib/unistdio/u8-printf-parse.c: Likewise.
7079         * lib/unistdio/u8-snprintf.c: Likewise.
7080         * lib/unistdio/u8-sprintf.c: Likewise.
7081         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
7082         * lib/unistdio/u8-u8-asprintf.c: Likewise.
7083         * lib/unistdio/u8-u8-snprintf.c: Likewise.
7084         * lib/unistdio/u8-u8-sprintf.c: Likewise.
7085         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
7086         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
7087         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
7088         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
7089         * lib/unistdio/u8-vasnprintf.c: Likewise.
7090         * lib/unistdio/u8-vasprintf.c: Likewise.
7091         * lib/unistdio/u8-vsnprintf.c: Likewise.
7092         * lib/unistdio/u8-vsprintf.c: Likewise.
7093         * lib/unistdio/ulc-asnprintf.c: Likewise.
7094         * lib/unistdio/ulc-asprintf.c: Likewise.
7095         * lib/unistdio/ulc-printf-parse.c: Likewise.
7096         * lib/unistdio/ulc-snprintf.c: Likewise.
7097         * lib/unistdio/ulc-sprintf.c: Likewise.
7098         * lib/unistdio/ulc-vasnprintf.c: Likewise.
7099         * lib/unistdio/ulc-vasprintf.c: Likewise.
7100         * lib/unistdio/ulc-vsnprintf.c: Likewise.
7101         * lib/unistdio/ulc-vsprintf.c: Likewise.
7102         * lib/unistr.h: Likewise.
7103         * lib/unistr/u-cpy-alloc.h: Likewise.
7104         * lib/unistr/u-cpy.h: Likewise.
7105         * lib/unistr/u-endswith.h: Likewise.
7106         * lib/unistr/u-move.h: Likewise.
7107         * lib/unistr/u-set.h: Likewise.
7108         * lib/unistr/u-startswith.h: Likewise.
7109         * lib/unistr/u-stpcpy.h: Likewise.
7110         * lib/unistr/u-stpncpy.h: Likewise.
7111         * lib/unistr/u-strcat.h: Likewise.
7112         * lib/unistr/u-strcpy.h: Likewise.
7113         * lib/unistr/u-strcspn.h: Likewise.
7114         * lib/unistr/u-strdup.h: Likewise.
7115         * lib/unistr/u-strlen.h: Likewise.
7116         * lib/unistr/u-strncat.h: Likewise.
7117         * lib/unistr/u-strncpy.h: Likewise.
7118         * lib/unistr/u-strnlen.h: Likewise.
7119         * lib/unistr/u-strpbrk.h: Likewise.
7120         * lib/unistr/u-strspn.h: Likewise.
7121         * lib/unistr/u-strstr.h: Likewise.
7122         * lib/unistr/u-strtok.h: Likewise.
7123         * lib/unistr/u16-check.c: Likewise.
7124         * lib/unistr/u16-chr.c: Likewise.
7125         * lib/unistr/u16-cmp.c: Likewise.
7126         * lib/unistr/u16-cpy-alloc.c: Likewise.
7127         * lib/unistr/u16-cpy.c: Likewise.
7128         * lib/unistr/u16-endswith.c: Likewise.
7129         * lib/unistr/u16-mblen.c: Likewise.
7130         * lib/unistr/u16-mbsnlen.c: Likewise.
7131         * lib/unistr/u16-mbtouc-aux.c: Likewise.
7132         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
7133         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
7134         * lib/unistr/u16-mbtouc.c: Likewise.
7135         * lib/unistr/u16-mbtoucr.c: Likewise.
7136         * lib/unistr/u16-move.c: Likewise.
7137         * lib/unistr/u16-next.c: Likewise.
7138         * lib/unistr/u16-prev.c: Likewise.
7139         * lib/unistr/u16-set.c: Likewise.
7140         * lib/unistr/u16-startswith.c: Likewise.
7141         * lib/unistr/u16-stpcpy.c: Likewise.
7142         * lib/unistr/u16-stpncpy.c: Likewise.
7143         * lib/unistr/u16-strcat.c: Likewise.
7144         * lib/unistr/u16-strchr.c: Likewise.
7145         * lib/unistr/u16-strcmp.c: Likewise.
7146         * lib/unistr/u16-strcpy.c: Likewise.
7147         * lib/unistr/u16-strcspn.c: Likewise.
7148         * lib/unistr/u16-strdup.c: Likewise.
7149         * lib/unistr/u16-strlen.c: Likewise.
7150         * lib/unistr/u16-strmblen.c: Likewise.
7151         * lib/unistr/u16-strmbtouc.c: Likewise.
7152         * lib/unistr/u16-strncat.c: Likewise.
7153         * lib/unistr/u16-strncmp.c: Likewise.
7154         * lib/unistr/u16-strncpy.c: Likewise.
7155         * lib/unistr/u16-strnlen.c: Likewise.
7156         * lib/unistr/u16-strpbrk.c: Likewise.
7157         * lib/unistr/u16-strrchr.c: Likewise.
7158         * lib/unistr/u16-strspn.c: Likewise.
7159         * lib/unistr/u16-strstr.c: Likewise.
7160         * lib/unistr/u16-strtok.c: Likewise.
7161         * lib/unistr/u16-to-u32.c: Likewise.
7162         * lib/unistr/u16-to-u8.c: Likewise.
7163         * lib/unistr/u16-uctomb-aux.c: Likewise.
7164         * lib/unistr/u16-uctomb.c: Likewise.
7165         * lib/unistr/u32-check.c: Likewise.
7166         * lib/unistr/u32-chr.c: Likewise.
7167         * lib/unistr/u32-cmp.c: Likewise.
7168         * lib/unistr/u32-cpy-alloc.c: Likewise.
7169         * lib/unistr/u32-cpy.c: Likewise.
7170         * lib/unistr/u32-endswith.c: Likewise.
7171         * lib/unistr/u32-mblen.c: Likewise.
7172         * lib/unistr/u32-mbsnlen.c: Likewise.
7173         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
7174         * lib/unistr/u32-mbtouc.c: Likewise.
7175         * lib/unistr/u32-mbtoucr.c: Likewise.
7176         * lib/unistr/u32-move.c: Likewise.
7177         * lib/unistr/u32-next.c: Likewise.
7178         * lib/unistr/u32-prev.c: Likewise.
7179         * lib/unistr/u32-set.c: Likewise.
7180         * lib/unistr/u32-startswith.c: Likewise.
7181         * lib/unistr/u32-stpcpy.c: Likewise.
7182         * lib/unistr/u32-stpncpy.c: Likewise.
7183         * lib/unistr/u32-strcat.c: Likewise.
7184         * lib/unistr/u32-strchr.c: Likewise.
7185         * lib/unistr/u32-strcmp.c: Likewise.
7186         * lib/unistr/u32-strcpy.c: Likewise.
7187         * lib/unistr/u32-strcspn.c: Likewise.
7188         * lib/unistr/u32-strdup.c: Likewise.
7189         * lib/unistr/u32-strlen.c: Likewise.
7190         * lib/unistr/u32-strmblen.c: Likewise.
7191         * lib/unistr/u32-strmbtouc.c: Likewise.
7192         * lib/unistr/u32-strncat.c: Likewise.
7193         * lib/unistr/u32-strncmp.c: Likewise.
7194         * lib/unistr/u32-strncpy.c: Likewise.
7195         * lib/unistr/u32-strnlen.c: Likewise.
7196         * lib/unistr/u32-strpbrk.c: Likewise.
7197         * lib/unistr/u32-strrchr.c: Likewise.
7198         * lib/unistr/u32-strspn.c: Likewise.
7199         * lib/unistr/u32-strstr.c: Likewise.
7200         * lib/unistr/u32-strtok.c: Likewise.
7201         * lib/unistr/u32-to-u16.c: Likewise.
7202         * lib/unistr/u32-to-u8.c: Likewise.
7203         * lib/unistr/u32-uctomb.c: Likewise.
7204         * lib/unistr/u8-check.c: Likewise.
7205         * lib/unistr/u8-chr.c: Likewise.
7206         * lib/unistr/u8-cmp.c: Likewise.
7207         * lib/unistr/u8-cpy-alloc.c: Likewise.
7208         * lib/unistr/u8-cpy.c: Likewise.
7209         * lib/unistr/u8-endswith.c: Likewise.
7210         * lib/unistr/u8-mblen.c: Likewise.
7211         * lib/unistr/u8-mbsnlen.c: Likewise.
7212         * lib/unistr/u8-mbtouc-aux.c: Likewise.
7213         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
7214         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
7215         * lib/unistr/u8-mbtouc.c: Likewise.
7216         * lib/unistr/u8-mbtoucr.c: Likewise.
7217         * lib/unistr/u8-move.c: Likewise.
7218         * lib/unistr/u8-next.c: Likewise.
7219         * lib/unistr/u8-prev.c: Likewise.
7220         * lib/unistr/u8-set.c: Likewise.
7221         * lib/unistr/u8-startswith.c: Likewise.
7222         * lib/unistr/u8-stpcpy.c: Likewise.
7223         * lib/unistr/u8-stpncpy.c: Likewise.
7224         * lib/unistr/u8-strcat.c: Likewise.
7225         * lib/unistr/u8-strchr.c: Likewise.
7226         * lib/unistr/u8-strcmp.c: Likewise.
7227         * lib/unistr/u8-strcpy.c: Likewise.
7228         * lib/unistr/u8-strcspn.c: Likewise.
7229         * lib/unistr/u8-strdup.c: Likewise.
7230         * lib/unistr/u8-strlen.c: Likewise.
7231         * lib/unistr/u8-strmblen.c: Likewise.
7232         * lib/unistr/u8-strmbtouc.c: Likewise.
7233         * lib/unistr/u8-strncat.c: Likewise.
7234         * lib/unistr/u8-strncmp.c: Likewise.
7235         * lib/unistr/u8-strncpy.c: Likewise.
7236         * lib/unistr/u8-strnlen.c: Likewise.
7237         * lib/unistr/u8-strpbrk.c: Likewise.
7238         * lib/unistr/u8-strrchr.c: Likewise.
7239         * lib/unistr/u8-strspn.c: Likewise.
7240         * lib/unistr/u8-strstr.c: Likewise.
7241         * lib/unistr/u8-strtok.c: Likewise.
7242         * lib/unistr/u8-to-u16.c: Likewise.
7243         * lib/unistr/u8-to-u32.c: Likewise.
7244         * lib/unistr/u8-uctomb-aux.c: Likewise.
7245         * lib/unistr/u8-uctomb.c: Likewise.
7246         * lib/unitypes.h: Likewise.
7247         * lib/uniwidth.h: Likewise.
7248         * lib/uniwidth/cjk.h: Likewise.
7249         * lib/uniwidth/u16-strwidth.c: Likewise.
7250         * lib/uniwidth/u16-width.c: Likewise.
7251         * lib/uniwidth/u32-strwidth.c: Likewise.
7252         * lib/uniwidth/u32-width.c: Likewise.
7253         * lib/uniwidth/u8-strwidth.c: Likewise.
7254         * lib/uniwidth/u8-width.c: Likewise.
7255         * lib/uniwidth/width.c: Likewise.
7256
7257 2007-10-07  Bruno Haible  <bruno@clisp.org>
7258
7259         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
7260         The file is still under LGPL (see modules/inttypes).
7261
7262 2007-10-06  Bruno Haible  <bruno@clisp.org>
7263
7264         * modules/trunc (Dependencies): Add 'extensions'.
7265         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
7266         Reported by Ben Pfaff <blp@gnu.org>.
7267
7268 2007-10-06  Bruno Haible  <bruno@clisp.org>
7269
7270         * modules/freopen-tests: New file.
7271         * tests/test-freopen.c: New file.
7272
7273         * modules/fopen-tests: New file.
7274         * tests/test-fopen.c: New file.
7275
7276         * modules/fopen: New file.
7277         * lib/fopen.c: New file.
7278         * m4/fopen.m4: New file.
7279         * modules/freopen: New file.
7280         * lib/freopen.c: New file.
7281         * m4/freopen.m4: New file.
7282         * lib/stdio.in.h (fopen, freopen): New declarations.
7283         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
7284         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
7285         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
7286         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
7287         * doc/functions/fopen.texi: Mention the 'fopen' module.
7288         * doc/functions/freopen.texi: Mention the 'freopen' module.
7289
7290 2007-10-06  Bruno Haible  <bruno@clisp.org>
7291
7292         * modules/open-tests: New file.
7293         * tests/test-open.c: New file.
7294
7295         * modules/open: New file.
7296         * lib/open.c: New file.
7297         * m4/open.m4: New file.
7298         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
7299         lib/open.c does.
7300         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
7301         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
7302         macros.
7303         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
7304         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
7305         REPLACE_OPEN.
7306         * doc/functions/open.texi: Mention the 'open' module.
7307
7308 2007-10-04  Bruno Haible  <bruno@clisp.org>
7309
7310         * modules/ceill-tests: New file.
7311         * tests/test-ceill.c: New file.
7312
7313         * modules/ceill: New file.
7314         * lib/ceill.c: Replace entire file.
7315         * m4/ceill.m4: New file.
7316         * lib/math.in.h (ceill): Replace declaration.
7317         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
7318         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
7319         * doc/functions/ceill.texi: Mention the 'ceill' module.
7320         * modules/mathl (Files): Remove lib/ceill.c.
7321         (Depends-on): Add ceill.
7322
7323 2007-10-04  Bruno Haible  <bruno@clisp.org>
7324
7325         * modules/ceilf-tests: New file.
7326         * tests/test-ceilf.c: New file.
7327
7328         * modules/ceilf: New file.
7329         * lib/ceil.c: New file.
7330         * lib/ceilf.c: New file.
7331         * m4/ceilf.m4: New file.
7332         * lib/math.in.h (ceilf): New declaration.
7333         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
7334         HAVE_DECL_CEILF.
7335         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
7336         HAVE_DECL_CEILF.
7337         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
7338
7339 2007-10-04  Bruno Haible  <bruno@clisp.org>
7340
7341         * modules/floorl-tests: New file.
7342         * tests/test-floorl.c: New file.
7343
7344         * modules/floorl: New file.
7345         * lib/floorl.c: Replace entire file.
7346         * m4/floorl.m4: New file.
7347         * lib/math.in.h (floorl): Replace declaration.
7348         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
7349         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
7350         * doc/functions/floorl.texi: Mention the 'floorl' module.
7351         * modules/mathl (Files): Remove lib/floorl.c.
7352         (Depends-on): Add floorl.
7353
7354 2007-10-04  Bruno Haible  <bruno@clisp.org>
7355
7356         * modules/floorf-tests: New file.
7357         * tests/test-floorf.c: New file.
7358
7359         * modules/floorf: New file.
7360         * lib/floor.c: New file.
7361         * lib/floorf.c: New file.
7362         * m4/floorf.m4: New file.
7363         * lib/math.in.h (floorf): New declaration.
7364         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
7365         HAVE_DECL_FLOORF.
7366         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
7367         HAVE_DECL_FLOORF.
7368         * doc/functions/floorf.texi: Mention the 'floorf' module.
7369
7370 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
7371             Bruno Haible  <bruno@clisp.org>
7372
7373         Advertise for the Git server instead of the CVS server.
7374         * doc/gnulib-intro.texi (Steady Development): Mention the Git
7375         repository instead of the CVS one.
7376         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
7377         about all VCS systems generically.
7378         * doc/gnulib.texi (Introduction): Capitalize `Git'.
7379
7380 2007-10-04  Bruno Haible  <bruno@clisp.org>
7381
7382         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
7383         means.
7384         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
7385
7386 2007-10-04  Bruno Haible  <bruno@clisp.org>
7387
7388         * modules/truncl-tests: New file.
7389         * tests/test-truncl.c: New file.
7390
7391         * modules/truncl: New file.
7392         * lib/truncl.c: New file.
7393         * m4/truncl.m4: New file.
7394         * lib/math.in.h (truncl): New declaration.
7395         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
7396         HAVE_DECL_TRUNCL.
7397         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
7398         HAVE_DECL_TRUNCL.
7399         * doc/functions/truncl.texi: Mention the 'truncl' module.
7400
7401 2007-10-04  Bruno Haible  <bruno@clisp.org>
7402
7403         * modules/truncf-tests: New file.
7404         * tests/test-truncf.c: New file.
7405
7406         * modules/truncf: New file.
7407         * lib/trunc.c: Make paramerizable through USE_* macros.
7408         * lib/truncf.c: New file.
7409         * m4/truncf.m4: New file.
7410         * lib/math.in.h (truncf): New declaration.
7411         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
7412         HAVE_DECL_TRUNCF.
7413         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
7414         HAVE_DECL_TRUNCF.
7415         * doc/functions/truncf.texi: Mention the 'truncf' module.
7416
7417 2007-10-03  Bruno Haible  <bruno@clisp.org>
7418
7419         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
7420         augmentation also for tests modules.
7421         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
7422         * modules/atexit-tests (Makefile.am): Likewise.
7423         * modules/binary-io-tests (Makefile.am): Likewise.
7424         * modules/c-strcase-tests (Makefile.am): Likewise.
7425         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
7426         * modules/canonicalize-tests (Makefile.am): Likewise.
7427         * modules/closein-tests (Makefile.am): Likewise.
7428         * modules/fprintf-posix-tests (Makefile.am): Likewise.
7429         * modules/freadahead-tests (Makefile.am): Likewise.
7430         * modules/fseek-tests (Makefile.am): Likewise.
7431         * modules/fseeko-tests (Makefile.am): Likewise.
7432         * modules/ftell-tests (Makefile.am): Likewise.
7433         * modules/ftello-tests (Makefile.am): Likewise.
7434         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
7435         * modules/isnanl-tests (Makefile.am): Likewise.
7436         * modules/lseek-tests (Makefile.am): Likewise.
7437         * modules/mbscasecmp-tests (Makefile.am): Likewise.
7438         * modules/mbscasestr-tests (Makefile.am): Likewise.
7439         * modules/mbschr-tests (Makefile.am): Likewise.
7440         * modules/mbscspn-tests (Makefile.am): Likewise.
7441         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
7442         * modules/mbspbrk-tests (Makefile.am): Likewise.
7443         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
7444         * modules/mbsrchr-tests (Makefile.am): Likewise.
7445         * modules/mbsspn-tests (Makefile.am): Likewise.
7446         * modules/mbsstr-tests (Makefile.am): Likewise.
7447         * modules/printf-posix-tests (Makefile.am): Likewise.
7448         * modules/snprintf-posix-tests (Makefile.am): Likewise.
7449         * modules/sprintf-posix-tests (Makefile.am): Likewise.
7450         * modules/tsearch-tests (Makefile.am): Likewise.
7451         * modules/uniname/uniname-tests (Makefile.am): Likewise.
7452         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
7453         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
7454         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
7455         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
7456         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
7457         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
7458         * modules/vprintf-posix-tests (Makefile.am): Likewise.
7459         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
7460         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
7461         * modules/xstrtoimax-tests (Makefile.am): Likewise.
7462         * modules/xstrtol-tests (Makefile.am): Likewise.
7463         * modules/xstrtoumax-tests (Makefile.am): Likewise.
7464         * modules/yesno-tests (Makefile.am): Likewise.
7465
7466 2007-10-03  Bruno Haible  <bruno@clisp.org>
7467
7468         * modules/trunc-tests: New file.
7469         * tests/test-trunc.c: New file.
7470
7471         * modules/trunc: New file.
7472         * lib/trunc.c: New file.
7473         * m4/trunc.m4: New file.
7474         * lib/math.in.h (trunc): New declaration.
7475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
7476         HAVE_DECL_TRUNC.
7477         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
7478         HAVE_DECL_TRUNC.
7479         * doc/functions/trunc.texi: Mention the 'trunc' module.
7480
7481 2007-10-03  Bruno Haible  <bruno@clisp.org>
7482
7483         * tests/test-fpending.c: New file, mostly copied
7484         from coreutils/lib/t-fpending.c.
7485         * modules/fpending-tests: New file.
7486
7487 2007-10-03  Bruno Haible  <bruno@clisp.org>
7488
7489         Port the stdio extensions to QNX (untested).
7490         * lib/fseterr.c (fseterr): Add support for QNX.
7491         * lib/fbufmode.c (fbufmode): Likewise.
7492         * lib/freadable.c (freadable): Likewise.
7493         * lib/fwritable.c (fwritable): Likewise.
7494         * lib/freading.c (freading): Likewise.
7495         * lib/fwriting.c (fwriting): Likewise.
7496         * lib/freadahead.c (freadahed): Likewise.
7497         * lib/fpurge.c (fpurge): Likewise.
7498         * lib/fseeko.c (rpl_fseeko): Likewise.
7499
7500 2007-10-03  Bruno Haible  <bruno@clisp.org>
7501             Jim Meyering  <jim@meyering.net>
7502             Eric Blake  <ebb9@byu.net>
7503
7504         * doc/relocatable.texi: Use @command instead of @program.
7505
7506 2007-10-02  Jim Meyering  <jim@meyering.net>
7507
7508         Perform one more "_.h" -> ".in.h" substitution.
7509         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
7510         instead of unistd_.h here, too.
7511
7512 2007-10-01  Bruno Haible  <bruno@clisp.org>
7513
7514         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
7515         Needed for the alloca-opt module.
7516
7517 2007-09-30  Bruno Haible  <bruno@clisp.org>
7518
7519         * lib/alloca.in.h: Renamed from lib/alloca_.h.
7520         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
7521         alloca_.h.
7522         * lib/argz.in.h: Renamed from lib/argz_.h.
7523         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
7524         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
7525         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
7526         byteswap_.h.
7527         * lib/dirent.in.h: Renamed from lib/dirent_.h.
7528         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
7529         dirent_.h.
7530         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
7531         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
7532         fcntl_.h.
7533         * lib/float.in.h: Renamed from lib/float_.h.
7534         * modules/float (Files, Makefile.am): Use float.in.h instead of
7535         float_.h.
7536         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
7537         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
7538         fnmatch_.h.
7539         * lib/getopt.in.h: Renamed from lib/getopt_.h.
7540         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
7541         getopt_.h.
7542         * lib/glob.in.h: Renamed from lib/glob_.h.
7543         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
7544         * lib/iconv.in.h: Renamed from lib/iconv_.h.
7545         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
7546         iconv_.h.
7547         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
7548         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
7549         inttypes_.h.
7550         * lib/locale.in.h: Renamed from lib/locale_.h.
7551         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
7552         locale_.h.
7553         * lib/math.in.h: Renamed from lib/math_.h.
7554         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
7555         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
7556         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
7557         of netinet_in_.h. Add dependency.
7558         * lib/poll.in.h: Renamed from lib/poll_.h.
7559         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
7560         * lib/search.in.h: Renamed from lib/search_.h.
7561         * modules/search (Files, Makefile.am): Use search.in.h instead of
7562         search_.h.
7563         * lib/signal.in.h: Renamed from lib/signal_.h.
7564         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
7565         _signal.h.
7566         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
7567         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
7568         stdbool_.h.
7569         * lib/stdint.in.h: Renamed from lib/stdint_.h.
7570         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
7571         stdint_.h.
7572         * lib/stdio.in.h: Renamed from lib/stdio_.h.
7573         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
7574         stdio_.h.
7575         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
7576         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
7577         stdlib_.h.
7578         * lib/string.in.h: Renamed from lib/string_.h.
7579         * modules/string (Files, Makefile.am): Use string.in.h instead of
7580         string_.h.
7581         * doc/gnulib-tool.texi (Initial import): Update.
7582         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
7583         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
7584         of sys_select_.h. Add dependency.
7585         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
7586         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
7587         of sys_socket_.h.
7588         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
7589         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
7590         sys_stat_.h.
7591         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
7592         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
7593         sys_time_.h.
7594         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
7595         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
7596         sysexits_.h.
7597         * lib/time.in.h: Renamed from lib/time_.h.
7598         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
7599         * lib/unistd.in.h: Renamed from lib/unistd_.h.
7600         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
7601         unistd_.h.
7602         * lib/wchar.in.h: Renamed from lib/wchar_.h.
7603         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
7604         wchar_.h.
7605         * lib/wctype.in.h: Renamed from lib/wctype_.h.
7606         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
7607         wctype_.h.
7608         * build-aux/bootstrap (slurp): Update.
7609         * lib/.cppi-disable: Update.
7610
7611 2007-09-30  Bruno Haible  <bruno@clisp.org>
7612
7613         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
7614         Needed on BeOS.
7615
7616 2007-09-30  Bruno Haible  <bruno@clisp.org>
7617
7618         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
7619
7620 2007-09-29  Bruno Haible  <bruno@clisp.org>
7621
7622         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
7623
7624 2007-09-29  Bruno Haible  <bruno@clisp.org>
7625
7626         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
7627         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
7628         * build-aux/install-reloc: Compile also areadlink.c.
7629         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
7630
7631 2007-09-29  Bruno Haible  <bruno@clisp.org>
7632
7633         * gnulib-tool (func_emit_initmacro_done): Indentation.
7634
7635 2007-09-29  Bruno Haible  <bruno@clisp.org>
7636
7637         * README: Add CVS checkout update instructions.
7638         Info from Bob Proulx <bob@proulx.com>.
7639
7640 2007-09-28  Eric Blake  <ebb9@byu.net>
7641
7642         Provide move-if-change.
7643         * build-aux/move-if-change: New file, based on best practice
7644         rather than any canonical upstream location.
7645
7646 2007-09-28  Jim Meyering  <jim@meyering.net>
7647
7648         Fix canonicalize loop-detection corner case.
7649         Do not attempt to stat the symlink values stored via seen_triple.
7650         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
7651         on linux-2.6.18, (but not 2.6.22).
7652         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
7653         triple_compare.  The former compares dev,ino,filename, while the latter
7654         would actually stat dirname(filename) when dev and ino were equal.
7655         * lib/hash-triple.c: Install <string.h>.
7656         (STREQ): Define.
7657         (triple_compare_ino_str): New function.
7658         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
7659
7660 2007-09-28  Eric Blake  <ebb9@byu.net>
7661
7662         Enforce that AC_REPLACE_FUNCS files exist.
7663         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
7664         override check for typos.
7665
7666         Fix test-closein on Solaris 10.
7667         * tests/test-closein.c (main): Don't assume stdin can be inherited
7668         closed on all systems.
7669         * tests/test-closein.sh: Likewise.
7670         Reported by Piotr Tarnowski.
7671
7672 2007-09-28  Jim Meyering  <jim@meyering.net>
7673
7674         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
7675
7676 2007-09-27  Jim Meyering  <jim@meyering.net>
7677
7678         canonicalize: Avoid a false-positive cycle failure.
7679         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
7680         Sort.  Remove cycle-check.
7681         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
7682         not cycle-check.h.
7683         (seen_triple): New function.
7684         (canonicalize_filename_mode): Use it instead of cycle-check.
7685         * tests/test-canonicalize.c: Add a test for this bug.
7686         * tests/test-canonicalize.sh: Set up and run the test.
7687
7688         New module, file-set, from coreutils.
7689         * modules/file-set: Define it.
7690         * lib/file-set.c, lib/file-set.h: Implement.
7691
7692         New module, hash-triple, from coreutils.
7693         * modules/hash-triple: Define it.
7694         * lib/hash-triple.c, lib/hash-triple.h: Implement.
7695
7696 2007-09-25  Eric Blake  <ebb9@byu.net>
7697
7698         Fix strerror on Interix.
7699         * lib/string_.h (strerror): Declare replacement.
7700         * doc/functions/strerror.texi (strerror): Document the Interix
7701         shortcoming.
7702         * modules/string (Makefile.am): Support new hooks.
7703         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
7704         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
7705         gl_FUNC_STRERROR_SEPARATE.
7706         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
7707         * lib/strerror.c (rpl_strerror): Provide replacement.
7708         * modules/strerror (Depends-on): Add string.
7709         (configure.ac): Detect use of module.
7710         * tests/test-strerror.c: New file.
7711         * modules/strerror-tests: New test module.
7712         * modules/argp (Depends-on): Add strerror.
7713         * modules/error (Depends-on): Likewise.
7714         Reported by Martin Koeppe.
7715
7716 2007-09-24  Bruno Haible  <bruno@clisp.org>
7717
7718         * README: Update git instructions.
7719
7720 2007-09-24  Eric Blake  <ebb9@byu.net>
7721
7722         Revert fpending breakage from 2007-09-08.
7723         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
7724         __fpending.c.
7725
7726 2007-09-24  Jim Meyering  <jim@meyering.net>
7727
7728         filenamecat.c: Add a test.
7729         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
7730         showing how the function works when DIR is the empty string.
7731
7732 2007-09-21  Simon Josefsson  <simon@josefsson.org>
7733
7734         * tests/test-canonicalize.sh: Turn on executable bit.
7735
7736 2007-09-19  Eric Blake  <ebb9@byu.net>
7737
7738         * README: Update CVS instructions.
7739
7740 2007-09-18  Bruno Haible  <bruno@clisp.org>
7741
7742         * modules/areadlink: New file.
7743         * lib/areadlink.h (areadlink): New declaration.
7744         * lib/areadlink.c: New file, based on lib/xreadlink.c.
7745
7746 2007-09-17  Jim Meyering  <jim@meyering.net>
7747
7748         * lib/savewd.c (ESTALE) [!defined]: Define.
7749         Reported to be required on Interix by Martin Koeppe.
7750
7751 2007-09-17  Bruno Haible  <bruno@clisp.org>
7752
7753         * gnulib-tool (func_version): Use $version.
7754
7755 2007-09-16  Bruno Haible  <bruno@clisp.org>
7756
7757         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
7758         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
7759         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
7760         Reported by Greg Schafer <gschafer@zip.com.au>.
7761
7762 2007-09-15  Bruno Haible  <bruno@clisp.org>
7763
7764         * gnulib-tool (sed): Try a little harder to make bash understand the
7765         alias.
7766         Reported by Bruce Korb <bruce.korb@gmail.com>.
7767
7768 2007-09-13  Eric Blake  <ebb9@byu.net>
7769
7770         * ChangeLog: Remove conflict markers.
7771
7772 2007-09-13  Simon Josefsson  <simon@josefsson.org>
7773
7774         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
7775         Reported by Bruno Haible <bruno@clisp.org>.
7776
7777 2007-09-12  Bruno Haible  <bruno@clisp.org>
7778
7779         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
7780         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
7781         is not defined.
7782
7783 2007-09-12  Eric Blake  <ebb9@byu.net>
7784
7785         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
7786         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
7787         Autoconf definition.
7788         * modules/euidaccess (Depends-on): Add extensions, for
7789         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
7790         * modules/fnmatch (Depends-on): Likewise.
7791         * modules/getaddrinfo (Depends-on): Likewise.
7792         * modules/getdelim (Depends-on): Likewise.
7793         * modules/getline (Depends-on): Likewise.
7794         * modules/getsubopt (Depends-on): Likewise.
7795         * modules/gettext (Depends-on): Likewise.
7796         * modules/group-member (Depends-on): Likewise.
7797         * modules/mbchar (Depends-on): Likewise.
7798         * modules/memmem (Depends-on): Likewise.
7799         * modules/mempcpy (Depends-on): Likewise.
7800         * modules/memrchr (Depends-on): Likewise.
7801         * modules/pagealign_alloc (Depends-on): Likewise.
7802         * modules/readutmp (Depends-on): Likewise.
7803         * modules/stpcpy (Depends-on): Likewise.
7804         * modules/stpncpy (Depends-on): Likewise.
7805         * modules/strchrnul (Depends-on): Likewise.
7806         * modules/strndup (Depends-on): Likewise.
7807         * modules/strsep (Depends-on): Likewise.
7808         * modules/strverscmp (Depends-on): Likewise.
7809         * modules/vasprintf (Depends-on): Likewise.
7810         * modules/wcwidth (Depends-on): Likewise.
7811         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
7812         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
7813         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
7814         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
7815         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7816         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7817         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
7818         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
7819         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
7820         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
7821         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
7822         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
7823         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
7824         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
7825         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
7826         * m4/readutmp.m4 (gl_READUTMP): Likewise.
7827         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
7828         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
7829         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
7830         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
7831         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
7832         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
7833         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
7834         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
7835         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
7836         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7837         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
7838         so that lock.m4 can be used in gettext without extensions module.
7839
7840 2007-09-11  Bruno Haible  <bruno@clisp.org>
7841
7842         * m4/isc-posix.m4: Remove file.
7843         Suggested by Eric Blake.
7844
7845 2007-09-11  Eric Blake  <ebb9@byu.net>
7846
7847         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
7848
7849 2007-09-10  Bruno Haible  <bruno@clisp.org>
7850
7851         * posix-modules: Fix typo in error message.
7852         Reported by Matt <mkraai@beckman.com>.
7853
7854 2007-09-09  Bruno Haible  <bruno@clisp.org>
7855
7856         * doc/functions/getdelim.texi: Update list of platforms lacking the
7857         function.
7858         * doc/functions/getline.texi: Likewise.
7859
7860 2007-09-09  Jim Meyering  <jim@meyering.net>
7861
7862         * lib/hash.c (hash_initialize): Detect calloc failure.
7863         Reported by Bruno Haible.
7864
7865 2007-09-09  Bruno Haible  <bruno@clisp.org>
7866
7867         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
7868         malloc or realloc fails.
7869
7870 2007-09-09  Bruno Haible  <bruno@clisp.org>
7871
7872         * modules/getcwd (Depends-on): Add malloc-posix.
7873         * modules/glob (Depends-on): Likewise.
7874         * modules/putenv (Depends-on): Likewise.
7875         * modules/strdup (Depends-on): Likewise.
7876         * modules/getdelim (Depends-on): Add realloc-posix.
7877         * modules/read-file (Depends-on): Likewise.
7878
7879 2007-09-09  Bruno Haible  <bruno@clisp.org>
7880
7881         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
7882         (gl_FUNC_MALLOC_POSIX): Require it.
7883         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
7884         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
7885         * modules/realloc (Files): Add m4/malloc.m4.
7886         * modules/calloc (Files): Likewise.
7887
7888 2007-09-09  Bruno Haible  <bruno@clisp.org>
7889
7890         * modules/malloc-posix: New file.
7891         * modules/malloc (Depends-on): Add malloc-posix.
7892         * lib/malloc.c: Include errno.h.
7893         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
7894         and a POSIX-compatible malloc into a single function. Set ENOMEM
7895         when returning NULL.
7896         * m4/malloc.m4: New file.
7897         * doc/functions/malloc.texi: Mention the malloc-posix module.
7898         * lib/stdlib_.h (malloc): New declaration.
7899         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
7900         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
7901         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
7902         and HAVE_MALLOC_POSIX.
7903
7904 2007-09-09  Bruno Haible  <bruno@clisp.org>
7905
7906         * modules/realloc-posix: New file.
7907         * modules/realloc (Depends-on): Add realloc-posix.
7908         * lib/realloc.c: Include errno.h.
7909         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
7910         and a POSIX-compatible realloc into a single function. Set ENOMEM
7911         when returning NULL.
7912         * m4/realloc.m4: New file.
7913         * doc/functions/realloc.texi: Mention the realloc-posix module.
7914         * lib/stdlib_.h (realloc): New declaration.
7915         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
7916         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
7917         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
7918         and HAVE_REALLOC_POSIX.
7919
7920 2007-09-09  Bruno Haible  <bruno@clisp.org>
7921
7922         * modules/calloc-posix: New file.
7923         * modules/calloc (Depends-on): Add calloc-posix.
7924         * lib/calloc.c: Include errno.h.
7925         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
7926         and a POSIX-compatible calloc into a single function. Set ENOMEM
7927         when returning NULL.
7928         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
7929         * doc/functions/calloc.texi: Mention the calloc-posix module.
7930         * lib/stdlib_.h (calloc): New declaration.
7931         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
7932         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
7933         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
7934         and HAVE_CALLOC_POSIX.
7935
7936 2007-09-09  Bruno Haible  <bruno@clisp.org>
7937
7938         Allow for modules to show an arbitrary notice.
7939         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
7940         * gnulib-tool: New option --extract-notice.
7941         (func_usage): Document it.
7942         (sed_extract_prog): Update.
7943         (func_get_notice): New function.
7944         (func_modules_notice): New function.
7945         (func_import, func_create_testdir): Invoke it.
7946         Suggested by Jim Meyering.
7947
7948 2007-09-09  Bruno Haible  <bruno@clisp.org>
7949
7950         * gnulib-tool: New options --verbose, --quiet.
7951         (func_usage): Document them.
7952         (verbose): New variable.
7953         (func_execute_command): New function.
7954         (func_import): Don't show the module list and the file list if
7955         $verbose < 0.
7956         (func_create_testdir): Likewise. Use func_execute_command.
7957         (func_create_megatestdir): Use func_execute_command.
7958
7959 2007-09-08  Bruno Haible  <bruno@clisp.org>
7960
7961         * gnulib-tool (func_import): Prefer rsync over wget when available,
7962         for fetching the PO files.
7963
7964 2007-09-08  Bruno Haible  <bruno@clisp.org>
7965
7966         * posix-modules: New file. Portions copied from gnulib-tool.
7967         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
7968
7969 2007-09-08  Jim Meyering  <jim@meyering.net>
7970
7971         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
7972         * lib/fpending.h: Rename from __fpending.h.
7973         * lib/fpending.c: Rename from __fpending.c.
7974         Include "fpending.h", not "__fpending.h".
7975         * lib/__fpending.h, lib/__fpending.c: Remove files.
7976         * modules/fpending (Files): Reflect new file names.
7977         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
7978
7979 2007-09-08  Bruno Haible  <bruno@clisp.org>
7980
7981         * m4/inttypes-h.m4: Remove stub file.
7982
7983 2007-09-07  Simon Josefsson  <simon@josefsson.org>
7984
7985         * doc/headers/stdint.texi: Discuss #include_next issue.
7986
7987 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
7988
7989         * build-aux/bootstrap: Remove obsolete comment about wget --help.
7990
7991 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7992
7993         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
7994         in variable name.
7995
7996 2007-09-03  Jim Meyering  <jim@meyering.net>
7997
7998         New module: git-version-gen.
7999         * modules/git-version-gen: New file.
8000
8001         Import changes from coreutils for bootstrap script.
8002
8003         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
8004
8005         bootstrap: uses rsync to download the .po files
8006         * build-aux/bootstrap (po_download_command_format): New global.
8007         (download_po_files): Use rsync.
8008         (update_po_files): Don't remove .po files after download,
8009         so future rsync runs can take advantage of the copies.
8010
8011         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
8012
8013         Solve the unnecessary-.po-file-regeneration problem once and for all.
8014         * build-aux/bootstrap (download_po_files): New function, renamed from
8015         get_translations.  Now, downloads, but doesn't update LINGUAS.
8016         (update_po_files): New function.
8017
8018         bootstrap: Ignore more.
8019         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
8020         uniwidth to e.g., lib/.gitignore.
8021         (slurp): Handle the sys_stat_.h -> sys mapping, too.
8022
8023         * build-aux/bootstrap: New setting: vc_ignore.
8024         (insert_sorted_if_absent): Create $file if absent.
8025         Adapt to new, possibly empty, list: $vc_ignore.
8026
8027         bootstrap: generate more ignorable names
8028         * build-aux/bootstrap (slurp): When generating ignorable names,
8029         also map .sin to .sed, .gperf to .c, and .y to .c.
8030
8031 2007-09-03  Jim Meyering  <jim@meyering.net>
8032
8033         * build-aux/git-version-gen: New file, from coreutils.  For details, see
8034         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
8035
8036 2007-09-02  Bruno Haible  <bruno@clisp.org>
8037
8038         Fix mis-recognition of 'mcs' on QNX 6.
8039         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
8040         output contains the string "Mono".
8041         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
8042         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
8043
8044 2007-09-01  Bruno Haible  <bruno@clisp.org>
8045
8046         Fix collision between uniwidth/* and linebreak modules.
8047         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
8048         u32_width): Remove declarations.
8049         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
8050         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
8051         streq3, streq2, streq1, streq0): Remove functions.
8052         (STREQ): Remove macro.
8053         (is_cjk_encoding): Remove function.
8054         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
8055         (uc_width, u8_width, u16_width, u32_width): Remove functions.
8056         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
8057         * NEWS: Document the change.
8058
8059 2007-09-01  Bruno Haible  <bruno@clisp.org>
8060
8061         * lib/streq.h: Add double-inclusion guard.
8062
8063 2007-09-01  Karl Berry  <karl@gnu.org>
8064
8065         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
8066
8067 2007-08-28  Jim Meyering  <jim@meyering.net>
8068
8069         Rename mreadlink_with_size to areadlink_with_size.
8070         * NEWS: Document the change.
8071         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
8072         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
8073         * lib/mreadlink.h: Rename this to...
8074         * lib/areadlink.h: ...this.
8075         * modules/mreadlink-with-size: Rename this to...
8076         * modules/areadlink-with-size: ...this.
8077         * lib/canonicalize.c: Reflect the renaming.
8078         * modules/canonicalize: Likewise.
8079
8080 2007-08-26  Bruno Haible  <bruno@clisp.org>
8081
8082         * gnulib-tool (func_import): When deciding which files to remove,
8083         consider also dangling symbolic links.
8084         Reported by Eric Blake.
8085
8086 2007-08-26  Bruno Haible  <bruno@clisp.org>
8087
8088         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
8089
8090 2007-08-23  Simon Josefsson  <simon@josefsson.org>
8091
8092         * lib/readline.c: Don't include getline.h, the prototype is now
8093         found in stdio.h.
8094
8095 2007-08-23  Jim Meyering  <jim@meyering.net>
8096
8097         Getdelim touchup.
8098         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
8099         around the funlockfile call, since funlockfile never sets errno.
8100         Don't set errno upon failed realloc.
8101
8102 2007-08-22  Eric Blake  <ebb9@byu.net>
8103
8104         Getline touchups.
8105         * lib/getdelim.c (getdelim): Revert regression that required *n to
8106         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
8107         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
8108         getdelim, rather than whether implementation is missing.
8109         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
8110         * lib/stdio_.h (getline): Also declare if replacement is
8111         required.
8112         * doc/functions/getdelim.texi: New file.
8113         * doc/functions/getline.texi: Likewise.
8114         * doc/gnulib.texi (Function Substitutes): Add new files.
8115         Reported by Bruno Haible.
8116
8117 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
8118
8119         * users.txt: Add Guile.
8120
8121 2007-08-22  Eric Blake  <ebb9@byu.net>
8122
8123         * tests/test-getdelim.c (main): Use remove, not unlink.
8124         * tests/test-getline.c (main): Likewise.
8125
8126         Move getline and getdelim into stdio.h, per POSIX 200x.
8127         * modules/getline (Files): Remove getline.h.
8128         (Depends-on): Add stdio.
8129         (configure.ac): Add module indicator.
8130         * modules/getdelim (Files): Remove getdelim.h.
8131         (Depends-on): Add stdio.
8132         (configure.ac): Add module indicator.
8133         * modules/stdio (Makefile.am): Work with new indicators.
8134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
8135         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
8136         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8137         * lib/getdelim.h: Delete.
8138         * lib/getline.h: Delete.
8139         * lib/stdio_.h (getdelim, getline): Declare.
8140         * modules/getdelim-tests: New module.
8141         * modules/getline-tests: Likewise.
8142         * tests/test-getdelim.c: New file.
8143         * tests/test-getline.c: Likewise.
8144         * NEWS: Document the change.
8145         * lib/getline.c: Update choice of header.
8146         * lib/csharpcomp.c: Likewise.
8147         * lib/getpass.c: Likewise.
8148         * lib/javacomp.c: Likewise.
8149         * lib/javaversion.c: Likewise.
8150         * lib/yesno.c: Likewise.
8151         * lib/getdelim.c: Likewise.
8152         (getdelim): Set errno on failure, and avoid memory leak.
8153
8154 2007-08-19  Bruno Haible  <bruno@clisp.org>
8155
8156         * modules/closein (Depends-on): Add freadahead.
8157         * lib/closein.c: Include freadahead.h.
8158         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
8159         is zero.
8160
8161 2007-08-19  Bruno Haible  <bruno@clisp.org>
8162
8163         * modules/freadahead-tests: New file.
8164         * tests/test-freadahead.sh: New file.
8165         * tests/test-freadahead.c: New file.
8166
8167         * modules/freadahead: New file.
8168         * lib/freadahead.h: New file.
8169         * lib/freadahead.c: New file.
8170         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
8171         fbufmode, fpurge, freadable, fwritable.
8172
8173 2007-08-19  Eric Blake  <ebb9@byu.net>
8174
8175         Test yesno in combination with closein.
8176         * lib/yesno.c (yesno): Document use of stdin.
8177         * modules/yesno-tests (Files): New module.
8178         * tests/test-yesno.c (main): New file.
8179         * tests/test-yesno.sh: Likewise.
8180
8181 2007-08-19  Bruno Haible  <bruno@clisp.org>
8182
8183         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
8184         * lib/fseeko.c (rpl_fseeko): Likewise.
8185         * lib/fseterr.c (fseterr): Likewise.
8186
8187 2007-08-19  Bruno Haible  <bruno@clisp.org>
8188
8189         * tests/test-lseek.c (main): Disable a test for BeOS.
8190         * doc/functions/lseek.texi: Document the BeOS bug.
8191
8192 2007-08-19  Bruno Haible  <bruno@clisp.org>
8193             Eric Blake  <ebb9@byu.net>
8194
8195         * lib/lseek.c: Include <sys/stat.h>.
8196         (rpl_lseek): Add workaround code also for Unix platforms.
8197         Needed for BeOS.
8198         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
8199         * doc/functions/lseek.texi: Document BeOS definiency.
8200
8201 2007-08-18  Bruno Haible  <bruno@clisp.org>
8202
8203         * modules/fstrcmp-tests: New file.
8204         * tests/test-fstrcmp.c: New file.
8205
8206 2007-08-18  Bruno Haible  <bruno@clisp.org>
8207
8208         * modules/fstrcmp: New file, from GNU gettext with modifications.
8209         * lib/fstrcmp.h: New file, from GNU gettext.
8210         * lib/fstrcmp.c: New file, from GNU gettext.
8211         * MODULES.html.sh (String handling): Add fstrcmp.
8212
8213 2007-08-18  Bruno Haible  <bruno@clisp.org>
8214
8215         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
8216         'bool'.
8217         (diag, compareseq): Remove const from the ctxt argument.
8218         (USE_HEURISTIC): Undefine at the end.
8219
8220 2007-08-18  Jim Meyering  <jim@meyering.net>
8221
8222         New file: lib/idcache.h
8223         * NEWS: Mention the addition.
8224         * modules/idcache (Files): Add lib/idcache.h
8225         * lib/idcache.c: Include "idcache.h".
8226         Don't include <sys/types.h>.
8227         Add a FIXME comment.
8228         Move file-scoped "static" declarations to the top.
8229         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
8230
8231 2007-08-17  Bruno Haible  <bruno@clisp.org>
8232         and Paul Eggert  <eggert@cs.ucla.edu>
8233
8234         * MODULES.html.sh: Add diffseq.
8235         * modules/diffseq: New file.
8236         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
8237         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
8238
8239 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
8240
8241         Import changes from coreutils for bootstrap script.
8242
8243         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
8244
8245         * build-aux/bootstrap (slurp): Work even in environments where
8246         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
8247         current code does not slurp files whose names start with ".", and
8248         this looks like it might be a troublesome area.
8249
8250         2007-07-11  Jim Meyering  <jim@meyering.net>
8251
8252         If there's a GPL vN copyright comment, require that N == 3.
8253
8254         2007-07-08  Jim Meyering  <jim@meyering.net>
8255
8256         Run the coreutils-specific code only if tests/Makefile.am.in exists.
8257         * build-aux/bootstrap (mam_template): Move definition out of loop.
8258
8259         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
8260
8261         * build-aux/bootstrap (symlink_to_dir): Rename function from
8262         symlink_to_gnulib.  Add a directory parameter.  Update all
8263         callers.
8264         (cp_mark_as_generated): Also check for -- and link to -- files in
8265         gl/.
8266
8267         2007-07-08  Jim Meyering  <jim@meyering.net>
8268
8269         Adapt to deeper hierarchy in gnulib.
8270         * build-aux/bootstrap (symlink_to_dir): If the destination
8271         directory doesn't exist, create it. This is required at least for
8272         "lib/uniwidth/cjk.h".
8273
8274         2007-05-15  Jim Meyering  <jim@meyering.net>
8275
8276         * build-aux/bootstrap: Now that generated Makefile.am files
8277         are no longer under version control, they must be created at
8278         bootstrap time.
8279
8280 2007-08-14  Ben Pfaff  <blp@gnu.org>
8281
8282         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
8283
8284 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
8285
8286         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
8287         given the changes below.
8288         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
8289         even on hosts that have padding bits beyond the supported 64.
8290
8291 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
8292
8293         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
8294         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
8295         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
8296         depends on it.
8297         (xstrtol_error): Remove.
8298         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
8299         but with a different signature.
8300         (ATTRIBUTE_NORETURN, __attribute__): New macros.
8301         * lib/xstrtol-error.c: Include exitfail.h.
8302         (xstrtol_fatal): New function, with a different signature from the
8303         old xstrtol_error, so that the caller need not worry about passing
8304         in an exit status, or about storage management of the option argument.
8305         (xstrtol_error): Now a static function.  Redo signature to
8306         implement xstrtol_fatal.  Output the correct number of hyphens in
8307         front of the option so that the caller need not worry about
8308         storage management.
8309         (N_): New macro.
8310         (_): Remove; not used now.
8311         * modules/xstrtol: Depend on getopt.
8312         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
8313         of old STRTOL_FATAL_ERROR macro.
8314         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
8315         of test program.
8316         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
8317         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
8318
8319 2007-08-08  Eric Blake  <ebb9@byu.net>
8320
8321         * lib/xstrtol-error.c: Add missing include.
8322
8323         Move xstrtol messages into gnulib domain, when --pobase is used.
8324         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
8325         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
8326         * modules/xstrtol (Files): Distribute new file.
8327         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
8328         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
8329         * tests/test-xstrtol.c: ...into new file.
8330         * tests/test-xstrtoul.c: Also test xstrtoul.
8331         * tests/test-xstrtoimax.c: Also test xstrtoimax.
8332         * tests/test-xstrtoumax.c: Also test xstrtoumax.
8333         * tests/test-xstrtol.sh: Drive the tests.
8334         * tests/test-xstrtoimax.sh: Likewise.
8335         * tests/test-xstrtoumax.sh: Likewise.
8336         * modules/xstrtol-tests: New module.
8337         * modules/xstrtoimax-tests: Likewise.
8338         * modules/xstrtoumax-tests: Likewise.
8339
8340 2007-08-08  Jim Meyering  <jim@meyering.net>
8341
8342         New function: mfile_name_concat.
8343         * lib/filenamecat.c (mfile_name_concat): New function, just like
8344         file_name_concat, but return NULL upon failure rather than exiting
8345         with a diagnostic.
8346         * lib/filenamecat.h: Declare it.
8347
8348 2007-08-07  Bruno Haible  <bruno@clisp.org>
8349
8350         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
8351         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
8352         warning from gcc.
8353         Reported by Eric Blake.
8354
8355 2007-08-07  Simon Josefsson  <simon@josefsson.org>
8356
8357         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
8358         * modules/crypto/arcfour (License): Likewise.
8359         * modules/crypto/des-tests (License): Likewise.
8360         * modules/crypto/gc-arctwo-tests (License): Likewise.
8361         * modules/crypto/gc-des-tests (License): Likewise.
8362         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
8363         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
8364         * modules/crypto/gc-md2-tests (License): Likewise.
8365         * modules/crypto/gc-md4-tests (License): Likewise.
8366         * modules/crypto/gc-md5-tests (License): Likewise.
8367         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
8368         * modules/crypto/gc-rijndael-tests (License): Likewise.
8369         * modules/crypto/gc-sha1-tests (License): Likewise.
8370         * modules/crypto/gc-tests (License): Likewise.
8371         * modules/crypto/hmac-md5 (License): Likewise.
8372         * modules/crypto/hmac-sha1 (License): Likewise.
8373         * modules/crypto/md2-tests (License): Likewise.
8374         * modules/crypto/md4-tests (License): Likewise.
8375         * modules/crypto/md5 (License): Likewise.
8376         * modules/crypto/rijndael (License): Likewise.
8377         * modules/crypto/sha1 (License): Likewise.
8378         * modules/memxor (License): Likewise.
8379
8380 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
8381         and Bruno Haible  <bruno@clisp.org>
8382
8383         * NEWS: Describe interface changes to human, xstrtol.
8384         * lib/human.h: Include <xstrtol.h>.
8385         (human_options): Return enum strtol_error, not int.  Remove
8386         bool arg; take int * instead.
8387         * lib/human.c: Don't include "gettext.h".
8388         (_): Remove; no longer used.
8389         Don't include <xstrtol.h>, since human.h does it.
8390         (human_options): Adjust to abovementioned interface changes.
8391         Do not report error to stderr; that's now the caller's
8392         responsibility.
8393         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
8394         interface change.
8395         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
8396         Str, Argument_type_string.  All uses changed.  Put " argument"
8397         in diagnostics to make them clearer.  Change wording of suffix
8398         message for clarity.
8399         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
8400         Argument_type_string.
8401         (STRTOL_FATAL_WARN): Remove; no longer used.
8402         * modules/human (Depends-on): Remove gettext-h.
8403
8404 2007-08-06  Simon Josefsson  <simon@josefsson.org>
8405
8406         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
8407
8408 2007-07-31  Bruno Haible  <bruno@clisp.org>
8409
8410         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
8411         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
8412         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
8413
8414 2007-07-31  Bruno Haible  <bruno@clisp.org>
8415
8416         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
8417         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
8418
8419 2007-07-30  Bruno Haible  <bruno@clisp.org>
8420
8421         * modules/base64 (License): Use the synonymous term "LGPLv2+".
8422         * modules/c-ctype (License): Likewise.
8423         * modules/c-strcase (License): Likewise.
8424         * modules/check-version (License): Likewise.
8425         * modules/iconv (License): Likewise.
8426         * modules/iconv_open (License): Likewise.
8427         * modules/read-file (License): Likewise.
8428         * modules/striconv (License): Likewise.
8429         * modules/strverscmp (License): Likewise.
8430         * modules/vasprintf (License): Likewise.
8431         * modules/crypto/des (License): Likewise.
8432         * modules/crypto/gc (License): Likewise.
8433         * modules/crypto/gc-arcfour (License): Likewise.
8434         * modules/crypto/gc-arctwo (License): Likewise.
8435         * modules/crypto/gc-des (License): Likewise.
8436         * modules/crypto/gc-hmac-md5 (License): Likewise.
8437         * modules/crypto/gc-hmac-sha1 (License): Likewise.
8438         * modules/crypto/gc-md2 (License): Likewise.
8439         * modules/crypto/gc-md4 (License): Likewise.
8440         * modules/crypto/gc-md5 (License): Likewise.
8441         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
8442         * modules/crypto/gc-random (License): Likewise.
8443         * modules/crypto/gc-rijndael (License): Likewise.
8444         * modules/crypto/gc-sha1 (License): Likewise.
8445         * modules/crypto/md2 (License): Likewise.
8446         * modules/crypto/md4 (License): Likewise.
8447
8448 2007-07-30  Jim Meyering  <jim@meyering.net>
8449
8450         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
8451         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
8452         it has valid stat data.  This bug would cause du not to count the
8453         sizes of inaccessible directories.
8454         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
8455         in <http://bugzilla.redhat.com/250077>.
8456
8457 2007-07-25  Peter O'Gorman  <peter@pogma.com>
8458             Bruno Haible  <bruno@clisp.org>
8459
8460         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
8461         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
8462         #include_next, gives a diagnostic about it, but reports no error in
8463         the exit code.
8464         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
8465
8466 2007-07-24  Ben Pfaff  <blp@gnu.org>
8467
8468         Improve name: "count-one-bits" is better than "popcount".
8469         * MODULES.html.sh: Update name.
8470         * lib/popcount.h: Renamed lib/count-one-bits.h.
8471         (popcount): Renamed count_one_bits.
8472         (popcountl): Renamed count_one_bits_l.
8473         (popcountll): Renamed count_one_bits_ll.
8474         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
8475         * modules/popcount: Renamed module/count-one-bits.
8476         * modules/popcount-tests: Renamed module/count-one-bits-tests.
8477         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
8478
8479 2007-07-23  Ben Pfaff  <blp@gnu.org>
8480
8481         * lib/popcount.h (popcount32): Reduce size of constants, to allow
8482         better code generation, and add U to large constants to avoid
8483         warnings, in non-GCC case.
8484         Suggested by Bruno Haible.
8485
8486 2007-07-23  Ben Pfaff  <blp@gnu.org>
8487
8488         * lib/popcount.h: Use verify_true instead of if...abort.
8489         * modules/popcount: Depend on verify module.
8490         Suggested by Jim Meyering.
8491
8492 2007-07-23  Bruno Haible  <bruno@clisp.org>
8493
8494         * gnulib-tool (func_import): Create a .cvsignore file also when the
8495         directory is not yet in CVS but the toplevel directory is. When
8496         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
8497         Reported by Karl Berry.
8498
8499 2007-07-22  Ben Pfaff  <blp@gnu.org>
8500
8501         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
8502         case.
8503         Suggested by Eric Blake.
8504
8505 2007-07-22  Ben Pfaff  <blp@gnu.org>
8506
8507         New module: popcount.
8508         * MODULES.html.sh: Add popcount.
8509         * modules/popcount: New file.
8510         * modules/popcount-tests: New file.
8511         * tests/test-popcount.c: New file.
8512         * lib/popcount.h: New file.
8513         * m4/popcount.m4: New file.
8514
8515 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
8516
8517         * build-aux/announce-gen: Update to GPLv3.
8518
8519         * build-aux/config.guess: Update from config.
8520
8521 2007-07-21  Bruno Haible  <bruno@clisp.org>
8522
8523         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
8524         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
8525
8526 2007-07-20  Jim Meyering  <jim@meyering.net>
8527
8528         * check-module: Diagnose a self-dependency.
8529
8530 2007-07-19  Bruno Haible  <bruno@clisp.org>
8531
8532         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
8533         empty.
8534         Reported by Eric Blake.
8535
8536 2007-07-18  Bruno Haible  <bruno@clisp.org>
8537
8538         * gnulib-tool: New options --po-base, --po-domain.
8539         (func_usage): Document them.
8540         (pobase, po_domain): New variables.
8541         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
8542         DEFAULT_TEXT_DOMAIN.
8543         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
8544         (func_import): Consider pobase and po_domain. Create a po/ directory.
8545         (func_create_testdir): Set pobase and po_domain to empty.
8546         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
8547         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
8548
8549 2007-07-18  Bruno Haible  <bruno@clisp.org>
8550
8551         * gnulib-tool (func_get_automake_snippet): Synthesize also an
8552         EXTRA_DIST augmentation for files in build-aux/.
8553
8554 2007-07-16  Bruno Haible  <bruno@clisp.org>
8555
8556         * modules/lseek (License): Use the synonymous term "LGPLv2+".
8557         * modules/getdelim (License): Likewise.
8558
8559 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8560
8561         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
8562         * modules/d-type (License): Likewise.
8563         * modules/extensions (License): Likewise.
8564         * modules/fnmatch (License): Likewise.
8565         * modules/fseeko (License): Likewise.
8566         * modules/getaddrinfo (License): Likewise.
8567         * modules/getline (License): Likewise.
8568         * modules/getlogin_r (License): Likewise.
8569         * modules/getpass (License): Likewise.
8570         * modules/gettimeofday (License): Likewise.
8571         * modules/glob (License): Likewise.
8572         * modules/inet_ntop (License): Likewise.
8573         * modules/malloc (License): Likewise.
8574         * modules/malloca (License): Likewise.
8575         * modules/memmem (License): Likewise.
8576         * modules/mempcpy (License): Likewise.
8577         * modules/memset (License): Likewise.
8578         * modules/minmax (License): Likewise.
8579         * modules/mktime (License): Likewise.
8580         * modules/netinet_in (License): Likewise.
8581         * modules/pathmax (License): Likewise.
8582         * modules/poll (License): Likewise.
8583         * modules/regex (License): Likewise.
8584         * modules/snprintf (License): Likewise.
8585         * modules/stdbool (License): Likewise.
8586         * modules/stdint (License): Likewise.
8587         * modules/stdio (License): Likewise.
8588         * modules/strcase (License): Likewise.
8589         * modules/strcasestr (License): Likewise.
8590         * modules/strdup (License): Likewise.
8591         * modules/string (License): Likewise.
8592         * modules/strndup (License): Likewise.
8593         * modules/strnlen (License): Likewise.
8594         * modules/strpbrk (License): Likewise.
8595         * modules/strptime (License): Likewise.
8596         * modules/strsep (License): Likewise.
8597         * modules/sys_select (License): Likewise.
8598         * modules/sys_socket (License): Likewise.
8599         * modules/sys_stat (License): Likewise.
8600         * modules/sys_time (License): Likewise.
8601         * modules/time (License): Likewise.
8602         * modules/time_r (License): Likewise.
8603         * modules/timegm (License): Likewise.
8604         * modules/unistd (License): Likewise.
8605         * modules/vsnprintf (License): Likewise.
8606         * modules/wctype (License): Likewise.
8607
8608 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8609
8610         * modules/argz (License): LGPLv2+.
8611
8612 2007-07-15  Karl Berry  <karl@gnu.org>
8613
8614         * doc/gnulib.texi: revise node structure per new fdl.texi.
8615
8616 2007-07-14  Bruno Haible  <bruno@clisp.org>
8617
8618         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
8619         the output file.
8620         * lib/uniname/uninames.h: Regenerated.
8621
8622 2007-07-14  Karl Berry  <karl@gnu.org>
8623
8624         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
8625         omitting sectioning and index commands.
8626
8627 2007-07-13  Bruno Haible  <bruno@clisp.org>
8628
8629         New gnulib-tool option --more-symlinks.
8630         * gnulib-tool (func_usage): Document --more-symlinks.
8631         (do_copyrights): New variable.
8632         Recognize option --more-symlinks.
8633         (func_import): Don't add a copyright notice transform to
8634         sed_transform_lib_file if do_copyrights is empty.
8635
8636 2007-07-13  Bruno Haible  <bruno@clisp.org>
8637
8638         * lib/vasnprintf.c (decimal_point_char): Define also if
8639         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
8640         && !NEED_PRINTF_DIRECTIVE_A.
8641         Reported by Clemens Koller <clemens.koller@anagramm.de> via
8642         Gary V. Vaughan <gary@gnu.org>.
8643
8644 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
8645
8646         * lib/inttypes_.h: Undo previous change, since it was fixed
8647         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
8648
8649 2007-07-13  Bruno Haible  <bruno@clisp.org>
8650
8651         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
8652         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
8653
8654 2007-07-13  Jim Meyering  <jim@meyering.net>
8655
8656         df: Don't fail for Tru64's "file-on-file mount".
8657         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
8658         so we fall through and use statfs instead.  Details here:
8659         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
8660         Reported by Albert Chin.
8661
8662 2007-07-13  Bruno Haible  <bruno@clisp.org>
8663
8664         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
8665         * modules/configmake (License): Likewise.
8666         * modules/gettext (License): Likewise.
8667         * modules/gettext-h (License): Likewise.
8668         * modules/include_next (License): Likewise.
8669         * modules/link-warning (License): Likewise.
8670         * modules/localcharset (License): Likewise.
8671         * modules/localename (License): Likewise.
8672         * modules/lock (License): Likewise.
8673         * modules/relocatable-lib-lgpl (License): Likewise.
8674         * modules/size_max (License): Likewise.
8675         * modules/vasnprintf (License): Likewise.
8676         * modules/wchar (License): Likewise.
8677         * modules/xsize (License): Likewise.
8678
8679 2007-07-13  Bruno Haible  <bruno@clisp.org>
8680
8681         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
8682         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
8683
8684 2007-07-12  Bruno Haible  <bruno@clisp.org>
8685
8686         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
8687         in the modules files.
8688
8689 2007-07-11  Karl Berry  <karl@gnu.org>
8690
8691         * MODULES.html.sh (func_module): use
8692          sed -e '\|^'"${includefile}"'$|d'
8693          instead of /.../d, to avoid errors on $includefile's containing /.
8694
8695 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
8696
8697         * gnulib-tool (func_import): Avoid duplication of --avoid
8698         statements
8699         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
8700         names to `_' in variable names.
8701
8702 2007-07-10  Eric Blake  <ebb9@byu.net>
8703
8704         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
8705         * NEWS: Document this change.
8706
8707 2007-07-08  Bruno Haible  <bruno@clisp.org>
8708
8709         Update to Unicode 5.0.
8710         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
8711         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
8712         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
8713         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
8714         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
8715         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
8716         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
8717         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
8718         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
8719         U+10A3F, U+1D242..U+1D244.
8720         (nonspacing_table_ind): Update.
8721         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
8722         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
8723
8724 2007-07-08  Bruno Haible  <bruno@clisp.org>
8725
8726         Update to Unicode 5.0.
8727         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
8728         code transform. Extend the name index field of unicode_name_to_code and
8729         unicode_code_to_name from 16 to 24 bits.
8730         * lib/uniname/uniname.c (unicode_character_name,
8731         unicode_name_character): Add the range 0x12xxx to the code transform.
8732         * lib/uniname/uninames.h: Regenerated.
8733         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
8734
8735 2007-07-07  Bruno Haible  <bruno@clisp.org>
8736
8737         * modules/wcwidth-tests: New file.
8738         * tests/test-wcwidth.c: New file.
8739
8740         Work around MacOS X wcwidth() bug.
8741         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
8742         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
8743         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
8744         original wcwidth in non-UTF-8 locales.
8745         * modules/wcwidth (Depends-on): Add localcharset, streq,
8746         uniwidth/width.
8747         * doc/functions/wcwidth.texi: Update.
8748
8749 2007-07-07  Bruno Haible  <bruno@clisp.org>
8750
8751         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
8752         (wcwidth): New declaration.
8753         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
8754         macros.
8755         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
8756         here. Prepare for creating <wchar.h> unconditionally.
8757         * modules/wchar (Depends-on): Add link-warning.
8758         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
8759         REPLACE_WCWIDTH, and GL_LINK_WARNING.
8760         * lib/wcwidth.h: Remove file.
8761         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
8762         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
8763         * modules/wcwidth (Files): Remove lib/wcwidth.h.
8764         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
8765         (Include): Replace wcwidth.h with <wchar.h>.
8766         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
8767         * lib/mbchar.h: Don't include wcwidth.h.
8768         * lib/mbswidth.c: Likewise.
8769         * NEWS: Mention the change.
8770
8771 2007-07-07  Bruno Haible  <bruno@clisp.org>
8772
8773         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
8774         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
8775         definition with an external declaration.
8776         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
8777         defined as a function. Remove AC_C_INLINE requirement.
8778         * modules/wcwidth (Files): Add lib/wcwidth.c.
8779         (Makefile.am): Remove redundant statement.
8780
8781 2007-07-07  Bruno Haible  <bruno@clisp.org>
8782
8783         * MODULES.html.sh (Unicode string functions): Add the new modules.
8784
8785         * tests/uniwidth/test-u32-strwidth.c: New file.
8786         * modules/uniwidth/u32-strwidth-tests: New file.
8787
8788         * lib/uniwidth/u32-strwidth.c: New file.
8789         * modules/uniwidth/u32-strwidth: New file.
8790
8791         * tests/uniwidth/test-u16-strwidth.c: New file.
8792         * modules/uniwidth/u16-strwidth-tests: New file.
8793
8794         * lib/uniwidth/u16-strwidth.c: New file.
8795         * modules/uniwidth/u16-strwidth: New file.
8796
8797         * tests/uniwidth/test-u8-strwidth.c: New file.
8798         * modules/uniwidth/u8-strwidth-tests: New file.
8799
8800         * lib/uniwidth/u8-strwidth.c: New file.
8801         * modules/uniwidth/u8-strwidth: New file.
8802
8803         * tests/uniwidth/test-u32-width.c: New file.
8804         * modules/uniwidth/u32-width-tests: New file.
8805
8806         * lib/uniwidth/u32-width.c: New file.
8807         * modules/uniwidth/u32-width: New file.
8808
8809         * tests/uniwidth/test-u16-width.c: New file.
8810         * modules/uniwidth/u16-width-tests: New file.
8811
8812         * lib/uniwidth/u16-width.c: New file.
8813         * modules/uniwidth/u16-width: New file.
8814
8815         * tests/uniwidth/test-u8-width.c: New file.
8816         * modules/uniwidth/u8-width-tests: New file.
8817
8818         * lib/uniwidth/u8-width.c: New file.
8819         * modules/uniwidth/u8-width: New file.
8820
8821         * tests/uniwidth/test-uc_width.c: New file.
8822         * modules/uniwidth/width-tests: New file.
8823
8824         * lib/uniwidth/width.c: New file, from GNU libiconv.
8825         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
8826         * modules/uniwidth/width: New file.
8827
8828         * lib/uniwidth.h: New file, from GNU libiconv.
8829         * modules/uniwidth/base: New file.
8830
8831 2007-07-07  Bruno Haible  <bruno@clisp.org>
8832
8833         * lib/uniname.h: New file, from GNU gettext.
8834         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
8835         * lib/uniname/uninames.h: New file, from GNU gettext.
8836         * lib/uniname/uniname.c: New file, from GNU gettext.
8837         * tests/uniname/test-uninames.sh: New file.
8838         * tests/uniname/test-uninames.c: New file, from GNU gettext.
8839         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
8840         * modules/uniname/base: New file.
8841         * modules/uniname/uniname: New file.
8842         * modules/uniname/uniname-tests: New file.
8843         * MODULES.html.sh (Unicode string functions): Add the new modules.
8844
8845 2007-07-06  Bruno Haible  <bruno@clisp.org>
8846
8847         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
8848
8849 2007-07-06  Bruno Haible  <bruno@clisp.org>
8850
8851         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
8852         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
8853         includes <cygwin/sys_time.h> which includes <sys/select.h> which
8854         include <sys/time.h>.
8855         Reported by Eric Blake.
8856
8857 2007-07-06  Eric Blake  <ebb9@byu.net>
8858
8859         Fix testing canonicalize on cygwin.
8860         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
8861         Revert patch from 2007-06-19.
8862         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
8863         canonicalize module is also in use.
8864         * tests/test-canonicalize.c: New file.
8865         * tests/test-canonicalize.sh: Likewise.
8866         * modules/canonicalize-tests: Likewise.
8867
8868 2007-07-06  Jim Meyering  <jim@meyering.net>
8869
8870         * lib/getugroups.c (getugroups): Detect getgrent failure.
8871         Adjust comment to reflect reality: this function may return -1.
8872
8873 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
8874
8875         * build-aux/bootstrap (TP_URL,get_translations): Update to use
8876         the new TP address.
8877         (usage): Fix typo
8878         (gnulib_mk): New variable.
8879
8880 2007-07-05  Jim Meyering  <jim@meyering.net>
8881
8882         Don't let endgrent clobber errno, no matter how improbable.
8883         * lib/getugroups.c (getugroups): Save and restore errno around
8884         endgrent call.
8885
8886         Close the group DB even when failing with 2^31 or more members.
8887         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
8888
8889 2007-07-04  Jim Meyering  <jim@meyering.net>
8890
8891         * lib/getugroups.h: New file.
8892         * lib/getugroups.c: Include "getugroups.h".
8893         Remove uses of "register" keyword.
8894         Move local variable, "cp", down into scope where used.
8895         Give "username" parameter the "const" attribute.
8896         * modules/getugroups (Files): Add lib/getugroups.h
8897
8898 2007-07-04  Karl Berry  <karl@gnu.org>
8899
8900         * MODULES.html.sh (func_all_modules): Complete rename of
8901         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
8902
8903 2007-07-02  Bruno Haible  <bruno@clisp.org>
8904
8905         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
8906         mode, when inttypes.h comes from gnulib.
8907         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
8908
8909 2007-07-02  Simon Josefsson  <simon@josefsson.org>
8910
8911         * NEWS: Mention lgpl module name change.
8912
8913         * modules/lgpl-2.1: Renamed from lgpl.
8914
8915         * NEWS: Mention gpl module name change.
8916
8917         * modules/gpl-3.0: New file, based on gpl-2.0.
8918
8919         * modules/gpl-2.0: Renamed from gpl.
8920
8921         * modules/gpl: Fix filename, doc/gpl.texi is now found at
8922         doc/gpl-2.0.texi.
8923
8924 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
8925
8926         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
8927         #define __STDC_LIMIT_MACROS temporarily while including
8928         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
8929         Problem reported by Joel E. Denny in
8930         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
8931
8932 2007-07-01  Bruno Haible  <bruno@clisp.org>
8933
8934         * lib/unistdio.h: New file.
8935         * lib/unistdio/u-asnprintf.h: New file.
8936         * lib/unistdio/u-asprintf.h: New file.
8937         * lib/unistdio/u-printf-args.c: New file.
8938         * lib/unistdio/u-printf-args.h: New file.
8939         * lib/unistdio/u-printf-parse.h: New file.
8940         * lib/unistdio/u-snprintf.h: New file.
8941         * lib/unistdio/u-sprintf.h: New file.
8942         * lib/unistdio/u-vasprintf.h: New file.
8943         * lib/unistdio/u-vsnprintf.h: New file.
8944         * lib/unistdio/u-vsprintf.h: New file.
8945         * lib/unistdio/ulc-asnprintf.c: New file.
8946         * lib/unistdio/ulc-asprintf.c: New file.
8947         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
8948         * lib/unistdio/ulc-printf-parse.c: New file.
8949         * lib/unistdio/ulc-snprintf.c: New file.
8950         * lib/unistdio/ulc-sprintf.c: New file.
8951         * lib/unistdio/ulc-vasnprintf.c: New file.
8952         * lib/unistdio/ulc-vasprintf.c: New file.
8953         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
8954         * lib/unistdio/ulc-vsnprintf.c: New file.
8955         * lib/unistdio/ulc-vsprintf.c: New file.
8956         * lib/unistdio/u8-asnprintf.c: New file.
8957         * lib/unistdio/u8-asprintf.c: New file.
8958         * lib/unistdio/u8-printf-parse.c: New file.
8959         * lib/unistdio/u8-snprintf.c: New file.
8960         * lib/unistdio/u8-sprintf.c: New file.
8961         * lib/unistdio/u8-vasnprintf.c: New file.
8962         * lib/unistdio/u8-vasprintf.c: New file.
8963         * lib/unistdio/u8-vsnprintf.c: New file.
8964         * lib/unistdio/u8-vsprintf.c: New file.
8965         * lib/unistdio/u8-u8-asnprintf.c: New file.
8966         * lib/unistdio/u8-u8-asprintf.c: New file.
8967         * lib/unistdio/u8-u8-snprintf.c: New file.
8968         * lib/unistdio/u8-u8-sprintf.c: New file.
8969         * lib/unistdio/u8-u8-vasnprintf.c: New file.
8970         * lib/unistdio/u8-u8-vasprintf.c: New file.
8971         * lib/unistdio/u8-u8-vsnprintf.c: New file.
8972         * lib/unistdio/u8-u8-vsprintf.c: New file.
8973         * lib/unistdio/u16-asnprintf.c: New file.
8974         * lib/unistdio/u16-asprintf.c: New file.
8975         * lib/unistdio/u16-printf-parse.c: New file.
8976         * lib/unistdio/u16-snprintf.c: New file.
8977         * lib/unistdio/u16-sprintf.c: New file.
8978         * lib/unistdio/u16-vasnprintf.c: New file.
8979         * lib/unistdio/u16-vasprintf.c: New file.
8980         * lib/unistdio/u16-vsnprintf.c: New file.
8981         * lib/unistdio/u16-vsprintf.c: New file.
8982         * lib/unistdio/u16-u16-asnprintf.c: New file.
8983         * lib/unistdio/u16-u16-asprintf.c: New file.
8984         * lib/unistdio/u16-u16-snprintf.c: New file.
8985         * lib/unistdio/u16-u16-sprintf.c: New file.
8986         * lib/unistdio/u16-u16-vasnprintf.c: New file.
8987         * lib/unistdio/u16-u16-vasprintf.c: New file.
8988         * lib/unistdio/u16-u16-vsnprintf.c: New file.
8989         * lib/unistdio/u16-u16-vsprintf.c: New file.
8990         * lib/unistdio/u32-asnprintf.c: New file.
8991         * lib/unistdio/u32-asprintf.c: New file.
8992         * lib/unistdio/u32-printf-parse.c: New file.
8993         * lib/unistdio/u32-snprintf.c: New file.
8994         * lib/unistdio/u32-sprintf.c: New file.
8995         * lib/unistdio/u32-vasnprintf.c: New file.
8996         * lib/unistdio/u32-vasprintf.c: New file.
8997         * lib/unistdio/u32-vsnprintf.c: New file.
8998         * lib/unistdio/u32-vsprintf.c: New file.
8999         * lib/unistdio/u32-u32-asnprintf.c: New file.
9000         * lib/unistdio/u32-u32-asprintf.c: New file.
9001         * lib/unistdio/u32-u32-snprintf.c: New file.
9002         * lib/unistdio/u32-u32-sprintf.c: New file.
9003         * lib/unistdio/u32-u32-vasnprintf.c: New file.
9004         * lib/unistdio/u32-u32-vasprintf.c: New file.
9005         * lib/unistdio/u32-u32-vsnprintf.c: New file.
9006         * lib/unistdio/u32-u32-vsprintf.c: New file.
9007         * tests/unistdio/test-ulc-asnprintf1.c: New file.
9008         * tests/unistdio/test-ulc-asnprintf1.h: New file.
9009         * tests/unistdio/test-ulc-printf1.h: New file.
9010         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
9011         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
9012         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
9013         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
9014         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
9015         * tests/unistdio/test-ulc-vasprintf1.c: New file.
9016         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
9017         * tests/unistdio/test-ulc-vsprintf1.c: New file.
9018         * tests/unistdio/test-u8-asnprintf1.c: New file.
9019         * tests/unistdio/test-u8-asnprintf1.h: New file.
9020         * tests/unistdio/test-u8-printf1.h: New file.
9021         * tests/unistdio/test-u8-vasnprintf1.c: New file.
9022         * tests/unistdio/test-u8-vasnprintf2.c: New file.
9023         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
9024         * tests/unistdio/test-u8-vasnprintf3.c: New file.
9025         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
9026         * tests/unistdio/test-u8-vasprintf1.c: New file.
9027         * tests/unistdio/test-u8-vsnprintf1.c: New file.
9028         * tests/unistdio/test-u8-vsprintf1.c: New file.
9029         * tests/unistdio/test-u16-asnprintf1.c: New file.
9030         * tests/unistdio/test-u16-asnprintf1.h: New file.
9031         * tests/unistdio/test-u16-printf1.h: New file.
9032         * tests/unistdio/test-u16-vasnprintf1.c: New file.
9033         * tests/unistdio/test-u16-vasnprintf2.c: New file.
9034         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
9035         * tests/unistdio/test-u16-vasnprintf3.c: New file.
9036         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
9037         * tests/unistdio/test-u16-vasprintf1.c: New file.
9038         * tests/unistdio/test-u16-vsnprintf1.c: New file.
9039         * tests/unistdio/test-u16-vsprintf1.c: New file.
9040         * tests/unistdio/test-u32-asnprintf1.c: New file.
9041         * tests/unistdio/test-u32-asnprintf1.h: New file.
9042         * tests/unistdio/test-u32-printf1.h: New file.
9043         * tests/unistdio/test-u32-vasnprintf1.c: New file.
9044         * tests/unistdio/test-u32-vasnprintf2.c: New file.
9045         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
9046         * tests/unistdio/test-u32-vasnprintf3.c: New file.
9047         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
9048         * tests/unistdio/test-u32-vasprintf1.c: New file.
9049         * tests/unistdio/test-u32-vsnprintf1.c: New file.
9050         * tests/unistdio/test-u32-vsprintf1.c: New file.
9051         * modules/unistdio/base: New file.
9052         * modules/unistdio/u-printf-args: New file.
9053         * modules/unistdio/ulc-asnprintf: New file.
9054         * modules/unistdio/ulc-asprintf: New file.
9055         * modules/unistdio/ulc-fprintf: New file.
9056         * modules/unistdio/ulc-printf-parse: New file.
9057         * modules/unistdio/ulc-snprintf: New file.
9058         * modules/unistdio/ulc-sprintf: New file.
9059         * modules/unistdio/ulc-vasnprintf: New file.
9060         * modules/unistdio/ulc-vasprintf: New file.
9061         * modules/unistdio/ulc-vfprintf: New file.
9062         * modules/unistdio/ulc-vsnprintf: New file.
9063         * modules/unistdio/ulc-vsprintf: New file.
9064         * modules/unistdio/u8-asnprintf: New file.
9065         * modules/unistdio/u8-asprintf: New file.
9066         * modules/unistdio/u8-printf-parse: New file.
9067         * modules/unistdio/u8-snprintf: New file.
9068         * modules/unistdio/u8-sprintf: New file.
9069         * modules/unistdio/u8-vasnprintf: New file.
9070         * modules/unistdio/u8-vasprintf: New file.
9071         * modules/unistdio/u8-vsnprintf: New file.
9072         * modules/unistdio/u8-vsprintf: New file.
9073         * modules/unistdio/u8-u8-asnprintf: New file.
9074         * modules/unistdio/u8-u8-asprintf: New file.
9075         * modules/unistdio/u8-u8-snprintf: New file.
9076         * modules/unistdio/u8-u8-sprintf: New file.
9077         * modules/unistdio/u8-u8-vasnprintf: New file.
9078         * modules/unistdio/u8-u8-vasprintf: New file.
9079         * modules/unistdio/u8-u8-vsnprintf: New file.
9080         * modules/unistdio/u8-u8-vsprintf: New file.
9081         * modules/unistdio/u16-asnprintf: New file.
9082         * modules/unistdio/u16-asprintf: New file.
9083         * modules/unistdio/u16-printf-parse: New file.
9084         * modules/unistdio/u16-snprintf: New file.
9085         * modules/unistdio/u16-sprintf: New file.
9086         * modules/unistdio/u16-vasnprintf: New file.
9087         * modules/unistdio/u16-vasprintf: New file.
9088         * modules/unistdio/u16-vsnprintf: New file.
9089         * modules/unistdio/u16-vsprintf: New file.
9090         * modules/unistdio/u16-u16-asnprintf: New file.
9091         * modules/unistdio/u16-u16-asprintf: New file.
9092         * modules/unistdio/u16-u16-snprintf: New file.
9093         * modules/unistdio/u16-u16-sprintf: New file.
9094         * modules/unistdio/u16-u16-vasnprintf: New file.
9095         * modules/unistdio/u16-u16-vasprintf: New file.
9096         * modules/unistdio/u16-u16-vsnprintf: New file.
9097         * modules/unistdio/u16-u16-vsprintf: New file.
9098         * modules/unistdio/u32-asnprintf: New file.
9099         * modules/unistdio/u32-asprintf: New file.
9100         * modules/unistdio/u32-printf-parse: New file.
9101         * modules/unistdio/u32-snprintf: New file.
9102         * modules/unistdio/u32-sprintf: New file.
9103         * modules/unistdio/u32-vasnprintf: New file.
9104         * modules/unistdio/u32-vasprintf: New file.
9105         * modules/unistdio/u32-vsnprintf: New file.
9106         * modules/unistdio/u32-vsprintf: New file.
9107         * modules/unistdio/u32-u32-asnprintf: New file.
9108         * modules/unistdio/u32-u32-asprintf: New file.
9109         * modules/unistdio/u32-u32-snprintf: New file.
9110         * modules/unistdio/u32-u32-sprintf: New file.
9111         * modules/unistdio/u32-u32-vasnprintf: New file.
9112         * modules/unistdio/u32-u32-vasprintf: New file.
9113         * modules/unistdio/u32-u32-vsnprintf: New file.
9114         * modules/unistdio/u32-u32-vsprintf: New file.
9115         * modules/unistdio/ulc-asnprintf-tests: New file.
9116         * modules/unistdio/ulc-vasnprintf-tests: New file.
9117         * modules/unistdio/ulc-vasprintf-tests: New file.
9118         * modules/unistdio/ulc-vsnprintf-tests: New file.
9119         * modules/unistdio/ulc-vsprintf-tests: New file.
9120         * modules/unistdio/u8-asnprintf-tests: New file.
9121         * modules/unistdio/u8-vasnprintf-tests: New file.
9122         * modules/unistdio/u8-vasprintf-tests: New file.
9123         * modules/unistdio/u8-vsnprintf-tests: New file.
9124         * modules/unistdio/u8-vsprintf-tests: New file.
9125         * modules/unistdio/u16-asnprintf-tests: New file.
9126         * modules/unistdio/u16-vasnprintf-tests: New file.
9127         * modules/unistdio/u16-vasprintf-tests: New file.
9128         * modules/unistdio/u16-vsnprintf-tests: New file.
9129         * modules/unistdio/u16-vsprintf-tests: New file.
9130         * modules/unistdio/u32-asnprintf-tests: New file.
9131         * modules/unistdio/u32-vasnprintf-tests: New file.
9132         * modules/unistdio/u32-vasprintf-tests: New file.
9133         * modules/unistdio/u32-vsnprintf-tests: New file.
9134         * modules/unistdio/u32-vsprintf-tests: New file.
9135         * MODULES.html.sh (Unicode string functions): Add the new modules.
9136
9137 2007-07-01  Bruno Haible  <bruno@clisp.org>
9138
9139         * lib/sprintf.c (sprintf): Limit the available length estimation,
9140         to avoid address wraparound.
9141         * lib/vsprintf.c (vsprintf): Likewise.
9142         * modules/sprintf-posix (Dependencies): Add stdint.
9143         * modules/vsprintf-posix (Dependencies): Likewise.
9144
9145 2007-07-01  Bruno Haible  <bruno@clisp.org>
9146
9147         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
9148         Windows PATH as well. Conservative double-quoting. Comments.
9149
9150 2007-07-01  Bruno Haible  <bruno@clisp.org>
9151             Eric Blake  <ebb9@byu.net>
9152             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9153
9154         * gnulib-tool (self_abspathname): Fix algorithm to cope with
9155         empty components in $PATH, denoting '.'.
9156
9157 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9158
9159         * gnulib-tool: Fix indentation.
9160         (func_create_megatestdir): Likewise.
9161         Report by Bruno Haible.
9162
9163 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9164
9165         Sync from Automake.
9166         * build-aux/gnupload: Fix shell portability issues with for loops.
9167         Report by Karl Berry.
9168
9169 2007-06-29  Simon Josefsson  <simon@josefsson.org>
9170
9171         * build-aux/maint.mk (POURL): Use translationproject.org.
9172
9173 2007-06-27  Simon Josefsson  <simon@josefsson.org>
9174             Bruno Haible  <bruno@clisp.org>
9175
9176         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
9177         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
9178         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
9179         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
9180         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
9181
9182 2007-06-27  Bruno Haible  <bruno@clisp.org>
9183
9184         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
9185         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
9186
9187 2007-06-26  Karl Berry  <karl@gnu.org>
9188
9189         * MODULES.html.sh: remove xreadlink-with-size.
9190
9191 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9192
9193         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
9194         method that I hope also handles the double-include problem noted
9195         by Bruno Haible in
9196         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
9197
9198 2007-06-23  Bruno Haible  <bruno@clisp.org>
9199
9200         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9201         Don't let the 'mostlyclean' target fail if the last subdirectory could
9202         not be removed.
9203         Reported by Karl Berry.
9204
9205 2007-06-23  Bruno Haible  <bruno@clisp.org>
9206
9207         * gnulib-tool (echo): Add a speedier workaround for ksh.
9208         * tests/test-echo.sh: Likewise.
9209
9210 2007-06-23  Bruno Haible  <bruno@clisp.org>
9211
9212         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
9213         * tests/test-echo.sh: Likewise.
9214
9215 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9216
9217         * gnulib-tool (IFS): Initialize early, so we don't set it to
9218         empty later.
9219         (self_abspathname): Rewrite algorithm to set it, reindent.
9220         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
9221         (func_create_megatestdir): Merge some sed scripts.
9222
9223 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9224
9225         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
9226         exposed by Sun Studio 11 cc on Solaris 8.
9227
9228 2007-06-22  Bruno Haible  <bruno@clisp.org>
9229
9230         * gnulib-tool (echo): Ensure the echo primitive does not interpret
9231         backslashes.
9232         * tests/test-echo.sh: New file.
9233
9234 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9235
9236         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
9237         simplify `sed_replace_build_aux' scripts, they are portable but
9238         echoing them with `echo' is not.
9239         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
9240
9241 2007-06-21  Karl Berry  <karl@gnu.org>
9242
9243         * config/srclist.txt: guess we can't handle the licenses via
9244         srclist at the moment.
9245
9246 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
9247
9248         * MODULES.html.sh: Add include_next.
9249         * modules/include_next: New file.
9250
9251 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
9252
9253         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
9254         INCLUDE_NEXT.
9255         (gl_CHECK_NEXT_HEADERS): New macro.
9256         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
9257         the obsolescent gl_ABSOLUTE_HEADER.
9258         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
9259         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
9260         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
9261         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9262         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
9263         * m4/math_h.m4 (gl_MATH_H): Likewise.
9264         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
9265         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9266         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9267         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9268         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
9269         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
9270         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
9271         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9272         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9273         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9274         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
9275         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
9276         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
9277         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9278         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
9279         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
9280         * m4/inttypes.m4 (gl_INTTYPES_H): Define
9281         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
9282         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
9283         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
9284         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
9285         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
9286         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
9287         * lib/float_.h: Likewise.
9288         * lib/inttypes_.h: Likewise.
9289         * lib/math_.h: Likewise.
9290         * lib/search_.h: Likewise.
9291         * lib/signal_.h: Likewise.
9292         * lib/stdint_.h: Likewise.
9293         * lib/stdio_.h: Likewise.
9294         * lib/stdlib_.h: Likewise.
9295         * lib/string_.h: Likewise.
9296         * lib/sys_stat_.h: Likewise.
9297         * lib/sys_time_.h: Likewise.
9298         * lib/time_.h: Likewise.
9299         * lib/unistd_.h: Likewise.
9300         * lib/wchar_.h: Likewise.
9301         * lib/wctype_.h: Likewise.
9302         * lib/dirent_.h: Likewise.
9303         * lib/iconv_.h: Likewise.
9304         * lib/locale_.h: Likewise.
9305         * lib/netinet_in_.h: Likewise.
9306         * lib/sys_select_.h: Likewise.
9307         * lib/sys_socket_.h: Likewise.
9308         * lib/sysexits_.h: Likewise.
9309         * modules/fcntl (Depends-on): Depend on include_next, not
9310         absolute_header.
9311         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
9312         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
9313         * modules/fchdir: Likewise.
9314         * modules/float: Likewise.
9315         * modules/iconv_open: Likewise.
9316         * modules/inttypes: Likewise.
9317         * modules/locale: Likewise.
9318         * modules/math: Likewise.
9319         * modules/netinet_in: Likewise.
9320         * modules/search: Likewise.
9321         * modules/signal: Likewise.
9322         * modules/stdint: Likewise.
9323         * modules/stdio: Likewise.
9324         * modules/stdlib: Likewise.
9325         * modules/string: Likewise.
9326         * modules/sys_select: Likewise.
9327         * modules/sys_socket: Likewise.
9328         * modules/sys_stat: Likewise.
9329         * modules/sys_time: Likewise.
9330         * modules/sysexits: Likewise.
9331         * modules/time: Likewise.
9332         * modules/unistd: Likewise.
9333         * modules/wchar: Likewise.
9334         * modules/wctype: Likewise.
9335         * modules/sys_stat: Change maintainer to "all".
9336         * modules/unistd: Likewise.
9337
9338 2007-06-20  Karl Berry  <karl@gnu.org>
9339
9340         * config/srclist.txt: track www changes in license files.
9341
9342 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
9343
9344         * build-aux/bootstrap: Remove stray dot.
9345         Make sure build_aux settings are honored when linking
9346         gnulib_extra_files.
9347
9348 2007-06-19  Eric Blake  <ebb9@byu.net>
9349
9350         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
9351         Allow compilation on cygwin.
9352
9353 2007-06-19  Jim Meyering  <jim@meyering.net>
9354
9355         xreadlink-with-size: Remove module.  No longer used.
9356         Ex-callers now use xreadlink or mreadlink-with-size.
9357         * modules/xreadlink-with-size: Remove module.
9358         * lib/xreadlink-with-size.c: Remove file.
9359         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
9360         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
9361         just before the function definition *is* accurate.
9362
9363         Eliminate one way canonicalize_filename_mode could exit.
9364         * lib/canonicalize.c (canonicalize_filename_mode):
9365         Use mreadlink_with_size, not xreadlink_with_size.
9366
9367 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
9368
9369         Detect porting problems to FreeBSD/arm, which has time_t wider than
9370         long int.  Original problem reported for GNU diff by Xin Li in
9371         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
9372         * modules/getdate (Depends-on): Add intprops, verify.
9373         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
9374         is an integer type no wider than long int.
9375
9376 2007-06-18  Jim Meyering  <jim@meyering.net>
9377
9378         New module: mreadlink-with-size.
9379         * MODULES.html.sh: Add mreadlink-with-size.
9380         * modules/mreadlink-with-size: New module
9381         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
9382         not xreadlink-with-size.
9383         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
9384
9385 2007-06-16  Bruno Haible  <bruno@clisp.org>
9386
9387         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
9388         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
9389         Reported by Gary V. Vaughan <gary@gnu.org>.
9390
9391 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9392
9393         Revamp lchown so that it lives in unistd.h where it belongs.
9394         * lib/lchown.h: Remove.
9395         * lib/dirchownmod.c: Don't include lib/lchown.h.
9396         * lib/fchownat.c: Likewise.
9397         * lib/openat.c: Likewise.
9398         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
9399         does not follow symlinks.
9400         (EOPNOTSUPP): Define if not defined.
9401         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
9402         is defined to 0.
9403         (lchown): New decl.
9404         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
9405         Do not check for lchown decl.
9406         Set REPLACE_LCHOWN.
9407         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
9408         REPLACE_LCHOWN.
9409         * modules/chown: Make it clear it follows symlinks.
9410         * modules/lchown: Make it clear it doesn't follow symlinks.
9411         (Files): Remove lib/lchown.h
9412         (Depends-on): Add unistd.
9413         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
9414         (Include): Include <unistd.h>, not "lchown.h".
9415         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
9416         REPLACE_LCHOWN.
9417
9418 2007-06-15  Jim Meyering  <jim@meyering.net>
9419
9420         Change license (GPL to LGPL) of fsusage and dependents.
9421         * modules/fsusage (License): Change to LGPL.
9422         * modules/full-read (License): Likewise.
9423         * modules/full-write (License): Likewise.
9424         * modules/safe-read (License): Likewise.
9425         * modules/safe-write (License): Likewise.
9426
9427 2007-06-14  Ben Pfaff  <blp@gnu.org>
9428
9429         Missing part of allocsa -> malloca transition.
9430         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
9431         gl_MALLOCA.
9432
9433 2007-06-12  Bruno Haible  <bruno@clisp.org>
9434
9435         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
9436         to ia64, x86_64, i386.
9437         Reported by Eric Blake.
9438
9439 2007-06-12  Bruno Haible  <bruno@clisp.org>
9440
9441         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
9442         cross-compiling to x86_64.
9443
9444 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
9445
9446         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
9447         glitch reported by Ralf Wildenhues in
9448         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
9449
9450         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
9451         Vin Shelton.
9452
9453 2007-06-11  Bruno Haible  <bruno@clisp.org>
9454
9455         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
9456         replacement string.
9457         Reported by Eric Blake.
9458
9459 2007-06-10  Bruno Haible  <bruno@clisp.org>
9460
9461         Prepare vasnprintf code for use with Unicode strings.
9462         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
9463         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
9464         TYPE_U32_STRING.
9465         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
9466         a_u32_string variants.
9467         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
9468         * lib/printf-args.c: Don't include config.h and the specification
9469         header if PRINTF_FETCHARGS is already defined.
9470         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
9471         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
9472         TYPE_U16_STRING, TYPE_U32_STRING.
9473         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
9474         u16_directive, u16_directives, u32_directive, u32_directives): New
9475         types.
9476         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
9477         New declarations.
9478         * lib/printf-parse.c: Don't include config.h and the specification
9479         header if PRINTF_PARSE is already defined. Eliminate the set of
9480         parameters for WIDE_CHAR_VERSION; the user of this file must provide
9481         them now. Include c-ctype.h.
9482         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
9483         directive and CHAR_T_ONLY_ASCII.
9484         * lib/vasnprintf.c: Don't include config.h and the specification header
9485         if VASNPRINTF is already defined.
9486         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
9487         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
9488         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
9489         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
9490         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
9491         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
9492         code accordingly.
9493         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
9494         pad_ourselves also in this case, with the 'c' and 's' directives, and
9495         with a different notion of "width".
9496         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
9497
9498 2007-06-10  Bruno Haible  <bruno@clisp.org>
9499
9500         * modules/unistr/u32-mbsnlen: New file.
9501         * lib/unistr/u32-mbsnlen.c: New file.
9502
9503         * modules/unistr/u16-mbsnlen: New file.
9504         * lib/unistr/u16-mbsnlen.c: New file.
9505
9506         * modules/unistr/u8-mbsnlen: New file.
9507         * lib/unistr/u8-mbsnlen.c: New file.
9508
9509         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
9510         declarations.
9511
9512 2007-06-10  Bruno Haible  <bruno@clisp.org>
9513
9514         * lib/string_.h (mbsnlen): New declaration.
9515         * lib/mbsnlen.c: New file.
9516         * m4/mbsnlen.m4: New file.
9517         * modules/mbsnlen: New file.
9518         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
9519         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
9520         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
9521
9522 2007-06-10  Bruno Haible  <bruno@clisp.org>
9523
9524         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
9525
9526 2007-06-10  Bruno Haible  <bruno@clisp.org>
9527
9528         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
9529         * lib/mbuiter.h: Likewise.
9530
9531 2007-06-10  Bruno Haible  <bruno@clisp.org>
9532
9533         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
9534         declaration.
9535
9536 2007-06-10  Karl Berry  <karl@gnu.org>
9537
9538         * config/srclist.txt: remove gettext entries, Bruno prefers
9539         to update individually.
9540
9541 2007-06-10  Bruno Haible  <bruno@clisp.org>
9542
9543         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
9544         'maxlen'. Ensure only length + width bytes are allocated, not
9545         length + 1 + width.
9546
9547 2007-06-09  Bruno Haible  <bruno@clisp.org>
9548
9549         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
9550         (CHAR_T): Remove macro.
9551         (VASNPRINTF): Update.
9552
9553 2007-06-09  Bruno Haible  <bruno@clisp.org>
9554
9555         * MODULES.html.sh (Unicode string functions): Add the new modules.
9556
9557         * modules/uniconv/u32-conv-to-enc: New file.
9558         * lib/uniconv/u32-conv-to-enc.c: New file.
9559         * modules/uniconv/u32-conv-to-enc-tests: New file.
9560         * tests/uniconv/test-u32-conv-to-enc.c: New file.
9561
9562         * modules/uniconv/u16-conv-to-enc: New file.
9563         * lib/uniconv/u16-conv-to-enc.c: New file.
9564         * lib/uniconv/u-conv-to-enc.h: New file.
9565         * modules/uniconv/u16-conv-to-enc-tests: New file.
9566         * tests/uniconv/test-u16-conv-to-enc.c: New file.
9567
9568         * modules/uniconv/u8-conv-to-enc: New file.
9569         * lib/uniconv/u8-conv-to-enc.c: New file.
9570         * modules/uniconv/u8-conv-to-enc-tests: New file.
9571         * tests/uniconv/test-u8-conv-to-enc.c: New file.
9572
9573         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
9574         u32_conv_to_encoding): New declarations.
9575
9576 2007-06-09  Bruno Haible  <bruno@clisp.org>
9577
9578         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
9579
9580 2007-06-09  Bruno Haible  <bruno@clisp.org>
9581
9582         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
9583         * modules/malloca: Renamed from modules/allocsa, updated.
9584         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
9585         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
9586         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
9587         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
9588         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
9589         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
9590         * modules/xmalloca: Renamed from modules/xallocsa, updated.
9591         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
9592         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
9593         * modules/c-strcasestr (Depends-on): Update.
9594         * lib/c-strcasestr.c: Update.
9595         * modules/c-strstr (Depends-on): Update.
9596         * lib/c-strstr.c: Update.
9597         * modules/canonicalize-lgpl (Depends-on): Update.
9598         * lib/canonicalize-lgpl.c: Update.
9599         * modules/clean-temp (Depends-on): Update.
9600         * lib/clean-temp.c: Update.
9601         * modules/csharpcomp (Depends-on): Update.
9602         * lib/csharpcomp.c: Update.
9603         * modules/csharpexec (Depends-on): Update.
9604         * lib/csharpexec.c: Update.
9605         * modules/javacomp (Depends-on): Update.
9606         * lib/javacomp.c: Update.
9607         * modules/javaexec (Depends-on): Update.
9608         * lib/javaexec.c: Update.
9609         * modules/mbscasestr (Depends-on): Update.
9610         * lib/mbscasestr.c: Update.
9611         * modules/mbsstr (Depends-on): Update.
9612         * lib/mbsstr.c: Update.
9613         * modules/setenv (Depends-on): Update.
9614         * lib/setenv.c: Update.
9615         * modules/strcasestr (Depends-on): Update.
9616         * lib/strcasestr.c: Update.
9617         * modules/striconveha (Depends-on): Update.
9618         * lib/striconveha.c: Update.
9619         * modules/relocatable-prog-wrapper (Files): Update.
9620         * lib/relocwrapper.c: Update.
9621         * build-aux/install-reloc: Update.
9622         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
9623
9624 2007-06-08  Bruno Haible  <bruno@clisp.org>
9625
9626         Port to uClibc.
9627         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
9628         * lib/fpurge.c (fpurge): Likewise.
9629         * lib/freading.c (freading): Likewise.
9630         * lib/fseeko.c (rpl_fseeko): Likewise.
9631         * lib/fseterr.c (fseterr): Likewise.
9632         * lib/fwriting.c (fwriting): Likewise.
9633         * tests/test-fflush.c (main): Avoid a failure on uClibc.
9634
9635 2007-06-08  Bruno Haible  <bruno@clisp.org>
9636
9637         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
9638         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
9639         * modules/gettext (Files): Add m4/intlmacosx.m4.
9640
9641 2007-06-07  Bruno Haible  <bruno@clisp.org>
9642
9643         * modules/localename-tests: New file.
9644         * tests/test-localename.c: New file.
9645
9646         New module 'localename'.
9647         * lib/localename.h: New file.
9648         * lib/localename.c: New file, from GNU gettext.
9649         * m4/localename.m4: New file.
9650         * modules/localename: New file.
9651
9652 2007-06-07  Bruno Haible  <bruno@clisp.org>
9653
9654         Work around the lack of <wchar.h> on some builds of uClibc.
9655         * doc/headers/wchar.texi: Update.
9656         * lib/wchar_.h: Include <wchar.h> only if it exists.
9657         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
9658         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
9659         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
9660         doesn't exist.
9661         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
9662         * modules/mbfile (Depends-on): Add wchar.
9663         * modules/mbiter (Depends-on): Likewise.
9664         * modules/mbuiter (Depends-on): Likewise.
9665         Reported by Simon Josefsson.
9666
9667 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
9668
9669         Work around problem reported by Steven M. Schweda in
9670         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
9671         Tru64 5.1B with the Compaq compiler environment installed declares
9672         an 'isblank' function but does not define it in the C library.
9673         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
9674         * lib/regex_internal.h (isblank): Likewise.
9675         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
9676         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9677
9678 2007-06-05  Bruno Haible  <bruno@clisp.org>
9679
9680         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
9681         ia64.
9682         * modules/printf-safe: New file.
9683         * modules/fprintf-posix (Depends-on): Add printf-safe.
9684         * modules/printf-posix (Depends-on): Likewise.
9685         * modules/snprintf-posix (Depends-on): Likewise.
9686         * modules/sprintf-posix (Depends-on): Likewise.
9687         * modules/vasnprintf-posix (Depends-on): Likewise.
9688         * modules/vasprintf-posix (Depends-on): Likewise.
9689         * modules/vfprintf-posix (Depends-on): Likewise.
9690         * modules/vprintf-posix (Depends-on): Likewise.
9691         * modules/vsnprintf-posix (Depends-on): Likewise.
9692         * modules/vsprintf-posix (Depends-on): Likewise.
9693         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
9694         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
9695         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
9696         "no" on i386, x86_64, ia64.
9697         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
9698         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
9699         on i386, x86_64, ia64.
9700         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
9701         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
9702         on i386, x86_64, ia64.
9703         * tests/test-vasnprintf-posix.c: Include float.h.
9704         (LDBL80_WORDS): New macro.
9705         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
9706         on i386, x86_64, ia64.
9707         * tests/test-vasprintf-posix.c: Include float.h.
9708         (LDBL80_WORDS): New macro.
9709         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
9710         on i386, x86_64, ia64.
9711         * tests/test-snprintf-posix.c: Include float.h.
9712         * tests/test-sprintf-posix.c: Likewise.
9713         * tests/test-vsnprintf-posix.c: Likewise.
9714         * tests/test-vsprintf-posix.c: Likewise.
9715
9716 2007-06-05  Bruno Haible  <bruno@clisp.org>
9717
9718         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
9719         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
9720         non-IEEE numbers on i386, x86_64, ia64.
9721         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
9722         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
9723         * tests/test-isnanl.h: Include float.h.
9724         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
9725
9726 2007-06-05  Bruno Haible  <bruno@clisp.org>
9727
9728         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
9729         also the %a / %A. Handle the %a / %A code before this extra handling.
9730
9731 2007-06-05  Bruno Haible  <bruno@clisp.org>
9732
9733         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
9734         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
9735
9736 2007-06-05  Bruno Haible  <bruno@clisp.org>
9737
9738         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
9739         typo in variable name.
9740
9741 2007-06-05  Eric Blake  <ebb9@byu.net>
9742
9743         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
9744         Reported by Simon Josefsson.
9745
9746 2007-06-04  Bruno Haible  <bruno@clisp.org>
9747
9748         Avoid test failures on some PowerPC platforms.
9749         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
9750         Define differently for PowerPC.
9751         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
9752         Reported by Gary V. Vaughan <gary@gnu.org>.
9753
9754 2007-06-02  Bruno Haible  <bruno@clisp.org>
9755
9756         Fix test-stdint failure on FreeBSD/ia64.
9757         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
9758         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
9759         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
9760         * doc/headers/stdint.texi: Update.
9761
9762 2007-06-01  Bruno Haible  <bruno@clisp.org>
9763
9764         * tests/test-binary-io.c (main): Pass a third argument to open().
9765         Reported by Gary V. Vaughan <gary@gnu.org>.
9766
9767 2007-06-01  Bruno Haible  <bruno@clisp.org>
9768
9769         * doc/functions/frexpl.texi: Update for mingw.
9770
9771 2007-06-01  Bruno Haible  <bruno@clisp.org>
9772
9773         * tests/test-lseek.c (main): Disable test of errno for invalid third
9774         argument.
9775         * doc/functions/lseek.texi: Update.
9776         Reported by Gary V. Vaughan <gary@gnu.org>.
9777
9778 2007-05-28  Bruno Haible  <bruno@clisp.org>
9779
9780         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
9781
9782 2007-05-31  Eric Blake  <ebb9@byu.net>
9783
9784         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
9785         cross compiling.
9786
9787 2007-05-30  Eric Blake  <ebb9@byu.net>
9788         and Bruno Haible  <bruno@clisp.org>
9789
9790         Work around mingw test failures exposed by m4-1.4.9b.
9791         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
9792         * tests/test-unistd.c: Disable uid_t and git_t tests for the
9793         moment.
9794
9795 2007-05-30  Bruno Haible  <bruno@clisp.org>
9796
9797         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
9798         assuming that they are closed. Needed on HP-UX 11.
9799
9800 2007-05-29  Bruno Haible  <bruno@clisp.org>
9801
9802         Fix a problem with #include_next.
9803         * lib/dirent_.h: Split the double-inclusion guard.
9804         * lib/fcntl_.h: Likewise.
9805         * lib/float_.h: Likewise.
9806         * lib/iconv_.h: Likewise.
9807         * lib/inttypes_.h: Likewise.
9808         * lib/locale_.h: Likewise.
9809         * lib/math_.h: Likewise.
9810         * lib/netinet_in_.h: Likewise.
9811         * lib/search_.h: Likewise.
9812         * lib/signal_.h: Likewise.
9813         * lib/stdint_.h: Likewise.
9814         * lib/stdio_.h: Likewise.
9815         * lib/stdlib_.h: Likewise.
9816         * lib/string_.h: Likewise.
9817         * lib/sys_select_.h: Likewise.
9818         * lib/sys_socket_.h: Likewise.
9819         * lib/sys_stat_.h: Likewise.
9820         * lib/sys_time_.h: Likewise.
9821         * lib/sysexits_.h: Likewise.
9822         * lib/time_.h: Likewise.
9823         * lib/unistd_.h: Likewise.
9824         * lib/wchar_.h: Likewise.
9825         * lib/wctype_.h: Likewise.
9826
9827 2007-05-29  Bruno Haible  <bruno@clisp.org>
9828
9829         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
9830         for the moment.
9831
9832 2007-05-29  Bruno Haible  <bruno@clisp.org>
9833
9834         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
9835         invocation.
9836         Reported by Eric Blake.
9837
9838 2007-05-29  Bruno Haible  <bruno@clisp.org>
9839
9840         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
9841         compiling case.
9842
9843 2007-05-29  Eric Blake  <ebb9@byu.net>
9844             Bruno Haible  <bruno@clisp.org>
9845
9846         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
9847         cross compiles.
9848
9849 2007-05-28  Eric Blake  <ebb9@byu.net>
9850
9851         * modules/closein-tests (test_closein_LDADD): Support test on
9852         cygwin with libtool.
9853
9854 2007-05-28  Bruno Haible  <bruno@clisp.org>
9855
9856         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
9857         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
9858         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
9859         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
9860         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
9861         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
9862         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
9863         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
9864         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
9865
9866 2007-05-28  Eric Blake  <ebb9@byu.net>
9867
9868         Unconditionally include <config.h> in unit tests.
9869         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
9870         * tests/test-allocsa.c, tests/test-arcfour.c,
9871         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
9872         tests/test-array_list.c, tests/test-array_oset.c,
9873         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
9874         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
9875         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
9876         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
9877         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
9878         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
9879         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
9880         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
9881         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
9882         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
9883         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
9884         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
9885         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
9886         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
9887         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
9888         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
9889         test-md5.c, test-memmem.c, test-printf-posix.c,
9890         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
9891         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
9892         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
9893         test-strcasestr.c, test-striconv.c, test-striconveh.c,
9894         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
9895         test-vasnprintf-posix2.c, test-vasnprintf.c,
9896         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
9897         test-vfprintf-posix.c, test-vprintf-posix.c,
9898         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
9899         test-xvasprintf.c: Likewise.
9900
9901 2007-05-28  Bruno Haible  <bruno@clisp.org>
9902
9903         * gnulib-tool (func_import): Remember the --with-tests command-line
9904         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
9905         Reported by Eric Blake.
9906
9907 2007-05-28  Bruno Haible  <bruno@clisp.org>
9908
9909         * modules/ftell-tests: New file.
9910         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
9911         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
9912
9913         * lib/ftell.c: New file.
9914         * modules/ftell: New file.
9915         * m4/ftell.m4: New file.
9916         * doc/functions/ftell.texi: Update.
9917         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
9918         REPLACE_FTELL.
9919         * lib/stdio_.h (rpl_ftell): New declaration.
9920         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
9921         REPLACE_FTELL.
9922
9923 2007-05-28  Eric Blake  <ebb9@byu.net>
9924
9925         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
9926
9927 2007-05-28  Bruno Haible  <bruno@clisp.org>
9928
9929         * modules/fseek-tests: New file.
9930         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
9931         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
9932
9933         * lib/fseek.c: New file.
9934         * modules/fseek: New file.
9935         * m4/fseek.m4: New file.
9936         * doc/functions/fseek.texi: Update.
9937         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
9938         REPLACE_FSEEK.
9939         * lib/stdio_.h (rpl_fseek): New declaration.
9940         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
9941         REPLACE_FSEEK.
9942
9943 2007-05-28  Bruno Haible  <bruno@clisp.org>
9944
9945         * lib/stdio_.h (fflush): More comments.
9946
9947 2007-05-28  Bruno Haible  <bruno@clisp.org>
9948
9949         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
9950         runtime test.
9951
9952 2007-05-28  Eric Blake  <ebb9@byu.net>
9953
9954         Improve lseek module.
9955         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
9956         * lib/unistd_.h (lseek): Scale back link warning message.
9957         * tests/test-lseek.c: Beef up test.
9958         * tests/test-lseek.sh: Exercise more facets of lseek.
9959         Reported by Bruno Haible.
9960
9961 2007-05-28  Bruno Haible  <bruno@clisp.org>
9962
9963         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
9964         to define.
9965
9966 2007-05-27  Bruno Haible  <bruno@clisp.org>
9967
9968         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
9969
9970 2007-05-27  Bruno Haible  <bruno@clisp.org>
9971
9972         * modules/openmp: New file.
9973         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
9974         Noah Misch.
9975
9976 2007-05-26  Bruno Haible  <bruno@clisp.org>
9977
9978         * modules/chdir-long (Depends-on): Add fchdir.
9979         * modules/chdir-safer (Depends-on): Likewise.
9980         * modules/fts (Depends-on): Likewise.
9981         * modules/fts-lgpl (Depends-on): Likewise.
9982         * modules/openat (Depends-on): Likewise.
9983         * modules/savewd (Depends-on): Likewise.
9984
9985 2007-05-24  Eric Blake  <ebb9@byu.net>
9986
9987         Fix lseek on mingw.
9988         * modules/lseek: New module.
9989         * m4/lseek.m4: New file.
9990         * lib/lseek.c: New file.
9991         * modules/lseek-tests: New file.
9992         * tests/test-lseek.c: New file.
9993         * tests/test-lseek.sh: New file.
9994         * MODULES.html.sh: Document lseek module.
9995         * modules/fflush (Depends-on): Add lseek, fseeko.
9996         * modules/fseeko (Depends-on): Likewise.
9997         * modules/ftello (Depends-on): Likewise.
9998         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
9999         broken.
10000         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
10001         broken.
10002         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
10003         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
10004         * lib/ftello.c (rpl_ftello): Likewise.
10005         * tests/test-fseeko.c (main): Test this.
10006         * tests/test-fseeko.sh: Likewise.
10007         * tests/test-ftello.c (main): Likewise.
10008         * tests/test-ftello.sh: Likewise.
10009         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
10010         implies replacing fseek.
10011         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
10012         HAVE_FTELLO.
10013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
10014         * modules/unistd (Makefile.am): Likewise.
10015         * lib/unistd_.h (lseek): Declare a replacement.
10016         * doc/functions/lseek.texi (lseek): Document this fix.
10017         * doc/functions/fseek.texi (fseek): Likewise.
10018         * doc/functions/ftell.texi (ftell): Likewise.
10019
10020 2007-05-24  Bruno Haible  <bruno@clisp.org>
10021
10022         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
10023         in the printed representation of a NaN.
10024         * tests/test-vasprintf-posix.c (test_function): Likewise.
10025         * tests/test-snprintf-posix.h (test_function): Likewise.
10026         * tests/test-sprintf-posix.h (test_function): Likewise.
10027         Reported by Eric Blake.
10028
10029 2007-05-23  Eric Blake  <ebb9@byu.net>
10030
10031         Fix fseeko/ftello on cygwin 1.5.24.
10032         * doc/functions/fseeko.texi (fseeko): Document the fix.
10033         * doc/functions/ftello.texi (ftello): Document the fix.
10034         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
10035         * doc/functions/stdout.text (stdout): New file.
10036         * doc/functions/stderr.text (stderr): New file.
10037         * doc/gnulib.texi (Function Substitutes): Use new files.
10038         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
10039         prior to 1.7.0.
10040         * tests/test-ftello.c (main): Likewise for ftello.
10041         * tests/test-fseeko.sh: New file.
10042         * tests/test-ftello.sh: New file.
10043         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
10044         with seekable stdin.
10045         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
10046         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
10047         (gl_REPLACE_FSEEKO): New macro.
10048         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
10049         * modules/fseeko (Files): Distribute fseeko.c.
10050         * modules/ftello (Files): Distribute ftello.c.
10051         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
10052         mode.
10053         * lib/ftello.c (rpl_ftello): New file.
10054         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
10055         fseeko, ftello.
10056         (gl_STDIN_LARGE_OFFSET): New macro.
10057         * modules/stdio (Makefile.am): Perform the replacement.
10058         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
10059
10060 2007-05-23  Bruno Haible  <bruno@clisp.org>
10061
10062         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
10063         GNULIB_POSIXCHECK is defined.
10064
10065 2007-05-21  Bruno Haible  <bruno@clisp.org>
10066
10067         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
10068         Check also the output for NaN arguments. When cross-compiling, guess
10069         no on IRIX.
10070         * lib/vasnprintf.c: Update comments.
10071         * tests/test-vasnprintf-posix.c (strisnan): New function.
10072         (test_function): Use it.
10073         * tests/test-vasprintf-posix.c (strisnan): New function.
10074         (test_function): Use it.
10075         * tests/test-snprintf-posix.h (strisnan): New function.
10076         (test_function): Use it.
10077         * tests/test-sprintf-posix.h (strisnan): New function.
10078         (test_function): Use it.
10079         Reported by Eric Blake.
10080
10081 2007-05-20  Bruno Haible  <bruno@clisp.org>
10082
10083         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
10084         numbers that fails on BeOS.
10085         * doc/functions/frexpl.texi: Update.
10086
10087 2007-05-20  Jim Meyering  <jim@meyering.net>
10088
10089         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
10090         forced upon us by glibc-2.6.
10091
10092 2007-05-20  Bruno Haible  <bruno@clisp.org>
10093
10094         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
10095         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
10096         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
10097         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
10098         NEED_PRINTF_INFINITE.
10099         (is_infinitel): New function.
10100         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
10101         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
10102         gl_PREREQ_VASNPRINTF_INFINITE.
10103         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
10104         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10105         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
10106         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
10107         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
10108         gl_PREREQ_VASNPRINTF_INFINITE.
10109         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10110         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10111         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10112         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10113         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10114         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10115         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10116         * doc/functions/fprintf.texi: Update.
10117         * doc/functions/printf.texi: Update.
10118         * doc/functions/snprintf.texi: Update.
10119         * doc/functions/sprintf.texi: Update.
10120         * doc/functions/vfprintf.texi: Update.
10121         * doc/functions/vprintf.texi: Update.
10122         * doc/functions/vsnprintf.texi: Update.
10123         * doc/functions/vsprintf.texi: Update.
10124
10125 2007-05-20  Bruno Haible  <bruno@clisp.org>
10126
10127         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
10128         was not found in libc.
10129         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10130
10131 2007-05-20  Bruno Haible  <bruno@clisp.org>
10132
10133         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
10134         printed as "-nan" instead of "nan".
10135         * tests/test-vasprintf-posix.c (test_function): Likewise.
10136         * tests/test-snprintf-posix.h (test_function): Likewise.
10137         * tests/test-sprintf-posix.h (test_function): Likewise.
10138         Needed for HP-UX 11.
10139
10140 2007-05-20  Jim Meyering  <jim@meyering.net>
10141
10142         Fix buggy test for the fchownat-deref bug.
10143         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
10144         symlink required for the run-test.  Without it, this test would
10145         always declare that fchownat doesn't work, and client code would
10146         unnecessarily use the replacement function with fixed libc.
10147         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
10148         Reported by Greg Schafer.
10149
10150 2007-05-19  Bruno Haible  <bruno@clisp.org>
10151
10152         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
10153         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
10154         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
10155         Needed for IRIX 6.5 and Solaris 2.5.1.
10156
10157 2007-05-19  Bruno Haible  <bruno@clisp.org>
10158
10159         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
10160         (test_function): Skip tests involving -0.0 on platforms where
10161         -0.0 = 0.0.
10162         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
10163         (test_function): Skip tests involving -0.0 on platforms where
10164         -0.0 = 0.0.
10165         * tests/test-snprintf-posix.h (have_minus_zero): New function.
10166         (test_function): Skip tests involving -0.0 on platforms where
10167         -0.0 = 0.0.
10168         * tests/test-sprintf-posix.h (have_minus_zero): New function.
10169         (test_function): Skip tests involving -0.0 on platforms where
10170         -0.0 = 0.0.
10171         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
10172         tests.
10173         * tests/test-printf-posix.h (test_function): Likewise.
10174         * tests/test-printf-posix.output: Remove all -0.0 related results.
10175         Needed for IRIX 6.5.
10176
10177 2007-05-19  Bruno Haible  <bruno@clisp.org>
10178
10179         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
10180         printed as "nan0x7fffffff" instead of "nan".
10181         * tests/test-vasprintf-posix.c (test_function): Likewise.
10182         * tests/test-snprintf-posix.h (test_function): Likewise.
10183         * tests/test-sprintf-posix.h (test_function): Likewise.
10184         * tests/test-fprintf-posix.h (NaN): Remove macro.
10185         (test_function): Remove all NaN related tests.
10186         * tests/test-printf-posix.h (NaN): Remove macro.
10187         (test_function): Remove all NaN related tests.
10188         * tests/test-printf-posix.output: Remove all NaN related results.
10189         Needed for IRIX 6.5.
10190
10191 2007-05-19  Bruno Haible  <bruno@clisp.org>
10192
10193         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
10194         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10195
10196 2007-05-19  Bruno Haible  <bruno@clisp.org>
10197
10198         * lib/float_.h: New file.
10199         * m4/float_h.m4: New file.
10200         * modules/float: New file.
10201         * modules/isnanl (Dependencies): Add float.
10202         * modules/isnanl-nolibm (Dependencies): Likewise.
10203         * modules/mathl (Dependencies): Likewise.
10204         * modules/printf-frexpl (Dependencies): Likewise.
10205         * modules/signbit (Dependencies): Likewise.
10206         * modules/vasnprintf (Dependencies): Likewise.
10207         * doc/headers/float.texi: Update.
10208
10209 2007-05-19  Jim Meyering  <jim@meyering.net>
10210
10211         * lib/utimens.c (gl_futimens): Rename from futimens,
10212         now that glibc-2.6 declares futimens.
10213         * lib/utimens.h: Likewise.
10214
10215 2007-05-19  Bruno Haible  <bruno@clisp.org>
10216
10217         Avoid test failures on mingw.
10218         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
10219         * tests/test-printf-posix.sh: Likewise.
10220         * tests/test-vfprintf-posix.sh: Likewise.
10221         * tests/test-vprintf-posix.sh: Likewise.
10222
10223 2007-05-19  Bruno Haible  <bruno@clisp.org>
10224
10225         Fix *printf result for NaN, Inf, -0.0 on mingw.
10226         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
10227         * lib/vasnprintf.c: Include math.h and isnan.h.
10228         (is_infinite_or_zero): New function.
10229         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
10230         values in the %f, %F, %e, %E, %g, %G directives.
10231         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
10232         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10233         gl_PRINTF_INFINITE and test its result. Invoke
10234         gl_PREREQ_VASNPRINTF_INFINITE.
10235         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10236         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10237         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10238         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10239         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10240         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10241         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10242         * doc/functions/fprintf.texi: Update.
10243         * doc/functions/printf.texi: Update.
10244         * doc/functions/snprintf.texi: Update.
10245         * doc/functions/sprintf.texi: Update.
10246         * doc/functions/vfprintf.texi: Update.
10247         * doc/functions/vprintf.texi: Update.
10248         * doc/functions/vsnprintf.texi: Update.
10249         * doc/functions/vsprintf.texi: Update.
10250
10251 2007-05-19  Bruno Haible  <bruno@clisp.org>
10252
10253         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
10254         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
10255         Instead of multiplying with 10^k, set extra_zeroes to k.
10256         (scale10_round_long_double): Remove function.
10257
10258 2007-05-18  Bruno Haible  <bruno@clisp.org>
10259
10260         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
10261         introduced on 2007-05-06.
10262
10263 2007-05-18  Bruno Haible  <bruno@clisp.org>
10264
10265         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
10266         %g directives.
10267         * tests/test-vasprintf-posix.c (test_function): Likewise.
10268         * tests/test-snprintf-posix.h (test_function): Likewise.
10269         * tests/test-sprintf-posix.h (test_function): Likewise.
10270
10271 2007-05-18  Bruno Haible  <bruno@clisp.org>
10272
10273         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
10274         (strmatch): New function.
10275         (test_function): Test the %f directive on numbers of various exponents.
10276         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
10277         (strmatch): New function.
10278         (test_function): Test the %f directive on numbers of various exponents.
10279         * tests/test-snprintf-posix.h (strmatch): New function.
10280         (test_function): Test the %f directive on numbers of various exponents.
10281         * tests/test-sprintf-posix.h (strmatch): New function.
10282         (test_function): Test the %f directive on numbers of various exponents.
10283         * tests/test-snprintf-posix.c (SIZEOF): New macro.
10284         * tests/test-sprintf-posix.c (SIZEOF): New macro.
10285         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
10286         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
10287
10288 2007-05-18  Bruno Haible  <bruno@clisp.org>
10289
10290         Add support for 'long double' number output.
10291         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
10292         * lib/vasnprintf.c: Include math.h and float+.h.
10293         (mp_limb_t): New type.
10294         (GMP_LIMB_BITS): New macro.
10295         (mp_twolimb_t): New type.
10296         (GMP_TWOLIMB_BITS): New macro.
10297         (mpn_t): New type.
10298         (multiply, divide, convert_to_decimal, decode_long_double,
10299         scale10_round_long_double, scale10_round_decimal_long_double,
10300         floorlog10l): New functions.
10301         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
10302         for the %f, %F, %e, %E, %g, %G directives.
10303         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
10304         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10305         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
10306         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
10307         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10308         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10309         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10310         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10311         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10312         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10313         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10314         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
10315         * modules/snprintf-posix (Depends-on): Likewise.
10316         * modules/sprintf-posix (Depends-on): Likewise.
10317         * modules/vasnprintf-posix (Depends-on): Likewise.
10318         * modules/vasprintf-posix (Depends-on): Likewise.
10319         * modules/vfprintf-posix (Depends-on): Likewise.
10320         * modules/vsnprintf-posix (Depends-on): Likewise.
10321         * modules/vsprintf-posix (Depends-on): Likewise.
10322         * modules/vasnprintf (Files): Add lib/float+.h.
10323         * doc/functions/fprintf.texi: Update.
10324         * doc/functions/printf.texi: Update.
10325         * doc/functions/snprintf.texi: Update.
10326         * doc/functions/sprintf.texi: Update.
10327         * doc/functions/vfprintf.texi: Update.
10328         * doc/functions/vprintf.texi: Update.
10329         * doc/functions/vsnprintf.texi: Update.
10330         * doc/functions/vsprintf.texi: Update.
10331
10332 2007-05-18  Bruno Haible  <bruno@clisp.org>
10333
10334         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
10335
10336 2007-05-18  Bruno Haible  <bruno@clisp.org>
10337
10338         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
10339         for printing 64-bit integers. Needed for mingw.
10340
10341 2007-05-18  Bruno Haible  <bruno@clisp.org>
10342
10343         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
10344         gl_FUNC_FREXPL_WORKS.
10345         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
10346
10347 2007-05-18  Bruno Haible  <bruno@clisp.org>
10348
10349         * modules/frexpl-nolibm-tests: New file.
10350
10351         * modules/frexpl-nolibm: New file.
10352         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
10353
10354 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10355
10356         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
10357         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
10358         GCC 4.2, which otherwise issues a lot of warnings.
10359         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
10360         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
10361         Likewise.
10362         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
10363         * modules/iconv_open (iconv.h): Likewise.
10364         * modules/locale (locale.h): Likewise.
10365         * modules/netinet_in (netinet/in.h): Likewise.
10366         * modules/sys_select (sys_select.h): Likewise.
10367         * modules/sys_socket (sys/socket.h): Likewise.
10368         * modules/sys_stat (sys/stat.h): Likewise.
10369         * modules/sysexits (sysexits.h): Likewise.
10370         * modules/unistd (unistd.h): Likewise.
10371
10372 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10373
10374         * modules/closein-tests (Makefile.am): Distribute
10375         `test-closein.sh'.
10376
10377 2007-05-17  Bruno Haible  <bruno@clisp.org>
10378
10379         * tests/test-printf-posix.output: Renamed from
10380         tests/test-fprintf-posix.out.
10381         * modules/fprintf-posix-tests: Update.
10382         * modules/printf-posix-tests: Update.
10383         * modules/vfprintf-posix-tests: Update.
10384         * modules/vprintf-posix-tests: Update.
10385         * tests/test-fprintf-posix.sh: Update.
10386         * tests/test-printf-posix.sh: Update.
10387         * tests/test-vfprintf-posix.sh: Update.
10388         * tests/test-vprintf-posix.sh: Update.
10389         Reported by Ralf Wildenhues.
10390
10391 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10392
10393         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
10394         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
10395         GCC 4.2, which otherwise issues a lot of warnings.
10396         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
10397         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
10398         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
10399         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
10400         it should no longer be needed.
10401         * lib/string_.h: Likewise.
10402         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
10403         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
10404         * modules/inttypes (inttypes.h): Likewise.
10405         * modules/math (math.h): Likewise.
10406         * modules/search (search.h): Likewise.
10407         * modules/signal (signal.h): Likewise.
10408         * modules/stdint (stdint.h): Likewise.
10409         * modules/stdio (stdio.h): Likewise.
10410         * modules/stdlib (stdlib.h): Likewise.
10411         * modules/string (string.h): Likewise.
10412         * modules/sys_time (sys/time.h): Likewise.
10413         * modules/time (time.h): Likewise.
10414         * modules/wchar (wchar.h): Likewise.
10415         * modules/wctype (wtype.h): Likewise.
10416
10417 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
10418
10419         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
10420
10421 2007-05-13  Bruno Haible  <bruno@clisp.org>
10422
10423         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
10424         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10425         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
10426         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
10427         (gl_PREREQ_STRTOK_R): Don't require it here.
10428
10429 2007-05-13  Bruno Haible  <bruno@clisp.org>
10430
10431         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
10432         when used in C++ mode.
10433
10434 2007-05-12  Bruno Haible  <bruno@clisp.org>
10435
10436         * lib/linebuffer.h: Tweak doc.
10437         * lib/linebuffer.c: Likewise.
10438
10439 2007-05-12  James Youngman  <jay@gnu.org>
10440
10441         * lib/linebuffer.c (readlinebuffer_delim): New function,
10442         like readlinebuffer, but use a caller-specified delimiter.
10443         (readlinebuffer): Just call readlinebuffer_delim with '\n'
10444         as the delimiter.
10445         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
10446
10447 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
10448
10449         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
10450         * modules/openat (Files): Remove openat-die.c.
10451         (Depends-on): Add openat-die.
10452         * modules/openat-die: New module.
10453
10454 2007-05-06  Bruno Haible  <bruno@clisp.org>
10455
10456         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
10457         Update with info about Cygwin.
10458         * doc/functions/fprintf.texi: Update.
10459         * doc/functions/printf.texi: Update.
10460         * doc/functions/snprintf.texi: Update.
10461         * doc/functions/sprintf.texi: Update.
10462         * doc/functions/vfprintf.texi: Update.
10463         * doc/functions/vprintf.texi: Update.
10464         * doc/functions/vsnprintf.texi: Update.
10465         * doc/functions/vsprintf.texi: Update.
10466         Reported by Eric Blake.
10467
10468 2007-05-06  Bruno Haible  <bruno@clisp.org>
10469
10470         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
10471         padding ourselves for the floating-point directives.
10472         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
10473         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
10474         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
10475         gl_PRINTF_FLAG_ZERO and test its result. Invoke
10476         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
10477         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10478         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
10479         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10480         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10481         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10482         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10483         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10484         * tests/test-snprintf-posix.h (test_function): Also check the width
10485         and some flags in the %f directive.
10486         * tests/test-sprintf-posix.h (test_function): Likewise.
10487         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10488         * tests/test-vasprintf-posix.c (test_function): Likewise.
10489         * doc/functions/fprintf.texi: Update.
10490         * doc/functions/printf.texi: Update.
10491         * doc/functions/snprintf.texi: Update.
10492         * doc/functions/sprintf.texi: Update.
10493         * doc/functions/vfprintf.texi: Update.
10494         * doc/functions/vprintf.texi: Update.
10495         * doc/functions/vsnprintf.texi: Update.
10496         * doc/functions/vsprintf.texi: Update.
10497
10498 2007-05-06  Bruno Haible  <bruno@clisp.org>
10499
10500         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
10501         pass the ' flag character to sprintf or snprintf.
10502         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
10503         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
10504         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
10505         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
10506         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
10507         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10508         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
10509         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10510         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10511         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10512         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10513         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10514         * tests/test-snprintf-posix.h (test_function): Also check the grouping
10515         flag.
10516         * tests/test-sprintf-posix.h (test_function): Likewise.
10517         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10518         * tests/test-vasprintf-posix.c (test_function): Likewise.
10519         * doc/functions/fprintf.texi: Update.
10520         * doc/functions/printf.texi: Update.
10521         * doc/functions/snprintf.texi: Update.
10522         * doc/functions/sprintf.texi: Update.
10523         * doc/functions/vfprintf.texi: Update.
10524         * doc/functions/vprintf.texi: Update.
10525         * doc/functions/vsnprintf.texi: Update.
10526         * doc/functions/vsprintf.texi: Update.
10527
10528 2007-05-01  Bruno Haible  <bruno@clisp.org>
10529
10530         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
10531
10532 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
10533
10534         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
10535         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
10536
10537 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
10538
10539         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
10540         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
10541         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
10542
10543 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
10544
10545         * lib/argp-help.c (struct hol_entry): New member `ord'.
10546         (HOL_ENTRY_PTRCMP): Use ord for comparison
10547         (hol_sort): Initialize ord.
10548
10549 2007-05-01  Bruno Haible  <bruno@clisp.org>
10550
10551         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
10552         Reported by Eric Blake.
10553         * doc/gnulib.texi (Function Substitutes): Update.
10554
10555 2007-05-01  Bruno Haible  <bruno@clisp.org>
10556
10557         * doc/functions.texi: Remove file, now redundant through
10558         doc/functions/*.texi.
10559
10560 2007-05-01  Bruno Haible  <bruno@clisp.org>
10561
10562         * modules/argp (Depends-on): Add sleep.
10563
10564 2007-05-01  Bruno Haible  <bruno@clisp.org>
10565
10566         * modules/sleep-tests: New file.
10567         * tests/test-sleep.c: New file.
10568
10569         * modules/sleep: New file.
10570         * lib/sleep.c: New file.
10571         * m4/sleep.m4: New file.
10572         * lib/unistd_.h (sleep): New declaration.
10573         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
10574         HAVE_SLEEP.
10575         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
10576         * doc/functions/sleep.texi: Document the sleep module.
10577
10578 2007-05-01  Bruno Haible  <bruno@clisp.org>
10579
10580         * lib/sigprocmask.h: Remove file.
10581         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
10582         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
10583         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
10584         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
10585         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
10586         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
10587         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
10588         HAVE_SIGSET_T as a shell variable.
10589         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
10590         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
10591         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
10592         (Depends-on): Add signal. Remove verify.
10593         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
10594         (Include): Mention <signal.h> instead of sigprocmask.h.
10595         * NEWS: Mention the change.
10596         * lib/fatal-signal.c: Don't include sigprocmask.h.
10597
10598 2007-05-01  Bruno Haible  <bruno@clisp.org>
10599
10600         * modules/signal: New file.
10601         * lib/signal_.h: New file.
10602         * m4/signal_h.m4: New file.
10603
10604 2007-05-01  Bruno Haible  <bruno@clisp.org>
10605
10606         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
10607         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
10608         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
10609         HAVE_WCTYPE_CTMP_BUG into wctype.h.
10610
10611 2007-05-01  Bruno Haible  <bruno@clisp.org>
10612
10613         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
10614         configure time.
10615         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
10616         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
10617         * modules/sys_stat (Makefile.am): Substitute their values into
10618         sys/stat.h.
10619
10620 2007-05-01  Bruno Haible  <bruno@clisp.org>
10621
10622         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
10623         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
10624         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
10625
10626 2007-05-01  Bruno Haible  <bruno@clisp.org>
10627
10628         * doc/header/assert.texi: Undo last change: don't mention the gnulib
10629         'assert' module here.
10630
10631 2007-05-01  Bruno Haible  <bruno@clisp.org>
10632
10633         * doc/functions/*.texi: New files.
10634         * doc/functions/google-ranking.txt: New file.
10635         * doc/gnulib.texi (Function Substitutes): New chapter.
10636         (ctime, inet_ntoa): Remove sections.
10637         * doc/ctime.texi: Remove file.
10638         * doc/inet_ntoa.texi: Remove file.
10639         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
10640         dependencies.
10641         (%.info): New rule, specifying a --reference-limit.
10642
10643 2007-05-01  Bruno Haible  <bruno@clisp.org>
10644
10645         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
10646
10647 2007-05-01  Bruno Haible  <bruno@clisp.org>
10648
10649         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
10650         the portability of 'mkdir' to mingw systems.
10651
10652 2007-05-01  Bruno Haible  <bruno@clisp.org>
10653
10654         * doc/headers/google-ranking.txt: New file.
10655
10656 2007-04-30  Eric Blake  <ebb9@byu.net>
10657
10658         Prefer fseeko to fseek.
10659         * modules/getpass (Depends-on): Add fseeko.
10660         * lib/getpass.c (getpass): Use fseeko, not fseek.
10661
10662 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
10663
10664         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
10665         assumes the sorting is stable, while most qsort implementations
10666         are not.  Use argument addresses to ensure they never compare as
10667         equal.
10668
10669         * tests/test-argp-2.sh (usage-indent test): Fix output
10670         (func_compare): Restore diff options
10671         * tests/test-argp.c: Restore #include "progname.h"
10672
10673 2007-04-29  Bruno Haible  <bruno@clisp.org>
10674
10675         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
10676         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
10677         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
10678         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10679         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
10680         (configure.ac): Define CHECK_SNPRINTF_POSIX.
10681         (TESTS, check_PROGRAMS): Add test-snprintf.
10682         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
10683         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
10684         (TESTS, check_PROGRAMS): Add test-vsnprintf.
10685         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
10686         assertions that fail on HP-UX, OSF/1, or IRIX.
10687         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
10688
10689 2007-04-29  Bruno Haible  <bruno@clisp.org>
10690
10691         * MODULES.html.sh (posix_functions): Remove 'contents'.
10692
10693 2007-04-29  Karl Berry  <karl@gnu.org>
10694
10695         * config/srclist.txt (gendocs_template_min): new entry.
10696
10697 2007-04-29  Bruno Haible  <bruno@clisp.org>
10698
10699         Work around fpurge bug on BSD systems.
10700         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
10701         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
10702         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
10703         fpurge to rpl_fpurge if the system already has this function.
10704         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
10705         the case where the system already has this function. Correct invariants
10706         on BSD systems.
10707         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
10708         BSD systems.
10709
10710 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
10711
10712         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
10713         proposed by Sven Verdoolaege.
10714
10715         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
10716         options.
10717         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
10718         (usage and help tests): Update
10719
10720 2007-04-29  Bruno Haible  <bruno@clisp.org>
10721
10722         * tests/test-fflush.c (main): Use a file of size 17, not 10.
10723         Print more information in case of failure. Disable a test on BeOS.
10724
10725 2007-04-29  Bruno Haible  <bruno@clisp.org>
10726
10727         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
10728         This helps debugging on systems on which no gdb is available.
10729
10730 2007-04-29  Bruno Haible  <bruno@clisp.org>
10731
10732         * lib/freading.h: Improve comments.
10733         * lib/fwriting.h: Likewise.
10734         * tests/test-freading.c (main): Don't check freading immediately after
10735         repositioning. Needed for glibc.
10736
10737 2007-04-29  Bruno Haible  <bruno@clisp.org>
10738
10739         * lib/freading.c (freading): Trivial simplification.
10740
10741 2007-04-28  Bruno Haible  <bruno@clisp.org>
10742
10743         * tests/test-fwriting.c (main): Also test the interaction between
10744         fflush and fwriting.
10745         * modules/fwriting-tests (Depends-on): Add fflush.
10746
10747         * tests/test-freading.c (main): Also test the interaction between
10748         fflush and freading.
10749         * modules/freading-tests (Depends-on): Add fflush.
10750
10751 2007-04-28  Bruno Haible  <bruno@clisp.org>
10752
10753         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
10754         fseeko and ftello.
10755         Suggested by Eric Blake.
10756
10757 2007-04-28  Jim Meyering  <jim@meyering.net>
10758
10759         Avoid false-negative in gl_STDINT_H's C99 conformance test.
10760         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
10761         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
10762
10763 2007-04-27  Eric Blake  <ebb9@byu.net>
10764
10765         * doc/headers/assert.texi (assert.h): Document assert module use.
10766
10767 2007-04-27  Bruno Haible  <bruno@clisp.org>
10768
10769         * doc/headers/*.texi: New files.
10770         * doc/gnulib.texi (Header File Substitutes): New chapter.
10771         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
10772         dependencies.
10773         (standards.info ,standards.html, standards.dvi): Update dependencies.
10774         (mostlyclean, clean): New targets.
10775
10776 2007-04-27  Bruno Haible  <bruno@clisp.org>
10777
10778         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
10779         * modules/sysexits (Files, Makefile.am): Update.
10780
10781         * lib/sys_socket_.h: Renamed from lib/socket_.h.
10782         * modules/sys_socket (Files, Makefile.am): Update.
10783
10784         * lib/sys_stat_.h: Renamed from lib/stat_.h.
10785         * modules/sys_stat (Files, Makefile.am): Update.
10786
10787 2007-04-27  Eric Blake  <ebb9@byu.net>
10788
10789         * lib/freading.h: Improve comments.
10790         * lib/fwriting.h: Likewise.
10791         * lib/fflush.c: Likewise.
10792
10793         Fix closein for mingw.
10794         * modules/closein-tests: Add tests for closein.
10795         * tests/test-closein.c: New file.
10796         * tests/test-closein.sh: Likewise.
10797         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
10798         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
10799
10800 2007-04-27  Bruno Haible  <bruno@clisp.org>
10801
10802         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
10803         version is < 6.
10804         * lib/math_.h [__DECC]: Likewise.
10805         * lib/stdio_.h [__DECC]: Likewise.
10806         * lib/stdlib_.h [__DECC]: Likewise.
10807         * lib/string_.h [__DECC]: Likewise.
10808         * lib/time_.h [__DECC]: Likewise.
10809         * lib/wchar_.h [__DECC]: Likewise.
10810         * lib/wctype_.h [__DECC]: Likewise.
10811
10812 2007-04-27  Bruno Haible  <bruno@clisp.org>
10813
10814         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
10815
10816 2007-04-27  Bruno Haible  <bruno@clisp.org>
10817
10818         * lib/fflush.c: Add comments.
10819         * modules/fpurge-tests (Depends-on): Add fflush.
10820         * modules/freadable-tests (Depends-on): Likewise.
10821         * modules/fwritable-tests (Depends-on): Likewise.
10822
10823 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
10824
10825         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
10826         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
10827         Report by Bruno Haible <bruno@clisp.org>.
10828
10829 2007-04-26  Eric Blake  <ebb9@byu.net>
10830
10831         Fix fflush on mingw.
10832         * modules/fflush (Depends-on): Add freading.
10833         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
10834         but unread data.
10835
10836 2007-04-26  Eric Blake  <ebb9@byu.net>
10837         and Bruno Haible  <bruno@clisp.org>
10838
10839         Implement freading and fwriting.
10840         * lib/freading.c: New file.
10841         * lib/freading.h: Likewise.
10842         * m4/freading.m4: Likewise.
10843         * modules/freading: Likewise.
10844         * modules/freading-tests: Likewise.
10845         * tests/test-freading.c: Likewise.
10846         * lib/fwriting.c: New file.
10847         * lib/fwriting.h: Likewise.
10848         * m4/fwriting.m4: Likewise.
10849         * modules/fwriting: Likewise.
10850         * modules/fwriting-tests: Likewise.
10851         * tests/test-fwriting.c: Likewise.
10852         * MODULES.html.sh (File stream based Input/Output): Mention them.
10853
10854 2007-04-26  Bruno Haible  <bruno@clisp.org>
10855
10856         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
10857         'long' when we assume it.
10858         Suggested by Eric Blake.
10859
10860 2007-04-26  Bruno Haible  <bruno@clisp.org>
10861
10862         Ensure fseeko, ftello are declared on glibc systems.
10863         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
10864         * modules/fseeko (configure.ac-early): Likewise.
10865         * modules/ftello (configure.ac-early): Likewise.
10866         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
10867         AC_FUNC_FSEEKO for this.
10868         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
10869         (gl_CHECK_FSEEKO): Remove macro.
10870
10871 2007-04-26  Bruno Haible  <bruno@clisp.org>
10872
10873         * tests/test-fflush.c (main): Also check the ftell result after
10874         fflush and fseek/fseeko.
10875         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
10876         file descriptor position cache in the stream.
10877         * lib/fseeko.c (rpl_fseeko): Likewise.
10878
10879 2007-04-26  Bruno Haible  <bruno@clisp.org>
10880
10881         * modules/fflush-tests (Depends-on): Add fseeko.
10882
10883 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
10884             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10885
10886         * lib/argz_.h: ensure error_t definition is obtained in same
10887         mechanism system argz.h would have.
10888         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
10889         argz facilities are known bad.  Err on the side of caution if
10890         cross-compiling.
10891
10892 2007-04-25  Eric Blake  <ebb9@byu.net>
10893
10894         * lib/fpurge.c (includes): Use stdlib.h for free.
10895         * tests/test-fflush.c (main): Also test fflush-fseeko.
10896
10897 2007-04-25  Bruno Haible  <bruno@clisp.org>
10898
10899         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
10900         * lib/fseeko.c: New file.
10901         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
10902         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
10903         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
10904         gl_FUNC_FSEEKO.
10905         (gl_FUNC_FSEEKO): Invoke it.
10906         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
10907         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
10908         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
10909
10910 2007-04-25  Bruno Haible  <bruno@clisp.org>
10911
10912         * modules/fflush (Depends-on): Add ftello.
10913
10914 2007-04-25  Bruno Haible  <bruno@clisp.org>
10915
10916         * modules/ftello-tests: New file.
10917         * tests/test-ftello.c: New file.
10918
10919         * modules/ftello: New file.
10920         * m4/ftello.m4: New file.
10921         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
10922         HAVE_FTELLO.
10923         * lib/stdio_.h (ftello): New declaration.
10924         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
10925         HAVE_FTELLO.
10926
10927 2007-04-25  Bruno Haible  <bruno@clisp.org>
10928
10929         * modules/fseeko-tests: New file.
10930         * tests/test-fseeko.c: New file.
10931
10932         * modules/fseeko: New file.
10933         * m4/fseeko.m4: New file.
10934         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
10935         HAVE_FSEEKO.
10936         * lib/stdio_.h (fseeko): New declaration.
10937         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
10938         HAVE_FSEEKO.
10939
10940 2007-04-25  Bruno Haible  <bruno@clisp.org>
10941
10942         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
10943
10944 2007-04-25  Bruno Haible  <bruno@clisp.org>
10945
10946         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
10947         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
10948         * tests/test-unistd.c: Likewise.
10949         * tests/test-fcntl.c: Likewise.
10950
10951 2007-04-23  Eric Blake  <ebb9@byu.net>
10952
10953         * lib/fflush.c: Fix missing include.
10954         Reported by Bruno Haible.
10955
10956 2007-04-23  Bruno Haible  <bruno@clisp.org>
10957
10958         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
10959         Reported by Eric Blake.
10960
10961 2007-04-23  Bruno Haible  <bruno@clisp.org>
10962
10963         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
10964
10965 2007-04-23  Bruno Haible  <bruno@clisp.org>
10966
10967         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
10968
10969 2007-04-23  Bruno Haible  <bruno@clisp.org>
10970
10971         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
10972         Needed on HP-UX 11.
10973
10974 2007-04-16  Eric Blake  <ebb9@byu.net>
10975
10976         Make fflush rely on fpurge.
10977         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
10978         open coding all variants.
10979         * modules/fflush (Depends-on): Add fpurge and unistd.
10980         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
10981         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
10982
10983         Fix --with-tests compilation on cygwin.
10984         * modules/argmatch-tests (Makefile.am): List gnulib library first
10985         in LDADD.
10986         * modules/argp-tests (Makefile.am): Likewise.
10987         * modules/array-list-tests (Makefile.am): Likewise.
10988         * modules/array-oset-tests (Makefile.am): Likewise.
10989         * modules/avltree-list-tests (Makefile.am): Likewise.
10990         * modules/avltree-oset-tests (Makefile.am): Likewise.
10991         * modules/avltreehash-list-tests (Makefile.am): Likewise.
10992         * modules/carray-list-tests (Makefile.am): Likewise.
10993         * modules/dirname-tests (Makefile.am): Likewise.
10994         * modules/frexp-tests (Makefile.am): Likewise.
10995         * modules/isnanl-tests (Makefile.am): Likewise.
10996         * modules/linked-list-tests (Makefile.am): Likewise.
10997         * modules/linkedhash-list-tests (Makefile.am): Likewise.
10998         * modules/lock-tests (Makefile.am): Likewise.
10999         * modules/rbtree-list-tests (Makefile.am): Likewise.
11000         * modules/rbtree-oset-tests (Makefile.am): Likewise.
11001         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
11002         * modules/tls-tests (Makefile.am): Likewise.
11003         * modules/tsearch-tests (Makefile.am): Likewise.
11004         * modules/xvasprintf-tests (Makefile.am): Likewise.
11005
11006         Fix fpurge for cygwin.
11007         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
11008         value.
11009         * modules/fpurge-tests (Depends-on): Clean up trash.
11010
11011 2007-04-16  Simon Josefsson  <simon@josefsson.org>
11012
11013         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
11014
11015         * m4/autobuild.m4: Re-indent.
11016
11017 2007-04-13  Bruno Haible  <bruno@clisp.org>
11018
11019         * modules/fpurge-tests: New file.
11020         * tests/test-fpurge.c: New file.
11021
11022         * modules/fpurge: New file.
11023         * lib/fpurge.h: New file.
11024         * lib/fpurge.c: New file.
11025         * m4/fpurge.m4: New file.
11026
11027 2007-04-13  Bruno Haible  <bruno@clisp.org>
11028
11029         * modules/fbufmode-tests: New file.
11030         * tests/test-fbufmode.c: New file.
11031
11032         * modules/fbufmode: New file.
11033         * lib/fbufmode.h: New file.
11034         * lib/fbufmode.c: New file.
11035         * m4/fbufmode.m4: New file.
11036
11037 2007-04-13  Bruno Haible  <bruno@clisp.org>
11038
11039         * modules/fwritable-tests: New file.
11040         * tests/test-fwritable.c: New file.
11041
11042         * modules/fwritable: New file.
11043         * lib/fwritable.h: New file.
11044         * lib/fwritable.c: New file.
11045         * m4/fwritable.m4: New file.
11046
11047 2007-04-13  Bruno Haible  <bruno@clisp.org>
11048
11049         * modules/freadable-tests: New file.
11050         * tests/test-freadable.c: New file.
11051
11052         * modules/freadable: New file.
11053         * lib/freadable.h: New file.
11054         * lib/freadable.c: New file.
11055         * m4/freadable.m4: New file.
11056
11057 2007-04-13  Bruno Haible  <bruno@clisp.org>
11058
11059         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
11060         MOSTLYCLEANFILES.
11061
11062 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
11063
11064         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
11065         gzip bootstrap.conf to avoid dragging in i18n machinery.
11066         (gnulib_tool_option): Use it.
11067
11068 2007-04-13  Bruno Haible  <bruno@clisp.org>
11069
11070         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
11071         %F directives.
11072         * tests/test-vasprintf-posix.c (test_function): Likewise.
11073         * tests/test-snprintf-posix.h (test_function): Likewise.
11074         * tests/test-sprintf-posix.h (test_function): Likewise.
11075         * tests/test-fprintf-posix.h (test_function): Likewise.
11076         * tests/test-printf-posix.h (test_function): Likewise.
11077         * tests/test-fprintf-posix.out: Likewise.
11078
11079 2007-04-13  Bruno Haible  <bruno@clisp.org>
11080
11081         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
11082         * modules/tls-tests (configure.ac): Likewise.
11083         Reported by Arto C. Nirkko <anirkko@insel.ch>.
11084
11085 2007-04-13  Bruno Haible  <bruno@clisp.org>
11086
11087         * lib/tls.c (glthread_tls_get): Fix return type.
11088         Patch by Arto C. Nirkko <anirkko@insel.ch>.
11089
11090 2007-04-12  Eric Blake  <ebb9@byu.net>
11091
11092         * modules/gettime (Depends-on): Remove gettime.
11093         Reported by Dmitry V. Levin.
11094
11095 2007-04-12  Bruno Haible  <bruno@clisp.org>
11096
11097         * modules/fflush (Include): Mention <stdio.h>.
11098         * modules/strtoimax (Include): Mention <inttypes.h>.
11099         * modules/strtoumax (Include): Likewise.
11100
11101 2007-04-12  Eric Blake  <ebb9@byu.net>
11102
11103         * .cvsignore: New file.
11104         * .gitignore: Likewise.
11105
11106 2007-04-12  Bruno Haible  <bruno@clisp.org>
11107
11108         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
11109         not before, since $(LDADD) often contains libgnu.a.
11110         * modules/striconv-tests (test_striconv_LDADD): Likewise.
11111         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
11112         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
11113         Needed on Cygwin.
11114
11115 2007-04-12  Eric Blake  <ebb9@byu.net>
11116
11117         Work around glibc's failure to flush stdin on fclose.
11118         * lib/closein.c (close_stdin): Flush stdin before closing.
11119
11120         Work around glibc's failure to reset seekable stdin on exit.
11121         * modules/closein: New module.
11122         * lib/closein.c: New file.
11123         * lib/closein.h: Likewise.
11124         * m4/closein.m4: Likewise.
11125         * MODULES.html.sh (File stream based Input/Output): Document it.
11126
11127 2007-04-12  Simon Josefsson  <simon@josefsson.org>
11128
11129         * gnulib-tool: Rename generated 'autobuild' script to
11130         'do-autobuild' in --create-megatestdir output.
11131
11132         * doc/gnulib.texi (Build robot for gnulib): Fix.
11133
11134 2007-04-12  Simon Josefsson  <simon@josefsson.org>
11135
11136         * modules/sysexits (Depends-on): Add absolute-header.
11137
11138 2007-04-12  Eric Blake  <ebb9@byu.net>
11139
11140         No need to preserve errno on success.
11141         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
11142         Reported by Bruno Haible.
11143
11144 2007-04-12  Simon Josefsson  <simon@josefsson.org>
11145
11146         * MODULES.html.sh (Support for maintaining and releasing
11147         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
11148
11149 2007-04-12  Simon Josefsson  <simon@josefsson.org>
11150
11151         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
11152
11153 2007-04-12  Simon Josefsson  <simon@josefsson.org>
11154
11155         * modules/autobuild: New module.
11156
11157         * m4/autobuild.m4: New file.
11158
11159 2007-04-11  Bruno Haible  <bruno@clisp.org>
11160
11161         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
11162         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
11163         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
11164         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
11165         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
11166         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11167         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11168         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
11169         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11170         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11171         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
11172         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11173         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11174         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
11175         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11176         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11177         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
11178         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11179         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11180         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
11181         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11182         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11183         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
11184         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11185         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11186         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
11187         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11188         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11189         Reported by Eric Blake.
11190
11191 2007-04-11  Bruno Haible  <bruno@clisp.org>
11192
11193         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
11194
11195 2007-04-10  Bruno Haible  <bruno@clisp.org>
11196
11197         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
11198         for NaN and Infinity. Needed on FreeBSD 6.1.
11199         * tests/test-vasnprintf-posix.c (test_function): Undo last change
11200         regarding results for "%010a" of Infinity and NaN.
11201         * tests/test-vasprintf-posix.c (test_function): Likewise.
11202         * tests/test-snprintf-posix.h (test_function): Likewise.
11203         * tests/test-sprintf-posix.h (test_function): Likewise.
11204         * tests/test-fprintf-posix.h (test_function): Likewise.
11205         * tests/test-printf-posix.h (test_function): Likewise.
11206         * tests/test-fprintf-posix.out: Likewise.
11207
11208 2007-04-10  Bruno Haible  <bruno@clisp.org>
11209
11210         * modules/locale-tests: New file.
11211         * tests/test-locale.c: New file.
11212
11213         * modules/locale: New file.
11214         * lib/locale_.h: New file.
11215         * m4/locale_h.m4: New file.
11216
11217 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
11218             Bruno Haible  <bruno@clisp.org>
11219
11220         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
11221         be determined, test for availability of the copysignf, copysign,
11222         copysignl functions.
11223         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
11224         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
11225         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
11226
11227 2007-04-09  Eric Blake  <ebb9@byu.net>
11228
11229         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
11230         * modules/stdio (Makefile.am): Support fflush.
11231         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11232         * modules/fflush: New file.
11233         * lib/fflush.c: Likewise.
11234         * m4/fflush.m4: Likewise.
11235         * modules/fflush-tests: New test.
11236         * tests/test-fflush.c: Likewise.
11237         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
11238
11239 2007-04-06  Bruno Haible  <bruno@clisp.org>
11240
11241         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
11242         (VASNPRINTF): Use signbit for faster determination whether to print a
11243         minus sign.
11244         * modules/vasnprintf (Files): Remove lib/float+.h.
11245         * modules/fprintf-posix (Depends-on): Add signbit.
11246         * modules/snprintf-posix (Depends-on): Likewise.
11247         * modules/sprintf-posix (Depends-on): Likewise.
11248         * modules/vasnprintf-posix (Depends-on): Likewise.
11249         * modules/vasprintf-posix (Depends-on): Likewise.
11250         * modules/vfprintf-posix (Depends-on): Likewise.
11251         * modules/vsnprintf-posix (Depends-on): Likewise.
11252         * modules/vsprintf-posix (Depends-on): Likewise.
11253
11254 2007-04-06  Bruno Haible  <bruno@clisp.org>
11255
11256         * tests/test-frexp.c (main): Test also the sign bit of zero results.
11257         * tests/test-frexpl.c (main): Likewise.
11258         * tests/test-ldexpl.c (main): Likewise.
11259         * modules/frexp-tests (Depends-on): Add signbit.
11260         * modules/frexpl-tests (Depdends-on): Likewise.
11261         * modules/ldexpl-tests (Depdends-on): Likewise.
11262
11263 2007-04-06  Bruno Haible  <bruno@clisp.org>
11264
11265         * modules/signbit-tests: New file.
11266         * tests/test-signbit.c: New file.
11267
11268         * modules/signbit: New file.
11269         * lib/signbitf.c: New file.
11270         * lib/signbitd.c: New file.
11271         * lib/signbitl.c: New file.
11272         * m4/signbit.m4: New file.
11273         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
11274         (signbit): New macro.
11275         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
11276         REPLACE_SIGNBIT.
11277         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
11278         REPLACE_FREXPL into math.h.
11279
11280 2007-04-06  Bruno Haible  <bruno@clisp.org>
11281
11282         * modules/isnanf-nolibm-tests: New file.
11283         * tests/test-isnanf.c: New file.
11284
11285         * modules/isnanf-nolibm: New file.
11286         * lib/isnanf.h: New file.
11287         * lib/isnanf.c: New file.
11288         * lib/isnan.c: Consider the USE_FLOAT macro.
11289         * m4/isnanf.m4: New file.
11290
11291 2007-04-06  Bruno Haible  <bruno@clisp.org>
11292
11293         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
11294         (Link): New section.
11295
11296         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
11297
11298 2007-04-06  Bruno Haible  <bruno@clisp.org>
11299
11300         Assume the 'long double' type.
11301         * m4/longdouble.m4: Remove file.
11302         * config/srclist.txt: Don't mention longdouble.m4.
11303         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
11304         * lib/float+.h: Likewise.
11305         * lib/frexp.c: Likewise.
11306         * lib/printf-args.h: Likewise.
11307         * lib/printf-args.c: Likewise.
11308         * lib/printf-frexp.c: Likewise.
11309         * lib/printf-parse.c: Likewise.
11310         * lib/vasnprintf.c: Likewise.
11311         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
11312         * m4/intl.m4: Likewise.
11313         * m4/isnanl.m4: Likewise.
11314         * m4/printf.m4: Likewise.
11315         * m4/printf-frexpl.m4: Likewise.
11316         * m4/vasnprintf.m4: Likewise.
11317         * modules/allocsa (Files): Remove m4/longdouble.m4.
11318         * modules/gettext (Files): Likewise.
11319         * modules/relocatable-prog-wrapper (Files): Likewise.
11320         * modules/vasnprintf (Files): Likewise.
11321         * modules/isnanl (Files): Likewise.
11322         (Include): Simplify.
11323         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
11324         (Include): Simplify.
11325         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
11326         (Include): Simplify.
11327         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
11328         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11329         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
11330         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11331         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
11332         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11333         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
11334         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11335         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
11336         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11337         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
11338         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11339         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
11340         * tests/test-isnanl.c: Likewise.
11341         * tests/test-snprintf-posix.h: Likewise.
11342         * tests/test-sprintf-posix.h: Likewise.
11343         * tests/test-vasnprintf-posix.c: Likewise.
11344         * tests/test-vasnprintf-posix2.c: Likewise.
11345         * tests/test-vasprintf-posix.c: Likewise.
11346
11347 2007-04-06  Bruno Haible  <bruno@clisp.org>
11348
11349         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
11350         * lib/math_.h [__DECC]: Include the overridden include file through
11351         #include_next, outside the double-inclusion guard.
11352         * lib/stdio_.h [__DECC]: Likewise.
11353         * lib/stdlib_.h [__DECC]: Likewise.
11354         * lib/string_.h [__DECC]: Likewise.
11355         * lib/time_.h [__DECC]: Likewise.
11356         * lib/wchar_.h [__DECC]: Likewise.
11357         * lib/wctype_.h [__DECC]: Likewise.
11358         * lib/inttypes_.h [__DECC]: Likewise.
11359         Reported by Albert Chin <china@thewrittenword.com> in
11360         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
11361
11362 2007-04-04  Eric Blake  <ebb9@byu.net>
11363
11364         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
11365         1.5.x.
11366
11367 2007-04-04  Bruno Haible  <bruno@clisp.org>
11368
11369         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
11370         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
11371
11372 2007-04-04  Bruno Haible  <bruno@clisp.org>
11373
11374         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
11375         results for "%010a" of Infinity and NaN.
11376         * tests/test-vasprintf-posix.c (test_function): Likewise.
11377         * tests/test-snprintf-posix.h (test_function): Likewise.
11378         * tests/test-sprintf-posix.h (test_function): Likewise.
11379         * tests/test-fprintf-posix.h (test_function): Remove these tests.
11380         * tests/test-printf-posix.h (test_function): Likewise.
11381         * tests/test-fprintf-posix.out: Update.
11382         Needed for FreeBSD 6.1.
11383
11384 2007-04-04  Bruno Haible  <bruno@clisp.org>
11385
11386         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
11387         directly used by the gnulib modules nor by gnulib-tool.
11388
11389 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
11390
11391         * DEPENDENCIES: Give overall description of version dependency
11392         desirability.  Use more-typical names for apps.
11393         Add shell, coreutils, diffutils, grep, tar, gzip.
11394
11395 2007-04-04  Simon Josefsson  <simon@josefsson.org>
11396
11397         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
11398
11399 2007-04-04  Karl Berry  <karl@gnu.org>
11400
11401         * MODULES.html.sh (func_module): missing '.
11402
11403 2007-04-03  Bruno Haible  <bruno@clisp.org>
11404
11405         * modules/argmatch-tests (Makefile.am): New variable
11406         test_argmatch_LDADD.
11407         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
11408         * modules/array-list-tests (Makefile.am): New variable
11409         test_array_list_LDADD.
11410         * modules/array-oset-tests (Makefile.am): New variable
11411         test_array_oset_LDADD.
11412         * modules/avltree-list-tests (Makefile.am): New variable
11413         test_avltree_list_LDADD.
11414         * modules/avltree-oset-tests (Makefile.am): New variable
11415         test_avltree_oset_LDADD.
11416         * modules/avltreehash-list-tests (Makefile.am): New variable
11417         test_avltreehash_list_LDADD.
11418         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
11419         test_canonicalize_lgpl_LDADD.
11420         * modules/carray-list-tests (Makefile.am): New variable
11421         test_carray_list_LDADD.
11422         * modules/dirname-tests (Makefile.am): New variable
11423         test_dirname_LDADD.
11424         * modules/linked-list-tests (Makefile.am): New variable
11425         test_linked_list_LDADD.
11426         * modules/linkedhash-list-tests (Makefile.am): New variable
11427         test_linkedhash_list_LDADD.
11428         * modules/rbtree-list-tests (Makefile.am): New variable
11429         test_rbtree_list_LDADD.
11430         * modules/rbtree-oset-tests (Makefile.am): New variable
11431         test_rbtree_oset_LDADD.
11432         * modules/rbtreehash-list-tests (Makefile.am): New variable
11433         test_rbtreehash_list_LDADD.
11434         * modules/xvasprintf-tests (Makefile.am): New variable
11435         test_xvasprintf_LDADD.
11436         Reported by Eric Blake.
11437
11438 2007-04-03  Eric Blake  <ebb9@byu.net>
11439
11440         * DEPENDENCIES: Weaken m4 requirements.
11441
11442 2007-04-03  Bruno Haible  <bruno@clisp.org>
11443
11444         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
11445         * modules/isnanl-tests (configure.ac): Likewise.
11446
11447 2007-04-03  Ben Pfaff  <blp@gnu.org>
11448
11449         * modules/iconv_open: Add $(srcdir)/ to source directory
11450         references in Makefile fragments that call gperf, to fix VPATH
11451         builds.
11452
11453 2007-04-03  Bruno Haible  <bruno@clisp.org>
11454
11455         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
11456         * lib/ldexpl.c: Undo last change.
11457
11458 2007-04-03  Bruno Haible  <bruno@clisp.org>
11459
11460         * modules/printf-frexpl (Depends-on): Undo last change.
11461         (Files): Add m4/ldexpl.m4.
11462
11463 2007-04-03  Bruno Haible  <bruno@clisp.org>
11464
11465         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
11466         * modules/isnanl (Link): New section.
11467
11468         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
11469         * modules/frexp (Link): New section.
11470
11471         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
11472         * modules/frexpl (Link): New section.
11473
11474         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
11475         * modules/ldexpl (Link): New section.
11476
11477 2007-04-03  Bruno Haible  <bruno@clisp.org>
11478
11479         * modules/TEMPLATE-EXTENDED: New file.
11480         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
11481
11482 2007-04-03  Bruno Haible  <bruno@clisp.org>
11483
11484         * DEPENDENCIES: New file.
11485         Suggested by Simon Josefsson.
11486
11487 2007-04-03  Bruno Haible  <bruno@clisp.org>
11488
11489         * doc/gnulib.texi: Escape @.
11490
11491 2007-04-03  James Youngman  <jay@gnu.org>
11492         and Paul Eggert  <eggert@cs.ucla.edu>
11493
11494         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
11495         birthtime on all systems that have birthtime, not just those which
11496         use st_birthtimensec rather than st_birthtim.  Putting zero in
11497         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
11498         that the birth time is not available for files on an NFS mount.
11499
11500 2007-04-03  Simon Josefsson  <simon@josefsson.org>
11501
11502         * modules/memxor: Move back from crypto/, suggested by Bruno.
11503         * modules/crypto/hmac-sha1: Fix memxor dependency.
11504
11505         * modules/crypto/gc: Moved from ../.
11506
11507 2007-04-02  Eric Blake  <ebb9@byu.net>
11508
11509         * lib/ldexpl.c (includes): Avoid libm.
11510
11511         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
11512
11513 2007-04-02  Bruno Haible  <bruno@clisp.org>
11514
11515         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
11516         on IRIX.
11517
11518 2007-04-02  Bruno Haible  <bruno@clisp.org>
11519
11520         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
11521         x86 or x86_64 platforms running MacOS X.
11522         Reported by Ryan Schmidt <@ryandesign.com>.
11523
11524 2007-04-02  Bruno Haible  <bruno@clisp.org>
11525
11526         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
11527         i386.
11528
11529 2007-04-01  Simon Josefsson  <simon@josefsson.org>
11530
11531         * modules/crypto/arcfour: Moved from ../.
11532         * modules/crypto/arcfour-tests: Moved from ../.
11533         * modules/crypto/arctwo: Moved from ../.
11534         * modules/crypto/arctwo-tests: Moved from ../.
11535         * modules/crypto/des: Moved from ../.
11536         * modules/crypto/des-tests: Moved from ../.
11537         * modules/crypto/gc-arcfour: Moved from ../.
11538         * modules/crypto/gc-arcfour-tests: Moved from ../.
11539         * modules/crypto/gc-arctwo: Moved from ../.
11540         * modules/crypto/gc-arctwo-tests: Moved from ../.
11541         * modules/crypto/gc-des: Moved from ../.
11542         * modules/crypto/gc-des-tests: Moved from ../.
11543         * modules/crypto/gc-hmac-md5: Moved from ../.
11544         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
11545         * modules/crypto/gc-hmac-sha1: Moved from ../.
11546         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
11547         * modules/crypto/gc-md2: Moved from ../.
11548         * modules/crypto/gc-md2-tests: Moved from ../.
11549         * modules/crypto/gc-md4: Moved from ../.
11550         * modules/crypto/gc-md4-tests: Moved from ../.
11551         * modules/crypto/gc-md5: Moved from ../.
11552         * modules/crypto/gc-md5-tests: Moved from ../.
11553         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
11554         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
11555         * modules/crypto/gc-random: Moved from ../.
11556         * modules/crypto/gc-rijndael: Moved from ../.
11557         * modules/crypto/gc-rijndael-tests: Moved from ../.
11558         * modules/crypto/gc-sha1: Moved from ../.
11559         * modules/crypto/gc-sha1-tests: Moved from ../.
11560         * modules/crypto/gc-tests: Moved from ../.
11561         * modules/crypto/hmac-md5: Moved from ../.
11562         * modules/crypto/hmac-md5-tests: Moved from ../.
11563         * modules/crypto/hmac-sha1: Moved from ../.
11564         * modules/crypto/hmac-sha1-tests: Moved from ../.
11565         * modules/crypto/md2: Moved from ../.
11566         * modules/crypto/md2-tests: Moved from ../.
11567         * modules/crypto/md4: Moved from ../.
11568         * modules/crypto/md4-tests: Moved from ../.
11569         * modules/crypto/md5: Moved from ../.
11570         * modules/crypto/md5-tests: Moved from ../.
11571         * modules/crypto/memxor: Moved from ../.
11572         * modules/crypto/rijndael: Moved from ../.
11573         * modules/crypto/rijndael-tests: Moved from ../.
11574         * modules/crypto/sha1: Moved from ../.
11575
11576 2007-03-30  James Youngman  <jay@gnu.org>
11577
11578         * tests/test-stat-time.c (prepare_test): use chmod() rather than
11579         rename() to change the ctime of a file (because ctime is unaffected
11580         by rename on jfs2 on AIX 5.1).
11581         (main): Start by doing cleanup, in case a previous run failed leaving
11582         test files behind.
11583
11584 2007-03-31  Bruno Haible  <bruno@clisp.org>
11585
11586         Support old proprietary implementations of iconv.
11587         * modules/iconv_open: New file.
11588         * lib/iconv_.h: New file.
11589         * m4/iconv_h.m4: New file.
11590         * lib/iconv_open.c: New file.
11591         * lib/iconv_open-aix.gperf: New file.
11592         * lib/iconv_open-hpux.gperf: New file.
11593         * lib/iconv_open-irix.gperf: New file.
11594         * lib/iconv_open-osf.gperf: New file.
11595         * m4/iconv_open.m4: New file.
11596         * modules/linebreak (Depends-on): Add iconv_open.
11597         * modules/striconv (Depends-on): Likewise.
11598         * modules/striconveh (Depends-on): Likewise.
11599         * modules/unicodeio (Depends-on): Likewise.
11600         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
11601         (iconv_t)(-1).
11602         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
11603         conversion if cd is (iconv_t)(-1).
11604         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
11605         is not possible.
11606
11607 2007-03-31  Bruno Haible  <bruno@clisp.org>
11608
11609         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
11610         work on Solaris either. Protect also second use of "autodetect_jp".
11611
11612 2007-03-31  Bruno Haible  <bruno@clisp.org>
11613
11614         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
11615         the function is not present.
11616
11617 2007-03-31  Bruno Haible  <bruno@clisp.org>
11618
11619         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
11620         the function is not present.
11621
11622 2007-03-31  Bruno Haible  <bruno@clisp.org>
11623
11624         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
11625         a bug in HP-UX iconv_open().
11626
11627 2007-03-31  Bruno Haible  <bruno@clisp.org>
11628
11629         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
11630         (Mathematics <math.h>): New section, add fpieee.
11631         (Input/output <stdio.h>): Add fseterr.
11632         (Mathematics <math.h>): New section, add printf-frexp.
11633         (Container data structures): Add sublist.
11634         (Core language properties): Add fpucw, inline.
11635         (Functions for greatest-width integer types <inttypes.h>): Add
11636         imaxabs, imaxdiv, inttypes.
11637         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
11638         isnanl-nolibm, ldexp.
11639         (Mathematics <math.h>): New section, add printf-frexpl.
11640         (Support for systems lacking POSIX:2001): Add fprintf-posix,
11641         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
11642         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
11643         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
11644         (Unicode string functions): Add unistr/u*-mbtoucr.
11645         (Java): Add javacomp-script, javaexec-script.
11646         (C#): Add csharpcomp-script, csharpexec-script.
11647         (Support for building libraries and executables): Add havelib,
11648         relocatable-*.
11649         (Support for maintaining and releasing projects): Renamed from
11650         'Support for maintaining and release projects'. Add announce-gen.
11651
11652 2007-03-31  Bruno Haible  <bruno@clisp.org>
11653
11654         * README: Talk primarily about git.
11655         (git and CVS): Renamed from CVS.
11656         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
11657         gnulib is available through git.
11658         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
11659
11660 2007-03-30  Bruno Haible  <bruno@clisp.org>
11661
11662         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
11663         * lib/poll_.h: Likewise.
11664         * lib/stat_.h: Likewise.
11665         * lib/sys_time_.h: Likewise.
11666         * lib/sysexit_.h: Likewise.
11667         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
11668         * lib/stdbool_.h: Likewise.
11669         * lib/byteswap_.h: Add double-inclusion guard.
11670
11671 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
11672
11673         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
11674
11675 2007-03-30  Karl Berry  <karl@gnu.org>
11676
11677         * config/srclist-update: double space after USA in the license
11678         substitution, since that's how it's usually (?) written.
11679
11680 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
11681
11682         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
11683         reported by Bruno Haible.
11684
11685 2007-03-29  Bruno Haible  <bruno@clisp.org>
11686
11687         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
11688         a bug in AIX iconv().
11689
11690 2007-03-29  Bruno Haible  <bruno@clisp.org>
11691
11692         * modules/ldexpl-tests: New file.
11693         * tests/test-ldexpl.c: New file.
11694
11695 2007-03-29  Bruno Haible  <bruno@clisp.org>
11696
11697         * lib/ldexpl.c: Include fpucw.h.
11698         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
11699         multiplication.
11700         * modules/ldexpl (Depends-on): Add fpucw.
11701
11702 2007-03-29  Bruno Haible  <bruno@clisp.org>
11703
11704         * modules/ldexpl: New file.
11705         * m4/ldexpl.m4: New file.
11706         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
11707         set.
11708         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
11709         REPLACE_LDEXPL.
11710         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
11711         REPLACE_LDEXPL.
11712         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
11713         gl_FUNC_LDEXPL_WORKS.
11714         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
11715         * modules/mathl (Files): Remove lib/ldexpl.c.
11716         (Depends-on): Add ldexpl.
11717
11718 2007-03-29  Bruno Haible  <bruno@clisp.org>
11719
11720         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
11721
11722 2007-03-29  Bruno Haible  <bruno@clisp.org>
11723
11724         * tests/test-striconveh.c (main): Don't assume that a direct conversion
11725         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
11726         and possibly also HP-UX.
11727         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
11728         work on AIX, IRIX, HP-UX, OSF/1.
11729         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
11730         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
11731         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
11732         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
11733         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
11734         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
11735
11736 2007-03-29  Bruno Haible  <bruno@clisp.org>
11737
11738         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
11739
11740 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
11741
11742         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
11743         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
11744
11745 2007-03-29  Eric Blake  <ebb9@byu.net>
11746
11747         * lib/acl-internal.h: Remove redundant include.
11748         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
11749         Cygwin when a file is locked.
11750
11751 2007-03-29  Bruno Haible  <bruno@clisp.org>
11752
11753         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
11754         file.
11755         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
11756
11757 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
11758
11759         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
11760         try to remove a parent directory if the child couldn't be removed
11761         (except for the first rmdir, which could fail because the child
11762         doesn't exist).  Problem reported by Jeff Blaine in
11763         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
11764
11765 2007-03-28  Bruno Haible  <bruno@clisp.org>
11766
11767         * lib/striconveh.c (utf8conv_carefully): New function.
11768         (mem_cd_iconveh_internal): Invoke it.
11769
11770 2007-03-28  Bruno Haible  <bruno@clisp.org>
11771
11772         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
11773         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
11774         input.
11775         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
11776         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
11777         unistr/u8-uctomb.
11778
11779 2007-03-28  Bruno Haible  <bruno@clisp.org>
11780
11781         * modules/unistr/u8-mbtoucr: New file.
11782         * lib/unistr/u8-mbtoucr.c: New file.
11783         * modules/unistr/u16-mbtoucr: New file.
11784         * lib/unistr/u16-mbtoucr.c: New file.
11785         * modules/unistr/u16-mbtoucr: New file.
11786         * lib/unistr/u16-mbtoucr.c: New file.
11787         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
11788
11789 2007-03-27  Simon Josefsson  <simon@josefsson.org>
11790             Bruno Haible  <bruno@clisp.org>
11791
11792         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
11793         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
11794         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
11795
11796         * m4/stdio_h.m4: Add stubs for vasprintf too.
11797
11798         * modules/stdio: Support vasprintf in sed command.
11799
11800         * modules/vasprintf: Depend on stdio for prototypes.  Remove
11801         vasprintf.h.  Add stdio module indicator.
11802
11803         * lib/stdio_.h: Declare asprintf and vasprintf, based on
11804         vasprintf.h.
11805
11806         * lib/vasprintf.h: File removed.
11807
11808         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
11809         * lib/vasprintf.c: Ditto.
11810         * lib/xvasprintf.c: Ditto.
11811         * tests/test-vasprintf-posix.c: Ditto.
11812         * tests/test-vasprintf.c: Ditto.
11813
11814 2007-03-27  Bruno Haible  <bruno@clisp.org>
11815
11816         Make vasnprintf multithread-safe.
11817         * lib/vasnprintf.c (decimal_point_char): New function.
11818         (VASNPRINTF): Use it.
11819         Suggested by Simon Josefsson.
11820
11821 2007-03-27  Eric Blake  <ebb9@byu.net>
11822
11823         Support sub-second birthtime on cygwin.
11824         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
11825         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
11826         (get_stat_birthtime): Also work with st_birthtim.
11827
11828 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
11829
11830         * lib/stat-time.h (USE_BIRTHTIME): Remove.
11831         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
11832         (get_stat_birthtime_ns): Do not try to use "spare" fields.
11833         (get_stat_birthtime_ns): Simplify compile-time tests.
11834         (get_stat_birthtime): Change the API to look like
11835         get_stat_mtime etc., except return a negative tv_nsec on error.
11836         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
11837         Don't check for "spare" fields.
11838         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
11839         or for struct stat.st_birthtime, as these tests aren't used.
11840         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
11841
11842 2007-03-27  Bruno Haible  <bruno@clisp.org>
11843
11844         * lib/stat-time.h: Include <sys/stat.h>.
11845
11846 2007-03-27  James Youngman  <jay@gnu.org>
11847
11848         * lib/stat-time.h (get_stat_birthtime): New function for
11849           retrieving st_birthtime as provided by UFS2 (hence *BSD).
11850         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
11851           and its variants.
11852         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
11853         * modules/stat-time-test: New file.
11854         * tests/test-stat-time.c: New test, devised by Bruno Haible.
11855
11856 2007-03-26  Bruno Haible  <bruno@clisp.org>
11857
11858         Better support of signalling NaNs.
11859         * lib/atanl.c: Include isnanl.h.
11860         (atanl): Perform test for NaN at the beginning of the function and
11861         through a call to isnanl.
11862         * lib/cosl.c: Include isnanl.h.
11863         (cosl): Perform test for NaN at the beginning of the function and
11864         through a call to isnanl.
11865         * lib/ldexpl.c: Include isnanl.h.
11866         (ldexpl): Perform test for NaN through a call to isnanl.
11867         * lib/logl.c: Include isnanl.h.
11868         (logl): Perform test for NaN at the beginning of the function and
11869         through a call to isnanl.
11870         * lib/sinl.c: Include isnanl.h.
11871         (sinl): Perform test for NaN at the beginning of the function and
11872         through a call to isnanl.
11873         * lib/sqrtl.c: Include isnanl.h.
11874         (sqrtl): Perform test for NaN at the beginning of the function and
11875         through a call to isnanl.
11876         * lib/tanl.c: Include isnanl.h.
11877         (tanl): Perform test for NaN at the beginning of the function and
11878         through a call to isnanl.
11879         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
11880         * modules/mathl (Depends-on): Add isnanl.
11881
11882 2007-03-26  Eric Blake  <ebb9@byu.net>
11883
11884         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
11885         regression in logic sense of previous patch.
11886
11887 2007-03-26  Bruno Haible  <bruno@clisp.org>
11888
11889         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
11890         unportable shell command "if ! ...".
11891         Reported by Ralf Wildenhues.
11892
11893 2007-03-25  Bruno Haible  <bruno@clisp.org>
11894
11895         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
11896         <sysexits.h> file, and only add EX_CONFIG.
11897         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
11898         absolute file name and whether it is sufficient. Substitute also
11899         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
11900         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
11901         ABSOLUTE_SYSEXITS_H into sysexits.h.
11902
11903 2007-03-25  Bruno Haible  <bruno@clisp.org>
11904
11905         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
11906         hints is NULL.
11907
11908 2007-03-25  Bruno Haible  <bruno@clisp.org>
11909
11910         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
11911         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
11912
11913 2007-03-25  Bruno Haible  <bruno@clisp.org>
11914
11915         * lib/vasnprintf.c: Include langinfo.h.
11916         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
11917         multithread-safe.
11918         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
11919         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
11920         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
11921         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
11922         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
11923         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
11924         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
11925         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
11926         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
11927         Reported by Simon Josefsson.
11928
11929 2007-03-25  Bruno Haible  <bruno@clisp.org>
11930
11931         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
11932         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
11933         * modules/vasnprintf (Depends-on): Add stdint.
11934
11935 2007-03-25  Bruno Haible  <bruno@clisp.org>
11936
11937         * modules/fpieee: New file.
11938         * m4/fpieee.m4: New file.
11939         * modules/isnan-nolibm (Depends-on): Add fpieee.
11940         * modules/isnanl-nolibm (Depends-on): Add fpieee.
11941         * modules/isnanl (Depends-on): Add fpieee.
11942
11943 2007-03-25  Bruno Haible  <bruno@clisp.org>
11944
11945         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
11946
11947 2007-03-25  Bruno Haible  <bruno@clisp.org>
11948
11949         Avoid test failures on IRIX 6.5.
11950         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
11951         (main): Use it.
11952         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
11953         macros.
11954         (main): Use them.
11955
11956 2007-03-25  Bruno Haible  <bruno@clisp.org>
11957
11958         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
11959         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
11960         exists but doesn't work.
11961         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
11962         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
11963         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
11964         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
11965
11966 2007-03-25  Bruno Haible  <bruno@clisp.org>
11967
11968         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
11969         returns inf. Needed on IRIX 6.5.
11970
11971 2007-03-25  Bruno Haible  <bruno@clisp.org>
11972
11973         * tests/test-frexpl.c: Include isnanl-nolibm.h.
11974         (main): Use isnanl instead of x != x idiom.
11975         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
11976
11977         * tests/test-frexp.c: Include isnan.h.
11978         (main): Use isnan instead of x != x idiom.
11979         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
11980
11981 2007-03-25  Bruno Haible  <bruno@clisp.org>
11982
11983         * tests/test-frexp.c (NaN): New function/macro.
11984         (main): Use it instead of 0.0 / 0.0.
11985         * tests/test-isnan.c (NaN): New function/macro.
11986         (main): Use it instead of 0.0 / 0.0.
11987         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
11988         (test_function): Use it instead of 0.0 / 0.0.
11989         * tests/test-vasprintf-posix.c (NaN): New function/macro.
11990         (test_function): Use it instead of 0.0 / 0.0.
11991         * tests/test-snprintf-posix.h (NaN): New function/macro.
11992         (test_function): Use it instead of 0.0 / 0.0.
11993         * tests/test-sprintf-posix.h (NaN): New function/macro.
11994         (test_function): Use it instead of 0.0 / 0.0.
11995         * tests/test-fprintf-posix.h (NaN): New function/macro.
11996         (test_function): Use it instead of 0.0 / 0.0.
11997         * tests/test-printf-posix.h (NaN): New function/macro.
11998         (test_function): Use it instead of 0.0 / 0.0.
11999
12000         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
12001
12002 2007-03-25  Bruno Haible  <bruno@clisp.org>
12003
12004         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
12005
12006 2007-03-25  Bruno Haible  <bruno@clisp.org>
12007
12008         * lib/regexec.c (merge_state_with_log): Make static.
12009
12010 2007-03-25  Bruno Haible  <bruno@clisp.org>
12011
12012         * lib/trigl.c (kernel_rem_pio2): Make static.
12013
12014 2007-03-25  Bruno Haible  <bruno@clisp.org>
12015
12016         * lib/sincosl.c (sincosl_table): Make static.
12017
12018 2007-03-25  Bruno Haible  <bruno@clisp.org>
12019
12020         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
12021         if the compiler does not support C99.
12022
12023 2007-03-25  Bruno Haible  <bruno@clisp.org>
12024
12025         * modules/time (Makefile.am): Ensure all rule action lines start with a
12026         tab.
12027
12028 2007-03-24  Bruno Haible  <bruno@clisp.org>
12029
12030         * modules/tsearch-tests: New file.
12031         * tests/test-tsearch.sh: New file.
12032         * tests/test-tsearch.c: New file, mostly copied from glibc.
12033
12034         * modules/search-tests: New file.
12035         * tests/test-search.c: New file.
12036
12037         * modules/search: New file.
12038         * lib/search_.h: New file, incorporating lib/tsearch.h.
12039         * m4/search_h.m4: New file.
12040         * lib/tsearch.h: Remove file.
12041         * lib/tsearch.c: Include search.h instead of tsearch.h.
12042         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
12043         HAVE_TSEARCH.
12044         * modules/tsearch (Files): Remove lib/tsearch.h.
12045         (Depends-on): Add search.
12046         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
12047         (Include): Change tsearch.h into search.h.
12048
12049 2007-03-24  Bruno Haible  <bruno@clisp.org>
12050
12051         * modules/fpucw: New file.
12052         * lib/fpucw.h: New file.
12053         * lib/frexp.c: Include fpucw.h.
12054         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
12055         (FUNC): Use them.
12056         * lib/printf-frexp.c: Include fpucw.h.
12057         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
12058         (FUNC): Use them.
12059         * lib/vasnprintf.c: Include fpucw.h.
12060         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
12061         'long double' calculations.
12062         * tests/test-frexpl.c: Include fpucw.h.
12063         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
12064         * tests/test-printf-frexpl.c: Include fpucw.h.
12065         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
12066         * modules/frexpl (Depends-on): Add fpucw.
12067         * modules/printf-frexpl (Depends-on): Likewise.
12068         * modules/fprintf-posix (Depends-on): Likewise.
12069         * modules/snprintf-posix (Depends-on): Likewise.
12070         * modules/sprintf-posix (Depends-on): Likewise.
12071         * modules/vasnprintf-posix (Depends-on): Likewise.
12072         * modules/vasprintf-posix (Depends-on): Likewise.
12073         * modules/vfprintf-posix (Depends-on): Likewise.
12074         * modules/vsnprintf-posix (Depends-on): Likewise.
12075         * modules/vsprintf-posix (Depends-on): Likewise.
12076         * modules/frexpl-tests (Depends-on): Likewise.
12077         * modules/printf-frexpl-tests (Depends-on): Likewise.
12078
12079 2007-03-24  Bruno Haible  <bruno@clisp.org>
12080
12081         * lib/float+.h: New file.
12082         * lib/isnan.c: Include float+.h.
12083         (SIZE): New macro.
12084         (FUNC): Compare only SIZE bytes of the value.
12085         * lib/vasnprintf.c: Include float+.h.
12086         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
12087         SIZEOF_LDBL or SIZEOF_DBL bytes.
12088         * modules/isnan-nolibm (Files): Add lib/float+.h.
12089         * modules/isnanl-nolibm (Files): Add lib/float+.h.
12090         * modules/isnanl (Files): Add lib/float+.h.
12091         * modules/vasnprintf (Files): Add lib/float+.h.
12092
12093 2007-03-24  Bruno Haible  <bruno@clisp.org>
12094
12095         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
12096         include isnanl-nolibm.h.
12097
12098 2007-03-24  Bruno Haible  <bruno@clisp.org>
12099
12100         * tests/test-read-file.c (main): Don't produce spurious output for
12101         expected situations. Make the test fail if it encountered unexpected
12102         results.
12103
12104 2007-03-24  Bruno Haible  <bruno@clisp.org>
12105
12106         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
12107         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
12108
12109 2007-03-24  Bruno Haible  <bruno@clisp.org>
12110
12111         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
12112
12113 2007-03-24  Bruno Haible  <bruno@clisp.org>
12114
12115         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
12116         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
12117
12118         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
12119         * modules/utf8-ucs4: Turn into a symbolic link to module
12120         unistr/u8-mbtouc.
12121
12122         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
12123         utf8-ucs4-unsafe.
12124         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
12125         unistr/u8-mbtouc-unsafe.
12126
12127         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
12128         * modules/utf16-ucs4: Turn into a symbolic link to module
12129         unistr/u16-mbtouc.
12130
12131         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
12132         utf16-ucs4-unsafe.
12133         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
12134         unistr/u16-mbtouc-unsafe.
12135
12136         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
12137         * modules/ucs4-utf8: Turn into a symbolic link to module
12138         unistr/u8-ubtomb.
12139
12140         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
12141         * modules/ucs4-utf16: Turn into a symbolic link to module
12142         unistr/u16-ubtomb.
12143
12144 2007-03-24  Bruno Haible  <bruno@clisp.org>
12145
12146         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
12147         Enable the function only if HAVE_INLINE.
12148         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
12149         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
12150         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
12151         Enable the function only if HAVE_INLINE.
12152         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
12153         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
12154         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
12155         Enable the function only if HAVE_INLINE.
12156         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
12157         Enable the function only if HAVE_INLINE.
12158         * modules/utf8-ucs4: Update.
12159         * modules/utf8-ucs4-unsafe: Update.
12160         * modules/utf16-ucs4: Update.
12161         * modules/utf16-ucs4-unsafe: Update.
12162         * modules/ucs4-utf8: Update.
12163         * modules/ucs4-utf16: Update.
12164
12165 2007-03-24  Bruno Haible  <bruno@clisp.org>
12166
12167         * lib/utf8-ucs4.h: Remove file.
12168         * lib/utf8-ucs4-unsafe.h: Remove file.
12169         * lib/utf16-ucs4.h: Remove file.
12170         * lib/utf16-ucs4-unsafe.h: Remove file.
12171         * lib/ucs4-utf8.h: Remove file.
12172         * lib/ucs4-utf16.h: Remove file.
12173         * lib/unistr.h: Include their previous contents.
12174         * m4/utf-ucs4.m4: Remove file.
12175         * m4/ucs4-utf.m4: Remove file.
12176         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
12177         (Depends-on): Add unistr/base.
12178         (configure.ac): Remove gl_UTF_UCS4.
12179         (Makefile.am): Update.
12180         (Include): Change to unistr.h.
12181         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
12182         (Depends-on): Add unistr/base.
12183         (configure.ac): Remove gl_UTF_UCS4.
12184         (Makefile.am): Update.
12185         (Include): Change to unistr.h.
12186         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
12187         (Depends-on): Add unistr/base.
12188         (configure.ac): Remove gl_UTF_UCS4.
12189         (Makefile.am): Update.
12190         (Include): Change to unistr.h.
12191         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
12192         (Depends-on): Add unistr/base.
12193         (configure.ac): Remove gl_UTF_UCS4.
12194         (Makefile.am): Update.
12195         (Include): Change to unistr.h.
12196         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
12197         (Depends-on): Add unistr/base.
12198         (configure.ac): Remove gl_UCS4_UTF.
12199         (Makefile.am): Update.
12200         (Include): Change to unistr.h.
12201         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
12202         (Depends-on): Add unistr/base.
12203         (configure.ac): Remove gl_UCS4_UTF.
12204         (Makefile.am): Update.
12205         (Include): Change to unistr.h.
12206         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
12207         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
12208         utf8-ucs4-unsafe.h.
12209         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
12210         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
12211         utf16-ucs4-unsafe.h.
12212         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
12213         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
12214         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
12215         * lib/unistr/u8-strchr.c: Likewise.
12216         * lib/unistr/u8-strrchr.c: Likewise.
12217         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
12218         * lib/unistr/u16-strchr.c: Likewise.
12219         * lib/unistr/u16-strrchr.c: Likewise.
12220         * lib/striconveh.c: Update.
12221         * lib/linebreak.c: Update.
12222
12223 2007-03-24  Bruno Haible  <bruno@clisp.org>
12224
12225         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
12226         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
12227
12228 2007-03-22  Bruno Haible  <bruno@clisp.org>
12229
12230         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
12231
12232 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
12233
12234         * MODULES.html.sh (File system functions): New module write-any-file.
12235         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
12236         * m4/write-any-file.m4: New files.
12237
12238 2007-03-23  Eric Blake  <ebb9@byu.net>
12239
12240         * gnulib-tool: Rearrange space-tab sequences, since some editors
12241         like to eat them.
12242
12243 2007-03-23  Eric Blake  <ebb9@byu.net>
12244
12245         * lib/version-etc.c (version_etc_va): Update license wording to
12246         be more concise.  Recommended by Richard Stallman.
12247
12248 2007-03-22  Bruno Haible  <bruno@clisp.org>
12249
12250         * lib/poll.c (MSG_PEEK): New fallback definition.
12251
12252 2007-03-22  Bruno Haible  <bruno@clisp.org>
12253
12254         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
12255         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
12256         (main): Update.
12257         Fixes a compilation error on BeOS.
12258
12259 2007-03-22  Bruno Haible  <bruno@clisp.org>
12260
12261         * modules/frexpl-tests: New file.
12262         * tests/test-frexpl.c: New file.
12263
12264         * modules/frexpl: New file.
12265         * m4/frexpl.m4: New file.
12266         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
12267         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
12268         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
12269         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
12270         (Depends-on): Add frexpl. Remove isnanl-nolibm.
12271         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
12272
12273 2007-03-22  Bruno Haible  <bruno@clisp.org>
12274
12275         * lib/frexpl.c: Share code with lib/frexp.c.
12276         * modules/mathl (Files): Add lib/frexp.c.
12277         (Depends-on): Add isnanl-nolibm.
12278
12279 2007-03-22  Bruno Haible  <bruno@clisp.org>
12280
12281         * modules/printf-frexp (Files): Add m4/frexp.m4.
12282         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
12283         only if the found frexp function actually works.
12284
12285 2007-03-22  Bruno Haible  <bruno@clisp.org>
12286
12287         * lib/frexp.c: Remove older implementation that uses divisions.
12288
12289 2007-03-21  Bruno Haible  <bruno@clisp.org>
12290
12291         * modules/frexp-tests: New file.
12292         * tests/test-frexp.c: New file.
12293
12294         * modules/frexp: New file.
12295         * lib/frexp.c: New file.
12296         * m4/frexp.m4: New file.
12297         * lib/math_.h (frexp): New declaration.
12298         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
12299         REPLACE_FREXP.
12300         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
12301
12302 2007-03-21  Bruno Haible  <bruno@clisp.org>
12303
12304         * modules/isnanl-tests: New file.
12305         * tests/test-isnanl.c: New file.
12306
12307         * modules/isnanl: New file.
12308         * lib/isnanl.h: New file.
12309         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
12310         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
12311         gl_FUNC_ISNANL_WORKS.
12312         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
12313         New macros.
12314
12315 2007-03-21  Bruno Haible  <bruno@clisp.org>
12316
12317         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
12318         lib/isnanl.h.
12319         (Include): Update.
12320         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
12321         * lib/vasnprintf.c: Update.
12322         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
12323         tests/test-isnanl.h, remove tests/test-isnanl.c.
12324         (Makefile.am): Update.
12325         * tests/test-isnanl-nolibm.c: New file.
12326         * tests/test-isnanl.h: New file.
12327         * tests/test-isnanl.c: Remove file.
12328
12329 2007-03-21  Jim Meyering  <jim@meyering.net>
12330
12331         When trying to open ".", treat ESTALE like EACCES.
12332         * lib/savewd.c (savewd_save): Resort to forking not just upon
12333         failure with EACCES, but also when errno is ESTALE.
12334
12335 2007-03-20  Bruno Haible  <bruno@clisp.org>
12336
12337         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
12338         Needed on AIX 5.1. Reported by Matthew Woehlke.
12339
12340 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12341
12342         Suggestions by Bruno Haible:
12343         * lib/acl-internal.h: Include "gettext.h" rather than rolling
12344         our own.
12345         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
12346         * modules/acl (Depends-on): Add gettext.
12347
12348 2007-03-19  Bruno Haible  <bruno@clisp.org>
12349
12350         * modules/iconvme: Remove file.
12351         * lib/iconvme.h: Remove file.
12352         * lib/iconvme.c: Remove file.
12353         * m4/iconvme.m4: Remove file.
12354
12355 2007-03-19  Bruno Haible  <bruno@clisp.org>
12356
12357         * doc/relocatable-maint.texi: Break long shell script line.
12358         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
12359
12360 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12361
12362         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
12363         handle file_has_acl.
12364         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
12365         * lib/acl.c: Move header inclusions and related macro defns into
12366         lib/acl-internal.h.
12367         (S_ISLNK): Remove defn, since that's now done for us.
12368         (file_has_acl): Move to lib/file-has-acl.c.
12369         Call acl_trivial if available.  This is the crucial part of the fix.
12370         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
12371         shared within the library.  Rewrite a bit, partly to make it compatible
12372         with the GNU coding style.
12373         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
12374         Remove unnecessary double-quotes.
12375         Don't test for acl_to_text; the build will catch that.
12376         Replace acl_entries if it doesn't exist and it is needed.
12377         Check for -lsec and acl_trivial (as used on Solaris 10).
12378         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
12379         lib/file-has-acl.c.
12380         (Depends-on): Add sys_stat, for S_ISLNK.
12381
12382 2007-03-19  Ben Pfaff  <blp@gnu.org>
12383
12384         * doc/gnulib.texi: Fix typos.
12385         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
12386
12387 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12388
12389         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
12390         If size is zero here, buf must be zero.
12391
12392 2007-03-19  Simon Josefsson  <simon@josefsson.org>
12393
12394         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
12395         <bruno@clisp.org>.
12396
12397 2007-03-18  Bruno Haible  <bruno@clisp.org>
12398
12399         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
12400         Suggested by Eric Blake.
12401
12402 2007-03-18  Ben Pfaff  <blp@gnu.org>
12403
12404         * doc/relocatable.texi: Recommend using as prefix a directory
12405         that does not exist and will never be created.  Based on
12406         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
12407         and others.
12408
12409 2007-03-17  Bruno Haible  <bruno@clisp.org>
12410
12411         * lib/fchownat.c: Include lchown.h.
12412
12413 2007-03-17  Bruno Haible  <bruno@clisp.org>
12414
12415         Fix endless loop when the given allocated size was > INT_MAX.
12416         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
12417         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
12418         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
12419         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
12420         * lib/sprintf.c (sprintf): Likewise.
12421
12422 2007-03-17  Bruno Haible  <bruno@clisp.org>
12423
12424         * tests/test-argp-2.sh (func_compare): Output a context diff.
12425
12426 2007-03-17  Bruno Haible  <bruno@clisp.org>
12427
12428         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
12429         locale's decimal-point character.
12430
12431 2007-03-17  Bruno Haible  <bruno@clisp.org>
12432
12433         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
12434         before comparing it. Needed because on some platforms (e.g. x86) a
12435         'long double' occupies less bytes than sizeof (long double).
12436
12437 2007-03-17  Bruno Haible  <bruno@clisp.org>
12438
12439         * tests/test-crc.c (main): Make printf statements 64-bit clean.
12440         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
12441         * tests/test-getaddrinfo.c (simple): Likewise.
12442         * tests/test-read-file.c (main): Likewise.
12443
12444 2007-03-17  Bruno Haible  <bruno@clisp.org>
12445
12446         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
12447
12448 2007-03-17  Bruno Haible  <bruno@clisp.org>
12449
12450         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
12451         unused variable.
12452
12453 2007-03-17  Bruno Haible  <bruno@clisp.org>
12454
12455         * tests/test-c-strcasecmp.c: Include c-strcase.h.
12456         * tests/test-c-strncasecmp.c: Likewise.
12457
12458 2007-03-17  Bruno Haible  <bruno@clisp.org>
12459
12460         * modules/stdlib (Depends-on): Add unistd.
12461         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
12462         Needed for MacOS X 10.3.
12463
12464 2007-03-17  Bruno Haible  <bruno@clisp.org>
12465
12466         * lib/unistr/u-strdup.h: Include <stdlib.h>.
12467
12468 2007-03-17  Bruno Haible  <bruno@clisp.org>
12469
12470         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
12471
12472 2007-03-17  Bruno Haible  <bruno@clisp.org>
12473
12474         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
12475         to reflect files copied from gnulib (with or without modifications).
12476         Suggested by Jim Meyering.
12477
12478 2007-03-17  Eric Blake  <ebb9@byu.net>
12479
12480         * NEWS: Document stdlib change from 2007-02-18.
12481
12482 2007-03-17  Jim Meyering  <jim@meyering.net>
12483
12484         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
12485         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
12486         someone uses a name containing shell meta-characters.
12487         Reported by Alfred M. Szmidt.
12488
12489         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
12490
12491 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
12492
12493         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
12494         and copy gettext configuration files only if configure.ac contains
12495         a use of AM_GNU_GETTEXT_VERSION.
12496
12497 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
12498
12499         * build-aux/bootstrap (gnulib_name): New variable.
12500         (gnulib_tool_options): Use it.
12501
12502 2007-03-13  Simon Josefsson  <simon@josefsson.org>
12503
12504         * tests/test-des.c: Use new namespace.
12505
12506 2007-03-15  Bruno Haible  <bruno@clisp.org>
12507
12508         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
12509         Reported by James Youngman <jay@gnu.org>.
12510
12511 2007-03-15  Bruno Haible  <bruno@clisp.org>
12512
12513         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
12514         declared prototype. Needed with cc on OSF/1 5.1.
12515
12516 2007-03-15  Bruno Haible  <bruno@clisp.org>
12517
12518         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
12519         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
12520         (struct gl_list_implementation): Add dispose_fn argument to the
12521         'create_empty', 'create' methods.
12522         (struct gl_list_impl_base): Add field 'dispose_fn'.
12523         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
12524         argument.
12525         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
12526         dispose_fn argument.
12527         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
12528         dispose_fn on the dropped values.
12529         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
12530         dispose_fn argument.
12531         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
12532         dropped values.
12533         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
12534         (gl_tree_remove_node): Call dispose_fn on the dropped value.
12535         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
12536         (gl_tree_remove_node): Call dispose_fn on the dropped value.
12537         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
12538         argument.
12539         (gl_tree_list_free): Call dispose_fn on the dropped values.
12540         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
12541         the dropped values.
12542         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
12543         Add dispose_fn argument.
12544         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
12545         Call dispose_fn on the dropped values.
12546         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
12547         Add dispose_fn argument.
12548         (gl_sublist_create): Initialize the 'dispose_fn' field.
12549         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
12550         * tests/test-array_list.c (main): Update.
12551         * tests/test-carray_list.c (main): Update.
12552         * tests/test-avltree_list.c (main): Update.
12553         * tests/test-rbtree_list.c (main): Update.
12554         * tests/test-avltreehash_list.c (main): Update.
12555         * tests/test-rbtreehash_list.c (main): Update.
12556         * tests/test-linked_list.c (main): Update.
12557         * tests/test-linkedhash_list.c (main): Update.
12558         * tests/test-array_oset.c (main): Update.
12559
12560 2007-03-15  Bruno Haible  <bruno@clisp.org>
12561
12562         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
12563         (gl_oset_create_empty): Add dispose_fn argument.
12564         (struct gl_oset_implementation): Add dispose_fn argument to
12565         'create_empty' method.
12566         (struct gl_oset_impl_base): Add dispose_fn field.
12567         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
12568         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
12569         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
12570         values.
12571         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
12572         (gl_tree_oset_free): Call dispose_fn on the dropped values.
12573         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
12574         dropped value.
12575         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
12576         dropped value.
12577         * tests/test-array_oset.c (main): Update.
12578         * tests/test-avltree_oset.c (main): Update.
12579         * tests/test-rbtree_oset.c (main): Update.
12580         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
12581
12582 2007-03-13  Bruno Haible  <bruno@clisp.org>
12583
12584         * tests/test-stdbool.c (i): Update after last patch.
12585
12586 2007-03-12  Bruno Haible  <bruno@clisp.org>
12587
12588         * lib/quotearg.c: Include <wctype.h> early, before the definition of
12589         the iswprint macro. Needed on Solaris 2.5.1.
12590
12591 2007-03-12  Bruno Haible  <bruno@clisp.org>
12592
12593         * tests/test-printf-frexp.c (main): Declare x as volatile.
12594
12595 2007-03-12  Simon Josefsson  <simon@josefsson.org>
12596
12597         * doc/gnulib.texi (Build robot for gnulib): New section.
12598
12599 2007-03-12  Jim Meyering  <jim@meyering.net>
12600
12601         * build-aux/bootstrap: New file.
12602         * build-aux/bootstrap.conf: New file, from coreutils.
12603
12604 2007-03-11  Bruno Haible  <bruno@clisp.org>
12605
12606         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
12607
12608 2007-03-12  Simon Josefsson  <simon@josefsson.org>
12609
12610         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
12611         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
12612         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
12613
12614 2007-03-11  Bruno Haible  <bruno@clisp.org>
12615
12616         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
12617         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
12618
12619 2007-03-11  Bruno Haible  <bruno@clisp.org>
12620
12621         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
12622         formula. Needed for SunPRO C 5.0.
12623
12624 2007-03-11  Bruno Haible  <bruno@clisp.org>
12625
12626         * modules/long-options (Depends-on): Add getopt.
12627
12628 2007-03-11  Bruno Haible  <bruno@clisp.org>
12629
12630         * modules/modechange (Depends-on): Add stdbool.
12631
12632 2007-03-11  Bruno Haible  <bruno@clisp.org>
12633
12634         * modules/i-ring (Depends-on): Add stdbool.
12635
12636 2007-03-11  Bruno Haible  <bruno@clisp.org>
12637
12638         * modules/gc-des (Depends-on): Add stdbool.
12639
12640 2007-03-11  Bruno Haible  <bruno@clisp.org>
12641
12642         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
12643
12644 2007-03-11  Bruno Haible  <bruno@clisp.org>
12645
12646         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
12647
12648 2007-03-11  Bruno Haible  <bruno@clisp.org>
12649
12650         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
12651
12652 2007-03-11  Bruno Haible  <bruno@clisp.org>
12653
12654         * lib/vasnprintf.c (sprintf): Undefine.
12655
12656 2007-03-11  Bruno Haible  <bruno@clisp.org>
12657
12658         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
12659         initializers in SunPRO C and Compaq C compilers.
12660
12661 2007-03-11  Bruno Haible  <bruno@clisp.org>
12662
12663         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
12664         decrementing code ANSI C compliant.
12665
12666 2007-03-11  Bruno Haible  <bruno@clisp.org>
12667
12668         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
12669         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
12670
12671 2007-03-11  Bruno Haible  <bruno@clisp.org>
12672
12673         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
12674         <stdbool.h> substitute doesn't pass.
12675
12676 2007-03-11  Bruno Haible  <bruno@clisp.org>
12677
12678         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
12679
12680 2007-03-11  Bruno Haible  <bruno@clisp.org>
12681
12682         * gnulib-tool (func_create_megatestdir): Create also an autobuild
12683         script, for submission to autobuild.josefsson.org.
12684
12685 2007-03-10  Bruno Haible  <bruno@clisp.org>
12686
12687         * modules/canonicalize-lgpl-tests: New file.
12688         * tests/test-canonicalize-lgpl.sh: New file.
12689         * tests/test-canonicalize-lgpl.c: New file.
12690
12691         * modules/c-strcase-tests: New file.
12692         * tests/test-c-strcase.sh: New file.
12693         * tests/test-c-strcasecmp.c: New file.
12694         * tests/test-c-strncasecmp.c: New file.
12695
12696         * modules/atexit-tests: New file.
12697         * tests/test-atexit.sh: New file.
12698         * tests/test-atexit.c: New file.
12699
12700 2007-03-10  Bruno Haible  <bruno@clisp.org>
12701
12702         * tests/test-binary-io.sh: Use temporary filenames that are not so
12703         likely to clash with those of other tests (in a parallel make).
12704         * tests/test-binary-io.c: Likewise.
12705
12706 2007-03-10  Bruno Haible  <bruno@clisp.org>
12707
12708         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
12709         fallback; use #error instead.
12710         Suggested by Simon Josefsson.
12711
12712 2007-03-10  Bruno Haible  <bruno@clisp.org>
12713
12714         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
12715         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
12716         first and the last.
12717
12718 2007-03-10  Bruno Haible  <bruno@clisp.org>
12719
12720         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
12721
12722 2007-03-10  Bruno Haible  <bruno@clisp.org>
12723
12724         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
12725         "make distcheck".
12726         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
12727         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
12728         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
12729
12730 2007-03-10  Bruno Haible  <bruno@clisp.org>
12731
12732         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
12733         variable.
12734         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
12735         variable.
12736
12737 2007-03-09  Eric Blake  <ebb9@byu.net>
12738         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
12739
12740         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
12741         types are not being provided by gnulib.
12742         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
12743         types are supported.
12744
12745 2007-03-10  Bruno Haible  <bruno@clisp.org>
12746
12747         * lib/stdio_.h (__attribute__): New macro.
12748         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
12749         vsprintf): Specify __attribute__ __format__ for GCC.
12750         Suggested by Eric Blake.
12751
12752 2007-03-09  Bruno Haible  <bruno@clisp.org>
12753
12754         * modules/printf-posix-tests: New file.
12755         * tests/test-printf-posix.sh: New file.
12756         * tests/test-printf-posix.c: New file.
12757
12758         * modules/printf-posix: New file.
12759         * lib/printf.c: New file.
12760         * m4/printf-posix-rpl.m4: New file.
12761         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
12762         REPLACE_PRINTF.
12763         * lib/stdio_.h (printf): New declaration.
12764         (format, __format__, ____printf____, ____scanf____, ____strftime____,
12765         ____strfmon____): New macros.
12766         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
12767         REPLACE_PRINTF.
12768
12769 2007-03-09  Bruno Haible  <bruno@clisp.org>
12770
12771         * tests/test-vasnprintf-posix2.sh: New file.
12772         * tests/test-vasnprintf-posix2.c: New file.
12773         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
12774         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
12775         (Makefile.am): Activate test-vasnprintf-posix2.sh.
12776
12777         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
12778         a locale dependent decimal point, rather than always '.'.
12779
12780 2007-03-09  Eric Blake  <ebb9@byu.net>
12781
12782         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
12783         spite of platforms like Tandem/NSK that define it to -1.
12784
12785 2007-03-08  Bruno Haible  <bruno@clisp.org>
12786
12787         * modules/vprintf-posix-tests: New file.
12788         * tests/test-vprintf-posix.sh: New file.
12789         * tests/test-vprintf-posix.c: New file.
12790         * tests/test-printf-posix.h: New file.
12791
12792         * modules/vprintf-posix: New file.
12793         * lib/vprintf.c: New file.
12794         * m4/vprintf-posix.m4: New file.
12795         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
12796         REPLACE_VPRINTF.
12797         * lib/stdio_.h (vprintf): New declaration.
12798         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
12799         REPLACE_VPRINTF.
12800
12801 2007-03-08  Bruno Haible  <bruno@clisp.org>
12802
12803         * modules/fprintf-posix-tests: New file.
12804         * tests/test-fprintf-posix.sh: New file.
12805         * tests/test-fprintf-posix.c: New file.
12806
12807         * modules/fprintf-posix: New file.
12808         * lib/fprintf.c: New file.
12809         * m4/fprintf-posix.m4: New file.
12810         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
12811         REPLACE_FPRINTF.
12812         * lib/stdio_.h (fprintf): New declaration.
12813         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
12814         REPLACE_FPRINTF.
12815
12816 2007-03-08  Bruno Haible  <bruno@clisp.org>
12817
12818         * modules/vfprintf-posix-tests: New file.
12819         * tests/test-vfprintf-posix.sh: New file.
12820         * tests/test-vfprintf-posix.c: New file.
12821         * tests/test-fprintf-posix.h: New file.
12822         * tests/test-fprintf-posix.out: New file.
12823
12824         * modules/vfprintf-posix: New file.
12825         * lib/vfprintf.c: New file.
12826         * m4/vfprintf-posix.m4: New file.
12827         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
12828         REPLACE_VFPRINTF.
12829         * lib/stdio_.h (vfprintf): New declaration.
12830         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
12831         REPLACE_VFPRINTF.
12832
12833 2007-03-08  Bruno Haible  <bruno@clisp.org>
12834
12835         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
12836
12837 2007-03-08  Bruno Haible  <bruno@clisp.org>
12838
12839         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
12840         instead of 'expr' invocations.
12841         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12842         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12843         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12844         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12845         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12846         Suggested by Paul Eggert.
12847
12848 2007-03-08  Bruno Haible  <bruno@clisp.org>
12849
12850         * modules/fseterr-tests: New file.
12851         * tests/test-fseterr.c: New file.
12852
12853         * modules/fseterr: New file.
12854         * lib/fseterr.h: New file.
12855         * lib/fseterr.c: New file.
12856
12857 2007-03-08  Bruno Haible  <bruno@clisp.org>
12858
12859         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
12860         * lib/getopt_.h: Likewise.
12861         * lib/mbswidth.h: Likewise.
12862         * lib/setenv.h: Likewise.
12863         * lib/vasnprintf.h: Likewise.
12864         * lib/vasprintf.h: Likewise.
12865         * lib/verror.h: Likewise.
12866         * lib/xsetenv.h: Likewise.
12867         * lib/xvasprintf.h: Likewise.
12868
12869 2007-03-08  Jim Meyering  <jim@meyering.net>
12870
12871         * users.txt: Add parted.
12872
12873         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
12874
12875 2007-03-07  Bruno Haible  <bruno@clisp.org>
12876
12877         * m4/printf.m4: Make the shell script snippets copy&pastable.
12878
12879 2007-03-02  Bruno Haible  <bruno@clisp.org>
12880
12881         * lib/netinet_in_.h: New file.
12882         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
12883         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
12884         * modules/netinet_in (Files): Add lib/netinet_in_.h.
12885         (Depends-on): Add absolute-header.
12886         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
12887         into netinet/in.h.
12888
12889 2007-03-03  Bruno Haible  <bruno@clisp.org>
12890
12891         * lib/sys_select_.h: New file.
12892         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
12893         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
12894         * modules/sys_select (Files): Add lib/sys_select_.h.
12895         (Depends-on): Add absolute-header.
12896         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
12897         into sys/select.h.
12898
12899 2007-03-02  Bruno Haible  <bruno@clisp.org>
12900
12901         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
12902         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
12903         values.
12904         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
12905         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
12906         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
12907         * modules/sys_socket (Depends-on): Add absolute-header.
12908         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
12909         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
12910         (Include): Remove requirement of inclusion of <sys/types.h>.
12911
12912 2007-03-02  Bruno Haible  <bruno@clisp.org>
12913
12914         * lib/byteswap_.h (bswap_32): Fix formula.
12915
12916 2007-03-06  Bruno Haible  <bruno@clisp.org>
12917
12918         * modules/sprintf-posix-tests: New file.
12919         * tests/test-sprintf-posix.c: New file.
12920
12921         * modules/sprintf-posix: New file.
12922         * lib/sprintf.c: New file.
12923         * m4/sprintf-posix.m4: New file.
12924         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
12925         REPLACE_SPRINTF.
12926         * lib/stdio_.h (sprintf): New declaration.
12927         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
12928         REPLACE_SPRINTF.
12929
12930 2007-03-06  Bruno Haible  <bruno@clisp.org>
12931
12932         * modules/vsprintf-posix-tests: New file.
12933         * tests/test-vsprintf-posix.c: New file.
12934         * tests/test-sprintf-posix.h: New file.
12935
12936         * modules/vsprintf-posix: New file.
12937         * lib/vsprintf.c: New file.
12938         * m4/vsprintf-posix.m4: New file.
12939         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
12940         REPLACE_VSPRINTF.
12941         * lib/stdio_.h (vsprintf): New declaration.
12942         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
12943         REPLACE_VSPRINTF.
12944
12945 2007-03-06  Bruno Haible  <bruno@clisp.org>
12946
12947         * modules/vsnprintf (Depend-on): Remove minmax.
12948
12949 2007-03-06  Bruno Haible  <bruno@clisp.org>
12950
12951         * modules/snprintf-posix-tests: New file.
12952         * tests/test-snprintf-posix.c: New file.
12953
12954         * modules/snprintf-posix: New file.
12955         * m4/snprintf-posix.m4: New file.
12956         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
12957         gl_FUNC_SNPRINTF.
12958         (gl_FUNC_SNPRINTF): Invoke it.
12959         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
12960         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
12961         is set.
12962         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
12963
12964 2007-03-06  Bruno Haible  <bruno@clisp.org>
12965
12966         * modules/vsnprintf-posix-tests: New file.
12967         * tests/test-vsnprintf-posix.c: New file.
12968         * tests/test-snprintf-posix.h: New file.
12969
12970         * modules/vsnprintf-posix: New file.
12971         * m4/vsnprintf-posix.m4: New file.
12972         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
12973         gl_FUNC_VSNPRINTF.
12974         (gl_FUNC_VSNPRINTF): Invoke it.
12975         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
12976         * lib/stdio_.h (vsnprintf): Define as a replacement if
12977         REPLACE_VSNPRINTF is set.
12978         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
12979
12980 2007-03-06  Bruno Haible  <bruno@clisp.org>
12981
12982         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
12983         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
12984
12985 2007-03-06  Bruno Haible  <bruno@clisp.org>
12986
12987         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
12988         (asinl): Declare also if HAVE_DECL_ASINL is set.
12989         (atanl): Declare also if HAVE_DECL_ATANL is set.
12990         (ceill): Declare also if HAVE_DECL_CEILL is set.
12991         (cosl): Declare also if HAVE_DECL_COSL is set.
12992         (expl): Declare also if HAVE_DECL_EXPL is set.
12993         (floorl): Declare also if HAVE_DECL_FLOORL is set.
12994         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
12995         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
12996         (logl): Declare also if HAVE_DECL_LOGL is set.
12997         (sinl): Declare also if HAVE_DECL_SINL is set.
12998         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
12999         (tanl): Declare also if HAVE_DECL_TANL is set.
13000         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
13001         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
13002         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
13003         declaration of frexpl, ldexpl.
13004         * modules/printf-frexpl (Depends-on): Add math.
13005         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
13006
13007 2007-03-05  Bruno Haible  <bruno@clisp.org>
13008
13009         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
13010         frexpl and ldexpl are declared.
13011         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
13012
13013 2007-03-05  Bruno Haible  <bruno@clisp.org>
13014
13015         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
13016         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
13017
13018 2007-03-05  Bruno Haible  <bruno@clisp.org>
13019
13020         * lib/stdio_.h: Include <stddef.h>.
13021
13022 2007-03-05  Bruno Haible  <bruno@clisp.org>
13023
13024         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
13025
13026 2007-03-05  Bruno Haible  <bruno@clisp.org>
13027
13028         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
13029         NetBSD 4, from Ralf Wildenhues.
13030
13031 2007-03-04  Bruno Haible  <bruno@clisp.org>
13032
13033         * lib/vasprintf.h: Update #if logic for the case when the functions
13034         exist but are overridden.
13035
13036 2007-03-04  Bruno Haible  <bruno@clisp.org>
13037
13038         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
13039         implementations: glibc-2.4 and MacOS X 10.3.
13040         * tests/test-vasnprintf-posix.c (test_function): Test also the case
13041         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
13042         * tests/test-vasprintf-posix.c (test_function): Likewise.
13043
13044 2007-03-04  Bruno Haible  <bruno@clisp.org>
13045
13046         * modules/vasprintf-posix-tests: New file.
13047         * tests/test-vasprintf-posix.c: New file.
13048
13049         * modules/vasprintf-posix: New file.
13050         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
13051         defined.
13052         * m4/vasprintf-posix.m4: New file.
13053         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
13054         gl_FUNC_VASPRINTF.
13055         (gl_FUNC_VASPRINTF): Invoke it.
13056         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
13057         here.
13058         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
13059
13060 2007-03-04  Bruno Haible  <bruno@clisp.org>
13061
13062         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
13063         REPLACE_GETTIMEOFDAY.
13064         * modules/sys_time (Makefile.am): Likewise.
13065         * m4/sys_time_h.m4: Likewise.
13066         * m4/gettimeofday.m4: Likewise.
13067
13068 2007-03-04  Bruno Haible  <bruno@clisp.org>
13069
13070         * modules/vasnprintf-posix-tests: New file.
13071         * tests/test-vasnprintf-posix.c: New file.
13072
13073         * modules/vasnprintf-posix: New file.
13074         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
13075         printf-frexpl.h.
13076         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
13077         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
13078         REPLACE_VASNPRINTF is defined.
13079         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
13080         gl_FUNC_VASNPRINTF.
13081         (gl_FUNC_VASNPRINTF): Invoke it.
13082         * m4/vasnprintf-posix.m4: New file.
13083         * m4/printf.m4: New file.
13084
13085 2007-03-04  Bruno Haible  <bruno@clisp.org>
13086
13087         Compile progreloc.c only if --enable-relocatable is specified.
13088         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
13089         if --enable-relocatable was specified.
13090         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
13091         lib_SOURCES.
13092
13093 2007-03-04  Jim Meyering  <jim@meyering.net>
13094
13095         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
13096         Use it consistently, rather than enumerating errno constants.
13097
13098 2007-03-04  Bruno Haible  <bruno@clisp.org>
13099
13100         * modules/xvasprintf-tests: New file.
13101         * tests/test-xvasprintf.c: New file.
13102
13103         * modules/vasprintf-tests: New file.
13104         * tests/test-vasprintf.c: New file.
13105
13106         * modules/vasnprintf-tests: New file.
13107         * tests/test-vasnprintf.c: New file.
13108
13109         * modules/vsnprintf-tests: New file.
13110         * tests/test-vsnprintf.c: New file.
13111
13112         * modules/snprintf-tests: New file.
13113         * tests/test-snprintf.c: New file.
13114
13115 2007-03-04  Bruno Haible  <bruno@clisp.org>
13116
13117         Compile relocatable.c only if --enable-relocatable is specified.
13118         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
13119         gl_RELOCATABLE_LIBRARY.
13120         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
13121         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
13122         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
13123         gl_RELOCATABLE_LIBRARY.
13124         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
13125         (Makefile.am): Remove lib_SOURCES.
13126         * modules/relocatable-lib-lgpl (configure.ac): Invoke
13127         gl_RELOCATABLE_LIBRARY.
13128         (Makefile.am): Remove lib_SOURCES.
13129         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
13130         always.
13131         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13132         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
13133
13134 2007-03-04  Bruno Haible  <bruno@clisp.org>
13135
13136         * modules/argmatch-tests: New file.
13137         * tests/test-argmatch.c: New file.
13138
13139         * tests/test-allocsa.c (main): Halve the number of loop runs.
13140
13141         * modules/alloca-opt-tests: New file.
13142         * tests/test-alloca-opt.c: New file.
13143
13144 2007-03-04  Jim Meyering  <jim@meyering.net>
13145
13146         Work around difference between Linux ACLs and Solaris 10 ZFS.
13147         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
13148         for EINVAL.
13149
13150 2007-03-03  Bruno Haible  <bruno@clisp.org>
13151
13152         * modules/relocatable-prog (Depends-on): Add back progreloc's
13153         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
13154
13155 2007-03-03  Bruno Haible  <bruno@clisp.org>
13156
13157         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
13158         * modules/relocatable-lib: New file.
13159
13160 2007-03-03  Bruno Haible  <bruno@clisp.org>
13161
13162         * modules/relocatable-prog: Renamed from modules/relocatable.
13163         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
13164
13165 2007-03-03  Bruno Haible  <bruno@clisp.org>
13166
13167         * modules/relocatable-script (Files): Add doc/relocatable.texi,
13168         m4/relocatable-lib.m4.
13169         (Depends-on): Remove 'relocatable'.
13170         (configure.ac): Add gl_RELOCATABLE_NOP.
13171
13172 2007-03-03  Bruno Haible  <bruno@clisp.org>
13173
13174         * modules/relocatable-prog-wrapper: New file.
13175         * modules/relocatable (Depends-on): Add it. Remove all other
13176         dependencies except progname.
13177         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
13178
13179         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
13180         (gl_FUNC_STRERROR): Nop.
13181         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
13182
13183         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
13184         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
13185
13186         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
13187         (gl_FUNC_READLINK): Update.
13188
13189         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
13190
13191 2007-03-03  Bruno Haible  <bruno@clisp.org>
13192
13193         * lib/xreadlink.c: Include <unistd.h> unconditionally.
13194         * modules/xreadlink (Depends-on): Add unistd.
13195         * modules/xreadlink-with-size (Depends-on): Likewise.
13196
13197 2007-03-03  Bruno Haible  <bruno@clisp.org>
13198
13199         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
13200         extracted from gt_FUNC_SETENV.
13201         (gt_FUNC_SETENV): Remove macro.
13202         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
13203         remove gt_FUNC_SETENV.
13204
13205 2007-03-03  Bruno Haible  <bruno@clisp.org>
13206
13207         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
13208         ENABLE_RELOCATABLE here.
13209         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
13210
13211 2007-03-03  Bruno Haible  <bruno@clisp.org>
13212
13213         * modules/rbtreehash-list-tests (Depends-on): Add progname.
13214         * tests/test-rbtreehash_list.c: Include progname.h.
13215         (main): Call set_program_name.
13216
13217         * modules/rbtree-oset-tests (Depends-on): Add progname.
13218         * tests/test-rbtree_oset.c: Include progname.h.
13219         (main): Call set_program_name.
13220
13221         * modules/rbtree-list-tests (Depends-on): Add progname.
13222         * tests/test-rbtree_list.c: Include progname.h.
13223         (main): Call set_program_name.
13224
13225         * modules/linked-list-tests (Depends-on): Add progname.
13226         * tests/test-linked_list.c: Include progname.h.
13227         (main): Call set_program_name.
13228
13229 2007-03-03  Bruno Haible  <bruno@clisp.org>
13230
13231         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
13232         All uses of __restrict changed to _Restrict_.
13233         * lib/glob_.h (__restrict): Remove macro.
13234
13235 2007-03-02  Bruno Haible  <bruno@clisp.org>
13236
13237         * modules/gettext (configure.ac): Require gettext infrastructure
13238         from version 0.16.1.
13239
13240 2007-03-02  Bruno Haible  <bruno@clisp.org>
13241
13242         * modules/linkedhash-list-tests (Depends-on): Add progname.
13243         * tests/test-linkedhash_list.c: Include progname.h.
13244         (main): Call set_program_name.
13245
13246         * modules/carray-list-tests (Depends-on): Add progname.
13247         * tests/test-carray_list.c: Include progname.h.
13248         (main): Call set_program_name.
13249
13250         * modules/avltreehash-list-tests (Depends-on): Add progname.
13251         * tests/test-avltreehash_list.c: Include progname.h.
13252         (main): Call set_program_name.
13253
13254         * modules/avltree-oset-tests (Depends-on): Add progname.
13255         * tests/test-avltree_oset.c: Include progname.h.
13256         (main): Call set_program_name.
13257
13258         * modules/avltree-list-tests (Depends-on): Add progname.
13259         * tests/test-avltree_list.c: Include progname.h.
13260         (main): Call set_program_name.
13261
13262         * modules/array-oset-tests (Depends-on): Add progname.
13263         * tests/test-array_oset.c: Include progname.h.
13264         (main): Call set_program_name.
13265
13266         * modules/array-list-tests (Depends-on): Add progname.
13267         * tests/test-array_list.c: Include progname.h.
13268         (main): Call set_program_name.
13269
13270         * modules/argp-tests (Depends-on): Add progname.
13271         * tests/test-argp.c: Include argp.h first. Include progname.h.
13272         (main): Call set_program_name.
13273
13274 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
13275
13276         * doc/gnulib-tool.texi (Initial import): Reword description of
13277         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
13278         limited effect even if defined after the first system include.
13279
13280 2007-03-01  Bruno Haible  <bruno@clisp.org>
13281
13282         * build-aux/config.libpath: Update to libtool-1.5.22.
13283         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13284
13285 2007-03-01  Bruno Haible  <bruno@clisp.org>
13286
13287         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
13288         foo_CFLAGS.
13289         Reported by Ralf Wildenhues.
13290
13291 2007-03-01  Bruno Haible  <bruno@clisp.org>
13292
13293         * build-aux/install-reloc: Remove object files left over by some
13294         compilers.
13295         Reported by Ralf Wildenhues.
13296
13297 2007-03-01  Bruno Haible  <bruno@clisp.org>
13298
13299         * build-aux/install-reloc: Break long lines.
13300
13301 2007-03-01  Bruno Haible  <bruno@clisp.org>
13302
13303         * doc/relocatable.texi: Document that it may not work on OpenBSD.
13304         Reported by Ralf Wildenhues.
13305
13306 2007-03-01  Bruno Haible  <bruno@clisp.org>
13307
13308         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
13309         include ordering constraints.
13310
13311 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
13312
13313         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
13314         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
13315         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
13316         as another example.
13317         * lib/time_.h: Fix misspelling.
13318         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
13319         Require gl_HEADER_TIME_H_DEFAULTS.
13320         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
13321         * m4/time_r.m4 (gl_TIME_R): Likewise.
13322         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
13323
13324 2007-03-01  Bruno Haible  <bruno@clisp.org>
13325
13326         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
13327         * m4/utimens.m4 (gl_UTIMENS): Likewise.
13328
13329 2007-03-01  Jim Meyering  <jim@meyering.net>
13330
13331         * modules/xreadlink (Maintainer): Add my name.
13332         * modules/xreadlink-with-size (Depends-on): Alphabetize.
13333
13334 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
13335             Bruno Haible  <bruno@clisp.org>
13336
13337         * build-aux/install-reloc: Compile also c-ctype.c.
13338         * build-aux/relocatable.sh.in: New file.
13339         * doc/relocatable.texi: New file.
13340         * doc/relocatable-maint.texi: New file.
13341         * doc/gnulib.texi: Include relocatable-maint.texi.
13342         * lib/progreloc.c: Include unistd.h unconditionally.
13343         * lib/relocwrapper.c: Include unistd.h unconditionally.
13344         Include c-ctype.h.
13345         (add_dotbin): Use c_tolower.
13346         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
13347         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
13348         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
13349         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
13350         to m4/relocatable-lib.m4.
13351         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
13352         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
13353         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
13354         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
13355         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
13356         * modules/relocatable: New file.
13357         * modules/relocatable-lib: New file.
13358         * modules/relocatable-script: New file.
13359
13360 2007-02-28  Bruno Haible  <bruno@clisp.org>
13361
13362         Import --enable-relocatable infrastructure.
13363         * build-aux/config.libpath: New file, from GNU gettext.
13364         * build-aux/install-reloc: New file, from GNU gettext.
13365         * build-aux/reloc-ldflags: New file, from GNU gettext.
13366         * lib/relocatable.h: New file, from GNU gettext.
13367         * lib/relocatable.c: New file, from GNU gettext.
13368         * lib/relocwrapper.c: New file, from GNU gettext.
13369         * m4/relocatable.m4: New file, from GNU gettext.
13370
13371 2007-02-28  Bruno Haible  <bruno@clisp.org>
13372
13373         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
13374
13375         * modules/xreadlink: New file, from GNU gettext with modifications.
13376         * lib/xreadlink.c: New file, from GNU gettext.
13377         * lib/xreadlink.h: Add comments.
13378         (xreadlink): New declaration.
13379
13380         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
13381         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
13382         lib/xreadlink-with-size.c.
13383         (configure.ac): Remove gl_XREADLINK invocation.
13384         (Makefile.am): Augment lib_SOURCES.
13385         * m4/xreadlink.m4: Remove file.
13386         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
13387         (xreadlink_with_size): Renamed from xreadink.
13388         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
13389         * modules/canonicalize (Depends-on): Replace xreadlink with
13390         xreadlink-with-size.
13391         * lib/canonicalize.c (canonicalize_filename_mode): Update.
13392
13393 2007-02-25  Jim Meyering  <jim@meyering.net>
13394
13395         * build-aux/announce-gen: When complaining about excess arguments,
13396         list them.
13397
13398 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13399
13400         * README: Document signed integer overflow situation more
13401         accurately.
13402
13403 2007-02-25  Bruno Haible  <bruno@clisp.org>
13404
13405         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
13406         'a' or 'A' conversion.
13407
13408 2007-02-25  Bruno Haible  <bruno@clisp.org>
13409
13410         * modules/filename: Renamed from modules/pathname.
13411         (Files): Replace lib/pathname.h with lib/filename.h. Replace
13412         lib/concatpath.c with lib/concat-filename.c.
13413         (Makefile.am): Update.
13414         (Include): Replace pathname.h with filename.h.
13415         * lib/filename.h: Renamed from lib/pathname.h.
13416         (concatenated_filename): Renamed from concatenated_pathname.
13417         * lib/concat-filename.c: Renamed from lib/concatpath.c.
13418         (concatenated_filename): Renamed from concatenated_pathname.
13419         * lib/findprog.c: Include filename.h instead of pathname.h.
13420         (find_in_path): Update.
13421         * lib/javacomp.c: Include filename.h instead of pathname.h.
13422         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
13423         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
13424         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
13425         is_oldgcj_14_13_usable, is_javac_usable): Update.
13426         * lib/javaexec.c: Include filename.h instead of pathname.h.
13427         (execute_java_class): Update.
13428         * modules/findprog: Update.
13429         * modules/javacomp: Update.
13430         * modules/javaexec: Update.
13431         * MODULES.html.sh (File system functions): Add 'filename', remove
13432         'pathname'.
13433
13434 2007-02-25  Bruno Haible  <bruno@clisp.org>
13435
13436         * modules/printf-frexpl-tests: New file.
13437         * tests/test-printf-frexpl.c: New file.
13438
13439         * modules/printf-frexpl: New file.
13440         * lib/printf-frexpl.h: New file.
13441         * lib/printf-frexpl.c: New file.
13442         * m4/printf-frexpl.m4: New file.
13443
13444 2007-02-25  Bruno Haible  <bruno@clisp.org>
13445
13446         * modules/printf-frexp-tests: New file.
13447         * tests/test-printf-frexp.c: New file.
13448
13449         * modules/printf-frexp: New file.
13450         * lib/printf-frexp.h: New file.
13451         * lib/printf-frexp.c: New file.
13452         * m4/printf-frexp.m4: New file.
13453
13454 2007-02-25  Bruno Haible  <bruno@clisp.org>
13455
13456         Assume automake >= 1.10 for the tests.
13457         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
13458         * modules/arctwo-tests: Likewise.
13459         * modules/argp-tests: Likewise.
13460         * modules/avltree-list-tests: Likewise.
13461         * modules/avltree-oset-tests: Likewise.
13462         * modules/avltreehash-list-tests: Likewise.
13463         * modules/carray-list-tests: Likewise.
13464         * modules/crc-tests: Likewise.
13465         * modules/des-tests: Likewise.
13466         * modules/gc-arcfour-tests: Likewise.
13467         * modules/gc-arctwo-tests: Likewise.
13468         * modules/gc-des-tests: Likewise.
13469         * modules/gc-hmac-md5-tests: Likewise.
13470         * modules/gc-hmac-sha1-tests: Likewise.
13471         * modules/gc-md2-tests: Likewise.
13472         * modules/gc-md4-tests: Likewise.
13473         * modules/gc-md5-tests: Likewise.
13474         * modules/gc-pbkdf2-sha1-tests: Likewise.
13475         * modules/gc-rijndael-tests: Likewise.
13476         * modules/gc-sha1-tests: Likewise.
13477         * modules/gc-tests: Likewise.
13478         * modules/getaddrinfo-tests: Likewise.
13479         * modules/hmac-md5-tests: Likewise.
13480         * modules/hmac-sha1-tests: Likewise.
13481         * modules/linked-list-tests: Likewise.
13482         * modules/linkedhash-list-tests: Likewise.
13483         * modules/lock-tests: Likewise.
13484         * modules/md2-tests: Likewise.
13485         * modules/md4-tests: Likewise.
13486         * modules/md5-tests: Likewise.
13487         * modules/rbtree-list-tests: Likewise.
13488         * modules/rbtree-oset-tests: Likewise.
13489         * modules/rbtreehash-list-tests: Likewise.
13490         * modules/read-file-tests: Likewise.
13491         * modules/rijndael-tests: Likewise.
13492         * modules/stdint-tests: Likewise.
13493         * modules/tls-tests: Likewise.
13494
13495 2007-02-24  Bruno Haible  <bruno@clisp.org>
13496
13497         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
13498         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
13499         function; instead check whether isnan with a double argument links.
13500         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
13501         function; instead check whether isnan with a 'long double' argument
13502         links.
13503         Reported by Eric Blake <ebb9@byu.net>.
13504
13505 2007-02-24  Bruno Haible  <bruno@clisp.org>
13506
13507         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
13508         defined.
13509         * lib/isnanl.c: Remove all code. Just include isnan.c.
13510         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
13511
13512 2007-02-25  Jim Meyering  <jim@meyering.net>
13513
13514         Avoid conflicting types for 'unsetenv' on FreeBSD.
13515         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
13516         conflicting with FreeBSD's (5.0 and 6.1) function declaration
13517         in stdlib.h.
13518
13519 2007-02-24  Bruno Haible  <bruno@clisp.org>
13520
13521         * modules/isnanl-nolibm-tests: New file.
13522         * tests/test-isnanl.c: New file.
13523
13524         * modules/isnanl-nolibm: New file.
13525         * lib/isnanl.h: New file.
13526         * lib/isnanl.c: New file.
13527         * m4/isnanl.m4: New file.
13528
13529 2007-02-24  Bruno Haible  <bruno@clisp.org>
13530
13531         * modules/isnan-nolibm-tests: New file.
13532         * tests/test-isnan.c: New file.
13533
13534         * modules/isnan-nolibm: New file.
13535         * lib/isnan.h: New file.
13536         * lib/isnan.c: New file.
13537         * m4/isnan.m4: New file.
13538
13539 2007-02-24  Bruno Haible  <bruno@clisp.org>
13540
13541         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
13542         assume that an exponent fits in 20 bits.
13543
13544 2007-02-24  Jim Meyering  <jim@meyering.net>
13545
13546         * m4/regex.m4: Update the description of the configure-time option,
13547         --without-included-regex, to state accurately what the defaults are,
13548         and perhaps to give people an idea why using this option is risky.
13549
13550 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13551
13552         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
13553         loops on small arguments.  This attempts to avoid the problem
13554         Bruno Haible reported for AIX 4.3.2 in
13555         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
13556
13557 2007-02-23  Bruno Haible  <bruno@clisp.org>
13558
13559         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
13560         Needed for help2man.
13561
13562 2007-02-23  Karl Berry  <karl@gnu.org>
13563
13564         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
13565         exists, foo.h should be cvs-ignored, not committed.
13566
13567 2007-02-23  Eric Blake  <ebb9@byu.net>
13568
13569         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
13570         * lib/stat-time.h (includes): Likewise.
13571         * lib/utimecmp.c (includes): Likewise.
13572         * lib/utimens.h (includes): Likewise.
13573         * lib/getdate.y (includes): Also include "timespec.h" for use
13574         internal to the module.
13575         * modules/utimens (Depends-on): Revert yesterday's patch.
13576         * modules/nanosleep (Depends-on): Add missing dependency.
13577
13578 2007-02-22  Bruno Haible  <bruno@clisp.org>
13579
13580         * lib/glob.c: Don't include getlogin_r.h.
13581
13582 2007-02-22  Jim Meyering  <jim@meyering.net>
13583
13584         * modules/utimens (Depends-on): Add timespec, required for
13585         utimens.h's inclusion of timespec.h.
13586
13587 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
13588
13589         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
13590         long unreadable paths in GNU/Linux.  Problem reported by Andreas
13591         Schwab in
13592         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
13593         I'll try to think of a better way to fix the Solaris problem.
13594
13595         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
13596         like glibc; on Solaris 10, it fails with errno == EINVAL.
13597         POSIX says the behavior is unspecified if the first argument is NULL,
13598         so play it safe and never pass NULL to the system getcwd.
13599
13600 2007-02-21  Jim Meyering  <jim@meyering.net>
13601
13602         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
13603         of gettimeofday.  It would conflict with the one now always
13604         provided via sys_time_.h.  Reported by Matthew Woehlke, as
13605         an IRIX 6.5 build failure.
13606
13607 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
13608
13609         Minor fixups to port to Solaris 10 with Sun C 5.8.
13610         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
13611         * modules/getcwd (Depends-on): Add dirfd.
13612         * lib/putenv.c (putenv): #undef it.
13613         (rpl_putenv): New decl.
13614         (malloc, free): Include <stdlib.h> rather than prototyping separately.
13615
13616 2007-02-20  Bruno Haible  <bruno@clisp.org>
13617
13618         * modules/stdio-tests: New file.
13619         * tests/test-stdio.c: New file.
13620
13621         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
13622         (Depends-on): Add stdio.
13623         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
13624         (Include): Use <stdio.h> instead of vsnprintf.h.
13625         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
13626         HAVE_DECL_VSNPRINTF.
13627         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
13628
13629         * modules/snprintf (Files): Remove lib/snprintf.h.
13630         (Depends-on): Add stdio.
13631         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
13632         (Include): Use <stdio.h> instead of snprintf.h.
13633         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
13634         HAVE_DECL_SNPRINTF.
13635         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
13636         * lib/getaddrinfo.c: Likewise.
13637
13638         * modules/stdio: New file.
13639         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
13640         * lib/snprintf.h: Remove file.
13641         * lib/vsnprintf.h: Remove file.
13642         * lib/.cppi-disable: Remove snprintf.h.
13643         * m4/stdio_h.m4: New file.
13644         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
13645
13646 2007-02-20  Jim Meyering  <jim@meyering.net>
13647
13648         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
13649         used by e.g., mingw.  From Bruno Haible.
13650
13651 2007-02-19  Bruno Haible  <bruno@clisp.org>
13652
13653         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
13654         warnings.
13655         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13656
13657 2007-02-19  Bruno Haible  <bruno@clisp.org>
13658
13659         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
13660         from mingw users.
13661
13662 2007-02-19  Bruno Haible  <bruno@clisp.org>
13663
13664         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
13665         warnings.
13666         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
13667
13668 2007-02-19  Jim Meyering  <jim@meyering.net>
13669
13670         Don't use FD after a successful "fdopendir (fd)".
13671         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
13672         Reset it by calling dirfd on the just-obtained DIR*.
13673
13674         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
13675         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
13676
13677 2007-02-18  Bruno Haible  <bruno@clisp.org>
13678
13679         * lib/readlink.c: Include <unistd.h>.
13680         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
13681         HAVE_READLINK.
13682         * modules/readlink (Depends-on): Add unistd.
13683         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13684         (Include): Add <unistd.h>.
13685
13686         * lib/getlogin_r.h: Remove file.
13687         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
13688         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
13689         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
13690         HAVE_DECL_GETLOGIN_R.
13691         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
13692         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13693         (Include): Use <unistd.h> instead of getlogin_r.h.
13694
13695         * lib/getcwd.h: Remove file.
13696         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
13697         * lib/xgetcwd.c: Likewise.
13698         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
13699         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
13700         * modules/getcwd (Files): Remove lib/getcwd.h.
13701         (Depends-on): Add unistd.
13702         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13703         (Include): Use <unistd.h> instad of getcwd.h.
13704
13705         * lib/ftruncate.c: Include <unistd.h> first.
13706         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
13707         Set HAVE_FTRUNCATE.
13708         * modules/ftruncate (Depends-on): Add unistd.
13709         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13710
13711         * lib/fchdir.c: Include <unistd.h> first.
13712         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
13713         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
13714         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
13715         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13716         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
13717
13718         * lib/dup2.c: Include <unistd.h> first.
13719         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
13720         HAVE_DUP2.
13721         * modules/dup2 (Depends-on): Add unistd.
13722         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13723
13724         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
13725         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
13726         REPLACE_CHOWN. Don't define chown as a macro here.
13727         * modules/chown (Depends-on): Add unistd.
13728         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13729
13730         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
13731         Add definition for GL_LINK_WARNING.
13732         (chown, dup2): New declarations.
13733         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
13734         link warning.
13735         (ftruncate): New declaration.
13736         (getcwd): New declaration, taken from old getcwd.h.
13737         (getlogin_r): New declaration, taken from old getlogin_r.h.
13738         (readlink): New declaration.
13739         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
13740         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
13741         (gl_PREREQ_UNISTD): Remove macro.
13742         (gl_UNISTD_MODULE_INDICATOR): New macro.
13743         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
13744         many new variables. Don't set UNISTD_H.
13745         * modules/unistd (Description): Change.
13746         (Depends-on): Add link-warning.
13747         (configure.ac): Update.
13748         (Makefile.am): Create unistd.h always. Substitute many new variables
13749         into it.
13750
13751 2007-02-18  Bruno Haible  <bruno@clisp.org>
13752
13753         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
13754         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
13755         HAVE_GETSUBOPT.
13756         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
13757         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
13758         * lib/getsubopt.h: Remove file.
13759         * modules/getsubopt (Files): Remove lib/getsubopt.h.
13760         (Depends-on): Add stdlib.
13761         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
13762         (Includes): Use <stdlib.h> instead of getsubopt.h.
13763         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
13764         Set HAVE_GETSUBOPT.
13765         * lib/getsubopt.c: Don't include getsubopt.h.
13766
13767 2007-02-18  Bruno Haible  <bruno@clisp.org>
13768
13769         * modules/fchdir (Depends-on): Add dup2.
13770
13771 2007-02-18  Bruno Haible  <bruno@clisp.org>
13772
13773         * lib/stdlib_.h: Handle glibc's special invocation convention
13774         specially.
13775
13776 2007-02-18  Bruno Haible  <bruno@clisp.org>
13777
13778         * modules/stdlib-tests: New file.
13779         * tests/test-stdlib.c: New file.
13780
13781         * modules/mkstemp (Files): Remove lib/mkstemp.h.
13782         (Depends-on): Add stdlib.
13783         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
13784         (Includes): Use <stdlib.h> instead of mkstemp.h.
13785         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
13786         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
13787         * lib/mkstemp.c: Don't include mkstemp.h.
13788         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
13789         * lib/stdlib--.h: Don't include mkstemp.h.
13790
13791         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
13792         (Depends-on): Add stdlib.
13793         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
13794         (Includes): Use <stdlib.h> instead of mkdtemp.h.
13795         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
13796         HAVE_MKDTEMP.
13797         * lib/mkdtemp.c: Don't include mkdtemp.h.
13798         * lib/clean-temp.c: Don't include mkdtemp.h.
13799
13800         * modules/exit (Files): Remove lib/exit.h.
13801         (Depends-on): Add stdlib.
13802         (Makefile.am): Remove lib_SOURCES.
13803         (Include): Use <stdlib.h> instead of exit.h.
13804         * lib/argmatch.c: Don't include exit.h.
13805         * lib/execute.c: Likewise.
13806         * lib/pagealign_alloc.c: Likewise.
13807         * lib/pipe.c: Likewise.
13808         * lib/wait-process.c: Likewise.
13809         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
13810         * lib/exitfail.c: Likewise.
13811         * lib/savewd.c: Likewise.
13812         * lib/xsetenv.c: Likewise.
13813
13814         * modules/stdlib: New file.
13815         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
13816         and extra comments about mkstemp().
13817         * lib/exit.h: Remove file.
13818         * lib/mkdtemp.h: Remove file.
13819         * lib/mkstemp.h: Remove file.
13820         * m4/stdlib_h.m4: New file.
13821         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
13822
13823 2007-02-18  Bruno Haible  <bruno@clisp.org>
13824
13825         * modules/math-tests: New file.
13826         * tests/test-math.c: New file.
13827
13828         * modules/math: New file.
13829         * modules/mathl (Files): Remove lib/mathl.h.
13830         (Depends-on): Add math.
13831         (Makefile.am): Don't mention mathl.h.
13832         (Include): Use <math.h> instead of mathl.h.
13833         * lib/math_.h: New file.
13834         * lib/mathl.h: Remove file.
13835         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
13836         mathl.h.
13837         * lib/asinl.c: Likewise.
13838         * lib/atanl.c: Likewise.
13839         * lib/ceill.c: Likewise.
13840         * lib/cosl.c: Likewise.
13841         * lib/expl.c: Likewise.
13842         * lib/floorl.c: Likewise.
13843         * lib/frexpl.c: Likewise.
13844         * lib/ldexpl.c: Likewise.
13845         * lib/logl.c: Likewise.
13846         * lib/sincosl.c: Likewise.
13847         * lib/sinl.c: Likewise.
13848         * lib/sqrtl.c: Likewise.
13849         * lib/tanl.c: Likewise.
13850         * lib/trigl.c: Likewise.
13851         * m4/math_h.m4: New file.
13852         * MODULES.html.sh (Mathematics): Add math.
13853
13854 2007-02-17  Bruno Haible  <bruno@clisp.org>
13855
13856         * modules/wctype-tests: New file.
13857         * tests/test-wctype.c: New file.
13858
13859         * modules/wchar-tests: New file.
13860         * tests/test-wchar.c: New file.
13861
13862         * modules/unistd-tests: New file.
13863         * tests/test-unistd.c: New file.
13864
13865         * modules/time-tests: New file.
13866         * tests/test-time.c: New file.
13867
13868         * modules/sysexits-tests: New file.
13869         * tests/test-sysexits.c: New file.
13870
13871         * modules/sys_time-tests: New file.
13872         * tests/test-sys_time.c: New file.
13873
13874         * modules/sys_stat-tests: New file.
13875         * tests/test-sys_stat.c: New file.
13876
13877         * modules/sys_socket-tests: New file.
13878         * tests/test-sys_socket.c: New file.
13879
13880         * modules/sys_select-tests: New file.
13881         * tests/test-sys_select.c: New file.
13882
13883         * modules/string-tests: New file.
13884         * tests/test-string.c: New file.
13885
13886         * modules/stdbool-tests: New file.
13887         * tests/test-stdbool.c: New file.
13888
13889         * modules/netinet_in-tests: New file.
13890         * tests/test-netinet_in.c: New file.
13891
13892         * modules/inttypes-tests: New file.
13893         * tests/test-inttypes.c: New file.
13894
13895         * modules/fcntl-tests: New file.
13896         * tests/test-fcntl.c: New file.
13897
13898         * modules/byteswap-tests: New file.
13899         * tests/test-byteswap.c: New file.
13900
13901         * modules/arpa_inet-tests: New file.
13902         * tests/test-arpa_inet.c: New file.
13903
13904 2007-02-17  Bruno Haible  <bruno@clisp.org>
13905
13906         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
13907         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
13908         if the corresponding module is not enabled. Emit link warnings if
13909         the function is used nevertheless.
13910         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
13911         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
13912         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
13913         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
13914         * modules/inttypes (Depends-on): Add link-warning.
13915         (Makefile.am): Copy the contents of build-aux/link-warning.h into
13916         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
13917         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
13918         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
13919         * modules/imaxdiv (configure.ac): Likewise.
13920         * modules/strtoimax (configure.ac): Likewise.
13921         * modules/strtoumax (configure.ac): Likewise.
13922
13923 2007-02-17  Bruno Haible  <bruno@clisp.org>
13924
13925         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
13926         gl_STRING_MODULE_INDICATOR_DEFAULTS.
13927         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
13928         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
13929
13930 2007-02-17  Bruno Haible  <bruno@clisp.org>
13931
13932         * modules/link-warning: New file.
13933         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
13934         * lib/string_.h (GL_LINK_WARNING): Remove definition.
13935         * modules/string (Depends-on): Add link-warning.
13936         (Makefile.am): Copy the contents of build-aux/link-warning.h into
13937         string.h.
13938         * MODULES.html.sh (Support for building libraries and executables): Add
13939         link-warning.
13940
13941 2007-02-17  Bruno Haible  <bruno@clisp.org>
13942
13943         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
13944         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
13945         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
13946         long lines.
13947
13948 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
13949             Bruno Haible  <bruno@clisp.org>
13950
13951         * modules/tmpfile: New file.
13952         * lib/tmpfile.c: New file.
13953         * m4/tmpfile.m4: New file.
13954         * MODULES.html.sh (func_all_modules): New section "Input/output".
13955
13956 2007-02-15  Bruno Haible  <bruno@clisp.org>
13957
13958         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
13959         (supports_delete_on_close): New function.
13960         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
13961
13962 2007-02-14  Bruno Haible  <bruno@clisp.org>
13963
13964         * modules/mbspcasecmp-tests: New file.
13965         * tests/test-mbspcasecmp.sh: New file.
13966         * tests/test-mbspcasecmp.c: New file.
13967
13968         New module mbspcasecmp.
13969         * modules/mbspcasecmp: New file.
13970         * lib/mbspcasecmp.c: New file.
13971         * lib/string_.h (strncasecmp): Change warning message.
13972         (mbspcasecmp): New declaration.
13973         * m4/mbspcasecmp.m4: New file.
13974         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13975         GNULIB_MBSPCASECMP.
13976         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
13977         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
13978
13979 2007-02-14  Bruno Haible  <bruno@clisp.org>
13980
13981         * modules/mbsncasecmp-tests: New file.
13982         * tests/test-mbsncasecmp.sh: New file.
13983         * tests/test-mbsncasecmp.c: New file.
13984
13985         New module mbsncasecmp.
13986         * modules/mbsncasecmp: New file.
13987         * lib/mbsncasecmp.c: New file.
13988         * lib/string_.h (mbsncasecmp): New declaration.
13989         * m4/mbsncasecmp.m4: New file.
13990         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13991         GNULIB_MBSNCASECMP.
13992         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
13993         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
13994
13995 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
13996
13997         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
13998         Verify that it doesn't overlap with our flags.
13999         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
14000         do not have the desired effect in multibyte locales; instead, use
14001         mbscasecmp.
14002         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
14003         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
14004         we don't require GNU fnmatch ourselves (if our users require it, they
14005         should do so explicitly).
14006
14007         Fix regex code so it doesn't rely on strcasecmp.
14008         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
14009         Otherwise, include gnulib's langinfo.h.
14010         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
14011         undesirable behavior in non-C locales.  Instead, rely on localecharset.
14012         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
14013         * modules/regex (FILES): Remove m4/codeset.m4.
14014         (Depends-on): Add localcharset.  Remove strcase.
14015
14016 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14017
14018         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
14019         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14020
14021 2007-02-13  Bruno Haible  <bruno@clisp.org>
14022
14023         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
14024         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14025
14026 2007-02-12  Bruno Haible  <bruno@clisp.org>
14027
14028         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
14029         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
14030         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
14031         time warning rather than a link error.
14032
14033 2007-02-12  Bruno Haible  <bruno@clisp.org>
14034
14035         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
14036         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14037         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14038
14039 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14040
14041         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
14042         args, not 2.
14043
14044 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14045
14046         New module 'time', so that apps can include <time.h> as per
14047         POSIX and GNU instead of separate include files like time_r.h
14048         and timegm.h.  This implementation tries out a simpler approach
14049         for replacing decls in standard include files (as compared to
14050         the string module), somewhat as an experiment.
14051
14052         * config/srclist.txt: Comment out mktime.c for now.
14053         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
14054         since it doesn't apply any more.  Use generic wording instead.
14055         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
14056         'time'.
14057         * lib/time_.h, m4/time_h.m4, modules/time: New files.
14058         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
14059         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
14060         Don't include <sys/types.h>; no longer needed since we assume C89.
14061         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
14062         * lib/strftime.c: Likewise.
14063         * lib/time_r.c: Likewise.
14064         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
14065         * lib/nanosleep.c: Include <time.h> first, to check interface.
14066         * lib/strptime.c: Likewise.
14067         * lib/time_r.c: Likewise.
14068         * lib/timegm.c: Likewise.
14069         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
14070         needed.
14071         * lib/timegm.c: Don't include timegm.h; no longer needed.
14072         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
14073         time.h now handles any problems in that area.
14074         (struct timespec, nanosleep): Remove; time.h now arranges for these.
14075         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
14076         that time.h defines struct timespec.
14077         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
14078         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
14079         handles that.
14080         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
14081         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
14082         needed.  Set REPLACE_LOCALTIME.
14083         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
14084         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
14085         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
14086         nanosleep; time_h.m4 now does that.  Don't require
14087         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
14088         module handles this now.
14089         * modules/getdate (Depends-on): Remove timespec.  Add time.
14090         * modules/nanosleep (Depends-on): Likewise.
14091         * modules/stat-time (Depends-on): Likewise.
14092         * modules/nanosleep (Include): Include time.h, not timespec.h.
14093         * modules/strptime (Files): Remove lib/strptime.h.
14094         (Depends-on): Add extensions, time.
14095         (Include): Include time.h, not strptime.h.
14096         * modules/time_r (Files): Remove lib/time_r.h.
14097         (Depends-on): Add time.
14098         (Include): Include time.h, not time_r.h.
14099         * modules/timegm: Likewise.
14100         * modules/timespec (Description): Now does timespec-related decls
14101         of our own, instead of struct timespec itself.
14102         (Depends-on): Add time; remove extensions.
14103         (Maintainer): Add self.
14104         * modules/utimecmp (Depends-on): Add time; remove timespec.
14105         * modules/utimens (Depends-on): Likewise.
14106         * modules/xnanosleep (Depends-on): Likewise.
14107
14108 2007-02-11  Bruno Haible  <bruno@clisp.org>
14109
14110         * lib/c-strstr.c: Include allocsa.h.
14111         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
14112         * lib/c-strcasestr.c: Include allocsa.h.
14113         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
14114         * lib/strcasestr.c: Include allocsa.h.
14115         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
14116         * lib/mbsstr.c: Include allocsa.h.
14117         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
14118         allocsa/freesa instead of malloc/free.
14119         * lib/mbscasestr.c: Include allocsa.h.
14120         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
14121         allocsa/freesa instead of malloc/free.
14122         * modules/c-strstr (Depends-on): Add allocsa.
14123         * modules/c-strcasestr (Depends-on): Likewise.
14124         * modules/strcasestr (Depends-on): Likewise.
14125         * modules/mbsstr (Depends-on): Likewise.
14126         * modules/mbscasestr (Depends-on): Likewise.
14127
14128 2007-02-11  Bruno Haible  <bruno@clisp.org>
14129
14130         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
14131
14132         * modules/mbsspn-tests: New file.
14133         * tests/test-mbsspn.sh: New file.
14134         * tests/test-mbsspn.c: New file.
14135
14136 2007-02-11  Bruno Haible  <bruno@clisp.org>
14137
14138         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
14139
14140         * modules/mbspbrk-tests: New file.
14141         * tests/test-mbspbrk.sh: New file.
14142         * tests/test-mbspbrk.c: New file.
14143
14144 2007-02-11  Bruno Haible  <bruno@clisp.org>
14145
14146         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
14147         unneeded cast.
14148
14149         * modules/mbscspn-tests: New file.
14150         * tests/test-mbscspn.sh: New file.
14151         * tests/test-mbscspn.c: New file.
14152
14153 2007-02-11  Bruno Haible  <bruno@clisp.org>
14154
14155         * modules/mbscasecmp-tests: New file.
14156         * tests/test-mbscasecmp.sh: New file.
14157         * tests/test-mbscasecmp.c: New file.
14158
14159 2007-02-11  Bruno Haible  <bruno@clisp.org>
14160
14161         Ensure O(n) worst-case complexity of mbscasestr.
14162         * lib/mbscasestr.c: Include stdbool.h.
14163         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
14164         functions.
14165         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
14166         the bookkeeping indicates that it's worth it.
14167         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
14168
14169         * modules/mbscasestr-tests: New file.
14170         * tests/test-mbscasestr1.c: New file.
14171         * tests/test-mbscasestr2.sh: New file.
14172         * tests/test-mbscasestr2.c: New file.
14173         * tests/test-mbscasestr3.sh: New file.
14174         * tests/test-mbscasestr3.c: New file.
14175         * tests/test-mbscasestr4.sh: New file.
14176         * tests/test-mbscasestr4.c: New file.
14177         * m4/locale-tr.m4: New file.
14178
14179 2007-02-11  Bruno Haible  <bruno@clisp.org>
14180
14181         Ensure O(n) worst-case complexity of mbsstr.
14182         * lib/mbsstr.c: Include stdbool.h.
14183         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
14184         functions.
14185         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
14186         bookkeeping indicates that it's worth it.
14187         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
14188
14189         * modules/mbsstr-tests: New file.
14190         * tests/test-mbsstr1.c: New file.
14191         * tests/test-mbsstr2.sh: New file.
14192         * tests/test-mbsstr2.c: New file.
14193         * tests/test-mbsstr3.sh: New file.
14194         * tests/test-mbsstr3.c: New file.
14195         * m4/locale-fr.m4: New file.
14196
14197 2007-02-11  Bruno Haible  <bruno@clisp.org>
14198
14199         * lib/mbsrchr.c (mbsrchr): Fix bug.
14200
14201         * modules/mbsrchr-tests: New file.
14202         * tests/test-mbsrchr.sh: New file.
14203         * tests/test-mbsrchr.c: New file.
14204
14205 2007-02-11  Bruno Haible  <bruno@clisp.org>
14206
14207         * lib/mbschr.c (mbschr): Fix bug.
14208
14209         * modules/mbschr-tests: New file.
14210         * tests/test-mbschr.sh: New file.
14211         * tests/test-mbschr.c: New file.
14212         * m4/locale-zh.m4: New file.
14213
14214 2007-02-11  Bruno Haible  <bruno@clisp.org>
14215
14216         Support for copying multibyte string iterators.
14217         * lib/mbiter.h: Include <string.h>.
14218         (mbiter_multi_copy): New function.
14219         (mbi_copy): New macro.
14220         * lib/mbuiter.h: Include <string.h>.
14221         (mbuiter_multi_copy): New function.
14222         (mbui_copy): New macro.
14223
14224 2007-02-11  Bruno Haible  <bruno@clisp.org>
14225
14226         New module mbslen.
14227         * modules/mbslen: New file.
14228         * lib/mbslen.c: New file.
14229         * lib/string_.h (mbslen): New declaration.
14230         * m4/mbslen.m4: New file.
14231         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14232         GNULIB_MBSLEN.
14233         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
14234         * MODULES.html.sh (Internationalization functions): Add mbslen.
14235
14236 2007-02-11  Bruno Haible  <bruno@clisp.org>
14237
14238         Ensure O(n) worst-case complexity of strcasestr substitute.
14239         * lib/strcasestr.c: Include stdbool.h.
14240         (knuth_morris_pratt): New function.
14241         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
14242         bookkeeping indicates that it's worth it.
14243         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
14244
14245         * modules/strcasestr-tests: New file.
14246         * tests/test-strcasestr.c: New file.
14247
14248 2007-02-11  Bruno Haible  <bruno@clisp.org>
14249
14250         Ensure O(n) worst-case complexity of c_strcasestr.
14251         * lib/c-strcasestr.c: Include stdbool.h, string.h.
14252         (knuth_morris_pratt): New function.
14253         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
14254         the bookkeeping indicates that it's worth it.
14255         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
14256
14257         * modules/c-strcasestr-tests: New file.
14258         * tests/test-c-strcasestr.c: New file.
14259
14260 2007-02-11  Bruno Haible  <bruno@clisp.org>
14261
14262         Ensure O(n) worst-case complexity of c_strstr.
14263         * lib/c-strstr.c: Include stdbool.h, string.h.
14264         (knuth_morris_pratt): New function.
14265         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
14266         bookkeeping indicates that it's worth it.
14267         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
14268
14269         * lib/c-strstr.c: Complete rewrite for maintainability.
14270
14271         * modules/c-strstr-tests: New file.
14272         * tests/test-c-strstr.c: New file.
14273
14274 2007-02-11  Bruno Haible  <bruno@clisp.org>
14275
14276         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
14277         5.2.1 and earlier, whereby \055 was treated just like the range
14278         delimiter '-'.
14279         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
14280
14281 2007-02-08  Bruno Haible  <bruno@clisp.org>
14282
14283         * modules/regex (Depends-on): Add stdbool.
14284         Reported by Dalibor Topic <robilad@kaffe.org>.
14285
14286 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
14287
14288         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
14289         Prefer returning from main to exiting from it.
14290         Remove unnecessary parens after sizeof.
14291
14292 2007-02-05  Bruno Haible  <bruno@clisp.org>
14293
14294         New module mbssep.
14295         * modules/mbssep: New file.
14296         * lib/mbssep.c: New file.
14297         * lib/string_.h (strsep): Add a conditional link warning.
14298         (mbssep): New declaration.
14299         * m4/mbssep.m4: New file.
14300         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14301         GNULIB_MBSSEP.
14302         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
14303         * MODULES.html.sh (Internationalization functions): Add mbssep.
14304
14305 2007-02-05  Bruno Haible  <bruno@clisp.org>
14306
14307         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
14308         Optimize search in case of 1 delimiter.
14309
14310 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
14311
14312         * lib/acl.h: Include sys/types.h before sys/acl.h.
14313
14314 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
14315
14316         Merge upstream fix for glibc bugzilla #3957:
14317
14318         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
14319
14320         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
14321         bit for RE_HAT_LISTS_NOT_NEWLINE.
14322         (build_charclass_op): Remove bogus comment.
14323
14324 2007-02-05  Simon Josefsson  <simon@josefsson.org>
14325
14326         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
14327
14328 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14329
14330         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
14331         * lib/memmem.c [!defined _LIBC]: Include config.h.
14332
14333 2007-02-04  Bruno Haible  <bruno@clisp.org>
14334
14335         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
14336         warning message.
14337
14338 2007-02-04  Bruno Haible  <bruno@clisp.org>
14339
14340         New module mbstok_r.
14341         * modules/mbstok_r: New file.
14342         * lib/mbstok_r.c: New file.
14343         * lib/string_.h (strtok_r): Change argument names to match the
14344         comments. Add a conditional link warning.
14345         (mbstok_r): New declaration.
14346         * m4/mbstok_r.m4: New file.
14347         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14348         GNULIB_MBSTOK_R.
14349         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
14350         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
14351
14352 2007-02-04  Bruno Haible  <bruno@clisp.org>
14353
14354         New module mbsspn.
14355         * modules/mbsspn: New file.
14356         * lib/mbsspn.c: New file.
14357         * lib/string_.h (strspn): Add a conditional link warning.
14358         (mbsspn): New declaration.
14359         * m4/mbsspn.m4: New file.
14360         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14361         GNULIB_MBSSPN.
14362         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
14363         * MODULES.html.sh (Internationalization functions): Add mbsspn.
14364
14365 2007-02-04  Bruno Haible  <bruno@clisp.org>
14366
14367         New module mbspbrk.
14368         * modules/mbspbrk: New file.
14369         * lib/mbspbrk.c: New file.
14370         * lib/string_.h (strpbrk): Add a conditional link warning.
14371         (mbspbrk): New declaration.
14372         * m4/mbspbrk.m4: New file.
14373         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14374         GNULIB_MBSPBRK.
14375         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
14376         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
14377
14378 2007-02-04  Bruno Haible  <bruno@clisp.org>
14379
14380         New module mbscspn.
14381         * modules/mbscspn: New file.
14382         * lib/mbscspn.c: New file.
14383         * lib/string_.h (strcspn): Add a conditional link warning.
14384         (mbscspn): New declaration.
14385         * m4/mbscspn.m4: New file.
14386         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14387         GNULIB_MBSCSPN.
14388         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
14389         * MODULES.html.sh (Internationalization functions): Add mbscspn.
14390
14391 2007-02-04  Bruno Haible  <bruno@clisp.org>
14392
14393         New module mbscasestr, reduced goal of strcasestr.
14394         * modules/mbscasestr: New file.
14395         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
14396         (mbscasestr): Renamed from strcasestr.
14397         * lib/strcasestr.c: Don't include mbuiter.h.
14398         (strcasestr): Remove support for multibyte locales.
14399         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
14400         Change the conditional link warning.
14401         (mbscasestr): New declaration.
14402         * m4/mbscasestr.m4: New file.
14403         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
14404         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
14405         REPLACE_STRCASESTR.
14406         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
14407         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14408         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
14409         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
14410         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
14411         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
14412         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
14413         (Depends-on): Remove mbuiter.
14414         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
14415
14416 2007-02-04  Bruno Haible  <bruno@clisp.org>
14417
14418         Simplify handling of strncasecmp.
14419         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
14420         the conditional link warning.
14421         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14422         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
14423         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
14424         * modules/strcase (configure.ac): Don't invoke
14425         gl_STRING_MODULE_INDICATOR.
14426         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
14427
14428 2007-02-04  Bruno Haible  <bruno@clisp.org>
14429
14430         New module mbscasecmp, reduced goal of strcasecmp.
14431         * modules/mbscasecmp: New file.
14432         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
14433         (mbscasecmp): Renamed from strcasecmp.
14434         * lib/strcasecmp.c: Don't include mbuiter.h.
14435         (strcasecmp): Remove support for multibyte locales.
14436         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
14437         Change the conditional link warning.
14438         (mbscasecmp): New declaration.
14439         * m4/mbscasecmp.m4: New file.
14440         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
14441         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
14442         REPLACE_STRCASECMP.
14443         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
14444         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14445         GNULIB_MBSCASECMP.
14446         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
14447         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
14448         * modules/strcase (Files): Remove m4/mbrtowc.m4.
14449         (Depends-on): Remove mbuiter.
14450         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
14451
14452 2007-02-04  Bruno Haible  <bruno@clisp.org>
14453
14454         New module mbsstr. Remove module strstr.
14455         * modules/mbsstr: New file.
14456         * modules/strstr: Remove file.
14457         * lib/mbsstr.c: Renamed from lib/strstr.c.
14458         (mbsstr): Renamed from strstr.
14459         * lib/string_.h (strstr): Remove declaration. Change the conditional
14460         link warning.
14461         (mbsstr): New declaration.
14462         * m4/mbsstr.m4: New file.
14463         * m4/strstr.m4: Remove file.
14464         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
14465         REPLACE_STRSTR.
14466         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
14467         Don't initialize GNULIB_STRSTR.
14468         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
14469         substitute GNULIB_STRSTR and REPLACE_STRSTR.
14470         * MODULES.html.sh (Internationalization functions): Add mbsstr.
14471         (Support for systems lacking ANSI C 89): Remove strstr.
14472
14473 2007-02-04  Bruno Haible  <bruno@clisp.org>
14474
14475         New module mbsrchr.
14476         * modules/mbsrchr: New file.
14477         * lib/mbsrchr.c: New file.
14478         * lib/string_.h (strrchr): Add a conditional link warning.
14479         (mbsrchr): New declaration.
14480         * m4/mbsrchr.m4: New file.
14481         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14482         GNULIB_MBSRCHR.
14483         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
14484         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
14485
14486 2007-02-04  Bruno Haible  <bruno@clisp.org>
14487
14488         New module mbschr.
14489         * modules/mbschr: New file.
14490         * lib/mbschr.c: New file.
14491         * lib/string_.h (strchr): Add a conditional link warning.
14492         (mbschr): New declaration.
14493         * m4/mbschr.m4: New file.
14494         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14495         GNULIB_MBSCHR.
14496         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
14497         * MODULES.html.sh (Internationalization functions): Add mbschr.
14498
14499 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14500
14501         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
14502
14503         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
14504
14505 2007-02-04  Bruno Haible  <bruno@clisp.org>
14506
14507         New module description section 'configure.ac-early'.
14508         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
14509         (func_get_autoconf_early_snippet): New function.
14510         (func_import, func_create_testdir): Use it. Remove special cases for
14511         modules 'extensions' and 'lock'.
14512         * modules/extensions (configure.ac-early): Require
14513         gl_USE_SYSTEM_EXTENSIONS.
14514         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
14515
14516 2007-02-04  Bruno Haible  <bruno@clisp.org>
14517
14518         Make use of gcj-4.3's -fsource and -ftarget option.
14519         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
14520         and if so try the options -fsource and -ftarget.
14521         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
14522         source_version, ftarget_option, target_version arguments.
14523         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
14524         (is_envjavac_oldgcj_14_14_usable): Renamed from
14525         is_envjavac_gcj_14_14_usable.
14526         (is_envjavac_oldgcj_14_13_usable): Renamed from
14527         is_envjavac_gcj_14_13_usable.
14528         (is_gcj_present): Update.
14529         (is_gcj_43, is_gcj43_usable): New functions.
14530         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
14531         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
14532         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
14533         try the options -fsource and -ftarget.
14534
14535 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
14536
14537         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
14538         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
14539         larger value.
14540
14541 2007-02-03  Jim Meyering  <jim@meyering.net>
14542
14543         Give tools a better chance to allocate space for very large buffers.
14544         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
14545
14546         Make pwd and readlink work also when run with an unreadable parent dir
14547         on systems with openat support.
14548         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
14549         provided getcwd function, even when we have openat support.
14550         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
14551
14552 2007-02-02  Bruno Haible  <bruno@clisp.org>
14553
14554         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
14555         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
14556         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
14557         portability problems if one of these functions is only used on specific
14558         platforms.
14559         Reported by Paul Eggert.
14560
14561 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
14562
14563         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
14564         is causing more trouble than it's curing.
14565         * lib/regex_internal.h (__mempcpy): Remove.
14566         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
14567         (and make the code a tad smaller to boot).
14568         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
14569
14570 2007-02-02  Jim Meyering  <jim@meyering.net>
14571
14572         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
14573         section, not in the Makefile.am: one.
14574
14575 2007-02-02  Eric Blake  <ebb9@byu.net>
14576
14577         * lib/strchrnul.c: Always include config.h first.
14578
14579         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
14580         gnulib strstr is not necessary here.
14581
14582 2007-02-02  Simon Josefsson  <simon@josefsson.org>
14583
14584         * m4/socklen.m4: Fix typo.
14585
14586 2007-02-02  Eric Blake  <ebb9@byu.net>
14587
14588         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
14589         * modules/netinet_in (Makefile.am): Likewise.
14590
14591 2007-02-01  Bruno Haible  <bruno@clisp.org>
14592
14593         * lib/string_.h (GL_LINK_WARNING): New macro.
14594         (strcasecmp, strstr, strcasestr): If provided by the system,
14595         conditionally define as a macro that leads to a warning instead of to
14596         an error.
14597         (strncasecmp): Conditionally define as a macro that leads to a warning.
14598
14599 2007-02-01  Karl Berry  <karl@gnu.org>
14600
14601         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
14602
14603 2007-02-01  Bruno Haible  <bruno@clisp.org>
14604
14605         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
14606         renamings.
14607
14608 2007-02-01  Eric Blake  <ebb9@byu.net>
14609
14610         * modules/regex (Depends-on): Revert dependence on mempcpy.
14611         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
14612         module's definition of mempcpy.
14613         Reported by Paul Eggert.
14614
14615 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
14616
14617         * lib/string_.h: If the gnulib module XYZ is not present, undefine
14618         the symbol XYZ before redefining it.  This fixes a problem with
14619         programs that don't use XYZ, when compiled on systems that define
14620         XYZ to something else.
14621
14622 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
14623
14624         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
14625         occurs when "mkdir -m foo" creates a setgid directory that is (1)
14626         writeable to group or other and (2) is intended to have a special
14627         mode bit that is set or cleared.  In such a case, the directory
14628         should be neither group- nor other-writeable until the special
14629         mode bits are right.
14630
14631 2007-01-31  Eric Blake  <ebb9@byu.net>
14632
14633         * modules/mountlist (Depends-on): Add strstr.
14634
14635         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
14636         bug.
14637         * modules/string (Makefile.am): Remove redundant replacement.
14638         * modules/regex (Depends-on): Add mempcpy.
14639
14640 2007-01-31  Bruno Haible  <bruno@clisp.org>
14641
14642         New module description field 'Link'.
14643         * gnulib-tool (func_usage): Document --extract-link-directive.
14644         (sed_extract_prog): Recognize 'Link' directive.
14645         (func_get_link_directive): New function.
14646         (func_import): Show summary of link directives.
14647         Handle --extract-link-directive option.
14648         * modules/acl (Link): New section.
14649         * modules/clock-time (Link): New section.
14650         * modules/euidaccess (Link): New section.
14651         * modules/gettext (Link): New section.
14652         * modules/iconv (Link): New section.
14653         * modules/lock (Link): New section.
14654         * modules/nanosleep (Link): New section.
14655         * modules/readline (Link): New section.
14656
14657 2007-01-27  Bruno Haible  <bruno@clisp.org>
14658
14659         Enforce the use of gnulib modules for unportable <string.h> functions.
14660         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
14661         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
14662         (gl_HEADER_STRING_H_BODY): Require it.
14663         * lib/string_.h: If the gnulib module XYZ is not present, redefine
14664         the symbol XYZ to one that gives a link error.
14665         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
14666         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
14667         * modules/mempcpy (configure.ac): Likewise.
14668         * modules/memrchr (configure.ac): Likewise.
14669         * modules/stpcpy (configure.ac): Likewise.
14670         * modules/stpncpy (configure.ac): Likewise.
14671         * modules/strcase (configure.ac): Likewise.
14672         * modules/strcasestr (configure.ac): Likewise.
14673         * modules/strchrnul (configure.ac): Likewise.
14674         * modules/strdup (configure.ac): Likewise.
14675         * modules/strndup (configure.ac): Likewise.
14676         * modules/strnlen (configure.ac): Likewise.
14677         * modules/strpbrk (configure.ac): Likewise.
14678         * modules/strsep (configure.ac): Likewise.
14679         * modules/strstr (configure.ac): Likewise.
14680         * modules/strtok_r (configure.ac): Likewise.
14681
14682 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
14683
14684         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
14685
14686 2007-01-30  Jim Meyering  <jim@meyering.net>
14687
14688         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
14689
14690 2007-01-29  Bruno Haible  <bruno@clisp.org>
14691
14692         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
14693         * lib/execute.c: Likewise.
14694         * lib/pipe.c: Likewise.
14695         * lib/printf-args.h: Likewise.
14696         * lib/printf-args.c: Likewise.
14697         * lib/printf-parse.c: Likewise.
14698         * lib/vasnprintf.c: Likewise.
14699
14700 2007-01-29  Eric Blake  <ebb9@byu.net>
14701
14702         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
14703         declaration.
14704
14705 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
14706
14707         * lib/strptime.h (strptime): Use 'restrict' for args where
14708         POSIX requires this.
14709         * lib/strptime.c (strptime): Likewise.
14710         Change license notice from LGPL to GPL, since gnulib-tool will
14711         change this as needed.
14712         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
14713         defined.
14714         Include "strptime.h" first, to check interface.
14715         Do not #undef _LIBC and _NL_CURRENT.
14716         Do not include <stdlib.h>; no longer needed.
14717         Include "time_r.h" and declare ptime_locale_status
14718         only if _LIBC is not defined.
14719         (__P): Remove unused macro.
14720         (match_string): Bring back glibc version, but use it only if _LIBC
14721         is defined.
14722         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
14723         Remove unnecessary assertion and abort() call.
14724         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
14725         * m4/strptime.m4: Fix serial number comment.
14726         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
14727         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
14728         (Depends-on): Add time_r.
14729
14730 2007-01-29  Bruno Haible  <bruno@clisp.org>
14731
14732         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
14733         strptime.
14734         * modules/strptime (Depends-on): Add stdbool.
14735         * lib/strptime.h: Include <time.h> always. Add comments.
14736
14737 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
14738
14739         * modules/strptime: New file.
14740         * lib/strptime.h: New file.
14741         * lib/strptime.c: New file.
14742         * m4/strptime.m4: New file.
14743
14744 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14745
14746         * MODULES.html.sh: New module mpsort.
14747         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
14748
14749         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
14750         a circularity problem with HP-UX ia64 reported by Bob Proulx in
14751         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
14752         All uses changed.
14753         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
14754         All uses changed.
14755         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
14756         to _Restrict_.
14757         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
14758         the parameter matches the prototype.
14759
14760 2007-01-28  Jim Meyering  <jim@meyering.net>
14761
14762         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
14763         sys/time.h here, reverting that part of the previous patch:
14764         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
14765
14766 2007-01-28  Bruno Haible  <bruno@clisp.org>
14767
14768         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
14769         value of $(SYS_TIME_H).
14770         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
14771         remove it conditionally, too. [added by Jim Meyering]
14772         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
14773         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
14774         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
14775         GETTIMEOFDAY_REPLACEMENT to 1.
14776
14777 2007-01-28  Bruno Haible  <bruno@clisp.org>
14778
14779         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
14780         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
14781         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
14782         Set UNISTD_H instead of UNISTD_H2.
14783         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
14784
14785 2007-01-28  Bruno Haible  <bruno@clisp.org>
14786
14787         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
14788         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
14789
14790 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14791
14792         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
14793         (func_create_testdir): Ensure C locale for `grep' and `tr'
14794         character ranges.
14795         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
14796         ACLOCAL_AMFLAGS parsing state machine.
14797
14798 2007-01-27  Bruno Haible  <bruno@clisp.org>
14799
14800         * modules/unistr/base: Update.
14801
14802 2007-01-27  Bruno Haible  <bruno@clisp.org>
14803
14804         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
14805         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
14806         * modules/unistr/u32-mbtouc-unsafe: Renamed from
14807         modules/unistr/u32-mbtouc.
14808         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
14809         * lib/unistr.h: Update.
14810         * lib/linebreak.c: Update.
14811         * modules/unistr/u32-mbtouc: Renamed from
14812         modules/unistr/u32-mbtouc-safe.
14813         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
14814         * lib/unistr.h: Update.
14815         * lib/unistr/u32-to-u8.c: Update.
14816         * lib/unistr/u32-to-u16.c: Update.
14817
14818 2007-01-27  Bruno Haible  <bruno@clisp.org>
14819
14820         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
14821         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
14822         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
14823         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
14824         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
14825         * modules/unistr/u16-mbtouc-unsafe: Renamed from
14826         modules/unistr/u16-mbtouc.
14827         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
14828         * lib/unistr.h: Update.
14829         * lib/linebreak.c: Update.
14830         * modules/linebreak: Update.
14831         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
14832         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
14833         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
14834         * modules/unistr/u16-mbtouc: Renamed from
14835         modules/unistr/u16-mbtouc-safe.
14836         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
14837         * lib/unistr.h: Update.
14838         * lib/unistr/u16-to-u8.c: Update.
14839         * modules/unistr/u16-to-u8: Update.
14840         * lib/unistr/u16-to-u32.c: Update.
14841         * modules/unistr/u16-to-u32: Update.
14842
14843 2007-01-27  Bruno Haible  <bruno@clisp.org>
14844
14845         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
14846         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
14847         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
14848         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
14849         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
14850         * modules/unistr/u8-mbtouc-unsafe: Renamed from
14851         modules/unistr/u8-mbtouc.
14852         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
14853         * lib/unistr.h: Update.
14854         * lib/striconveh.c: Update.
14855         * modules/striconveh: Update.
14856         * lib/linebreak.c: Update.
14857         * modules/linebreak: Update.
14858         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
14859         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
14860         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
14861         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
14862         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
14863         * lib/unistr.h: Update.
14864         * lib/striconveh.c: Update.
14865         * modules/striconveh: Update.
14866         * lib/unistr/u8-to-u16.c: Update.
14867         * modules/unistr/u8-to-u16: Update.
14868         * lib/unistr/u8-to-u32.c: Update.
14869         * modules/unistr/u8-to-u32: Update.
14870
14871 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14872
14873         Sync from Libtool.
14874         * lib/argz.c: Do not include strings.h nor memory.h, include
14875         string.h unconditionally.  Patch by Simon Josefsson.
14876
14877 2007-01-27  Bruno Haible  <bruno@clisp.org>
14878
14879         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
14880         from gl_HEADER_STRING_H_BODY.
14881         (gl_HEADER_STRING_H_BODY): Require it.
14882         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
14883         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
14884         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
14885         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
14886         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14887         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
14888         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14889         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
14890         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
14891         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
14892         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
14893         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
14894         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
14895         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
14896         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
14897
14898 2007-01-27  Bruno Haible  <bruno@clisp.org>
14899
14900         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
14901         check_PROGRAMS into noinst_PROGRAMS.
14902         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
14903         check_PROGRAMS in this case.
14904         (func_import): Set for_test to false.
14905         (func_create_testdir): Set for_test to true.
14906
14907 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
14908             Bruno Haible  <bruno@clisp.org>
14909
14910         * modules/strcasestr (Files): Remove lib/strcasestr.h.
14911         (Depends-on): Add string.
14912         (Includes): Use <string.h> instead of strcasestr.h.
14913         * modules/string (Makefile.am): Also substitute the value of
14914         REPLACE_STRCASESTR.
14915         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
14916         assume strcasestr is declared in <string.h> not <strings.h>. Also
14917         set REPLACE_STRCASESTR.
14918         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
14919         REPLACE_STRCASESTR.
14920         * lib/strcasestr.h: Remove file.
14921         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
14922         * lib/string_.h (strcasestr): New declaration.
14923
14924 2007-01-27  Bruno Haible  <bruno@clisp.org>
14925
14926         * lib/string_.h: Use 'extern'.
14927
14928 2007-01-27  Jim Meyering  <jim@meyering.net>
14929
14930         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
14931         of set-but-not-used local, "q".
14932
14933         * lib/mempcpy.c: Include <config.h> before <string.h>.
14934         This fixes a compilation error on HP-UX, due to the system's
14935         "restrict"-using mempcpy prototype.
14936
14937 2007-01-26  Bruno Haible  <bruno@clisp.org>
14938
14939         Small optimization.
14940         * lib/javacomp.c: Include c-strstr.h.
14941          (is_envjavac_gcj): Use c_strstr instead of strstr.
14942         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
14943
14944 2007-01-26  Bruno Haible  <bruno@clisp.org>
14945
14946         * MODULES.html.sh (Unicode string functions): Add the new modules.
14947
14948         * modules/uniconv/u32-strconv-to-locale: New file.
14949         * lib/uniconv/u32-strconv-to-locale.c: New file.
14950
14951         * modules/uniconv/u16-strconv-to-locale: New file.
14952         * lib/uniconv/u16-strconv-to-locale.c: New file.
14953
14954         * modules/uniconv/u8-strconv-to-locale: New file.
14955         * lib/uniconv/u8-strconv-to-locale.c: New file.
14956
14957         * modules/uniconv/u32-strconv-from-locale: New file.
14958         * lib/uniconv/u32-strconv-from-locale.c: New file.
14959
14960         * modules/uniconv/u16-strconv-from-locale: New file.
14961         * lib/uniconv/u16-strconv-from-locale.c: New file.
14962
14963         * modules/uniconv/u8-strconv-from-locale: New file.
14964         * lib/uniconv/u8-strconv-from-locale.c: New file.
14965
14966         * modules/uniconv/u32-strconv-to-enc: New file.
14967         * lib/uniconv/u32-strconv-to-enc.c: New file.
14968         * modules/uniconv/u32-strconv-to-enc-tests: New file.
14969         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
14970
14971         * modules/uniconv/u16-strconv-to-enc: New file.
14972         * lib/uniconv/u16-strconv-to-enc.c: New file.
14973         * lib/uniconv/u-strconv-to-enc.h: New file.
14974         * modules/uniconv/u16-strconv-to-enc-tests: New file.
14975         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
14976
14977         * modules/uniconv/u8-strconv-to-enc: New file.
14978         * lib/uniconv/u8-strconv-to-enc.c: New file.
14979         * modules/uniconv/u8-strconv-to-enc-tests: New file.
14980         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
14981
14982         * modules/uniconv/u32-strconv-from-enc: New file.
14983         * lib/uniconv/u32-strconv-from-enc.c: New file.
14984         * modules/uniconv/u32-strconv-from-enc-tests: New file.
14985         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
14986
14987         * modules/uniconv/u16-strconv-from-enc: New file.
14988         * lib/uniconv/u16-strconv-from-enc.c: New file.
14989         * modules/uniconv/u16-strconv-from-enc-tests: New file.
14990         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
14991
14992         * modules/uniconv/u8-strconv-from-enc: New file.
14993         * lib/uniconv/u8-strconv-from-enc.c: New file.
14994         * lib/uniconv/u-strconv-from-enc.h: New file.
14995         * modules/uniconv/u8-strconv-from-enc-tests: New file.
14996         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
14997
14998         * modules/uniconv/u32-conv-from-enc: New file.
14999         * lib/uniconv/u32-conv-from-enc.c: New file.
15000         * modules/uniconv/u32-conv-from-enc-tests: New file.
15001         * tests/uniconv/test-u32-conv-from-enc.c: New file.
15002
15003         * modules/uniconv/u16-conv-from-enc: New file.
15004         * lib/uniconv/u16-conv-from-enc.c: New file.
15005         * lib/uniconv/u-conv-from-enc.h: New file.
15006         * modules/uniconv/u16-conv-from-enc-tests: New file.
15007         * tests/uniconv/test-u16-conv-from-enc.c: New file.
15008
15009         * modules/uniconv/u8-conv-from-enc: New file.
15010         * lib/uniconv/u8-conv-from-enc.c: New file.
15011         * modules/uniconv/u8-conv-from-enc-tests: New file.
15012         * tests/uniconv/test-u8-conv-from-enc.c: New file.
15013
15014         * modules/uniconv/base: New file.
15015         * lib/uniconv.h: New file.
15016
15017 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
15018
15019         * doc/gnulib-tool.texi (Initial import): Update to match current
15020         behavior with strdup module.
15021         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
15022         * lib/memmem.h: Remove; all uses removed.  This is now done
15023         by <string.h>.
15024         * lib/mempcpy.h: Likewise.
15025         * lib/memrchr.h: Likewise.
15026         * lib/stpcpy.h: Likewise.
15027         * lib/stpncpy.h: Likewise.
15028         * lib/strcase.h: Likewise.
15029         * lib/strchrnul.h: Likewise.
15030         * lib/strdup.h: Likewise.
15031         * lib/strndup.h: Likewise.
15032         * lib/strnlen.h: Likewise.
15033         * lib/strpbrk.h: Likewise.
15034         * lib/strsep.h: Likewise.
15035         * lib/strstr.h: Likewise.
15036         * lib/strtok_r.h: Likewise.
15037         * lib/string_.h: New file.
15038         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
15039         Rely on <string.h> instead.
15040         * lib/canon-host.c: Likewise.
15041         * lib/chdir-long.c: Likewise.
15042         * lib/concatpath.c: Likewise.
15043         * lib/exclude.c: Likewise.
15044         * lib/fchdir.c: Likewise.
15045         * lib/getaddrinfo.c: Likewise.
15046         * lib/getcwd.c: Likewise.
15047         * lib/getsubopt.c: Likewise.
15048         * lib/glob.c: Likewise.
15049         * lib/hard-locale.c: Likewise.
15050         * lib/iconvme.c: Likewise.
15051         * lib/javacomp.c: Likewise.
15052         * lib/mempcpy.c: Likewise.
15053         * lib/memrchr.c: Likewise.
15054         * lib/regex_internal.h: Likewise.
15055         * lib/stpncpy.c: Likewise.
15056         * lib/strcasecmp.c: Likewise.
15057         * lib/strchrnul.c: Likewise.
15058         * lib/strdup.c: Likewise.
15059         * lib/striconv.c: Likewise.
15060         * lib/striconveh.c: Likewise.
15061         * lib/striconveha.c: Likewise.
15062         * lib/strncasecmp.c: Likewise.
15063         * lib/strndup.c: Likewise.
15064         * lib/strnlen.c: Likewise.
15065         * lib/strsep.c: Likewise.
15066         * lib/strstr.c: Likewise.
15067         * lib/strtok_r.c: Likewise.
15068         * lib/userspec.c: Likewise.
15069         * lib/w32spawn.h: Likewise.
15070         * lib/xstrndup.c: Likewise.
15071         * lib/mountlist.c (strstr): Remove decl.
15072         * m4/string_h.m4: New file.
15073         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
15074         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
15075         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
15076         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
15077         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
15078         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
15079         Set REPLACE_STRCASECMP if necessary.
15080         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
15081         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
15082         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
15083         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
15084         HAVE_DECL_STRDUP if necessary.
15085         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
15086         since gl_FUNC_STRNDUP does that now.
15087         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
15088         Check for decl here...
15089         (gl_PREREQ_STRNLEN): ... not here.
15090         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
15091         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
15092         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
15093         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
15094         necessary.
15095         * modules/string: New file.
15096         * modules/memmem (Files): Remove special-purpose include file.
15097         (Depends-on): Add string.
15098         (Include): Include <string.h>, not the removed file.
15099         * modules/mempcpy: Likewise.
15100         * modules/memrchr: Likewise.
15101         * modules/stpcpy: Likewise.
15102         * modules/stpncpy: Likewise.
15103         * modules/strcase: Likewise.
15104         * modules/strchrnul: Likewise.
15105         * modules/strdup: Likewise.
15106         * modules/strndup: Likewise.
15107         * modules/strnlen: Likewise.
15108         * modules/strpbrk: Likewise.
15109         * modules/strsep: Likewise.
15110         * modules/strstr: Likewise.
15111         * modules/strtok_r: Likewise.
15112         * tests/test-dirname.c: Don't include "strdup.h", since
15113         <string.h> now suffices.
15114         * tests/test-memmem.c: Don't include "memmem.h", since
15115         <string.h> now suffices.
15116
15117 2007-01-25  Bruno Haible  <bruno@clisp.org>
15118
15119         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
15120         *resultp is 0.
15121
15122         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
15123         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
15124         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
15125         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
15126
15127         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
15128         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
15129         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
15130         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
15131         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
15132         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
15133
15134 2007-01-24  Bruno Haible  <bruno@clisp.org>
15135
15136         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
15137         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
15138         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
15139         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
15140         gl_FUNC_FTS_CORE.
15141         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
15142         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
15143         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
15144         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
15145         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
15146         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
15147         gl_FUNC_FCHOWNAT.
15148         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
15149         gl_FUNC_STRFTIME.
15150         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
15151         Reported by Ralf Wildenhues.
15152
15153 2007-01-24  Bruno Haible  <bruno@clisp.org>
15154
15155         Drop AC_REQUIRE calls that are redundant with the module dependencies.
15156         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
15157         gl_GETADDRINFO.
15158         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
15159         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
15160         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
15161
15162 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
15163
15164         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
15165         Don't use 'exit'; just return from 'main'.
15166         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
15167
15168         * lib/fnmatch_.h: Readjust white space and comments to match
15169         glibc, to avoid spurious diffs.
15170
15171 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15172
15173         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
15174         2004-12-01 change by Jakub Jelinek, since this code won't compile
15175         if !LIBC.  Problem reported by Bob Proulx.
15176
15177 2007-01-23  Bruno Haible  <bruno@clisp.org>
15178
15179         * lib/striconveh.c: Include c-strcaseeq.h.
15180         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
15181         * modules/striconveh (Depends-on): Add c-strcaseeq.
15182
15183 2007-01-23  Bruno Haible  <bruno@clisp.org>
15184
15185         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
15186
15187         * modules/c-strcaseeq: New file.
15188         * lib/c-strcaseeq.h: New file.
15189
15190         * modules/streq: New file.
15191         * lib/streq.h: New file.
15192
15193 2007-01-23  Bruno Haible  <bruno@clisp.org>
15194
15195         * modules/striconveha-tests: New file.
15196         * tests/test-striconveha.c: New file.
15197
15198         * lib/striconveha.h: Include <stdbool.h>.
15199         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
15200         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
15201         (mem_iconveha_notranslit): Renamed from mem_iconveha.
15202         (mem_iconveha): New function.
15203         (str_iconveha_notranslit): Renamed from str_iconveha.
15204         (str_iconveha): New function.
15205         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
15206         c-strcase.
15207
15208 2007-01-23  Bruno Haible  <bruno@clisp.org>
15209
15210         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
15211         encodings without forgiving before trying any encoding with handler.
15212         (str_iconveha): Try all encodings without forgiving before trying any
15213         encoding with handler.
15214
15215 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15216
15217         Import the following changes from libc.
15218
15219         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
15220
15221         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
15222
15223         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
15224
15225         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
15226         normal_bracket label.
15227
15228         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
15229
15230         [BZ #361]
15231         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
15232         to normal_bracket after fetching the next character.
15233
15234 2007-01-22  Bruno Haible  <bruno@clisp.org>
15235
15236         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
15237         argument.
15238         * lib/striconveh.c (iconv_carefully_1): New function.
15239         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
15240         argument.
15241         (str_cd_iconveh): Update.
15242         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
15243         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
15244         * tests/test-striconveh.c (MAGIC): New macro.
15245         (new_offsets): New function.
15246         (main): Test call with and without offsets.
15247
15248 2007-01-22  Bruno Haible  <bruno@clisp.org>
15249
15250         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
15251         * modules/sys_select (Makefile.am): Likewise.
15252         * modules/sys_socket (Makefile.am): Likewise.
15253         * modules/sys_time (Makefile.am): Likewise.
15254
15255 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
15256
15257         * modules/gettimeofday (License): Change from GPL to LGPL, since
15258         gettimeofday is a library function.
15259
15260 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15261
15262         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
15263
15264 2007-01-21  Bruno Haible  <bruno@clisp.org>
15265
15266         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
15267
15268 2007-01-21  Bruno Haible  <bruno@clisp.org>
15269
15270         * modules/striconveha: New file.
15271         * lib/striconveha.h: New file.
15272         * lib/striconveha.c: New file.
15273         * MODULES.html.sh (Internationalization functions): Add striconveha.
15274         * lib/striconv.c (str_iconv): Optimize the case of an empty input
15275         string.
15276         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
15277
15278 2007-01-21  Bruno Haible  <bruno@clisp.org>
15279
15280         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
15281         * lib/striconveh.c (str_iconveh): Likewise.
15282
15283 2007-01-21  Bruno Haible  <bruno@clisp.org>
15284
15285         * lib/striconveh.h (mem_iconveh): New declaration.
15286         * lib/striconveh.c (mem_iconveh): New function.
15287         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
15288
15289 2007-01-21  Bruno Haible  <bruno@clisp.org>
15290
15291         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
15292
15293         * lib/striconveh.h (mem_cd_iconveh): Change specification.
15294         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
15295         original result buffer.
15296         (str_cd_iconveh): Update.
15297         * tests/test-striconveh.c (main): Update.
15298
15299         * lib/striconv.h (mem_cd_iconv): Change specification.
15300         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
15301         result buffer.
15302         (str_cd_iconv): Update.
15303         * tests/test-striconv.c (main): Update.
15304
15305 2007-01-21  Bruno Haible  <bruno@clisp.org>
15306
15307         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
15308
15309 2007-01-20  Jim Meyering  <jim@meyering.net>
15310
15311         * lib/userspec.c (parse_with_separator): If a user or group string
15312         starts with "+", skip the corresponding name-to-ID look-up, since
15313         such a look-up must fail: user and group names may not include "+".
15314
15315 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15316
15317         * lib/poll.c: Include sys/time.h and time.h unconditionally,
15318         since we now assume the sys_time module.
15319         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
15320         check for sys/time.h; no longer needed.
15321         * modules/poll (Depends-on): Depend on sys_time.
15322
15323 2007-01-18  Bruno Haible  <bruno@clisp.org>
15324
15325         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
15326         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
15327
15328         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
15329         gettimeofday.
15330
15331         * tests/test-gettimeofday.c: Include <time.h>.
15332         (dummy): Remove variable.
15333
15334         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
15335         gl_HEADER_SYS_TIME_H.
15336         (gl_HEADER_SYS_TIME_H): New macro.
15337
15338         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
15339         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15340         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
15341         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
15342         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15343         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
15344         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
15345         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15346         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
15347         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
15348         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15349
15350         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
15351         last change; it caused a compilation error when cross-compiling to
15352         Cygwin.
15353
15354 2007-01-18  Jim Meyering  <jim@meyering.net>
15355
15356         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
15357         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
15358         than the race-prone "test -d sys || mkdir sys".
15359         (configure.ac): Use AC_PROG_MKDIR_P.
15360         * modules/sys_select: Likewise.
15361         * modules/sys_socket: Likewise.
15362         * modules/sys_time: Likewise.
15363
15364 2007-01-18  Eric Blake  <ebb9@byu.net>
15365
15366         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
15367         replace gettimeofday.
15368         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
15369         name, to avoid infinite recursion.
15370
15371 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
15372
15373         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
15374         module sys_time.
15375         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
15376         assume timespec.h defines struct timeval.
15377         * lib/settime.c: Likewise.
15378         * lib/utimens.c: Likewise.
15379         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
15380         since we now assume the gettimeofday module.
15381         * lib/tempname.c (__gen_tempname): Likewise.
15382         * lib/gettimeofday.h: Remove.
15383         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
15384         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
15385         Include <time.h>, for 'time()'.
15386         (localtime_buffer_addr): Also use this workaround if
15387         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
15388         to simplify the uses.  All uses changed.
15389         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
15390         that #undef is inside {}, and 'const' follows type name consistently.
15391         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
15392         (gettimeofday): Do not use the maximum possible value for
15393         tv->tv_usec, since that might break usages other than ls.c.
15394         Instead, we'll leave ls.c alone.  This undoes today's patch
15395         by Bruno.  Add a compile-time warning for 1s-clock resolution;
15396         we've never observed the problem but might as well keep the
15397         canary.
15398         * lib/nanosleep.c: Include timespec.h first, for interface check.
15399         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
15400         now assume the sys_time module.
15401         * lib/tempname.c: Likewise.
15402         * lib/timespec.h: Likewise.
15403         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
15404         needed.
15405         * lib/strftime.c: Likewise.
15406         * lib/timespec.h: Likewise.
15407         * lib/posixtm.c: Include posixtm.h first, for interface check.
15408         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
15409         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
15410         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
15411         * lib/sys_time_.h: New file.
15412         * lib/timespec.h (struct timespec): Use long int, not long.
15413         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
15414         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
15415         Remove obsolescent call to AC_HEADER_TIME.
15416         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15417         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15418         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
15419         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
15420         Likewise.
15421         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
15422         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
15423         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
15424         into the sys_time module.  Check for gettimeofday just once.
15425         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
15426         for gettimeofday signature to just check the signature.  Merely
15427         compile it, since linking doesn't test signature.  Improve test for
15428         whether gettimeofday.o is actually needed.
15429         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
15430         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
15431         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
15432         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15433         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
15434         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
15435         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
15436         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
15437         than worrying about sys/time.h.
15438         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
15439         Don't bother worrying about TIME_WITH_SYS_TIME.
15440         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
15441         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
15442         * m4/sys_time_h.m4: New file.
15443         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
15444         Don't include sys/time.h.  Return from main rather than exiting.
15445         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
15446         all uses changed.
15447         * modules/gethrxtime (Depends-on): Add sys_time.
15448         * modules/gettime (Depends-on): Likewise.
15449         * modules/gettimeofday (Depends-on): Likewise.
15450         * modules/nanosleep (Depends-on): Likewise.
15451         * modules/settime (Depends-on): Likewise.
15452         * modules/tempname (Depends-on): Likewise.
15453         * modules/utimens (Depends-on): Likewise.
15454         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
15455         (Include:) Change back to <sys/time.h>.
15456         (Maintainer:) Add self.
15457         * modules/sys_time: New file.
15458         * modules/tempname (Depends-on): Add gettimeofday.
15459         * tests/test-gettimeofday.c: Include <sys/time.h>
15460         rather than gettimeofday.h.
15461
15462 2007-01-17  Bruno Haible  <bruno@clisp.org>
15463
15464         * gnulib-tool (func_get_license): Revert last patch. Instead, let
15465         the license default to GPL.
15466         (func_create_testdir): Don't complain if a module is LGPL and its
15467         tests module depends on GPLed modules.
15468
15469 2007-01-17  Bruno Haible  <bruno@clisp.org>
15470
15471         * lib/gettimeofday.c (gettimeofday): Add code for the case
15472         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
15473         maximum possible value for tv->tv_usec, rather than the minimum one.
15474
15475 2005-10-08  Martin Lambers  <marlam@marlam.de>
15476 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15477 2007-01-16  Bruno Haible  <bruno@clisp.org>
15478
15479         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
15480         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
15481         gl_FUNC_GETTIMEOFDAY.
15482         (Include): Add gettimeofday.h.
15483         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
15484         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
15485         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
15486         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
15487         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
15488         * lib/gettimeofday.h: New file.
15489         * lib/gettimeofday.c: Include <sys/timeb.h>.
15490         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
15491         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15492         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
15493         fall back on time().
15494
15495         * tests/test-gettimeofday.c: New file.
15496         * modules/gettimeofday-tests: New file.
15497
15498 2007-01-16  Eric Blake  <ebb9@byu.net>
15499
15500         * modules/fnmatch (Depends-on): Depend on wchar.
15501         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
15502         * m4/fnmatch.m4: Likewise.
15503         * modules/mbchar (Makefile.am): Assume <wchar.h>.
15504         * m4/mbchar.m4: Likewise.
15505         * modules/mbswidth (Depends-on): Depend on wchar.
15506         * lib/mbswidth.c: Assume <wchar.h>.
15507         * m4/mbswidth.m4: Likewise.
15508         * modules/quotearg (Depends-on): Depend on wchar.
15509         * lib/quotearg.c: Assume <wchar.h>.
15510         * m4/quotearg.m4: Likewise.
15511         * modules/regex (Depends-on): Depend on wchar.
15512         * lib/regex_internal.h: Assume <wchar.h>.
15513         * m4/regex.m4: Likewise.
15514         * modules/stdint (Depends-on): Depend on wchar.
15515         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
15516         * m4/stdint.m4: Likewise.
15517         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
15518         * modules/strftime (Depends-on): Depend on wchar.
15519         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
15520         * modules/strtol (Depends-on): Depend on wchar.
15521         * lib/strtol.c: Assume <wchar.h>.
15522         * modules/wcwidth (Depends-on): Depend on wchar.
15523         * lib/wcwidth.h: Assume <wchar.h>.
15524         * m4/wcwidth.m4: Likewise.
15525
15526 2007-01-16  Bruno Haible  <bruno@clisp.org>
15527
15528         * modules/csharpexec-script: New, created from...
15529         * modules/csharpexec: ... this.
15530
15531 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
15532
15533         * modules/javaexec-script: New, created from...
15534         * modules/javaexec: ... this.
15535
15536 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15537
15538         * modules/poll (Dependencies): Add sys_select.
15539
15540 2007-01-15  Jim Meyering  <jim@meyering.net>
15541
15542         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
15543         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
15544         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
15545         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
15546
15547 2007-01-15  Bruno Haible  <bruno@clisp.org>
15548
15549         * modules/striconveh: New file.
15550         * lib/striconveh.h: New file.
15551         * lib/striconveh.c: New file.
15552         * MODULES.html.sh (Internationalization functions): Add striconveh.
15553
15554         * modules/striconveh-tests: New file.
15555         * tests/test-striconveh.c: New file.
15556
15557 2007-01-15  Bruno Haible  <bruno@clisp.org>
15558
15559         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
15560         not from GNU libiconv or GNU libc.
15561
15562 2007-01-15  Bruno Haible  <bruno@clisp.org>
15563
15564         * doc/gnulib-intro.texi (Copyright): Explain the different license
15565         terms for module descriptions, autoconf macros, tests, documentation.
15566
15567 2007-01-14  Bruno Haible  <bruno@clisp.org>
15568
15569         * modules/striconv-tests: New file.
15570         * tests/test-striconv.c: New file.
15571
15572 2007-01-14  Bruno Haible  <bruno@clisp.org>
15573
15574         * modules/iconv-tests: New file.
15575         * tests/test-iconv.c: New file.
15576
15577 2007-01-14  Bruno Haible  <bruno@clisp.org>
15578
15579         * gnulib-tool (func_get_license): For test modules, use the license of
15580         the main module.
15581
15582 2007-01-14  Bruno Haible  <bruno@clisp.org>
15583
15584         * modules/iconv (Include): Clarify that <iconv.h> can only be included
15585         if iconv is found to exist.
15586
15587 2007-01-14  Bruno Haible  <bruno@clisp.org>
15588
15589         * modules/c-ctype-tests: New file.
15590         * tests/test-c-ctype.c: New file.
15591
15592 2007-01-14  Bruno Haible  <bruno@clisp.org>
15593
15594         * modules/binary-io-tests: New file.
15595         * tests/test-binary-io.sh: New file.
15596         * tests/test-binary-io.c: New file.
15597
15598 2007-01-14  Bruno Haible  <bruno@clisp.org>
15599
15600         * modules/array-oset-tests: New file.
15601         * tests/test-array_oset.c: New file.
15602
15603 2007-01-14  Bruno Haible  <bruno@clisp.org>
15604
15605         * modules/array-list-tests: New file.
15606         * tests/test-array_list.c: New file.
15607
15608 2007-01-14  Bruno Haible  <bruno@clisp.org>
15609
15610         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
15611         and make.
15612         Reported by Simon Josefsson in
15613         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
15614
15615 2007-01-14  Bruno Haible  <bruno@clisp.org>
15616
15617         * modules/allocsa-tests: New file.
15618         * tests/test-allocsa.c: New file.
15619
15620 2007-01-14  Bruno Haible  <bruno@clisp.org>
15621
15622         * modules/fchdir (Depends-on): Add absolute-header.
15623         * modules/unistd (Depends-on): Likewise.
15624
15625 2006-12-30  Bruno Haible  <bruno@clisp.org>
15626
15627         * modules/fchdir: New file.
15628         * modules/unistd (Files): Add lib/unistd_.h.
15629         (Makefile.am): Generate unistd.h from unistd_.h.
15630         * lib/fchdir.c: New file.
15631         * lib/dirent_.h: New file.
15632         * lib/unistd_.h: New file.
15633         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
15634         * m4/fchdir.m4: New file.
15635         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
15636         (gl_HEADER_UNISTD): Invoke it.
15637         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
15638         function.
15639         * lib/backupfile.c (opendir, closedir): Undefine.
15640         * lib/chown.c (open, close): Undefine.
15641         * lib/clean-temp.c (open, close): Undefine.
15642         * lib/copy-file.c (open, close): Undefine.
15643         * lib/execute.c (open, close): Undefine.
15644         * lib/fsusage.c (open, close): Undefine.
15645         * lib/gc-gnulib.c (open, close): Undefine.
15646         * lib/getcwd.c (opendir, closedir): Undefine.
15647         * lib/glob.c (opendir, closedir): Undefine.
15648         * lib/javacomp.c (open, close): Undefine.
15649         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
15650         * lib/openat-proc.c (open, close): Undefine.
15651         * lib/pagealign_alloc.c (open, close): Undefine.
15652         * lib/pipe.c (open, close): Undefine.
15653         * lib/progreloc.c (open, close): Undefine.
15654         * lib/savedir.c (opendir, closedir): Undefine.
15655         * lib/utime.c (open, close): Undefine.
15656         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
15657
15658 2007-01-10  Bruno Haible  <bruno@clisp.org>
15659
15660         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
15661
15662 2007-01-12  Eric Blake  <ebb9@byu.net>
15663
15664         Provide a robust <wchar.h>.  Further simplifications are now
15665         possible in other modules, but not included here.
15666         * modules/wchar: New module.
15667         * m4/wchar.m4: New file.
15668         * lib/wchar_.h: Likewise.
15669         * modules/mbchar (Depends-on): Depend on wchar, as the first use
15670         of the new module.
15671         * MODULES.html.sh (Extended multibyte and wide character utilities):
15672         New section.
15673
15674 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
15675
15676         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
15677         to a reasonable default for memory allocation.
15678         (xreadlink): Don't allocate a huge buffer, to work around a buggy
15679         file system that reports garbage st_size values for symlinks.
15680         Problem reported by Liyang Hu.
15681
15682 2007-01-11  Simon Josefsson  <simon@josefsson.org>
15683
15684         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
15685         Emacs .#* auto-save files).
15686
15687 2007-01-11  Bruno Haible  <bruno@clisp.org>
15688
15689         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
15690         directory.
15691
15692 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
15693
15694         Use @...@ consistently in lib/wctype_.h.
15695         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
15696         on it being set to 1 or 0.
15697         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
15698         go back to AC_SUBSTing it.
15699         * modules/wctype (Makefile.am): Undo previous change.
15700
15701 2007-01-10  Eric Blake  <ebb9@byu.net>
15702
15703         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
15704         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
15705         * modules/wctype (Makefile.am): Likewise.
15706         Reported by Chris McGuire.
15707
15708 2007-01-10  Jim Meyering  <jim@meyering.net>
15709
15710         fts.c: a small readability/maintainability improvement
15711         * lib/fts.c (fts_read): Make this code slightly more readable and
15712         maintainable by hoisting the "sp->fts_cur = p" assignments to
15713         immediately follow the statements that set P.  Derived from
15714         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
15715
15716 2007-01-10  Eric Blake  <ebb9@byu.net>
15717
15718         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
15719         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
15720         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15721         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
15722         Reported by Chris McGuire.
15723
15724 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15725
15726         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
15727         in sed script.
15728
15729 2007-01-09  Bruno Haible  <bruno@clisp.org>
15730
15731         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
15732         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
15733         variables.
15734         (func_module): Use them.
15735
15736 2007-01-09  Bruno Haible  <bruno@clisp.org>
15737
15738         * modules/unistr/base: New file.
15739         * lib/unistr.h: New file.
15740
15741         * modules/unistr/u8-to-u16: New file.
15742         * lib/unistr/u8-to-u16.c: New file.
15743
15744         * modules/unistr/u8-to-u32: New file.
15745         * lib/unistr/u8-to-u32.c: New file.
15746
15747         * modules/unistr/u16-to-u8: New file.
15748         * lib/unistr/u16-to-u8.c: New file.
15749
15750         * modules/unistr/u16-to-u32: New file.
15751         * lib/unistr/u16-to-u32.c: New file.
15752
15753         * modules/unistr/u32-to-u8: New file.
15754         * lib/unistr/u32-to-u8.c: New file.
15755
15756         * modules/unistr/u32-to-u16: New file.
15757         * lib/unistr/u32-to-u16.c: New file.
15758
15759         * modules/unistr/u8-check: New file.
15760         * modules/unistr/u16-check: New file.
15761         * modules/unistr/u32-check: New file.
15762         * lib/unistr/u8-check.c: New file.
15763         * lib/unistr/u16-check.c: New file.
15764         * lib/unistr/u32-check.c: New file.
15765
15766         * modules/unistr/u8-chr: New file.
15767         * modules/unistr/u16-chr: New file.
15768         * modules/unistr/u32-chr: New file.
15769         * lib/unistr/u8-chr.c: New file.
15770         * lib/unistr/u16-chr.c: New file.
15771         * lib/unistr/u32-chr.c: New file.
15772
15773         * modules/unistr/u8-cmp: New file.
15774         * modules/unistr/u16-cmp: New file.
15775         * modules/unistr/u32-cmp: New file.
15776         * lib/unistr/u8-cmp.c: New file.
15777         * lib/unistr/u16-cmp.c: New file.
15778         * lib/unistr/u32-cmp.c: New file.
15779
15780         * modules/unistr/u8-cpy: New file.
15781         * modules/unistr/u16-cpy: New file.
15782         * modules/unistr/u32-cpy: New file.
15783         * lib/unistr/u8-cpy.c: New file.
15784         * lib/unistr/u16-cpy.c: New file.
15785         * lib/unistr/u32-cpy.c: New file.
15786         * lib/unistr/u-cpy.h: New file.
15787
15788         * modules/unistr/u8-cpy-alloc: New file.
15789         * modules/unistr/u16-cpy-alloc: New file.
15790         * modules/unistr/u32-cpy-alloc: New file.
15791         * lib/unistr/u8-cpy-alloc.c: New file.
15792         * lib/unistr/u16-cpy-alloc.c: New file.
15793         * lib/unistr/u32-cpy-alloc.c: New file.
15794         * lib/unistr/u-cpy-alloc.h: New file.
15795
15796         * modules/unistr/u8-endswith: New file.
15797         * modules/unistr/u16-endswith: New file.
15798         * modules/unistr/u32-endswith: New file.
15799         * lib/unistr/u8-endswith.c: New file.
15800         * lib/unistr/u16-endswith.c: New file.
15801         * lib/unistr/u32-endswith.c: New file.
15802         * lib/unistr/u-endswith.h: New file.
15803
15804         * modules/unistr/u8-mblen: New file.
15805         * modules/unistr/u16-mblen: New file.
15806         * modules/unistr/u32-mblen: New file.
15807         * lib/unistr/u8-mblen.c: New file.
15808         * lib/unistr/u16-mblen.c: New file.
15809         * lib/unistr/u32-mblen.c: New file.
15810
15811         * modules/unistr/u8-mbtouc: New file.
15812         * modules/unistr/u16-mbtouc: New file.
15813         * modules/unistr/u32-mbtouc: New file.
15814         * lib/unistr/u8-mbtouc.c: New file.
15815         * lib/unistr/u16-mbtouc.c: New file.
15816         * lib/unistr/u32-mbtouc.c: New file.
15817
15818         * modules/unistr/u8-mbtouc-safe: New file.
15819         * modules/unistr/u16-mbtouc-safe: New file.
15820         * modules/unistr/u32-mbtouc-safe: New file.
15821         * lib/unistr/u8-mbtouc-safe.c: New file.
15822         * lib/unistr/u16-mbtouc-safe.c: New file.
15823         * lib/unistr/u32-mbtouc-safe.c: New file.
15824
15825         * modules/unistr/u8-move: New file.
15826         * modules/unistr/u16-move: New file.
15827         * modules/unistr/u32-move: New file.
15828         * lib/unistr/u8-move.c: New file.
15829         * lib/unistr/u16-move.c: New file.
15830         * lib/unistr/u32-move.c: New file.
15831         * lib/unistr/u-move.h: New file.
15832
15833         * modules/unistr/u8-next: New file.
15834         * modules/unistr/u16-next: New file.
15835         * modules/unistr/u32-next: New file.
15836         * lib/unistr/u8-next.c: New file.
15837         * lib/unistr/u16-next.c: New file.
15838         * lib/unistr/u32-next.c: New file.
15839
15840         * modules/unistr/u8-prev: New file.
15841         * modules/unistr/u16-prev: New file.
15842         * modules/unistr/u32-prev: New file.
15843         * lib/unistr/u8-prev.c: New file.
15844         * lib/unistr/u16-prev.c: New file.
15845         * lib/unistr/u32-prev.c: New file.
15846
15847         * modules/unistr/u8-set: New file.
15848         * modules/unistr/u16-set: New file.
15849         * modules/unistr/u32-set: New file.
15850         * lib/unistr/u8-set.c: New file.
15851         * lib/unistr/u16-set.c: New file.
15852         * lib/unistr/u32-set.c: New file.
15853         * lib/unistr/u-set.h: New file.
15854
15855         * modules/unistr/u8-startswith: New file.
15856         * modules/unistr/u16-startswith: New file.
15857         * modules/unistr/u32-startswith: New file.
15858         * lib/unistr/u8-startswith.c: New file.
15859         * lib/unistr/u16-startswith.c: New file.
15860         * lib/unistr/u32-startswith.c: New file.
15861         * lib/unistr/u-startswith.h: New file.
15862
15863         * modules/unistr/u8-stpcpy: New file.
15864         * modules/unistr/u16-stpcpy: New file.
15865         * modules/unistr/u32-stpcpy: New file.
15866         * lib/unistr/u8-stpcpy.c: New file.
15867         * lib/unistr/u16-stpcpy.c: New file.
15868         * lib/unistr/u32-stpcpy.c: New file.
15869         * lib/unistr/u-stpcpy.h: New file.
15870
15871         * modules/unistr/u8-stpncpy: New file.
15872         * modules/unistr/u16-stpncpy: New file.
15873         * modules/unistr/u32-stpncpy: New file.
15874         * lib/unistr/u8-stpncpy.c: New file.
15875         * lib/unistr/u16-stpncpy.c: New file.
15876         * lib/unistr/u32-stpncpy.c: New file.
15877         * lib/unistr/u-stpncpy.h: New file.
15878
15879         * modules/unistr/u8-strcat: New file.
15880         * modules/unistr/u16-strcat: New file.
15881         * modules/unistr/u32-strcat: New file.
15882         * lib/unistr/u8-strcat.c: New file.
15883         * lib/unistr/u16-strcat.c: New file.
15884         * lib/unistr/u32-strcat.c: New file.
15885         * lib/unistr/u-strcat.h: New file.
15886
15887         * modules/unistr/u8-strchr: New file.
15888         * modules/unistr/u16-strchr: New file.
15889         * modules/unistr/u32-strchr: New file.
15890         * lib/unistr/u8-strchr.c: New file.
15891         * lib/unistr/u16-strchr.c: New file.
15892         * lib/unistr/u32-strchr.c: New file.
15893
15894         * modules/unistr/u8-strcmp: New file.
15895         * modules/unistr/u16-strcmp: New file.
15896         * modules/unistr/u32-strcmp: New file.
15897         * lib/unistr/u8-strcmp.c: New file.
15898         * lib/unistr/u16-strcmp.c: New file.
15899         * lib/unistr/u32-strcmp.c: New file.
15900
15901         * modules/unistr/u8-strcpy: New file.
15902         * modules/unistr/u16-strcpy: New file.
15903         * modules/unistr/u32-strcpy: New file.
15904         * lib/unistr/u8-strcpy.c: New file.
15905         * lib/unistr/u16-strcpy.c: New file.
15906         * lib/unistr/u32-strcpy.c: New file.
15907         * lib/unistr/u-strcpy.h: New file.
15908
15909         * modules/unistr/u8-strcspn: New file.
15910         * modules/unistr/u16-strcspn: New file.
15911         * modules/unistr/u32-strcspn: New file.
15912         * lib/unistr/u8-strcspn.c: New file.
15913         * lib/unistr/u16-strcspn.c: New file.
15914         * lib/unistr/u32-strcspn.c: New file.
15915         * lib/unistr/u-strcspn.h: New file.
15916
15917         * modules/unistr/u8-strdup: New file.
15918         * modules/unistr/u16-strdup: New file.
15919         * modules/unistr/u32-strdup: New file.
15920         * lib/unistr/u8-strdup.c: New file.
15921         * lib/unistr/u16-strdup.c: New file.
15922         * lib/unistr/u32-strdup.c: New file.
15923         * lib/unistr/u-strdup.h: New file.
15924
15925         * modules/unistr/u8-strlen: New file.
15926         * modules/unistr/u16-strlen: New file.
15927         * modules/unistr/u32-strlen: New file.
15928         * lib/unistr/u8-strlen.c: New file.
15929         * lib/unistr/u16-strlen.c: New file.
15930         * lib/unistr/u32-strlen.c: New file.
15931         * lib/unistr/u-strlen.h: New file.
15932
15933         * modules/unistr/u8-strmblen: New file.
15934         * modules/unistr/u16-strmblen: New file.
15935         * modules/unistr/u32-strmblen: New file.
15936         * lib/unistr/u8-strmblen.c: New file.
15937         * lib/unistr/u16-strmblen.c: New file.
15938         * lib/unistr/u32-strmblen.c: New file.
15939
15940         * modules/unistr/u8-strmbtouc: New file.
15941         * modules/unistr/u16-strmbtouc: New file.
15942         * modules/unistr/u32-strmbtouc: New file.
15943         * lib/unistr/u8-strmbtouc.c: New file.
15944         * lib/unistr/u16-strmbtouc.c: New file.
15945         * lib/unistr/u32-strmbtouc.c: New file.
15946
15947         * modules/unistr/u8-strncat: New file.
15948         * modules/unistr/u16-strncat: New file.
15949         * modules/unistr/u32-strncat: New file.
15950         * lib/unistr/u8-strncat.c: New file.
15951         * lib/unistr/u16-strncat.c: New file.
15952         * lib/unistr/u32-strncat.c: New file.
15953         * lib/unistr/u-strncat.h: New file.
15954
15955         * modules/unistr/u8-strncmp: New file.
15956         * modules/unistr/u16-strncmp: New file.
15957         * modules/unistr/u32-strncmp: New file.
15958         * lib/unistr/u8-strncmp.c: New file.
15959         * lib/unistr/u16-strncmp.c: New file.
15960         * lib/unistr/u32-strncmp.c: New file.
15961
15962         * modules/unistr/u8-strncpy: New file.
15963         * modules/unistr/u16-strncpy: New file.
15964         * modules/unistr/u32-strncpy: New file.
15965         * lib/unistr/u8-strncpy.c: New file.
15966         * lib/unistr/u16-strncpy.c: New file.
15967         * lib/unistr/u32-strncpy.c: New file.
15968         * lib/unistr/u-strncpy.h: New file.
15969
15970         * modules/unistr/u8-strnlen: New file.
15971         * modules/unistr/u16-strnlen: New file.
15972         * modules/unistr/u32-strnlen: New file.
15973         * lib/unistr/u8-strnlen.c: New file.
15974         * lib/unistr/u16-strnlen.c: New file.
15975         * lib/unistr/u32-strnlen.c: New file.
15976         * lib/unistr/u-strnlen.h: New file.
15977
15978         * modules/unistr/u8-strpbrk: New file.
15979         * modules/unistr/u16-strpbrk: New file.
15980         * modules/unistr/u32-strpbrk: New file.
15981         * lib/unistr/u8-strpbrk.c: New file.
15982         * lib/unistr/u16-strpbrk.c: New file.
15983         * lib/unistr/u32-strpbrk.c: New file.
15984         * lib/unistr/u-strpbrk.h: New file.
15985
15986         * modules/unistr/u8-strrchr: New file.
15987         * modules/unistr/u16-strrchr: New file.
15988         * modules/unistr/u32-strrchr: New file.
15989         * lib/unistr/u8-strrchr.c: New file.
15990         * lib/unistr/u16-strrchr.c: New file.
15991         * lib/unistr/u32-strrchr.c: New file.
15992
15993         * modules/unistr/u8-strspn: New file.
15994         * modules/unistr/u16-strspn: New file.
15995         * modules/unistr/u32-strspn: New file.
15996         * lib/unistr/u8-strspn.c: New file.
15997         * lib/unistr/u16-strspn.c: New file.
15998         * lib/unistr/u32-strspn.c: New file.
15999         * lib/unistr/u-strspn.h: New file.
16000
16001         * modules/unistr/u8-strstr: New file.
16002         * modules/unistr/u16-strstr: New file.
16003         * modules/unistr/u32-strstr: New file.
16004         * lib/unistr/u8-strstr.c: New file.
16005         * lib/unistr/u16-strstr.c: New file.
16006         * lib/unistr/u32-strstr.c: New file.
16007         * lib/unistr/u-strstr.h: New file.
16008
16009         * modules/unistr/u8-strtok: New file.
16010         * modules/unistr/u16-strtok: New file.
16011         * modules/unistr/u32-strtok: New file.
16012         * lib/unistr/u8-strtok.c: New file.
16013         * lib/unistr/u16-strtok.c: New file.
16014         * lib/unistr/u32-strtok.c: New file.
16015         * lib/unistr/u-strtok.h: New file.
16016
16017         * modules/unistr/u8-uctomb: New file.
16018         * modules/unistr/u16-uctomb: New file.
16019         * modules/unistr/u32-uctomb: New file.
16020         * lib/unistr/u8-uctomb.c: New file.
16021         * lib/unistr/u16-uctomb.c: New file.
16022         * lib/unistr/u32-uctomb.c: New file.
16023
16024         * MODULES.html.sh (Unicode string functions): Add the new modules.
16025
16026 2007-01-08  Bruno Haible  <bruno@clisp.org>
16027
16028         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
16029         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
16030         subdirectories.
16031
16032 2007-01-08  Karl Berry  <karl@gnu.org>
16033
16034         * doc/error.texi: mention that main() fns must set program_name
16035         when progname is used.
16036
16037 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
16038
16039         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
16040         WCTYPE_H is empty, for the benefit of builds from non-distclean
16041         directories.  Problem reported by Eric Blake in
16042         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
16043
16044 2007-01-08  Bruno Haible  <bruno@clisp.org>
16045
16046         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
16047         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
16048         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
16049         PROVIDE_CANONICALIZE_FILENAME_MODE.
16050         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
16051
16052 2007-01-08  Bruno Haible  <bruno@clisp.org>
16053
16054         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
16055         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
16056         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
16057         * lib/fts.c: Likewise.
16058         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
16059
16060 2006-12-25  Bruno Haible  <bruno@clisp.org>
16061
16062         * modules/utf8-ucs4-safe: New file.
16063         * lib/utf8-ucs4-safe.h: New file.
16064         * lib/unistr/utf8-ucs4-safe.c: New file.
16065
16066         * modules/utf16-ucs4-safe: New file.
16067         * lib/utf16-ucs4-safe.h: New file.
16068         * lib/unistr/utf16-ucs4-safe.c: New file.
16069
16070         * MODULES.html.sh (Unicode string functions): Add the new modules.
16071
16072 2007-01-08  Bruno Haible  <bruno@clisp.org>
16073
16074         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
16075         (Depends-on): Add unitypes.
16076         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
16077         (u8_mbtouc_aux): Move out to separate file.
16078         (u8_mbtouc): Use ucs4_t, uint8_t types.
16079         * lib/unistr/utf8-ucs4.c: New file.
16080
16081         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
16082         (Depends-on): Add unitypes.
16083         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
16084         (u16_mbtouc_aux): Move out to separate file.
16085         (u16_mbtouc): Use ucs4_t, uint16_t types.
16086         * lib/unistr/utf16-ucs4.c: New file.
16087
16088         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
16089         (Depends-on): Add unitypes.
16090         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
16091         (u8_uctomb_aux): Move out to separate file.
16092         (u8_uctomb): Use ucs4_t, uint8_t types.
16093         * lib/unistr/ucs4-utf8.c: New file.
16094
16095         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
16096         (Depends-on): Add unitypes.
16097         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
16098         (u16_uctomb_aux): Move out to separate file.
16099         (u16_uctomb): Use ucs4_t, uint16_t types.
16100         * lib/unistr/ucs4-utf16.c: New file.
16101
16102 2006-12-25  Bruno Haible  <bruno@clisp.org>
16103
16104         * modules/unitypes: New file.
16105         * lib/unitypes.h: New file.
16106         * MODULES.html.sh (func_all_modules): New section "Unicode string
16107         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
16108         this section. Add unitypes.
16109
16110 2007-01-08  Bruno Haible  <bruno@clisp.org>
16111
16112         Avoid variable names that conflict with those from libtool.
16113         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
16114         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
16115         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
16116         library_names_spec to acl_library_names_spec, hardcode_* to
16117         acl_hardcode_*.
16118         Reported by Ralf Wildenhues.
16119
16120 2007-01-08  Bruno Haible  <bruno@clisp.org>
16121
16122         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
16123         definition.
16124         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
16125         definition.
16126         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
16127         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
16128         definition.
16129         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
16130         definition.
16131         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
16132         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
16133         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
16134         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
16135         definition.
16136         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
16137         definition.
16138         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
16139         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
16140         GC_USE_<algorithm>.
16141         * lib/gc-libgcrypt.c: Likewise.
16142         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
16143         * modules/gc-arctwo (configure.ac): Likewise.
16144         * modules/gc-des (configure.ac): Likewise.
16145         * modules/gc-hmac-md5 (configure.ac): Likewise.
16146         * modules/gc-hmac-sha1 (configure.ac): Likewise.
16147         * modules/gc-md2 (configure.ac): Likewise.
16148         * modules/gc-md4 (configure.ac): Likewise.
16149         * modules/gc-md5 (configure.ac): Likewise.
16150         * modules/gc-random (configure.ac): Likewise.
16151         * modules/gc-rijndael (configure.ac): Likewise.
16152         * modules/gc-sha1 (configure.ac): Likewise.
16153
16154 2007-01-08  Bruno Haible  <bruno@clisp.org>
16155
16156         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
16157         macro definition.
16158         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
16159         definition.
16160         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
16161         definition.
16162         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
16163         * modules/fcntl-safer (configure.ac): Likewise.
16164         * modules/fopen-safer (configure.ac): Likewise.
16165         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
16166         GNULIB_FWRITEERROR macro definition.
16167
16168 2007-01-08  Bruno Haible  <bruno@clisp.org>
16169
16170         * m4/gnulib-common.m4: New file.
16171         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
16172         (func_get_filelist): Add m4/gnulib-common.m4.
16173
16174 2007-01-08  Bruno Haible  <bruno@clisp.org>
16175
16176         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
16177         command.
16178
16179 2007-01-08  Jim Meyering  <jim@meyering.net>
16180
16181         Use a more robust test for a "can't happen" condition.
16182         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
16183         narrowed the st_size value.  Presuming the "can't happen" condition
16184         is true, that narrowing could conceivably convert an invalid st_size
16185         value into a valid one.  Instead, use a change based on Matthew
16186         Woehlke's original patch.
16187
16188         Slight readability improvement: use an assert-like macro
16189         in place of literal "abort ()" uses.
16190         * lib/fts.c (fts_assert): Define.
16191         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
16192         Use this macro instead of a bare 'abort'.
16193
16194 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
16195
16196         Don't worry about using IRIX 5.3's wctype.h broken definitions;
16197         simply work around them.
16198         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
16199         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
16200         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
16201         declaring.
16202         Don't bother to define as macros, since the standard doesn't require it.
16203         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
16204         longer worry about IRIX 5.3.
16205         (HAVE_WCTYPE_CTMP_BUG): Remove.
16206
16207 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
16208
16209         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
16210         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
16211         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
16212         Problems reported by Georg Schwarz for IRIX 5.3.
16213
16214         * gnulib-tool (autoconf_minversion): Take the maximum version number
16215         found, not the minimum.  Problem reported by James Youngman.
16216
16217 2007-01-03  Karl Berry  <karl@gnu.org>
16218
16219         * doc/error.texi: new file, explaining interaction with progname.
16220         * doc/gnulib.texi: include it.  Update copyright.
16221
16222 2007-01-03  Simon Josefsson  <simon@josefsson.org>
16223
16224         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
16225         AC_CANONICAL_HOST, to improve autobuild outputs.
16226
16227 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
16228             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16229
16230         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
16231         sockets, server sockets, and other file descriptors.  Count errors
16232         to compute the return value.  Reorder the code a bit to be easier
16233         to follow.  Don't set event bits that were not requested (except
16234         POLLERR and POLLHUP).
16235
16236 2007-01-01  Bruno Haible  <bruno@clisp.org>
16237
16238         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
16239
16240 2007-01-03  Jim Meyering  <jim@meyering.net>
16241
16242         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
16243
16244 2007-01-02  Bruno Haible  <bruno@clisp.org>
16245
16246         * modules/settime (Include): Require timespec.h.
16247         * modules/nanosleep (Include): Likewise.
16248
16249 2007-01-01  Bruno Haible  <bruno@clisp.org>
16250
16251         * gnulib-tool (func_emit_copyright_notice): Bump year.
16252         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
16253
16254 2007-01-01  Bruno Haible  <bruno@clisp.org>
16255
16256         Improve support for OpenBSD.
16257         * build-aux/config.rpath (libname_spec): Export.
16258         (library_names_spec): New variable. Export.
16259         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
16260         library_names_spec from the config.rpath output. Locate shared library
16261         through the name pattern in library_names_spec.
16262
16263 2007-01-01  Eric Blake  <ebb9@byu.net>
16264
16265         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
16266
16267 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
16268
16269         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
16270         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
16271         assume the C locale, and avoid an "eval" that could cause trouble.
16272         Problem with SORT reported by Bob Proulx.
16273
16274         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
16275         Define.  Trivial patch from Henning Nielsen Lund, originally
16276         sent to bug-grep@gnu.org today.
16277
16278 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16279
16280         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
16281         struct stat.  Problem reported by Henning Nielsen Lund.
16282         * lib/acl.c: Include acl.h first, to check interface.  Don't
16283         bother to include sys/types.h and sys/stat.h again.
16284
16285 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
16286
16287         Import the following change from libc; problem reported by
16288         Sven Verdoolaege.
16289
16290         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
16291
16292         [BZ #1373]
16293         * lib/argp.h: Remove __NTH for __argp_usage inline function.
16294
16295 2006-12-28  Jim Meyering  <jim@meyering.net>
16296
16297         * build-aux/announce-gen: Do not assume that the package
16298         builds any of tar.gz, tar.bz2, and .xdelta files.
16299         Suggestion from Simon Josefsson.
16300
16301 2006-12-28  Simon Josefsson  <simon@josefsson.org>
16302
16303         * modules/announce-gen: New file.
16304
16305 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16306
16307         * lib/mbchar.h: Just include <wctype.h>; the wctype module
16308         handles its gotchas now.
16309         * lib/mbswidth.c: Likewise.
16310         * lib/wcwidth.h: Likewise.
16311         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
16312         and iswcntrl; the wctype module does this stuff now.
16313         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
16314         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16315         * modules/mbchar (Depends-on): Add wctype.
16316         * modules/mbswidth (Depends-on): Likewise.
16317         * modules/wcwidth (Depends-on): Likewise.
16318
16319 2006-12-27  Eric Blake  <ebb9@byu.net>
16320
16321         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
16322         module uses more than what <wctype.h> is required to provide.
16323
16324 2006-12-26  Eric Blake  <ebb9@byu.net>
16325
16326         * gnulib-tool (sed_extract_prog): Avoid space-tab.
16327
16328 2006-12-26  Eric Blake  <ebb9@byu.net>
16329
16330         * modules/absolute-header: New module.
16331         * modules/fcntl (Depends-on): Depend on it.
16332         * modules/inttypes (Depends-on): Likewise.
16333         * modules/stdint (Depends-on): Likewise.
16334         * modules/sys_stat (Depends-on): Likewise.
16335         * modules/wctype (Depends-on): Likewise.
16336         * MODULES.html.sh (Support for building libraries and
16337         executables): Document it.
16338
16339 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
16340
16341         * gnulib-tool (SED): Remove, undoing previous change.
16342         The problem was that it broke coreutils on Solaris, because
16343         "sed --posix" leaked into a makefile.
16344         (sed): New alias, if 'alias' and GNU sed.
16345
16346 2006-12-24  Jim Meyering  <jim@meyering.net>
16347
16348         Work around an fchownat bug in glibc-2.4:
16349         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
16350         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
16351         in spite of the -P option.
16352         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
16353         New macros.
16354         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
16355         * modules/openat (Files): Add lib/fchownat.c.
16356         * lib/openat.c (fchownat): Don't define here.  Move to...
16357         * lib/fchownat.c: ...this new file.
16358
16359 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
16360
16361         Fix bug reported by Bruno Haible in
16362         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
16363         where quotearg.c didn't compile on Mac OS X 10.2 because it
16364         lacks <wchar.h> and wint_t.
16365         * lib/wctype_.h (__wctype_wint_t): New type.
16366         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
16367         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
16368         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
16369         Arg is now of type __wctype_wint_t, not wint_t.
16370         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
16371         substitute HAVE_WINT_T.
16372         * modules/wctype (Files): Add m4/wint_t.m4.
16373         (wctype.h): Substitute HAVE_WINT_T.
16374
16375 2006-12-23  Bruno Haible  <bruno@clisp.org>
16376
16377         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
16378
16379 2006-12-23  Bruno Haible  <bruno@clisp.org>
16380
16381         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
16382         S_ISLNK.
16383         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
16384         mingw.
16385
16386 2006-12-22  Bruno Haible  <bruno@clisp.org>
16387
16388         * lib/copy-file.c: Include acl.h.
16389         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
16390         Close the file descriptors only after being done with copy_acl.
16391         * modules/copy-file (Depends-on): Add acl.
16392
16393 2006-12-22  Bruno Haible  <bruno@clisp.org>
16394
16395         * gnulib-tool (SED): New variable.
16396         Use $SED instead of sed everywhere.
16397
16398 2006-12-22  Bruno Haible  <bruno@clisp.org>
16399
16400         * modules/no-c++: New file.
16401         * m4/no-c++.m4: New file.
16402         * MODULES.html.sh (Support for building libraries and executables):
16403         Add no-c++.
16404
16405 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16406
16407         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
16408         Include <limits.h>, and use its INT_MAX to rewrite the
16409         j loop so that it does not overflow 'int'.  Problem reported by
16410         Ralf Wildenhues in
16411         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
16412         Play it safe by shifting left by 1 rather than multiplying by 2,
16413         as GCC is less likely to optimize this away when the value
16414         is signed (when it assumes overflow leads to undefined behavior).
16415         Also, don't assume time_t uses two's complement.
16416
16417 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
16418
16419         * MODULES.html.sh: New module wctype.
16420         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
16421         * lib/fnmatch.c: Don't bother to include <wchar.h> before
16422         <wctype.h>, since the new wctype module should fix this.
16423         * lib/quotearg.c: Include <wctype.h> unconditionally, since
16424         the wctype module should arrange for it.
16425         * lib/regex_internal.h: Likewise.
16426         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
16427         since the wctype module should handle this now.
16428         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
16429         * modules/fnmatch (Depends-on): Add wctype.
16430         * modules/quotearg (Depends-on): Likewise.
16431         * modules/regex (Depends-on): Likewise.
16432
16433 2006-12-19  Bruno Haible  <bruno@clisp.org>
16434
16435         * lib/strdup.h [C++]: Wrap definitions in extern "C".
16436         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
16437
16438 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16439
16440         * modules/savewd (Depends-on): Fix dependency on fcntl.
16441
16442 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
16443
16444         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
16445         conforms to C99, rather than relying on the user's environment
16446         setting of STDINT_H.
16447
16448 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
16449         and Eric Blake  <ebb9@byu.net>
16450
16451         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
16452         This is more consistent with the other defines here.
16453         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
16454         Port to z/OS.  Problem reported by Paul Gilmartin.
16455         Change local vars to use gl_ prefix rather than ac_.
16456         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
16457         with other defines.
16458         * modules/double-slash-root: New module.
16459         * modules/dirname (Files): Remove m4/double-slash-root.m4.
16460         (Depends-on): Add double-slash-root.
16461         * MODULES.html.sh (File system functions): Mention new module.
16462
16463 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
16464
16465         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
16466         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
16467         This is for the benefit of gzip, which doesn't do i18n.
16468
16469 2006-12-12  Jim Meyering  <jim@meyering.net>
16470
16471         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
16472         Reported by Andreas Schwab <schwab@suse.de>.
16473
16474 2006-12-12  Bruno Haible  <bruno@clisp.org>
16475
16476         Merge these changes.
16477         2006-09-05  Bruno Haible  <bruno@clisp.org>
16478         * lib/iconvme.c (iconv_string): No need to save and restore errno when
16479         iconv_alloc succeeded.
16480         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
16481         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
16482         test for " && dest " at the end - dest is always != NULL there. Call
16483         iconv with 4xNULL arguments initially, to reset the state. Call iconv
16484         with 2xNULL arguments, also to flush the state storage. Handle the
16485         IRIX iconv behaviour. Realloc the final result, to throw away unused
16486         memory.
16487
16488 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
16489
16490         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
16491         and fchmodat unconditionally, since glibc 2.4 has them.
16492         Problem reported by Arkadiusz Miskiewicz.
16493
16494 2006-12-10  Bruno Haible  <bruno@clisp.org>
16495
16496         * gnulib-tool (func_import): Show the include files only for those
16497         modules that are copied and specified.
16498         Reported by Karl Berry.
16499
16500 2006-12-08  Jim Meyering  <jim@meyering.net>
16501
16502         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
16503         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
16504
16505         * build-aux/announce-gen: Add two new options, both optional:
16506         --bootstrap-tools=TOOL_LIST
16507               a comma-separated list of tools, e.g.,
16508               autoconf,automake,bison,gnulib
16509         --gnulib-snapshot-date=DATE
16510               if gnulib is in the bootstrap tool list,
16511               then report this as the snapshot date.
16512               If not specified, use the current date/time.
16513               If you specify a date here, be sure it's UTC.
16514
16515 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16516
16517         * tests/test-argp-2.sh: Fix test to match actual output.
16518         (func_compare): Fix sed script to be portable.
16519
16520 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
16521
16522         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
16523         workaround for this case.  It is not autoconfigured now; offhand
16524         it's hard to see how to autoconfigure it.
16525
16526 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
16527
16528         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
16529         a directory that is about to be chowned.  Such a directory's
16530         initial file permissions should permit the owner only and this
16531         should not be changed until after the chown, since the group and
16532         other bits would be incorrect if they granted permission before
16533         the chown.
16534
16535         Fix porting problem for iswctype reported by Georg Schwarz in:
16536         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
16537         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
16538         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
16539         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
16540         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
16541
16542 2006-12-03  Jim Meyering  <jim@meyering.net>
16543
16544         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
16545         p->fts_statp may not yet be defined.
16546         (fts_read): Instead, set it in the caller, once p->fts_statp is
16547         sure to be defined, and corresponds to a top-level directory.
16548         This bug made du -x fail.  Here's the coreutils test case:
16549         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
16550         Reported by Mike Frysinger.
16551
16552 2006-12-01  Jim Meyering  <jim@meyering.net>
16553
16554         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
16555         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
16556         Reported by Simon Josefsson.
16557
16558 2006-11-30  Jim Meyering  <jim@meyering.net>
16559
16560         * m4/warning.m4: Use the all-permissive copyright notice
16561         recommended by RMS (rather than LGPL).
16562         * m4/vararrays.m4: Likewise.
16563         * m4/flexmember.m4: Likewise.
16564
16565 2006-11-29  Bruno Haible  <bruno@clisp.org>
16566
16567         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
16568         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
16569         using +=.
16570         Reported by Simon Josefsson <simon@josefsson.org>.
16571
16572 2006-11-28  James Youngman <jay@gnu.org>
16573
16574         * README: Advise users that they might find the bug-gnulib@gnu.org
16575         and autotools-announce@gnu.org mailing lists useful.
16576
16577 2006-11-28  Bruno Haible  <bruno@clisp.org>
16578
16579         * m4/ptrdiff_max.m4: Remove file.
16580
16581 2006-11-21  Bruno Haible  <bruno@clisp.org>
16582
16583         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
16584         _AC_COMPUTE_INT.
16585         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
16586         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
16587         _AC_COMPUTE_INT.
16588         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
16589         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
16590         _AC_COMPUTE_INT.
16591         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
16592
16593 2006-11-28  Jim Meyering  <jim@meyering.net>
16594
16595         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
16596         warning from "gcc -Wshadow" about shadowing the builtin.
16597
16598 2006-11-27  Bruno Haible  <bruno@clisp.org>
16599
16600         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
16601         _AC_COMPUTE_INT.
16602         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
16603
16604 2006-11-27  Bruno Haible  <bruno@clisp.org>
16605             Paul Eggert  <eggert@cs.ucla.edu>
16606
16607         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
16608
16609 2006-11-26  Bruno Haible  <bruno@clisp.org>
16610
16611         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
16612         noinst_LTLIBRARIES.
16613
16614 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
16615             Bruno Haible  <bruno@clisp.org>
16616
16617         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
16618         if compiling with "gcc -ansi".
16619
16620 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
16621
16622         Fix some incompatibilities with gcc -ansi -pedantic.
16623         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
16624         if compiling pedantically with GCC, unless it's C99 or later.
16625         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
16626         it mishandles gcc -ansi -pedantic as well.
16627         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
16628         if gcc -pedantic.
16629         * lib/regexec.c (check_node_accept_bytes): Don't use auto
16630         initializers for struct if -pedantic, unless it's C99 or later.
16631
16632 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
16633
16634         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
16635         Don't close an fd more than once. Identical atimes indicate
16636         success, not failure.
16637
16638 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
16639
16640         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
16641
16642 2006-11-23  Jim Meyering  <jim@meyering.net>
16643
16644         * build-aux/announce-gen: New file.  From coreutils.
16645
16646 2006-11-22  Jim Meyering  <jim@meyering.net>
16647
16648         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
16649         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
16650         (fts_read): Use a temporary to narrow the overused st_size member
16651         before using it in a switch statement.  Reported by Matthew Woehlke.
16652
16653         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
16654         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
16655
16656 2006-11-20  Bruno Haible  <bruno@clisp.org>
16657
16658         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
16659         changequote instead of pairs of brackets.
16660         Reported by Andreas Schwab <schwab@suse.de>.
16661
16662 2006-11-21  Jim Meyering  <jim@meyering.net>
16663
16664         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
16665         so as to remain compatible with older compilers.
16666         Patch from Michael Deutschmann.
16667
16668 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
16669
16670         * MODULES.html.sh (File system functions): Add openat.
16671
16672         * lib/openat.h (rpl_fstatat): New macro, if
16673         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
16674         (fstatat): Define to rpl_fstatat under the same conditions,
16675         unless COMPILING_FSTATAT.
16676         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
16677         seems to have the bug.
16678         * lib/fstatat.c: New file.
16679         * modules/openat (Files): Add it.
16680
16681 2006-11-20  Bruno Haible  <bruno@clisp.org>
16682
16683         * Makefile: New file.
16684
16685 2006-11-20  Jim Meyering  <jim@meyering.net>
16686
16687         The beginnings of syntax-related checks for gnulib.
16688         * lib/Makefile: New file.
16689         * lib/t-idcache: New script.  Ensure that the two halves of
16690         idcache.c stay in sync.
16691
16692         * lib/idcache.c: Adjust comments in user- and group- portions to
16693         be more accurate, and to be consistent with one another.
16694
16695 2006-11-20  Jim Meyering  <jim@meyering.net>
16696
16697         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
16698         continue using the flexible array member (thus, this module performs
16699         half as many malloc calls), with the addition that...
16700         (getgroup, getuser): Consistently record a non-match via an empty
16701         "name" string, and map an empty string match to a NULL return value.
16702         * modules/idcache (Depends-on): Re-add flexmember.
16703
16704         * lib/idcache.c (getuser): Remove all uses of the register keyword.
16705         (getuidbyname, getgroup, getgidbyname): Likewise.
16706
16707         Use cleaner syntax: NULL rather than 0.
16708         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
16709
16710 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
16711
16712         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
16713         It mishandled the case where the group was missing.
16714         Problem reported by Greg Schafer.
16715         * modules/idcache: Likewise.
16716
16717 2006-11-18  Jim Meyering  <jim@meyering.net>
16718
16719         * check-module (%exempt_header): Add exception for some
16720         conditionally-included headers.
16721
16722         * modules/i-ring (Depends-on): Add verify.
16723         (License): Change to LGPL.
16724
16725 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
16726
16727         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
16728         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
16729         and inttostr.h.  Use snprintf rather than uinttostr, so that
16730         LGPLed code doesn't depend on GPLed.
16731
16732 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
16733
16734         * modules/inline (License): Change from GPL to LGPL.
16735
16736 2006-11-17  Jim Meyering  <jim@meyering.net>
16737
16738         * modules/d-type (License): Switch to LGPL.
16739
16740 2006-11-15  Bruno Haible  <bruno@clisp.org>
16741
16742         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
16743
16744 2006-11-15  Eric Blake  <ebb9@byu.net>
16745
16746         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
16747         the module dependency.
16748
16749 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
16750             Bruno Haible  <bruno@clisp.org>
16751
16752         * gnulib-tool (func_create_testdir): Add license consistency check.
16753
16754 2006-11-15  Eric Blake  <ebb9@byu.net>
16755
16756         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
16757         random "(cached)" in configure output.
16758
16759 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16760
16761         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
16762         test for conforming inttypes.h is both announced and cached.
16763
16764         * MODULES.html.sh (seen_modules, seen_files): New variables.
16765         (func_module): Rewrite to use a few less gnulib-tool and sed
16766         invocations.  Avoid a couple of quadratic algorithms for ...
16767         (missed_modules, missed_files): ... these, with ...
16768         (func_append, func_tmpdir): ... these new functions, from
16769         gnulib-tool.  Analogously, install traps for cleanup.
16770
16771         * tests/test-gc.c (main): Remove unused variables.
16772         * tests/test-read-file.c: Include stdlib.h, for 'free'.
16773
16774 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
16775
16776         * modules/inttostr (License): Change to LGPL.
16777
16778 2006-11-14  Eric Blake  <ebb9@byu.net>
16779
16780         * modules/tempname (License): Change to LGPL.
16781
16782 2006-11-14  Eric Blake  <ebb9@byu.net>
16783
16784         * doc/functions.texi (Function Portability): *printf functions on
16785         Cygwin now understand all POSIX size specifiers.
16786
16787 2006-11-14  Bruno Haible  <bruno@clisp.org>
16788
16789         * modules/c-ctype (License): Change to LGPL.
16790
16791 2006-11-12  Bruno Haible  <bruno@clisp.org>
16792
16793         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
16794         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
16795         for GNOME libraries, for which the include files are installed in
16796         subdirectories of $prefix/include.
16797
16798 2006-11-12  Bruno Haible  <bruno@clisp.org>
16799
16800         * m4/lib-link.m4: Require at least autoconf-2.54.
16801         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
16802         name to underscores for the --with option.
16803
16804 2006-11-13  Bruno Haible  <bruno@clisp.org>
16805
16806         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
16807         the tests directory.
16808         Reported by Ralf Wildenhues.
16809
16810 2006-11-13  Bruno Haible  <bruno@clisp.org>
16811
16812         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
16813         (func_emit_initmacro_end): Undo the override here.
16814         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
16815         Works around the famous automake error in coreutils.
16816
16817 2006-11-13  Eric Blake  <ebb9@byu.net>
16818
16819         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
16820         element, not its node.
16821
16822 2006-11-12  Bruno Haible  <bruno@clisp.org>
16823
16824         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
16825         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
16826
16827 2006-11-12  Bruno Haible  <bruno@clisp.org>
16828
16829         * gnulib-tool: New option --local-symlink.
16830         (func_usage): Document it.
16831         (lsymbolic): New variable.
16832         (func_import, func_create_testdir): If --symlink was not specified,
16833         test whether --local-symlink was specified and the file comes from
16834         the local_gnulib_dir.
16835
16836 2006-11-12  Bruno Haible  <bruno@clisp.org>
16837
16838         * gnulib-tool (func_ln): New function.
16839         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
16840
16841 2006-11-12  Bruno Haible  <bruno@clisp.org>
16842
16843         Finish support for source files in subdirectories.
16844         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
16845         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
16846         AUTOMAKE_OPTIONS.
16847         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
16848
16849 2006-11-12  Bruno Haible  <bruno@clisp.org>
16850
16851         * gnulib-tool (func_get_automake_snippet): Synthesize also an
16852         EXTRA_lib_SOURCES augmentation.
16853         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
16854
16855 2006-11-12  Jim Meyering  <jim@meyering.net>
16856
16857         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
16858         file descriptors.  This also averts a failure on systems with
16859         native openat support when a traversed directory lacks "x" access.
16860         * lib/fts_.h: Include "i-ring.h"
16861         (struct FTS) [fts_fd_ring]: New member.
16862         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
16863         (FCHDIR): Add parentheses.
16864         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
16865         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
16866         When descending, rather than simply closing the previous
16867         fts_cwd_fd value, push that file descriptor onto the ring.
16868         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
16869         (fts_open): Initialize the new fd_ring member.
16870         (fts_close): Clear the ring.
16871         (fts_safe_changedir): When possible, use our new fd_ring to skip
16872         the diropen and fstat and dev/ino comparison that would normally
16873         accompany a virtual `chdir ("..")'.
16874
16875         * modules/fts (Depends-on): Add i-ring.
16876         * modules/i-ring: New module.
16877         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
16878         * m4/i-ring.m4: New file.
16879
16880 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16881
16882         * gnulib-tool (func_create_testdir): Fix replacement of
16883         `build-aux' in configure.ac.  Run autotools in gltests
16884         subdirectory.
16885         (func_create_testdir, func_create_megatestdir, test): There is
16886         no need for '--force' in most autotool invocations in a new
16887         tree.  Actually fail the whole test if any of the tools, or the
16888         configure or make stages fail.
16889
16890         Sync from Automake.
16891         * build-aux/gnupload: Revert last change.  Add pointer to upload
16892         instructions of the GNU Maintenance Instructions.
16893         Suggestion by Karl Berry.
16894
16895 2006-11-10  Jim Meyering  <jim@meyering.net>
16896
16897         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
16898
16899 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
16900
16901         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
16902         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
16903         (bind_textdomain_codeset) [! ENABLE_NLS]:
16904         Evaluate all the arguments.  That way, callers get compatible behavior
16905         if the arguments have side effects.  Also, it avoids some GCC
16906         diagnostics in some cases; Joel E. Denny reported problems when Bison
16907         was configured with --enable-gcc-warnigs.
16908
16909 2006-11-10  Jim Meyering  <jim@meyering.net>
16910
16911         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
16912         relevant options in CFLAGS (like -O, -fno-inline) are taken into
16913         account.
16914
16915 2006-11-10  Jim Meyering  <jim@meyering.net>
16916
16917         * modules/inline: New file/module.
16918         * modules/xalloc (Files): Remove m4/inline.m4.
16919         (Depends-on): Add inline, instead.
16920         * modules/oset: Likewise.
16921         * modules/list: Likewise.
16922
16923 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
16924
16925         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
16926         Problem reported by Matthew Woehlke.
16927
16928 2006-11-09  Bruno Haible  <bruno@clisp.org>
16929
16930         * lib/tempname.c (gen_tempname): Remove variant that invokes
16931         __gen_tempname.
16932         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
16933         __gen_tempname.
16934
16935 2006-11-08  Bruno Haible  <bruno@clisp.org>
16936
16937         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
16938         to 'yes' instead of 'cross-compiling'.
16939
16940 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
16941
16942         * lib/quotearg.h (quotearg_free): New decl.
16943         * lib/quotearg.c (quotearg_free): New function.
16944         (slot0, nslots, slotvec0, slotvec):
16945         Now file-scope so that quotearg_free can get at them.
16946
16947 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16948
16949         Sync from Automake.
16950         * build-aux/gnupload: Add missing 'gnu' to example URL.
16951         Report by Karl Berry.
16952
16953 2006-11-08  Bruno Haible  <bruno@clisp.org>
16954
16955         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
16956         Suggested by Paul Eggert.
16957
16958 2006-11-08  Jim Meyering  <jim@meyering.net>
16959
16960         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
16961         It's already included if !_LIBC.
16962         (fts_safe_changedir): Add a comment.
16963
16964 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
16965
16966         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
16967         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
16968         Matthew Woehlke.
16969
16970         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
16971         definitions up, to avoid colliding with change below.
16972         (static_inline) [HAVE_INLINE]: New macro.
16973         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
16974         Provide extern decls when !HAVE_INLINE.  Do not define unless
16975         static_inline is defined, either by us or by xmalloc.c.  Use
16976         static_inline rather than static inline.
16977         (XCALLOC): Optimize sizeof(T) = 1 case.
16978         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
16979
16980 2006-11-07  Bruno Haible  <bruno@clisp.org>
16981
16982         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
16983         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
16984         AC_C_INLINE.
16985         * modules/xalloc (Files): Add m4/inline.m4.
16986
16987 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16988
16989         * README: Fix typo.
16990         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
16991         (Miscellanous Notes): ...from this.
16992
16993 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
16994
16995         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
16996         Mention that offsetof should be used instead of sizeof.
16997         From Bruno Haible.
16998
16999 2006-11-07  Bruno Haible  <bruno@clisp.org>
17000
17001         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
17002
17003 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
17004
17005         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
17006         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
17007         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
17008         (gl_tree_add_before, gl_tree_add_after):
17009         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
17010         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
17011         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
17012         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
17013         (gl_linked_add_after, gl_linked_add_at): Likewise.
17014         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
17015         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
17016         (gl_tree_add_before, gl_tree_add_after): Likewise.
17017         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
17018         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
17019         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
17020
17021 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17022
17023         * lib/gl_oset.h: Use C comment style, not C++ comment style.
17024
17025 2006-11-06  Bruno Haible  <bruno@clisp.org>
17026
17027         * m4/inline.m4: New file.
17028         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
17029         * modules/list (Files): Add m4/inline.m4.
17030         * modules/oset (Files): Likewise.
17031
17032 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
17033
17034         * lib/idcache.c: Include <stddef.h>, for offsetof.
17035         (struct userid.name): Change from char * to a flexible array member.
17036         All uses changed.
17037         * modules/idcache (Depends-on): Add flexmember.
17038
17039         * MODULES.html.sh (Core language properties): New module flexmember.
17040         * modules/flexmember, m4/flexmember.m4: New files.
17041
17042         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
17043         inline functions that are identical with the old xnmalloc_inline,
17044         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
17045         that we can avoid some unnecessary integer multiplications and
17046         divisions in the common case where the element size is known at
17047         compile time.
17048         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
17049         needed.
17050         (xnboundedmalloc): Remove.
17051         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
17052         arguments, for consistency with rest of this header.
17053         (xcharalloc): Rewrite using XNMALLOC.
17054         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
17055         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
17056         versions have been moved to lib/xalloc.h and renamed to be the
17057         non-*_inline versions.
17058         (xmalloc, xrealloc): Implement without reference to the xnmalloc
17059         and xnrealloc functions, since those functions are now inline and
17060         now call us.
17061         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
17062         renaming described above.
17063         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
17064         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
17065         captures the dependency in AC_C_INLINE.
17066
17067         New module canonicalize-lgpl, proposed by Charles Wilson in
17068         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
17069         with a few small changes afterwards.
17070         * MODULES.html.sh (File system functions): New module
17071         canonicalize-lgpl.
17072         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
17073         and canonicalize_file_name.
17074         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
17075         * modules/canonicalize-lgpl: New files.
17076
17077 2006-11-05  Bruno Haible  <bruno@clisp.org>
17078
17079         * gnulib-tool (func_import, func_create_testdir): Create directories
17080         also for files in subdirectories of lib/.
17081
17082 2006-11-05  Bruno Haible  <bruno@clisp.org>
17083
17084         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
17085         ANSI C compliant.
17086
17087 2006-11-03  Bruno Haible  <bruno@clisp.org>
17088
17089         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
17090         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
17091         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
17092         (xnboundedmalloc): New inline function.
17093         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
17094         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
17095         xmalloc.
17096         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
17097         xmalloc.
17098         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
17099         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
17100         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
17101         xmalloc.
17102         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
17103         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
17104         xmalloc.
17105         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
17106         gl_tree_add_after): Use XMALLOC instead of xmalloc.
17107         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
17108         xmalloc.
17109         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
17110         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
17111         gl_tree_add_after): Use XMALLOC instead of xmalloc.
17112         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
17113         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
17114         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
17115         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
17116
17117 2006-11-03  Bruno Haible  <bruno@clisp.org>
17118
17119         * lib/c-ctype.h [C++]: Define functions without name mangling.
17120         * lib/fwriteerror.h [C++]: Likewise.
17121         * lib/gcd.h [C++]: Likewise.
17122         * lib/linebreak.h [C++]: Likewise.
17123
17124 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
17125
17126         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
17127         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
17128         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
17129         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
17130         Check for functions and headers just once.
17131         Check for declaration of canonicalize_file_name.
17132         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
17133
17134 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
17135
17136         * gnulib-tool (func_import): Fix typo in actioncmd.
17137
17138 2006-11-02  Bruno Haible  <bruno@clisp.org>
17139
17140         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
17141         newline sequence in the Makefile.am snippet as a space, like "make"
17142         does.
17143         Reported by Roger Persson <perrog@gmail.com>.
17144
17145 2006-11-01  Bruno Haible  <bruno@clisp.org>
17146
17147         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
17148         already declared in <string.h>.
17149         * lib/strcase.h (strncasecmp): Don't declare it if yes.
17150
17151 2006-11-01  Bruno Haible  <bruno@clisp.org>
17152
17153         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
17154         * lib/strcase.h: Include <string.h>.
17155         (strcasecmp): Define to rpl_strcasecmp here.
17156
17157 2006-11-01  Bruno Haible  <bruno@clisp.org>
17158
17159         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
17160
17161 2006-11-01  Eric Blake  <ebb9@byu.net>
17162
17163         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
17164
17165         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
17166
17167 2006-10-29  Bruno Haible  <bruno@clisp.org>
17168
17169         Make it compile in C++ mode.
17170         * lib/full-write.c (full_rw): Add a cast.
17171
17172 2006-11-01  Bruno Haible  <bruno@clisp.org>
17173
17174         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
17175         be POSIX compliant.
17176         Reported by Roger Persson <perrog@gmail.com>.
17177
17178 2006-11-01  Eric Blake  <ebb9@byu.net>
17179
17180         * lib/getopt_.h: Fix comments.
17181
17182 2006-10-31  Eric Blake  <ebb9@byu.net>
17183
17184         * modules/tmpdir (Depends-on): Add sys_stat.
17185         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
17186         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
17187         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
17188         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
17189         tempname.
17190
17191 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
17192
17193         Avoid some C++ diagnostics reported by Bruno Haible.
17194         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
17195         xmalloc.
17196         (quotearg_alloc): Use xcharalloc rather than xmalloc.
17197         (struct slotvec): Move to top level.
17198         (quotearg_n_options): Rewrite to avoid xmalloc.
17199         * lib/xalloc.h (xcharalloc): New function.
17200         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
17201         [defined __cplusplus]: Add function template that provides result
17202         type propagation.  This part of the change is from Bruno Haible.
17203
17204 2006-10-29  Bruno Haible  <bruno@clisp.org>
17205
17206         Make it compile in C++ mode.
17207         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
17208         * lib/strnlen1.c (strnlen1): Cast memchr result.
17209         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
17210         * lib/clean-temp.c (string_equals, string_hash): Add casts.
17211         (create_temp_dir): Rename local variable 'template'.
17212         (compile_csharp_using_sscli): Add cast.
17213         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
17214         * lib/findprog.c (find_in_path): Likewise.
17215         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
17216         * lib/wait-process.c (register_slave_subprocess): Likewise.
17217
17218 2006-10-22  Bruno Haible  <bruno@clisp.org>
17219
17220         * modules/tsearch: New file.
17221         * lib/tsearch.h: New file.
17222         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
17223         * m4/tsearch.m4: New file.
17224         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
17225
17226 2006-10-29  Eric Blake  <ebb9@byu.net>
17227
17228         * lib/arcfour.c: Assume config.h.
17229         * lib/arctwo.c: Likewise.
17230         * lib/base64.c: Likewise.
17231         * lib/check-version.c: Likewise.
17232         * lib/crc.c: Likewise.
17233         * lib/des.c: Likewise.
17234         * lib/gc-gnulib.c: Likewise.
17235         * lib/gc-libgcrypt.c: Likewise.
17236         * lib/gc-pbkdf2-sha1.c: Likewise.
17237         * lib/getaddrinfo.c: Likewise.
17238         * lib/getdelim.c: Likewise.
17239         * lib/getline.c: Likewise.
17240         * lib/hmac-md5.c: Likewise.
17241         * lib/hmac-sha1.c: Likewise.
17242         * lib/iconvme.c: Likewise.
17243         * lib/md2.c: Likewise.
17244         * lib/md4.c: Likewise.
17245         * lib/memxor.c: Likewise.
17246         * lib/read-file.c: Likewise.
17247         * lib/readline.c: Likewise.
17248         * lib/rijndael-alg-fst.c: Likewise.
17249         * lib/rijndael-api-fst.c: Likewise.
17250         * lib/xgetdomainname.c: Likewise.
17251
17252 2006-10-28  Eric Blake  <ebb9@byu.net>
17253
17254         * lib/xstrndup.c: Assume config.h.
17255
17256 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
17257
17258         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
17259         stat-macros.h is now for our own macros, whereas stat_h is for
17260         macros in the <sys/stat.h> name space.
17261         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
17262         (STAT_MACROS_H): Remove.
17263         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
17264         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
17265         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
17266         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
17267         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
17268         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
17269         Move these macros to ...
17270         * lib/stat_.h: here.  Don't include stat-macros.h.
17271         * lib/canonicalize.c: Don't include stat-macros.h.
17272         * lib/chown.c: Likewise.
17273         * lib/euidaccess.c: Likewise.
17274         * lib/file-type.c: Likewise.
17275         * lib/filemode.c: Likewise.
17276         * lib/glob.c: Likewise.
17277         * lib/isapipe.c: Likewise.
17278         * lib/lchown.c: Likewise.
17279         * lib/lstat.c: Likewise.
17280         * lib/mkdir-p.c: Likewise.
17281         * lib/rmdir.c: Likewise.
17282         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
17283         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
17284         unless mkdir isn't declared, to speed up 'configure'.
17285         Always create sys/stat.h, since it's unlikely any real sys/stat.h
17286         would define all the S_* symbols.
17287         * modules/canonicalize (Depends-on):
17288         Depend on sys_stat, not stat-macros.
17289         * modules/chown: Likewise.
17290         * modules/euidaccess: Likewise.
17291         * modules/filemode: Likewise.
17292         * modules/file-type: Likewise.
17293         * modules/glob: Likewise.
17294         * modules/isapipe: Likewise.
17295         * modules/lchown: Likewise.
17296         * modules/lstat: Likewise.
17297         * modules/mkancesdirs: Likewise.
17298         * modules/rmdir: Likewise.
17299         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
17300         * modules/modechange: Likewise.
17301         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
17302         (configure.ac): Remove gl_STAT_MACROS.
17303         * modules/sys_stat (Depends-on): Remove stat-macros.
17304
17305 2006-10-27  Bruno Haible  <bruno@clisp.org>
17306
17307         * m4/signed.m4: Remove file.
17308         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
17309         invocation.
17310         * modules/vasnprintf (Files): Remove m4/signed.m4.
17311
17312 2006-10-27  Bruno Haible  <bruno@clisp.org>
17313
17314         Update to GNU gettext 0.16.
17315         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
17316         m4/inttypes-h.m4, m4/signed.m4.
17317         * m4/gettext.m4: Update to GNU gettext 0.16.
17318         * m4/intl.m4: New file, from GNU gettext.
17319         * m4/intldir.m4: New file, from GNU gettext.
17320         * config/srclist.txt: Update
17321
17322 2006-10-27  Eric Blake  <ebb9@byu.net>
17323
17324         * MODULES.html.sh: Document tempname.
17325         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
17326         dependencies.
17327         (Files): Move lib/tempname.c...
17328         * modules/tempname: ...to this new module.
17329         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
17330         (gl_PREREQ_TEMPNAME): Move...
17331         * m4/tempname.m4: ...to this new file.
17332         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
17333         * modules/sys_stat (Depends-on): Add stat-macros.
17334         * lib/stat_.h (includes): Pick up stat macros.
17335         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
17336         if stat macros are broken.
17337         * lib/tempname.c (includes): No need to include "stat-macros.h".
17338         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
17339         (direxists, __path_search) [!_LIBC]: Don't compile these in
17340         gnulib; the tmpdir module covers that.
17341         * lib/tempname.h: New file.
17342
17343 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
17344
17345         * COPYING: Explain how gnulib-tool converts licence headers.
17346         Almost all wording by Eric Blake.
17347
17348 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
17349
17350         * lib/mbchar.h (is_basic_table): Make read-only.
17351         * lib/mbchar.c (is_basic_table): Likewise.
17352         Reported by John Darrington.
17353
17354 2006-10-25  Bruno Haible  <bruno@clisp.org>
17355
17356         * lib/progname.h (set_program_name): Undefine before defining.
17357
17358 2006-10-25  Bruno Haible  <bruno@clisp.org>
17359
17360         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
17361         false for non-gcc C++ compilers.
17362         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
17363
17364 2006-10-24  Bruno Haible  <bruno@clisp.org>
17365
17366         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
17367         iconv implementations like Irix iconv.
17368
17369 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
17370
17371         * modules/vararrays: New file.
17372         * m4/vararrays.m4: New file, taken from diffutils.
17373         * MODULES.html.sh: New module vararrays.
17374
17375 2006-10-24  Karl Berry  <karl@gnu.org>
17376
17377         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
17378         Don't call GNU Unix.
17379
17380 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17381
17382         * users.txt: Add Libtool.
17383
17384         Sync from Libtool:
17385
17386         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
17387
17388         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
17389         to gnulib's policy of including config.h unconditionally.
17390
17391 2006-10-24  Bruno Haible  <bruno@clisp.org>
17392
17393         * modules/wcwidth (Files): Add m4/wint_t.m4.
17394         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
17395         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
17396
17397 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
17398
17399         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
17400         to pacify GCC with some -W flags enabled.  Problem reported by
17401         Bruno Haible.
17402
17403 2006-10-24  Jim Meyering  <jim@meyering.net>
17404
17405         * MODULES.html.sh: Remove uinttostr.  It's not a module.
17406         Reported by Karl Berry.
17407
17408 2006-10-23  Bruno Haible  <bruno@clisp.org>
17409
17410         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
17411
17412 2006-10-24  Bruno Haible  <bruno@clisp.org>
17413
17414         * lib/gl_list.h: Use C comment style, not C++ comment style.
17415
17416 2006-10-23  Eric Blake  <ebb9@byu.net>
17417
17418         * lib/getaddrinfo.c (includes): Add missing include.
17419
17420 2006-10-23  Bruno Haible  <bruno@clisp.org>
17421             Paul Eggert  <eggert@cs.ucla.edu>
17422
17423         Ability to rename obstack_free.
17424         * lib/obstack.h (__obstack_free): New macro. Declare instead of
17425         obstack_free.
17426         (obstack_free): Invoke the __obstack_free macro.
17427         * lib/obstack.c (obstack_free): Use __obstack_free macro.
17428
17429 2006-10-23  Bruno Haible  <bruno@clisp.org>
17430             Paul Eggert  <eggert@cs.ucla.edu>
17431
17432         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
17433         __argc, __argv from the declaration. (They are defined as macros on
17434         mingw.)
17435
17436 2006-10-22  Bruno Haible  <bruno@clisp.org>
17437
17438         * doc/gnulib-intro.texi: New file.
17439         * doc/gnulib.texi: Include it.
17440
17441 2006-10-21  Bruno Haible  <bruno@clisp.org>
17442
17443         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
17444         "Introduction", "Miscellanous Notes", "Particular Modules".
17445
17446 2006-10-21  Bruno Haible  <bruno@clisp.org>
17447
17448         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17449         Change mostlyclean-local rule to avoid sh syntax error from bash
17450         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
17451
17452 2006-10-23  Jim Meyering  <jim@meyering.net>
17453
17454         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
17455         in place of snprintf.
17456
17457         * modules/inttostr (Files): Add lib/uinttostr.c.
17458         * lib/uinttostr.c (inttostr): New file/function.
17459         * lib/inttostr.h (uinttostr): Declare.
17460         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
17461         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
17462         Add uinttostr.
17463         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
17464
17465 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
17466
17467         * lib/canonicalize.c (ELOOP): Define if not already defined.
17468         Problem reported by Bruno Haible in
17469         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
17470
17471 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
17472
17473         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
17474         Problem reported by Perry Smith and Ville Laurikari.
17475
17476         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
17477         uses.
17478
17479 2006-10-19  Bruno Haible  <bruno@clisp.org>
17480
17481         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
17482         for mingw.
17483
17484 2006-10-19  Bruno Haible  <bruno@clisp.org>
17485
17486         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
17487         Needed for mingw.
17488
17489 2006-10-19  Bruno Haible  <bruno@clisp.org>
17490
17491         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
17492
17493 2006-10-19  Bruno Haible  <bruno@clisp.org>
17494
17495         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
17496         it.
17497
17498 2006-10-19  Bruno Haible  <bruno@clisp.org>
17499
17500         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
17501         invocation.
17502
17503 2006-10-19  Bruno Haible  <bruno@clisp.org>
17504
17505         * gnulib-tool (func_create_testdir): Don't include ftruncate and
17506         mountlist by default.
17507
17508 2006-10-16  Bruno Haible  <bruno@clisp.org>
17509
17510         * lib/c-strstr.c: Include c-strstr.h.
17511
17512 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
17513
17514         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
17515         in a slash.
17516
17517 2006-10-18  Bruno Haible  <bruno@clisp.org>
17518
17519         * lib/lock.h [C++]: Wrap definitions in extern "C".
17520
17521 2006-10-18  Bruno Haible  <bruno@clisp.org>
17522
17523         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
17524         gl_LIBOBJS list.
17525
17526 2006-10-18  Bruno Haible  <bruno@clisp.org>
17527
17528         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
17529
17530 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
17531
17532         * lib/xstrtol.h: Include gettext.h.
17533         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
17534         Problem reported by Eric Blake.
17535         * modules/xstrtol (Depends-on): Add gettext-h.
17536
17537 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
17538
17539         * lib/strftime.c (advance): New macro.
17540         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
17541         incomplete type, so you can't add 0 to it.  Problem and patch
17542         reported by Eelco Dolstra for dietlibc.
17543
17544 2006-10-18  Jim Meyering  <jim@meyering.net>
17545
17546         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
17547         type for a local, and rename it: s/up/user_proc/.
17548
17549 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
17550
17551         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
17552         READ_UTMP_USER_PROCESS.
17553         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
17554
17555 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
17556
17557         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
17558         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
17559
17560 2006-10-17  Eric Blake  <ebb9@byu.net>
17561
17562         * lib/sigprocmask.c (sigprocmask): Fix typo.
17563
17564         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
17565
17566         * modules/clean-temp (Makefile.am): Don't add to make output...
17567         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
17568         config.h.
17569
17570 2006-10-17  Bruno Haible  <bruno@clisp.org>
17571
17572         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
17573         differently if DEFAULT_TEXT_DOMAIN is set.
17574
17575 2006-10-16  Bruno Haible  <bruno@clisp.org>
17576
17577         * lib/clean-temp.c: Include fwriteerror.h.
17578
17579 2006-10-16  Bruno Haible  <bruno@clisp.org>
17580
17581         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
17582
17583 2006-10-16  Bruno Haible  <bruno@clisp.org>
17584
17585         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
17586         * lib/sigprocmask.h: Include <sys/types.h>.
17587         (sigset_t): Use the system's definition if present.
17588
17589 2006-10-17  Eric Blake  <ebb9@byu.net>
17590
17591         * lib/xvasprintf.c (includes): Assume config.h.
17592         * lib/xasprintf.c (includes): Likewise.
17593
17594 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
17595
17596         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
17597         at least as wide as intmax_t.
17598
17599 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
17600
17601         (Imported from Automake.)
17602         * build-aux/gnupload: Update to version 1.1 of directive file.
17603
17604 2006-10-16  Eric Blake  <ebb9@byu.net>
17605
17606         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
17607         match Automake 1.10a.
17608
17609 2006-10-14  Bruno Haible  <bruno@clisp.org>
17610
17611         * modules/sigprocmask: New file.
17612         * lib/sigprocmask.h: New file.
17613         * lib/sigprocmask.c: New file.
17614         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
17615         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
17616         request sigprocmask.o.
17617         (gl_PREREQ_SIGPROCMASK): New macro.
17618         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
17619         (Depends-on): Add sigprocmask.
17620         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
17621         gt_SIGNALBLOCKING. Test for 'raise' only once.
17622         * lib/fatal-signal.c: Include sigprocmask.h.
17623         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
17624         unblock_fatal_signals): Define always.
17625         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17626         sigprocmask.
17627
17628 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
17629
17630         Sync from Automake.
17631         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
17632         which incorrectly sets the mode of an existing destination
17633         directory.  In some cases the unpatched install-sh could do the
17634         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
17635         system.  We hope this is rare in practice, but it's clearly worth
17636         fixing.  Problem reported by Alex Unleashed in
17637         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
17638         Also, don't bother to check for -m bugs unless we're using -m;
17639         suggested by Stepan Kasal.
17640
17641 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17642
17643         Sync from Automake.
17644         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
17645         `-c' flag, so they appear at the same position as in %FASTDEP%
17646         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
17647         which ignores unknown options only after the first non-option.
17648         Bug report against M4 by Nelson H. F. Beebe.
17649
17650 2006-10-13  Jim Meyering  <jim@meyering.net>
17651
17652         Fix a bug in yesterday's change.
17653         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
17654         p->fts_statp->st_dev would be used uninitialized.
17655         Ensures that we always call fts_stat on the very first entry.
17656         Miklos Szeredi reported that find -xdev stopped working.
17657
17658 2006-10-12  Bruno Haible  <bruno@clisp.org>
17659
17660         * gnulib-tool (func_get_automake_snippet): Append an automatically
17661         computed EXTRA_DIST augmentation.
17662         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
17663         * modules/alloca-opt (Makefile.am): Likewise.
17664         * modules/allocsa (Makefile.am): Likewise.
17665         * modules/arcfour (Makefile.am): Likewise.
17666         * modules/arctwo (Makefile.am): Likewise.
17667         * modules/argmatch (Makefile.am): Likewise.
17668         * modules/argz (Makefile.am): Likewise.
17669         * modules/atexit (Makefile.am): Likewise.
17670         * modules/backupfile (Makefile.am): Likewise.
17671         * modules/byteswap (Makefile.am): Likewise.
17672         * modules/c-strtod (Makefile.am): Likewise.
17673         * modules/c-strtold (Makefile.am): Likewise.
17674         * modules/calloc (Makefile.am): Likewise.
17675         * modules/canon-host (Makefile.am): Likewise.
17676         * modules/canonicalize (Makefile.am): Likewise.
17677         * modules/chdir-long (Makefile.am): Likewise.
17678         * modules/chdir-safer (Makefile.am): Likewise.
17679         * modules/check-version (Makefile.am): Likewise.
17680         * modules/chown (Makefile.am): Likewise.
17681         * modules/cloexec (Makefile.am): Likewise.
17682         * modules/close-stream (Makefile.am): Likewise.
17683         * modules/closeout (Makefile.am): Likewise.
17684         * modules/crc (Makefile.am): Likewise.
17685         * modules/csharpexec (Makefile.am): Likewise.
17686         * modules/cycle-check (Makefile.am): Likewise.
17687         * modules/des (Makefile.am): Likewise.
17688         * modules/dev-ino (Makefile.am): Likewise.
17689         * modules/dirfd (Makefile.am): Likewise.
17690         * modules/dirname (Makefile.am): Likewise.
17691         * modules/dup2 (Makefile.am): Likewise.
17692         * modules/eealloc (Makefile.am): Likewise.
17693         * modules/error (Makefile.am): Likewise.
17694         * modules/euidaccess (Makefile.am): Likewise.
17695         * modules/exclude (Makefile.am): Likewise.
17696         * modules/exitfail (Makefile.am): Likewise.
17697         * modules/fcntl-safer (Makefile.am): Likewise.
17698         * modules/fcntl (Makefile.am): Likewise.
17699         * modules/file-type (Makefile.am): Likewise.
17700         * modules/fileblocks (Makefile.am): Likewise.
17701         * modules/filemode (Makefile.am): Likewise.
17702         * modules/filenamecat (Makefile.am): Likewise.
17703         * modules/fnmatch (Makefile.am): Likewise.
17704         * modules/fopen-safer (Makefile.am): Likewise.
17705         * modules/fpending (Makefile.am): Likewise.
17706         * modules/fprintftime (Makefile.am): Likewise.
17707         * modules/free (Makefile.am): Likewise.
17708         * modules/fsusage (Makefile.am): Likewise.
17709         * modules/ftruncate (Makefile.am): Likewise.
17710         * modules/fts (Makefile.am): Likewise.
17711         * modules/gc-arcfour (Makefile.am): Likewise.
17712         * modules/gc-des (Makefile.am): Likewise.
17713         * modules/gc-hmac-md5 (Makefile.am): Likewise.
17714         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
17715         * modules/gc-md4 (Makefile.am): Likewise.
17716         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
17717         * modules/gc-sha1 (Makefile.am): Likewise.
17718         * modules/gc (Makefile.am): Likewise.
17719         * modules/getaddrinfo (Makefile.am): Likewise.
17720         * modules/getcwd (Makefile.am): Likewise.
17721         * modules/getdelim (Makefile.am): Likewise.
17722         * modules/getdomainname (Makefile.am): Likewise.
17723         * modules/getgroups (Makefile.am): Likewise.
17724         * modules/gethostname (Makefile.am): Likewise.
17725         * modules/gethrxtime (Makefile.am): Likewise.
17726         * modules/getline (Makefile.am): Likewise.
17727         * modules/getloadavg (Makefile.am): Likewise.
17728         * modules/getlogin_r (Makefile.am): Likewise.
17729         * modules/getndelim2 (Makefile.am): Likewise.
17730         * modules/getopt (Makefile.am): Likewise.
17731         * modules/getpagesize (Makefile.am): Likewise.
17732         * modules/getpass-gnu (Makefile.am): Likewise.
17733         * modules/getpass (Makefile.am): Likewise.
17734         * modules/getsubopt (Makefile.am): Likewise.
17735         * modules/gettime (Makefile.am): Likewise.
17736         * modules/gettimeofday (Makefile.am): Likewise.
17737         * modules/getugroups (Makefile.am): Likewise.
17738         * modules/getusershell (Makefile.am): Likewise.
17739         * modules/glob (Makefile.am): Likewise.
17740         * modules/group-member (Makefile.am): Likewise.
17741         * modules/hard-locale (Makefile.am): Likewise.
17742         * modules/hash (Makefile.am): Likewise.
17743         * modules/hmac-md5 (Makefile.am): Likewise.
17744         * modules/hmac-sha1 (Makefile.am): Likewise.
17745         * modules/human (Makefile.am): Likewise.
17746         * modules/idcache (Makefile.am): Likewise.
17747         * modules/imaxabs (Makefile.am): Likewise.
17748         * modules/imaxdiv (Makefile.am): Likewise.
17749         * modules/inet_ntop (Makefile.am): Likewise.
17750         * modules/inet_pton (Makefile.am): Likewise.
17751         * modules/intprops (Makefile.am): Likewise.
17752         * modules/inttostr (Makefile.am): Likewise.
17753         * modules/inttypes (Makefile.am): Likewise.
17754         * modules/isapipe (Makefile.am): Likewise.
17755         * modules/javaversion (Makefile.am): Likewise.
17756         * modules/lchmod (Makefile.am): Likewise.
17757         * modules/lchown (Makefile.am): Likewise.
17758         * modules/localcharset (Makefile.am): Likewise.
17759         * modules/long-options (Makefile.am): Likewise.
17760         * modules/lstat (Makefile.am): Likewise.
17761         * modules/malloc (Makefile.am): Likewise.
17762         * modules/mathl (Makefile.am): Likewise.
17763         * modules/mbchar (Makefile.am): Likewise.
17764         * modules/md2 (Makefile.am): Likewise.
17765         * modules/md4 (Makefile.am): Likewise.
17766         * modules/md5 (Makefile.am): Likewise.
17767         * modules/memcasecmp (Makefile.am): Likewise.
17768         * modules/memchr (Makefile.am): Likewise.
17769         * modules/memcmp (Makefile.am): Likewise.
17770         * modules/memcoll (Makefile.am): Likewise.
17771         * modules/memcpy (Makefile.am): Likewise.
17772         * modules/memmem (Makefile.am): Likewise.
17773         * modules/memmove (Makefile.am): Likewise.
17774         * modules/mempcpy (Makefile.am): Likewise.
17775         * modules/memrchr (Makefile.am): Likewise.
17776         * modules/memset (Makefile.am): Likewise.
17777         * modules/memxor (Makefile.am): Likewise.
17778         * modules/mkancesdirs (Makefile.am): Likewise.
17779         * modules/mkdir-p (Makefile.am): Likewise.
17780         * modules/mkdir (Makefile.am): Likewise.
17781         * modules/mkdtemp (Makefile.am): Likewise.
17782         * modules/mkstemp (Makefile.am): Likewise.
17783         * modules/mktime (Makefile.am): Likewise.
17784         * modules/modechange (Makefile.am): Likewise.
17785         * modules/mountlist (Makefile.am): Likewise.
17786         * modules/nanosleep (Makefile.am): Likewise.
17787         * modules/obstack (Makefile.am): Likewise.
17788         * modules/openat (Makefile.am): Likewise.
17789         * modules/pagealign_alloc (Makefile.am): Likewise.
17790         * modules/pathmax (Makefile.am): Likewise.
17791         * modules/physmem (Makefile.am): Likewise.
17792         * modules/poll (Makefile.am): Likewise.
17793         * modules/posixtm (Makefile.am): Likewise.
17794         * modules/posixver (Makefile.am): Likewise.
17795         * modules/putenv (Makefile.am): Likewise.
17796         * modules/quote (Makefile.am): Likewise.
17797         * modules/quotearg (Makefile.am): Likewise.
17798         * modules/raise (Makefile.am): Likewise.
17799         * modules/read-file (Makefile.am): Likewise.
17800         * modules/readline (Makefile.am): Likewise.
17801         * modules/readlink (Makefile.am): Likewise.
17802         * modules/readtokens (Makefile.am): Likewise.
17803         * modules/readutmp (Makefile.am): Likewise.
17804         * modules/realloc (Makefile.am): Likewise.
17805         * modules/regex (Makefile.am): Likewise.
17806         * modules/rename-dest-slash (Makefile.am): Likewise.
17807         * modules/rename (Makefile.am): Likewise.
17808         * modules/rijndael (Makefile.am): Likewise.
17809         * modules/rmdir (Makefile.am): Likewise.
17810         * modules/rpmatch (Makefile.am): Likewise.
17811         * modules/safe-read (Makefile.am): Likewise.
17812         * modules/safe-write (Makefile.am): Likewise.
17813         * modules/same-inode (Makefile.am): Likewise.
17814         * modules/same (Makefile.am): Likewise.
17815         * modules/save-cwd (Makefile.am): Likewise.
17816         * modules/savedir (Makefile.am): Likewise.
17817         * modules/setenv (Makefile.am): Likewise.
17818         * modules/settime (Makefile.am): Likewise.
17819         * modules/sha1 (Makefile.am): Likewise.
17820         * modules/sig2str (Makefile.am): Likewise.
17821         * modules/snprintf (Makefile.am): Likewise.
17822         * modules/stat-macros (Makefile.am): Likewise.
17823         * modules/stat-time (Makefile.am): Likewise.
17824         * modules/stdbool (Makefile.am): Likewise.
17825         * modules/stdint (Makefile.am): Likewise.
17826         * modules/stdlib-safer (Makefile.am): Likewise.
17827         * modules/stpcpy (Makefile.am): Likewise.
17828         * modules/stpncpy (Makefile.am): Likewise.
17829         * modules/strcase (Makefile.am): Likewise.
17830         * modules/strcasestr (Makefile.am): Likewise.
17831         * modules/strchrnul (Makefile.am): Likewise.
17832         * modules/strcspn (Makefile.am): Likewise.
17833         * modules/strdup (Makefile.am): Likewise.
17834         * modules/strerror (Makefile.am): Likewise.
17835         * modules/strftime (Makefile.am): Likewise.
17836         * modules/strndup (Makefile.am): Likewise.
17837         * modules/strnlen (Makefile.am): Likewise.
17838         * modules/strpbrk (Makefile.am): Likewise.
17839         * modules/strsep (Makefile.am): Likewise.
17840         * modules/strstr (Makefile.am): Likewise.
17841         * modules/strtod (Makefile.am): Likewise.
17842         * modules/strtoimax (Makefile.am): Likewise.
17843         * modules/strtok_r (Makefile.am): Likewise.
17844         * modules/strtol (Makefile.am): Likewise.
17845         * modules/strtoll (Makefile.am): Likewise.
17846         * modules/strtoul (Makefile.am): Likewise.
17847         * modules/strtoull (Makefile.am): Likewise.
17848         * modules/strtoumax (Makefile.am): Likewise.
17849         * modules/strverscmp (Makefile.am): Likewise.
17850         * modules/sys_socket (Makefile.am): Likewise.
17851         * modules/sys_stat (Makefile.am): Likewise.
17852         * modules/sysexits (Makefile.am): Likewise.
17853         * modules/time_r (Makefile.am): Likewise.
17854         * modules/timegm (Makefile.am): Likewise.
17855         * modules/timespec (Makefile.am): Likewise.
17856         * modules/tmpfile-safer (Makefile.am): Likewise.
17857         * modules/trim (Makefile.am): Likewise.
17858         * modules/unistd-safer (Makefile.am): Likewise.
17859         * modules/unlinkdir (Makefile.am): Likewise.
17860         * modules/unlocked-io (Makefile.am): Likewise.
17861         * modules/userspec (Makefile.am): Likewise.
17862         * modules/utime (Makefile.am): Likewise.
17863         * modules/utimecmp (Makefile.am): Likewise.
17864         * modules/utimens (Makefile.am): Likewise.
17865         * modules/vasnprintf (Makefile.am): Likewise.
17866         * modules/vasprintf (Makefile.am): Likewise.
17867         * modules/vsnprintf (Makefile.am): Likewise.
17868         * modules/xalloc (Makefile.am): Likewise.
17869         * modules/xgetcwd (Makefile.am): Likewise.
17870         * modules/xnanosleep (Makefile.am): Likewise.
17871         * modules/xreadlink (Makefile.am): Likewise.
17872         * modules/xstrtod (Makefile.am): Likewise.
17873         * modules/xstrtol (Makefile.am): Likewise.
17874         * modules/xstrtold (Makefile.am): Likewise.
17875         * modules/yesno (Makefile.am): Likewise.
17876         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
17877
17878 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
17879
17880         * modules/error (Makefile.am): Distribute files through
17881         EXTRA_DIST, not lib_SOURCES.
17882
17883 2006-10-12  Eric Blake  <ebb9@byu.net>
17884
17885         * modules/error (Makefile.am): Distribute files in /lib.
17886         * modules/obstack (Makefile.am): Likewise.
17887
17888 2006-10-12  Bruno Haible  <bruno@clisp.org>
17889
17890         * modules/acl (Makefile.am): Distribute all files in lib/ through
17891         EXTRA_DIST.
17892         * modules/arcfour (Makefile.am): Likewise.
17893         * modules/arctwo (Makefile.am): Likewise.
17894         * modules/argmatch (Makefile.am): Likewise.
17895         * modules/argz (Makefile.am): Likewise.
17896         * modules/atexit (Makefile.am): Likewise.
17897         * modules/backupfile (Makefile.am): Likewise.
17898         * modules/c-strtod (Makefile.am): Likewise.
17899         * modules/c-strtold (Makefile.am): Likewise.
17900         * modules/calloc (Makefile.am): Likewise.
17901         * modules/canon-host (Makefile.am): Likewise.
17902         * modules/canonicalize (Makefile.am): Likewise.
17903         * modules/chdir-long (Makefile.am): Likewise.
17904         * modules/chdir-safer (Makefile.am): Likewise.
17905         * modules/check-version (Makefile.am): Likewise.
17906         * modules/chown (Makefile.am): Likewise.
17907         * modules/cloexec (Makefile.am): Likewise.
17908         * modules/close-stream (Makefile.am): Likewise.
17909         * modules/closeout (Makefile.am): Likewise.
17910         * modules/crc (Makefile.am): Likewise.
17911         * modules/cycle-check (Makefile.am): Likewise.
17912         * modules/des (Makefile.am): Likewise.
17913         * modules/dirfd (Makefile.am): Likewise.
17914         * modules/dirname (Makefile.am): Likewise.
17915         * modules/dup2 (Makefile.am): Likewise.
17916         * modules/euidaccess (Makefile.am): Likewise.
17917         * modules/exclude (Makefile.am): Likewise.
17918         * modules/exitfail (Makefile.am): Likewise.
17919         * modules/fcntl-safer (Makefile.am): Likewise.
17920         * modules/file-type (Makefile.am): Likewise.
17921         * modules/fileblocks (Makefile.am): Likewise.
17922         * modules/filemode (Makefile.am): Likewise.
17923         * modules/filenamecat (Makefile.am): Likewise.
17924         * modules/fnmatch (Makefile.am): Likewise.
17925         * modules/fopen-safer (Makefile.am): Likewise.
17926         * modules/fpending (Makefile.am): Likewise.
17927         * modules/fprintftime (Makefile.am): Likewise.
17928         * modules/free (Makefile.am): Likewise.
17929         * modules/fsusage (Makefile.am): Likewise.
17930         * modules/ftruncate (Makefile.am): Likewise.
17931         * modules/fts (Makefile.am): Likewise.
17932         * modules/gc (Makefile.am): Likewise.
17933         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
17934         * modules/getaddrinfo (Makefile.am): Likewise.
17935         * modules/getcwd (Makefile.am): Likewise.
17936         * modules/getdelim (Makefile.am): Likewise.
17937         * modules/getdomainname (Makefile.am): Likewise.
17938         * modules/getgroups (Makefile.am): Likewise.
17939         * modules/gethostname (Makefile.am): Likewise.
17940         * modules/gethrxtime (Makefile.am): Likewise.
17941         * modules/getline (Makefile.am): Likewise.
17942         * modules/getloadavg (Makefile.am): Likewise.
17943         * modules/getlogin_r (Makefile.am): Likewise.
17944         * modules/getopt (Makefile.am): Likewise.
17945         * modules/getpass (Makefile.am): Likewise.
17946         * modules/getpass-gnu (Makefile.am): Likewise.
17947         * modules/getsubopt (Makefile.am): Likewise.
17948         * modules/gettime (Makefile.am): Likewise.
17949         * modules/gettimeofday (Makefile.am): Likewise.
17950         * modules/getugroups (Makefile.am): Likewise.
17951         * modules/getusershell (Makefile.am): Likewise.
17952         * modules/glob (Makefile.am): Likewise.
17953         * modules/group-member (Makefile.am): Likewise.
17954         * modules/hard-locale (Makefile.am): Likewise.
17955         * modules/hash (Makefile.am): Likewise.
17956         * modules/hmac-md5 (Makefile.am): Likewise.
17957         * modules/hmac-sha1 (Makefile.am): Likewise.
17958         * modules/human (Makefile.am): Likewise.
17959         * modules/idcache (Makefile.am): Likewise.
17960         * modules/imaxabs (Makefile.am): Likewise.
17961         * modules/imaxdiv (Makefile.am): Likewise.
17962         * modules/inet_ntop (Makefile.am): Likewise.
17963         * modules/inet_pton (Makefile.am): Likewise.
17964         * modules/inttostr (Makefile.am): Likewise.
17965         * modules/isapipe (Makefile.am): Likewise.
17966         * modules/lchown (Makefile.am): Likewise.
17967         * modules/long-options (Makefile.am): Likewise.
17968         * modules/lstat (Makefile.am): Likewise.
17969         * modules/malloc (Makefile.am): Likewise.
17970         * modules/mathl (Makefile.am): Likewise.
17971         * modules/mbchar (Makefile.am): Likewise.
17972         * modules/md2 (Makefile.am): Likewise.
17973         * modules/md4 (Makefile.am): Likewise.
17974         * modules/md5 (Makefile.am): Likewise.
17975         * modules/memcasecmp (Makefile.am): Likewise.
17976         * modules/memchr (Makefile.am): Likewise.
17977         * modules/memcmp (Makefile.am): Likewise.
17978         * modules/memcoll (Makefile.am): Likewise.
17979         * modules/memcpy (Makefile.am): Likewise.
17980         * modules/memmem (Makefile.am): Likewise.
17981         * modules/memmove (Makefile.am): Likewise.
17982         * modules/mempcpy (Makefile.am): Likewise.
17983         * modules/memrchr (Makefile.am): Likewise.
17984         * modules/memset (Makefile.am): Likewise.
17985         * modules/memxor (Makefile.am): Likewise.
17986         * modules/mkancesdirs (Makefile.am): Likewise.
17987         * modules/mkdir (Makefile.am): Likewise.
17988         * modules/mkdir-p (Makefile.am): Likewise.
17989         * modules/mkdtemp (Makefile.am): Likewise.
17990         * modules/mkstemp (Makefile.am): Likewise.
17991         * modules/mktime (Makefile.am): Likewise.
17992         * modules/modechange (Makefile.am): Likewise.
17993         * modules/mountlist (Makefile.am): Likewise.
17994         * modules/nanosleep (Makefile.am): Likewise.
17995         * modules/openat (Makefile.am): Likewise.
17996         * modules/pagealign_alloc (Makefile.am): Likewise.
17997         * modules/physmem (Makefile.am): Likewise.
17998         * modules/poll (Makefile.am): Likewise.
17999         * modules/posixtm (Makefile.am): Likewise.
18000         * modules/posixver (Makefile.am): Likewise.
18001         * modules/putenv (Makefile.am): Likewise.
18002         * modules/quote (Makefile.am): Likewise.
18003         * modules/quotearg (Makefile.am): Likewise.
18004         * modules/raise (Makefile.am): Likewise.
18005         * modules/read-file (Makefile.am): Likewise.
18006         * modules/readline (Makefile.am): Likewise.
18007         * modules/readlink (Makefile.am): Likewise.
18008         * modules/readtokens (Makefile.am): Likewise.
18009         * modules/readutmp (Makefile.am): Likewise.
18010         * modules/realloc (Makefile.am): Likewise.
18011         * modules/regex (Makefile.am): Likewise.
18012         * modules/rename (Makefile.am): Likewise.
18013         * modules/rename-dest-slash (Makefile.am): Likewise.
18014         * modules/rijndael (Makefile.am): Likewise.
18015         * modules/rmdir (Makefile.am): Likewise.
18016         * modules/rpmatch (Makefile.am): Likewise.
18017         * modules/safe-read (Makefile.am): Likewise.
18018         * modules/safe-write (Makefile.am): Likewise.
18019         * modules/same (Makefile.am): Likewise.
18020         * modules/save-cwd (Makefile.am): Likewise.
18021         * modules/savedir (Makefile.am): Likewise.
18022         * modules/setenv (Makefile.am): Likewise.
18023         * modules/settime (Makefile.am): Likewise.
18024         * modules/sha1 (Makefile.am): Likewise.
18025         * modules/sig2str (Makefile.am): Likewise.
18026         * modules/snprintf (Makefile.am): Likewise.
18027         * modules/stdlib-safer (Makefile.am): Likewise.
18028         * modules/stpcpy (Makefile.am): Likewise.
18029         * modules/stpncpy (Makefile.am): Likewise.
18030         * modules/strcase (Makefile.am): Likewise.
18031         * modules/strcasestr (Makefile.am): Likewise.
18032         * modules/strchrnul (Makefile.am): Likewise.
18033         * modules/strcspn (Makefile.am): Likewise.
18034         * modules/strdup (Makefile.am): Likewise.
18035         * modules/strerror (Makefile.am): Likewise.
18036         * modules/strftime (Makefile.am): Likewise.
18037         * modules/strndup (Makefile.am): Likewise.
18038         * modules/strnlen (Makefile.am): Likewise.
18039         * modules/strpbrk (Makefile.am): Likewise.
18040         * modules/strsep (Makefile.am): Likewise.
18041         * modules/strstr (Makefile.am): Likewise.
18042         * modules/strtod (Makefile.am): Likewise.
18043         * modules/strtoimax (Makefile.am): Likewise.
18044         * modules/strtok_r (Makefile.am): Likewise.
18045         * modules/strtol (Makefile.am): Likewise.
18046         * modules/strtoll (Makefile.am): Likewise.
18047         * modules/strtoul (Makefile.am): Likewise.
18048         * modules/strtoull (Makefile.am): Likewise.
18049         * modules/strtoumax (Makefile.am): Likewise.
18050         * modules/strverscmp (Makefile.am): Likewise.
18051         * modules/time_r (Makefile.am): Likewise.
18052         * modules/timegm (Makefile.am): Likewise.
18053         * modules/tmpfile-safer (Makefile.am): Likewise.
18054         * modules/unistd-safer (Makefile.am): Likewise.
18055         * modules/unlinkdir (Makefile.am): Likewise.
18056         * modules/userspec (Makefile.am): Likewise.
18057         * modules/utime (Makefile.am): Likewise.
18058         * modules/utimecmp (Makefile.am): Likewise.
18059         * modules/utimens (Makefile.am): Likewise.
18060         * modules/vasnprintf (Makefile.am): Likewise.
18061         * modules/vasprintf (Makefile.am): Likewise.
18062         * modules/vsnprintf (Makefile.am): Likewise.
18063         * modules/xalloc (Makefile.am): Likewise.
18064         * modules/xgetcwd (Makefile.am): Likewise.
18065         * modules/xnanosleep (Makefile.am): Likewise.
18066         * modules/xreadlink (Makefile.am): Likewise.
18067         * modules/xstrtod (Makefile.am): Likewise.
18068         * modules/xstrtol (Makefile.am): Likewise.
18069         * modules/xstrtold (Makefile.am): Likewise.
18070         * modules/yesno (Makefile.am): Likewise.
18071
18072 2006-10-12  Jim Meyering  <jim@meyering.net>
18073
18074         * m4/getloadavg.m4: Revert the change below.
18075
18076         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
18077         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
18078         fail with a symlink, which is what coreutils' ./bootstrap now
18079         creates by default.
18080
18081 2006-10-12  Bruno Haible  <bruno@clisp.org>
18082
18083         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
18084         mingw.
18085         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
18086         MSVC and mingw explicitly.
18087
18088 2006-10-11  Simon Josefsson  <jas@extundo.com>
18089             Bruno Haible  <bruno@clisp.org>
18090
18091         Add support for multiple gnulib-tool invocations in the scope of a
18092         single configure.ac file.
18093         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
18094         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
18095         with the same contents as the _LIBADD variable.
18096         (func_emit_initmacro_start, func_emit_initmacro_end,
18097         func_emit_initmacro_done): New functions.
18098         (func_import, func_create_testdir): Invoke them. Allow the identifiers
18099         gl_LIBOBJS and gl_LTLIBOBJS.
18100
18101 2006-10-11  Bruno Haible  <bruno@clisp.org>
18102
18103         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
18104         (func_create_testdir): Don't create po/Makefile.am, don't invoke
18105         autoreconf. Instead, invoke autopoint explicitly but move back the
18106         *.m4 files from gnulib.
18107
18108 2006-10-11  Bruno Haible  <bruno@clisp.org>
18109
18110         * gnulib-tool (func_usage): Make module names after --create-testdir
18111         optional.
18112         (func_create_testdir): If no module was specified, use nearly all
18113         modules.
18114
18115 2006-10-12  Jim Meyering  <jim@meyering.net>
18116
18117         Big performance improvement for fts-based tools that use FTS_NOSTAT.
18118         Avoid spurious inode-mismatch problems on non-POSIX file systems.
18119         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
18120         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
18121         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
18122         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
18123         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
18124         (fts_set_stat_required): New function.
18125         (fts_open): Defer the calls to fts_stat, if possible or requested.
18126         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
18127         into fts_stat itself.
18128         (fts_read): Perform any required (deferred) fts_stat call.
18129         (fts_build): Likewise, for the directory we're about to open and read.
18130         In the readdir loop, carefully decide whether each entry will require
18131         an eventual call to fts_stat, using dirent.d_type info if available.
18132         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
18133         a command line argument into this function.  Update all callers.
18134         Map a return value of FTS_DOT to FTS_D for a command line argument.
18135         * modules/fts (Depends-on): Add d-type.  Alphabetize.
18136         Thanks to Miklos Szeredi for his tenacity and for the initial
18137         bug report about "find" failing on a FUSE-based file system.
18138
18139         * lib/fts.c (fts_open): Use consistent indentation.
18140
18141 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
18142
18143         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
18144         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
18145         reported by Jim Meyering.  All uses of cache variables renamed
18146         to match Autoconf's.
18147         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
18148         the other one.
18149
18150         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
18151         Fix misspelling in diagnostic.
18152
18153 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18154
18155         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
18156         defined.  Problem reported by Matthew Woehlke.
18157
18158         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
18159         Add support for Tandem NonStop R series.
18160         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
18161         Use new macro.
18162
18163         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
18164         (has_trailing_slash): Omit size arg; all callers changed.
18165         Omit 'inline', since it doesn't help performance and we'd
18166         need to configure it.
18167         Don't count //, ///, etc. as having a trailing slash.
18168         As a side effect, this removes a C99ism reported by Matthew Woehlke.
18169         (rpl_rename_dest_slash): On failure, use rename's errno rather
18170         than (in some cases) an incorrect or junk errno.
18171         Simplify code by removing need to compute length; this does
18172         cause it to make two passes instead of one over the file name,
18173         but it's worth it.
18174
18175         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
18176         change, since Autoconf's version may no longer be appropriate now
18177         that we are using CVS Autoconf's version.  Add support for Tandem.
18178
18179 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18180             Bruno Haible  <bruno@clisp.org>
18181
18182         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
18183         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
18184         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
18185         gl_AC_TYPE_LONG_LONG.
18186
18187         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
18188         instead of HAVE_LONG_LONG.
18189         * lib/printf-args.c (printf_fetchargs): Likewise.
18190         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18191         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18192         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
18193         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
18194         gl_AC_TYPE_LONG_LONG.
18195
18196 2006-10-11  Bruno Haible  <bruno@clisp.org>
18197
18198         * m4/longlong.m4: Add comments.
18199         * m4/ulonglong.m4: Likewise.
18200
18201 2006-10-10  Bruno Haible  <bruno@clisp.org>
18202
18203         Make it possible to #define stpcpy, strdup to aliases.
18204         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
18205         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
18206
18207 2006-10-10  Bruno Haible  <bruno@clisp.org>
18208
18209         Make it possible to #define gcd to an alias.
18210         * lib/gcd.c: Include config.h.
18211
18212 2006-10-10  Bruno Haible  <bruno@clisp.org>
18213
18214         Make it possible to #define c_isascii to an alias.
18215         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
18216         defined. Undefine the macros before defining them, to avoid gcc
18217         warnings.
18218         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
18219         define NO_C_CTYPE_MACROS early.
18220
18221 2006-10-10  Bruno Haible  <bruno@clisp.org>
18222
18223         Make it possible to #define set_program_name to an alias.
18224         * lib/progname.c: Don't undefine set_program_name; instead, undefine
18225         ENABLE_RELOCATABLE early.
18226
18227 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18228
18229         Port to Tandem NSK OSS, which has 64-bit signed int but at most
18230         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
18231         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
18232         More generally, don't assume that 64-bit signed int is available
18233         if unsigned int is, and vice versa.
18234         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
18235         unsigned symbols, not on their signed counterparts.
18236         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
18237         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
18238         (UINT64_C, UINTMAX_C):
18239         Likewise.
18240         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
18241         unsigned counterparts.
18242         (Have_long_long, Unsigned): New macros.
18243         (Int): Renamed from INT.
18244         (strtoimax): Use the new macros.
18245         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
18246         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
18247         * modules/inttypes (inttypes.h): Substitute
18248         HAVE_UNSIGNED_LONG_LONG_INT.
18249         * modules/stdint (stdint.h): Likewise.
18250         (Files): Add m4/ulonglong.m4.
18251
18252 2006-10-10  Bruno Haible  <bruno@clisp.org>
18253
18254         Fix a gcc -Wshadow warning.
18255         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
18256         to 'bucket'.
18257         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
18258         gl_linked_indexof_from_to): Likewise.
18259         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
18260         Likewise.
18261         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
18262         Likewise.
18263         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
18264         Reported by Eric Blake.
18265
18266 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
18267
18268         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
18269         for NetBSD.  Problem reported by Bruno Haible.
18270
18271 2006-10-09  Jim Meyering  <jim@meyering.net>
18272
18273         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
18274         Patch from Bruno Haible.
18275
18276 2006-10-09  Jim Meyering  <jim@meyering.net>
18277
18278         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
18279         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
18280         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
18281
18282 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18283
18284         Don't include <config.h> twice; this doesn't work in some cases,
18285         e.g., when config.h has "#define intmax_t long long int" and
18286         we include <config.h>, <inttypes.h>, <config.h> in that order.
18287         Problem reported by Matthew Woehlke in:
18288         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
18289         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
18290         * lib/fts-cycle.c: Don't include config.h.
18291         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
18292         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
18293         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
18294         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
18295         inttypes.h.
18296         * lib/xstrtoumax.c: Likewise.
18297         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
18298         __strtol and the like, so that this module is more like its siblings.
18299         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
18300         Remove; no longer needed now that we assume gnulib inttypes.h.
18301
18302 2006-10-08  Bruno Haible  <bruno@clisp.org>
18303
18304         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
18305         option.
18306
18307 2006-10-07  Jim Meyering  <jim@meyering.net>
18308
18309         * modules/inttypes (inttypes.h): Revert what seems to have been
18310         an inadvertent part of today's change: use "|", not "/" in the
18311         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
18312
18313 2006-10-07  Bruno Haible  <bruno@clisp.org>
18314
18315         * modules/sublist: New file.
18316
18317 2006-10-07  Bruno Haible  <bruno@clisp.org>
18318
18319         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
18320         * modules/argz (argz.h): Likewise.
18321         * modules/arpa_inet (arpa/inet.h): Likewise.
18322         * modules/byteswap (byteswap.h): Likewise.
18323         * modules/configmake (configmake.h): Likewise.
18324         * modules/fcntl (fcntl.h): Likewise.
18325         * modules/fnmatch (fnmatch.h): Likewise.
18326         * modules/getopt (getopt.h): Likewise.
18327         * modules/glob (glob.h): Likewise.
18328         * modules/inttypes (inttypes.h): Likewise.
18329         * modules/netinet_in (netinet/in.h): Likewise.
18330         * modules/poll (poll.h): Likewise.
18331         * modules/stdbool (stdbool.h): Likewise.
18332         * modules/stdint (stdint.h): Likewise.
18333         * modules/sys_select (sys/select.h): Likewise.
18334         * modules/sys_socket (sys/socket.h): Likewise.
18335         * modules/sys_stat (sys/stat.h): Likewise.
18336         * modules/sysexits (sysexits.h): Likewise.
18337         * modules/unistd (unistd.h): Likewise.
18338         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18339         Add a "DO NOT EDIT" comment to the generated file.
18340         (func_import): Likewise for gnulib-comp.m4.
18341
18342 2006-10-07  Bruno Haible  <bruno@clisp.org>
18343
18344         * lib/gl_sublist.h: New file.
18345         * lib/gl_sublist.c: New file.
18346
18347 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
18348
18349         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
18350         name (relative to the original working directory) and the file
18351         name component (relative to the temporary working directory).  All
18352         callers changed.
18353         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
18354         * lib/mkdir-p.c (make_dir_parents): Likewise.
18355         * lib/mkdir-p.h (make_dir_parents): Likewise.
18356
18357 2006-10-06  Eric Blake  <ebb9@byu.net>
18358
18359         Define several macros for use by the clean-temp module.
18360         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
18361         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
18362         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
18363
18364         * lib/clean-temp.h (close_stream_temp): New declaration.
18365         * lib/clean-temp.c (includes): Pull in headers according to what
18366         other modules are in use.
18367         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
18368
18369 2006-10-06  Bruno Haible  <bruno@clisp.org>
18370
18371         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
18372         instead of fopen, fwriteerror.
18373
18374 2006-10-06  Bruno Haible  <bruno@clisp.org>
18375
18376         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
18377         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
18378         int.
18379         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
18380         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
18381         Return an error indicator.
18382         Suggested by Eric Blake.
18383
18384 2006-10-06  Bruno Haible  <bruno@clisp.org>
18385
18386         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
18387         Reported by Eric Blake.
18388
18389 2006-10-06  Bruno Haible  <bruno@clisp.org>
18390
18391         * modules/closeout (Description): Mention stderr too.
18392
18393 2006-10-06  Bruno Haible  <bruno@clisp.org>
18394         and Paul Eggert  <eggert@cs.ucla.edu>
18395
18396         * lib/closeout.c (close_stdout): Also close stderr.
18397         * lib/closeout.h: Update comment.
18398
18399 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18400
18401         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
18402         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
18403         * lib/dirchownmod.c: Include lchown.h.
18404         * lib/lchown.c: Don't include files that lchown.h now includes.
18405         Don't declare chown, since lchown.h now does that.
18406         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
18407         (lchown): Define to rpl_chown if lchown is declared but
18408         does not exist.  Declare using a prototype if lchown is not
18409         declared.  Add a copyright notice.
18410         * lib/mkstemp.h: Include <unistd.h>.
18411         * lib/openat.c: Include lchown.h.
18412
18413         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
18414         we now test for that separately.
18415         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
18416         rather than O_NOFOLLOW, when testing whether it's possible to
18417         avoid a race condition reliably.
18418         * lib/savewd.c (savewd_chdir): Likewise.
18419
18420         Remove macros that are no longer needed now that stdint.h is
18421         reliable.
18422         * lib/fsusage.c (UINTMAX_MAX): Remove.
18423         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
18424         * lib/utimecmp.c (SIZE_MAX): Remove.
18425
18426         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
18427
18428         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
18429         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
18430         O_NOATIME works.
18431
18432 2006-10-05  Bruno Haible  <bruno@clisp.org>
18433
18434         * lib/gl_list.h (gl_sortedlist_search_from_to,
18435         gl_sortedlist_indexof_from_to): New declarations.
18436         (gl_list_implementation): New fields sortedlist_search_from_to,
18437         sortedlist_indexof_from_to.
18438         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
18439         inline functions.
18440         * lib/gl_list.c (gl_sortedlist_search_from_to,
18441         gl_sortedlist_indexof_from_to): New functions.
18442         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
18443         function.
18444         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
18445         (gl_array_sortedlist_search_from_to): New function.
18446         (gl_array_list_implementation): Update.
18447         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
18448         function.
18449         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
18450         (gl_carray_sortedlist_search_from_to): New function.
18451         (gl_carray_list_implementation): Update.
18452         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
18453         gl_linked_sortedlist_indexof_from_to): New functions.
18454         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
18455         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
18456         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
18457         gl_tree_sortedlist_indexof_from_to): New functions.
18458         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
18459         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
18460         Update.
18461         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
18462         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
18463         Update.
18464
18465 2006-10-05  Bruno Haible  <bruno@clisp.org>
18466
18467         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
18468         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
18469         (struct gl_list_implementation): Add fields search_from_to,
18470         indexof_from_to. Remove fields search, indexof.
18471         (gl_list_search): Use the search_from_to method.
18472         (gl_list_search_from, gl_list_search_from_to): New functions.
18473         (gl_list_indexof): Use the indexof_from_to method.
18474         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
18475         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
18476         (gl_list_search_from, gl_list_search_from_to): New functions.
18477         (gl_list_indexof): Use the indexof_from_to method.
18478         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
18479         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
18480         gl_array_indexof. Add start_index, end_index arguments.
18481         (gl_array_search_from_to): Renamed from gl_array_search. Add
18482         start_index, end_index arguments.
18483         (gl_array_remove, gl_array_list_implementation): Update.
18484         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
18485         gl_carray_indexof. Add start_index, end_index arguments.
18486         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
18487         start_index, end_index arguments.
18488         (gl_carray_remove, gl_carray_list_implementation): Update.
18489         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
18490         gl_linked_search. Add start_index, end_index arguments.
18491         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
18492         start_index, end_index arguments.
18493         (gl_linked_remove): Update.
18494         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
18495         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
18496         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
18497         field to 'size_t'.
18498         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
18499         gl_tree_search. Add start_index, end_index arguments.
18500         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
18501         start_index, end_index arguments.
18502         (gl_tree_remove): Update.
18503         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
18504         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
18505         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
18506         function.
18507         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
18508         gl_tree_search. Add start_index, end_index arguments.
18509         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
18510         start_index, end_index arguments.
18511         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
18512         Update.
18513         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
18514
18515 2006-10-05  Bruno Haible  <bruno@clisp.org>
18516
18517         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
18518
18519         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
18520         fwriteerror_temp): New declarations.
18521         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
18522         (descriptors): New variable.
18523         (cleanup): First, close the descriptors.
18524         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
18525         fclose_temp, fwriteerror_temp): New functions.
18526
18527 2006-10-04  Jim Meyering  <jim@meyering.net>
18528
18529         * lib/fts.c (fts_open): Tiny comment change.
18530
18531 2006-10-04  Bruno Haible  <bruno@clisp.org>
18532
18533         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
18534         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
18535         gl_LOCK_BODY.
18536         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
18537         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
18538         gl_LOCK_EARLY_BODY.
18539         (gl_LOCK): Require gl_LOCK_BODY.
18540
18541 2006-10-04  Bruno Haible  <bruno@clisp.org>
18542
18543         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
18544         (gl_oset_search_atleast): New declaration.
18545         (struct gl_oset_implementation): Add field 'search_atleast'.
18546         (gl_oset_search_atleast): New inline function.
18547         * lib/gl_oset.c (gl_oset_search_atleast): New function.
18548         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
18549         (gl_array_oset_implementation): Update.
18550         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
18551         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
18552         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
18553
18554 2006-10-04  Bruno Haible  <bruno@clisp.org>
18555
18556         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
18557
18558 2006-10-03  Bruno Haible  <bruno@clisp.org>
18559
18560         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
18561         from gl_avltreehash_list_implementation.
18562
18563 2006-10-03  Bruno Haible  <bruno@clisp.org>
18564
18565         * lib/gl_oset.c (gl_oset_add): Fix return type.
18566
18567 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
18568
18569         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
18570
18571 2006-10-02  Eric Blake  <ebb9@byu.net>
18572
18573         * modules/strnlen (Depends-on): Add extensions.
18574
18575 2006-10-02  Eric Blake  <ebb9@byu.net>
18576
18577         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
18578         definition in 2.60+.
18579
18580 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
18581
18582         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
18583         checks.
18584
18585 2006-10-02  Bruno Haible  <bruno@clisp.org>
18586
18587         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
18588         to the AUTOMAKE_OPTIONS.
18589         Reported by Jim Meyering.
18590
18591 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
18592
18593         Work around bug in Solaris 10 /proc file system:
18594         /proc/self/fd/NNN/.. isn't the parent directory of
18595         the directory whose file descriptor is NNN.  This needs to
18596         be worked around at run time, not compile time, since a
18597         program might be built on Solaris 8, where things work, and
18598         run on Solaris 10.
18599         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
18600         to use the following interface instead:
18601         (OPENAT_BUFFER_SIZE): New macro.
18602         (openat_proc_name): New function.
18603         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
18604         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
18605         Likewise.
18606         * lib/openat-proc.c: New file.
18607         * modules/openat (Files): Add lib/openat-proc.c.
18608         (Depends-on): Add same-inode, stdbool.
18609         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
18610
18611 2006-09-29  Bruno Haible  <bruno@clisp.org>
18612
18613         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
18614         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
18615         argument. Set stdout_closed before testing for ferror, not after.
18616         (fwriteerror, fwriteerror_no_ebadf): New functions.
18617
18618 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18619
18620         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
18621
18622 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
18623
18624         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
18625         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
18626
18627 2006-09-28  Jim Meyering  <jim@meyering.net>
18628
18629         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
18630         Include <unistd.h>.
18631
18632 2006-09-28  Bruno Haible  <bruno@clisp.org>
18633
18634         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
18635         * modules/linkedhash-list (Depends-on): Likewise.
18636         * modules/rbtreehash-list (Depends-on): Likewise.
18637
18638 2006-09-28  Bruno Haible  <bruno@clisp.org>
18639
18640         * lib/strndup.h: Simplify the redefinition of strndup.
18641         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
18642         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
18643
18644 2006-09-28  Bruno Haible  <bruno@clisp.org>
18645
18646         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
18647         * lib/gl_linkedhash_list.c: Likewise.
18648         * lib/gl_rbtreehash_list.c: Likewise.
18649
18650 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
18651
18652         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
18653         getaddrinfo.
18654
18655         * lib/__fpending.h: Don't include <stdio_ext.h> unless
18656         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
18657         it causes <stdio_ext.h> to cause a compile-time error.
18658         Problem reported by Nelson H. F. Beebe.
18659         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
18660         of HAVE_DECL___PENDING.
18661
18662         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
18663         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
18664         declaration.
18665
18666 2006-09-27  Jim Meyering  <jim@meyering.net>
18667
18668         This file could end up with a definition for a function
18669         named __strndup, rather than rpl_strndup on a system with
18670         incomplete weak_alias support.
18671         * lib/strndup.c (strndup): Rename from __strndup.
18672         Remove #defines that used to map __strndup to strndup.
18673         Don't use K&R prototypes.
18674         Remove LIBC-related code, since this file is not sync'd with glibc.
18675         * lib/strndup.h: Revamp, accordingly.
18676         * m4/strndup.m4: Modernize.
18677
18678 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
18679
18680         * modules/savewd (Depends-on): Add 'raise'.
18681         * lib/savewd.c: Include <signal.h>, for 'raise'.
18682
18683 2006-09-26  Jim Meyering  <jim@meyering.net>
18684
18685         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
18686         when we detect Darwin 8.7.0's acl_get_file bug.
18687         Rearrange to perform the new (below) run-test while $LIBS
18688         contains any acl-related library.  Set USE_ACL at the end.
18689         (gl_ACL_GET_FILE): New function.
18690
18691 2006-09-26  Eric Blake  <ebb9@byu.net>
18692
18693         * lib/verror.c: Include <config.h> unconditionally.
18694
18695 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
18696
18697         * modules/clock-time (Maintainer): Add self.
18698         * modules/getlogin_r (Depends-on): Add extensions.
18699
18700 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18701
18702         * modules/clock-time: New module.
18703         * modules/nanosleep (Depends-on): Add clock-time.
18704         * modules/gethrxtime (Depends-on): Likewise.
18705         * modules/gettime (Depends-on): Likewise.
18706         * modules/settime (Depends-on): Likewise.
18707
18708         * modules/fts-lgpl: Depend on openat.
18709         * modules/mkancesdirs: Depend on savewd.
18710         * modules/mkdir-p: Likewise.
18711
18712 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18713
18714         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
18715
18716         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
18717         `gl_have_arbitrary_file_name_length_limit' to
18718         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
18719         actually works between configure runs.
18720
18721 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18722             Bruno Haible  <bruno@clisp.org>
18723
18724         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
18725
18726 2006-09-25  Jim Meyering  <jim@meyering.net>
18727
18728         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
18729         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
18730
18731 2006-09-25  Eric Blake  <ebb9@byu.net>
18732
18733         * gnulib-tool (func_import, func_create_testdir): Fix typos in
18734         exec's in 2006-09-18 patch when shuffling fds.
18735
18736 2006-09-25  Bruno Haible  <bruno@clisp.org>
18737
18738         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
18739         Reported by Jim Meyering.
18740
18741 2006-09-24  Jim Meyering  <jim@meyering.net>
18742
18743         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
18744         compare a pointer against a literal "0".  That caused failures with
18745         at least HP-UX's hpcc.
18746
18747 2006-09-22  Simon Josefsson  <jas@extundo.com>
18748
18749         * modules/gc-sha1:
18750         * modules/gc-md4:
18751         * modules/gc-hmac-sha1:
18752         * modules/gc-hmac-md5:
18753         * modules/gc-des:
18754         * modules/gc-arcfour: Distribute more files.
18755
18756 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18757
18758         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
18759         (gl_linked_iterator_from_to): Initialize struct completely.
18760         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
18761         (gl_tree_iterator_from_to): Likewise
18762         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
18763         * lib/gl_array_list.c [lint] (gl_array_iterator)
18764         (gl_array_iterator_from_to): Likewise.
18765         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
18766         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
18767         (gl_carray_iterator_from_to): Likewise.
18768
18769         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
18770         * lib/md4.c (md4_process_block): Remove unused variable.
18771         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
18772         parentheses for clarity.
18773
18774 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18775
18776         * modules/bison-i18n (Depends-on): Add gettext.
18777
18778 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18779
18780         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
18781         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
18782         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
18783         also add missing comma that caused broken test.
18784         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
18785         stdlib.h, for `abort'.
18786         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
18787         variables.
18788         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
18789         include unistd.h if present, for `rmdir'.
18790         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
18791         variables.
18792         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
18793         in the process include standard headers for prototypes.
18794         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
18795         gets declared on GNU/Linux.
18796         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
18797         unistd.h, for `rmdir'.
18798         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
18799
18800         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
18801         always true.
18802         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
18803
18804         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
18805
18806 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18807
18808         * gnulib-tool (func_version): Create output all at once.  This
18809         may help avoid triggering unnecessary SIGPIPEs, and at any
18810         rate it doesn't hurt.
18811
18812 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18813             Bruno Haible  <bruno@clisp.org>
18814
18815         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
18816         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18817         * m4/signed.m4 (bh_C_SIGNED): Likewise.
18818
18819         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
18820         (gl_FUNC_VASPRINTF): Invoke it.
18821
18822 2006-09-22  Bruno Haible  <bruno@clisp.org>
18823
18824         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
18825         getloadavg.c as first argument.
18826
18827 2006-09-22  Bruno Haible  <bruno@clisp.org>
18828
18829         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
18830         at the beginning of the gl_INIT macro.
18831         * modules/getloadavg (configure.ac): Pass $gl_source_base to
18832         gl_GETLOADAVG.
18833
18834 2006-09-22  Bruno Haible  <bruno@clisp.org>
18835
18836         * gnulib-tool (func_create_megatestdir): Don't include the config-h
18837         module.
18838         Suggested by Ralf Wildenhues.
18839
18840 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
18841
18842         Import this patch from libc:
18843
18844         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
18845
18846         * lib/regex_internal.c (re_string_reconstruct): Handle
18847         offset < pstr->valid_raw_len && pstr->offsets_needed case.
18848         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
18849         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
18850         re_string_context_at.
18851
18852         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
18853         now requires it.
18854         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
18855         gl_REGEX now does it for us.
18856         (gl_REGEX): Add test taken from
18857         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
18858
18859         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
18860         Check that large offsets work.  Modernize Autoconf usages.
18861         Prefer "yes" to mean a good thing rather than a bad.
18862         Don't put "#define mkstemp" in config.h, as this might interfere
18863         with standard system headers that "#define mkstemp mkstemp64".
18864
18865         * modules/mkstemp (Depends-on): Add extensions, so that
18866         mkstemp is visible on some platforms.
18867         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
18868         (Include): Change to "mkstemp.h" from <stdlib.h>.
18869         (Files): Add mkstemp.h.
18870
18871         * lib/mkstemp.h: New file, since some standard headers
18872         #define mkstemp.
18873         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
18874         Include "mkstemp.h".
18875         Make the _LIBC code resemble glibc original more,
18876         e.g., use K&R style.
18877         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
18878         (mkstemp): Remove, since mkstemp.h does this for us.
18879         * lib/stdlib--.h: Include mkstemp.h.
18880
18881         Import this patch from libc:
18882
18883         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
18884
18885         * lib/tempname.c (__gen_tempname): Change attempts_min
18886         into a macro.  Use preprocessor to decide how to initialize
18887         attempts [Coverity CID 67].
18888
18889 2006-09-20  Bruno Haible  <bruno@clisp.org>
18890
18891         * lib/mkdtemp.c: Import from libc.
18892         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
18893                 * sysdeps/posix/tempname.c (__gen_tempname): Change
18894                 attempts_min into a macro.  Use preprocessor to decide how to
18895                 initialize attempts [Coverity CID 67].
18896         2001-11-27  Paul Eggert  <eggert@twinsun.com>
18897                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
18898                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
18899
18900 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18901
18902         * gnulib-tool (func_exit): New function, to allow to pass the
18903         exit status portably through the trap.  Use everywhere.
18904         (--help, --version): Signal a write error.
18905         (trap): catch SIGPIPE, for write errors.
18906         Exit at the end of the trap, with the correct exit status.
18907
18908 2006-09-19  Karl Berry  <karl@gnu.org>
18909
18910         * doc/gnulib.texi: note about the license texinfo files.
18911
18912 2006-09-19  Eric Blake  <ebb9@byu.net>
18913
18914         * gnulib-tool: Avoid space-tab.
18915
18916 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
18917
18918         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
18919         that prevented coreutils 6.1 from building.  Problem reported
18920         by Petter Reinholdtsen.
18921
18922 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
18923
18924         * gnulib-tool (avoidlist): Fix typo that broke options like
18925         --avoid=lock that are used by coreutils bootstrap.
18926
18927 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
18928
18929         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
18930         more systematically.
18931
18932 2006-09-18  Jim Meyering  <jim@meyering.net>
18933
18934         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
18935
18936 2006-09-18  Bruno Haible  <bruno@clisp.org>
18937
18938         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
18939
18940 2006-09-18  Bruno Haible  <bruno@clisp.org>
18941
18942         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
18943         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
18944         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
18945         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
18946         * m4/gettext.m4: Require autoconf >= 2.52.
18947         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
18948         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
18949         of gl_cv_header_inttypes_h.
18950
18951 2006-09-18  Bruno Haible  <bruno@clisp.org>
18952
18953         * lib/javaversion.c: Include configmake.h.
18954
18955 2006-09-18  Bruno Haible  <bruno@clisp.org>
18956
18957         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
18958         avoid that the while loops be executed in a subshell.
18959
18960 2006-09-18  Bruno Haible  <bruno@clisp.org>
18961
18962         * MODULES.html.sh (func_module): Break long lines.
18963         Suggested by Bruce Korb <bkorb@gnu.org>.
18964
18965 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18966
18967         Speed up by a factor of 1.12.
18968         * gnulib-tool (nl): New variable.
18969         (func_import): Rewrite include directive extraction to only read each
18970         directive once.
18971
18972 2006-09-17  Bruno Haible  <bruno@clisp.org>
18973
18974         * modules/javaversion (Makefile.am): Remove DEFS setting.
18975         (Depends-on): Add configmake, for PKGDATADIR definition.
18976
18977 2006-09-17  Bruno Haible  <bruno@clisp.org>
18978
18979         * gnulib-tool (func_create_testdir): Rewrite all files at once.
18980
18981 2006-09-17  Bruno Haible  <bruno@clisp.org>
18982
18983         * gnulib-tool (func_append): New function, stolen from libtool.m4.
18984         (func_modules_transitive_closure, func_modules_add_dummy,
18985         func_modules_to_filelist, func_import, func_create_testdir,
18986         func_create_megatestdir, ...): Use it wherever possible.
18987         Suggested by Ralf Wildenhues.
18988
18989 2006-09-16  Karl Berry  <karl@gnu.org>
18990
18991         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
18992         to avoid sectioning errors.
18993         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
18994         [ifinfo]: blank line after @center-ed titles.
18995         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
18996         Spell FSF address consistently with others.
18997         (These changes approved by rms.)
18998
18999 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19000
19001         Speed up by a factor of 1.61.
19002         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
19003         already checked module names again.
19004
19005 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19006
19007         Speed up by a factor of 1.13.
19008         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
19009         for new_files, and the input to func_add_or_update.
19010
19011 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19012
19013         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
19014         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
19015
19016 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
19017
19018         * modules/mkancesdirs (Depends-on): Add fcntl.
19019         * modules/savewd: New file.
19020         * MODULES.html.sh (File system functions): Add savewd.
19021
19022         * modules/configmake (Makefile.am): Add support for the
19023         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
19024
19025 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
19026
19027         * m4/savewd.m4: New file.
19028
19029 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
19030
19031         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
19032         (dirchownmod): New arg FD.  All callers changed.
19033         Use FD rather than opening the directory ourself, as opening is
19034         now the caller's responsibility.
19035         * lib/dirchownmod.h: Likewise.
19036         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
19037         hosts that require <sys/types.h> before <sys/stat.h>.  Include
19038         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
19039         (test_dir): Remove.
19040         (mkancesdirs): Return length of prefix of FILE that has already
19041         been made, or -2 if there is a child doing the work.  Redo
19042         algorithm so that it is O(N) rather than O(N**2).  Optimize away
19043         ".", and treat ".." specially since it might stray back into
19044         already-created areas.  Use a subprocess if necessary.  New arg
19045         WD; all users changed.  MAKE_DIR function should now return 1
19046         if it creates a directory that is not readable.  Return -2 if
19047         a child process is spun off.
19048         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
19049         Adjust signature to match code.
19050         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
19051         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
19052         all users changed.
19053         * lib/savewd.c, lib/savewd.h: New files.
19054
19055 2006-09-15  Jim Meyering  <jim@meyering.net>
19056
19057         * modules/rename-dest-slash: New module.
19058         * MODULES.html.sh (posix_compat): Add it here.
19059
19060         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
19061
19062 2006-09-15  Jim Meyering  <jim@meyering.net>
19063
19064         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
19065         file.
19066
19067         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
19068
19069 2006-09-15  Jim Meyering  <jim@meyering.net>
19070
19071         * lib/rename-dest-slash.c (has_trailing_slash): Use
19072         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
19073         (rpl_rename_dest_slash): Perform the cheaper trailing slash
19074         test before testing whether SRC is a directory.
19075         Suggestions from Bruno Haible.
19076
19077         Avoid a warning about an unused variable.
19078         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
19079         into the #ifdef block where it's used.
19080
19081         * lib/rename-dest-slash.c: New file.
19082
19083 2006-09-14  Bruno Haible  <bruno@clisp.org>
19084
19085         * lib/allocsa.c: Include <config.h> unconditionally.
19086         * lib/asnprintf.c: Likewise.
19087         * lib/asprintf.c: Likewise.
19088         * lib/c-strcasecmp.c: Likewise.
19089         * lib/c-strcasestr.c: Likewise.
19090         * lib/c-strncasecmp.c: Likewise.
19091         * lib/c-strstr.c: Likewise.
19092         * lib/classpath.c: Likewise.
19093         * lib/clean-temp.c: Likewise.
19094         * lib/concatpath.c: Likewise.
19095         * lib/copy-file.c: Likewise.
19096         * lib/csharpcomp.c: Likewise.
19097         * lib/csharpexec.c: Likewise.
19098         * lib/execute.c: Likewise.
19099         * lib/fatal-signal.c: Likewise.
19100         * lib/findprog.c: Likewise.
19101         * lib/fwriteerror.c: Likewise.
19102         * lib/gl_array_list.c: Likewise.
19103         * lib/gl_array_oset.c: Likewise.
19104         * lib/gl_avltree_list.c: Likewise.
19105         * lib/gl_avltree_oset.c: Likewise.
19106         * lib/gl_avltreehash_list.c: Likewise.
19107         * lib/gl_carray_list.c: Likewise.
19108         * lib/gl_linked_list.c: Likewise.
19109         * lib/gl_linkedhash_list.c: Likewise.
19110         * lib/gl_list.c: Likewise.
19111         * lib/gl_oset.c: Likewise.
19112         * lib/gl_rbtree_list.c: Likewise.
19113         * lib/gl_rbtree_oset.c: Likewise.
19114         * lib/gl_rbtreehash_list.c: Likewise.
19115         * lib/imaxabs.c: Likewise.
19116         * lib/imaxdiv.c: Likewise.
19117         * lib/javacomp.c: Likewise.
19118         * lib/javaexec.c: Likewise.
19119         * lib/javaversion.c: Likewise.
19120         * lib/linebreak.c: Likewise.
19121         * lib/localcharset.c: Likewise.
19122         * lib/lock.c: Likewise.
19123         * lib/mbchar.c: Likewise.
19124         * lib/mbswidth.c: Likewise.
19125         * lib/mkdtemp.c: Likewise.
19126         * lib/pipe.c: Likewise.
19127         * lib/printf-args.c: Likewise.
19128         * lib/printf-parse.c: Likewise.
19129         * lib/progname.c: Likewise.
19130         * lib/progreloc.c: Likewise.
19131         * lib/readlink.c: Likewise.
19132         * lib/sh-quote.c: Likewise.
19133         * lib/stpcpy.c: Likewise.
19134         * lib/stpncpy.c: Likewise.
19135         * lib/strcasecmp.c: Likewise.
19136         * lib/strcasestr.c: Likewise.
19137         * lib/strcspn.c: Likewise.
19138         * lib/striconv.c: Likewise.
19139         * lib/strncasecmp.c: Likewise.
19140         * lib/strnlen1.c: Likewise.
19141         * lib/strstr.c: Likewise.
19142         * lib/strtok_r.c: Likewise.
19143         * lib/tls.c: Likewise.
19144         * lib/tmpdir.c: Likewise.
19145         * lib/unicodeio.c: Likewise.
19146         * lib/unsetenv.c: Likewise.
19147         * lib/vasnprintf.c: Likewise.
19148         * lib/vasprintf.c: Likewise.
19149         * lib/wait-process.c: Likewise.
19150         * lib/xallocsa.c: Likewise.
19151         * lib/xsetenv.c: Likewise.
19152         * lib/xstriconv.c: Likewise.
19153
19154 2006-09-13  Simon Josefsson  <jas@extundo.com>
19155
19156         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
19157         that internally, suggested by Ralf Wildenhues
19158         <Ralf.Wildenhues@gmx.de>.
19159
19160 2006-09-13  Simon Josefsson  <jas@extundo.com>
19161
19162         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
19163         @LIBOBJS@.
19164         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19165
19166 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19167
19168         * lib/_fpending.c: Include <config.h> unconditionally, since we no
19169         longer worry about uses that don't define HAVE_CONFIG_H.
19170         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
19171         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
19172         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
19173         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
19174         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
19175         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
19176         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
19177         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
19178         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
19179         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
19180         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
19181         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
19182         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
19183         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
19184         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
19185         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
19186         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
19187         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
19188         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
19189         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
19190         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
19191         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
19192         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
19193         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
19194         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
19195         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
19196         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
19197         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
19198         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
19199         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
19200         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
19201         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
19202         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
19203         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
19204         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
19205         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
19206         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
19207         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
19208         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
19209         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
19210         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
19211         Likewise.
19212
19213 2006-09-13  Eric Blake  <ebb9@byu.net>
19214
19215         * lib/getopt.c: Fix typo in last commit.
19216
19217 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
19218
19219         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
19220         dgettext.
19221
19222 2006-09-12  Jim Meyering  <jim@meyering.net>
19223
19224         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
19225         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
19226         Reported by Nelson H. F. Beebe.
19227
19228 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
19229
19230         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
19231         program_invocation_name and program_invocation_short_name are
19232         initialized.
19233         * lib/argp-namefrob.h: Move declarations of program_invocation_name
19234         and program_invocation_short_name to argp.h, so they are visible
19235         to user programs.
19236         * lib/argp.h: Likewise
19237
19238 2006-09-10  Bruno Haible  <bruno@clisp.org>
19239
19240         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
19241         m4/inttypes_h.m4, m4/uintmax_t.m4.
19242
19243 2006-09-10  Bruno Haible  <bruno@clisp.org>
19244
19245         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
19246         gl_AC_TYPE_UINTMAX_T.
19247
19248 2006-09-10  Bruno Haible  <bruno@clisp.org>
19249
19250         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
19251
19252 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
19253
19254         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
19255         convention.  Text proposed by Bruno Haible.
19256         (struct argp_option): Document the use of N_() wrappers.
19257
19258         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
19259         '\v', and translate the two parts separately, instead of feeding
19260         the whole string to gettext.  This allows to exclude
19261         '\v' from the strings visible to the translator by writing doc
19262         strings as N_("..") "\v" N_("..").
19263
19264 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
19265
19266         * config/srclist.txt: Undo latest change; the bug was fixed.
19267
19268 2006-09-09  Bruno Haible  <bruno@clisp.org>
19269
19270         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
19271         assignments if building a library without libtool.
19272         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
19273         in func_emit_lib_Makefile_am.
19274         (func_import): When building a static library libfoo.a, arrange to
19275         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
19276         (func_create_testdir): Likewise.
19277         * modules/gc (configure.ac, Makefile.am): If building statically,
19278         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
19279         * modules/iconvme (configure.ac, Makefile.am): Likewise.
19280         * modules/striconv (configure.ac, Makefile.am): Likewise.
19281         Based on a suggestion by Ralf Wildenhues.
19282
19283 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
19284
19285         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
19286         Check for unistd.h too, since Autoconf doesn't assume POSIX.
19287         Also:
19288
19289         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
19290         Add year_2050_test to catch glibc bug 2821
19291         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
19292
19293         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
19294         Prefer #ifdef to #if.
19295
19296         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
19297         Return from 'main' instead of calling 'exit'.
19298
19299 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
19300
19301         * lib/mktime.c (guess_time_tm): Fix bug where mktime
19302         returned the maximum time_t value rather than (time_t) -1.
19303         Problem originally reported by William Bardwell
19304         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
19305
19306         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
19307         Moved to here ...
19308         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
19309         ... from here.
19310
19311 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
19312
19313         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
19314         2821 is fixed.
19315
19316 2006-09-08  Jim Meyering  <jim@meyering.net>
19317
19318         Don't make generated files read-only.  That would bother too many
19319         people.  However, do retain the ability to work when targets are
19320         read-only: remove the destination and temporary files before writing
19321         them (when generated via sed or echo), or by using the -f option for
19322         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
19323         * modules/alloca-opt, modules/argz, modules/arpa_inet:
19324         * modules/byteswap, modules/configmake, modules/fcntl:
19325         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
19326         * modules/localcharset, modules/netinet_in, modules/poll:
19327         * modules/stdbool, modules/stdint, modules/sys_select:
19328         * modules/sys_socket, modules/sys_stat, modules/sysexits:
19329
19330 2006-09-08  Jim Meyering  <jim@meyering.net>
19331
19332         Avoid new build failure on FreeBSD 6.0.
19333         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
19334         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
19335         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
19336
19337 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19338
19339         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
19340
19341 2006-09-07  Jim Meyering  <jim@meyering.net>
19342
19343         Fix global typo in last change: use chmod u-w, not chmod u-x.
19344         Spotted by Paul Eggert and Bruce Korb.
19345         * modules/alloca-opt, modules/argz, modules/arpa_inet:
19346         * modules/byteswap, modules/configmake, modules/fcntl:
19347         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
19348         * modules/localcharset, modules/netinet_in, modules/poll:
19349         * modules/stdbool, modules/stdint, modules/sys_select:
19350         * modules/sys_socket, modules/sys_stat, modules/sysexits:
19351
19352 2006-09-06  Jim Meyering  <jim@meyering.net>
19353
19354         Make generated files be read-only.
19355         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
19356         Ensure that each generated file is now read-only.
19357         * modules/argz: Likewise.
19358         * modules/arpa_inet: Likewise.
19359         * modules/byteswap: Likewise.
19360         * modules/configmake: Likewise.
19361         * modules/fcntl: Likewise.
19362         * modules/fnmatch: Likewise.
19363         * modules/getopt: Likewise.
19364         * modules/glob: Likewise.
19365         * modules/inttypes: Likewise.
19366         * modules/netinet_in: Likewise.
19367         * modules/poll: Likewise.
19368         * modules/stdbool: Likewise.
19369         * modules/stdint: Likewise.
19370         * modules/sys_select: Likewise.
19371         * modules/sys_socket: Likewise.
19372         * modules/sys_stat: Likewise.
19373         * modules/sysexits: Likewise.
19374         * modules/localcharset: Same as above, but continue using temporary
19375         file named "t-$@" (why different?) rather than the "$@-t" used
19376         everywhere else.
19377
19378         * modules/sysexits (Makefile.am): Replace literal occurrences
19379         of "sysexit.h" more readable, and more consistent, "$@".
19380
19381 2006-09-06  Bruno Haible  <bruno@clisp.org>
19382
19383         * modules/striconv: New file.
19384         * modules/xstriconv: New file.
19385         * MODULES.html.sh (Internationalization functions): Add striconv,
19386         xstriconv.
19387
19388 2006-09-06  Bruno Haible  <bruno@clisp.org>
19389
19390         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
19391         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
19392         not using libtool correctly.
19393
19394 2006-09-06  Bruno Haible  <bruno@clisp.org>
19395
19396         * lib/striconv.h: New file.
19397         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
19398         iconvstring.c.
19399         * lib/xstriconv.h: New file.
19400         * lib/xstriconv.c: New file.
19401
19402 2006-09-06  Bruno Haible  <bruno@clisp.org>
19403
19404         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
19405         lib_..._LDFLAGS.
19406
19407 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19408
19409         * lib/argz_.h: Sync from Libtool.
19410
19411         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
19412                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19413
19414         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
19415
19416 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
19417
19418         * modules/trim: New file.
19419
19420 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
19421
19422         * lib/trim.h: New file.
19423         * lib/trim.c: New file.
19424
19425 2006-09-05  Bruno Haible  <bruno@clisp.org>
19426
19427         * MODULES.html.sh (String handling): Add trim.
19428
19429 2006-09-04  Karl Berry  <karl@gnu.org>
19430
19431         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
19432         until next release.
19433
19434 2006-09-03  Bruno Haible  <bruno@clisp.org>
19435
19436         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
19437         correctly.
19438
19439 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19440
19441         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
19442         not gl_GETLOADAVG.  Omit unneeded semicolons.
19443         Problems reported by Ralf Wildenhues in
19444         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
19445         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
19446         at the end, which is the usual gnulib style.
19447
19448         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
19449         of doing all the work ourselves.
19450         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
19451         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
19452
19453 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19454
19455         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
19456         Problem reported by Ralf Wildenhues in
19457         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
19458
19459         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
19460         HAVE_STRUCT_STATFS_F_FSTYPENAME.
19461
19462 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19463
19464         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
19465         yesterday's patch by changing test -n to test -z.
19466
19467 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
19468
19469         * modules/getloadavg (Files): Add m4/getloadavg.m4.
19470         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
19471         the former is now obsolescent.
19472
19473         * modules/chdir-long (Depends-on): Add fcntl.
19474
19475 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
19476
19477         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
19478         obsolescent, and programs should use gnulib instead.
19479         * m4/getloadavg.m4: New file, with contents taken from Autoconf
19480         but with prefixes changed.
19481
19482 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
19483
19484         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
19485         or stdbool.h, because they might not exist while configuring.
19486
19487         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
19488         Don't include unistd.h or limits.h; not needed, since chdir-long.h
19489         does that for us.
19490         (O_DIRECTORY): Remove.
19491
19492 2006-08-31  Eric Blake  <ebb9@byu.net>
19493
19494         * gnulib-tool: Don't let emacs change spaces to TAB.
19495
19496 2006-08-31  Bruno Haible  <bruno@clisp.org>
19497
19498         * gnulib-tool: When calling func_import more than once, do it in a
19499         subshell.
19500         Reported by Eric Blake <ebb9@byu.net>.
19501
19502 2006-08-31  Bruno Haible  <bruno@clisp.org>
19503
19504         * gnulib-tool (nl): Remove variable.
19505         (sed_transform_lib_file): Use more robust test for config-h module.
19506         (func_import): Fix typo in 2006-08-25 patch.
19507
19508 2006-08-31  Bruno Haible  <bruno@clisp.org>
19509
19510         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
19511         specified, augment Makefile.am variables instead of assigning them.
19512
19513 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
19514
19515         Work around a bug in both the Linux and SunOS 64-bit kernels:
19516         nanosleep mishandles sleeps for longer than 2**31 seconds.
19517         Problem reported by Frank v Waveren in
19518         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
19519         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
19520         Check for nanosleep bug.
19521         (LIB_NANOSLEEP): Append clock_gettime library if needed.
19522
19523 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
19524
19525         Work around a bug in both the Linux and SunOS 64-bit kernels:
19526         nanosleep mishandles sleeps for longer than 2**31 seconds.
19527         Problem reported by Frank v Waveren in
19528         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
19529         * lib/nanosleep.c (BILLION): New constant.
19530         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
19531         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
19532         implementation.
19533
19534 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
19535
19536         * modules/nanosleep (Depends-on): Add gettime.
19537
19538 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
19539         and Simon Josefsson  <jas@extundo.com>
19540         and Oskar Liljeblad  <oskar@osk.mine.nu>
19541
19542         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
19543         * gnulib-tool (func_import): New license type 'unmodifiable license
19544         text'.
19545         * modules/fdl: Use it.  Longer description.
19546         * module/gpl, module/lgpl: New files.
19547
19548 2006-08-30  Jim Meyering  <jim@meyering.net>
19549
19550         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
19551         shadowing the parameter.
19552
19553 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19554
19555         Sync from Libtool:
19556
19557         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19558
19559         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
19560         sharing with gnulib.  Report by Eric Blake.
19561
19562 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
19563
19564         * modules/isapipe: New file.
19565         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
19566
19567 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
19568
19569         * modules/configmake (Makefile.am): Add a comment, and omit
19570         the CONFIGMAKE_ prefix from generated macro names.  Suggested
19571         by Bruno Haible.
19572
19573 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
19574
19575         * m4/isapipe.m4: New file.
19576
19577 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
19578
19579         * lib/isapipe.c, lib/isapipe.h: New files.
19580
19581 2006-08-29  Jim Meyering  <jim@meyering.net>
19582
19583         * modules/configmake (Makefile.am): Make configmake.h depend on
19584         Makefile.  Otherwise, a stale configmake.h could hang around.
19585
19586 2006-08-29  Eric Blake  <ebb9@byu.net>
19587
19588         * lib/error.c (error_at_line, print_errno_message): Match libc, after
19589         resolution of upstream bug 3044.
19590
19591 2006-08-29  Bruno Haible  <bruno@clisp.org>
19592
19593         * modules/localcharset (Depends-on): Add configmake.
19594         (Makefile.am): Remove setting of LIBDIR through DEFS.
19595
19596 2006-08-29  Bruno Haible  <bruno@clisp.org>
19597
19598         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
19599         defined.
19600
19601 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
19602
19603         * modules/fcntl: New file.
19604         * modules/chdir-safer (Depends-on): Add fcntl.
19605         * modules/fts: Likewise.
19606         * modules/mkdir-p: Likewise.
19607
19608         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
19609         This undoes the most recent change, since we're now addressing the
19610         problem in a different way.
19611
19612         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
19613         into output, since the output might be called Makefile.am even
19614         if $makefile_name is something different.
19615         (func_import): Use $makefile_am rather than
19616         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
19617         empty.
19618
19619         * modules/inttypes (Files): Add m4/inttypes-h.m4.
19620
19621 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
19622
19623         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
19624         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
19625         recent change to stdint.m4, since we're now addressing the problem in a
19626         different way.
19627
19628 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
19629
19630         * m4/fcntl_h.m4: New file.
19631
19632 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
19633
19634         * lib/fcntl_.h: New file.
19635         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
19636         the fcntl module.
19637         * lib/dirchownmod.c: Likewise.
19638         * lib/fts.c: Likewise.
19639
19640         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
19641         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
19642         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
19643         just before including <inttypes.h>, to avoid circular inclusion.
19644
19645 2006-08-28  Jim Meyering  <jim@meyering.net>
19646
19647         * doc/visibility.texi: Actually read and correct the grammar of the
19648         sentence affected by yesterday's change.
19649
19650 2006-08-28  Eric Blake  <ebb9@byu.net>
19651
19652         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
19653         needs wrapper.
19654
19655 2006-08-28  Eric Blake  <ebb9@byu.net>
19656
19657         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
19658
19659 2006-08-28  Eric Blake  <ebb9@byu.net>
19660
19661         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
19662
19663 2006-08-28  Bruno Haible  <bruno@clisp.org>
19664
19665         * modules/c-strstr: New file, from GNU gettext.
19666         * MODULES.html.sh (String handling): Add c-strstr.
19667
19668 2006-08-28  Bruno Haible  <bruno@clisp.org>
19669
19670         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
19671         macros.
19672         Reported by Eric Blake.
19673
19674 2006-08-28  Bruno Haible  <bruno@clisp.org>
19675
19676         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
19677         (VASNPRINTF): Return a string of length > INT_MAX without failing.
19678         * lib/vasprintf.c: Include errno.h, limits.h.
19679         (EOVERFLOW): New fallback definition.
19680         (vasprintf): Test here whether the string length is > INT_MAX.
19681         * lib/vsnprintf.c: Include errno.h, limits.h.
19682         (EOVERFLOW): New fallback definition.
19683         (vsnprintf): Fix bug when generated string was too long for the buffer.
19684         Test here whether the string length is > INT_MAX.
19685
19686 2006-08-28  Bruno Haible  <bruno@clisp.org>
19687
19688         * lib/inttypes_.h (SCNX*): Remove definitions.
19689         Reported by Eric Blake.
19690
19691 2006-08-28  Bruno Haible  <bruno@clisp.org>
19692
19693         * lib/c-strstr.h: New file, from GNU gettext.
19694         * lib/c-strstr.c: New file, from GNU gettext.
19695
19696 2006-08-28  Bruno Haible  <bruno@clisp.org>
19697
19698         * gnulib-tool: Reorder some statements.
19699
19700 2006-08-28  Bruno Haible  <bruno@clisp.org>
19701
19702         * gnulib-tool: New option --makefile-name.
19703         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
19704         $makefile_name.
19705         (func_import): Write $makefile_name to the cache file, and read it from
19706         there unless explicitly specified. Use $makefile_name as file name
19707         instead of Makefile.am. Adjust the recommendations accordingly.
19708
19709 2006-08-28  Bruno Haible  <bruno@clisp.org>
19710
19711         * gnulib-tool (func_verify_module): Check against misapplying patch.
19712
19713 2006-08-28  Bruno Haible  <bruno@clisp.org>
19714
19715         * gnulib-tool (func_relativize, func_relconcat): New functions.
19716         Give an error if --local-dir is given with --update.
19717         Remove trailing slashes from $local_gnulib_dir.
19718         (func_import): Store the relativized $local_gnulib_dir in
19719         gnulib-cache.m4, and read it from there if not specified explicitly.
19720
19721 2006-08-28  Bruno Haible  <bruno@clisp.org>
19722
19723         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
19724         is the current directory. Respect also $local_gnulib_dir.
19725
19726 2006-08-28  Bruno Haible  <bruno@clisp.org>
19727             Simon Josefsson  <jas@extundo.com>
19728
19729         BeOS portability.
19730         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
19731
19732 2006-08-27  Jim Meyering  <jim@meyering.net>
19733
19734         * doc/visibility.texi: Remove duplicate word: "pointer".
19735
19736 2006-08-26  Bruno Haible  <bruno@clisp.org>
19737
19738         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
19739         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
19740         (Makefile.am): Create inttypes.h from inttypes_.h.
19741         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
19742
19743         * modules/imaxabs: New file.
19744
19745         * modules/imaxdiv: New file.
19746
19747 2006-08-26  Bruno Haible  <bruno@clisp.org>
19748
19749         * m4/inttypes.m4: New file.
19750         * m4/_inttypes_h.m4: Remove file.
19751         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
19752         PRI_MACROS_BROKEN.
19753         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
19754
19755         * m4/imaxabs.m4: New file.
19756
19757         * m4/imaxdiv.m4: New file.
19758
19759 2006-08-26  Bruno Haible  <bruno@clisp.org>
19760
19761         * lib/inttypes_.h: New file.
19762         * lib/inttypes.h: Remove file.
19763         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
19764
19765         * lib/imaxabs.c: New file.
19766
19767         * lib/imaxdiv.c: New file.
19768
19769 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
19770
19771         New config-h module, so that "make" output needn't be cluttered
19772         by -DHAVE_CONFIG_H.
19773         * MODULES.html.sh (Support for building libraries and executables):
19774         Add config-h.
19775         * modules/config-h: New file.
19776         * gnulib-tool (nl, sed_transform_lib_file): New vars.
19777         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
19778         the config-h module is used.
19779
19780         New configmake module, so that "make" output needn't be cluttered
19781         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
19782         * MODULES.html.sh (Support for building libraries and executables):
19783         Add configmake.
19784         * modules/configmake: New file.
19785
19786 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
19787
19788         * m4/config-h.m4: New file.
19789
19790 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19791
19792         * config/srclist.txt: Add elisp-comp.
19793
19794 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19795
19796         * MODULES.html.sh (Support for building libraries and executables):
19797         Add elisp-comp.
19798         * build-aux/elisp-comp: New file.
19799         * modules/elisp-comp: New file.
19800
19801 2006-08-24  Bruno Haible  <bruno@clisp.org>
19802
19803         * gnulib-tool (func_create_testdir): Use non-default values of
19804         sourcebase and m4base.
19805
19806 2006-08-24  Bruno Haible  <bruno@clisp.org>
19807
19808         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
19809         HTML structure.
19810
19811 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
19812
19813         * modules/openat (Depends-on): Add lchown.
19814
19815 2006-08-23  Bruno Haible  <bruno@clisp.org>
19816
19817         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
19818         of gl_LOCK_EARLY instead of gl_LOCK.
19819
19820 2006-08-23  Bruno Haible  <bruno@clisp.org>
19821
19822         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
19823         on OSF/1 to no.
19824         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
19825
19826 2006-08-23  Bruno Haible  <bruno@clisp.org>
19827
19828         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
19829         as unusable.
19830
19831         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
19832         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
19833         (gl_LOCK): New macro.
19834
19835 2006-08-22  Simon Josefsson  <jas@extundo.com>
19836
19837         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
19838         to md5 module.
19839
19840 2006-08-22  Simon Josefsson  <jas@extundo.com>
19841
19842         * MODULES.html.sh: Add "Support for maintaining and release
19843         projects".
19844
19845         * build-aux/gnupload: New file, from coreutils.
19846
19847 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
19848
19849         Avoid the need for AC_LIBSOURCES in m4 macros.
19850         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
19851         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
19852         * modules/check-version (EXTRA_DIST): Add check-version.h.
19853         * modules/crc (EXTRA_DIST): Add crc.h.
19854         * modules/des (EXTRA_DIST): Add des.h.
19855         * modules/gc (EXTRA_DIST): Add gc.h.
19856         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
19857         * modules/getline (EXTRA_DIST): Add getline.h.
19858         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
19859         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
19860         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
19861         * modules/md2 (EXTRA_DIST): Add md2.h.
19862         * modules/md4 (EXTRA_DIST): Add md4.h.
19863         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
19864         * modules/read-file (EXTRA_DIST): Add read-file.h.
19865         * modules/readline (EXTRA_DIST): Add readline.h.
19866         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
19867         rijndael-api-fst.h.
19868
19869 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
19870
19871         * m4/rijndael.m4 (gl_ARCFOUR):
19872         * m4/arctwo.m4 (gl_ARCTWO):
19873         * m4/check-version.m4 (gl_CHECK_VERSION):
19874         * m4/crc.m4 (gl_CRC):
19875         * m4/des.m4 (gl_DES):
19876         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
19877         * m4/gc.m4 (gl_GC):
19878         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
19879         * m4/getline.m4 (gl_FUNC_GETLINE):
19880         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
19881         * m4/hmac-md5.m4 (gl_HMAC_MD5):
19882         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
19883         * m4/md2.m4 (gl_MD2):
19884         * m4/md4.m4 (gl_MD4):
19885         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
19886         * m4/read-file.m4 (gl_FUNC_READ_FILE):
19887         * m4/readline.m4 (gl_FUNC_READLINE):
19888         * m4/rijndael.m4 (gl_RIJNDAEL):
19889         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
19890         to get the necessary .h files and whatnot.
19891
19892 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
19893
19894         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
19895         gnulib rather than the other way around.
19896         * config/srclistvars.sh (COREUTILS): Remove.
19897
19898 2006-08-22  Jim Meyering  <jim@meyering.net>
19899
19900         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
19901
19902         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
19903
19904 2006-08-22  Eric Blake  <ebb9@byu.net>
19905
19906         * modules/regexprops-generic: New file.
19907         * MODULES.html.sh (Support for building documentation): List it.
19908
19909 2006-08-22  Eric Blake  <ebb9@byu.net>
19910
19911         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
19912         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
19913         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
19914         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
19915
19916 2006-08-22  Bruno Haible  <bruno@clisp.org>
19917
19918         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
19919         and lib_LTLIBRARIES like the other lib_* variables.
19920
19921 2006-08-22  Bruno Haible  <bruno@clisp.org>
19922
19923         * build-aux/x-to-1.in: New file, from GNU gettext.
19924
19925 2006-08-22  Bruno Haible  <bruno@clisp.org>
19926
19927         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
19928         <utmpx.h> exists.
19929
19930 2006-08-22  Bruno Haible  <bruno@clisp.org>
19931
19932         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
19933         <utmpx.h> exists.
19934
19935 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
19936
19937         BeOS portability.
19938         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
19939         exist.
19940         Problem reported by Bruno Haible.
19941
19942 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
19943
19944         Avoid the need for AC_LIBSOURCES in m4 macros.
19945         * modules/acl (EXTRA_DIST): Add acl.h.
19946         * modules/argmatch (Files): Add m4/argmatch.m4.
19947         (configure.ac): Add gl_ARGMATCH.
19948         (EXTRA_DIST): Renamed from lib_SOURCES, for
19949         consistency with the other modules.  Remove argmatch.c.
19950         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
19951         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
19952         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
19953         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
19954         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
19955         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
19956         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
19957         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
19958         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
19959         * modules/closeout (EXTRA_DIST): Add closeout.h.
19960         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
19961         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
19962         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
19963         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
19964         dirname.h; remove basename.c and stripslash.c.
19965         * modules/exclude (EXTRA_DIST): Add exclude.h.
19966         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
19967         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
19968         * modules/file-type (EXTRA_DIST): Add file-type.h.
19969         * modules/filemode (EXTRA_DIST): Add filemode.h.
19970         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
19971         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
19972         * modules/fpending (EXTRA_DIST): Add __fpending.h.
19973         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
19974         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
19975         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
19976         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
19977         * modules/getdate (EXTRA_DIST): Add getdate.c.
19978         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
19979         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
19980         * modules/getpass (EXTRA_DIST): Add getpass.h.
19981         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
19982         * modules/group-member (EXTRA_DIST): Add group-member.h.
19983         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
19984         * modules/hash (EXTRA_DIST): Add hash.h.
19985         * modules/human (EXTRA_DIST): Add human.h.
19986         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
19987         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
19988         * modules/lchown (EXTRA_DIST): Add lchown.h.
19989         * modules/long-options (EXTRA_DIST): Add long-options.h.
19990         * modules/lstat (EXTRA_DIST): Add lstat.h.
19991         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
19992         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
19993         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
19994         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
19995         * modules/memxor (EXTRA_DIST): Add memxor.h.
19996         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
19997         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
19998         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
19999         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
20000         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
20001         * modules/physmem (EXTRA_DIST): Add physmem.h.
20002         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
20003         * modules/posixver (EXTRA_DIST): Add posixver.h.
20004         * modules/quote (EXTRA_DIST): Add quote.h.
20005         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
20006         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
20007         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
20008         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
20009         regex_internal.h regexec.c.
20010         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
20011         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
20012         * modules/same (EXTRA_DIST): Add same.h.
20013         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
20014         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
20015         * modules/savedir (EXTRA_DIST): Add savedir.h.
20016         * modules/sha1 (EXTRA_DIST): Add sha1.h.
20017         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
20018         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
20019         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
20020         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
20021         * modules/strdup (EXTRA_DIST): Add strdup.h.
20022         * modules/strftime (EXTRA_DIST): Add strftime.h.
20023         * modules/strndup (EXTRA_DIST): Add strndup.h.
20024         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
20025         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
20026         * modules/time_r (EXTRA_DIST): Add time_r.h.
20027         * modules/timespec (EXTRA_DIST): Add timespec.h.
20028         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
20029         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
20030         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
20031         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
20032         * modules/userspec (EXTRA_DIST): Add userspec.h.
20033         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
20034         * modules/utimens (EXTRA_DIST): Add utimens.h.
20035         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
20036         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
20037         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
20038         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
20039         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
20040         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
20041         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
20042         * modules/yesno (EXTRA_DIST): Add yesno.h.
20043
20044 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
20045
20046         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
20047
20048         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
20049         * m4/dev-ino.m4, same-inode.m4: Remove.
20050
20051         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
20052         * m4/acl.m4 (AC_FUNC_ACL):
20053         * m4/backupfile.m4 (gl_BACKUPFILE):
20054         * m4/c-strtod.m4 (gl_C99_STRTOLD):
20055         * m4/canon-host.m4 (gl_CANON_HOST):
20056         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
20057         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
20058         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
20059         * m4/cloexec.m4 (gl_CLOEXEC):
20060         * m4/close-stream.m4 (gl_CLOSE_STREAM):
20061         * m4/closeout.m4 (gl_CLOSEOUT):
20062         * m4/dirfd.m4 (gl_FUNC_DIRFD):
20063         * m4/dirname.m4 (gl_DIRNAME):
20064         * m4/exclude.m4 (gl_EXCLUDE):
20065         * m4/exitfail.m4 (gl_EXITFAIL):
20066         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
20067         * m4/file-type.m4 (gl_FILE_TYPE):
20068         * m4/filemode.m4 (gl_FILEMODE):
20069         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
20070         * m4/fpending.m4 (gl_FUNC_FPENDING):
20071         * m4/fprintftime.m4 (gl_FPRINTFTIME):
20072         * m4/fts.m4 (gl_FUNC_FTS):
20073         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
20074         * m4/getdate.m4 (gl_GETDATE):
20075         * m4/gethrxtime.m4 (gl_GETHRXTIME):
20076         * m4/getpagesize.m4 (gl_GETPAGESIZE):
20077         * m4/getpass.m4 (gl_FUNC_GETPASS):
20078         * m4/gettime.m4 (gl_GETTIME):
20079         * m4/getugroups.m4 (gl_GETUGROUPS):
20080         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
20081         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
20082         * m4/hard-locale.m4 (gl_HARD_LOCALE):
20083         * m4/hash.m4 (gl_HASH):
20084         * m4/idcache.m4 (gl_IDCACHE):
20085         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
20086         * m4/lchown.m4 (gl_FUNC_LCHOWN):
20087         * m4/long-options.m4 (gl_LONG_OPTIONS):
20088         * m4/lstat.m4 (gl_FUNC_LSTAT):
20089         * m4/md5.m4 (gl_MD5):
20090         * m4/memcasecmp.m4 (gl_MEMCASECMP):
20091         * m4/memcoll.m4 (gl_MEMCOLL):
20092         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
20093         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
20094         * m4/memxor.m4 (gl_MEMXOR):
20095         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
20096         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
20097         * m4/modechange.m4 (gl_MODECHANGE):
20098         * m4/mountlist.m4 (gl_MOUNTLIST):
20099         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
20100         * m4/openat.m4 (gl_FUNC_OPENAT):
20101         * m4/pathmax.m4 (gl_PATHMAX):
20102         * m4/physmem.m4 (gl_PHYSMEM):
20103         * m4/posixtm.m4 (gl_POSIXTM):
20104         * m4/posixver.m4 (gl_POSIXVER):
20105         * m4/quote.m4 (gl_QUOTE):
20106         * m4/quotearg.m4 (gl_QUOTEARG):
20107         * m4/readtokens.m4 (gl_READTOKENS):
20108         * m4/readutmp.m4 (gl_READUTMP):
20109         * m4/regex.m4 (gl_REGEX):
20110         * m4/safe-read.m4 (gl_SAFE_READ):
20111         * m4/safe-write.m4 (gl_SAFE_WRITE):
20112         * m4/same.m4 (gl_SAME):
20113         * m4/save-cwd.m4 (gl_SAVE_CWD):
20114         * m4/savedir.m4 (gl_SAVEDIR):
20115         * m4/settime.m4 (gl_SETTIME):
20116         * m4/sha1.m4 (gl_SHA1):
20117         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
20118         * m4/stat-macros.m4 (gl_STAT_MACROS):
20119         * m4/stat-time.m4 (gl_STAT_TIME):
20120         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
20121         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
20122         * m4/strdup.m4 (gl_FUNC_STRDUP):
20123         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
20124         * m4/strndup.m4 (gl_FUNC_STRNDUP):
20125         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
20126         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
20127         * m4/time_r.m4 (gl_TIME_R):
20128         * m4/timespec.m4 (gl_TIMESPEC):
20129         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
20130         * m4/unlinkdir.m4 (gl_UNLINKDIR):
20131         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
20132         * m4/userspec.m4 (gl_USERSPEC):
20133         * m4/utimecmp.m4 (gl_UTIMECMP):
20134         * m4/utimens.m4 (gl_UTIMENS):
20135         * m4/xalloc.m4 (gl_XALLOC):
20136         * m4/xgetcwd.m4 (gl_XGETCWD):
20137         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
20138         * m4/xreadlink.m4 (gl_XREADLINK):
20139         * m4/xstrtod.m4 (gl_XSTRTOD):
20140         * m4/yesno.m4 (gl_YESNO):
20141         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
20142         to get the necessary .h files and whatnot.
20143
20144 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
20145             Bruno Haible  <bruno@clisp.org>
20146
20147         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
20148         /bin/sh understanding of '!' conditional negation.
20149
20150 2006-08-21  Jim Meyering  <jim@meyering.net>
20151
20152         * modules/openat (Depends-on): Really alphabetize.
20153
20154         * modules/acl (Depends-on): Add error and quote.
20155
20156         * check-module (find_included_lib_files): Add at-func.c to the
20157         ok-to-include-more-than-once white list.
20158
20159         * modules/openat (Depends-on): Add lstat.  Alphabetize.
20160
20161 2006-08-21  Bruno Haible  <bruno@clisp.org>
20162
20163         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20164         Emit a pkgdata_DATA variable only if some snippets add contents to it.
20165         Reported by Martin Lambers <marlam@marlam.de>.
20166
20167 2006-08-21  Bruno Haible  <bruno@clisp.org>
20168
20169         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
20170         specify an installation location, don't emit a noinst_LIBRARIES or
20171         noinst_LTLIBRARIES assignment.
20172
20173 2006-08-21  Bruno Haible  <bruno@clisp.org>
20174
20175         BeOS portability.
20176         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
20177         BeOS has mbrtowc() but no <wctype.h>.
20178
20179 2006-08-21  Bruno Haible  <bruno@clisp.org>
20180
20181         BeOS portability.
20182         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
20183         exist.
20184
20185 2006-08-21  Bruno Haible  <bruno@clisp.org>
20186
20187         BeOS portability.
20188         * lib/mbchar.h: Include <wctype.h> only if it exists.
20189
20190 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
20191
20192         Remove files that are no longer needed by their respective modules.
20193         * m4/obstack.m4: Remove.
20194         * m4/strerror_r.m4: Remove.
20195         * m4/uint32_t.m4: Remove.
20196         * m4/uintptr_t.m4: Remove.
20197         * m4/ullong_max.m4: Remove.
20198         * m4/xstrtoimax.m4: Remove.
20199         * m4/xstrtoumax.m4: Remove.
20200
20201         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
20202         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
20203         dependencies now capture this.
20204
20205         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
20206         Do not use AC_LIBSOURCES, since gnulib modules now do this.
20207         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
20208         * m4/human.m4 (gl_HUMAN): Likewise.
20209         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
20210         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
20211
20212         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
20213
20214         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
20215         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
20216         stdint.
20217         * m4/human.m4 (gl_HUMAN): Likewise.
20218         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
20219         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
20220         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
20221         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
20222         * m4/xstrtol (gl_XSTRTOL): Likewise.
20223
20224         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
20225         AC_TYPE_LONG_LONG_INT.
20226         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
20227         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
20228         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
20229         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
20230
20231         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
20232         on stdbool.
20233
20234         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
20235         (gl_PREREQ_XSTRTOUL): Remove.
20236
20237         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
20238
20239         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
20240         mode.
20241
20242 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
20243
20244         Add and change modules to make it easier for coreutils to use
20245         gnulib-tool.
20246         * modules/backupfile (Files): Remove m4/d-ino.m4.
20247         (Depends-on): Add d-ino.
20248         * modules/cycle-check (Depends-on): Add stdint.
20249         (lib_SOURCES): Add cycle-check.h.
20250         * modules/d-ino: New module.
20251         * modules/d-type: New module.
20252         * modules/error (Files): Remove m4/strerror_r.m4.
20253         * modules/filemode (Files): Add m4/st_dm_mode.m4.
20254         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
20255         m4/inttypes_h.m4, m4/uintmax_t.m4.
20256         (Depends-on): Add stdint.
20257         (lib_SOURCES): Add fsusage.h.
20258         * modules/getcwd (Files): Remove d-ino.m4.
20259         (Depends-on): Add d-ino.
20260         * modules/getndelim2 (Depends-on): Add stdint.
20261         * modules/glob (Files): Remove m4/d-type.m4.
20262         (Depends-on): Add d-type.
20263         * modules/host-os: New module.
20264         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
20265         m4/inttypes_h.m4, m4/uintmax_t.m4.
20266         * Depends-on: Add stdint.
20267         (lib_SOURCES): Add human.h.
20268         * modules/inttostr (Files): Remove m4/intmax_t.m4,
20269         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
20270         m4/uintmax_t.m4, m4/ulonglong.m4.
20271         (Depends-on): Add stdint.
20272         (EXTRA_DIST): Add inttostr.h.
20273         * modules/lchmod: New module.
20274         * modules/link-follow: New module.
20275         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
20276         (Depends-on): Add lchmod.
20277         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
20278         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
20279         (Depends-on): Add stdint.
20280         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
20281         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
20282         (Depends-on): Add stdint.
20283         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
20284         * modules/perl: New module.
20285         * modules/regex (Depends-on): Add stdint.
20286         * modules/rmdir-errno: New module.
20287         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
20288         m4/intmax_t.m4.
20289         (Depends-on): Add stdint.
20290         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
20291         m4/uintmax_t.m4.
20292         (Depends-on): Add stdint.
20293         * modules/unlink-busy: New module.
20294         * modules/utimecmp (Depends-on): Add stdint.
20295         * modules/uptime: New module.
20296         * modules/winsz-ioctl: New module.
20297         * modules/winsz-termios: New module.
20298         * modules/xnanosleep (Depends-on): Add nanosleep.
20299         * modules/ullong_max: Remove.
20300         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
20301         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
20302         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
20303         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
20304         (Depends-on): Add inttypes.
20305         (lib_SOURCES): Add xstrtol.h.
20306         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
20307         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
20308         * MODULES.html.sh: Move 'assert' into the assert section.
20309         Move 'dummy' into the linking section.
20310         Remove ullong_max.
20311         Add section for compatibility checks for POSIX:2001 functions,
20312         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
20313         winsz-ioctl, and winsz-termios into it.
20314         Add lchmod.
20315         Add top-level Misc section and put host-os, perl, and uptime
20316         into it.
20317
20318 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
20319
20320         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
20321         now assume the stdint module.  Do not include inttypes.h.
20322         * lib/fsusage.h: Likewise.
20323         * lib/getndelim2.c: Likewise.
20324         * lib/human.h: Likewise.
20325         * lib/inttostr.h: Likewise.
20326         * lib/obstack.c: Likewise.
20327         * lib/regex_internal.h: Likewise.
20328         * lib/tempname.c: Likewise.
20329         * lib/utimecmp.c: Likewise.
20330         * lib/xstrtol.h: Likewise.
20331
20332         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
20333
20334         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
20335         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
20336         * lib/xtime.h: Likewise.
20337
20338 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
20339
20340         * modules/openat (Files): Add lib/fchmodat.c.
20341         Fixes problem reported by Jay Youngman.
20342
20343 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
20344
20345         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
20346         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
20347
20348 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
20349             Bruno Haible  <bruno@clisp.org>
20350
20351         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
20352         and is a script that invokes bison. Tighten the code. Add comments.
20353
20354 2006-08-18  Jim Meyering  <jim@meyering.net>
20355
20356         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
20357         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
20358         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
20359         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
20360
20361 2006-08-18  Bruno Haible  <bruno@clisp.org>
20362
20363         * modules/bison-i18n: New file.
20364         * MODULES.html.sh (Internationalization functions): Add it.
20365
20366 2006-08-18  Bruno Haible  <bruno@clisp.org>
20367
20368         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
20369         sys/statvfs.h. When getmntinfo was found, check its declaration and
20370         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
20371
20372 2006-08-18  Bruno Haible  <bruno@clisp.org>
20373
20374         * m4/bison-i18n.m4: New file, from bison.
20375
20376 2006-08-18  Bruno Haible  <bruno@clisp.org>
20377
20378         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
20379         (ME_DUMMY): Treat "kernfs" as a dummy.
20380         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
20381
20382 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
20383
20384         Update from coreutils.
20385
20386         2006-08-15  Jim Meyering  <jim@meyering.net>
20387
20388         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
20389
20390         2006-01-17  Jim Meyering  <jim@meyering.net>
20391
20392         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
20393
20394         2006-01-11  Jim Meyering  <jim@meyering.net>
20395
20396         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
20397         Check for the lchmod function.
20398
20399 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
20400
20401         Update from coreutils.
20402
20403         * lib/__fpending.h: Add copyright notice.
20404         * lib/fprintftime.h: Likewise.
20405         * lib/savedir.c: Use (C) in copyright notice.
20406         * lib/savedir.h: Likewise.
20407
20408         2006-08-15  Jim Meyering  <jim@meyering.net>
20409
20410         * lib/at-func.c: New file, with the logic of all emulated at-functions.
20411         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
20412         in support of the EXPECTED_ERRNO macro.
20413         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
20414         definitions.  Instead, define the appropriate symbols and include
20415         "at-func.c".
20416         * lib/mkdirat.c (mkdirat): Likewise.
20417         * lib/fchmodat.c (fchmodat): Likewise.
20418         (ENOSYS): Remove definition.
20419         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
20420         it.  Don't include "unistd--.h" -- it wasn't ever used.
20421
20422         2006-01-17  Jim Meyering  <jim@meyering.net>
20423
20424         Rewrite fts.c not to change the current working directory,
20425         by using openat, fstatat, fdopendir, etc..
20426
20427         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
20428         (HAVE_OPENAT_SUPPORT): Define.
20429         [_LIBC] (fchdir): Don't undef or define; no longer used.
20430         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
20431         Now, this `function' always succeeds, and consumes its file descriptor
20432         parameter -- so callers must not close such FDs.  Update callers.
20433         (diropen_fd, opendirat, cwd_advance_fd): New functions.
20434         (diropen): Add parameter, SP.  Adjust all callers.
20435         Implement using diropen_fd, rather than open.
20436         (fts_open): Initialize new member, fts_cwd_fd.
20437         Remove fts_rft-setting code.
20438         (fts_close): Close fts_cwd_fd, if necessary.
20439         (__opendir2): Define in terms of opendir or opendirat,
20440         depending on whether the FST_NOCHDIR flag is set.
20441         (fts_build): Since fts_safe_changedir consumes its FD, and since
20442         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
20443         and close the dup'd file descriptor upon failure.
20444         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
20445         (fts_safe_changedir): Tweak semantics to reflect that this function
20446         now calls cwd_advance_fd and hence consumes its FD argument.
20447         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
20448         [struct FTS] (fts_rft): Remove now-unused member.
20449         [struct FTS] (fts_cycle.state): Improve comment.
20450
20451         * lib/openat.c (openat_needs_fchdir): New function.
20452         * lib/openat.h (openat_needs_fchdir): Declare it.
20453
20454 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
20455
20456         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
20457         Problem and fix reported by Pádraig Brady in
20458         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
20459
20460 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20461
20462         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
20463
20464 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20465
20466         * lib/memcoll.c (memcoll): Optimize for the common case where the
20467         arguments are bytewise equal.
20468
20469 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20470
20471         * doc/regexprops-generic.texi: Add a copyright notice.
20472
20473 2006-08-15  Bruno Haible  <bruno@clisp.org>
20474
20475         * modules/tmpdir (License): Change to LGPL.
20476
20477 2006-08-15  Bruno Haible  <bruno@clisp.org>
20478
20479         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
20480         module.
20481
20482 2006-08-14  Simon Josefsson  <jas@extundo.com>
20483
20484         * config/srclist.txt: Add gnupload.
20485
20486 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
20487
20488         Change copyright notice from LGPL 2 to GPL 2, since that's the
20489         standard form used in the gnulib repository.
20490         * tests/test-lock.c: Likewise.
20491         * tests/test-stdint.c: Likewise.
20492         * tests/test-tls.c: Likewise.
20493
20494         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
20495         prelude-manager.  User shorter URLs for GNU projects, without '?'.
20496         Add copyright notice.
20497
20498         * check-module: Add copyright notice.  Output a copyright
20499         notice if "--version" is specified.
20500         * modules/COPYING: New file.
20501         * tests/test-getaddrinfo.c: Add copyright notice.
20502         * tests/test-verify.c: Likewise.
20503
20504 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
20505
20506         Change copyright notice from LGPL 2 to GPL 2, since that's the
20507         standard form used in the gnulib repository.
20508         * lib/lock.c: LGPL -> GPL.
20509         * lib/lock.h: Likewise.
20510         * lib/strnlen1.c: Likewise.
20511         * lib/strnlen1.h: Likewise.
20512         * lib/tls.c: Likewise.
20513         * lib/tls.h: Likewise.
20514         * lib/tmpdir.c: Likewise.
20515
20516         * lib/TODO: Remove; this belongs only in coreutils.
20517
20518 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
20519
20520         Add copyright notices to long-enough files that lack them, since
20521         otherwise the files aren't clearly free.  Use the same notice that
20522         getdate.texi already uses.
20523         * doc/alloca-opt.texi: Add copyright notice.
20524         * doc/alloca.texi: Likewise.
20525         * doc/ctime.texi: Likewise.
20526         * doc/functions.texi: Likewise.
20527         * doc/gcd.texi: Likewise.
20528         * doc/gnulib-tool.texi: Likewise.
20529         * doc/inet_ntoa.texi: Likewise.
20530         * doc/visibility.texi: Likewise.
20531
20532         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
20533         * doc/quote.texi: Add copyright notice.
20534
20535         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
20536         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
20537         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
20538         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
20539         is now obsolete, and give a pointer to the Sun list.
20540         Add copyright notice.
20541
20542 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
20543
20544         * config/srclistvars.sh: Add copyright notice.
20545
20546 2006-08-14  Eric Blake  <ebb9@byu.net>
20547
20548         Import the following change from libc:
20549
20550         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
20551
20552         Upstream bug 2997.
20553         * lib/misc/error.c: Add space between program name and message if file
20554         name is missing.
20555
20556 2006-08-12  Karl Berry  <karl@gnu.org>
20557
20558         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
20559         remove, these originate in gnulib now.
20560
20561 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20562
20563         * doc/Makefile (standards.info standards.html standards.dvi):
20564         Also depend on make-stds.texi.
20565
20566 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
20567
20568         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
20569         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
20570
20571         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
20572         in wchar_t.  Problem reported by Eric Blake.
20573
20574         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
20575         LEN is smaller than SIZE.  Suggested by Bruno Haible.
20576         Also, help the compiler to keep LEN in a register.
20577
20578 2006-08-11  Eric Blake  <ebb9@byu.net>
20579
20580         * users.txt: Sort.  Add tar.
20581
20582 2006-08-11  Bruno Haible  <bruno@clisp.org>
20583
20584         * users.txt: New file.
20585
20586 2006-08-11  Bruno Haible  <bruno@clisp.org>
20587
20588         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
20589         before <wchar.h>. Needed for OSF/1 and BSD/OS.
20590
20591 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
20592
20593         * modules/snprintf (Depends-on): Remove minmax.
20594         (Maintainer): Add self and Bruno.
20595
20596 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
20597
20598         * lib/.cppi-disable: Add snprintf.h, socket_.h.
20599         * lib/snprintf.c: Include <errno.h> and <limits.h>.
20600         (EOVERFLOW): Define if the system does not.
20601         Do not include "minmax.h"; it wasn't used.
20602         (snprintf): Don't assume size_t promotes to an unsigned type.
20603         Fix bug when generated string was too long for the buffer: the
20604         buffer's contents are supposed to be the initial prefix of the
20605         output.  Don't assume vasnprintf returns EOVERFLOW if the size
20606         exceeds INT_MAX; do the check ourselves.
20607
20608         Import the following changes from libc:
20609
20610         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
20611
20612         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
20613         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
20614         set wc to the byte which couldn't be converted.
20615         (re_string_reconstruct): Don't clear valid_raw_len before calling
20616         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
20617         tip_context using re_string_context_at.
20618
20619         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
20620
20621         * lib/posix/regex.h: g++ still cannot handled [restrict].
20622
20623         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
20624
20625         * lib/posix/regex.h: Remove special handling for VMS.
20626
20627 2006-08-10  Jim Meyering  <jim@meyering.net>
20628
20629         * modules/same-inode: New module.
20630         * modules/dev-ino: New module.
20631         * modules/cycle-check: Depend on these modules, rather than simply
20632         including their .h files.
20633         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
20634         required via m4/cycle-check.m4.
20635         * modules/same: Depend on new same-inode module, rather than
20636         including same-inode.h.
20637         * modules/chdir-safer: New file.
20638
20639         * modules/chown (Depends-on): Add stat-macros.
20640
20641 2006-08-10  Jim Meyering  <jim@meyering.net>
20642
20643         * m4/cycle-check.m4: New file.
20644         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
20645         * m4/dev-ino.m4, m4/same-inode.m4: New files.
20646
20647 2006-08-10  Eric Blake  <ebb9@byu.net>
20648
20649         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
20650         in from original proposal.
20651
20652 2006-08-10  Eric Blake  <ebb9@byu.net>
20653         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20654
20655         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
20656         namespace.
20657
20658 2006-08-10  Bruno Haible  <bruno@clisp.org>
20659
20660         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
20661         as well.
20662
20663 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
20664
20665         Sync from coreutils.
20666
20667         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
20668
20669         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
20670         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
20671
20672 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
20673
20674         * modules/restrict: Remove; no longer needed now that we assume
20675         Autoconf 2.59 or later.
20676         * MODULES.html.sh: Remove 'restrict'.
20677         * modules/argp (Depends-on): Remove 'restrict'.
20678         * modules/base64 (Depends-on): Likewise.
20679         * modules/gc (Depends-on): Likewise.
20680         * modules/getaddrinfo (Depends-on): Likewise.
20681         * modules/glob (Depends-on): Likewise.
20682         * modules/inet_ntop (Depends-on): Likewise.
20683         * modules/inet_pton (Depends-on): Likewise.
20684         * modules/memxor (Depends-on): Likewise.
20685         * modules/regex (Depends-on): Likewise.
20686         * modules/strtok_r (Depends-on): Likewise.
20687         * modules/time_r (Depends-on): Likewise.
20688
20689 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
20690
20691         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
20692         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
20693         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
20694         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
20695         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
20696         * m4/memxor.m4 (gl_MEMXOR): Likewise.
20697         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
20698         gl_C_RESTRICT replaced by AC_C_RESTRICT.
20699
20700         Merge from coreutils.
20701         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
20702         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
20703         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
20704         * m4/time_r.m4 (gl_TIME_R): Likewise.
20705
20706 2006-08-09  Karl Berry  <karl@gnu.org>
20707
20708         * config/srclist.txt: no more gettext-tools, per Bruno.
20709
20710 2006-08-08  Eric Blake  <ebb9@byu.net>
20711
20712         * modules/verror: New module.
20713         * MODULES.html.sh: Document it.
20714
20715 2006-08-08  Eric Blake  <ebb9@byu.net>
20716
20717         * lib/verror.h, lib/verror.c: New files.
20718
20719 2006-08-08  Eric Blake  <ebb9@byu.net>
20720
20721         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
20722         verror_at_line output complies with GNU Coding Standards even when
20723         file is NULL.
20724
20725 2006-08-07  Bruno Haible  <bruno@clisp.org>
20726
20727         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
20728         versions of AIX.
20729         Reported by Ralf Wildenhues.
20730
20731 2006-08-07  Bruno Haible  <bruno@clisp.org>
20732
20733         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
20734         in an AC_DEFUN. Needed so that the autoconf snippets can use
20735         AC_REQUIRE.
20736
20737 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20738
20739         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20740         Initialize pkgdata_DATA.
20741         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
20742         overriding it.
20743
20744 2006-08-06  Eric Blake  <ebb9@byu.net>
20745
20746         * lib/error.h: Fold in some upstream changes from glibc.
20747         * lib/error.c: Likewise.
20748
20749 2006-08-04  Bruno Haible  <bruno@clisp.org>
20750
20751         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20752         Make the mostlyclean-local rule depend on mostlyclean-generic.
20753         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
20754
20755 2006-07-31  Bruno Haible  <bruno@clisp.org>
20756
20757         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
20758         <stdlib.h>, <string.h>.
20759
20760 2006-07-30  Bruno Haible  <bruno@clisp.org>
20761
20762         * modules/readlink (License): Change to LGPL.
20763
20764 2006-07-30  Bruno Haible  <bruno@clisp.org>
20765
20766         * modules/javaversion (Makefile.am): Distribute javaversion.java and
20767         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
20768         set PKGDATADIR to point to it.
20769
20770 2006-07-30  Bruno Haible  <bruno@clisp.org>
20771
20772         * modules/csharpexec (configure.ac): Comment out macro invocation.
20773         * modules/javaexec (configure.ac): Likewise.
20774         * modules/javacomp-script (configure.ac): Likewise.
20775
20776         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
20777
20778 2006-07-30  Bruno Haible  <bruno@clisp.org>
20779
20780         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
20781         linked-list.
20782
20783 2006-07-30  Bruno Haible  <bruno@clisp.org>
20784
20785         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
20786
20787 2006-07-30  Bruno Haible  <bruno@clisp.org>
20788
20789         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20790         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
20791         get removed.
20792
20793 2006-07-29  Bruno Haible  <bruno@clisp.org>
20794
20795         Make it possible for gnulib-tool to work with locally modified or
20796         augmented gnulib repositories.
20797         * gnulib-tool (func_usage): Document --local-dir option.
20798         (local_gnulib_dir): New variable.
20799         Handle --local-dir option.
20800         (func_lookup_file): New function.
20801         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
20802         (func_get_description, func_get_filelist, func_get_description,
20803         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
20804         func_get_automake_snippet, func_get_include_directive,
20805         func_get_license, func_get_maintainer): Use func_lookup_file.
20806         (func_import, func_create_testdir): Use func_lookup_file.
20807
20808 2006-07-29  Bruno Haible  <bruno@clisp.org>
20809
20810         * modules/setenv (Depends-on): Add unistd.
20811
20812 2006-07-29  Bruno Haible  <bruno@clisp.org>
20813
20814         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
20815
20816 2006-07-29  Bruno Haible  <bruno@clisp.org>
20817
20818         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
20819
20820 2006-07-29  Bruno Haible  <bruno@clisp.org>
20821
20822         * gnulib-tool (import, update): If there is no Makefile.am, look at
20823         aclocal.m4, instead of bailing out.
20824
20825 2006-07-29  Bruno Haible  <bruno@clisp.org>
20826
20827         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
20828         Categorize the options by when they are useful.
20829
20830 2006-07-29  Bruno Haible  <bruno@clisp.org>
20831
20832         * gnulib-tool (func_usage): Document option --no-libtool.
20833         Handle option --no-libtool.
20834         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
20835         for changed semantics of $libtool variable.
20836         (func_import): Likewise. If libtool is not used, show this through
20837         an option --no-libtool.
20838         (func_create_testdir): Update.
20839
20840 2006-07-29  Bruno Haible  <bruno@clisp.org>
20841
20842         * gnulib-tool (func_import): Extend error message about missing
20843         --doc-base.
20844
20845 2006-07-29  Bruno Haible  <bruno@clisp.org>
20846
20847         * gnulib-tool (func_import): Don't create the $docbase directory if
20848         there is no file to store there.
20849
20850 2006-07-29  Bruno Haible  <bruno@clisp.org>
20851
20852         * gnulib-tool (autoconf_minversion): If a --dir option is given and
20853         relevant, look for configure.ac there, not in the current directory.
20854         Also use a simple search for AC_PREREQ, not "autoconf --trace".
20855
20856 2006-07-29  Bruno Haible  <bruno@clisp.org>
20857
20858         * gnulib-tool (SORT): New variable.
20859         (func_usage): Undocument --assume-autoconf option.
20860         Remove --assume-autoconf option handling.
20861         (autoconf_minversion): Determine from the contents of configure.ac.
20862         (func_import): Remove autoconf_minversion handling.
20863         Suggested by Eric Blake.
20864
20865 2006-07-29  Bruno Haible  <bruno@clisp.org>
20866
20867         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
20868
20869 2006-07-29  Bruno Haible  <bruno@clisp.org>
20870
20871         * config/srclist.txt (*setenv.[ch]): Remove rules.
20872
20873 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20874
20875         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
20876
20877 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20878
20879         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
20880         arpa/inet.h.
20881
20882 2006-07-28  Simon Josefsson  <jas@extundo.com>
20883
20884         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
20885         * modules/inet_pton (Depends-on): Likewise.
20886
20887 2006-07-28  Simon Josefsson  <jas@extundo.com>
20888
20889         * m4/netinet_in_h.m4: New file.
20890
20891 2006-07-28  Simon Josefsson  <jas@extundo.com>
20892
20893         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
20894         #include's.
20895
20896 2006-07-28  Simon Josefsson  <jas@extundo.com>
20897
20898         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
20899         #include's.
20900
20901 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
20902
20903         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
20904         setgid on directories only if they set these bits.
20905         * lib/modechange.h: Remove obsolete comment about masks.
20906
20907 2006-07-28  Eric Blake  <ebb9@byu.net>
20908
20909         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
20910         macro expansion.
20911
20912 2006-07-28  Bruno Haible  <bruno@clisp.org>
20913
20914         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
20915
20916 2006-07-28  Bruno Haible  <bruno@clisp.org>
20917
20918         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
20919
20920 2006-07-28  Bruno Haible  <bruno@clisp.org>
20921
20922         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20923         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
20924         Define fallbacks.
20925         Avoids link error on FreeBSD 4.x.
20926         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20927
20928         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
20929         encoding.
20930         * lib/mbswidth.c (iswcntrl): Likewise.
20931
20932 2006-07-27  Bruno Haible  <bruno@clisp.org>
20933
20934         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
20935         test.
20936
20937 2006-07-27  Bruno Haible  <bruno@clisp.org>
20938
20939         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
20940         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
20941         defined.
20942
20943 2006-07-26  Eric Blake  <ebb9@byu.net>
20944
20945         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
20946
20947 2006-07-26  Eric Blake  <ebb9@byu.net>
20948
20949         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
20950         like mingw that lack mkstemp.
20951         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
20952         avoid compilation warning on mingw.
20953
20954 2006-07-26  Bruno Haible  <bruno@clisp.org>
20955
20956         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
20957         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
20958         INT_FAST*_MIN, INTPTR_MIN.
20959
20960 2006-07-25  Bruno Haible  <bruno@clisp.org>
20961
20962         * modules/version-etc (Depends-on): Add stdarg.
20963
20964 2006-07-25  Bruno Haible  <bruno@clisp.org>
20965
20966         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
20967         complex commands.
20968
20969 2006-07-25  Bruno Haible  <bruno@clisp.org>
20970
20971         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
20972         defined in <stdarg.h> or config.h.
20973
20974 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
20975
20976         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
20977         (gl_STDIO_SAFER): Remove.
20978
20979 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
20980
20981         * MODULES.html.sh (File stream based Input/Output):
20982         Add fopen-safer, tmpfile-safer; remove stdio-safer.
20983         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
20984         * modules/fopen-safer, modules/tmpfile-safer: New files.
20985         * modules/stdio-safer: Remove.
20986
20987 2006-07-24  Bruno Haible  <bruno@clisp.org>
20988
20989         * modules/tmpdir: New file.
20990         * MODULES.html.sh (File system functions): Add it.
20991
20992 2006-07-24  Bruno Haible  <bruno@clisp.org>
20993
20994         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
20995         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
20996
20997 2006-07-24  Bruno Haible  <bruno@clisp.org>
20998
20999         * modules/clean-temp: New file.
21000
21001 2006-07-24  Bruno Haible  <bruno@clisp.org>
21002
21003         * m4/tmpdir.m4: New file, from GNU gettext.
21004
21005 2006-07-24  Bruno Haible  <bruno@clisp.org>
21006
21007         * lib/tmpdir.h: New file, from GNU gettext.
21008         * lib/tmpdir.c: New file, from GNU gettext.
21009
21010 2006-07-24  Bruno Haible  <bruno@clisp.org>
21011
21012         * lib/clean-temp.h: New file, from GNU gettext.
21013         * lib/clean-temp.c: New file, from GNU gettext.
21014
21015 2006-07-23  Eric Blake  <ebb9@byu.net>
21016
21017         * modules/stdio-safer (Files): Add tmpfile-safer.c.
21018         (Depends-on): Add binary-io.
21019
21020 2006-07-23  Eric Blake  <ebb9@byu.net>
21021
21022         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
21023
21024 2006-07-23  Eric Blake  <ebb9@byu.net>
21025
21026         * lib/tmpfile-safer.c: New file.
21027         * lib/stdio-safer.h (fopen_safer): Add prototype.
21028         * lib/stdio--.h (tmpfile): Make safer.
21029
21030 2006-07-23  Bruno Haible  <bruno@clisp.org>
21031
21032         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
21033         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
21034         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
21035         gl_linked_remove_at): Use it.
21036
21037 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21038         and Simon Josefsson <jas@extundo.com>
21039
21040         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
21041
21042         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
21043
21044 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
21045
21046         * modules/close-stream: New file.
21047         * modules/closeout (Description): Make it clear that it exits
21048         with a diagnostic on error.
21049         (Depends-on): Add close-stream.  Remove fpending, stdbool.
21050         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
21051
21052 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
21053
21054         * m4/close-stream.m4: New file.
21055
21056 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
21057
21058         * lib/close-stream.c, lib/close-stream.h: New files.
21059
21060 2006-07-22  Bruno Haible  <bruno@clisp.org>
21061
21062         Merge from GNU gettext 0.15.
21063
21064         2006-05-01  Bruno Haible  <bruno@clisp.org>
21065
21066                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
21067
21068         2006-07-22  Bruno Haible  <bruno@clisp.org>
21069
21070                 * modules/javaversion: New file.
21071                 * MODULES.html.sh (Java): Add javaversion.
21072
21073         2006-03-12  Bruno Haible  <bruno@clisp.org>
21074
21075                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
21076
21077         2005-12-04  Bruno Haible  <bruno@clisp.org>
21078
21079                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
21080                 (untested).
21081
21082         2006-06-21  Bruno Haible  <bruno@clisp.org>
21083
21084                 Avoid warnings from recent versions of mcs.
21085                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
21086                 -o, -L, -r any more. Use options documented since mcs-1.0
21087                 instead. Similarly for -g.
21088
21089         2005-12-04  Bruno Haible  <bruno@clisp.org>
21090
21091                 * build-aux/csharpcomp.sh.in: Suffix for resources is
21092                 .resources, not .resource.
21093
21094         2005-07-09  Bruno Haible  <bruno@clisp.org>
21095
21096                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
21097                 add a .dll suffix.
21098                 Reported by Mark Junker <mjscod@gmx.de>.
21099
21100         2006-07-22  Bruno Haible  <bruno@clisp.org>
21101
21102                 * modules/gettext: Upgrade to gettext-0.15.
21103                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
21104                 m4/visibility.m4.
21105                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
21106
21107 2006-07-22  Bruno Haible  <bruno@clisp.org>
21108
21109         Merge from GNU gettext 0.15.
21110
21111         2006-03-25  Bruno Haible  <bruno@clisp.org>
21112
21113                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
21114
21115         2006-07-21  Bruno Haible  <bruno@clisp.org>
21116
21117                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
21118                 "1.1".
21119
21120         2006-05-09  Bruno Haible  <bruno@clisp.org>
21121
21122                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
21123                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
21124                 for the conftestver execution.
21125
21126         2006-05-01  Bruno Haible  <bruno@clisp.org>
21127
21128                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
21129                 optional target-version argument. Verify that the compiler
21130                 groks source of the specified source-version, or add -source
21131                 option as necessary. Verify that the compiler produces
21132                 bytecode in the specified target-version, or add -target and
21133                 -source options as necessary. Make the result of the test
21134                 available as variable CONF_JAVAC. Also log error output in
21135                 config.log.
21136
21137         2006-03-11  Bruno Haible  <bruno@clisp.org>
21138
21139                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
21140
21141         2006-05-09  Bruno Haible  <bruno@clisp.org>
21142
21143                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
21144                 CLASSPATH_SEPARATOR to a semicolon.
21145
21146         2006-03-12  Bruno Haible  <bruno@clisp.org>
21147
21148                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
21149                 available as variable CONF_JAVA, for subsequent autoconf
21150                 tests. Also log error output in config.log.
21151
21152         2006-07-19  Bruno Haible  <bruno@clisp.org>
21153
21154                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
21155                 that getline works on glibc2 systems. Needed to avoid trouble
21156                 in relocatable.c.
21157                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
21158
21159         2005-12-04  Bruno Haible  <bruno@clisp.org>
21160
21161                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
21162                 launcher (untested).
21163
21164         2005-12-04  Bruno Haible  <bruno@clisp.org>
21165
21166                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
21167
21168         2006-07-22  Bruno Haible  <bruno@clisp.org>
21169
21170                 * gettext.m4: Update from GNU gettext-0.15.
21171                 * nls.m4: Likewise.
21172                 * po.m4: Likewise.
21173                 * inttypes-pri.m4: Likewise.
21174                 * inttypes-h.m4: Renamed from inttypes.m4.
21175                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
21176
21177 2006-07-22  Bruno Haible  <bruno@clisp.org>
21178
21179         Merge from GNU gettext 0.15.
21180
21181         2005-07-05  Bruno Haible  <bruno@clisp.org>
21182
21183                 * printf-args.c (printf_fetchargs): Work around broken
21184                 definition of wint_t on mingw.
21185
21186         2005-02-12  Bruno Haible  <bruno@clisp.org>
21187
21188                 * xallocsa.h: Add extern "C" for C++.
21189
21190         2006-05-17  Bruno Haible  <bruno@clisp.org>
21191
21192                 Cygwin portability.
21193                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
21194
21195         2006-04-30  Bruno Haible  <bruno@clisp.org>
21196
21197                 * progreloc.c: Include <mach-o/dyld.h> if available.
21198                 (find_executable): Use _NSGetExecutablePath when possible.
21199
21200         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
21201
21202                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
21203                 function.
21204
21205         2005-12-29  Bruno Haible  <bruno@clisp.org>
21206
21207                 * progreloc.c (set_program_name_and_installdir): Fix
21208                 compilation error.
21209
21210         2005-12-04  Bruno Haible  <bruno@clisp.org>
21211
21212                 Cygwin portability.
21213                 * progreloc.c: Include <windows.h> also on Cygwin.
21214                 (find_executable): Add support for Cygwin.
21215                 (set_program_name_and_installdir): Handle also platforms with
21216                 nonempty EXEEXT.
21217
21218         2006-07-11  Bruno Haible  <bruno@clisp.org>
21219
21220                 * javacomp.c: Fix a comment.
21221                 Reported by Jim Meyering.
21222
21223         2006-04-30  Bruno Haible  <bruno@clisp.org>
21224
21225                 * javacomp.h (compile_java_class): Add source_version,
21226                 target_version arguments.
21227                 * javacomp.c: Rewritten to choose only a compiler that
21228                 respects the specified source_version and target_version.
21229
21230         2006-06-27  Bruno Haible  <bruno@clisp.org>
21231
21232                 Assume correct S_ISDIR macro.
21233                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
21234
21235         2006-07-22  Bruno Haible  <bruno@clisp.org>
21236
21237                 * javaversion.h: New file, from GNU gettext.
21238                 * javaversion.c: New file, from GNU gettext.
21239                 * javaversion.java: New file, from GNU gettext.
21240                 * javaversion.class: New file, from GNU gettext.
21241
21242         2006-05-17  Bruno Haible  <bruno@clisp.org>
21243
21244                 Cygwin portability.
21245                 * javaexec.c (execute_java_class): Test for jview program
21246                 also on Cygwin.
21247
21248         2006-04-09  Bruno Haible  <bruno@clisp.org>
21249
21250                 * fatal-signal.c: Don't include string.h.
21251                 (at_fatal_signal): Use a copying loop instead of memcpy.
21252
21253         2005-12-04  Bruno Haible  <bruno@clisp.org>
21254
21255                 * csharpexec.c: Add support for 'clix' launcher (untested).
21256                 (execute_csharp_using_sscli): New function.
21257                 (execute_csharp_program): Call it.
21258
21259         2006-06-21  Bruno Haible  <bruno@clisp.org>
21260
21261                 Avoid warnings from recent versions of mcs.
21262                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
21263                 -o, -L, -r any more. Use options documented since mcs-1.0
21264                 instead. Similarly for -g.
21265
21266         2005-07-09  Bruno Haible  <bruno@clisp.org>
21267
21268                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
21269                 add a .dll suffix.
21270                 Reported by Mark Junker <mjscod@gmx.de>.
21271
21272         2006-06-17  Bruno Haible  <bruno@clisp.org>
21273
21274                 * config.charset: Update for NetBSD 3.0.
21275
21276         2006-05-17  Bruno Haible  <bruno@clisp.org>
21277
21278                 Cygwin portability.
21279                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
21280
21281         2006-05-16  Bruno Haible  <bruno@clisp.org>
21282
21283                 * localcharset.c [CYGWIN]: Include <windows.h>.
21284                 (get_charset_aliases): For Cygwin, return the same CPxxx
21285                 aliases list as under WIN32.
21286                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
21287                 the environment variables. Fall back to GetACP().
21288
21289         2006-04-05  Bruno Haible  <bruno@clisp.org>
21290
21291                 * config.charset: Update Juan Manuel Guerrero's address.
21292
21293         2005-02-12  Bruno Haible  <bruno@clisp.org>
21294
21295                 * allocsa.h: Add extern "C" for C++.
21296
21297         2005-02-10  Bruno Haible  <bruno@clisp.org>
21298
21299                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
21300                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
21301
21302         2006-07-22  Bruno Haible  <bruno@clisp.org>
21303
21304                 * gettext.h: Update to GNU gettext-0.15.
21305
21306 2006-07-22  Bruno Haible  <bruno@clisp.org>
21307
21308         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
21309         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
21310         lib-prefix.m4, longdouble.m4, ssize_t.m4.
21311
21312 2006-07-21  Eric Blake  <ebb9@byu.net>
21313
21314         * modules/stdlib-safer: New file.
21315         * MODULES.html.sh (File stream based Input/Output): Add
21316         stdlib-safer.
21317
21318 2006-07-21  Eric Blake  <ebb9@byu.net>
21319
21320         * lib/stdlib-safer.h: New file from coreutils, required by
21321         stdlib--.h.
21322
21323 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
21324
21325         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
21326
21327 2006-07-20  Bruno Haible  <bruno@clisp.org>
21328
21329         * gnulib-tool: Recognize new option --assume-autoconf.
21330         (autoconf_minversion): New variable.
21331         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
21332
21333 2006-07-20  Bruno Haible  <bruno@clisp.org>
21334
21335         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
21336
21337 2006-07-19  Derek R. Price  <derek@ximbiot.com>
21338
21339         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
21340         Reindent and repaginate.
21341
21342 2006-07-19  Derek Price  <derek@ximbiot.com>
21343
21344         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
21345         Correct grammar.
21346
21347 2006-07-17  Bruno Haible  <bruno@clisp.org>
21348
21349         * modules/list: New file.
21350         * modules/array-list: New file.
21351         * modules/carray-list, modules/carray-list-tests: New files.
21352         * modules/linked-list, modules/linked-list-tests: New files.
21353         * modules/avltree-list, modules/avltree-list-tests: New files.
21354         * modules/rbtree-list, modules/rbtree-list-tests: New files.
21355         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
21356         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
21357         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
21358         * modules/oset: New file.
21359         * modules/array-oset: New file.
21360         * modules/avltree-oset, modules/avltree-oset-tests: New files.
21361         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
21362         * tests/test-carray_list.c: New file.
21363         * tests/test-linked_list.c: New file.
21364         * tests/test-avltree_list.c: New file.
21365         * tests/test-rbtree_list.c: New file.
21366         * tests/test-linkedhash_list.c: New file.
21367         * tests/test-avltreehash_list.c: New file.
21368         * tests/test-rbtreehash_list.c: New file.
21369         * tests/test-avltree_oset.c: New file.
21370         * tests/test-rbtree_oset.c: New file.
21371         * MODULES.html.sh (Container data structures): New section.
21372
21373 2006-07-17  Bruno Haible  <bruno@clisp.org>
21374
21375         * m4/gl_list.m4: New file.
21376
21377 2006-07-17  Bruno Haible  <bruno@clisp.org>
21378
21379         * lib/gl_list.h: New file.
21380         * lib/gl_list.c: New file.
21381         * lib/gl_array_list.h: New file.
21382         * lib/gl_array_list.c: New file.
21383         * lib/gl_carray_list.h: New file.
21384         * lib/gl_carray_list.c: New file.
21385         * lib/gl_linked_list.h: New file.
21386         * lib/gl_linked_list.c: New file.
21387         * lib/gl_anylinked_list1.h: New file.
21388         * lib/gl_anylinked_list2.h: New file.
21389         * lib/gl_avltree_list.h: New file.
21390         * lib/gl_avltree_list.c: New file.
21391         * lib/gl_anyavltree_list1.h: New file.
21392         * lib/gl_anyavltree_list2.h: New file.
21393         * lib/gl_rbtree_list.h: New file.
21394         * lib/gl_rbtree_list.c: New file.
21395         * lib/gl_anyrbtree_list1.h: New file.
21396         * lib/gl_anyrbtree_list2.h: New file.
21397         * lib/gl_anytree_list1.h: New file.
21398         * lib/gl_anytree_list2.h: New file.
21399         * lib/gl_linkedhash_list.h: New file.
21400         * lib/gl_linkedhash_list.c: New file.
21401         * lib/gl_anyhash_list1.h: New file.
21402         * lib/gl_anyhash_list2.h: New file.
21403         * lib/gl_avltreehash_list.h: New file.
21404         * lib/gl_avltreehash_list.c: New file.
21405         * lib/gl_rbtreehash_list.h: New file.
21406         * lib/gl_rbtreehash_list.c: New file.
21407         * lib/gl_anytreehash_list1.h: New file.
21408         * lib/gl_anytreehash_list2.h: New file.
21409
21410         * lib/gl_oset.h: New file.
21411         * lib/gl_oset.c: New file.
21412         * lib/gl_array_oset.h: New file.
21413         * lib/gl_array_oset.c: New file.
21414         * lib/gl_avltree_oset.h: New file.
21415         * lib/gl_avltree_oset.c: New file.
21416         * lib/gl_rbtree_oset.h: New file.
21417         * lib/gl_rbtree_oset.c: New file.
21418         * lib/gl_anytree_oset.h: New file.
21419
21420 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
21421
21422         * m4/mkancesdirs.m4: New file.
21423         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
21424         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
21425         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
21426         it.
21427
21428 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
21429
21430         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
21431         * lib/mkancesdirs.h: New files.
21432         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
21433         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
21434         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
21435         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
21436         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
21437         callers changed.  Revamp internals significantly, by not
21438         attempting to create directories that are temporarily more
21439         permissive than the final results.  Do not attempt to use
21440         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
21441         This removes some race conditions, fixes some bugs, and simplifies
21442         things.  Use new dirchownmod function to do owner and mode changes.
21443         * lib/mkdir-p.h: Likewise.
21444         * lib/modechange.c (octal_to_mode): New function.
21445         (struct mode_change): New member mentioned.
21446         (make_node_op_equals): New arg mentioned.  All callers changed.
21447         (mode_compile): Keep track of which mode bits the user has explicitly
21448         mentioned.
21449         (mode_adjust): New arg DIR, so that we implement the X op correctly.
21450         New arg PMODE_BITS, to keep track of which mode bits the user
21451         mentioned; it treats S_ISUID and S_ISGID speciall.
21452         All callers changed.
21453         * lib/modechange.h: Likewise.
21454
21455 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
21456
21457         * MODULES.html.sh: Add mkancestors.
21458         * modules/mkancesdirs: New module.
21459         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
21460         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
21461         The chdir-safer and afs files are now orphans; I'll remove them
21462         unless someone speaks up.
21463         Add lib/dirchownmod.c, lib/dirchownmod.h.
21464         (Depends-on): Remove alloca, chown, save-cwd, dirname.
21465         Add lchown, mkancesdirs.
21466         (Maintainer): Add self.
21467
21468 2006-07-15  Karl Berry  <karl@gnu.org>
21469
21470         * gnulib-tool: help message wording/arrangement.
21471
21472 2006-07-14  Simon Josefsson  <jas@extundo.com>
21473
21474         * doc/gnulib.texi (Libtool and Windows): New section.
21475
21476 2006-07-12  Simon Josefsson  <jas@extundo.com>
21477
21478         * modules/gendocs (License): Fix license, approved by Karl.
21479
21480 2006-07-12  Eric Blake  <ebb9@byu.net>
21481
21482         * MODULES.html.sh: Add gendocs.
21483
21484 2006-07-11  Eric Blake  <ebb9@byu.net>
21485
21486         * modules/fdl: New module, to install doc/fdl.texi.
21487         * MODULES.html.sh: Add new section for documentation modules.
21488         * gnulib-tool: Avoid space-tab.
21489         (--doc-base): New option, to manage files from doc.
21490
21491 2006-07-11  Eric Blake  <ebb9@byu.net>
21492
21493         * m4/absolute-header.m4: Fix comments to match recent change.
21494
21495 2006-07-11  Eric Blake  <ebb9@byu.net>
21496
21497         * gnulib-tool: List --doc-base before --tests-base.
21498
21499 2006-07-11  Derek R. Price  <derek@ximbiot.com>
21500
21501         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
21502
21503 2006-07-11  Bruno Haible  <bruno@clisp.org>
21504
21505         * README: Mention where to put documentation.
21506
21507 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21508
21509         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
21510
21511 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
21512
21513         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
21514         to stdint.m4.
21515
21516 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
21517
21518         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
21519         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
21520         "no/such/file/stdint.h" when there is no such file, so that
21521         the resulting C code can be parsed by dodgy compilers.
21522         Problems reported by Bob Proulx.
21523
21524 2006-07-10  Derek R. Price  <derek@ximbiot.com>
21525
21526         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
21527         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
21528         macros into the GNU _D_EXACT_NAMLEN.
21529         * lib/savedir.c:  Likewise.
21530         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
21531
21532 2006-07-10  Derek R. Price  <derek@ximbiot.com>
21533         and Paul Eggert  <eggert@cs.ucla.edu>
21534
21535         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
21536         * m4/savedir.m4:
21537         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
21538         macros into the GNU _D_EXACT_NAMLEN.
21539
21540 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
21541
21542         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
21543         around the absolute name, to work around a problem with the HP-UX
21544         11.23 native C compiler, reported by Bob Proulx.
21545
21546 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
21547
21548         * doc/maintain.texi, make-stds.texi: Sync from
21549         <http://savannah.gnu.org/projects/gnustandards>.
21550
21551 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
21552
21553         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
21554
21555 2006-07-09  Jim Meyering  <jim@meyering.net>
21556
21557         * m4/glob.m4: Remove a doubled word in a comment.
21558
21559 2006-07-09  Jim Meyering  <jim@meyering.net>
21560
21561         * lib/argp-pv.c: Remove a doubled word in a comment.
21562         * lib/check-version.c (check_version): Likewise.
21563         * lib/javacomp.c (compile_java_class): Likewise.
21564
21565 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
21566
21567         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
21568         for the benefit of people using Autoconf 2.60.  If you want to
21569         support older Autoconf versions you can copy m4/onceonly_2_57.m4
21570         (or m4/onceonly.m4, if pre-2.57) manually.
21571
21572 2006-07-08  Jim Meyering  <jim@meyering.net>
21573
21574         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
21575         comment.
21576         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
21577         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
21578         comment.
21579
21580 2006-07-08  Jim Meyering  <jim@meyering.net>
21581
21582         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
21583
21584 2006-07-07  Simon Josefsson  <jas@extundo.com>
21585
21586         * tests/test-crc.c: Change expected crc value, the test vector
21587         were probably computed using the old broken crc.c?
21588
21589 2006-07-06  Simon Josefsson  <jas@extundo.com>
21590
21591         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
21592         now the canonical place for the M4 file).
21593
21594         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
21595         from the sys_socket dependency now.
21596
21597         * modules/inet_pton (Files): Ditto.
21598
21599         * modules/inet_ntop (Files): Ditto.
21600
21601 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
21602
21603         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
21604         not gl_PREREQ_GETUSERSHELL.
21605
21606 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21607
21608         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
21609         with only one argument, for Autoconf 2.60.
21610         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
21611         expand to nothing, so add a shell command to avoid syntax error.
21612         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
21613
21614 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21615
21616         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
21617
21618 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
21619
21620         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
21621         no longer needed.  Check for isblank decl.
21622         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
21623         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
21624         of existence.
21625
21626 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
21627
21628         * lib/getloadavg.c: Use __VMS, not VMS.
21629         * lib/getopt.c: Likewise.
21630         * lib/getpagesize.h: Likewise.
21631         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
21632         and probably does not work.
21633
21634 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
21635
21636         * lib/.cppi-disable: Add wcwidth.
21637         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
21638         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
21639         (ISGRAPH): Remove.  All uses changed to isgraph.
21640         (FOLD) [!defined _LIBC]: Remove special case.
21641         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
21642         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
21643         HAVE_ISBLANK.
21644         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
21645         case.
21646
21647 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
21648
21649         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
21650         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
21651         brackets.  Other minor changes to suppress some compiler
21652         warnings.
21653
21654 2006-07-06  Derek R. Price  <derek@ximbiot.com>
21655         and Paul Eggert  <eggert@cs.ucla.edu>
21656
21657         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
21658         of invoking obsolescent AC_HEADER_DIRENT macro.
21659         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
21660         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
21661         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21662         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
21663         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
21664         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
21665         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
21666         * m4/readdir.m4: Remove; no longer needed.
21667
21668 2006-07-06  Derek R. Price  <derek@ximbiot.com>
21669         and Paul Eggert  <eggert@cs.ucla.edu>
21670
21671         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
21672         Don't worry about this obsolete case any more.
21673         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
21674         directories.
21675         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
21676         worry about this obsolete case any more.
21677         * lib/fts.c: Likewise.
21678         * lib/getcwd.c: Likewise.
21679         * lib/glob.h: Likewise.
21680         * lib/savedir.c: Likewise.
21681
21682 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
21683
21684         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
21685         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
21686         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
21687         needed.
21688         All uses removed.
21689         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
21690         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
21691         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
21692         needed.
21693         * m4/getdate.m4 (gl_GETDATE): Likewise.
21694         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
21695         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
21696         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
21697         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
21698         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
21699         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
21700         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
21701         needed.
21702
21703 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
21704
21705         * lib/memcasecmp.c: Include <limits.h>.
21706         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
21707         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
21708         Don't assume isdigit succeeds only on '0' through '9'.
21709
21710 2006-07-05  Eric Blake  <ebb9@byu.net>
21711
21712         * modules/getaddrinfo (Depends-on): Add snprintf.
21713
21714 2006-07-05  Eric Blake  <ebb9@byu.net>
21715
21716         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
21717         to avoid 'header present but could not be compiled' on cygwin.
21718
21719 2006-07-05  Eric Blake  <ebb9@byu.net>
21720
21721         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
21722         missing from netdb.h.
21723         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
21724
21725 2006-07-05  Derek R. Price  <derek@ximbiot.com>
21726
21727         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
21728         no longer needed.
21729         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
21730         * m4/getdate.m4 (gl_GETDATE): Likewise.
21731         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
21732         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
21733         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
21734         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
21735         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
21736
21737 2006-07-05  Derek R. Price  <derek@ximbiot.com>
21738
21739         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
21740         All uses of is_space replaced by isspace.
21741         * lib/exit.h: Don't talk about STDC_HEADERS.
21742         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
21743         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
21744         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
21745         replaced by isprint etc.
21746         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
21747         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
21748         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
21749         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
21750         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
21751         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
21752
21753 2006-07-05  Bruno Haible  <bruno@clisp.org>
21754
21755         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
21756         the function exists, before testing against AIX.
21757         Reported by Martin Lambers <marlam@marlam.de>.
21758
21759 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
21760
21761         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
21762         From Mark D. Baushke.
21763
21764 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
21765
21766         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
21767         to the absolute name, not just one, to bypass Sun C 5.8's
21768         "warning: #include of /usr/include/... may be non-portable".
21769
21770 2006-07-04  Eric Blake  <ebb9@byu.net>
21771
21772         * modules/dirname-tests: New test module.
21773         * tests/test-dirname.c: New file, replacing dirname.c
21774         TEST_DIRNAME section that was recently deleted.
21775
21776 2006-07-04  Bruno Haible  <bruno@clisp.org>
21777
21778         Assume ANSI C header files and <ctype.h> functions.
21779         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
21780         (mbsnwidth): Use isprint, iscntrl instead.
21781
21782 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
21783
21784         Merge from coreutils.
21785         * MODULES.html.sh: Add xstrtold.
21786         * modules/xstrtold: New file.
21787         * modules/cycle-check (Files): Add lib/same-inode.h.
21788         * modules/dirname (Files): Add m4/double-slash-root.m4.
21789         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
21790         * modules/mkdir-p (Files): Add lib/same-inode.h.
21791         * modules/same (Files): Add lib/same-inode.h.
21792
21793 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
21794
21795         * m4/absolute-header.m4: Renamed from full-header-path.m4.
21796         This is to keep the terminology clean; POSIX talks about
21797         "absolute pathnames", not "full pathnames", but the GNU
21798         Coding Standards say to use "path" for something else;
21799         so use "absolute" to keep both sides happy.
21800         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
21801         Set gl_absolute_header, not gl_full_header_path.
21802         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
21803         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
21804         All uses changed.
21805
21806         Merge from coreutils.
21807
21808         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
21809
21810         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
21811         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
21812         want to require the building of c-strtod.o.
21813         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
21814         needs -lm directly.
21815         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
21816
21817         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
21818
21819         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
21820         --as-needed option if available.  Problem reported by Albert Chin in
21821         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
21822         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
21823         cc merely issues a bunch of annoying warnings for --as-needed
21824         (this problem was reported by Bob Proulx).  Also, try linking with
21825         -lm to detect a bug in binutils 2.16 (this problem was reported
21826         by Ralf Wildenhues).
21827
21828         2006-06-18  Jim Meyering  <jim@meyering.net>
21829
21830         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
21831         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
21832         macro.
21833         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
21834         also check for glibc-2.4's abort-inducing bug.
21835
21836         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
21837         Low-probability clean-up should be to use rmdir to get rid of
21838         the just-created directory, not unlink.
21839
21840         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
21841         configure fail, and request a bug report to inform us about it.
21842         Add a comment that, barring reports to the contrary, in 2007 we'll
21843         assume ftruncate is universally available.
21844
21845         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
21846
21847         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
21848
21849         2006-03-12  Jim Meyering  <jim@meyering.net>
21850
21851         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
21852         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
21853         * m4/same.m4 (gl_SAME): Likewise.
21854         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
21855
21856         2006-03-11  Eric Blake  <ebb9@byu.net>
21857
21858         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
21859         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
21860         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
21861         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
21862
21863 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
21864
21865         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
21866         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
21867         reported by Mark D. Baushke, one in
21868         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
21869
21870         Merge from coreutils.
21871
21872         * lib/.cppi-disable: Add stdint_.h.
21873         * lib/.cvsignore: Add stdint.h.
21874
21875         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
21876
21877         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
21878         both double and long double versions.
21879         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
21880         * lib/xstrtold.c: New file.
21881         * lib/xstrtod.h (xstrtold): New decl.
21882
21883         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
21884
21885         * lib/filemode.c (setst): Remove.
21886         (strmode): Rewrite to avoid setst.  This makes the code shorter,
21887         (arguably) clearer, and the generated code is a bit smaller on my
21888         Debian GNU/Linux stable x86 host.
21889
21890         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
21891
21892         * lib/filemode.c: Include "filemode.h" first, to test the interface.
21893         Assume that filemode.h includes sys/types.h and sys/stat.h.
21894         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
21895         (ftypelet): Reorder to put common cases first, for efficiency.
21896         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
21897         to do 'M'.
21898         (strmode): Renamed from mode_string, and now stores 12 bytes instead
21899         of 10, for compatibility with FreeBSD.  All callers changed.
21900         (filemodestring): Now stores 12 bytes instead of 10, and sets file
21901         types that can't be deduced solely from st_mode.  First arg is now a
21902         const pointer.
21903         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
21904         (strmode): Renamed from mode_string.
21905         (filemodestring): New decl.
21906         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
21907         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
21908         needed.
21909         (S_ISPORT, S_ISWHT): New macros, if not already defined.
21910
21911         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
21912
21913         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
21914         fsusage.h now does that.  Include fsusage.h first, to test interface.
21915         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
21916         at most one method (the old code could have generated decls that
21917         didn't conform to C89, not that this was ever exercised).
21918         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
21919
21920         2006-03-19  Jim Meyering  <jim@meyering.net>
21921
21922         Work even in a chroot where d_ino values for entries in "/"
21923         don't match the stat.st_ino values for the same names.
21924         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
21925         number, iterate through all entries again, using lstat instead.
21926         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
21927         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
21928
21929         * lib/getcwd.c (__getcwd): Clarify a comment.
21930         Use memcpy in place of a call to strcpy.
21931
21932         2006-03-12  Jim Meyering  <jim@meyering.net>
21933
21934         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
21935         matches that of the current directory (which we're about to chdir ".."
21936         out of), then save the dev-ino of the parent, instead.
21937
21938         * lib/same-inode.h (SAME_INODE): New file/macro.
21939         * lib/chdir-safer.c (SAME_INODE): Remove definition.
21940         Include "same-inode.h", instead.
21941         * lib/same.c: Likewise.
21942         * lib/cycle-check.h: Include "same-inode.h".
21943         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
21944         * lib/cycle-check.c (SAME_INODE): Remove definition.
21945         * lib/root-dev-ino.h: Include "same-inode.h".
21946
21947         2006-03-11  Eric Blake  <ebb9@byu.net>
21948
21949         * lib/same.c (same_name): s/base_name/last_component/
21950         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
21951         * lib/filenamecat.c (file_name_concat): Likewise.
21952
21953         2006-03-11  Eric Blake  <ebb9@byu.net>,
21954                     Paul Eggert  <eggert@cs.ucla.edu>
21955
21956         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
21957         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
21958         drive prefix.
21959         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
21960         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
21961         (last_component): New method.
21962         * lib/dirname.c (dir_len): Determine when drive letters need a
21963         subsequent slash.  Preserve // when it is special.
21964         (dir_name): Don't append dot when drive letter is absolute.
21965         [TEST_DIRNAME]: Move into a full-blown gnulib test.
21966         * lib/basename.c (base_name): New semantics - malloc the result.
21967         Preserve // when it is special.  Preserve relative files that look
21968         like drive letters.
21969         (base_len): Preserve // when it is special.
21970         (last_component): New method, similar to old base_name semantics.
21971         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
21972         base_name.  Strip redundant slashes from ///.
21973
21974 2006-07-03  Jim Meyering  <jim@meyering.net>
21975
21976         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
21977         macro is used before the first cycle_check call.
21978
21979 2006-07-03  Eric Blake  <ebb9@byu.net>
21980
21981         * modules/dirname (Depends-on): Add xstrndup.
21982
21983 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
21984
21985         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
21986         test cases, so that config.log is a bit easier to follow.
21987
21988 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
21989
21990         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
21991         both are 64 bits, since this seems to be the tradition, and this
21992         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
21993         we ever run into a host that prefers long long to long in this
21994         case, we'll need another configure-time test.  Problem reported by
21995         Jim Meyering.
21996
21997 2006-07-02  Eric Blake  <ebb9@byu.net>
21998
21999         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
22000
22001 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
22002
22003         * modules/inttypes (Depends-on): No longer depends on stdint.
22004         * modules/stdint (Description): Say more about assumptions.
22005         Say that the fast types might differ.  Say macros are used.
22006         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
22007         (Makefile.am): Revise list of substituted symbols to match
22008         new stdint.m4.
22009         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
22010         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
22011         * tests/test-stdint.c (verify_same_types)
22012         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
22013         the code conforms to C99/C89.
22014         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
22015         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
22016
22017 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
22018
22019         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
22020         but fix a bug, by requiring at least 64 bits.
22021         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
22022         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
22023         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
22024         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
22025
22026         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
22027         changes.  Make 2.59 a prerequisite.  Check and substitute for
22028         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
22029         inttypes.h.  Do not use special include files; just use the
22030         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
22031         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
22032         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
22033         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
22034         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
22035         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
22036         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
22037         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
22038         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
22039         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
22040         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
22041         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
22042         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
22043         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
22044         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
22045         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
22046         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
22047         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
22048         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
22049         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
22050         WINT_MAX.  Check for C99 conformance more strictly, by detecting
22051         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
22052         not check for things that C99 does not require, e.g., int8_t.  If
22053         a test isn't needed unless <stdint.h> isn't working, and is
22054         unlikely to be needed for any other reason, then don't do it
22055         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
22056         size_t, since we assume C89 freestanding at least.  Do not check
22057         for sig_atomic_t, wchar_t, or wint_t, since the code now does
22058         the right thing even if the types are not defined.  Instead use:
22059         (gl_STDINT_TYPE_PROPERTIES): New macro.
22060         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
22061         testing whether <sys/types.h> clashes, as Autoconf does this for
22062         us now.  All uses removed.
22063         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
22064         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
22065         (gl_CHECK_TYPE_SAME):
22066         Remove; no longer needed.
22067         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
22068         exists, since we'll return 0 anyway in that case.
22069         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
22070
22071 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
22072
22073         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
22074         possible collision with system files.
22075         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
22076         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
22077         WCHAR_MIN and WCHAR_MAX in this case.
22078         (<stddef.h>): Do not include; no longer needed.
22079         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
22080         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
22081         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
22082         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
22083         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
22084         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
22085         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
22086         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
22087         !defined(__c99))]: Include in this case too, since it's harmless
22088         now.
22089         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
22090         dangerous to do so.
22091         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
22092         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
22093         (_STDINT_MIN, _STDINT_MAX): New macros.
22094         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
22095         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
22096         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
22097         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
22098         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
22099         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
22100         macros, not typedefs; this simplifies things quite a bit.
22101         Use long int for all types narrower than int64_t.
22102         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
22103         Define in terms of long long int or int64_t or long int,
22104         not int64_t or int32_t.  This saves some compile-time testing.
22105         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
22106         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
22107         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
22108         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
22109         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
22110         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
22111         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
22112         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
22113         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
22114         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
22115         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
22116         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
22117         undef any previous version and define our own version, for
22118         simplicity and consistency with the new macros for types.
22119         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
22120         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
22121         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
22122         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
22123         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
22124         @WINT_T_SUFFIX@ to keep things simple here.
22125         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
22126         Simplify by assuming typical 8/16/32/64 host, since we're
22127         already doing that elsewhere anyway.
22128         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
22129         and assume long long int is 64 bits if available.  This
22130         speeds up 'configure'.
22131
22132 2006-07-01  Eric Blake  <ebb9@byu.net>
22133
22134         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
22135         Reported by Andreas Buening.
22136
22137 2006-07-01  Eric Blake  <ebb9@byu.net>
22138
22139         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
22140
22141 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
22142
22143         * lib/getaddrinfo.c: fixed typo
22144
22145 2006-06-29  Jim Meyering  <jim@meyering.net>
22146
22147         * modules/strftime (Maintainer): Add my name, since with the
22148         FPRINTFTIME changes strftime.c has forked from glibc.
22149
22150 2006-06-29  Eric Blake  <ebb9@byu.net>
22151
22152         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
22153
22154 2006-06-29  Eric Blake  <ebb9@byu.net>
22155
22156         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
22157
22158 2006-06-29  Eric Blake  <ebb9@byu.net>
22159
22160         * lib/stat_.h: New file.
22161
22162 2006-06-29  Eric Blake  <ebb9@byu.net>
22163
22164         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
22165         unused static function.
22166
22167 2006-06-29  Eric Blake  <ebb9@byu.net>
22168
22169         * doc/functions.texi (Function Portability): Document missing lstat
22170         on mingw.
22171
22172 2006-06-29  Eric Blake  <ebb9@byu.net>
22173
22174         * MODULES.html.sh: Add sys_stat.
22175         * modules/sys_stat: New module.
22176         * modules/mkstemp (Depends-on): Add sys_stat.
22177
22178 2006-06-29  Derek R. Price  <derek@ximbiot.com>
22179
22180         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
22181
22182 2006-06-29  Derek R. Price  <derek@ximbiot.com>
22183
22184         * m4/c-bs-a.m4: Removed.
22185
22186 2006-06-29  Derek R. Price  <derek@ximbiot.com>
22187
22188         * lib/strftime.c: Assume strftime() exists.
22189
22190 2006-06-29  Derek Price  <derek@ximbiot.com>
22191
22192         * modules/c-bs-a: Removed - \a is C89.
22193         * MODULES.html.sh: Remove c-bs-a.
22194
22195 2006-06-29  Bruno Haible  <bruno@clisp.org>
22196
22197         * modules/wcwidth (License): Change to LGPL.
22198
22199 2006-06-28  Simon Josefsson  <jas@extundo.com>
22200
22201         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
22202         on _WIN32.
22203
22204         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
22205         getnameinfo.
22206
22207 2006-06-28  Simon Josefsson  <jas@extundo.com>
22208
22209         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
22210
22211 2006-06-28  Simon Josefsson  <jas@extundo.com>
22212
22213         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
22214         functions there.  It will succeed on Windows XP, but on Windows
22215         2000 and (presumably) earlier, it will fail, and use the internal
22216         re-implementation.
22217         (use_win32_p): New function.
22218         (getaddrinfo): Use strtoul on servname, to support numeric ports.
22219         Support AI_NUMERICSERV to disable getservbyname.
22220         (getnameinfo): New function, only supports
22221         NI_NUMERICHOST|NI_NUMERICSERV for now.
22222
22223         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
22224         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
22225         getnameinfo.
22226
22227 2006-06-28  Eric Blake  <ebb9@byu.net>
22228
22229         * modules/wcwidth: New file.
22230         * modules/mbchar (Depends-on): Add wcwidth.
22231         * modules/mbswidth (Depends-on): Add wcwidth.
22232         * MODULES.html.sh: Add wcwidth.
22233
22234 2006-06-28  Eric Blake  <ebb9@byu.net>
22235
22236         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
22237         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
22238
22239 2006-06-28  Eric Blake  <ebb9@byu.net>
22240
22241         * lib/xvasprintf.h: Fix comments.
22242
22243 2006-06-28  Eric Blake  <ebb9@byu.net>
22244
22245         * lib/mbchar.h (wcwidth): Include wcwidth.h.
22246         * lib/mbswidth.c (wcwidth): Move from here...
22247         * lib/wcwidth.h: ...to this new file.
22248
22249 2006-06-28  Derek R. Price  <derek@ximbiot.com>
22250
22251         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
22252
22253         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
22254         it's obsolete.
22255         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
22256
22257 2006-06-28  Derek R. Price  <derek@ximbiot.com>
22258
22259         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
22260         Autoconf 2.60 says this stuff was obsolete.
22261
22262 2006-06-28  Bruno Haible  <bruno@clisp.org>
22263
22264         * modules/wcwidth (Files): Add m4/wchar_t.m4.
22265
22266 2006-06-28  Bruno Haible  <bruno@clisp.org>
22267
22268         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
22269         gt_TYPE_WCHAR_T.
22270
22271 2006-06-28  Bruno Haible  <bruno@clisp.org>
22272
22273         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
22274         declaration for wcwidth.
22275         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
22276
22277 2006-06-28  Bruno Haible  <bruno@clisp.org>
22278
22279         * lib/mkdtemp.c [MINGW]: Include <io.h>.
22280         (mkdir): Define using _mkdir.
22281
22282 2006-06-28  Bruno Haible  <bruno@clisp.org>
22283
22284         * lib/getaddrinfo.h: Fix POSIX URL.
22285         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
22286         _WIN32.
22287         (use_win32_p): Make static.
22288         (getaddrinfo): Reject service name if it is empty or does not consist
22289         solely of decimal digits, or if its value is > 65535.
22290         (getnameinfo): Remove useless casts.
22291
22292 2006-06-27  Simon Josefsson  <jas@extundo.com>
22293
22294         * modules/sys_select: New file, suggested by Bruno Haible, Paul
22295         Eggert and Martin Lambers.
22296
22297 2006-06-27  Simon Josefsson  <jas@extundo.com>
22298
22299         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
22300         Eggert and Martin Lambers.
22301
22302 2006-06-27  Bruno Haible  <bruno@clisp.org>
22303
22304         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
22305         result to 0, not to empty.
22306         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
22307
22308 2006-06-27  Bruno Haible  <bruno@clisp.org>
22309
22310         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
22311
22312 2006-06-26  Simon Josefsson  <jas@extundo.com>
22313
22314         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
22315         present.
22316
22317 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
22318
22319         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
22320         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
22321         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
22322
22323 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
22324
22325         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
22326
22327 2006-06-26  Bruno Haible  <bruno@clisp.org>
22328
22329         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
22330
22331 2006-06-26  Bruno Haible  <bruno@clisp.org>
22332
22333         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
22334
22335 2006-06-26  Bruno Haible  <bruno@clisp.org>
22336
22337         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
22338         SGI C compiler in pre-C99 mode.
22339         Suggested by Mark D. Baushke and Larry Jones.
22340
22341 2006-06-26  Bruno Haible  <bruno@clisp.org>
22342
22343         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
22344         WCHAR_MAX.
22345         Reported by Mark D. Baushke and Larry Jones.
22346
22347 2006-06-26  Bruno Haible  <bruno@clisp.org>
22348
22349         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
22350         in pre-C99 mode.
22351         Suggested by Mark D. Baushke and Larry Jones.
22352
22353 2006-06-23  Simon Josefsson  <jas@extundo.com>
22354             Bruno Haible  <bruno@clisp.org>
22355
22356         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
22357         Emit mostlyclean-local rule.
22358         (func_emit_tests_Makefile_am): Likewise.
22359         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
22360
22361 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
22362
22363         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
22364
22365 2006-06-23  Bruno Haible  <bruno@clisp.org>
22366
22367         * tests/test-stdint.c: Update to match ISO C 99 Technical
22368         Corrigendum 1.
22369
22370 2006-06-23  Bruno Haible  <bruno@clisp.org>
22371
22372         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
22373
22374 2006-06-23  Bruno Haible  <bruno@clisp.org>
22375
22376         * lib/stdint_.h: Treat IRIX like OpenBSD.
22377
22378 2006-06-23  Bruno Haible  <bruno@clisp.org>
22379
22380         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
22381         ISO C 99 Technical Corrigendum 1.
22382
22383 2006-06-22  Simon Josefsson  <jas@extundo.com>
22384
22385         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
22386         MinGW.
22387
22388 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
22389
22390         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
22391         needed.  Some compiler complained about some of them.  Problem reported
22392         by Larry Jones in
22393         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
22394
22395 2006-06-21  Simon Josefsson  <jas@extundo.com>
22396
22397         * tests/test-getaddrinfo.c: New file.
22398
22399         * modules/getaddrinfo-tests: New file.
22400
22401         * MODULES.html.sh: Add inet_pton.
22402
22403         * modules/inet_pton: New file.
22404
22405 2006-06-21  Simon Josefsson  <jas@extundo.com>
22406
22407         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
22408         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
22409         of using the (limited) gnulib implementation on Windows XP.
22410
22411         * m4/inet_pton.m4: New file.
22412
22413 2006-06-21  Simon Josefsson  <jas@extundo.com>
22414
22415         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
22416         variable.
22417
22418         * lib/socket_.h: Don't define WINVER.
22419
22420         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
22421         slightly modified to work in gnulib.
22422
22423 2006-06-21  Simon Josefsson  <jas@extundo.com>
22424
22425         * doc/gnulib.texi (Windows sockets): Add.
22426
22427 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
22428
22429         * lib/read-file.c (fread_file): Start with buffer allocation of
22430         0 bytes rather than 1 byte; this simplifies the code.
22431         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
22432         code to free buffer and save/restore errno.
22433         (internal_read_file): Remove unused local.
22434
22435 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
22436
22437         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
22438         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
22439         Problem reported by Denis Excoffier in
22440         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
22441
22442 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22443
22444         * modules/sys_socket, modules/socklen: Include sys/types since
22445         FreeBSD 4.x's sys/socket.h needs it.
22446
22447 2006-06-19  Simon Josefsson  <jas@extundo.com>
22448
22449         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
22450
22451 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
22452
22453         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
22454
22455 2006-06-19  Bruno Haible  <bruno@clisp.org>
22456
22457         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
22458         and FULL_PATH_INTTYPES_H in angle brackets.
22459         Reported by Mark D. Baushke <mdb@gnu.org>.
22460
22461 2006-06-17  Eric Blake  <ebb9@byu.net>
22462
22463         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
22464         errno.
22465
22466 2006-06-17  Bruno Haible  <bruno@clisp.org>
22467
22468         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
22469         <sys/inttypes.h>.
22470
22471 2006-06-17  Bruno Haible  <bruno@clisp.org>
22472
22473         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
22474         whether errno is declared. Assume <errno.h> declares errno.
22475
22476 2006-06-17  Bruno Haible  <bruno@clisp.org>
22477
22478         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
22479
22480 2006-06-17  Bruno Haible  <bruno@clisp.org>
22481
22482         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
22483         problem on Solaris 2.5.1.
22484
22485 2006-06-16  Eric Blake  <ebb9@byu.net>
22486
22487         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
22488         * lib/unicodeio.c [!defined errno]: Likewise.
22489         * lib/strtol.c [!defined errno]: Likewise.
22490         * lib/strtod.c [!defined errno]: Likewise.
22491
22492 2006-06-15  Eric Blake  <ebb9@byu.net>
22493
22494         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
22495
22496 2006-06-15  Eric Blake  <ebb9@byu.net>
22497
22498         * config/srclist.txt (ssize_t.m4): Lose sync.
22499
22500 2006-06-15  Bruno Haible  <bruno@clisp.org>
22501
22502         * modules/stdint (Files): Include m4/full-header-path.m4,
22503         m4/size_max.m4, m4/wchar_t.m4.
22504         (Makefile.am): Many more substitutions.
22505         * modules/stdint-tests: New file.
22506         * tests/test-stdint.c: New file.
22507
22508 2006-06-15  Bruno Haible  <bruno@clisp.org>
22509
22510         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
22511         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
22512         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
22513         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
22514         gl_CHECK_TYPE_SAME): New macros.
22515
22516 2006-06-15  Bruno Haible  <bruno@clisp.org>
22517
22518         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
22519
22520 2006-06-15  Bruno Haible  <bruno@clisp.org>
22521
22522         * lib/stdint_.h: Rewritten to be fully auto-configured.
22523         Fixes bug on HP-UX/IA64.
22524
22525 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
22526
22527         * lib/getdate.y (__attribute__): Don't define if already defined.
22528         Problem reported by Larry Jones.
22529         * lib/utimens.c (__attribute__): Likewise.
22530
22531 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
22532
22533         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
22534         reported by Andreas Schwab.
22535
22536 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22537             Bruno Haible  <bruno@clisp.org>
22538
22539         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
22540         check for the declaration of strnlen and a run test that exposes the
22541         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
22542         rpl_strndup.
22543
22544 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22545             Bruno Haible  <bruno@clisp.org>
22546
22547         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
22548
22549 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22550
22551         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
22552         compile test, for Tru64 4.0D.
22553
22554 2006-05-28  Karl Berry  <karl@gnu.org>
22555
22556         * config/srclist.txt (printf-args.c): lose sync.
22557
22558 2006-05-26  Martin Lambers  <marlam@marlam.de>
22559
22560         * lib/getpass.c: Updates the test for the native W32 API, and adds
22561         missing includes, thus fixing compilation warnings.
22562
22563 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22564
22565         * lib/exclude.c (exclude_fnmatch): New function.
22566         (excluded_file_name): Call exclude_fnmatch.
22567         * lib/exclude.h (excluded_file_name): New prototype
22568
22569 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
22570
22571         * lib/tempname.c (small_open, large_open): New macros.
22572         (__open, __open64) [!_LIBC]: Remove.
22573         (__gen_tempname): Use small_open and large_open instead of __open
22574         and __open64.  This fixes a portability bug on HP-UX 11.11i
22575         reported by Simon Wing-Tang in
22576         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
22577
22578 2006-05-24  Bruno Haible  <bruno@clisp.org>
22579
22580         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
22581         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
22582         Reported by Thorsten Maerz <torte@netztorte.de> via
22583         Aaron Stone <aaron@serendipity.cx>.
22584
22585 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
22586
22587         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
22588         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
22589         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
22590         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
22591         not really conditional on the cache.
22592         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
22593
22594 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
22595
22596         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
22597         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
22598         (my_usleep): Don't mishandle maximum value.
22599
22600 2006-05-19  Jim Meyering  <jim@meyering.net>
22601
22602         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
22603
22604 2006-05-17  Bruno Haible  <bruno@clisp.org>
22605
22606         Cygwin portability.
22607         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
22608
22609 2006-05-17  Bruno Haible  <bruno@clisp.org>
22610
22611         * lib/stdint_.h: Fix recognition of Cygwin.
22612
22613 2006-05-15  Bruno Haible  <bruno@clisp.org>
22614
22615         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
22616         on libtool patch by Ralf Wildenhues.
22617
22618 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
22619
22620         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
22621         test for C99 conformance; (bool) 0.5 is an integer constant
22622         expression, but (bool) -0.5 is not.  Problem reported by Fedor
22623         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
22624
22625 2006-05-11  Simon Josefsson  <jas@extundo.com>
22626
22627         * m4/xvasprintf.m4: Fix obvious typo.
22628
22629 2006-05-11  Jim Meyering  <jim@meyering.net>
22630
22631         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
22632         James Lemley.
22633
22634 2006-05-10  Simon Josefsson  <jas@extundo.com>
22635
22636         * lib/md4.c: Typo fix, update copyright years.
22637         (K1, K2): Don't use L because it turn computations into 64-bit on
22638         64-bit platforms.
22639
22640 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
22641
22642         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
22643         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
22644         unwanted sign propagation, e.g., on hosts with 64-bit int.
22645         There still are some problems with reeelly weird theoretical hosts
22646         (e.g., 33-bit int) but it's not worth worrying about now.
22647         * lib/sha1.c (rol): Likewise.
22648         (K1, K2, K3, K4): Remove unnecessary L suffix.
22649
22650 2006-05-10  Bruno Haible  <bruno@clisp.org>
22651
22652         * lib/des.c: Cast to avoid warnings.
22653
22654 2006-05-09  Bruno Haible  <bruno@clisp.org>
22655
22656         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
22657         (Depends-on): Depend also on xsize, stdarg.
22658         (configure.ac): Add gl_XVASPRINTF.
22659
22660 2006-05-09  Bruno Haible  <bruno@clisp.org>
22661
22662         * m4/xvasprintf.m4: New file.
22663
22664 2006-05-09  Bruno Haible  <bruno@clisp.org>
22665
22666         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
22667         (EOVERFLOW): Define fallback value.
22668         (xstrcat): New function.
22669         (xvasprintf): Recognize the special case of a string concatenation.
22670
22671 2006-05-08  Eric Blake  <ebb9@byu.net>
22672
22673         * gnulib-tool (func_version): Base copyright year on CVS date.
22674         (func_emit_copyright_notice): New function.
22675         (func_emit_lib_Makefile_am): Use it.
22676         (func_emit_tests_Makefile_am): Likewise.
22677         (func_import): Likewise.
22678
22679 2006-05-08  Bruno Haible  <bruno@clisp.org>
22680
22681         * modules/stdarg: New file.
22682         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
22683
22684 2006-05-08  Bruno Haible  <bruno@clisp.org>
22685
22686         * m4/stdarg.m4: New file, from GNU gettext.
22687
22688 2006-05-08  Bruno Haible  <bruno@clisp.org>
22689
22690         * config/srclist.txt (build-aux/config.rpath): different from latest
22691         release.
22692
22693 2006-05-08  Bruno Haible  <bruno@clisp.org>
22694
22695         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
22696
22697 2006-05-05  Jim Meyering  <jim@meyering.net>
22698
22699         * m4/warning.m4: New file, derived from bison's file by the same name.
22700
22701 2006-05-03  Bruno Haible  <bruno@clisp.org>
22702
22703         * lib/stdint_.h: Shorter URL.
22704         * lib/inttypes.h: Likewise.
22705
22706 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
22707
22708         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
22709
22710 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
22711
22712         * lib/verify.h: Document the internals better.  Most of this change
22713         was written by Bruno Haible.
22714
22715 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
22716
22717         * doc/verify.texi: New file, partly based on a proposal by
22718         Bruno Haible.
22719
22720 2006-05-02  Bruno Haible  <bruno@clisp.org>
22721
22722         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
22723         test from here...
22724         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
22725
22726 2006-04-29  Bruno Haible  <bruno@clisp.org>
22727
22728         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
22729         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
22730
22731 2006-04-29  Bruno Haible  <bruno@clisp.org>
22732
22733         * gnulib-tool: Make --update option actually work.
22734
22735 2006-04-29  Bruno Haible  <bruno@clisp.org>
22736
22737         * doc/gcd.texi: New file.
22738         * doc/gnulib.texi: Include it.
22739
22740 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
22741
22742         * lib/getdate.y (get_date): When adding relative date, start with the
22743         initial time, not with the result of the first mktime call.
22744
22745 2006-04-25  Bruno Haible  <bruno@clisp.org>
22746
22747         * gnulib-tool (func_import): Output the include directives in three
22748         blocks, sorted separately.
22749         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22750
22751 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
22752
22753         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
22754         to define main with arguments, for C++.  Reported by Eric Blake.
22755         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
22756         Prefer 'int main ()' to 'int main (void)', for C++.
22757         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
22758         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
22759         for 'main', for C99 and C++.
22760
22761 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
22762
22763         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
22764         Don't assume that exit status -1 is valid.
22765         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22766         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
22767         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
22768         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
22769         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
22770         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
22771         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
22772         functions can be used without declaring them, or that you can
22773         exit with status -1.
22774         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
22775
22776 2006-04-24  Karl Berry  <karl@gnu.org>
22777
22778         * config/srclist.txt (longdouble.m4): sync lost.
22779
22780 2006-04-24  Eric Blake  <ebb9@byu.net>
22781
22782         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
22783
22784 2006-04-24  Bruno Haible  <bruno@clisp.org>
22785
22786         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
22787         poll() implementation in AIX.
22788         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22789
22790 2006-04-24  Bruno Haible  <bruno@clisp.org>
22791
22792         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
22793         assigned exactly once.
22794
22795 2006-04-23  Claudio Fontana  <claudio@gnu.org>
22796             Bruno Haible  <bruno@clisp.org>
22797
22798         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
22799         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
22800         for AM_CPPFLAGS.
22801
22802 2006-04-23  Bruno Haible  <bruno@clisp.org>
22803
22804         * modules/copy-file: Depend on unistd.
22805         * modules/execute: Likewise.
22806         * modules/fatal-signal: Likewise.
22807         * modules/findprog: Likewise.
22808         * modules/mkdtemp : Likewise.
22809         * modules/pipe: Likewise.
22810         * modules/wait-process: Likewise.
22811
22812 2006-04-23  Bruno Haible  <bruno@clisp.org>
22813
22814         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
22815         condition was already detected.
22816         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22817
22818 2006-04-23  Bruno Haible  <bruno@clisp.org>
22819
22820         * lib/copy-file.c: Include <unistd.h> unconditionally.
22821         * lib/execute.c: Likewise.
22822         * lib/fatal-signal.c: Likewise.
22823         * lib/findprog.c: Likewise.
22824         * lib/mkdtemp.c: Likewise.
22825         * lib/pipe.h: Likewise.
22826         * lib/pipe.c: Likewise.
22827         * lib/wait-process.h: Likewise.
22828
22829 2006-04-23  Bruno Haible  <bruno@clisp.org>
22830
22831         * gnulib-tool (func_usage): Fix --import description. Document
22832         --update.
22833         (func_import): Create temporary file in a temporary directory, if
22834         --dry-run is specified. Silence errors from 'grep' when there are no
22835         m4 files in $m4dir.
22836         (func_create_testdir): Silence errors from 'grep' when there are no
22837         m4 files in $m4dir.
22838         Reported by Karl Berry <karl@freefriends.org>.
22839
22840 2006-04-20  Bruno Haible  <bruno@clisp.org>
22841
22842         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
22843         one argument, so that the code will be portable to Autoconf 2.60.
22844         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
22845         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
22846         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
22847
22848 2006-04-19  Derek Price  <derek@ximbiot.com>
22849             Eric Blake  <ebb9@byu.net>
22850
22851         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
22852         rather than "/full/path.h".  Update comment to match.  Shorten &
22853         generalize m4_translit call via AS_TR_CPP.
22854
22855 2006-04-19  Derek Price  <derek@ximbiot.com>
22856             Eric Blake  <ebb9@byu.net>
22857
22858         * lib/inttypes.h: Correct grammar in comment.
22859
22860 2006-04-18  Derek Price  <derek@ximbiot.com>
22861             Paul Eggert  <eggert@cs.ucla.edu>
22862
22863         * modules/inttypes: New file.
22864         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
22865
22866 2006-04-18  Derek Price  <derek@ximbiot.com>
22867             Paul Eggert  <eggert@cs.ucla.edu>
22868
22869         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
22870         New files.
22871
22872 2006-04-18  Derek Price  <derek@ximbiot.com>
22873             Paul Eggert  <eggert@cs.ucla.edu>
22874
22875         * lib/inttypes.h: New file.
22876         * lib/strtoimax.c: Assume <inttypes.h>.
22877
22878 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
22879
22880         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
22881         isn't mounted.  Problem reported by Kir Kolyshkin.
22882
22883 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
22884
22885         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
22886         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
22887         Derek R. Price.
22888         * lib/regex.h (RE_DUP_MAX): Update comment to match current
22889         implementation.
22890
22891 2006-04-12  Eric Blake  <ebb9@byu.net>
22892
22893         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
22894         is now done automatically by the corresponding Autoconf macro.
22895
22896 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
22897
22898         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
22899         time_r.h.
22900
22901 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
22902
22903         Merge regex changes from libc, removing some of our
22904         POSIX-conformance changes that were rejected and redoing them in a
22905         less-intrusive way.
22906
22907         * lib/regcomp.c (re_compile_internal, init_dfa):
22908         Length arg is now size_t, not Idx.  All uses changed.
22909         (peek_token): Forward decl now says internal_function.
22910         (__re_error_msgid, __re_error_msgid_idx):
22911         Now static rather than extern with attribute_hidden.
22912         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
22913         For some reason libc prefers K&R style defns for external functions.
22914         (regerror) [!defined _LIBC]: Likewise.
22915         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
22916         (seek_collating_symbol_entry, lookup_collation_sequence_value):
22917         (build_range_exp, build_collating_symbol):
22918         Use K&R-style defn.
22919         (re_compile_fastmap): Use '\0' to memset, not 0.
22920         (utf8_sb_map): Make the calculations more obvious.
22921         (init_dfa, parse_bracket_exp, build_charclass_op):
22922         Call calloc and cast result, as glibc does.
22923         (init_word_char, fetch_token, peek_token, peek_token_bracket):
22924         (build_range_exp, build_collating_symbol):
22925         Now internal functions.
22926
22927         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
22928
22929         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
22930         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
22931         Don't depend on VMS; depend on __VMS instead, for POSIX
22932         namespace cleanness.
22933         (regoff_t): Define to ssize_t, not long int.
22934
22935         Remove the REG_ macros named below.  Instead, make the old names
22936         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
22937         __USE_GNU_REGEX.
22938         (REG_BACKSLASH_ESCAPE_IN_LISTS):
22939         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
22940         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
22941         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
22942         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
22943         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
22944         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
22945         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
22946         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
22947         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
22948         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
22949         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
22950         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
22951         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
22952         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
22953         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
22954         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
22955         (REG_NREGS):
22956         Remove.  All uses replaced by the old RE_* names.
22957         (RE_BACKSLASH_ESCAPE_IN_LISTS):
22958         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
22959         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
22960         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
22961         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
22962         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
22963         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
22964         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
22965         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
22966         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
22967         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
22968         Don't bother having these macros be independent of each others'
22969         values, since they no longer exist in the POSIX name space.
22970
22971         Rename the following member names back to their old names,
22972         unless !__USE_GNU_REGEX.  All uses changed back.
22973         (buffer): Renamed from re_buffer.
22974         (allocated): Renamed from re_allocated.
22975         (used): Renamed from re_used.
22976         (syntax): Renamed from re_syntax.
22977         (fastmap): Renamed from re_fastmap.
22978         (translate): Renamed from re_translate.
22979         (can_be_null): Renamed from re_can_be_null.
22980         (regs_allocated): Renamed from re_regs_allocated.
22981         (fastmap_accurate): Renamed from re_fastmap_accurate.
22982         (no_sub): Renamed from re_no_sub.
22983         (not_bol): Renamed from re_not_bol.
22984         (not_eol): Renamed from re_not_eol.
22985         (newline_anchor): Renamed from re_newline_anchor.
22986         (num_regs): Renamed from rm_num_regs.
22987         (start): Renamed from rm_start.
22988         (end): Renamed from rm_end.
22989
22990         (free_state): Move up a bit.
22991
22992         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
22993         #define to be empty.
22994         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
22995         when that is what is intended.
22996         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
22997         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
22998         (MAX): New macro.
22999         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
23000         All uses changed back to re_malloc, etc.  It's now the caller's
23001         responsibility to check for overflow; all callers changed.
23002         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
23003         (re_x2nrealloc): Remove.
23004         (free_state): Remove decl.
23005
23006         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
23007         (re_set_registers, re_exec):
23008         Use K&R-style defn.
23009
23010         2006-01-31  Roland McGrath  <roland@redhat.com>
23011
23012         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
23013         Reported by Mike Frysinger <vapier@gentoo.org>.
23014
23015         2006-01-15  Andreas Jaeger  <aj@suse.de>
23016
23017         [BZ #1950]
23018         * lib/regex_internal.c (re_string_reconstruct): Adjust for
23019         build_wcs_upper_buffer change.
23020         (build_wcs_upper_buffer): Change return type.
23021
23022         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
23023
23024         * lib/regex_internal.h: Include <stdint.h> if available.
23025
23026         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
23027
23028         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
23029
23030         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
23031
23032         * lib/regcomp.c: Adjust for changed secondary hash function.
23033
23034         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
23035
23036         * lib/regex.h: Pretty printing.
23037         Clean up namespace a bit.
23038
23039         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
23040
23041         * lib/regexec.c (update_cur_sifted_state, check_arrival,
23042         check_arrival_add_next_nodes): Avoid using uninitialized variable.
23043
23044         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
23045                     Ulrich Drepper  <drepper@redhat.com>
23046
23047         [BZ #1302]
23048         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
23049         changed.
23050         (bitset_word_t): Renamed from bitset_word.  All uses changed.
23051
23052         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
23053
23054         [BZ #281]
23055         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
23056         * lib/regcomp.c: Remove unnecessary uses of
23057         unsigned RE_TRANSLATE_TYPE.
23058         * lib/regex_internal.h: Likewise.
23059         * lib/regex_internal.c: Likewise.
23060         * lib/regexec.c: Likewise.
23061         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
23062
23063         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
23064
23065         * lib/regexec.c (find_recover_state): Remove unnecessary
23066         initialization.
23067         (transit_state_bkref): Make DFA a const pointer.
23068         (get_subexp): Likewise.
23069         (check_arrival): Likewise.
23070         (update_cur_sifted_state): Likewise.
23071         (re_search_internal): Likewise.
23072         (prune_impossible_nodes): Likewise.
23073         (acquire_init_state_context): Likewise.
23074         (proceed_next_node): Likewise.
23075         (set_regs): Likewise.
23076         (free_fail_stack_return): Likewise.
23077         (check_arrival_expand_ecl): Mark DFA parameter as const.
23078         (check_arrival_expand_ecl_sub): Likewise.
23079         (check_subexp_limits): Likewise.
23080         (sub_epsilon_src_nodes):  Likewise.
23081         (add_epsilon_src_nodes):  Likewise.
23082         (merge_state_array): Likewise.
23083         (update_regs): Likewise.
23084         (build_trtable): Likewise.
23085         (sift_states_backward): Mark MCTX parameter as const.
23086         (build_sifted_states): Likewise.
23087         (update_cur_sifted_state): Likewise.
23088         (sift_states_mkref): Likewise.
23089         (check_arrival_expand_ecl): Mark eclosure as const.
23090         (check_dst_limits_calc_pos_1): Likewise.
23091         * lib/regex_internal.h (re_match_context_t): Make dfa a const
23092         pointer.
23093
23094         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
23095
23096         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
23097         (transit_state_sb): Likewise.
23098         (transit_state_mb): Likewise.
23099         (sift_states_iter_mb): Likewise.
23100         (check_arrival_add_next_nodes): Likewise.
23101         (check_node_accept_bytes): Change first parameter to pointer-to-const.
23102         [_LIBC] (re_search_2_stub): Use mempcpy.
23103
23104         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
23105         mbrtowc for very simple UTF-8 case.
23106
23107         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
23108         a pointer-to-const.
23109         (re_acquire_state_context): Likewise.
23110         * lib/regex_internal.h: Adjust prototypes.
23111
23112         * lib/regex.c: Prevent using C++ compilers.
23113
23114         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
23115         (re_acquire_state_context): Likewise.
23116
23117 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23118
23119         * modules/regex (Depends-on): Add ssize_t.
23120
23121 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23122
23123         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
23124         translation table.
23125
23126 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23127
23128         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
23129
23130 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
23131             Bruno Haible  <bruno@clisp.org>
23132
23133         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
23134         <sys/types.h> and <inttypes.h>.
23135
23136 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23137
23138         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
23139         `__error_t_defined', so argp.h will not typedef the former.
23140
23141 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
23142
23143         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
23144         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
23145         glibc names.  Even if glibc is changed to conform to POSIX, the
23146         traditional names will be available anyway, since regex depends on
23147         the extensions module.  Also, fix a longstanding typo in the
23148         implementation of Spencer ERE test #75 from grep 2.3.  Problems
23149         reported by Emanuele Giaquinta.  Also, change sense of cached
23150         variable, so that the message makes sense.
23151
23152 2006-03-24  Simon Josefsson  <jas@extundo.com>
23153
23154         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
23155         including some doc fixes.
23156         (base64_encode_alloc): Fix +1 bug on allocation failures.
23157
23158 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23159
23160         * lib/base64.c (base64_encode): Do not read past end of array with
23161         unsanitized input on systems with CHAR_BIT > 8.
23162
23163 2006-03-24  Eric Blake  <ebb9@byu.net>
23164
23165         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
23166
23167 2006-03-22  Karl Berry  <karl@gnu.org>
23168
23169         * config/srclist.txt (*setenv.[ch]): get from coreutils.
23170         * config/srclistvars.sh (COREUTILS): new var.
23171
23172 2006-03-17  Jim Meyering  <jim@meyering.net>
23173
23174         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
23175         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
23176
23177 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
23178
23179         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
23180         no longer needs it.  Instead, check that regoff_t is as least
23181         as wide as ptrdiff_t.
23182
23183         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
23184         so that our regex.h stays compatible with the installed regex.
23185         This is helpful for installers who configure --without-included-regex.
23186         Problem reported by Emanuele Giaquinta.
23187
23188 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
23189
23190         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
23191         Typedef to long int, not to off_, as POSIX will likely change
23192         in that direction.
23193
23194 2006-03-15  Eric Blake  <ebb9@byu.net>
23195
23196         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
23197
23198 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
23199
23200         * lib/argp-help.c (validate_uparams): Fix typo
23201         * lib/argp-parse.c (argp_default_options): Consistently begin help
23202         messages with a lowercase letter.
23203
23204 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
23205
23206         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
23207         overrun buffers and shouldn't be used (much as gets shouldn't be
23208         used).
23209         * lib/time_r.c (asctime_r, ctime_r): Likewise.
23210
23211 2006-03-08  Simon Josefsson  <jas@extundo.com>
23212
23213         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
23214         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23215
23216 2006-03-08  Simon Josefsson  <jas@extundo.com>
23217
23218         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
23219         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23220
23221 2006-03-08  Simon Josefsson  <jas@extundo.com>
23222
23223         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
23224         signal that configure disabled the device.
23225
23226 2006-03-08  Simon Josefsson  <jas@extundo.com>
23227
23228         * build-aux/maint.mk: Fix refresh-po, to handle no translated
23229         languages.
23230
23231 2006-03-07  Simon Josefsson  <jas@extundo.com>
23232
23233         * modules/getopt (Depends-on): Add unistd.
23234
23235         * modules/unistd: New file.
23236
23237 2006-03-07  Simon Josefsson  <jas@extundo.com>
23238
23239         * modules/gc-random: New file.
23240
23241 2006-03-07  Simon Josefsson  <jas@extundo.com>
23242
23243         * m4/unistd_h.m4: New file.
23244
23245 2006-03-07  Simon Josefsson  <jas@extundo.com>
23246
23247         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
23248         test to be side-effect free by storing the result in the cache
23249         variable gl_cv_lib_readline, and moving the assignment of
23250         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
23251         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23252
23253 2006-03-07  Simon Josefsson  <jas@extundo.com>
23254
23255         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
23256         error on missing devices (the functions will return an error).
23257
23258         * m4/gc.m4: Move random stuff to gc-random.m4
23259
23260 2006-03-07  Simon Josefsson  <jas@extundo.com>
23261
23262         * lib/unistd_.h: New file.
23263
23264 2006-03-07  Simon Josefsson  <jas@extundo.com>
23265
23266         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
23267
23268 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
23269
23270         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
23271         Problem reported by Juan Manuel Guerrero.
23272
23273 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
23274
23275         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
23276         the unistd module.
23277         * lib/getlogin_r.c: Likewise.
23278         * lib/getlogin_r.h: Likewise.
23279         * lib/glob.c: Likewise.
23280         * lib/pagealign_alloc.c: Likewise.
23281         * lib/unistd_.h: Remove; no longer needed.
23282
23283 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
23284
23285         * MODULES.html.sh (Support for systems lacking POSIX:2001):
23286         Add unistd.
23287         * modules/c-stack (Depends-on): Add unistd.
23288         * modules/getlogin_r: Likewise.
23289         * modules/glob: Likewise.
23290         * modules/pagealign_alloc: Likewise.
23291         * modules/unistd (Files): Remove lib/unistd_.h.
23292         (EXTRA_DIST): Remove.
23293         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
23294         need unistd_.h.
23295         (MOSTLYCLEANFILES): Remove unistd.h-t.
23296
23297 2006-03-03  Simon Josefsson  <jas@extundo.com>
23298
23299         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
23300
23301 2006-03-03  Simon Josefsson  <jas@extundo.com>
23302
23303         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
23304         libidn and bison.
23305
23306 2006-03-03  Simon Josefsson  <jas@extundo.com>
23307
23308         * build-aux/maint.mk: Add indent target.
23309
23310 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
23311
23312         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
23313         our replacement poll.h in any case, to avoid a differing
23314         declaration from a system header.  Seen on AIX.
23315
23316 2006-03-01  Simon Josefsson  <jas@extundo.com>
23317
23318         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
23319         <kasal@ucw.cz>.
23320
23321 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
23322
23323         * modules/gettime (Depends-on): Add extensions module.
23324         * modules/nanosleep (Depends-on): Likewise.
23325         * modules/settime (Depends-on): Likewise.
23326
23327 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
23328
23329         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
23330         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
23331         pedantically.
23332         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23333         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
23334
23335         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
23336         not "==".  Reported by Ralf Wildenhues.
23337
23338 2006-03-01  Karl Berry  <karl@gnu.org>
23339
23340         * doc/Copyright/request-*: new files, synced from gnuorg.
23341
23342 2006-03-01  Karl Berry  <karl@gnu.org>
23343
23344         * config/srclist.txt (Copyright/*): new entries.
23345
23346 2006-02-28  Simon Josefsson  <jas@extundo.com>
23347
23348         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
23349
23350 2006-02-27  Simon Josefsson  <jas@extundo.com>
23351
23352         * lib/base64.h: Indent #define's.  From Jim Meyering
23353         <jim@meyering.net>.
23354
23355 2006-02-27  Jim Meyering  <jim@meyering.net>
23356
23357         Revert the change of 2006-02-24, so these files can continue
23358         to be sync'd from gettext.
23359         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
23360         of `config.h'.
23361
23362 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
23363
23364         * modules/intprops: New file.
23365         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
23366         Add intprops.
23367         * modules/getloadavg (Files): Remove lib/intprops.h.
23368         (Depends-on): Add intprops.
23369         * modules/human: Likewise.
23370         * modules/inttostr: Likewise.
23371         * modules/openat: Likewise.
23372         * modules/sig2str: Likewise.
23373         * modules/userspec: Likewise.
23374         * modules/utimecmp: Likewise.
23375         * modules/xnanosleep: Likewise.
23376         * modules/xstrtol: Likewise.
23377
23378 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
23379
23380         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
23381         * modules/lock-tests (TESTS): Use $(EXEEXT).
23382         * modules/tls-tests: Likewise.
23383         * modules/argp-tests: Likewise.
23384         (check_PROGRAMS): New var, replacing...
23385         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
23386
23387 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23388
23389         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
23390         `config.h'.
23391
23392 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23393
23394         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
23395
23396 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23397
23398         Sync from coreutils.
23399         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
23400         gl_CHDIR_SAFER.
23401
23402 2006-02-22  Jim Meyering  <jim@meyering.net>
23403
23404         Sync from coreutils.
23405         * m4/chdir-safer.m4: New file.
23406
23407 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
23408
23409         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
23410         AT_FDCWD exceeds INT_MAX.
23411         * lib/openat.h (AT_FDCWD): Likewise.
23412
23413 2006-02-17  Eric Blake  <address@hidden>
23414
23415         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
23416
23417 2006-02-16  Simon Josefsson  <jas@extundo.com>
23418
23419         * modules/getaddrinfo (Depends-on): Add sys_socket.
23420
23421 2006-02-15  Simon Josefsson  <jas@extundo.com>
23422
23423         * build-aux/maint.mk: Add dsyntax-check rule.
23424
23425 2006-02-15  Eric Blake  <ebb9@byu.net>
23426
23427         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
23428         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
23429         'present but cannot compile' warnings on cygwin.
23430         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
23431         use ws2tcpip.h if sys/socket.h works.
23432         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
23433         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
23434
23435 2006-02-14  Simon Josefsson  <jas@extundo.com>
23436
23437         * modules/maintainer-makefile (Files): Rename.
23438
23439         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
23440         and (the local) Makefile.cfg to maint-cfg.mk.
23441
23442         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
23443         to the latter.
23444
23445         * modules/maintainer-makefile: New module.
23446
23447         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
23448         severaly stripped to make it possible to build it up from scratch
23449         with reliable tests.
23450
23451         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
23452         fixes to permit overriding the default actions when configure and
23453         makefile are not available.
23454
23455 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
23456
23457         Sync from coreutils.
23458         * modules/lstat (Depends-on): Don't depend on xalloc.
23459         (License): Change from GPL to LGPL, since this is now simply a
23460         replacement for a libc function.
23461
23462 2006-02-14  Jim Meyering  <jim@meyering.net>
23463
23464         Sync from coreutils.
23465
23466         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
23467         failure on deficient systems, and simplify gnulib lgpl dependencies.
23468         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
23469         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
23470
23471         * lib/xalloc-die.c: Remove unused definition of N_.
23472
23473 2006-02-14  Jim Meyering  <jim@meyering.net>
23474
23475         Sync from coreutils.
23476         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
23477         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
23478         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
23479         double-quote uses of that variable, to accommodate the rare case in
23480         which getmntent is available in none of the libraries checked.  This
23481         happens at least on FreeBSD 5.0.
23482
23483 2006-02-13  Simon Josefsson  <jas@extundo.com>
23484
23485         * gnulib-tool (Usage): Fix --import, from
23486         karl@freefriends.org (Karl Berry).
23487
23488 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
23489
23490         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
23491
23492 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
23493
23494         * lib/argp-namefrob.h: Restore changes accidentally lost during the
23495         "autoupdate" on 2005-12-12.
23496
23497 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
23498
23499         * modules/closeout (Depends-on): Remove atexit.
23500
23501 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
23502
23503         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
23504         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
23505
23506 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
23507
23508         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
23509         __EXTENSIONS__ if this causes compilation to fail.  Problem
23510         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
23511         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
23512
23513 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
23514
23515         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
23516         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
23517         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
23518         All uses changed.
23519
23520 2006-01-26  Simon Josefsson  <jas@extundo.com>
23521
23522         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
23523         prototype is visible on mingw32.
23524
23525         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
23526         for mingw32.
23527
23528         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
23529         mingw32).
23530
23531 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
23532
23533         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
23534         attempt to open for write; this always fails, at least on POSIX
23535         hosts.  This reinstates the 2006-01-09 change, which was
23536         inadvertently removed.
23537
23538 2006-01-26  Bruno Haible  <bruno@clisp.org>
23539
23540         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
23541         Reported by Paul Eggert.
23542
23543 2006-01-26  Bruno Haible  <bruno@clisp.org>
23544             Paul Eggert  <eggert@cs.ucla.edu>
23545
23546         * lib/stdbool_.h (_Bool)
23547         [(! (defined __cplusplus || defined __BEOS__)
23548           && !defined __GNUC__
23549           && !(defined __HP_cc || defined __xlc__
23550                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
23551                || defined __sgi))]:
23552         #define to signed char in these cases too; this simplifies
23553         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
23554         etc., separately) and makes it more conservative.
23555
23556 2006-01-25  Simon Josefsson  <jas@extundo.com>
23557
23558         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
23559         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
23560         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
23561
23562 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
23563
23564         * lib/argp-namefrob.h: Bugfix. Remove stray #
23565
23566 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
23567
23568         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
23569         so that we test the test.
23570         Check for yet another HP-UX cc bug involving *bool |= bool.
23571
23572 2006-01-25  Karl Berry  <karl@gnu.org>
23573
23574         * config/srclist.txt (vasnprintf.c): sync lost.
23575
23576 2006-01-25  Jim Meyering  <jim@meyering.net>
23577
23578         Sync from the stable (b5) branch of coreutils:
23579
23580         * lib/fts.c (fts_children): Don't let close() clobber errno from
23581         failed fchdir().
23582
23583         * lib/fts.c (fts_stat): When following a symlink-to-directory,
23584         don't necessarily interpret stat-fails+lstat-succeeds as indicating
23585         a dangling symlink.  That can also happen at least for ELOOP.
23586         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
23587         FYI, this bug predates the inclusion of fts.c in coreutils.
23588
23589         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
23590         in their own block, so pre-c99 compilers don't object.
23591
23592         Avoid the double-free (first in fts_read, second in fts_close) that
23593         would occur when an `active' directory is made inaccessible (e.g.,
23594         via chmod a-x) during a traversal.
23595         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
23596         before returning.  Reproduce this failure by
23597         mkdir -p a/b; cd a; chmod a-x . b
23598         Reported by Stavros Passas.
23599
23600 2006-01-25  Jim Meyering  <jim@meyering.net>
23601
23602         * lib/fileblocks.c: Remove more useless parentheses.
23603         * lib/readutmp.h: Likewise.
23604
23605 2006-01-25  Bruno Haible  <bruno@clisp.org>
23606
23607         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
23608         warnings.
23609         Reported by Paul Eggert.
23610
23611 2006-01-25  Bruno Haible  <bruno@clisp.org>
23612
23613         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
23614         rid of a trap command. For Solaris sh.
23615         Reported by Mark D. Baushke <mdb@gnu.org>.
23616
23617 2006-01-24  Simon Josefsson  <jas@extundo.com>
23618
23619         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
23620         Bruno.
23621
23622 2006-01-24  Karl Berry  <karl@gnu.org>
23623
23624         * config/srclist.txt (argp-namefrob.h): sync lost.
23625
23626 2006-01-24  Jim Meyering  <jim@meyering.net>
23627
23628         * modules/openat (Files): Add lib/intprops.h.
23629         From Mark D. Baushke.
23630
23631 2006-01-24  Jim Meyering  <jim@meyering.net>
23632
23633         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
23634         Reported by Mark D. Baushke.
23635
23636 2006-01-24  Jim Meyering  <jim@meyering.net>
23637
23638         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
23639
23640 2006-01-24  Bruno Haible  <bruno@clisp.org>
23641
23642         * modules/strnlen (Maintainer): Change from glibc to all.
23643
23644 2006-01-24  Bruno Haible  <bruno@clisp.org>
23645
23646         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
23647         Patch by Paul Eggert.
23648
23649 2006-01-24  Bruno Haible  <bruno@clisp.org>
23650
23651         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
23652         already has it.
23653         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
23654         2005-11-26.
23655
23656         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
23657         'signed char' to avoid problems with the built-in _Bool type.
23658         Reported by Paul Eggert on 2005-11-26.
23659
23660 2006-01-24  Bruno Haible  <bruno@clisp.org>
23661
23662         * gnulib-tool (func_import): Avoid constructing complicated sed
23663         expressions inside backquote.
23664         Report and solution by Mark D. Baushke <mdb@gnu.org>.
23665
23666 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
23667
23668         These changes imported from libc.
23669         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
23670         test and two separate function calls.
23671         * lib/strndup.c (__strndup): Add libc_hidden_def.
23672
23673 2006-01-23  Simon Josefsson  <jas@extundo.com>
23674
23675         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
23676         Remove the test_*_SOURCES variable: automake infers it by default.
23677         * modules/tls-tests: Likewise.
23678
23679 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
23680
23681         Work around porting bugs reported by Dieter in
23682         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
23683         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
23684         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
23685         Include "getopt.h" first, to check interface.
23686         (getenv): Declare only if defined HAVE_DECL_GETENV &&
23687         !HAVE_DECL_GETENV.
23688         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
23689         (__strndup): Revert to K&R-style function dfns, the glibc style.
23690         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
23691         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
23692         Include strnlen.h first, to get prototype properly.
23693         (strnlen): Renamed from __strnlen.
23694         Remove weak alias.
23695
23696 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
23697
23698         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
23699
23700 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
23701
23702         * config/srclist.txt: Adjust to reflect glibc reorganization.
23703         This affects only comments.
23704
23705 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
23706
23707          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
23708          Reported by Bruce Korb <bkorb@gnu.org>.
23709
23710 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
23711
23712         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
23713         to pacify gcc -Wswitch-default.
23714
23715 2006-01-22  Bruno Haible  <bruno@clisp.org>
23716
23717         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
23718         temporary buffer for sprintf, take into account the precision also
23719         for 'd', 'i', 'u', 'o', 'x', 'X'.
23720
23721 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
23722
23723         * modules/argp-tests: New module
23724         * tests/test-argp.c: New file
23725         * tests/test-argp-2.sh: New file
23726
23727 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
23728
23729         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
23730         (__argp_base_name): Removed
23731         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
23732         typo.
23733         (__argp_base_name): Provide macro definition or extern declaration
23734         depending on the configuration
23735
23736 2006-01-20  Simon Josefsson  <jas@extundo.com>
23737
23738         * modules/inet_ntop (Depends-on): Depend on sys_socket.
23739
23740 2006-01-20  Simon Josefsson  <jas@extundo.com>
23741
23742         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
23743
23744 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
23745
23746         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
23747         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
23748         Suggested by Bruno Haible.
23749
23750 2006-01-20  Karl Berry  <karl@gnu.org>
23751
23752         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
23753         until changes propagate, I guess.
23754
23755 2006-01-19  Simon Josefsson  <jas@extundo.com>
23756
23757         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
23758
23759 2006-01-19  Simon Josefsson  <jas@extundo.com>
23760
23761         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
23762
23763 2006-01-19  Simon Josefsson  <jas@extundo.com>
23764
23765         * gnulib-tool: Set check_PROGRAMS.
23766
23767         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
23768         modules/des-tests, modules/gc-arcfour-tests,
23769         modules/gc-arctwo-tests, modules/gc-des-tests,
23770         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
23771         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
23772         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
23773         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
23774         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
23775         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
23776         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
23777         test_*_SOURCES.
23778
23779 2006-01-18  Simon Josefsson  <jas@extundo.com>
23780
23781         * modules/socklen (Depends-on): Depend on sys_socket.
23782
23783 2006-01-18  Simon Josefsson  <jas@extundo.com>
23784
23785         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
23786         modules/des-tests, modules/gc-arcfour-tests,
23787         modules/gc-arctwo-tests, modules/gc-des-tests,
23788         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
23789         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
23790         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
23791         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
23792         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
23793         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
23794         $(EXEEXT) to automake TESTS variable, for mingw32.
23795
23796 2006-01-17  Simon Josefsson  <jas@extundo.com>
23797
23798         * modules/socklen (Include): Need sys/socket.h.
23799
23800 2006-01-17  Bruno Haible  <bruno@clisp.org>
23801
23802         * modules/ssize_t (Include): Add <sys/types.h>.
23803
23804 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
23805
23806         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
23807         it's not portable and it doesn't work with cross-compiles.
23808         Problem reported by Bruno Haible.  Fix missing-$ typo in
23809         'test "gl_cv_ignore_unused_libraries" ...' that prevented
23810         -zignore from being used with Sun's C compiler.
23811
23812 2006-01-12  Simon Josefsson  <jas@extundo.com>
23813
23814         * lib/base64.c: Fix warning, reported by Bruno Haible
23815         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
23816
23817 2006-01-12  Bruno Haible  <bruno@clisp.org>
23818
23819         * modules/ldd: New file.
23820         * build-aux/ldd.sh.in: New file.
23821         * MODULES.html.sh (Support for building libraries and executables): Add
23822         ldd.
23823
23824 2006-01-12  Bruno Haible  <bruno@clisp.org>
23825
23826         * m4/ldd.m4: New file.
23827
23828 2006-01-12  Bruno Haible  <bruno@clisp.org>
23829
23830         * gnulib-tool (func_import, func_create_testdir): Don't go into an
23831         endless loop while replacing $auxdir with build-aux.
23832
23833 2006-01-11  Simon Josefsson  <jas@extundo.com>
23834
23835         * lib/stdint_.h (SIZE_MAX): Add missing (.
23836
23837 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
23838
23839         Sync from coreutils.
23840         * lib/md5.c: Fix commentary typos.
23841         (alignof, UNALIGNED_P): No need for a GCC-specific version.
23842         * lib/md5.h (__attribute__): Remove; unused.
23843         * lib/sha1.c: Fix commentary to match md5 better.
23844         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
23845         so that we don't need to worry about alignment.  All uses changed.
23846         This merges the 2005-10-28 md5 change into sha1.
23847
23848 2006-01-11  Jim Meyering  <jim@meyering.net>
23849
23850         Sync from coreutils.
23851         * lib/md5.c (OP): Fix spacing.
23852
23853 2006-01-11  Bruno Haible  <bruno@clisp.org>
23854
23855         Ensure automatic ordering between gl_LOCK and gl_ARGP.
23856         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
23857         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
23858
23859 2006-01-11  Bruno Haible  <bruno@clisp.org>
23860
23861         Ensure automatic ordering between gl_LOCK and gl_ARGP.
23862         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
23863         the "early" section as well.
23864
23865 2006-01-11  Bruno Haible  <bruno@clisp.org>
23866
23867         Avoid "ar: no archive members specified" error on MacOS X.
23868         * gnulib-tool (func_modules_add_dummy): New function.
23869         (func_import, func_create_testdir): Invoke it.
23870
23871 2006-01-11  Bruno Haible  <bruno@clisp.org>
23872
23873         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
23874         with $auxdir in AC_CONFIG_FILES statements.
23875
23876 2006-01-11  Bruno Haible  <bruno@clisp.org>
23877
23878         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23879         Initialize also noinst_HEADERS to empty.
23880
23881 2006-01-11  Bruno Haible  <bruno@clisp.org>
23882
23883         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
23884         variables.
23885         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
23886         autoreconf.
23887
23888 2006-01-11  Bruno Haible  <bruno@clisp.org>
23889
23890         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
23891         overridable by the user.
23892         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23893
23894 2006-01-10  Simon Josefsson  <jas@extundo.com>
23895
23896         * modules/sys_socket: New file.
23897
23898 2006-01-10  Simon Josefsson  <jas@extundo.com>
23899
23900         * m4/sys_socket_h.m4: New file.
23901
23902 2006-01-10  Simon Josefsson  <jas@extundo.com>
23903
23904         * lib/socket_.h: New file.
23905
23906 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
23907
23908         * modules/readutmp (Maintainer): Add myself.
23909
23910 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
23911
23912         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
23913         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
23914         People who are still concerned with buggy memcmp implementations
23915         can invoke gl_FUNC_MEMCMP themselves.
23916
23917 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
23918
23919         * lib/regex_internal.h (BITSET_WORD_BITS):
23920         Work around a bug in 64-bit PGC (before version 6.1-2), where the
23921         preprocessor mishandles large unsigned values as if they were signed.
23922         Problem reported by Claudio Fontana in
23923         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
23924
23925 2006-01-10  Jim Meyering  <jim@meyering.net>
23926
23927         Avoid the double-free (first in fts_read, second in fts_close) that
23928         would occur when an `active' directory is made inaccessible (e.g.,
23929         via chmod a-x) during a traversal.
23930         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
23931         before returning.  Reproduce this failure by
23932         mkdir -p a/b; cd a; chmod a-x . b
23933         Reported by Stavros Passas.
23934
23935         Sync from coreutils.
23936         * lib/sha1.c: Tweak grammar in a comment.
23937
23938 2006-01-10  Jim Meyering  <jim@meyering.net>
23939
23940         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
23941         Patch by Joerg Sonnenberger.
23942
23943 2006-01-10  Bruno Haible  <bruno@clisp.org>
23944
23945         * modules/readutmp: Depend on module free.
23946         * modules/strtok_r: Depend on module restrict.
23947
23948 2006-01-10  Bruno Haible  <bruno@clisp.org>
23949
23950         * modules/gettext (configure.ac): Add an invocation of
23951         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
23952
23953 2006-01-10  Bruno Haible  <bruno@clisp.org>
23954
23955         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
23956         Reported by Werner Lemberg <wl@gnu.org>.
23957
23958 2006-01-10  Bruno Haible  <bruno@clisp.org>
23959
23960         * lib/localcharset.c: Update from GNU gettext.
23961
23962 2006-01-10  Bruno Haible  <bruno@clisp.org>
23963
23964         * lib/argp.h (__const): Remove macro. Use const instead.
23965         * lib/argp-fmtstream.h (__const): Likewise.
23966         * lib/glob_.h (__const): Remove macro.
23967         * lib/glob-libc.h: Use const instead of __const.
23968
23969 2006-01-10  Bruno Haible  <bruno@clisp.org>
23970
23971         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
23972         variable.
23973         Needed to avoid an automake error regarding the 'gettext' module.
23974
23975 2006-01-09  Simon Josefsson  <jas@extundo.com>
23976
23977         * modules/inet_ntop (Depends-on): Add restrict.
23978
23979 2006-01-09  Simon Josefsson  <jas@extundo.com>
23980
23981         * modules/gc-rijndael-tests (License): Put under LGPL.
23982
23983         * modules/gc-des-tests (License): Likewise.
23984
23985         * modules/gc-arcfour-tests (License): Likewise.
23986
23987         * modules/gc-arctwo-tests (License): Likewise.
23988
23989         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
23990
23991         * modules/gc-hmac-sha1-tests (Files): Likewise.
23992
23993         * modules/gc-hmac-md5-tests (License): Likewise.
23994
23995         * modules/gc-sha1-tests (License): Likewise.
23996
23997         * modules/gc-md5-tests (License): Likewise.
23998
23999         * modules/gc-md4-tests (License): Likewise.
24000
24001         * modules/gc-md2-tests (License): Likewise.
24002
24003         * modules/gc-tests (License): Likewise.
24004
24005         * modules/des-tests (License): Likewise.
24006
24007         * modules/md4-tests (License): Likewise.
24008
24009         * modules/md2-tests (License): Likewise.
24010
24011 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24012
24013         Sync from coreutils:
24014
24015         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
24016         * modules/lib-ignore: New file.
24017         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
24018         chdir-safer.m4, lchmod.m4.
24019         * modules/openat: Add mkdirat.c, openat-priv.h.
24020
24021 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24022
24023         Sync from coreutils.
24024         * m4/lib-ignore.m4: New file.
24025         * m4/lchmod.m4: New file.
24026
24027 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24028
24029         Sync from coreutils.
24030         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
24031         for write access: POSIX says that must fail.
24032         * lib/fts.c (diropen): Likewise.
24033         * lib/save-cwd.c (save_cwd): Likewise.
24034         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
24035         well, for minor improvements on hosts that lack O_DIRECTORY.
24036         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
24037         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
24038         Fall back on chown if open failed with EACCES.
24039
24040         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
24041         Report an error at compile-time if only a 1-second nominal clock
24042         resolution is found.
24043
24044         * lib/lchmod.h: New file.
24045         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
24046         (make_dir_parents): Use lchown rather than chown, and
24047         lchmod rather than chmod.
24048
24049         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
24050         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
24051         "proc" reported by n0dalus.
24052
24053         * lib/mountlist.c: Include <limits.h>.
24054         (dev_from_mount_options)
24055         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
24056         New function.  It no longer assumes "dev=" has the System V meaning
24057         on Linux (since it doesn't).  It also parses "dev=" more carefully.
24058         (read_file_system_list)
24059         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
24060         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
24061         dev= in that case.
24062
24063         * lib/posixtm.h (PDS_PRE_2000): New macro.
24064         * lib/posixtm.c (year): Arg is now syntax_bits rather than
24065         allow_century.  All usages changed.  Reject dates outside the range
24066         1969-1999 if PDS_PRE_2000 is used.
24067
24068 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24069
24070         Sync from coreutils.
24071         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
24072         (Time of day items): Mention the possibility of leap seconds.
24073         Problem reported by Dr. David Alan Gilbert.
24074
24075 2006-01-09  Jim Meyering  <jim@meyering.net>
24076
24077         Sync from coreutils.
24078
24079         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
24080
24081         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
24082
24083         * lib/modechange.c (mode_compile): Reject an invalid mode string
24084         that starts with an octal digit.  From Andreas Gruenbacher.
24085
24086         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
24087         and dup to open_safer and dup_safer, respectively.
24088         (openat_permissive): Fix typo in comment.
24089
24090         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
24091         "gettext.h"; either no longer needed or are guaranteed by openat.h.
24092         (_): Remove; no longer needed.
24093         (openat): Renamed from rpl_openat; no need for rpl_openat
24094         since openat.h renames openat for us.
24095         Replace most of the body with a call to openat_permissive,
24096         to avoid duplicate code.
24097         Port to (probably hypothetical) environments were mode_t is
24098         wider than int.
24099         (openat_permissive): Require mode arg, so that we can check
24100         types better.  Put it just after flags.  Change cwd failure
24101         indicator from pointer-to-bool to pointer-to-errno-value.
24102         All callers changed.
24103         Invoke openat_save_fail and/or openat_restore_fail if
24104         cwd_errno is null, so that openat can call us.
24105         (openat_permissive, fdopendir, fstatat, unlinkat):
24106         Simplify errno handling to avoid some duplicate code,
24107         as it's OK to set errno on success.
24108         * lib/openat.h: Revamp code so that function macros depend on
24109         __OPENAT_PREFIX only, not also on AT_FDCWD.
24110         (openat_ro): Remove.  Caller changed to use openat_permissive.
24111         (openat_permissive): Now a macro, if not a function.
24112         (openat_restore_fail, openat_save_fail): Now always functions,
24113         since mkdirat needs them even if __OPENAT_PREFIX is defined.
24114
24115         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
24116         and openat.c.
24117         * lib/mkdirat.c: Include openat-priv.h.
24118         Remove definitions of macros defined therein.
24119         * lib/openat.c: Likewise.
24120
24121         * lib/mkdirat.c (mkdirat): New file and function.
24122         * lib/openat.h (mkdirat): Declare.
24123
24124         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
24125
24126         * lib/openat.h (openat_permissive): Declare.
24127         (openat_ro): Define.
24128
24129         * lib/openat.c (EXPECTED_ERRNO): New macro.
24130         (openat_permissive): New function -- used in remove.c rewrite.
24131         (all functions): Set errno just before returning, only if there
24132         was an actual failure.
24133         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
24134
24135         Emulate openat-family functions using Linux's procfs, if possible.
24136         Idea and some code based on Ulrich Drepper's glibc changes.
24137
24138         * lib/openat.c: (BUILD_PROC_NAME): New macro.
24139         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
24140         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
24141         before falling back on save_cwd and restore_cwd.
24142         (fdopendir, fstatat, unlinkat): Likewise.
24143
24144         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
24145         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
24146
24147         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
24148         as second argument to va_arg.  Otherwise, some versions of gcc
24149         warn that `if this code is reached, the program will abort'.
24150
24151 2006-01-09  Jim Meyering  <jim@meyering.net>
24152
24153         Sync from coreutils.
24154         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
24155         Require openat-priv.h.
24156
24157 2006-01-09  Bruno Haible  <bruno@clisp.org>
24158
24159         * modules/strnlen (Include): Use strnlen.h.
24160
24161 2006-01-09  Bruno Haible  <bruno@clisp.org>
24162
24163         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
24164
24165 2006-01-09  Bruno Haible  <bruno@clisp.org>
24166
24167         * lib/sysexit_.h (EX_OK): New macro.
24168         Suggested by Martin Lambers <marlam@marlam.de>.
24169
24170 2006-01-09  Bruno Haible  <bruno@clisp.org>
24171
24172         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
24173         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
24174
24175 2006-01-09  Bruno Haible  <bruno@clisp.org>
24176
24177         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
24178         numbers.
24179
24180 2006-01-09  Bruno Haible  <bruno@clisp.org>
24181
24182         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
24183         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
24184         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
24185         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
24186
24187 2006-01-09  Bruno Haible  <bruno@clisp.org>
24188
24189         * build-aux/javacomp.sh.in: New file, moved from lib/.
24190         * modules/javacomp-script (Files): Update.
24191         (configure.ac): Add AC_CONFIG_FILES invocation.
24192         (EXTRA_DIST): Remove variable.
24193
24194         * build-aux/javaexec.sh.in: New file, moved from lib/.
24195         * modules/javaexec (Files): Update.
24196         (configure.ac): Add AC_CONFIG_FILES invocation.
24197         (EXTRA_DIST): Remove javaexec.sh.in.
24198
24199         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
24200         * modules/csharpcomp-script (Files): Update.
24201         (configure.ac): Add AC_CONFIG_FILES invocation.
24202         (EXTRA_DIST): Remove variable.
24203
24204         * build-aux/csharpexec.sh.in: New file, moved from lib/.
24205         * modules/csharpexec (Files): Update.
24206         (configure.ac): Add AC_CONFIG_FILES invocation.
24207         (EXTRA_DIST): Remove csharpexec.sh.in.
24208
24209 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
24210
24211         Sync from coreutils.
24212
24213         Add POSIX ACL support
24214         * lib/acl.h (copy_acl, set_acl): Add declarations.
24215         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
24216         systems other than Linux.
24217         (chmod_or_fchmod): New function: use fchmod when possible,
24218         and chmod otherwise.
24219         (file_has_acl): Add a POSIX ACL implementation, with a
24220         Linux-specific subcase.
24221         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
24222         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
24223         acls are unsupported.
24224         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
24225         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
24226         are unsupported.
24227
24228 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
24229
24230         Sync from coreutils.
24231         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
24232
24233 2006-01-07  Bruno Haible  <bruno@clisp.org>
24234
24235         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
24236         gl_EARLY.
24237
24238 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
24239
24240         * lib/strftime.c (tzname): Don't declare if it is already #defined.
24241         Problem reported for Mingw by Mark Junker.
24242
24243 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
24244
24245         * README: Gnulib normally doesn't generate a tarball.
24246
24247 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
24248
24249         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
24250         long int, not int, for nanosecond counts, so that people who are
24251         used to POSIX struct timespec won't be surprised.  Reported by Jim
24252         Meyering.
24253
24254 2005-12-28  Bruno Haible  <bruno@clisp.org>
24255
24256         * build-aux/config.rpath: Update from GNU gettext.
24257
24258 2005-12-16  Jim Meyering  <jim@meyering.net>
24259
24260         * modules/fprintftime: New module.
24261         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
24262
24263 2005-12-16  Jim Meyering  <jim@meyering.net>
24264
24265         * m4/fprintftime.m4: New file.
24266
24267 2005-12-16  Jim Meyering  <jim@meyering.net>
24268
24269         * lib/fprintftime.c, lib/fprintftime.h: New files.
24270
24271 2005-12-15  Simon Josefsson  <jas@extundo.com>
24272
24273         * modules/socklen (configure.ac): Fix M4 macro name, to align with
24274         new m4/socklen.m4.
24275
24276 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
24277
24278         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
24279         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
24280
24281 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
24282
24283         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
24284         * lib/argp-help.c (fill_in_uparams): Check if the constructed
24285         struct uparams is valid. Fall back to the default values if it is
24286         not.
24287
24288 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
24289
24290         * modules/argp (Files): Add argp-pin.c
24291         (Depends-on): dirname
24292         (lib_SOURCES): Add argp-pin.c
24293
24294 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
24295
24296         * m4/argp.m4:  Check if program_invocation_name and
24297         program_invocation_short_name are declared and define appropriate
24298         macros if they are not.
24299
24300 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
24301
24302         * lib/argp-help.c (__argp_base_name): New function
24303         (__argp_short_program_name): Rewrite using __argp_base_name
24304         * lib/argp-namefrob.h: Define program_invocation_name and
24305         program_invocation_short_name if requested
24306         (__argp_base_name): Add prototype
24307         * lib/argp-parse.c (argp_def): Use gettext wrappers
24308         (argp_default_parser): Use __argp_base_name
24309         * lib/argp-pin.c: New file. Defines program_invocation_name and
24310         program_invocation_short_name on systems that lack them.
24311
24312 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
24313
24314         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
24315         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
24316         porting problem reported by Georg Schwarz in
24317         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
24318
24319 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
24320
24321         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
24322         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
24323         porting problem reported by Georg Schwarz in
24324         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
24325
24326 2005-12-05  Bruno Haible  <bruno@clisp.org>
24327
24328         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
24329         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
24330         Reported by Mark Junker <mjscod@gmx.de>.
24331
24332 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
24333
24334         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
24335         Use implementation from Albert Chin, with some
24336         comments/corrections by Stepan Kasal and myself.
24337
24338 2005-12-02  Bruno Haible  <bruno@clisp.org>
24339
24340         * gnulib-tool (func_import): Accept GPLed build tool modules when
24341         --lgpl is given.
24342         * modules/csharpcomp-script: New file.
24343         * modules/csharpcomp: Depend on it.
24344         * modules/javacomp-script: New file.
24345         * modules/javacomp: Depend on it.
24346         Suggested by Simon Josefsson.
24347
24348 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
24349
24350         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
24351         statement, to work around an HP-UX 10.20 compiler bug reported by
24352         Peter O'Gorman.
24353
24354 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
24355
24356         * modules/savedir (Depends-on): Add openat.
24357
24358 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
24359
24360         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
24361         (uintmax_t) [defined uintmax_t]: Do not declare.
24362         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
24363         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
24364         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
24365         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
24366         sake of portability to weird hosts that C allows (though we don't
24367         know of any practical examples).
24368
24369         * lib/savedir.h (fdsavedir): New decl.
24370         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
24371         contains most of the former guts of savedir.
24372         (savedir): Use savedirstream.
24373         Include "openat.h".
24374
24375 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24376
24377         * modules/obstack (Files): Add m4/ulonglong.m4.
24378         Problem reported by Davide Angelocola.
24379
24380 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24381
24382         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
24383         coreutils no longer futzes with rounding modes.
24384
24385 2005-11-14  Jim Meyering  <jim@meyering.net>
24386
24387         * lib/mkstemp-safer.c: Include <config.h>, required for possible
24388         replacement of mkstemp.
24389
24390 2005-11-10  Simon Josefsson  <jas@extundo.com>
24391
24392         * lib/readline.c: Remove EOL.
24393
24394 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
24395
24396         * modules/gethrxtime (Depends-on): Add gettime.
24397
24398 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
24399
24400         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
24401         or gettimeofday; no longer needed.
24402
24403 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
24404
24405         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
24406         time business.
24407         (gethrxtime) [! (HAVE_NANOUPTIME
24408         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
24409         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
24410         our own approximation.
24411
24412 2005-11-08  Eric Blake  <ebb9@byu.net>
24413
24414         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
24415
24416 2005-11-08  Eric Blake  <ebb9@byu.net>
24417
24418         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
24419
24420 2005-11-04  Bruno Haible  <bruno@clisp.org>
24421
24422         * gnulib-tool: Implement --update mode.
24423
24424 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
24425
24426         Fix porting problem reported by Theodoros V. Kalamatianos.
24427         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
24428         Don't assume that futimes failing means we must fail.
24429
24430 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
24431
24432         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
24433         variables to suggest the intended function of the PATH_MAX check.
24434
24435 2005-10-30  Kean Johnston  <jkj@sco.com>
24436
24437         Trivial changes to support SCO systems.
24438         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
24439         as PATH_MAX.
24440         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
24441         where __ptr is null when no I/O is pending.
24442
24443 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
24444
24445         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
24446         leave errno alone.  Problem reported by Dmitry V. Levin.
24447
24448 2005-10-28  Simon Josefsson  <jas@extundo.com>
24449
24450         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
24451         Test more.
24452
24453         * tests/test-gc-md2.c, tests/test-md2.c: New files.
24454
24455         * modules/md2, modules/md2-tests: New files.
24456
24457 2005-10-28  Simon Josefsson  <jas@extundo.com>
24458
24459         * m4/inet_ntop.m4: More tests.
24460
24461         * m4/gc-md2.m4, md2.m4: New file.
24462
24463 2005-10-28  Simon Josefsson  <jas@extundo.com>
24464
24465         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
24466         "restrict" keywords, as per POSIX.  Protect the function
24467         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
24468         Don't use K&R prototypes.  Check the sprintf return values.
24469         Re-define EAFNOSUPPORT if not present.  Indent.
24470
24471         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
24472         suggested by Bruno Haible <bruno@clisp.org>.
24473
24474         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
24475
24476         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
24477
24478         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
24479         libgcrypt).
24480
24481         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
24482
24483         * lib/md2.h, lib/md2.c: New files.
24484
24485 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
24486
24487         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
24488         errno alone.  Problem reported by Frederic Jolliton.
24489
24490 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
24491
24492         * modules/verify (License): Change from GPL to LGPL.  This is a
24493         tiny module and there are apparently near-equivalents that are
24494         under the BSD license.
24495
24496 2005-10-24  Simon Josefsson  <jas@extundo.com>
24497
24498         * modules/sha1: Relicense to LGPL.
24499
24500 2005-10-24  Simon Josefsson  <jas@extundo.com>
24501
24502         * lib/md4.h: Shrink buffer size, now that we changed the type.
24503
24504 2005-10-23  Simon Josefsson  <jas@extundo.com>
24505
24506         * gnulib-tool (func_import): Fix --tests-base.
24507
24508 2005-10-22  Simon Josefsson  <jas@extundo.com>
24509
24510         * modules/arcfour (Depends-on): Need stdint.
24511
24512 2005-10-22  Simon Josefsson  <jas@extundo.com>
24513
24514         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
24515         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
24516
24517 2005-10-22  Simon Josefsson  <jas@extundo.com>
24518
24519         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
24520         suggested by Bruno Haible <bruno@clisp.org>.
24521
24522 2005-10-22  Simon Josefsson  <jas@extundo.com>
24523
24524         * lib/crc.h: Include stddef.h, for size_t.
24525
24526 2005-10-22  Simon Josefsson  <jas@extundo.com>
24527
24528         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
24529         arcfour_context struct (simplify test vector testing in GNU
24530         Shishi).
24531
24532 2005-10-21  Simon Josefsson  <jas@extundo.com>
24533
24534         * modules/des, modules/des-tests: New files.
24535
24536         * modules/gc-des, modules/gc-des-tests: New files.
24537
24538         * tests/test-des.c, tests/test-gc-des.c: New file.
24539
24540 2005-10-21  Simon Josefsson  <jas@extundo.com>
24541
24542         * modules/arctwo, modules/arctwo-tests: New files.
24543
24544         * tests/test-arctwo.c: New file.
24545
24546         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
24547
24548         * tests/test-gc-arctwo.c: New file.
24549
24550 2005-10-21  Simon Josefsson  <jas@extundo.com>
24551
24552         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
24553         Bruno Haible <bruno@clisp.org>.
24554
24555         * m4/gc-des.m4: New file.
24556
24557 2005-10-21  Simon Josefsson  <jas@extundo.com>
24558
24559         * m4/arctwo.m4: New file.
24560
24561         * m4/gc-arctwo.m4: New file.
24562
24563 2005-10-21  Simon Josefsson  <jas@extundo.com>
24564
24565         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
24566         block.
24567
24568 2005-10-21  Simon Josefsson  <jas@extundo.com>
24569
24570         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
24571         <bruno@clisp.org>.
24572
24573         * lib/hmac-sha1.c (hmac_sha1): Likewise.
24574
24575         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
24576         Bruno Haible <bruno@clisp.org>.
24577
24578         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
24579         <bruno@clisp.org>.
24580
24581 2005-10-21  Simon Josefsson  <jas@extundo.com>
24582
24583         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
24584
24585 2005-10-21  Simon Josefsson  <jas@extundo.com>
24586
24587         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
24588
24589 2005-10-21  Simon Josefsson  <jas@extundo.com>
24590
24591         * lib/des.h, lib/des.c: New files.
24592
24593         * lib/gc-gnulib.c: Support DES.c
24594
24595 2005-10-21  Simon Josefsson  <jas@extundo.com>
24596
24597         * lib/arctwo.h, lib/arctwo.c: New files.
24598
24599         * lib/gc-gnulib.c: Support ARCTWO.
24600
24601 2005-10-21  Simon Josefsson  <jas@extundo.com>
24602
24603         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
24604         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24605
24606 2005-10-21  Simon Josefsson  <jas@extundo.com>
24607
24608         * gnulib-tool (func_import, func_create_testdir): Define automake
24609         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
24610         Makefile.am snippet),
24611         suggested by Bruno Haible <bruno@clisp.org>.
24612
24613         * modules/gc (Makefile.am): Use it.
24614
24615 2005-10-21  Bruno Haible  <bruno@clisp.org>
24616
24617         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
24618         patch.
24619
24620 2005-10-19  Simon Josefsson  <jas@extundo.com>
24621
24622         * tests/test-gc-rijndael.c: New file.
24623
24624         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
24625
24626 2005-10-19  Simon Josefsson  <jas@extundo.com>
24627
24628         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
24629         interface too.
24630
24631 2005-10-19  Simon Josefsson  <jas@extundo.com>
24632
24633         * tests/test-gc-arcfour.c: New file.
24634
24635         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
24636
24637 2005-10-19  Simon Josefsson  <jas@extundo.com>
24638
24639         * modules/gc-md4, modules/gc-md4-tests: New file.
24640
24641         * tests/test-gc-md4.c: New file.
24642
24643 2005-10-19  Simon Josefsson  <jas@extundo.com>
24644
24645         * m4/gc-md4.m4: New file.
24646
24647 2005-10-19  Simon Josefsson  <jas@extundo.com>
24648
24649         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
24650         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
24651         <kasal@ucw.cz>.
24652
24653 2005-10-19  Simon Josefsson  <jas@extundo.com>
24654
24655         * m4/gc-arcfour.m4: New file.
24656
24657         * m4/gc-rijndael.m4: New file.
24658
24659 2005-10-19  Simon Josefsson  <jas@extundo.com>
24660
24661         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
24662
24663 2005-10-19  Simon Josefsson  <jas@extundo.com>
24664
24665         * lib/gc-gnulib.c: Support ARCFOUR.
24666
24667 2005-10-19  Simon Josefsson  <jas@extundo.com>
24668
24669         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
24670         support.
24671
24672         * lib/gc.h: Add ECB enum type.
24673
24674         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
24675
24676 2005-10-18  Simon Josefsson  <jas@extundo.com>
24677
24678         * tests/test-md5.c: New file.
24679
24680         * modules/md5-tests: New file.
24681
24682 2005-10-18  Simon Josefsson  <jas@extundo.com>
24683
24684         * tests/test-md4.c: New file.
24685
24686         * modules/md4, modules/md4-tests: New files.
24687
24688 2005-10-18  Simon Josefsson  <jas@extundo.com>
24689
24690         * m4/md4.m4: New file.
24691
24692 2005-10-18  Simon Josefsson  <jas@extundo.com>
24693
24694         * lib/md4.h, lib/md4.c: New files, based on md5.?.
24695
24696 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
24697
24698         * gnulib-tool (func_create_testdir): Omit the second check whether
24699         BUILT_SOURCES in nonempty.
24700
24701 2005-10-17  Simon Josefsson  <jas@extundo.com>
24702
24703         * tests/test-rijndael.c: New file.
24704
24705 2005-10-17  Simon Josefsson  <jas@extundo.com>
24706
24707         * modules/sha1: Depend on stdint instead of md5.
24708
24709         * modules/md5: Depend on stdint, remove uint32_t.
24710
24711 2005-10-17  Simon Josefsson  <jas@extundo.com>
24712
24713         * modules/gc-sha1-tests: New file.
24714
24715         * tests/test-gc-sha1.c: New file.
24716
24717 2005-10-17  Simon Josefsson  <jas@extundo.com>
24718
24719         * m4/md5.m4: Remove call to uint32_t.m4.
24720
24721 2005-10-17  Simon Josefsson  <jas@extundo.com>
24722
24723         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
24724
24725         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
24726         md5.h.
24727
24728         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
24729
24730         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
24731
24732 2005-10-17  Simon Josefsson  <jas@extundo.com>
24733
24734         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
24735
24736 2005-10-17  Simon Josefsson  <jas@extundo.com>
24737
24738         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
24739
24740 2005-10-17  Simon Josefsson  <jas@extundo.com>
24741
24742         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
24743
24744         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
24745
24746 2005-10-17  Bruno Haible  <bruno@clisp.org>
24747
24748         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
24749         that it can also be used in a test.
24750
24751 2005-10-16  Bruno Haible  <bruno@clisp.org>
24752
24753         * gnulib-tool (func_emit_tests_Makefile_am): Also define
24754         TESTS_ENVIRONMENT, so that individual tests can augment it.
24755
24756         * gnulib-tool (func_create_testdir): Use an intermediate target for
24757         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
24758         macros, like $(ALLOCA_H), which cannot be passed through the command
24759         line.
24760
24761 2005-10-15  Simon Josefsson  <jas@extundo.com>
24762
24763         * modules/rijndael-tests: New file.
24764
24765         * modules/rijndael: New file.
24766
24767 2005-10-15  Simon Josefsson  <jas@extundo.com>
24768
24769         * m4/rijndael.m4: New file.
24770
24771 2005-10-15  Simon Josefsson  <jas@extundo.com>
24772
24773         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
24774
24775         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
24776
24777 2005-10-14  Simon Josefsson  <jas@extundo.com>
24778
24779         * tests/test-arcfour.c: New file.
24780
24781         * modules/arcfour, modules/arcfour-tests: New files.
24782
24783 2005-10-14  Simon Josefsson  <jas@extundo.com>
24784
24785         * m4/arcfour.m4: New file.
24786
24787 2005-10-14  Simon Josefsson  <jas@extundo.com>
24788
24789         * lib/arcfour.h, lib/arcfour.c: New files.
24790
24791 2005-10-14  Roland McGrath  <roland@redhat.com>
24792
24793         Import from libc.  [BZ #1331]
24794         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
24795         macro argument.
24796         Reported by Matej Vela <vela@debian.org>.
24797
24798 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
24799
24800         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
24801         include <wchar.h>; no longer needed.
24802
24803 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
24804
24805         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
24806
24807 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
24808         and  Ulrich Drepper  <drepper@redhat.com>
24809
24810         Import from libc.
24811         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
24812         instead of inline stream orientation test and two separate
24813         function calls.  Pay no attention to USE_IN_LIBIO.
24814
24815 2005-10-13  Simon Josefsson  <jas@extundo.com>
24816
24817         * modules/gc-hmac-md5-tests: New file.
24818
24819         * tests/test-gc-hmac-sha1.c: New file.
24820
24821         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
24822
24823         * modules/gc-hmac-md5-tests: New file.
24824
24825         * tests/test-gc-md5.c: New file.
24826
24827         * modules/gc-md5-tests: New file.
24828
24829 2005-10-13  Simon Josefsson  <jas@extundo.com>
24830
24831         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
24832         Move memory allocation outside of loop.
24833
24834 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24835
24836         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
24837         intermediate directory is in a read-only file system.  Problem
24838         reported by Eric Blake.
24839
24840 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
24841
24842         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
24843
24844 2005-10-12  Simon Josefsson  <jas@extundo.com>
24845
24846         * tests/test-hmac-sha1.c: New file.
24847
24848         * modules/hmac-sha1-tests: New file.
24849
24850         * modules/hmac-sha1: New file.
24851
24852 2005-10-12  Simon Josefsson  <jas@extundo.com>
24853
24854         * modules/gc-sha1: New file.
24855
24856 2005-10-12  Simon Josefsson  <jas@extundo.com>
24857
24858         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
24859
24860         * tests/test-gc-pbkdf2-sha1.c: New file.
24861
24862 2005-10-12  Simon Josefsson  <jas@extundo.com>
24863
24864         * modules/gc-md5, modules/gc-hmac-md5: New files.
24865
24866         * modules/gc (Files): Remove md5, memxor and hmac files.
24867
24868 2005-10-12  Simon Josefsson  <jas@extundo.com>
24869
24870         * m4/gc-pbkdf2-sha1.m4: New file.
24871
24872         * m4/gc-hmac-sha1.m4: New file.
24873
24874         * m4/gc-sha1: New file.
24875
24876         * m4/hmac-sha1.m4: New file.
24877
24878 2005-10-12  Simon Josefsson  <jas@extundo.com>
24879
24880         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
24881
24882         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
24883
24884 2005-10-12  Simon Josefsson  <jas@extundo.com>
24885
24886         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
24887         suggested by Bruno Haible <bruno@clisp.org>.
24888
24889 2005-10-12  Simon Josefsson  <jas@extundo.com>
24890
24891         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
24892
24893 2005-10-12  Simon Josefsson  <jas@extundo.com>
24894
24895         * lib/gc-pbkdf2-sha1.c: New file.
24896
24897         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
24898
24899 2005-10-12  Simon Josefsson  <jas@extundo.com>
24900
24901         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
24902
24903         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
24904
24905 2005-10-12  Simon Josefsson  <jas@extundo.com>
24906
24907         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
24908         GC_USE_HMAC_MD5, respectively.
24909
24910         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
24911         (gc_md5): Fix typo.
24912
24913         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
24914
24915         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
24916
24917         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
24918
24919 2005-10-12  Bruno Haible  <bruno@clisp.org>
24920
24921         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
24922         Reported by Stepan Kasal <kasal@ucw.cz>.
24923
24924 2005-10-11  Simon Josefsson  <jas@extundo.com>
24925
24926         * tests/test-crc.c: New file.
24927
24928         * modules/crc, modules/crc-tests: New files.
24929
24930 2005-10-11  Simon Josefsson  <jas@extundo.com>
24931
24932         * m4/crc.m4: New file.
24933
24934 2005-10-11  Simon Josefsson  <jas@extundo.com>
24935
24936         * lib/gc.h: Add gc_hash and gc_hash_buffer.
24937
24938         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
24939
24940         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
24941
24942 2005-10-11  Simon Josefsson  <jas@extundo.com>
24943
24944         * lib/crc.h, lib/crc.c: New files.
24945
24946         * lib/gc.h (gc_hash_buffer): Add doc.
24947
24948 2005-10-11  Bruno Haible  <bruno@clisp.org>
24949
24950         * modules/c-strcasestr: New file.
24951         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
24952
24953 2005-10-11  Bruno Haible  <bruno@clisp.org>
24954
24955         * modules/c-strcase: New file.
24956         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
24957
24958 2005-10-11  Bruno Haible  <bruno@clisp.org>
24959
24960         * lib/strcasecmp.c: Include limits.h.
24961         (strcasecmp): Avoid integer overflow on exotic platforms.
24962         * lib/strncasecmp.c: Include limits.h.
24963         (strncasecmp): Avoid integer overflow on exotic platforms.
24964         Reported by Paul Eggert.
24965
24966 2005-10-11  Bruno Haible  <bruno@clisp.org>
24967
24968         * lib/c-strcasestr.h: New file, from GNU gettext.
24969         * lib/c-strcasestr.c: New file, from GNU gettext.
24970
24971 2005-10-11  Bruno Haible  <bruno@clisp.org>
24972
24973         * lib/c-strcase.h: New file, from GNU gettext.
24974         * lib/c-strcasecmp.c: New file, from GNU gettext.
24975         * lib/c-strncasecmp.c: New file, from GNU gettext.
24976
24977 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24978
24979         * modules/mempcpy (License): GPL -> LGPL.
24980         * modules/strchrnul (License): Likewise.
24981         * modules/sysexits (License): Likewise.
24982
24983 2005-10-08  Simon Josefsson  <jas@extundo.com>
24984
24985         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
24986
24987 2005-10-07  Simon Josefsson  <jas@extundo.com>
24988
24989         * m4/memxor.m4: Remove gl_C_RESTRICT call.
24990
24991 2005-10-06  Simon Josefsson  <jas@extundo.com>
24992
24993         * tests/test-hmac-md5.c: New file.
24994
24995         * modules/hmac-md5-tests: New file.
24996
24997         * modules/hmac-md5: New file.
24998
24999 2005-10-06  Simon Josefsson  <jas@extundo.com>
25000
25001         * m4/hmac-md5.m4: New file.
25002
25003         * m4/memxor.m4: Require gl_C_RESTRICT.
25004
25005 2005-10-06  Simon Josefsson  <jas@extundo.com>
25006
25007         * lib/memxor.c (memxor): Avoid casts and warnings.
25008
25009 2005-10-06  Simon Josefsson  <jas@extundo.com>
25010
25011         * lib/hmac-md5.c: New file.
25012
25013         * lib/hmac.h: New file.
25014
25015 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
25016
25017         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
25018         promotes to int, not unsigned int, to catch the AIX 5.3
25019         compiler bug.
25020
25021 2005-10-05  Simon Josefsson  <jas@extundo.com>
25022
25023         * modules/memxor: New file.
25024
25025         * modules/iconv (Files): Move config.rpath to havelib, it is used
25026         there.
25027
25028         * modules/havelib (Files): Add config.rpath.
25029
25030 2005-10-05  Simon Josefsson  <jas@extundo.com>
25031
25032         * m4/memxor.m4: New file.
25033
25034 2005-10-05  Simon Josefsson  <jas@extundo.com>
25035
25036         * lib/memxor.c (memxor): Fix compiler error.
25037
25038         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
25039         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
25040
25041         * lib/memxor.h, lib/memxor.c: New files.
25042
25043         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
25044         we assume all systems have it, suggested by Jim Meyering
25045         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
25046         any systems lack sys/socket.h; mingw32 is known to lack it, but we
25047         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
25048         same reasons.
25049
25050 2005-10-05  Simon Josefsson  <jas@extundo.com>
25051
25052         * config/srclist.txt: Add glibc bug 1423 for md5.h.
25053
25054 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25055
25056         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
25057         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
25058         needed, since the source code now assumes these .h files.
25059
25060 2005-10-05  Derek Price  <derek@ximbiot.com>
25061
25062         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
25063
25064 2005-10-05  Bruno Haible  <bruno@clisp.org>
25065
25066         * modules/stdint (License): Change to LGPL.
25067
25068 2005-10-04  Simon Josefsson  <jas@extundo.com>
25069
25070         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
25071         D. Baushke" <mdb@gnu.org>.
25072
25073 2005-10-04  Bruno Haible  <bruno@clisp.org>
25074
25075         * lib/verify.h (verify_true): Provide alternative definition for C++.
25076
25077 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
25078
25079         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
25080         (SSIZE_MAX): New macro, if not already defined.
25081         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
25082         than 2 GiB.
25083
25084 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
25085
25086         Sync from coreutils.
25087         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
25088         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
25089         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
25090         ULLONG_MAX doesn't work with 2.7.2.1.
25091
25092 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
25093
25094         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
25095         From Ben Pfaff.
25096
25097         * modules/exclude (Depends-on): Depend on verify.
25098         * modules/strtoimax (Depends-on): Likewise.
25099         * modules/utimecmp (Depends-on): Likewise.
25100
25101 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
25102
25103         * lib/exclude.c: Include verify.h.
25104         (verify): Remove.  All callers changed to use verify.h's version.
25105         * lib/strtoimax.c: Likewise.
25106         * lib/utimecmp.c: Likewis.e
25107
25108         Sync from coreutils.
25109         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
25110         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
25111         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
25112         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
25113         bother returning ENOSYS if settimeofday or stime fails; just let
25114         them return whatever errno they want to return.
25115         * lib/utimens.c: Include unistd.h, for dup2.
25116         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
25117         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
25118
25119 2005-10-02  Jim Meyering  <jim@meyering.net>
25120
25121         Sync from coreutils.
25122         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
25123         from glibc-2.2.5 that fails for read-only files.
25124
25125 2005-10-02  Jim Meyering  <jim@meyering.net>
25126
25127         Sync from coreutils.
25128         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
25129         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
25130         `#if HAVE_CONFIG_H'.
25131         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
25132         Remove AT_FDCWD test.
25133         Do not consume the fd unless successful.
25134         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
25135         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
25136         block, so that we don't even try to compile it if settimeofday is
25137         available.  This works around a compilation failure on OSF1 V5.1,
25138         due to stime requiring a `long int*' while tv_sec is `int'.
25139
25140 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
25141
25142         Sync from coreutils.
25143         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
25144         against `yes', rather than just testing for nonempty.
25145
25146 2005-10-01  Simon Josefsson  <jas@extundo.com>
25147
25148         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
25149         and Darwin.
25150
25151         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
25152         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
25153         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
25154         freeaddrinfo and gai_strerror are declared by the POSIX headers.
25155         Check if struct addrinfo is declared.
25156
25157 2005-10-01  Simon Josefsson  <jas@extundo.com>
25158
25159         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
25160         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
25161         AI_* and EAI_* definitions.  Protect function declarations.
25162
25163 2005-10-01  Jim Meyering  <jim@meyering.net>
25164
25165         Sync from coreutils.
25166
25167         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
25168         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
25169         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
25170         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
25171         in the inet and nsl libraries.  Required on Solaris 5.7.
25172
25173 2005-10-01  Jim Meyering  <jim@meyering.net>
25174
25175         Sync from coreutils.
25176         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
25177         in the inet and nsl libraries.  Required on Solaris 5.7.
25178
25179 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
25180
25181         * lib/getdelim.c (getdelim): Remove unused variables.
25182
25183 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
25184
25185         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
25186         so that the code works even with ancient cpp.  Portability problem
25187         with GCC 2.7.2.1 reported by Thomas M.Ott.
25188
25189 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
25190
25191         * modules/regex (Depends-on): Add strcase.
25192
25193         * modules/gethostname (Licence): Change from GPL to LGPL, since
25194         gethostname.c is a trivial implementation of a standard library
25195         function.
25196         * modules/poll (License): Change from GPL to LGPL, since it's
25197         derived from LGPL code.
25198
25199 2005-09-27  Jim Meyering  <jim@meyering.net>
25200
25201         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
25202         HAVE_CONFIG_H.
25203
25204         * lib/intprops.h (signed_type_or_expr__): Define.
25205         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
25206         for unsigned types.
25207
25208 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
25209
25210         * lib/verify.h (verify_expr): Remove, replacing with:
25211         (verify_true): New macro that returns true instead of void.
25212         (verify_type__): Remove.
25213         (verify): Use verify_true rather than verify_type__.
25214
25215 2005-09-26  Bruno Haible  <bruno@clisp.org>
25216
25217         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
25218         is necessary.
25219         (lib_SOURCES): Remove mbchar.c.
25220         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
25221         (Files): Add m4/mbrtowc.m4.
25222         * modules/mbiter: Likewise.
25223         * modules/mbuiter: Likewise.
25224
25225 2005-09-26  Bruno Haible  <bruno@clisp.org>
25226
25227         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
25228         compile mbchar.c if they are not both present.
25229         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
25230         * m4/mbiter.m4 (gl_MBITER): Likewise.
25231         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
25232         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
25233         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
25234
25235 2005-09-25  Jim Meyering  <jim@meyering.net>
25236
25237         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
25238         also uses socklen_t.
25239
25240 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
25241
25242         * lib/utimens.c (ENOSYS): Define if not already defined.
25243         (futimens): Support having a null PATH if the file descriptor
25244         is nonnegative.
25245
25246         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
25247         Remove.
25248         (__attribute): Define to empty unless GCC 3.1 or later.
25249         This works around a core dump on OpenBSD 3.4, which has GCC
25250         2.95.3, which dumps core when given __attribute__(()).  It also
25251         simplifies other tests, since we really don't want to bother with
25252         worrying about which ancient version of GCC supported what.
25253         Original problem reported by Yoann Vandoorselaere, with part of
25254         the fix suggested by Derek Price.
25255
25256 2005-09-24  Jim Meyering  <jim@meyering.net>
25257
25258         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
25259         so we can once again use a positive bitfield width of 1 -- now we
25260         don't have to explain why we were using a bitfield width of 2.
25261
25262 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
25263
25264         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
25265         and similarly for the other external symbols.  Problem reported
25266         by James Gallager.
25267
25268         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
25269         bug reported by Jim Meyering.
25270
25271         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
25272         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
25273         not needed, since socklen is a prerequisite module.
25274
25275 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
25276
25277         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
25278         Problem reported by Eric Blake.
25279         (getaddrinfo): Initialize se so that it's not garbage.
25280         Redo internal storage allocation so that it doesn't make unportable
25281         assumptions about alignment.
25282         Fix a memory leak.
25283
25284         * lib/utimens.c (futimens): Use futimesat if available.
25285         Prefer it to futimes since it doesn't have the futimes bug.
25286
25287         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
25288         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
25289         Instead, declare a function that returns a pointer to an array,
25290         and use verify_type__ to declare the size of the array.
25291         Problem and germ of a solution reported by Bruno Haible.
25292         (verify_type__): Use 2, not 1, for bitfield size, to avoid
25293         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
25294
25295 2005-09-23  Jim Meyering  <jim@meyering.net>
25296
25297         Sync from coreutils.
25298         Correct build failure (socklen_t not defined) on at least
25299         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
25300         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
25301
25302 2005-09-23  Jim Meyering  <jim@meyering.net>
25303
25304         * modules/getaddrinfo (Depends-on): Add socklen.
25305
25306 2005-09-23  Bruno Haible  <bruno@clisp.org>
25307
25308         * tests/test-verify.c: New file.
25309
25310 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25311
25312         Sync from coreutils.
25313
25314         * modules/argmatch (Depends-on): Add verify.
25315         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
25316         unistd-safer.
25317         * modules/save-cwd (Depends-on): Likewise.
25318
25319         * modules/openat (Files): Add lib/openat-die.c.
25320         (Depends-on): Remove error, exitfail.
25321         Add dirname.
25322
25323         * modules/verify: New file.
25324         * MODULES.html.sh (Diagnostics <assert.h>): New section,
25325         with "verify" module.
25326
25327 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25328
25329         Sync from coreutils.
25330
25331         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
25332         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
25333         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
25334         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
25335         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
25336         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
25337         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
25338         Don't bother checking for string.h, stdlib.h, unistd.h.
25339         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
25340         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
25341         module's job.
25342         * m4/jm-macros.m4 (gl_MACROS): Likewise.
25343         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
25344
25345         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
25346         (gl_GETDATE): Use it.
25347
25348         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
25349
25350 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25351
25352         Sync from coreutils.
25353
25354         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
25355         stat-time.h.
25356         * lib/argmatch.h: Include verify.h
25357         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
25358         (ARGMATCH_ASSERT): Remove; unused.
25359         * lib/canonicalize.c: Assume STDC_HEADERS.
25360         * lib/exclude.c: Include "strcase.h".
25361         * lib/regex_internal.h [!defined _LIBC]: Likewise.
25362         * lib/getusershell.c: Include stdio--.h rather than stdio.h
25363         and stdio-safer.h.
25364         (getusershell): Call fopen, not fopen_safer.
25365         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
25366         Do not include unistd-safer.h.
25367         (save_cwd): Don't call fd_safer; no longer needed
25368         now that we include fcntl--.h.
25369
25370         * lib/getdate.y (relative_time): New type.
25371         (RELATIVE_TIME_0): New constant.
25372         (parser_control): Use relative_time instead of doing it ourselves.
25373         (%union): Add new relative_time rel member.
25374         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
25375         Now typeless.
25376         (relunit, relunit_snumber): Now of type rel.
25377         (zone, rel, relunit, get_date): Adjust to above changes.
25378
25379         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
25380         Do not include unistd-safer.h.
25381         (getloadavg): Don't call fd_safer; no longer needed
25382         now that we include fcntl--.h.
25383
25384         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
25385         (make_dir_parents): Treat ENOSYS like EEXIST.
25386
25387         Improve quality of diagnostics on restore_cwd failure.
25388         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
25389         (make_dir_parents): Last arg is now int * (for errno), not bool *.
25390         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
25391         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
25392         each time through the loop.  Do not diagnose restore_cwd failure;
25393         that is the caller's job (and perhaps the caller does not care).
25394
25395         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
25396         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
25397         If the file already exists but is not a directory, don't bother
25398         to try to make its parents.
25399         Close potential file descriptor leak if we can't chdir("/") (!).
25400         Don't always return true if chdir($PWD) fails; return true only
25401         if the requested action was done successfully (except for the
25402         chdir($PWD)).
25403         Don't log final directory unless we actually made it.
25404         Refactor to avoid duplicate code to fix up permissions.
25405         Don't attempt to fix up parent permissions if chdir($PWD) fails.
25406
25407         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
25408         to make it a bit faster and (I hope) clearer.
25409         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
25410         Fix bug in formats like %2N.
25411
25412         * lib/verify.h: New file.
25413
25414 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25415
25416         Sync from coreutils.
25417         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
25418
25419 2005-09-22  Jim Meyering  <jim@meyering.net>
25420
25421         Sync from coreutils.
25422
25423         * m4/lstat.m4 (gl_FUNC_LSTAT):
25424         Use AC_LIBSOURCES to require lstat.c and lstat.h.
25425         Remove obsolete comment.
25426         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
25427         * m4/xstrtod.m4: Likewise.
25428
25429         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
25430
25431 2005-09-22  Jim Meyering  <jim@meyering.net>
25432
25433         Sync from coreutils.
25434
25435         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
25436
25437         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
25438         the .tm_year member, since otherwise gcc-4.0 would now warn about
25439         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
25440
25441         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
25442         order to avoid an unsuppressible warning from gcc on 64-bit systems.
25443
25444         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
25445         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
25446         when run in a time zone for which daylight savings time is in effect
25447         for the starting date.
25448
25449         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
25450         stop us from restricting permissions of just-created absolute-named
25451         directories.
25452         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
25453         to restore initial working directory.
25454         * lib/mkdir-p.c (make_dir_parents): New parameter:
25455         different_working_dir, to tell caller if/when we change the working
25456         directory and are unable to return to the initial one.
25457         * lib/mkdir-p.h (make_dir_parents): Update prototype.
25458         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
25459         `return false'.  This fixes a bug introduced on 2004-07-30.
25460
25461         * lib/openat.c (fdopendir): Be sure to close the supplied
25462         file descriptor before returning.  This makes our replacement
25463         implementation a little closer to Solaris's, where fdopendir
25464         ties the file descriptor to the returned DIR* pointer.
25465         * lib/openat.c (unlinkat): New function.
25466         * lib/openat.h (unlinkat): Add prototype.
25467         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
25468         (openat_restore_fail): Rename from openat_restore_die.
25469         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
25470
25471         Provide an alternative to exiting immediately upon save_cwd or
25472         restore_cwd failure.  Now, an application can arrange e.g.,
25473         to perform a longjump in that case.
25474         * lib/openat.c: Include dirname.h.
25475         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
25476         (rpl_openat, fdopendir, fstatat): Call openat_save_die
25477         and openat_restore_die rather than calling error directly.
25478         Don't include "error.h" or "exitfail.h"; they're no longer needed.
25479
25480         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
25481         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
25482         define.
25483
25484         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
25485         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
25486                             int utc, int nanoseconds);
25487         Background:
25488         date should not have to allocate a megabyte of virtual memory to
25489         handle a format argument like +%1048575T.  When implemented with
25490         strftime, it must allocate such a buffer, use strftime to fill it
25491         in, print it, then free it.
25492         With fprintftime, it simply prints everything and exits.
25493         With no need for memory allocation, that's one fewer way to fail.
25494         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
25495         optional field width, not before, so we accept %9:z, not %:9z.
25496         (my_strftime): Be sure to use L_('x') for literals.
25497
25498         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
25499         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
25500         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
25501         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
25502         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
25503         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
25504         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
25505         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
25506         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
25507         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
25508         * lib/xgethostname.c, lib/xreadlink.c:
25509         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
25510
25511         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
25512         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
25513         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
25514         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
25515         and don't include <sys/file.h>).
25516
25517 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
25518
25519         Sync from coreutils.
25520
25521         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
25522         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
25523         [!LDAV_DONE]: Avoid unused variable warning.
25524
25525 2005-09-21  Bruno Haible  <bruno@clisp.org>
25526
25527         * lib/unicodeio.h (unicode_to_mb): New declaration.
25528
25529 2005-09-20  Derek Price  <derek@ximbiot.com>
25530
25531         * lib/getaddrinfo.c: Don't include <netdb.h> included from
25532         getaddrinfo.h.
25533
25534 2005-09-20  Bruno Haible  <bruno@clisp.org>
25535
25536         * gnulib-tool: Remove trailing slashes from the values specified for
25537         --source-base, --m4-base, --tests-base, --aux-dir.
25538         Suggested by Simon Josefsson <jas@extundo.com>.
25539
25540 2005-09-20  Bruno Haible  <bruno@clisp.org>
25541
25542         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
25543         func_modules_to_filelist, func_import, func_create_testdir): Make all
25544         sorting results locale-independent, so that gnulib-cache.m4 doesn't
25545         change when gnulib-tool is invoked in a different locale.
25546
25547 2005-09-19  Simon Josefsson  <jas@extundo.com>
25548
25549         * m4/socklen.m4: Fix typo.
25550
25551 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25552
25553         Use a consistent style for including <config.h>.
25554         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
25555         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
25556         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
25557         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
25558         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
25559         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
25560         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
25561         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
25562         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
25563         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
25564         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
25565         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
25566         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
25567         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
25568         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
25569         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
25570         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
25571         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
25572         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
25573         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
25574         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
25575         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
25576         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
25577         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
25578         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
25579         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
25580         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
25581         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
25582         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
25583         lib/xstrtoumax.c, lib/yesno.c:
25584         Standardize inclusion of config.h.
25585         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
25586         lib/inttostr.h:  Removed inclusion of config.h from header files.
25587         * lib/inttostr.c:  Adjusted in-tree users.
25588         * lib/timespec.h: Remove superfluous warning to include config.h.
25589         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
25590         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
25591         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
25592         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
25593         config.h with HAVE_CONFIG_H.
25594
25595 2005-09-19  Jim Meyering  <jim@meyering.net>
25596
25597         * modules/pathmax (License): Change to LGPL.
25598
25599 2005-09-19  Derek Price  <derek@ximbiot.com>
25600
25601         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
25602
25603 2005-09-19  Bruno Haible  <bruno@clisp.org>
25604
25605         * gnulib-tool (import): Provide default for --tests-base.
25606
25607 2005-09-19  Bruno Haible  <bruno@clisp.org>
25608
25609         * doc/quote.texi: New file, extracted from gnulib.texi.
25610         * doc/ctime.texi: New file, extracted from gnulib.texi.
25611         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
25612         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
25613         * doc/gnulib.texi: Include them.
25614
25615 2005-09-18  Bruno Haible  <bruno@clisp.org>
25616
25617         Portability fix.
25618         * gnulib-tool (func_readlink): New function.
25619         (func_ln_if_changed): Use it.
25620
25621 2005-09-18  Bruno Haible  <bruno@clisp.org>
25622
25623         * gnulib-tool: Support --with-tests also with --import.
25624         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
25625         (func_import): Use variables $testsbase and $inctests. Emit a
25626         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
25627         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
25628         SUBDIRS += $testsdir.
25629         (func_create_testdir): Update.
25630
25631 2005-09-18  Bruno Haible  <bruno@clisp.org>
25632
25633         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
25634         instead of $dry_run.
25635         (func_cp_if_changed, func_mv_if_changed): Remove functions.
25636         (func_ln_if_changed): Don't handle dry-run here.
25637         (func_import): In dry-run mode, detect more precisely which actions
25638         would be performed, and don't use "...ing" verbs.
25639
25640 2005-09-18  Bruno Haible  <bruno@clisp.org>
25641
25642         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
25643         (func_import): Use join on two temporary files instead of three nested
25644         loops, in order to determine which files are new or old.
25645
25646 2005-09-18  Bruno Haible  <bruno@clisp.org>
25647
25648         * gnulib-tool (func_import): Comment out code that spits out the
25649         new files with --dry-run.
25650
25651 2005-09-18  Bruno Haible  <bruno@clisp.org>
25652
25653         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
25654
25655 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
25656
25657         * lib/stat-time.h: New file.
25658         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
25659         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
25660         in a different way.
25661         (timespec_cmp): New function.
25662         * lib/utimecmp.c: Include stat-time.h.
25663         (SYSCALL_RESOLUTION): Depend on whether various struct stat
25664         members exist, not on the obsolescent ST_MTIM_NSEC.
25665         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
25666
25667 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
25668
25669         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
25670
25671 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
25672
25673         * MODULES.html.sh (File system functions): Add stat-time.
25674         * modules/stat-time: New file.
25675         * modules/timespec (Files): Remove m4/st_mtim.m4; this
25676         is now done in a different way, by the stat-time module.
25677         * modules/utimecmp (Depends-on): Add stat-time.
25678
25679 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
25680
25681         * m4/st_mtim.m4: Remove.  Superseded by...
25682         * m4/stat-time.m4: New file.
25683         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
25684         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
25685
25686 2005-09-15  Derek Price  <derek@ximbiot.com>
25687
25688         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
25689
25690 2005-09-15  Derek Price  <derek@ximbiot.com>
25691
25692         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
25693         * lib/regex_internal.c: Ditto, using this...
25694         (__GNUC_PREREQ): ...new macro.
25695         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
25696         using...
25697         (__GNUC_PREREQ): ...this new macro.
25698
25699         * lib/strstr.h: Include string.h. Define strstr as a macro here.
25700
25701 2005-09-15  Derek Price  <derek@ximbiot.com>
25702             Paul Eggert  <eggert@cs.ucla.edu>
25703
25704         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
25705         changes, consolidating in...
25706         * lib/regex_internal.h: ...this file.
25707
25708 2005-09-13  Jim Meyering  <jim@meyering.net>
25709
25710         * lib/canon-host.c: Filter through gnu indent and reword comments
25711         slightly.
25712         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
25713
25714 2005-09-13  Derek Price  <derek@ximbiot.com>
25715
25716         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
25717         failure.
25718         Reported by Jim Meyering  <jim@meyering.net>.
25719
25720 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
25721
25722         * lib/base64.c: Typo.
25723         (base64_encode): Put b64str in initialized data section.
25724
25725 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
25726
25727         Merge glibc and coreutils changes into gnulib, plus a few
25728         extra fixes.
25729         * lib/md5.c: Use #error rather than a string.
25730         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
25731         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
25732         (__attribute__): Define to empty for non recent-GCC.
25733         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
25734         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
25735         Renamed from their non-__ counterparts, with new macros replacing
25736         them if not _LIBC.  Add __THROW attribute.
25737         (rol): Remove.
25738         (struct md5_ctx): Align buffer if using GCC.
25739         * lib/sha1.h (struct sha1_ctx): Likewise.
25740         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
25741         The old name was backwards.
25742         (NOTSWAP): Remove; not used.
25743         (rol): New macro, moved here from md5.h.
25744         (sha1_process_block): Remove a FIXME that doesn't make sense.
25745
25746 2005-09-12  Derek Price  <derek@ximbiot.com>
25747
25748         Return usable errors from canon-host.
25749         * lib/canon-host.h: New file.
25750         * lib/canon-host.c (canon_host): Wrap...
25751         (canon_host_r): ...this new function, which now relies exclusively on
25752         getaddrinfo.
25753         (ch_strerror): New function.
25754         (last_cherror): New global.
25755         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
25756         interface.
25757         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
25758         void *.
25759         (freeaddrinfo): Free ai->ai_canonname when set.
25760
25761 2005-09-12  Derek Price  <derek@ximbiot.com>
25762
25763         Make canon-host require getaddrinfo.
25764         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
25765         AC_LIBSOURCE canon-host.h.  Call...
25766         (gl_PREREQ_CANON_HOST): ...this new function, which requires
25767         gl_GETADDRINFO.
25768         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
25769
25770 2005-09-12  Derek Price  <derek@ximbiot.com>
25771
25772         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
25773         LGPL.
25774         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
25775
25776 2005-09-12  Derek Price  <derek@ximbiot.com>
25777
25778         * lib/gai_strerror.c: Include config.h when available.  Include
25779         getaddrinfo.h before other headers to test interface.
25780         Reported by Larry Jones <lawrence.jones@ugs.com>.
25781
25782 2005-09-12  Derek Price  <derek@ximbiot.com>
25783             Paul Eggert  <eggert@cs.ucla.edu>
25784
25785         * modules/glob (Files): Add glob-libc.h.
25786
25787 2005-09-12  Derek Price  <derek@ximbiot.com>
25788             Paul Eggert  <eggert@cs.ucla.edu>
25789
25790         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
25791         glob_.h, glob-libc.h.
25792         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
25793
25794 2005-09-12  Derek Price  <derek@ximbiot.com>
25795             Paul Eggert  <eggert@cs.ucla.edu>
25796
25797         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
25798         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
25799         protecting things that should be done only in gnulib contexts.
25800         * lib/glob_.h: New file, containing only the glob things needed for
25801         gnulib.
25802         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
25803         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
25804         (glob, globfree, glob_pattern_p): Now defined simply in terms of
25805         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
25806         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
25807         and to respect the namespace rules better.
25808
25809 2005-09-08  Simon Josefsson  <jas@extundo.com>
25810
25811         * modules/socklen: New file.
25812
25813 2005-09-08  Simon Josefsson  <jas@extundo.com>
25814
25815         * m4/socklen.m4: New file.
25816
25817 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
25818
25819         * modules/utimens (Files): Add m4/utimbuf.m4, since
25820         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
25821         Reported by Sergey Poznyakoff.
25822
25823 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
25824
25825         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
25826         definitions, since that's the preferred style in glibc.
25827         Fix a minor spacing issue, and update copyright notice to match
25828         glibc's.
25829
25830 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
25831
25832         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
25833
25834 2005-09-06  Simon Josefsson  <jas@extundo.com>
25835
25836         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
25837         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
25838
25839 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
25840
25841         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
25842         warning.
25843
25844 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
25845
25846         * config/srclist.txt: Add glibc bug 1302.
25847
25848 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
25849
25850         Change bitset word type from unsigned int to unsigned long int,
25851         as this has better performance on typical 64-bit hosts.
25852         Port bitset code to hosts with unusual word sizes.
25853         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
25854         (build_collating_symbol):
25855         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
25856         argument is a bitset.  This is merely a style issue, but it makes
25857         it clearer that an entire array is expected.
25858         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
25859         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
25860         Port to the case where bitset_word is not the same as unsigned int.
25861         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
25862         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
25863         Likewise.
25864         * lib/regexec.c (check_dst_limits_calc_pos_1,
25865         check_subexp_matching_top):
25866         (build_trtable, group_nodes_into_DFAstates):
25867         Likewise.
25868         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
25869         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
25870         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
25871         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
25872         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
25873         * lib/regcomp.c (optimize_subexps, lower_subexp):
25874         Work even if bitset_word has holes in its bitwise representation.
25875         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
25876         * lib/regexec.c (check_dst_limits_calc_pos_1,
25877         check_subexp_matching_top):
25878         Likewise.
25879         * lib/regex_internal.c (re_string_reconstruct):
25880         Don't assume UCHAR_MAX == 255.
25881         * lib/regex_internal.h (bitset_set_all): Likewise.
25882         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
25883         All uses changed.
25884         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
25885         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
25886         All uses changed.
25887         (BITSET_WORD_MAX): New macro.
25888         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
25889         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
25890         (bitset_empty, bitset_copy):
25891         Prefer sizeof (bitset) to multiplying it out ourselves.
25892         (bitset_not_merge): Remove; unused.
25893         (bitset_contain): Return bool, not unsigned int with one bit on.
25894         All callers changed.
25895         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
25896         alignment than re_node_set; do this by defining a new internal
25897         type struct dests_alloc and using it to allocate memory.
25898
25899 2005-09-05  Bruno Haible  <bruno@clisp.org>
25900
25901         * gnulib-tool (func_import): Fix comparison in handling of symbolic
25902         links.
25903
25904 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
25905
25906         * modules/size_max (Makefile.am): Add size_max.h
25907
25908 2005-09-04  Derek Price  <derek@ximbiot.com>
25909
25910         * gnulib-tool (func_import): Fix reversed $symbolic logic.
25911
25912 2005-09-03  Simon Josefsson  <jas@extundo.com>
25913
25914         * gnulib-tool: Fix typo.
25915
25916 2005-09-03  Simon Josefsson  <jas@extundo.com>
25917
25918         * config/srclist.txt: Add glibc bug 1293.
25919
25920 2005-09-03  Derek Price  <derek@ximbiot.com>
25921
25922         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
25923         From Larry Jones <lawrence.jones@ugs.com>.
25924
25925 2005-09-02  Simon Josefsson  <jas@extundo.com>
25926
25927         * modules/socklen: New file.
25928
25929 2005-09-02  Simon Josefsson  <jas@extundo.com>
25930
25931         * modules/havelib: New module.
25932
25933         * modules/gettext, modules/iconv, modules/lock, modules/readline:
25934         Use havelib.
25935
25936 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
25937
25938         Check for arithmetic overflow when calculating sizes, to prevent
25939         some buffer-overflow issues.  These patches are conservative, in the
25940         sense that when I couldn't determine whether an overflow was possible,
25941         I inserted a run-time check.
25942         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
25943         macros.
25944         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
25945         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
25946         (re_xnrealloc, re_x2nrealloc): New inline functions.
25947         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
25948         parse_bracket_exp):
25949         (build_equiv_class, build_charclass): Check for arithmetic overflow
25950         in size expression calculations.
25951         * lib/regex_internal.c (re_string_realloc_buffers):
25952         (build_wcs_upper_buffer, re_node_set_add_intersect):
25953         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
25954         (re_dfa_add_node, register_state): Likewise.
25955         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
25956         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
25957         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
25958         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
25959
25960 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
25961
25962         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
25963         m4/ulonglong.m4.  Problem reported by Martin Lambers.
25964
25965 2005-09-02  Bruno Haible  <bruno@clisp.org>
25966
25967         Support for lib vs. lib64 distinction on biarch platforms.
25968         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
25969         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
25970         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
25971
25972 2005-09-02  Bruno Haible  <bruno@clisp.org>
25973
25974         * gnulib-tool (import): In the other first-use case, provide defaults
25975         as well.
25976
25977 2005-09-02  Bruno Haible  <bruno@clisp.org>
25978
25979         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
25980         patches not yet found in the latest gettext release.
25981
25982 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
25983
25984         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
25985         to avoid a collision with bits/local_lim.h in glibc.
25986         All uses changed.  Problem reported by Dmitry V. Levin in
25987         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
25988
25989         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
25990         bugs in int versus size_t comparisons.
25991         (re_string_context_at): Fix bug where the code assumed that
25992         Idx is signed.
25993
25994         Use bool where appropriate.
25995         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
25996         All callers changed.
25997         (calc_eclosure_iter): Likewise, for ROOT arg.
25998         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
25999         (build_charclass_op): Likewise, for NON_MATCH arg.
26000         * lib/regex_internal.c (re_string_allocate, re_string_construct):
26001         (re_string_construct_common): Likewise, for ICASE arg.
26002         * lib/regexec.c (re_search_2_stub, re_search_stub):
26003         Likewise, for RET_LEN arg.
26004         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
26005         (set_regs): Likewise, for FL_BACKTRACK arg.
26006         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
26007         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
26008         (calc_eclosure_iter, parse_bracket_exp):
26009         Use bool for internal variables that are booleans.
26010         * lib/regexec.c (re_search_internal, check_matching,
26011         proceed_next_node):
26012         (set_regs, build_sifted_states, sift_states_bkref):
26013         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
26014         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
26015         (find_collation_sequence_value):
26016         Likewise.
26017         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
26018         (re_node_set_compare):
26019         Return bool, not int. All callers changed.
26020         * lib/regexec.c (check_halt_node_context, check_dst_limits):
26021         (build_trtable, check_node_accept): Likewise.
26022         * lib/regex_internal.h: Include stdbool.h.
26023
26024         Fix bugs uncovered when converting to bool.
26025         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
26026         failure instead of charging ahead blindly.
26027         * lib/regex_internal.c (register_state): Likewise.
26028         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
26029         for freeing internal storage.
26030         (group_nodes_into_DFA_states): Use unsigned int, not int, for
26031         bitset pieces used as boolean, to avoid undefined behavior
26032         on hosts that do int overflow checking.
26033
26034 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26035
26036         * config/srclist.txt: Add glibc bugs 1285-1287.
26037
26038 2005-09-01  Jim Meyering  <jim@meyering.net>
26039
26040         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
26041         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
26042         Require gl_STAT_MACROS, too.
26043
26044 2005-09-01  Bruno Haible  <bruno@clisp.org>
26045
26046         * gnulib-tool (import): In the first-use case, provide defaults.
26047
26048 2005-09-01  Bruno Haible  <bruno@clisp.org>
26049
26050         * gnulib-tool (func_import): Remove the .tmp files.
26051
26052 2005-09-01  Bruno Haible  <bruno@clisp.org>
26053
26054         * gnulib-tool (func_import): Fix handling of symbolic links.
26055
26056 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26057
26058         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
26059         old glibc regex code mishandles strings longer than 2**31 bytes.
26060         This patch fixes this when the regex code is used in gnulib
26061         (i.e., outside glibc).
26062
26063         This patch should not affect the use of the regex code inside
26064         glibc.  No doubt this problem also needs to be handled for glibc
26065         as well, but the result will be an incompatible change to the
26066         glibc ABI, and the old ABI will have to be supported too.  That
26067         can be the the subject for another patch.
26068
26069         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
26070         governing whether the rest of this patch is active.  By default,
26071         the macro is disabled and the patch has no effect.
26072         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
26073         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
26074         (struct re_pattern_buffer, re_search, re_search_2, re_match):
26075         (re_match_2, re_set_registers): Use the new types.
26076         * lib/regex_internal.h (Idx, re_hashval_t): New types.
26077         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
26078         New macros.
26079         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
26080         (re_string_context_at, bin_tree_t, re_dfastate_t):
26081         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
26082         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
26083         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
26084         (re_string_char_size_at, re_string_wchar_at):
26085         (re_string_elem_size_at):
26086         Use the new types and macros to port to 64-bit hosts.
26087         Use unsigned types for internal values, so that the code
26088         mostly works even for arrays larger than SSIZE_MAX.
26089         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
26090         (search_duplicated_node, calc_eclosure_iter, fetch_number):
26091         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
26092         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
26093         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
26094         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
26095         (calc_inveclosure, parse_dup_op, build_range_exp):
26096         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
26097         (fetch_number, create_token_tree, mark_opt_subexp):
26098         Likewise.
26099         * lib/regex_internal.c (re_string_construct_common,
26100         create_ci_newstate):
26101         (create_cd_newstate, re_string_allocate, re_string_construct):
26102         (re_string_realloc_buffers, build_wcs_upper_buffer):
26103         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
26104         (re_string_reconstruct, re_string_peek_byte_case):
26105         (re_string_fetch_byte_case, re_string_context_at):
26106         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
26107         (re_node_set_init_copy, re_node_set_add_intersect):
26108         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
26109         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
26110         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
26111         (re_acquire_state, re_acquire_state_context, register_state):
26112         Likewise.
26113         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
26114         search_cur_bkref_entry):
26115         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
26116         (re_search_internal, re_search_2_stub, re_search_stub)
26117         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
26118         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
26119         (update_cur_sifted_state, check_dst_limits):
26120         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
26121         (check_subexp_limits, sift_states_bkref, merge_state_array):
26122         (check_subexp_matching_top, get_subexp, get_subexp_sub):
26123         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
26124         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
26125         (expand_bkref_cache, check_node_accept_bytes):
26126         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
26127         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
26128         (acquire_init_state_context, check_halt_node_context):
26129         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
26130         (sift_states_backward, clean_state_log_if_needed):
26131         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
26132         (find_recover_state, transit_state_sb, transit_state_mb):
26133         (transit_state_bkref, build_trtable, match_ctx_clean):
26134         Likewise.
26135         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
26136         to work around an assumption that REG_MISSING is negative.
26137
26138         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
26139         (seek_collating_symbol_entry) [defined _LIBC]:
26140         (lookup_collation_sequence_value) [defined _LIBC]:
26141         (build_range_exp, build_collating_symbol) [defined _LIBC]:
26142         Use prototypes rather than old-style function definitions.
26143         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
26144         (transit_state_sb) [0]:
26145         (find_collation_sequence_value) [defined _LIBC]: Likewise.
26146
26147         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
26148         rm_eo.
26149
26150         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
26151         (optimize_subexps, lower_subexp):
26152         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
26153         since the signed shift might overflow.  Use 1u<<31 instead.
26154         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
26155         Likewise.
26156         * lib/regexec.c (check_dst_limits_calc_pos_1,
26157         check_subexp_matching_top): Likewise.
26158
26159         * lib/regcomp.c (optimize_subexps, lower_subexp):
26160         Use CHAR_BIT rather than 8, for clarity.
26161         * lib/regexec.c (check_dst_limits_calc_pos_1):
26162         (check_subexp_matching_top): Likewise.
26163         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
26164         have to worry about portability issues when shifting it left.
26165         Remove no-longer-needed test for table_size > 0.
26166         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
26167         in a word, as the resulting behavior is undefined.
26168         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
26169         in one case, a <= should have been an <, and in another case the
26170         whole test was missing.
26171         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
26172         the standard name CHAR_BIT.
26173         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
26174         this is not true on one's complement and signed-magnitude hosts.
26175
26176         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
26177         next_last_offset.
26178         (struct re_dfa_t): Remove unused member states_alloc.
26179         * lib/regcomp.c (init_dfa): Don't initialize unused members.
26180
26181 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26182
26183         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
26184         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
26185         and large-file glibc and in 32-bit large-file Solaris.
26186
26187 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26188
26189         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
26190         lengths fit in regoff_t; this isn't true if regoff_t is the same
26191         width as size_t.
26192         * lib/regex.c (re_search_internal): 5th arg is LAST_START
26193         (= START + RANGE) instead of RANGE.  This avoids overflow
26194         problems when regoff_t is the same width as size_t.
26195         All callers changed.
26196         (re_search_2_stub): Check for overflow when adding the
26197         sizes of the two strings.
26198         (re_search_stub): Check for overflow when adding START
26199         to RANGE; if it occurs, substitute the extreme value.
26200
26201 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26202
26203         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
26204
26205 2005-08-31  Jim Meyering  <jim@meyering.net>
26206
26207         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
26208         a pointer-to-const.
26209         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
26210         (register_state): Likewise.
26211         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
26212         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
26213         (group_nodes_into_DFAstates): Likewise.
26214
26215 2005-08-31  Jim Meyering  <jim@meyering.net>
26216
26217         * check-module: Add a FIXME comment.
26218
26219 2005-08-31  Eric Blake  <ebb9@byu.net>
26220
26221         * modules/unistd-safer (Files): Add unistd--.h.
26222         * modules/stdio-safer (Files): Add stdio--.h.
26223
26224 2005-08-31  Derek Price  <derek@ximbiot.com>
26225
26226         * lib/getdelim.c (getdelim): Return EOF on EOF.
26227         Reported by Larry Jones <lawrence.jones@ugs.com>.
26228
26229 2005-08-31  Bruno Haible  <bruno@clisp.org>
26230
26231         Avoid unnecessary diffs in the generated lib/Makefile.am.
26232         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
26233         the generated files.
26234         (func_import): Don't set cmd.
26235
26236 2005-08-31  Bruno Haible  <bruno@clisp.org>
26237
26238         * lib/strstr.c: Include <stddef.h>, for NULL.
26239         * lib/strcasestr.c: Likewise.
26240         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26241
26242 2005-08-31  Bruno Haible  <bruno@clisp.org>
26243
26244         * gnulib-tool: New option --macro-prefix.
26245         (func_import): Use macro_prefix.
26246         (import): Handle option --macro-prefix.
26247
26248 2005-08-31  Bruno Haible  <bruno@clisp.org>
26249
26250         * gnulib-tool (import): Rename most ac_* variables to cached_*.
26251         Also use new variables cached_lgpl, cached_libtool.
26252
26253 2005-08-31  Bruno Haible  <bruno@clisp.org>
26254
26255         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
26256         always instantiating them.
26257
26258 2005-08-31  Bruno Haible  <bruno@clisp.org>
26259
26260         * gnulib-tool (func_import): Read the previous cached settings
26261         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
26262         earlier added by gnulib but are now dropped. Warn when a gnulib file
26263         overwrites a non-gnulib file.
26264
26265 2005-08-31  Bruno Haible  <bruno@clisp.org>
26266
26267         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
26268         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
26269         projects that don't keep autogenerated files in CVS. Put into
26270         actioncmd only the specified modules, not the transitive closure.
26271
26272 2005-08-31  Bruno Haible  <bruno@clisp.org>
26273
26274         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
26275         Create directories that shall be filled.
26276         (import): Don't look for gl_* macros in configure.ac. Recurse across
26277         all directories containing a gnulib-cache.m4 files, if meaningful.
26278
26279 2005-08-31  Bruno Haible  <bruno@clisp.org>
26280
26281         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
26282         (import): Set seen_libtool when we see gl_LIBTOOL.
26283
26284 2005-08-31  Bruno Haible  <bruno@clisp.org>
26285
26286         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
26287         declaration macro definitions from generated gnulib.m4.
26288
26289 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
26290
26291         * lib/iconvme.h: Add prototype for iconv_alloc.
26292
26293 2005-08-29  Simon Josefsson  <jas@extundo.com>
26294
26295         * lib/iconvme.c: Fix errno.
26296
26297 2005-08-29  Bruno Haible  <bruno@clisp.org>
26298
26299         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
26300         that it works when the directory contains spaces.
26301
26302 2005-08-29  Bruno Haible  <bruno@clisp.org>
26303
26304         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
26305
26306 2005-08-29  Bruno Haible  <bruno@clisp.org>
26307
26308         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
26309         Emit more advice.
26310
26311 2005-08-29  Bruno Haible  <bruno@clisp.org>
26312         and Stepan Kasal  <kasal@ucw.cz>
26313
26314         * check-module: If more parameters are given, check each of them
26315         separately; add more exceptions, as noted by Jim Meyering.
26316         (check_module): New procedure.
26317         (%exempt_header): Now contains all exceptions.
26318
26319 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
26320
26321         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
26322
26323 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
26324
26325         * lib/iconvme.c: Split iconv_string into iconv_alloc.
26326
26327 2005-08-28  Bruno Haible  <bruno@clisp.org>
26328
26329         * m4/gnulib-tool.m4: New file.
26330
26331 2005-08-27  Jim Meyering  <jim@meyering.net>
26332
26333         * modules/unistd-safer (Files): Add pipe-safer.c.
26334         * modules/fcntl-safer (Files): Add creat-safer.c.
26335
26336 2005-08-27  Jim Meyering  <jim@meyering.net>
26337
26338         * m4/stdlib-safer.m4: New file.  From coreutils.
26339         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
26340         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
26341         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
26342         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
26343         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
26344
26345 2005-08-27  Jim Meyering  <jim@meyering.net>
26346
26347         * lib/fopen-safer.c: Merge minor changes from coreutils.
26348         * lib/dup-safer.c: Likewise.
26349         * lib/fd-safer.c: Likewise.
26350
26351         Merge from coreutils.
26352         * lib/stdio--.h: New file.
26353         * lib/stdlib--.h: New file.
26354         * lib/mkstemp-safer.c: New file.
26355
26356         GNU tar needs these.
26357         * lib/pipe-safer.c: New file.
26358         * lib/creat-safer.c: New file.
26359         * lib/fcntl--.h (creat): Define to creat_safer.
26360         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
26361         * lib/unistd--.h (pipe): Define to pipe_safer.
26362         * lib/unistd-safer.h: Declare pipe_safer.
26363
26364 2005-08-26  Simon Josefsson  <jas@extundo.com>
26365
26366         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
26367         Haible <bruno@clisp.org>.
26368
26369 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
26370
26371         * lib/regex_internal.h: Remove all references to
26372         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
26373         or better.
26374         (bitset_not, bitset_merge, bitset_not_merge):
26375         (bitset_mask, re_string_allocate, re_string_construct):
26376         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
26377         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
26378         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
26379         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
26380         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
26381         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
26382         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
26383         (re_acquire_state_context):
26384         Remove unnecessary forward decls.
26385         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
26386         Put __attribute at function definition,
26387         now that the function decl has been removed.
26388         * lib/regex_internal.c (re_string_peek_byte_case):
26389         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
26390         Likewise.
26391
26392 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
26393
26394         * m4/regex.m4: Add AC_PREREQ(2.50).
26395         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
26396
26397 2005-08-25  Simon Josefsson  <jas@extundo.com>
26398
26399         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
26400         __fsetlocking.
26401
26402 2005-08-25  Simon Josefsson  <jas@extundo.com>
26403
26404         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
26405         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
26406         GLIBC specific code.
26407
26408 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
26409
26410         Make regex safe for g++.  This fixes one real bug (an "err"
26411         that should have been "*err").  g++ problem reported by
26412         Sam Steingold.
26413         * lib/regex_internal.h (re_calloc): New macro, consistent with
26414         re_malloc etc.  All callers of calloc changed to use re_calloc.
26415         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
26416         not int.  All callers changed.
26417         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
26418         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
26419         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
26420         (find_recover_state): Change "err" to "*err"; this fixes what
26421         appears to be a real bug.
26422         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
26423         versus int.
26424
26425 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
26426
26427         * modules/regex (Depends-on): Add malloc, since the code
26428         assumes that !malloc(0) means failure.
26429
26430 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
26431
26432         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
26433
26434         alloca modernization/simplification for regex.
26435         * lib/regex.c: Remove portability cruft for alloca.  This no longer
26436         needs to be at the start of the file, and can be moved into
26437         regex_internal.h and simplified.
26438         * lib/regex_internal.h: Include <alloca.h>.
26439         (__libc_use_alloca) [!defined _LIBC]: New macro.
26440         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
26441         now works outside glibc.
26442
26443 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
26444
26445         * config/srclist.txt: Add glibc bugs 1241, 1245.
26446
26447 2005-08-25  Jim Meyering  <jim@meyering.net>
26448
26449         * lib/open-safer.c: Include <config.h>.
26450         Otherwise, we'd lose LARGEFILE support in any file using
26451         e.g. "fcntl--.h"
26452
26453 2005-08-25  Bruno Haible  <bruno@clisp.org>
26454
26455         * m4/minmax.m4: Require autoconf 2.52.
26456         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
26457         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
26458         alternatives of translit over the alphabet.
26459         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
26460
26461 2005-08-24  Simon Josefsson  <jas@extundo.com>
26462
26463         * tests/test-getpass.c: New file.
26464
26465 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26466
26467         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
26468         for GNU regex features.
26469
26470 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26471
26472         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
26473         * lib/regex.h (regerror): Likewise.
26474
26475         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
26476         requires this.  (The code never needed it.)
26477
26478         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
26479         All uses of recently-renamed identifiers changed to use the new,
26480         POSIX-compliant names.  The code will build and run just fine
26481         without these changes, but it's better to eat our own dog food
26482         and use the standard-conforming names.
26483
26484         * lib/regex.h: Fix a multitude of POSIX name space violations.
26485         These changes have an effect only for programs that define
26486         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
26487         do not change anything for programs compiled in the normal way.
26488         Also, there is no effect on the ABI.
26489
26490         (_REGEX_SOURCE): New macro.
26491         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
26492         defined and _GNU_SOURCE is not; this fixes a name space violation.
26493
26494         Rename the following macros to obey POSIX requirements.
26495         The old names are still visible as macros if _REGEX_SOURCE is defined.
26496         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
26497         RE_BACKSLASH_ESCAPE_IN_LISTS.
26498         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
26499         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
26500         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
26501         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
26502         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
26503         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
26504         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
26505         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
26506         (REG_INTERVALS): renamed from RE_INTERVALS.
26507         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
26508         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
26509         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
26510         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
26511         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
26512         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
26513         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
26514         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
26515         RE_UNMATCHED_RIGHT_PAREN_ORD.
26516         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
26517         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
26518         (REG_DEBUG): renamed from RE_DEBUG.
26519         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
26520         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
26521         unusual, since we can't clash with the POSIX REG_ICASE.
26522         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
26523         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
26524         (REG_NO_SUB): renamed from RE_NO_SUB.
26525         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
26526         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
26527         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
26528         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
26529         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
26530         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
26531         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
26532         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
26533         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
26534         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
26535         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
26536         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
26537         RE_SYNTAX_POSIX_MINIMAL_BASIC.
26538         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
26539         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
26540         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
26541         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
26542         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
26543         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
26544         (REG_FIXED): Renamed from REGS_FIXED.
26545         (REG_NREGS): Renamed from RE_NREGS.
26546
26547         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
26548         of other REG_* macros, since POSIX says the user is allowed to
26549         #undef these macros selectively.
26550
26551         (reg_errcode_t): Update comment stating what other tables need
26552         to be consistent.
26553
26554         Rename the following enum values to obey POSIX requirements.
26555         The old names are still visible as macros.
26556         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
26557         is not defined, since GNU is supposed to be a superset of POSIX as
26558         much as possible, and since we want reg_errcode_t to be a signed
26559         type for implementation consistency.
26560         (_REG_NOERROR): Renamed from REG_NOERROR.
26561         (_REG_NOMATCH): Renamed from REG_NOMATCH.
26562         (_REG_BADPAT): Renamed from REG_BADPAT.
26563         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
26564         (_REG_ECTYPE): Renamed from REG_ECTYPE.
26565         (_REG_EESCAPE): Renamed from REG_EESCAPE.
26566         (_REG_ESUBREG): Renamed from REG_ESUBREG.
26567         (_REG_EBRACK): Renamed from REG_EBRACK.
26568         (_REG_EPAREN): Renamed from REG_EPAREN.
26569         (_REG_EBRACE): Renamed from REG_EBRACE.
26570         (_REG_BADBR): Renamed from REG_BADBR.
26571         (_REG_ERANGE): Renamed from REG_ERANGE.
26572         (_REG_ESPACE): Renamed from REG_ESPACE.
26573         (_REG_BADRPT): Renamed from REG_BADRPT.
26574         (_REG_EEND): Renamed from REG_EEND.
26575         (_REG_ESIZE): Renamed from REG_ESIZE.
26576         (_REG_ERPAREN): Renamed from REG_ERPAREN.
26577         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
26578         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
26579         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
26580         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
26581
26582         (_REG_RE_NAME, _REG_RM_NAME): New macros.
26583         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
26584         changed.  But support the old name if the new one is not defined
26585         and if _REGEX_SOURCE.
26586
26587         Change the following member names in struct re_pattern_buffer.
26588         The old names are still supported if !_REGEX_SOURCE.
26589         The new names are always supported, regardless of _REGEX_SOURCE.
26590         (re_buffer): Renamed from buffer.
26591         (re_allocated): Renamed from allocated.
26592         (re_used): Renamed from used.
26593         (re_syntax): Renamed from syntax.
26594         (re_fastmap): Renamed from fastmap.
26595         (re_translate): Renamed from translate.
26596         (re_can_be_null): Renamed from can_be_null.
26597         (re_regs_allocated): Renamed from regs_allocated.
26598         (re_fastmap_accurate): Renamed from fastmap_accurate.
26599         (re_no_sub): Renamed from no_sub.
26600         (re_not_bol): Renamed from not_bol.
26601         (re_not_eol): Renamed from not_eol.
26602         (re_newline_anchor): Renamed from newline_anchor.
26603
26604         Change the following member names in struct re_registers.
26605         The old names are still supported if !_REGEX_SOURCE.
26606         The new names are always supported, regardless of _REGEX_SOURCE.
26607         (rm_num_regs): Renamed from num_regs.
26608         (rm_start): Renamed from start.
26609         (rm_end): Renamed from end.
26610
26611         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
26612         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
26613         Prepend __ to parameter names.
26614
26615         Undo yesterday's changes.
26616
26617 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26618
26619         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
26620         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
26621         lib/regex.c.
26622
26623 2005-08-24  Jim Meyering  <jim@meyering.net>
26624
26625         Sync from coreutils.
26626         * m4/fcntl-safer.m4: New file.
26627
26628         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
26629         and object files for this module.
26630
26631 2005-08-24  Jim Meyering  <jim@meyering.net>
26632
26633         Sync from coreutils.
26634         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
26635
26636 2005-08-24  Jim Meyering  <jim@meyering.net>
26637
26638         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
26639         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
26640
26641 2005-08-24  Jim Meyering  <jim@meyering.net>
26642
26643         * modules/fcntl-safer: New module.
26644         * modules/fts (Depends-on): Add fcntl-safer.
26645         * MODULES.html.sh (File descriptor based Input/Output):
26646         Add fcntl-safer.
26647
26648 2005-08-24  Bruno Haible  <bruno@clisp.org>
26649
26650         Support for unit test modules.
26651         * modules/README: Mention tests modules.
26652         * modules/TEMPLATE-TESTS: New file.
26653         * gnulib-tool: New options --extract-tests-module, --with-tests and
26654         --tests-base (unused for the moment).
26655         (testsbase, inctests): New variables.
26656         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
26657         (func_verify_module): Exclude TEMPLATE-TESTS.
26658         (func_verify_nontests_module, func_verify_tests_module): New functions.
26659         (func_get_dependencies): Add implicit dependency for tests modules.
26660         (func_get_tests_module): New function.
26661         (func_modules_transitive_closure): When --with-tests was specified,
26662         include the unit tests as well, unless explicitly avoided.
26663         (func_emit_lib_Makefile_am): Ignore the tests modules here.
26664         (func_emit_tests_Makefile_am): New function.
26665         (func_create_testdir): When --with-tests was specified, emit a
26666         tests/ directory.
26667         * MODULES.html.sh (Future developments): Update.
26668
26669 2005-08-24  Bruno Haible  <bruno@clisp.org>
26670
26671         * modules/tls-tests: New file.
26672         * tests/test-tls.c: New file, from GNU gettext.
26673
26674 2005-08-24  Bruno Haible  <bruno@clisp.org>
26675
26676         * modules/lock-tests: New file.
26677         * tests/test-lock.c: New file, from GNU gettext.
26678
26679 2005-08-24  Bruno Haible  <bruno@clisp.org>
26680
26681         * lib/lock.h: Add multiple inclusion guard.
26682         * lib/tls.h: Add multiple inclusion guard.
26683
26684 2005-08-24  Bruno Haible  <bruno@clisp.org>
26685
26686         * gnulib-tool: Add support for the --aux-dir option to
26687         --create-testdir, --create-megatestdir, --test, --megatest.
26688         (func_create_testdir, func_create_megatestdir): Optionally emit a
26689         AC_CONFIG_AUX_DIR directive.
26690         (create-testdir, create-megatestdir, test, megatest): Provide a
26691         default value for $auxdir.
26692
26693 2005-08-24  Bruno Haible  <bruno@clisp.org>
26694
26695         * gnulib-tool (import): Use compound statement instead of subshell
26696         where possible.
26697
26698 2005-08-24  Bruno Haible  <bruno@clisp.org>
26699
26700         * gnulib-tool (import): Change --aux-dir default to "build-aux".
26701
26702 2005-08-24  Bruno Haible  <bruno@clisp.org>
26703
26704         * gnulib-tool (func_version): Update.
26705
26706 2005-08-24  Bruno Haible  <bruno@clisp.org>
26707
26708         * gnulib-tool (func_import, func_create_testdir,
26709         func_create_megatestdir): Quote all autoconf macro arguments.
26710
26711 2005-08-24  Bruno Haible  <bruno@clisp.org>
26712
26713         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
26714         option --force, because --force causes the aclocal.m4 of each
26715         subdirectory to be newer than the corresponding config.h.in.
26716
26717 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26718
26719         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
26720         All contents moved to gl_REGEX.
26721         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
26722         assume that it does.
26723
26724 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26725
26726         * lib/regex.h (REG_NOSYS)
26727         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
26728         Define, since POSIX requires it as of 2001.
26729         (_REG_ENOSYS)
26730         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
26731         New private symbol, used to keep the enum signed in all cases.
26732         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
26733         Youngman in
26734         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
26735
26736         * lib/regex_internal.c (re_string_skip_chars, register_state):
26737         (calc_state_hash):
26738         Remove forward decls; no longer needed now that we use prototypes.
26739         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
26740         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
26741         (clean_state_log_if_needed): Likewise.
26742
26743 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26744
26745         * config/srclist.txt: Add glibc bugs 1231-1233.
26746
26747 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
26748
26749         Fix problems reported by Sam Steingold in
26750         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
26751         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
26752         assumed that reg_errcode_t is a signed type, which is not
26753         necessarily true if _XOPEN_SOURCE is not defined.
26754         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
26755         since some compilers warn about it otherwise.
26756
26757 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
26758
26759         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
26760         (init_word_char, create_initial_state, duplicate_node_closure):
26761         (fetch_token, peek_token_bracket, build_range_exp):
26762         (build_collating_symbol): Remove forward decls; no longer needed
26763         now that we use prototypes.
26764
26765         * lib/regcomp.c:
26766         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
26767         (re_compile_fastmap_iter, regcomp, regerror, regfree):
26768         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
26769         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
26770         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
26771         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
26772         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
26773         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
26774         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
26775         (build_range_exp, build_collating_symbol, parse_bracket_exp):
26776         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
26777         (build_charclass, build_charclass_op, fetch_number, create_tree):
26778         (create_token_tree, mark_opt_subexp, duplicate_tree):
26779         Use prototypes rather than old-style definitions.
26780
26781         * lib/regex_internal.c:
26782         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
26783         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
26784         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
26785         (re_string_reconstruct, re_string_peek_byte_case):
26786         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
26787         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
26788         (re_node_set_init_copy, re_node_set_add_intersect):
26789         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
26790         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
26791         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
26792         (re_acquire_state, re_acquire_state_context, register_state):
26793         (create_ci_newstate, create_cd_newstate, free_state):
26794         Likewise.
26795         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
26796         re_search_2):
26797         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
26798         (re_search_internal, prune_impossible_nodes):
26799         (acquire_init_state_context, check_matching, static):
26800         (check_halt_node_context, check_halt_state_context, proceed_next_node):
26801         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
26802         (update_regs, sift_states_backward, build_sifted_states):
26803         (clean_state_log_if_needed, merge_state_array):
26804         (update_cur_sifted_state, add_epsilon_src_nodes):
26805         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
26806         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
26807         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
26808         (find_recover_state, check_subexp_matching_top, transit_state_mb):
26809         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
26810         (check_arrival, check_arrival_add_next_nodes):
26811         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
26812         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
26813         (check_node_accept_bytes, check_node_accept, extend_buffers):
26814         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
26815         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
26816         (sift_ctx_init):
26817         Likewise.
26818
26819         * lib/regex_internal.h:
26820         (re_string_allocate, re_string_construct, re_string_reconstruct):
26821         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
26822         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
26823         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
26824         (re_string_context_at, re_string_peek_byte_case):
26825         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
26826         is defined, since we now use prototypes always.
26827
26828         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
26829         C89 or better.  All uses removed.
26830
26831 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
26832
26833         * config/srclist.txt: Add glibc bugs 1220-1227.
26834
26835 2005-08-20  Jim Meyering  <jim@meyering.net>
26836
26837         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
26838         of unused local, dfa.
26839
26840 2005-08-20  Bruno Haible  <bruno@clisp.org>
26841
26842         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
26843
26844 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
26845
26846         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
26847         (re_node_set_insert_last, re_dfa_add_node):
26848         Rename local variables to avoid GCC shadowing warnings.
26849
26850 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
26851
26852         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
26853         [defined lint]: Suppress bogus uninitialized-variable warnings.
26854
26855         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
26856         and let the caller return REG_ESPACE if out of space.  This
26857         removes an uninitialied-variable warning with GCC 4.0.1, and also
26858         avoids taking the address of a local variable.  All callers
26859         changed.
26860
26861 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
26862
26863         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
26864         $LIBCSRC/posix/regexec.c.
26865         Add glibc bug 1217 for regcomp.c.
26866
26867 2005-08-19  Jim Meyering  <jim@meyering.net>
26868
26869         * lib/regexec.c (proceed_next_node): Redo local variables to
26870         avoid GCC shadowing warnings.
26871
26872 2005-08-18  Bruno Haible  <bruno@clisp.org>
26873
26874         * lib/strstr.c (strstr): Fix return value in multibyte case.
26875         * lib/strcasestr.c (strcasestr): Likewise.
26876
26877 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
26878
26879         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
26880
26881 2005-08-17  Jim Meyering  <jim@meyering.net>
26882
26883         Make the %s format (seconds since the epoch) work for a negative
26884         number and when used with a zero-padded field width, e.g. %015s.
26885
26886         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
26887         label so that it precedes the code to set `digits'.  Otherwise,
26888         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
26889         print `00-22'.  Now, it prints `-0022', as it should.
26890
26891 2005-08-17  Bruno Haible  <bruno@clisp.org>
26892
26893         * modules/strstr (Files): Add m4/mbrtowc.m4.
26894         (Depends-on): Add mbuiter.
26895
26896 2005-08-17  Bruno Haible  <bruno@clisp.org>
26897
26898         * modules/strcasestr: New file.
26899         * MODULES.html.sh (String handling, based on ANSI C 89): Add
26900         strcasestr.
26901
26902 2005-08-17  Bruno Haible  <bruno@clisp.org>
26903
26904         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
26905
26906 2005-08-17  Bruno Haible  <bruno@clisp.org>
26907
26908         * modules/mbuiter: New file.
26909         * MODULES.html.sh (Extended multibyte and wide character utilities):
26910         Add mbuiter.
26911
26912 2005-08-17  Bruno Haible  <bruno@clisp.org>
26913
26914         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
26915         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
26916
26917 2005-08-17  Bruno Haible  <bruno@clisp.org>
26918
26919         * m4/strcasestr.m4: New file.
26920
26921 2005-08-17  Bruno Haible  <bruno@clisp.org>
26922
26923         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
26924         * lib/strstr.c: Completely rewritten, with multibyte locale support.
26925
26926 2005-08-17  Bruno Haible  <bruno@clisp.org>
26927
26928         * lib/strcasestr.h: New file.
26929         * lib/strcasestr.c: New file.
26930
26931 2005-08-17  Bruno Haible  <bruno@clisp.org>
26932
26933         * lib/strcasecmp.c: Use mbuiter.h.
26934
26935 2005-08-17  Bruno Haible  <bruno@clisp.org>
26936
26937         * lib/mbuiter.h: New file.
26938
26939 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
26940
26941         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
26942         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
26943         and gl_GETOPT are both invoked via different paths (as happens
26944         with GNU tar CVS because it uses both argp and getopt), the former
26945         wins.
26946
26947 2005-08-16  Bruno Haible  <bruno@clisp.org>
26948
26949         * modules/tls: New file.
26950         * MODULES.html.sh (Multithreading): Add tls.
26951
26952 2005-08-16  Bruno Haible  <bruno@clisp.org>
26953
26954         * modules/strnlen1: New file.
26955         * MODULES.html.sh (String handling): Add strnlen1.
26956
26957 2005-08-16  Bruno Haible  <bruno@clisp.org>
26958
26959         * modules/strcase (Files): Add m4/mbrtowc.m4.
26960         (Depends-on): Add strnlen1, mbchar.
26961
26962 2005-08-16  Bruno Haible  <bruno@clisp.org>
26963
26964         * modules/mbiter: New file.
26965         * MODULES.html.sh (Extended multibyte and wide character utilities):
26966         Add mbiter.
26967
26968 2005-08-16  Bruno Haible  <bruno@clisp.org>
26969
26970         * modules/mbfile: New file.
26971         * MODULES.html.sh (Extended multibyte and wide character utilities):
26972         Add mbfile.
26973
26974 2005-08-16  Bruno Haible  <bruno@clisp.org>
26975
26976         * modules/mbchar: New file.
26977         * MODULES.html.sh (Extended multibyte and wide character utilities):
26978         New section.
26979
26980 2005-08-16  Bruno Haible  <bruno@clisp.org>
26981
26982         * m4/tls.m4: New file, from GNU gettext.
26983
26984 2005-08-16  Bruno Haible  <bruno@clisp.org>
26985
26986         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
26987         always.
26988         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
26989
26990 2005-08-16  Bruno Haible  <bruno@clisp.org>
26991
26992         * m4/mbiter.m4: New file.
26993
26994 2005-08-16  Bruno Haible  <bruno@clisp.org>
26995
26996         * m4/mbfile.m4: New file.
26997
26998 2005-08-16  Bruno Haible  <bruno@clisp.org>
26999
27000         * m4/mbchar.m4: New file.
27001
27002 2005-08-16  Bruno Haible  <bruno@clisp.org>
27003
27004         * lib/tls.h: New file, from GNU gettext.
27005         * lib/tls.c: New file, from GNU gettext.
27006
27007 2005-08-16  Bruno Haible  <bruno@clisp.org>
27008
27009         * lib/strnlen1.h: New file.
27010         * lib/strnlen1.c: New file.
27011
27012 2005-08-16  Bruno Haible  <bruno@clisp.org>
27013
27014         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
27015         (mbi_init): Update.
27016         (mbi_avail, mbi_advance): Let the iteration end before the terminating
27017         NUL byte, not after it.
27018
27019 2005-08-16  Bruno Haible  <bruno@clisp.org>
27020
27021         * lib/strcase.h (strcasecmp): Add note in comments.
27022         * lib/strncasecmp.c: Use code from strcasecmp.c.
27023         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
27024         (strcasecmp): Work correctly in multibyte locales.
27025
27026 2005-08-16  Bruno Haible  <bruno@clisp.org>
27027
27028         * lib/mbiter.h: New file.
27029
27030 2005-08-16  Bruno Haible  <bruno@clisp.org>
27031
27032         * lib/mbfile.h: New file.
27033
27034 2005-08-16  Bruno Haible  <bruno@clisp.org>
27035
27036         * lib/mbchar.h: New file.
27037         * lib/mbchar.c: New file.
27038
27039 2005-08-16  Bruno Haible  <bruno@clisp.org>
27040
27041         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
27042         the valid ones. Makes the comparison operations transitive:
27043         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
27044         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
27045
27046 2005-08-15  Simon Josefsson  <jas@extundo.com>
27047
27048         * modules/ssize_t (License): Change to 'unlimited'.
27049
27050         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
27051
27052 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
27053
27054         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
27055         Add comments for each pending glibc patch.
27056
27057 2005-08-15  Bruno Haible  <bruno@clisp.org>
27058
27059         * lib/regex.h (__restrict_arr): Don't define to __restrict if
27060         __cplusplus is defined.
27061
27062 2005-08-14  Jim Meyering  <jim@meyering.net>
27063
27064         Sync from coreutils.
27065
27066         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
27067         Use the hash-table-based cycle-detection code not just when
27068         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
27069         Reported by James Youngman in
27070         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
27071         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
27072         FTS_TIGHT_CYCLE_CHECK.
27073         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
27074         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
27075         once again.
27076         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
27077         * lib/fts.c (fd_safer): Remove decl.
27078         Include fcntl--.h rather than unistd-safer.h
27079         (fts_safe_changedir): Don't call fd_safer; no longer needed
27080         now that we include fcntl--.h.
27081
27082 2005-08-12  Simon Josefsson  <jas@extundo.com>
27083
27084         * modules/getndelim2: Use ssize_t module.
27085         * modules/getnline: Likewise.
27086         * modules/safe-read: Likewise.
27087         * modules/xreadlink: Likewise.
27088
27089         * modules/ssize_t: New file.
27090
27091 2005-08-12  Simon Josefsson  <jas@extundo.com>
27092
27093         * m4/readline.m4: Look for termcap, curses or ncurses if required.
27094
27095 2005-08-12  Simon Josefsson  <jas@extundo.com>
27096
27097         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27098         ssize_t.
27099
27100 2005-08-12  Simon Josefsson  <jas@extundo.com>
27101
27102         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
27103         readline, getdelim and check_version.
27104         (Support for systems lacking ISO C 99: Sizes of integer types):
27105         Add size_max.
27106
27107 2005-08-12  Bruno Haible  <bruno@clisp.org>
27108
27109         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
27110
27111 2005-08-11  Simon Josefsson  <jas@extundo.com>
27112
27113         * modules/readline: New file.
27114
27115         * modules/strnlen (Files): Add strnlen.h.
27116
27117 2005-08-11  Simon Josefsson  <jas@extundo.com>
27118
27119         * m4/readline.m4: New file.
27120
27121 2005-08-11  Simon Josefsson  <jas@extundo.com>
27122
27123         * lib/readline.h, readline.c: New file.
27124
27125 2005-08-11  Simon Josefsson  <jas@extundo.com>
27126
27127         * doc/gnulib.texi (Initial import, Finishing touches): Mention
27128         gl_AVOID.
27129
27130 2005-08-11  Bruno Haible  <bruno@clisp.org>
27131
27132         * lib/strnlen.h (strnlen): Change parameter name to match comment.
27133
27134 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
27135
27136         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
27137
27138 2005-08-10  Simon Josefsson  <jas@extundo.com>
27139
27140         * tests/test-iconvme.c: New file.
27141
27142 2005-08-10  Simon Josefsson  <jas@extundo.com>
27143
27144         * m4/strnlen.m4: New file.
27145
27146         * m4/strndup.m4: Don't check for strnlen declaration, done in
27147         strnlen.m4.
27148
27149 2005-08-10  Simon Josefsson  <jas@extundo.com>
27150
27151         * lib/strndup.c: Use strnlen.h.
27152
27153         * lib/strnlen.h: New file.
27154
27155 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
27156
27157         * README: Typos.
27158
27159 2005-08-02  Simon Josefsson  <jas@extundo.com>
27160
27161         * modules/readline: New file.
27162
27163 2005-08-02  Simon Josefsson  <jas@extundo.com>
27164
27165         * modules/getdelim: New file.
27166
27167         * modules/getline: Rewrite, don't use getndelim2.
27168
27169 2005-08-02  Simon Josefsson  <jas@extundo.com>
27170
27171         * m4/getline.m4: Separate out getdelim stuff into separate module.
27172
27173         * m4/getdelim.m4: New file.
27174
27175 2005-08-02  Simon Josefsson  <jas@extundo.com>
27176
27177         * lib/getline.h, getline.c: Rewrite.
27178
27179         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
27180
27181 2005-07-31  Bruno Haible  <bruno@clisp.org>
27182
27183         * lib/lock.h (gl_lock_initializer): New macro.
27184         (gl_lock_define_initialized): Use it.
27185         (gl_rwlock_initializer): New macro.
27186         (gl_rwlock_define_initialized): Use it.
27187         (gl_recursive_lock_initializer): New macro.
27188         (gl_recursive_lock_define_initialized): Use it.
27189
27190 2005-07-30  Karl Berry  <karl@gnu.org>
27191
27192         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
27193         Report from Ben Pfaff, regarding getopt.
27194
27195 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
27196
27197         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
27198         normal way.
27199         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
27200         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
27201         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
27202         (gl_GETOPT): Use the new macros.  Most of the implementation
27203         is moved to the new macros.  This is for programs like Emacs
27204         that don't want all the functionality of gl_GETOPT.
27205
27206 2005-07-26  Bruno Haible  <bruno@clisp.org>
27207
27208         * m4/lock.m4: Update from GNU gettext.
27209
27210 2005-07-26  Bruno Haible  <bruno@clisp.org>
27211
27212         * lib/lock.h: Update from GNU gettext.
27213         * lib/lock.c: Update from GNU gettext.
27214
27215 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
27216
27217         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
27218         obsolescent AC_TRY_RUN.  Include the default includes files, for
27219         'exit'.
27220
27221 2005-07-24  Bruno Haible  <bruno@clisp.org>
27222
27223         * modules/visibility: New file.
27224         * MODULES.html.sh (Misc): Add visibility.
27225
27226 2005-07-24  Bruno Haible  <bruno@clisp.org>
27227
27228         * m4/visibility.m4: New file.
27229
27230 2005-07-24  Bruno Haible  <bruno@clisp.org>
27231
27232         * doc/visibility.texi: New file.
27233
27234 2005-07-22  Bruno Haible  <bruno@clisp.org>
27235
27236         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
27237         $(ALLOCA_H), redundant through BUILT_SOURCES.
27238         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
27239         redundant through BUILT_SOURCES.
27240         * modules/byteswap (Makefile.am): Remove explicit dependency on
27241         $(BYTESWAP_H), redundant through BUILT_SOURCES.
27242         * modules/fnmatch (Makefile.am): Remove explicit dependency on
27243         $(FNMATCH_H), redundant through BUILT_SOURCES.
27244         * modules/getopt (Makefile.am): Remove explicit dependency on
27245         $(GETOPT_H), redundant through BUILT_SOURCES.
27246         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
27247         redundant through BUILT_SOURCES.
27248         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
27249         redundant through BUILT_SOURCES.
27250         * modules/stdbool (Makefile.am): Remove explicit dependency on
27251         $(STDBOOL_H), redundant through BUILT_SOURCES.
27252         * modules/stdint (Makefile.am): Remove explicit dependency on
27253         $(STDINT_H), redundant through BUILT_SOURCES.
27254         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
27255         Remove explicit dependency on $(SYSEXITS_H).
27256         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
27257
27258 2005-07-18  Simon Josefsson  <jas@extundo.com>
27259
27260         * lib/check-version.c (check_version): Accept identical versions too.
27261
27262 2005-07-18  Bruno Haible  <bruno@clisp.org>
27263
27264         * modules/lock: New file.
27265         * MODULES.html.sh (Multithreading): New section.
27266
27267 2005-07-18  Bruno Haible  <bruno@clisp.org>
27268
27269         * m4/lock.m4: New file, from GNU gettext.
27270
27271 2005-07-18  Bruno Haible  <bruno@clisp.org>
27272
27273         * lib/lock.h: New file, from GNU gettext.
27274         * lib/lock.c: New file, from GNU gettext.
27275
27276 2005-07-18  Bruno Haible  <bruno@clisp.org>
27277
27278         * lib/lock.h (gl_once_t): New type.
27279         (gl_once_define, gl_once): New macros.
27280         * lib/lock.c (fresh_once): New variable.
27281         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
27282         functions.
27283
27284 2005-07-16  Simon Josefsson  <jas@extundo.com>
27285
27286         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
27287         workaround, suggested by Bruno.
27288
27289 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
27290
27291         * modules/xalloc (Depends-on): Add xalloc-die.
27292         * modules/xvasprintf (Depends-on): Add xalloc-die.
27293
27294 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
27295
27296         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
27297         with a minor change.
27298
27299 2005-07-15  Bruno Haible  <bruno@clisp.org>
27300
27301         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
27302         When using lib/poll.c, define poll as rpl_poll.
27303
27304 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
27305
27306         * modules/argp (Depends-on): Remove unlocked-io.
27307
27308 2005-07-14  Derek Price  <derek@ximbiot.com>
27309
27310         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
27311         for glob symlink bug.
27312
27313 2005-07-14  Bruno Haible  <bruno@clisp.org>
27314
27315         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
27316         Instead, test for *_unlocked function declarations directly.
27317
27318 2005-07-11  Simon Josefsson  <jas@extundo.com>
27319
27320         * modules/size_max: New file.
27321
27322         * modules/xsize: Depend on size_max module for size_max.m4.
27323
27324 2005-07-11  Simon Josefsson  <jas@extundo.com>
27325
27326         * lib/size_max.h: New file.
27327
27328 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
27329
27330         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
27331         copyright symbol and the year.
27332         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
27333         (version_etc_va): Use parameterized copyright notice.
27334         Reword to conform to the current GNU coding standards.
27335
27336 2005-07-11  Karl Berry  <karl@gnu.org>
27337
27338         * doc/gnulib.texi (Quoting): new node.
27339         (Initial import): more info, from Patrice.
27340
27341 2005-07-11  Bruno Haible  <bruno@clisp.org>
27342
27343         * gnulib-tool (func_usage): Document option --avoid.
27344         (Command line options): Handle --avoid.
27345         (func_acceptable): New function.
27346         (func_modules_transitive_closure): Use it.
27347
27348 2005-07-11  Bruno Haible  <bruno@clisp.org>
27349
27350         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
27351         Reported by Jim Meyering.
27352
27353 2005-07-10  Bruno Haible  <bruno@clisp.org>
27354
27355         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
27356         Needed when size_t is smaller than 'unsigned int'.
27357         Reported by Paul Eggert.
27358
27359 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
27360
27361         * modules/argp (Depends-on): Add unlocked-io
27362
27363 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
27364
27365         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
27366         block of defines.
27367
27368 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27369
27370         * config/srclist.txt: Comment out regcomp.c, since we have a porting
27371         fix now.
27372
27373 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
27374         and Paul Eggert  <eggert@cs.ucla.edu>
27375
27376         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
27377         in wint_t, not wchar_t.  Remove now-unnecessary cast.
27378
27379 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
27380
27381         * modules/regex (Files): Add lib/regex_internal.c,
27382         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
27383         (Depends-on): Add extensions.
27384         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
27385
27386 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
27387
27388         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
27389         pathconf.
27390         * m4/same.m4 (gl_SAME): Likewise.
27391         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
27392
27393         * m4/regex.m4: Adjust to new libc regex implementation.
27394         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
27395         all the .c and .h parts of (the new) regex.
27396         Quote the m4 stuff better.
27397         Check for RE_ICASE bug of old gnulib.
27398         Check for REG_STARTEND of recent libc.
27399         Rename local variables from jm_* to gl_*.
27400         Quote operand of "test -f".
27401         Say "recent enough" version of libc, not "version 2".
27402         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
27403         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
27404         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
27405         Remove check for btowc, isascii.
27406         Require AM_LANGINFO_CODESET.
27407
27408 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
27409
27410         * lib/regex.c, regex.h: Sync from libc.
27411         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
27412         * lib/regexec.c:
27413         New files, synced from libc, except that regex_internal.h
27414         currently has a small porting fix.
27415
27416 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
27417
27418         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
27419         regex_internal.c, regexec.c.
27420         Add regex_internal.h too, but as a comment, since the libc version
27421         is currently broken in gnulib mode.
27422
27423 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
27424
27425         Support programs like Emacs that use gnulib but not gettext.
27426         * MODULES.html.sh (Internationalization functions): Add gettext-h.
27427         * modules/gettext-h: New file.
27428         * modules/gettext (Files): Remove lib/gettext.h.
27429         (Depends-on): Add gettext-h.
27430         (Makefile.am): Remove lib_SOURCES.
27431         * modules/argmatch, modules/c-stack, modules/closeout:
27432         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
27433         * modules/execute, modules/file-type, modules/getaddrinfo:
27434         * modules/getopt, modules/human, modules/javacomp:
27435         * modules/javaexec, modules/mkdir-p, modules/obstack:
27436         * modules/openat, modules/pagealign_alloc, modules/pipe:
27437         * modules/quotearg, modules/regex, modules/rpmatch:
27438         * modules/unicodeio, modules/userspec, modules/version-etc:
27439         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
27440         * modules/xsetenv:
27441         Depend on gettext-h, not gettext.
27442
27443 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
27444
27445         * gnulib-tool (func_import): Add support for 'public domain' license.
27446         * modules/alloca, modules/atexit, modules/memmove:
27447         Now public domain, not GPL.
27448         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
27449         * modules/realloc, modules/strerror, modules/strtod:
27450         Now LGPL, not GPL.
27451
27452 2005-07-05  Bruno Haible  <bruno@clisp.org>
27453
27454         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
27455         autoconf CVS. Needed for mingw.
27456
27457 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
27458
27459         Remove the dependency of the strftime module on the tzset module.
27460         * modules/strftime (Depends-on): Remove dependency on tzset.
27461
27462 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
27463
27464         Remove the dependency of the strftime module on the tzset module.
27465         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
27466         gl_FUNC_TZSET_CLOBBER.
27467
27468 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
27469
27470         Remove the dependency of the strftime module on the tzset module.
27471         * lib/strftime.c (my_strftime)
27472         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
27473         Copy the input structure, to work around some of the bug with
27474         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
27475         Solaris releases, you should also use the tzset module, but we won't
27476         require it as a dependency any more since we don't want LGPLed code
27477         to depend on GPLed code.
27478
27479 2005-07-02  Jim Meyering  <jim@meyering.net>
27480
27481         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
27482         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
27483         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
27484         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
27485
27486 2005-07-02  Jim Meyering  <jim@meyering.net>
27487
27488         * lib/backupfile.c (backup_args): Change a `0' to NULL.
27489
27490 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
27491
27492         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
27493         declares only 'struct timespec;' (!).
27494
27495 2005-07-01  Jim Meyering  <jim@meyering.net>
27496
27497         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
27498         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
27499         * lib/save-cwd.c, tempname.c:
27500         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
27501         and don't include <sys/file.h>).
27502
27503 2005-06-29  Jim Meyering  <jim@meyering.net>
27504
27505         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
27506         type name.  Use the variable name instead.
27507         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
27508         Likewise.
27509
27510 2005-06-28  Simon Josefsson  <jas@extundo.com>
27511
27512         * modules/check-version (Files): Add check-version.m4.
27513
27514 2005-06-28  Simon Josefsson  <jas@extundo.com>
27515
27516         * m4/check-version.m4: New file, suggested by Jim Meyering
27517         <jim@meyering.net>.
27518
27519 2005-06-28  Simon Josefsson  <jas@extundo.com>
27520
27521         * lib/check-version.h, lib/check-version.c: New files.
27522
27523 2005-06-28  Simon Josefsson  <jas@extundo.com>
27524
27525         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
27526         collision with global variable.  Better indentation.  Don't
27527         increment buffer pointer beyond buffer end.  Based on comments
27528         from Paul Eggert <eggert@cs.ucla.edu>.
27529
27530         * lib/base64.h: Indent.
27531
27532 2005-06-28  Simon Josefsson  <jas@extundo.com>
27533
27534         * doc/gnulib.texi (Library version handling): New section.
27535
27536 2005-06-28  Jim Meyering  <jim@meyering.net>
27537
27538         * check-module (find_included_lib_files): Hard-code another
27539         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
27540         but modules/fts-lgpl (correctly) does not list those files.
27541
27542         * modules/canonicalize (Files): Add lib/pathmax.h.
27543
27544 2005-06-25  Simon Josefsson  <jas@extundo.com>
27545
27546         * modules/check-version: New file.
27547
27548 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
27549
27550         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
27551         initializer of struct addrinfo, as an indication that we don't
27552         care how many members the structure has.
27553
27554 2005-06-24  Derek Price  <derek@ximbiot.com>
27555         and Bruno Haible  <bruno@clisp.org>
27556
27557         Remove stat module & update lstat.
27558         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
27559         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
27560         * m4/stat.m4: Remove this file.
27561
27562 2005-06-24  Derek Price  <derek@ximbiot.com>
27563         and Bruno Haible  <bruno@clisp.org>
27564
27565         Remove stat module & update lstat.
27566         * lib/stat.c: Remove this file...
27567         (slash_aware_lstat): ...moving this content and its support...
27568         * lib/lstat.c (rpl_lstat): ...into here.
27569         * lib/lstat.h: New file.
27570
27571 2005-06-24  Derek Price  <derek@ximbiot.com>
27572         and Bruno Haible  <bruno@clisp.org>
27573
27574         Remove stat module & update lstat.
27575         * config/srclist.txt (libc sources): Remove stat.
27576
27577 2005-06-24  Derek Price  <derek@ximbiot.com>
27578         and Bruno Haible  <bruno@clisp.org>
27579
27580         Remove stat module & update lstat.
27581         * MODULES.html.sh (stat): Remove.
27582         * MODULES.html: Regenerated.
27583         * modules/lstat (Description): Correct function name.
27584         (Files): Add "lstat.h".
27585         (Depends-on): Remove stat, add xalloc, stat-macros.
27586         * modules/stat: Remove this file.
27587         (Include): Add "lstat.h", remove <sys/stat.h>.
27588
27589 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
27590
27591         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
27592         (ranged_convert): Don't save conversion in a temporary struct.
27593         This causes a warning with GCC 4.0.0, and anyway in the typical
27594         case it's not worth the extra 100 bytes or so of code.
27595         (ranged_convert, __mktime_internal): When calling a function via a
27596         pointer P, use P () rather than (*P) (), as we now assume C89 or
27597         better.
27598
27599 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
27600
27601         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
27602         "who -r" failed to give output.  Problem reported by Tim Waugh.
27603
27604         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
27605         (xcalloc): Use it to avoid needless tests.
27606         Problem reported by Jim Meyering.
27607
27608 2005-06-20  Derek Price  <derek@ximbiot.com>
27609
27610         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
27611         unnecessary for Autoconfs > 2.59c.
27612
27613 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27614
27615         * lib/argp.h (__option_is_short): Check upper limit of
27616         __key. Isprint() requires its argument to have the value
27617         of an unsigned char or EOF.
27618
27619 2005-06-16  Jim Meyering  <jim@meyering.net>
27620
27621         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
27622         when either N or S is zero.
27623
27624 2005-06-16  Derek Price  <derek@ximbiot.com>
27625
27626         * m4/bison.m4: Declare YACC & YFLAGS precious.
27627
27628 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
27629
27630         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
27631         multibyte string or pattern, fall back on unibyte matching.
27632         Problem reported by James Youngman.
27633
27634 2005-06-08  Bruno Haible  <bruno@clisp.org>
27635
27636         * modules/csharpcomp: New file.
27637         * MODULES.html.sh (C#): Add csharpcomp.
27638
27639 2005-06-08  Bruno Haible  <bruno@clisp.org>
27640
27641         * m4/csharpcomp.m4: New file, from GNU gettext.
27642
27643 2005-06-08  Bruno Haible  <bruno@clisp.org>
27644
27645         * lib/csharpcomp.h: New file, from GNU gettext.
27646         * lib/csharpcomp.c: New file, from GNU gettext.
27647         * lib/csharpcomp.sh.in: New file, from GNU gettext.
27648
27649 2005-06-08  Bruno Haible  <bruno@clisp.org>
27650
27651         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
27652         warning on mingw.
27653
27654 2005-06-07  Derek Price  <derek@ximbiot.com>
27655
27656         Sync from CVS.
27657         * lib/glob_.h: Indent nested #ifdef.
27658
27659 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
27660
27661         Sync from coreutils.
27662         Use "file name" when talking about file names, instead of "filename"
27663         or "path", as per the GNU coding standards.
27664         * lib/mkdir-p.c: Renamed from makepath.c.
27665         (make_dir_parents): Renamed from make_path.  All callers changed.
27666         * lib/mkdir-p.h: Likewise.  All includers changed.
27667         * lib/filenamecat.c: Renamed from path-concat.c.
27668         (file_name_concat): Renamed from path_concat.  All callers changed.
27669         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
27670         * lib/filenamecat.h: Likewise.  All includers changed.
27671         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
27672         in comments or local variable names.
27673         * lib/basename.c: Likewise.
27674         * lib/canonicalize.c, canonicalize.h: Likewise.
27675         * lib/dirname.c, dirname.h: Likewise.
27676         * lib/euidaccess.c: Likewise.
27677         * lib/exclude.c: Likewise
27678         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
27679         * lib/fsusage.c, fsuage.h: Likewise.
27680         * lib/fts.c, fts_.h: Likewise.
27681         * lib/getcwd.c: Likewise.
27682         * lib/getloadavg.c: Likewise.
27683         * lib/mkstemp.c: Likewise.
27684         * lib/mountlist.c, mountlist.h: Likewise.
27685         * lib/openat.c, openat.h: Likewise.
27686         * lib/readlink-stub.c: Likewise.
27687         * lib/readutmp.c, readutmp.h: Likewise.
27688         * lib/rename.c: Likewise.
27689         * lib/rmdir.c: Likewise.
27690         * lib/same.c: Likewise.
27691         * lib/savedir.c: Likewise.
27692         * lib/stripslash.c: Likewise.
27693         * lib/tempname.c: Likewise.
27694         * lib/xreadlink.c: Likewise.
27695         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
27696         All uses changed.
27697         * lib/exclude.h: Likewise.
27698
27699         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
27700         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
27701         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
27702         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
27703         * lib/pathmax.h: Include <limits.h> unconditionally, since other
27704         files have been getting away with it for years (MORE/BSD 4.3
27705         is extinct now).
27706         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
27707         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
27708
27709         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
27710         Define to 256, not 255, as per modern POSIX.
27711
27712 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
27713
27714         Sync from coreutils.
27715         Use "file name" when talking about file names, instead of "filename"
27716         or "path", as per the GNU coding standards.
27717         * MODULES.html.sh: mkdir-p renamed from makepath.
27718         filenamecat renamed from path-concat.
27719         * modules/filenamecat: Renamed from modules/path-concat.
27720         (Files): filenamecat.h and filenamecat.c renamed from
27721         path-concat.h and path-concat.c.
27722         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
27723         (Include): filenamecat.h, not path-concat.h.
27724         * modules/mkdir-p: Renamed from modules/makepath.
27725         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
27726         makepath.c.
27727         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
27728         (Include): mkdir-p.h, not makepath.h.
27729
27730 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
27731
27732         Sync from coreutils.
27733         * m4/mkdir-p.m4: Renamed from makepath.m4.
27734         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
27735         Rename files from makepath.c to mkdir-p.c, and from
27736         makepath.h to mkdir-p.h.
27737         * m4/filenamecat.m4: Renamed from path-concat.m4.
27738         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
27739         Rename files from path-concat.c to filenamecat.c,
27740         and from path-concat.h to filenamecat.h.
27741         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
27742         "file name" in local variables or comments.
27743         * m4/rename.m4: Likewise.
27744
27745 2005-06-01  Bruno Haible  <bruno@clisp.org>
27746
27747         * modules/csharpexec: New file.
27748         * MODULES.html.sh (C#): New section.
27749
27750 2005-06-01  Bruno Haible  <bruno@clisp.org>
27751
27752         * m4/csharp.m4: New file, from GNU gettext.
27753         * m4/csharpexec.m4: New file, from GNU gettext.
27754
27755 2005-06-01  Bruno Haible  <bruno@clisp.org>
27756
27757         * lib/csharpexec.h: New file, from GNU gettext.
27758         * lib/csharpexec.c: New file, from GNU gettext.
27759         * lib/csharpexec.sh.in: New file, from GNU gettext.
27760
27761 2005-05-31  Derek Price  <derek@ximbiot.com>
27762             Paul Eggert  <eggert@cs.ucla.edu>
27763
27764         Sync from cvs.
27765         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
27766
27767 2005-05-31  Derek Price  <derek@ximbiot.com>
27768             Paul Eggert  <eggert@cs.ucla.edu>
27769
27770         Sync from cvs.
27771         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
27772
27773 2005-05-29  Derek Price  <derek@ximbiot.com>
27774
27775         * config/srclist.txt (glob_.h, glob.c): Add these files.
27776
27777 2005-05-29  Derek Price  <derek@ximbiot.com>
27778
27779         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
27780         * modules/glob: New file.
27781         * modules/getlogin_r: Add link to POSIX spec in description.
27782
27783 2005-05-29  Derek Price  <derek@ximbiot.com>
27784             Paul Eggert  <eggert@cs.ucla.edu>
27785
27786         * m4/glob.m4: New file.
27787
27788 2005-05-29  Derek Price  <derek@ximbiot.com>
27789             Paul Eggert  <eggert@cs.ucla.edu>
27790
27791         * lib/glob_.h, lib/glob.c: New files.
27792
27793 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
27794
27795         * modules/fts (Files): Remove m4/inttypes-pri.m4.
27796         * modules/fts-lgpl (Depends-on): Remove gettext.
27797
27798 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
27799
27800         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
27801         and don't require gt_INTTYPES_PRI.
27802
27803 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
27804
27805         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
27806
27807         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
27808         the configuration hassle isn't worth it.
27809         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
27810         (LONGEST_MODIFIER, PRIuMAX): Remove.
27811
27812 2005-05-27  Bruno Haible  <bruno@clisp.org>
27813
27814         * lib/getlogin_r.h: Remove second include of <stddef.h>.
27815
27816 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
27817
27818         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
27819         _POSIX_PTHREAD_SEMANTICS for Solaris.
27820
27821 2005-05-25  Derek Price  <derek@ximbiot.com>
27822
27823         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
27824
27825 2005-05-25  Derek Price  <derek@ximbiot.com>
27826             Paul Eggert  <eggert@cs.ucla.edu>
27827
27828         * modules/getlogin_r, m4/getlogin_r.m4: New files.
27829         * lib/getlogin_r.c, getlogin_r.h: New files.
27830
27831 2005-05-25  Bruno Haible  <bruno@clisp.org>
27832             Derek Price  <derek@ximbiot.com>
27833
27834         * lib/getlogin_r.h: Simplify API documentation.
27835
27836 2005-05-23  Derek Price  <derek@ximbiot.com>
27837
27838         * modules/minmax (Files): Add m4/minmax.m4.
27839         (configure.ac): Add gl_MINMAX.
27840
27841 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
27842
27843         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
27844         so that unistd-safer.h (GPL'ed code) need not be included.
27845
27846 2005-05-22  Bruno Haible  <bruno@clisp.org>
27847
27848         * m4/minmax.m4: New file.
27849         Based on a patch by Derek Price <derek@ximbiot.com>.
27850
27851 2005-05-22  Bruno Haible  <bruno@clisp.org>
27852
27853         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
27854         (INT64_MIN): Fix definition.
27855         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
27856
27857         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
27858         NEED_SIGNED_INT_TYPES.
27859
27860         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
27861         HAVE_SYSTEM_INTTYPES.
27862
27863 2005-05-22  Bruno Haible  <bruno@clisp.org>
27864
27865         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
27866         Also include <sys/param.h> if it defines MIN, MAX.
27867         Based on a patch by Derek Price <derek@ximbiot.com>.
27868
27869 2005-05-21  Jim Meyering  <jim@meyering.net>
27870
27871         * modules/fts (Files): Add m4/inttypes-pri.m4.
27872         (Depends-on): Add lstat and remove gettext.  Alphabetize.
27873
27874 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
27875
27876         New fts module.
27877         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
27878         (setup_dir, free_dir): New functions.
27879         (enter_dir, leave_dir): Define trivial
27880         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
27881         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
27882         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
27883         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
27884         Move to fts-cycle.c.
27885         (fts_open): Use setup_dir.
27886         (fts_close): Use free_dir.
27887         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
27888         This adds a label and some gotos, but the alternatives were messier.
27889         Check for memory allocation failure when entering a dir.
27890         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
27891         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
27892         (FTS): New member fts_cycle, that is a union that contains the
27893         old active_dir_ht and cycle_state.  All uses changed to mention
27894         fts_cycle.ht and fts_cycle.state.
27895         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
27896         fts.c, with the following changes:
27897         (setup_dir, free_dir): New functions.
27898         (enter_dir): Now returns bool.  Return true if successful, false
27899         if memory exhausted.  All callers changed.
27900         Do not bother partly cleaning up on
27901         memory allocation failure; that is free_dir's job.
27902         However, free ad if hash_insert fails, to avoid memory leak.
27903         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
27904         fts->fts_options to see which union member to use.
27905
27906 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
27907
27908         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
27909         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
27910
27911 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
27912
27913         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
27914
27915 2005-05-20  Jim Meyering  <jim@meyering.net>
27916
27917         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
27918         Now a macro, to pacify GCC.
27919
27920 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
27921
27922         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
27923         of -1.
27924
27925 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
27926
27927         * lib/chown.c (rpl_chown): Return -1 on failure.
27928
27929 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
27930
27931         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
27932         Don't check for stddef.h.
27933         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
27934         don't use its results.
27935         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
27936         since we include them unconditionally.  Don't require
27937         AM_STDBOOL_H, since stdbool is a prerequisite.
27938         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
27939         since we assume C89 or better.
27940         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
27941         as we don't use their results.
27942         Don't check for fchdir, memmove, memset, strrchr, as we use
27943         them unconditionally.
27944         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
27945         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
27946
27947 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
27948
27949         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
27950         Include <stddef.h> unconditionally, since we assume C89 now.
27951         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
27952         * lib/fts.c: Include fts_.h first, to check interface.
27953         Do not include intprops.h; no longer needed.
27954         Include cycle-check.h and hash.h, since fts_.h no longer does.
27955         Remove unnecessary casts of closedir to void.
27956         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
27957         decide whether to decrement nlinks.
27958         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
27959         (FTS): Use struct hash_table * instead of Hash_table, so that
27960         we no longer need to include hash.h here.
27961
27962 2005-05-18  Jim Meyering  <jim@meyering.net>
27963
27964         * modules/dirfd (License): Change to LGPL.  Most of the code
27965         is already in the public domain.
27966
27967 2005-05-18  Jim Meyering  <jim@meyering.net>
27968
27969         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
27970         Reported by Yoann Vandoorselaere.
27971
27972 2005-05-17  Jim Meyering  <jim@meyering.net>
27973
27974         * m4/fts.m4: New file, from coreutils.
27975
27976 2005-05-17  Jim Meyering  <jim@meyering.net>
27977
27978         * lib/fts.c, lib/fts_.h: New files, from coreutils.
27979
27980 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
27981
27982         Sync from coreutils.
27983         * m4/unlinkdir.m4: New file.
27984
27985 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
27986
27987         Sync from coreutils.
27988         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
27989         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
27990         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
27991         White space changes only.
27992         * lib/makepath.c (make_path): Port to hosts where leading "//" is
27993         special.
27994         * lib/yesno.c: Include getline.h, not ctype.h.
27995         (yesno): Don't remove leading white space; POSIX doesn't allow it.
27996         Use getline to remove arbitrary restriction on response length.
27997
27998 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
27999
28000         * config/srclist-update: Spell out "Street" in FSF postal
28001         mail address; this is the style the FSF seems to prefer.
28002
28003         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
28004         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
28005         this updates FSF postal mail address.
28006
28007         Sync from coreutils.
28008         * modules/unlinkdir: New file.
28009         * modules/yesno (Depends-on): Add getline.
28010         * MODULES.html.sh (File system functions): Add unlinkdir.
28011
28012 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
28013
28014         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
28015         lib/strsep.h:
28016         Change the initial comment to refer to GPL, not LGPL.
28017         gnulib-tool will change it to LGPL as needed.
28018
28019         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
28020         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
28021         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
28022         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
28023         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
28024         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
28025         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
28026         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
28027         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
28028         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
28029         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
28030         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
28031         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
28032         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
28033         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
28034         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
28035         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
28036         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
28037         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
28038         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
28039         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
28040         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
28041         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
28042         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
28043         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
28044         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
28045         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
28046         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
28047         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
28048         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
28049         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
28050         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
28051         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
28052         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
28053         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
28054         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
28055         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
28056         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
28057         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
28058         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
28059         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
28060         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
28061         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
28062         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
28063         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
28064         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
28065         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
28066         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
28067         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
28068         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
28069         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
28070         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
28071         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
28072         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
28073         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
28074         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
28075         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
28076         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
28077         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
28078         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
28079         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
28080         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
28081         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
28082         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
28083         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
28084         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
28085         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
28086         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
28087         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
28088         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
28089         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
28090         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
28091         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
28092         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
28093         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
28094         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
28095         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
28096         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
28097         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
28098         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
28099         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
28100         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
28101         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
28102         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
28103         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
28104         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
28105         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
28106         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
28107         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
28108         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
28109         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
28110         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
28111         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
28112         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
28113         lib/yesno.c, lib/yesno.h:
28114         Update FSF postal mail address.
28115
28116 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
28117
28118         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
28119         tests/test-memmem.c, tests/test-stpncpy.c:
28120         Update FSF postal mail address.
28121
28122 2005-05-13  Bruno Haible  <bruno@clisp.org>
28123
28124         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
28125         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
28126         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
28127         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
28128         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
28129         Add support for 64-bit integers in the MSVC compiler.
28130
28131 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28132
28133         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
28134
28135 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
28136
28137         * gnulib-tool (func_import): Sort and uniquify recommended includes.
28138
28139 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
28140
28141         * doc/getdate.texi (General date syntax): Don't say that date
28142         date --iso-8601=ns generates acceptable dates; it doesn't yet.
28143         Problem reported by Nic Ferrier.
28144
28145 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28146
28147         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
28148         specified in ai_socktype. Fix invalid ai_protocol
28149         check. ai_protocol is usually set to 0 or depending on
28150         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
28151         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
28152         ai_socktype / ai_protocol in the returned addrinfo structure.
28153
28154 2005-05-10  Simon Josefsson  <jas@extundo.com>
28155
28156         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
28157         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28158
28159 2005-05-10  Karl Berry  <karl@gnu.org>
28160
28161         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
28162         (from http://www.gnu.org/licenses).
28163         * doc/COPYING.LIB: also rename to COPYING.LESSER.
28164         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
28165         fdl.texi suffices.
28166
28167 2005-05-10  Karl Berry  <karl@gnu.org>
28168
28169         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
28170         (COPYING.DOC): remove.
28171
28172         * config/srclist-update: new FSF address.
28173
28174 2005-05-10  Derek Price  <derek@ximbiot.com>
28175
28176         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
28177         possible.
28178
28179 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28180             Bruno Haible  <bruno@clisp.org>
28181
28182         * modules/inet_ntop: New file.
28183         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28184         inet_ntop.
28185
28186 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28187             Bruno Haible  <bruno@clisp.org>
28188
28189         * m4/inet_ntop.m4: New file.
28190
28191 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28192             Bruno Haible  <bruno@clisp.org>
28193
28194         * lib/inet_ntop.h: New file.
28195         * lib/inet_ntop.c: New file, from glibc with modifications.
28196
28197 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
28198
28199         * modules/time_r (License): Change to LGPL.
28200         * modules/extensions (License): Change to LGPL.  Actually,
28201         the license is more permissive than that, but currently gnulib-tool
28202         doesn't know how to handle more-permissive licenses.
28203
28204         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
28205         Problem reported by Dave Love.
28206
28207 2005-05-08  Jim Meyering  <jim@meyering.net>
28208
28209         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
28210         blank.
28211
28212 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
28213
28214         * modules/argmatch (Depends-on): Add stdbool.
28215         * modules/backupfile (Depends-on): Likewise.
28216         * modules/chdir-long (Depends-on): Likewise.
28217         * modules/closeout (Depends-on): Likewise.
28218         * modules/cycle-check (Depends-on): Likewise.
28219         * modules/dirname (Depends-on): Likewise.
28220         * modules/fnmatch (Depends-on): Likewise.
28221         * modules/fsusage (Depends-on): Likewise.
28222         * modules/fwriteerror (Depends-on): Likewise.
28223         * modules/getcwd (Depends-on): Likewise.
28224         * modules/getloadavg (Depends-on): Likewise.
28225         * modules/hard-locale (Depends-on): Likewise.
28226         * modules/makepath (Depends-on): Likewise.
28227         * modules/mountlist (Depends-on): Likewise.
28228         * modules/nanosleep (Depends-on): Likewise.
28229         * modules/posixtm (Depends-on): Likewise.
28230         * modules/quotearg (Depends-on): Likewise.
28231         * modules/readtokens (Depends-on): Likewise.
28232         * modules/readtokens0 (Depends-on): Likewise.
28233         * modules/readutmp (Depends-on): Likewise.
28234         * modules/save-cwd (Depends-on): Likewise.
28235         * modules/strftime (Depends-on): Likewise.
28236         * modules/userspec (Depends-on): Likewise.
28237         * modules/utimecmp (Depends-on): Likewise.
28238         * modules/xgetcwd (Depends-on): Likewise.
28239         * modules/xnanosleep (Depends-on): Likewise.
28240         * modules/xstrtod (Depends-on): Likewise.
28241         * modules/yesno (Depends-on): Likewise.
28242
28243 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
28244
28245         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
28246         needless checks.
28247
28248 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
28249
28250         Merge from coreutils.  Among other things,
28251         add bulletproofing for cases where stdin, stdout, or stderr are closed.
28252         * lib/fd-safer.c: New file.
28253         * lib/fcntl-safer.h, open-safer.c: Remove.
28254         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
28255         * lib/dup-safer.c: Include unistd-safer.h first.
28256         Don't include errno.h.
28257         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
28258         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
28259         * lib/file-type.c: Rely on file-type.h change.
28260         * lib/getloadavg.c: Include unistd-safer.h.
28261         (getloadavg): Use safer open.
28262         * lib/getusershell.c: Include "stdio-safer.h".
28263         (getusershell): Use safer fopen.
28264         * lib/long-options.c (long_options): Use NULL rather than 0.
28265         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
28266         'free'.
28267         * lib/modechange.c: Likewise.
28268         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
28269         (MODE_DONE): New constant.
28270         (struct mode_change): Remove 'next' member.
28271         (make_node_op_equals): New function; like the old one of the
28272         same name, except it allocates an array.
28273         (mode_compile, mode_create_from_ref): Use it.
28274         (mode_compile): Allocate result as an array, not a linked list.
28275         Parse octal string ourself, so that we catch mistakes like "+0".
28276         (mode_adjust): Arg is an array, not a linked list.
28277         * lib/modechange.c: Include stat-macros.h, xalloc.h.
28278         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
28279         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
28280         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
28281         Remove.  This is now stat-macros.h's job.
28282         (talloc): Remove.  All callers replaced by xalloc, so that
28283         our invokers don't have to worry about reporting memory failures.
28284         (make_node_op_equals): Remove.
28285         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
28286         New constants.
28287         (struct mode_change): Moved here from modechange.h.
28288         (mode_append_entry): Remove.
28289         (mode_compile): Remove MASKED_OPS arg, since it encouraged
28290         apps to have incorrect behavior.  Use simpler algorithm for head
28291         and tail.  Don't futz with umask; that's now the job of mode_adjust.
28292         Detect more invalid usages rather than having somewhat-random behavior.
28293         Don't insert an "a=" action, as that leads to incorrect behavior.
28294         (mode_compile, mode_create_from_ref): Return NULL on error instead
28295         of an enum, since now there's only one way to have an error.  All
28296         callers changed.
28297         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
28298         at the correct time.  Simplify calculation of "+u" and its ilk.
28299         Don't mishandle "+X".
28300         (mode_free): Remove "register" and localize decls.
28301         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
28302         (struct mode_change): Move to modechange.c; callers don't
28303         need to see this stuff.
28304         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
28305         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
28306         (mode_change, mode_adjust): Reflect the new signatures noted above.
28307         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
28308         that might redefine system include files.
28309         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
28310         (my_usleep): Use NULL rather than (void *) 0.
28311         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
28312         Use siginterrupt to specify that system calls should be interrupted.
28313         (rpl_nanosleep): Move initialization of suspended closer to call of
28314         my_usleep.
28315         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
28316         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
28317         (desirable_utmp_entry): New function.
28318         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
28319         using x2nrealloc, to simplify logic.
28320         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
28321         size calculation.  Do not assume utmp file is a regular file.
28322         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
28323         (READ_UTMP_CHECK_PIDS): New constant.
28324         * lib/save-cwd.c: Include unistd-safer.h.
28325         (save_cwd): Use fd_safer.
28326         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
28327         [!_LIBC] Include "stat-macros.h" instead.
28328         * lib/unistd-safer.h (fd_safer): New decl.
28329
28330 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
28331
28332         * modules/getloadavg (Depends-on): Add unistd-safer.
28333         * modules/getusershell (Depends-on): Add stdio-safer.
28334         * modules/lstat (Depends-on): Remove xalloc.
28335         * modules/mkstemp (Depends-on): Add stat-macros.
28336         * modules/modechange (Depends-on): Remove xstrtol.
28337         Add stat-macros, xalloc.
28338         * modules/save-cwd (Depends-on): Add unistd-safer.
28339         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
28340         * modules/unistd-safer (Files): Add lib/fd-safer.c
28341         (Makefile.am): Remove lib_SOURCES.
28342
28343         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
28344         Remove fcntl-safer; unistd-safer supersedes it.
28345
28346 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
28347
28348         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
28349         AC_HEADER_STAT.
28350         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
28351         (gl_PREREQ_CHOWN): Remove.
28352         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
28353         it.  Don't require AC_HEADER_STAT.
28354         (gl_PREREQ_LSTAT): Remove.
28355         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
28356         Don't require AC_HEADER_STAT.
28357         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
28358         (gl_PREREQ_RMDIR): Remove.
28359         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
28360         mention stat-macros.h or AC_HEADER_STAT, since we'll make
28361         the stat-macros module a prerequisite.
28362         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
28363         * m4/filemode.m4 (gl_FILEMODE): Likewise.
28364         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
28365         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
28366         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
28367         variable names.
28368         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
28369         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
28370         variable prefixes.
28371         * m4/fcntl-safer.m4: Remove.
28372         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
28373         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
28374         Invoke gl_PREREQ_FD_SAFER.
28375         (gl_PREREQ_FD_SAFER): New macro.
28376         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
28377         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
28378         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
28379         Remove duplicate call to AC_LIBOBJ(readutmp).
28380         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
28381
28382         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
28383         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
28384
28385 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
28386
28387         * MODULES.html.sh (Misc): Add byteswap.
28388
28389 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
28390
28391         * modules/getcwd (Depends-on): Add extensions.
28392         * modules/openat (Depends-on): Likewise.
28393
28394 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
28395
28396         * modules/byteswap: New file.
28397
28398 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
28399
28400         * m4/byteswap.m4: New file.
28401
28402 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
28403
28404         * lib/byteswap_.h: New file.
28405
28406 2005-04-25  Karl Berry  <karl@gnu.org>
28407
28408         * m4/gettext.m4: Update from GNU gettext 0.14.4.
28409
28410 2005-04-25  Albert Chin  <china@thewrittenword.com>
28411
28412         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
28413         Toolkit C bug.
28414
28415 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
28416
28417         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
28418         (func_ln_if_changed) Remove forcibly for no error message
28419         in case file does not exist.
28420
28421 2005-04-19  Simon Josefsson  <jas@extundo.com>
28422
28423         * gnulib-tool (Options): Make --symlink mean --symbolic.
28424
28425 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
28426
28427         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
28428
28429 2005-04-16  Simon Josefsson  <jas@extundo.com>
28430
28431         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
28432
28433 2005-04-15  Simon Josefsson  <jas@extundo.com>
28434
28435         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
28436
28437 2005-04-15  Simon Josefsson  <jas@extundo.com>
28438
28439         * gnulib-tool: Rename --symlink to --symbolic.
28440
28441 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
28442
28443         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
28444         symbolic links to files instead of copying/moving.  Add --aux-dir,
28445         specifying directory relative --dir where auxiliary build tools
28446         are placed.
28447
28448 2005-04-14  Bruno Haible  <bruno@clisp.org>
28449
28450         * modules/allocsa (License): Change to LGPL.
28451         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28452
28453 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
28454
28455         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
28456         that "UTC +1 second" continues to work.  Problem reported
28457         by Dmitry V. Levin.
28458         (relunit_snumber): New rule.
28459         (relunit): Use it.
28460
28461 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
28462
28463         * lib/getdate.y (universal_time_zone_table): New constant.
28464         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
28465         universal_time_zone_table.
28466         (lookup_zone): Prefer universal_time_zone_table to
28467         local_time_zone_table, so that "GMT" time stamps are allowed in
28468         London during the summer.  Problem reported by Ian Abbott.
28469
28470 2005-04-12  Jim Meyering  <jim@meyering.net>
28471
28472         * lib/human.c (humblock): Set *options even when returning due to
28473         xstrtoumax conversion failure.  Thanks to a used-uninitialized
28474         warning from gcc-4.
28475
28476 2005-04-09  Jim Meyering  <jim@meyering.net>
28477
28478         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
28479         -Wuninitialized: initialize tm0.tm_year.
28480
28481 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
28482
28483         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
28484         count, since there's no maximum.  All uses changed.
28485         Add member dsts_seen.
28486         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
28487         not being INT_MAX.
28488         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
28489         Use pc_rels_seen to decide whther a date is absolute.
28490
28491         * lib/getdate.y (number): Don't overwrite year.
28492         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
28493         check.
28494
28495 2005-04-02  Simon Josefsson  <jas@extundo.com>
28496
28497         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
28498         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
28499
28500 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
28501
28502         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
28503         where no absolute path name can be longer than PATH_MAX.
28504
28505 2005-03-27  Jim Meyering  <jim@meyering.net>
28506
28507         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
28508
28509 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
28510
28511         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
28512         "one's complement" -> "ones' complement" in comment, as per Knuth.
28513         "value of type" -> "type or expression" in comment.
28514         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
28515
28516 2005-03-26  Jim Meyering  <jim@meyering.net>
28517
28518         Comment nits.
28519         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
28520         Correct typos: s/or/of/.
28521
28522 2005-03-26  Jim Meyering  <jim@meyering.net>
28523
28524         * modules/check-include-files: Move to ../ and rename to...
28525         * check-module: ...this.
28526
28527 2005-03-25  Jim Meyering  <jim@meyering.net>
28528
28529         * modules/xvasprintf (Files): Add xalloc.h.
28530
28531 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
28532
28533         * modules/gettext (Files): config/config.rpath ->
28534         build-aux/config.rpath
28535         * modules/iconv (Files): Likewise.
28536         Problem reported by Oskar Liljeblad.
28537
28538 2005-03-23  Jim Meyering  <jim@meyering.net>
28539
28540         * modules/check-include-files: New script to check for
28541         missing dependencies, multiple includes, etc.
28542
28543         * modules/c-strtold (Depends-on): Add xalloc.
28544         * modules/c-strtod (Depends-on): Add xalloc.
28545         * modules/hash (Depends-on): Add xalloc.
28546         (Files): Remove lib/xalloc.h.
28547
28548         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
28549         * modules/userspec (Files): Add lib/inttostr.h.
28550
28551 2005-03-23  Jim Meyering  <jim@meyering.net>
28552
28553         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
28554
28555 2005-03-22  Jim Meyering  <jim@meyering.net>
28556
28557         * modules/stat-macros: New module.
28558         * modules/canonicalize, modules/euidaccess, modules/file-type,
28559         * modules/filemode, modules/lchown, modules/makepath,
28560         * modules/rmdir, modules/stat: Depend on new stat-macros module
28561         rather than listing lib/stat-macros.h manually.
28562         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
28563
28564 2005-03-22  Jim Meyering  <jim@meyering.net>
28565
28566         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
28567
28568 2005-03-22  Bruno Haible  <bruno@clisp.org>
28569
28570         * config/srclist.txt: Replace target directory 'config' with
28571         'build-aux'.
28572         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
28573         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
28574         ../build-aux/.
28575
28576 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
28577
28578         * modules/chdir-long (Depends-on): Add mempcpy.
28579
28580         * modules/acl, modules/backupfile, modules/c-strtod,
28581         modules/c-strtold, modules/canon-host, modules/canonicalize,
28582         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
28583         modules/exclude, modules/exitfail, modules/file-type,
28584         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
28585         modules/getdate, modules/getline, modules/getpagesize,
28586         modules/getpass, modules/getugroups, modules/group-member,
28587         modules/hard-locale, modules/hash, modules/human, modules/idcache,
28588         modules/inttostr, modules/long-options, modules/makepath,
28589         modules/md5, modules/memcasecmp, modules/memcoll,
28590         modules/modechange, modules/mountlist, modules/path-concat,
28591         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
28592         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
28593         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
28594         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
28595         modules/strftime, modules/strndup, modules/strverscmp,
28596         modules/timespec, modules/unlocked-io, modules/userspec,
28597         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
28598         modules/yesno:
28599         Remove lib_SOURCES line from Makefile.am section, as this is now
28600         done automatically by the corresponding Autoconf macro.
28601
28602 2005-03-21  Jim Meyering  <jim@meyering.net>
28603
28604         Changes imported from coreutils.
28605
28606         * lib/cycle-check.c: Don't include xalloc.h.
28607
28608         * lib/path-concat.c: Don't include assert.h.
28609         (path_concat): Remove assertion that would have triggered
28610         for ABASE starting with more than one slash.
28611         Reported by Andreas Schwab.
28612
28613         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
28614         properly when ABASE is an absolute file name.
28615         Correct the description of this function.
28616         Include <assert.h>.
28617         Add an assertion and a test driver.
28618         This fixes a bug introduced on 2004-07-02.
28619         Andreas Schwab reported the resulting failure of cp --parents:
28620         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
28621
28622 2005-03-21  Jim Meyering  <jim@meyering.net>
28623
28624         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
28625         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
28626
28627 2005-03-21  Jim Meyering  <jim@meyering.net>
28628         and  Paul Eggert  <eggert@cs.ucla.edu>
28629
28630         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
28631         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
28632         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
28633         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
28634         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
28635         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
28636         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
28637         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
28638         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
28639         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
28640         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
28641         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
28642         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
28643         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
28644         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
28645         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
28646         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
28647         for these modules.
28648
28649 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
28650
28651         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
28652         (which shouldn't happen), generate nothing instead of returning 0
28653         immediately, so that nstrftime (NULL, ...) doesn't return 0.
28654
28655 2005-03-16  Bruno Haible  <bruno@clisp.org>
28656
28657         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
28658         HAVE_LONGLONG_64BIT.
28659
28660 2005-03-16  Bruno Haible  <bruno@clisp.org>
28661
28662         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
28663         HAVE_LONGLONG_64BIT.
28664
28665 2005-03-16  Bruno Haible  <bruno@clisp.org>
28666
28667         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
28668         HAVE_LONGLONG_64BIT.
28669
28670 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
28671
28672         * lib/strftime.c (my_strftime): Prepend space to format so that we can
28673         reliably distinguish strftime failure from empty output on POSIX
28674         hosts.
28675
28676 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
28677
28678         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
28679         (iconv_string): Don't guess a size-zero buffer, as that might cause
28680         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
28681         result would be 'too large', where 'too large' is (heuristically)
28682         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
28683         overflow concerns.  This will prevent some unwanted malloc failures
28684         when the inputs are very large.
28685
28686 2005-03-15  Karl Berry  <karl@gnu.org>
28687
28688         * config/srclist.txt (config.rpath): from gettext.
28689         * config/config.rpath: update.
28690
28691 2005-03-15  Bruno Haible  <bruno@clisp.org>
28692
28693         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
28694         to 'negate'.
28695
28696         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
28697         variable.
28698
28699         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
28700         results.
28701
28702 2005-03-14  Simon Josefsson  <jas@extundo.com>
28703
28704         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
28705         <fx@gnu.org>.
28706
28707 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
28708
28709         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
28710         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
28711         intprops.h.
28712         * lib/strtol.c: Likewise.
28713
28714 2005-03-14  Jim Meyering  <jim@meyering.net>
28715
28716         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
28717         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
28718         to be nonzero so that we (and caller) can detect the difference
28719         between a valid zero-length expansion and an error return, even
28720         when the underlying strftime fails before writing anything into
28721         that location.
28722
28723 2005-03-14  Bruno Haible  <bruno@clisp.org>
28724
28725         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
28726         Update from GNU gettext 0.14.3.
28727
28728 2005-03-10  Jim Meyering  <jim@meyering.net>
28729
28730         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
28731
28732 2005-03-10  Jim Meyering  <jim@meyering.net>
28733
28734         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
28735         so that this module works on systems without fchdir.
28736
28737 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
28738
28739         Factor int-properties macros into a single file, except for
28740         glibc-related files.
28741         * lib/intprops.h: New file.
28742         * lib/getloadavg.c: Include it instead of limits.h.
28743         (INT_STRLEN_BOUND): Remove.
28744         * lib/human.c: Include intprops.h.
28745         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
28746         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
28747         302/1000.
28748         * lib/inttostr.h: Include intprops.h instead of limits.h.
28749         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
28750         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
28751         for consistency with intprops.h.
28752         (time_t_is_integer, twos_complement_arithmetic): Use them.
28753         * lib/sig2str.h: Include <signal.h>, intprops.h.
28754         (INT_STRLEN_BOUND): Remove.
28755         * lib/strftime.c (TYPE_SIGNED): Remove.
28756         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
28757         * lib/strtol.c: Adjust comments to match intprops.h.
28758         * lib/userspec.c: Include intprops.h.
28759         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
28760         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
28761         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
28762         instead of rolling our own expressions.
28763         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
28764
28765         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
28766         instead of int.
28767         (my_strftime): Do not mishandle years close to INT_MAX, by doing
28768         the right thing even if adding 1900 would overflow.  Similarly
28769         for tm_mon + 1 and tm_yday + 1.
28770         Make %Y always equivalent to %C%y, and similarly for %G and %g.
28771         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
28772         (DO_SIGNED_NUMBER): New macro.
28773         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
28774
28775 2005-03-07  Bruno Haible  <bruno@clisp.org>
28776
28777         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
28778
28779 2005-03-07  Bruno Haible  <bruno@clisp.org>
28780
28781         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
28782
28783 2005-03-04  Derek R. Price  <derek@ximbiot.com>
28784
28785         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
28786         (func_import): Only replace files via --import when they have actually
28787         changed.
28788
28789 2005-03-03  Derek R. Price  <derek@ximbiot.com>
28790
28791         * m4/mmap-anon.m4: New file.
28792         * m4/pagealign_alloc.m4: New file.
28793
28794 2005-03-03  Derek R. Price  <derek@ximbiot.com>
28795             Bruno Haible  <bruno@clisp.org>
28796
28797         * modules/pagealign_alloc: New file.
28798         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
28799
28800 2005-03-03  Derek R. Price  <derek@ximbiot.com>
28801             Bruno Haible  <bruno@clisp.org>
28802
28803         * lib/pagealign_alloc.h: New file.
28804         * lib/pagealign_alloc.c: New file.
28805
28806 2005-03-03  Bruno Haible  <bruno@clisp.org>
28807
28808         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
28809         Use an all-permissive copyright notice, recommended by RMS.
28810
28811 2005-03-02  Bruno Haible  <bruno@clisp.org>
28812
28813         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
28814         of AIX, the replacement has to be done only after <string.h> is
28815         included, therefore not in config.h. stpncpy.h does the replacement,
28816         and stpncpy.c uses it.
28817
28818 2005-03-02  Bruno Haible  <bruno@clisp.org>
28819
28820         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
28821         stpncpy.c uses it.
28822
28823 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
28824
28825         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
28826         The workaround isn't strictly needed for POSIX conformance, and
28827         it's too much of a pain to configure and maintain.  We'll ask
28828         people to fix their kernels instead.
28829         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
28830         (NANOSLEEP_BUG_WORKAROUND): Remove.
28831         (xnanosleep): Remove the workaround.
28832
28833 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
28834
28835         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
28836         Reported by Derek Price.
28837         (Include): Add "timespec.h".
28838
28839         * modules/xnanosleep (Depends-on): Remove gethrxtime.
28840
28841 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
28842
28843         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
28844         to detect nanosleep bug.
28845
28846 2005-03-01  Bruno Haible  <bruno@clisp.org>
28847
28848         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
28849
28850 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
28851
28852         * modules/gethrxtime: New file.
28853         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
28854         (Depends-on): Add gethrxtime.
28855         (configure.ac): Add gl_XNANOSLEEP.
28856         (Makefile.am): Remove lib_SOURCES line.
28857
28858 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
28859
28860         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
28861         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
28862
28863 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
28864
28865         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
28866         * lib/timespec.h (gettime): Return void, since it always
28867         succeeds now.  All uses changed.
28868         * lib/gettime.c (gettime) Likewise.
28869         [HAVE_NANOTIME]: Prefer nanotime.
28870         Assume gettimeofday succeeds, as POSIX requires.
28871         Assime time () succeeds, since other code already does.
28872         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
28873         (timespec_subtract): Remove.
28874         (NANOSLEEP_BUG_WORKAROUND): New constant.
28875         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
28876         things considerably.  Use it only on GNU/Linux hosts, since the
28877         workaround shouldn't be needed elsewhere.
28878
28879 2005-02-24  Bruno Haible  <bruno@clisp.org>
28880
28881         * modules/gettext (Files): Add m4/glibc2.m4.
28882
28883 2005-02-24  Bruno Haible  <bruno@clisp.org>
28884
28885         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
28886         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
28887         * m4/progtest.m4:
28888         Update from GNU gettext 0.14.2.
28889         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
28890
28891 2005-02-24  Bruno Haible  <bruno@clisp.org>
28892
28893         * lib/localcharset.c: Update from GNU gettext 0.14.2.
28894         * lib/config.charset: Update from GNU gettext 0.14.2.
28895
28896 2005-02-24  Bruno Haible  <bruno@clisp.org>
28897
28898         * lib/gettext.h: Update from GNU gettext 0.14.2.
28899
28900 2005-02-23  Simon Josefsson  <jas@extundo.com>
28901
28902         * m4/iconvme.m4: New file.
28903
28904 2005-02-23  Jim Meyering  <jim@meyering.net>
28905
28906         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
28907         change.
28908         Thanks to Bruno Haible for catching it.
28909
28910 2005-02-22  Simon Josefsson  <jas@extundo.com>
28911
28912         * modules/iconvme: New file.
28913
28914         * MODULES.html.sh: Add iconvme.
28915
28916 2005-02-22  Simon Josefsson  <jas@extundo.com>
28917
28918         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
28919
28920 2005-02-22  Simon Josefsson  <jas@extundo.com>
28921
28922         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
28923
28924 2005-02-22  Jim Meyering  <jim@meyering.net>
28925
28926         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
28927         s/ifndef/ifdef/.
28928
28929 2005-02-20  Neil Conway  <neilc@samurai.com>
28930
28931         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
28932         returned by OSX/Darwin if the specified buffer is not large
28933         enough for the hostname.
28934
28935 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28936
28937         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
28938         pass it to _help, otherwise the latter coredumps trying to
28939         dereference state.root_argp.
28940
28941 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
28942
28943         * modules/chdir-long (Depends-on): Add memrchr.
28944         * modules/memrchr (Files): Add lib/memrchr.h.
28945         (Include): "memrchr.h".
28946
28947 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
28948
28949         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
28950
28951 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
28952
28953         * lib/memrchr.h: New file.
28954         * lib/chdir-long.c: Include it.
28955         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
28956         Don't bother including stddef.h.
28957
28958 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
28959
28960         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
28961         inclusion.
28962         Include <sys/types.h>, for dev_t.
28963         (ME_DUMMY, ME_REMOTE): Move from here....
28964         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
28965         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
28966         Dmitry V. Levin.
28967         Include mountlist.h first, to test the interface.
28968
28969 2005-01-29  Bruno Haible  <bruno@clisp.org>
28970
28971         * lib/progname.c (program_name): Initialize.
28972         Needed when linking statically on MacOS X.
28973
28974 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
28975
28976         Sync from coreutils.
28977         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
28978         (Depends-on): Add c-strtod.
28979         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
28980
28981 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
28982
28983         Sync from coreutils.
28984         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
28985
28986         Remove files that are specific to coreutils.
28987         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
28988
28989 2005-01-28  Bruno Haible  <bruno@clisp.org>
28990
28991         * modules/javacomp: New file.
28992         * MODULES.html.sh (Java): Add javacomp.
28993
28994 2005-01-28  Bruno Haible  <bruno@clisp.org>
28995
28996         * m4/javacomp.m4: New file, from GNU gettext.
28997
28998 2005-01-28  Bruno Haible  <bruno@clisp.org>
28999
29000         * lib/javacomp.sh.in: New file, from GNU gettext.
29001         * lib/javacomp.h: New file, from GNU gettext.
29002         * lib/javacomp.c: New file, from GNU gettext.
29003
29004 2005-01-26  Simon Josefsson  <jas@extundo.com>
29005
29006         * lib/gai_strerror.c: Use GPL in header.
29007
29008 2005-01-26  Bruno Haible  <bruno@clisp.org>
29009
29010         * modules/javaexec: New file.
29011         * MODULES.html.sh (Java): Add javaexec.
29012
29013 2005-01-26  Bruno Haible  <bruno@clisp.org>
29014
29015         * m4/javaexec.m4: New file, from GNU gettext.
29016
29017 2005-01-26  Bruno Haible  <bruno@clisp.org>
29018
29019         * lib/javaexec.sh.in: New file, from GNU gettext.
29020         * lib/javaexec.h: New file, from GNU gettext.
29021         * lib/javaexec.c: New file, from GNU gettext.
29022
29023 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29024
29025         * modules/lchown (Depends-on): Remove lchown.h
29026
29027 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29028
29029         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
29030         must be defined if the header file was not found, in order
29031         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
29032
29033 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29034
29035         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
29036         initializers for struct pentry_state.
29037         (__argp_error): Check return value of __asprintf
29038         (__argp_failure): Translate error message
29039
29040         * lib/argp-parse.c: Removed braces around the expansion of N_()
29041
29042 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
29043
29044         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
29045         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
29046         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
29047         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
29048         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
29049         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
29050         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
29051         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
29052         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
29053         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
29054         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
29055         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
29056         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
29057         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
29058         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
29059         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
29060         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
29061         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
29062         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
29063         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
29064         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
29065         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
29066         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
29067         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
29068         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
29069         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
29070         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
29071         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
29072         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
29073         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
29074         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
29075         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
29076         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
29077         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
29078         xstrtol.m4, xstrtoumax.m4, yesno.m4:
29079         Use an all-permissive copyright notice, recommended by RMS.
29080
29081 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
29082
29083         * modules/chdir-long (Depends-on): Remove mempcpy.
29084
29085 2005-01-21  Jim Meyering  <jim@meyering.net>
29086
29087         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
29088         same value as for Solaris 9.
29089
29090         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
29091         component length.  This included changing the parameter to be
29092         of type `char *' rather than `char const *'.
29093         * lib/chdir-long.h (chdir_long): Update prototype.
29094
29095         * lib/openat.c (fdopendir, fstatat): New functions.
29096         * lib/openat.h: Include headers required for use of DIR and struct
29097         stat.
29098         [AT_SYMLINK_NOFOLLOW]: Define.
29099         (fdopendir, fstatat): Add prototypes.
29100
29101 2005-01-21  Bruno Haible  <bruno@clisp.org>
29102
29103         * modules/classpath: New file.
29104         * MODULES.html.sh (Java): Add classpath.
29105
29106 2005-01-21  Bruno Haible  <bruno@clisp.org>
29107
29108         * lib/classpath.h: New file, from GNU gettext.
29109         * lib/classpath.c: New file, from GNU gettext.
29110
29111 2005-01-20  Simon Josefsson  <jas@extundo.com>
29112
29113         * modules/version-etc-fsf: New file.
29114
29115 2005-01-20  Simon Josefsson  <jas@extundo.com>
29116
29117         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
29118         * lib/version-etc.c: Remove version_etc_copyright.
29119         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
29120         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
29121
29122 2005-01-20  Simon Josefsson  <jas@extundo.com>
29123
29124         * lib/base64.h (isbase64): Add.
29125
29126         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
29127         using a unsigned prototype, don't inline.
29128         (base64_decode): Use it.
29129
29130 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
29131
29132         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
29133         it.
29134
29135 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
29136
29137         * lib/save-cwd.c (save_cwd): Remove code to support the case
29138         where fchdir is missing or flaky.
29139
29140 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
29141
29142         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
29143
29144 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
29145
29146         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
29147         AC_LIBSOURCES now does this.
29148         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
29149         with new ullong_max module.
29150
29151 2005-01-19  Bruno Haible  <bruno@clisp.org>
29152
29153         * modules/sh-quote: New file.
29154         * MODULES.html.sh (Executing programs): Add sh-quote.
29155
29156 2005-01-19  Bruno Haible  <bruno@clisp.org>
29157
29158         * lib/sh-quote.h: New file, from GNU gettext.
29159         * lib/sh-quote.c: New file, from GNU gettext.
29160
29161 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
29162
29163         Merge from coreutils.
29164         * m4/ullong_max.m4: New file.
29165         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
29166         (gl_MACROS): Assume localeconv exists.
29167
29168 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
29169
29170         Merge changes from coreutils, as described below in several
29171         changelogs dated today.
29172
29173         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
29174         (O_DIRECTORY): Remove; not needed here, since "." must be
29175         a directory.  All uses removed.
29176         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
29177         universal on Suns, and we also need to test for IRIX.
29178         Revamp code to use 'if' rather than '#if'.
29179         Avoid unnecessary comparison of cwd->desc to 0.
29180
29181         * lib/utimens.c (futimens): Robustify the previous patch, by checking
29182         for known valid error numbers rather than observed invalid ones.
29183
29184 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
29185
29186         * modules/ullong_max: New file.
29187
29188         * modules/chdir-long, modules/openat: New files.
29189         * modules/save-cwd (Depends-on): Depend on chdir-long.
29190         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
29191
29192 2005-01-18  Jim Meyering  <jim@meyering.net>
29193
29194         Merge from coreutils.
29195         * m4/chdir-long.m4, m4/openat.m4: New files.
29196         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
29197         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
29198         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
29199         is sane and DOES follow symlinks.  Besides, testing 20 different
29200         systems found no broken chown implementations.
29201         Prompted by a change in rsync's copy of this macro.
29202         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
29203
29204         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
29205
29206         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
29207         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
29208         NULL-means-set-to-current-time semantics.
29209         Remove temporary file immediately, rather than waiting
29210         for configure's at-exit trap code to do it.
29211
29212 2005-01-18  Jim Meyering  <jim@meyering.net>
29213
29214         * lib/version-etc.c (version_etc_copyright): Update copyright date.
29215
29216         * lib/utimens.c (futimens): Account for the fact that futimes
29217         can also fail with errno == ENOSYS or errno == ENOENT.
29218         Patch from Dmitry V. Levin.
29219
29220         Change the name of the robust chdir function from chdir to chdir_long.
29221         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
29222         (restore_cwd): Use chdir_long, not chdir.
29223         * lib/chdir-long.c: Renamed from chdir.c.
29224         * lib/chdir-long.h: Renamed from chdir.h.
29225         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
29226         Hurd.
29227
29228 2005-01-18  Bruno Haible  <bruno@clisp.org>
29229
29230         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
29231         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
29232         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
29233         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
29234         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
29235         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
29236         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
29237         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
29238         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
29239         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
29240         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
29241         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
29242         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
29243         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
29244         Use an all-permissive copyright notice, recommended by RMS.
29245
29246 2005-01-18  Bob Proulx  <bob@proulx.com>
29247
29248         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
29249         simplify offsetof() macro construct to avoid compile failure with
29250         native HP-UX 11.0 ANSI C compiler.
29251
29252 2005-01-17  Bruno Haible  <bruno@clisp.org>
29253
29254         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
29255         redundant because stpncpy.m4 takes care of it.
29256
29257 2005-01-17  Bruno Haible  <bruno@clisp.org>
29258
29259         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
29260
29261 2005-01-17  Bruno Haible  <bruno@clisp.org>
29262
29263         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
29264         used.
29265
29266 2005-01-17  Bruno Haible  <bruno@clisp.org>
29267
29268         * lib/fwriteerror.h (fwriteerror): Change specification to include
29269         fclose.
29270         * lib/fwriteerror.c: Include <stdbool.h>.
29271         (fwriteerror): At the end, close the file stream. Record whether
29272         stdout was already closed.
29273
29274 2005-01-17  Bruno Haible  <bruno@clisp.org>
29275
29276         * lib/execute.c (environ): Declare if needed.
29277         * lib/pipe.c (environ): Likewise.
29278         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
29279
29280 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29281
29282         * modules/argp: Depend on vsnprintf
29283
29284 2005-01-10  Jim Meyering  <jim@meyering.net>
29285
29286         * modules/closeout (Depends-on): Add atexit.
29287
29288 2005-01-06  Bruno Haible  <bruno@clisp.org>
29289
29290         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
29291
29292 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
29293
29294         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
29295         definitions to be after all include files, to avoid collisions.
29296         Problem reported by Bob Proulx.
29297
29298 2005-01-04  Jim Meyering  <jim@meyering.net>
29299
29300         Changes imported from coreutils.
29301         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
29302         as the mkstemp template, use a temporary directory and an
29303         8.3-friendly template to avoid trouble on systems like DJGPP.
29304         Reported by Juan M. Guerrero via Stepan Kasal.
29305         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
29306         close. Remove the temporary directory right away, rather than waiting
29307         for configure's at-exit trap code to do it.
29308         Suggestion from Stepan Kasal.
29309
29310 2005-01-01  Simon Josefsson  <jas@extundo.com>
29311
29312         * gnulib-tool: Print #include directives when --import'ing.
29313
29314 2004-12-28  Simon Josefsson  <jas@extundo.com>
29315
29316         * tests/test-base64.c: Include required header files.  Remove
29317         unused variables.
29318
29319 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
29320
29321         * modules/error (Depends-on): Remove gettext.
29322
29323 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
29324
29325         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
29326         not needed.  This removes a dependency on the gettext module.
29327         [defined _LIBC]: Do not include <libintl.h>; not needed.
29328
29329 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
29330
29331         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
29332         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
29333
29334 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
29335
29336         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
29337         HAVE_DECL_STRTOLD.
29338
29339 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
29340
29341         * modules/getdate (Depends-on): Remove alloca-opt.
29342
29343 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
29344
29345         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
29346
29347 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
29348
29349         * lib/argp-parse.c: Include <stddef.h>.
29350         (alignof, alignto): New macros.
29351         (parser_init): Don't assume that void * is aligned sufficiently
29352         for struct option.
29353
29354         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
29355         need to extend the stack.
29356         (YYINITDEPTH): New macro, so that the initial stack isn't overly
29357         large.
29358
29359 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29360
29361         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
29362
29363 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
29364
29365         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
29366         (2004-10-24) change.  Apparently this was a false alarm.
29367
29368         * modules/getdate: Depend on alloca-opt, not alloca.
29369
29370 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
29371
29372         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
29373         Remove now-obsolete comment about AIX.
29374         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
29375         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
29376         (YYMAXDEPTH): New macro.
29377
29378 2004-12-18  Simon Josefsson  <jas@extundo.com>
29379
29380         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
29381
29382 2004-12-18  Bruno Haible  <bruno@clisp.org>
29383
29384         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
29385
29386 2004-12-18  Bruno Haible  <bruno@clisp.org>
29387
29388         * lib/fatal-signal.c (fatal_signals): Make non-const.
29389         (init_fatal_signals): New function.
29390         (uninstall_handlers, install_handlers): Ignore signals that were set to
29391         SIG_IGN.
29392         (at_fatal_signal): Call init_fatal_signals.
29393         (init_fatal_signal_set): Likewise. Ignore signals that were set to
29394         SIG_IGN.
29395         Reported by Paul Eggert.
29396
29397 2004-12-18  Bruno Haible  <bruno@clisp.org>
29398
29399         * doc/alloca.texi: New file.
29400         * doc/alloca-opt.texi: New file.
29401
29402 2004-12-17  Jim Meyering  <jim@meyering.net>
29403
29404         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
29405         Otherwise, install-sh could exit with improper exit status when
29406         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
29407
29408 2004-12-16  Simon Josefsson  <jas@extundo.com>
29409
29410         * tests/test-base64.c: Add license.
29411
29412 2004-12-15  Stepan Kasal  <address@hidden>
29413
29414         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
29415
29416 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
29417
29418         * modules/getcwd (Files): Add m4/d-ino.m4.
29419         Suggested by Mark D. Baushke.
29420
29421 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
29422
29423         * lib/getdate.y (textint): New member "negative".
29424         (time_zone_hhmm): New function.
29425         Expect 14 shift-reduce conflicts, not 13.
29426         (o_colon_minutes): New rule.
29427         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
29428         (yylex): Set the "negative" member of signed numbers.
29429
29430 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
29431
29432         * doc/getdate.texi (Time of day items, Time zone items):
29433         Describe new formats +00:00, UTC+00:00.
29434
29435 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
29436
29437         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
29438         spurious "-l"s.  Problem reported by Stepan Kasal.
29439
29440 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
29441
29442         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
29443         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
29444
29445 2004-12-04  Simon Josefsson  <jas@extundo.com>
29446
29447         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
29448         Vandoorselaere <yoann@prelude-ids.org>.
29449
29450 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
29451
29452         Changes imported from coreutils.
29453         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
29454         exist.
29455         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
29456
29457 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
29458
29459         Changes imported from coreutils.
29460         * lib/hard-locale.c: Assume <locale.h> exists.
29461         Include "strdup.h".
29462         (GLIBC_VERSION): New macro.
29463         (hard_locale): Assume setlocale exists.
29464         Rewrite to avoid #ifdef.
29465         Use strdup rather than malloc + strcpy.
29466         * lib/human.c: Assume <locale.h> exists.
29467         (human_readable): Assume localeconv exists.
29468
29469 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
29470
29471         * modules/hard-locale (Depends-on): Add strdup.
29472
29473 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
29474
29475         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
29476         convert T2, not T.  (Imported from libc.)
29477
29478 2004-11-30  Simon Josefsson  <jas@extundo.com>
29479
29480         * modules/restrict (License): Change to LGPL.
29481
29482 2004-11-30  Simon Josefsson  <jas@extundo.com>
29483
29484         * m4/restrict.m4: Add copyright and copying conditions.
29485
29486 2004-11-30  Simon Josefsson  <jas@extundo.com>
29487
29488         * m4/base64.m4: New file.
29489
29490 2004-11-30  Simon Josefsson  <jas@extundo.com>
29491
29492         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
29493         base64.
29494
29495         * tests/test-base64.c: New file.
29496
29497         * modules/base64: New file.
29498
29499 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
29500
29501         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
29502         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
29503
29504         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
29505
29506 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
29507
29508         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
29509         (__getcwd.c): Don't restore errno; glibc doesn't.
29510         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
29511         first, falling back to our code only if its results look suspicious.
29512         Ensure that the resulting buffer is only as large as necessary.
29513
29514         * lib/readutmp.c: Include readutmp.h first.
29515         Include <errno.h>, since readutmp.h no longer does that.
29516         * lib/readutmp.h: Don't include <errno.h>,
29517         <sys/param.h>, <time.h>; not needed to establish interface.
29518         (errno): Remove decl.
29519         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
29520         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
29521         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
29522
29523 2004-11-28  Simon Josefsson  <jas@extundo.com>
29524
29525         * lib/base64.h, base64.c: New file.
29526
29527 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
29528
29529         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
29530
29531 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
29532
29533         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
29534         (Depends-on): Remove pathmax, same.  Add mempcpy.
29535         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
29536         (Makefile.am): Append getcwd.h to lib_SOURCES.
29537         (Include): Add getcwd.h.
29538         (Maintainer): Change from Jim Meyering to "all, glibc",
29539         since getdate now uses intended-for-glibc code.
29540         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
29541         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
29542
29543 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
29544
29545         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
29546         HP's ANSI C compiler.
29547         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
29548         Declaring int functions causes warnings on some modern systems and
29549         shouldn't be needed to compile on ancient ones.
29550         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
29551         defined.
29552
29553         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
29554         with the following changes.
29555         (__set_errno): Parenthesize properly.
29556         Include <stdbool.h>.
29557         (MIN, MAX, MATCHING_INO): New macros.
29558         (__getcwd): Define with prototype, not K&R form.
29559         Use heuristics to allocate default buffer on stack if possible.
29560         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
29561         behavior, and to avoid the PATH_MAX limit when computing
29562         ../../../../...
29563         Use MATCHING_INO to compare inode number to file.
29564         Check for arithmetic overflow in size calculations.
29565         Fix bug in reallocation of dot array that caused getcwd to fail
29566         on directories nested deeper than 75.
29567         Be more careful about saving errno on error.
29568         Do not use realloc; use only free+malloc, as this is a bit
29569         more flexible and avoids a needless copy operation.
29570         Do not inspect st_dev and st_ino for symbolic links; POSIX
29571         doesn't specify the latter.
29572         Check for closedir errors.
29573         Avoid needless casts.
29574         Use "#ifdef weak_alias" around weak_alias, to be like other
29575         glibc code.
29576         The following changes to getcwd.c have effect only when used in
29577         gnulib; they have no effect inside glibc proper.
29578         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
29579         as alloca isn't used.
29580         (alloca, __alloca): Likewise.
29581         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
29582         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
29583         unconditionally, as gnulib assumes C89 or better.
29584         Do not include <sys/param.h>.
29585         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
29586         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
29587         better.
29588         (NULL) [!defined NULL]: Remove; we assume C89 or better.
29589         Include <dirent.h> in a way that is compatible with modern Autoconf.
29590         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
29591         New macros, if not already defined.
29592         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
29593         Use "_LIBC", not "defined _LIBC", for consistency.
29594         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
29595         a mempcpy module.
29596         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
29597         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
29598         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
29599         credit only to Jim Meyering and adjust the copyright dates.
29600         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
29601         <stdlib.h>, <unistd.h>, "pathmax.h".
29602         Instead, include "xgetcwd.h" (first) and "getcwd.h".
29603         (INITIAL_BUFFER_SIZE): Remove.
29604         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
29605
29606 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
29607
29608         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
29609         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
29610         Use the _ONCE methods, for efficiency.
29611         Check for fcntl.h.  In test program, include <errno.h>
29612         and <fcntl.h> if available.  Remove old K&R cruft from
29613         test program.  Check for common errors in GNU/Linux,
29614         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
29615         don't do AC_LIBOBJ, as that's getcwd.m4's job.
29616         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
29617         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
29618         name accordingly.
29619         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
29620         accommodate new getcwd.c.
29621         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
29622         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
29623         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
29624         that's all we need now.
29625
29626 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29627
29628         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
29629         argp-parse.c depends on getopt internals, that means we should
29630         always use our getopt, to be on the safe side.
29631         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
29632         order not to spoil the result of an eventual previous invocation
29633         of gl_GETOPT_SUBSTITUTE.
29634
29635 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29636
29637         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
29638         redefinition warnings. To avoid them, include the defines
29639         in `#if !defined __need_getopt ... #endif'. The only place
29640         where __getopt_argv_const is used is in definitions
29641         of getopt_long and getopt_long_only below, which are as well
29642         protected by `#ifndef __need_getopt'.
29643         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
29644         __need_getopt after including <stdio.h> and <unistd.h> These
29645         headers might have defined it.
29646
29647 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
29648
29649         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
29650
29651 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
29652
29653         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
29654         (futimens): New function, which uses futimes if available.
29655         (futimens, utimens): Support timespec==NULL, with same semantics
29656         as utime and utimens.
29657         * lib/utimens.h (futimens): New decl.
29658
29659 2004-11-23  Jim Meyering  <jim@meyering.net>
29660
29661         * lib/getopt_.h: Remove trailing blanks.
29662
29663 2004-11-23  Jim Meyering  <jim@meyering.net>
29664
29665         * lib/__fpending.c: Add comment.
29666
29667 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
29668
29669         * modules/canonicalize (Depends-on): Add xreadlink.
29670         Problem reported by James Youngman.
29671
29672 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
29673
29674         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
29675         New macros.
29676         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
29677         optopt): Use them instead of invoking ## directly; otherwise, the
29678         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
29679
29680 2004-11-19  Bruno Haible  <bruno@clisp.org>
29681
29682         * lib/strtok_r.c: Move comments from here...
29683         * lib/strtok_r.h: ... to here.
29684
29685 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29686
29687         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
29688         implementations that mishandle size_t overflow.
29689
29690 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29691
29692         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
29693         might fail.  Problem reported by Yoann Vandoorselaere.
29694         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
29695         implementations that mishandle size_t overflow.
29696
29697 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
29698
29699         * modules/canon-host (Depends-on): Add strdup.
29700
29701 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
29702
29703         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
29704
29705 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
29706
29707         * lib/canon-host.c: Include "strdup.h".
29708         (canon_host): Use getaddrinfo if available, so that IPv6 works.
29709         Use strdup instead of malloc/strcpy to duplicate strings.
29710
29711         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
29712         (human_space_before_unit): New constant.
29713         * lib/human.c (human_readable): Support it.
29714
29715         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
29716         (xgetcwd): Set errno correctly when failing.
29717         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
29718         the failure is actually due to a PATH_MAX problem.
29719
29720         Further getopt changes to make it more likely that glibc will
29721         buy the changes back.
29722         * lib/getopt.c (POSIXLY_CORRECT): New constant.
29723         (getopt): Use it, so to preserve glibc semantic
29724         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
29725         when compiling for libc.
29726         * lib/getopt_.h (__getopt_argv_const): Bring it back.
29727         (getopt_long, getopt_long_only): Use it.
29728
29729         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
29730         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
29731         (getopt): Argv is now char * const *, as per standard.
29732         (_getopt_internal_r, _getopt_internal): Argv is now char **,
29733         not char *__getopt_argv_const *.
29734         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
29735         _getopt_long_only_r): Likewise.
29736         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
29737         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
29738         _getopt_long_r, _getopt_long_only_r): Likewise.
29739         * lib/getopt_.h (__getopt_argv_const): Remove.
29740         (getopt): Argv is now char * const *, as per standard.
29741
29742         * lib/getdate.y (tORDINAL): New token.
29743         (day, relunit): Allow it for relative times.
29744         (relative_time_table): Use tORDINAL for ordinals.
29745
29746 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
29747
29748         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
29749         Document that "second" isn't allowed as an ordinal number.
29750
29751 2004-11-16  Jim Meyering  <jim@meyering.net>
29752
29753         * modules/closeout (Depends-on): Add fpending.
29754
29755 2004-11-15  Jim Meyering  <jim@meyering.net>
29756
29757         * lib/closeout.c: Include "__fpending.h" once again.
29758         Include <stdbool.h>.
29759         (close_stdout): Don't fail just because stdout was closed initially,
29760         since some programs don't write to stdout in the normal course of
29761         operation (other than --version and --help), and we don't want this
29762         function to make e.g. `touch file >&-' fail.
29763         But do fail if it was closed and someone has tried to write to it.
29764         E.g., `printf foo >&-' must fail.
29765
29766 2004-11-13  Jim Meyering  <jim@meyering.net>
29767
29768         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
29769
29770 2004-11-12  Simon Josefsson  <jas@extundo.com>
29771
29772         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
29773         small doc fix is still pending.
29774
29775 2004-11-11  Simon Josefsson  <jas@extundo.com>
29776
29777         * modules/strtok_r: New file.
29778
29779         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29780         strtok_r.
29781
29782 2004-11-11  Simon Josefsson  <jas@extundo.com>
29783
29784         * m4/strtok_r.m4: New file.
29785
29786         * m4/getopt.m4: Replace opterr.
29787
29788 2004-11-11  Simon Josefsson  <jas@extundo.com>
29789
29790         * lib/strtok_r.h, strtok_r.c: New file.
29791
29792 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
29793
29794         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
29795         of replacing opterr, getopt, etc.  This should handle the
29796         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
29797
29798 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
29799
29800         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
29801         we can stop lying to compilers about the constness of argv when we
29802         are compiled outside glibc.
29803         (getopt, getopt_long, getopt_long_only): Use it.
29804         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
29805         _getopt_internal, getopt): Likewise.
29806         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
29807         _getopt_long_only_r): Likewise.
29808         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
29809         _getopt_long_r, _getopt_long_only_r): Likewise.
29810
29811         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
29812         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
29813         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
29814         the other external symbols.
29815         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
29816         declaration, since the above renaming now works around collisions.
29817
29818 2004-11-11  Jim Meyering  <jim@meyering.net>
29819
29820         * lib/linebreak.c: Remove trailing blanks.
29821         * lib/alloca_.h: Likewise.
29822         * lib/acosl.c: Likewise.
29823         * lib/euidaccess.c: Likewise.
29824         * lib/allocsa.h: Likewise.
29825
29826 2004-11-10  Simon Josefsson  <jas@extundo.com>
29827
29828         * m4/getaddrinfo.m4: New file.
29829
29830 2004-11-10  Simon Josefsson  <jas@extundo.com>
29831
29832         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
29833
29834 2004-11-10  Simon Josefsson  <jas@extundo.com>
29835
29836         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29837         getaddrinfo.
29838
29839         * modules/getaddrinfo: New file.
29840
29841 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
29842
29843         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
29844
29845 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
29846
29847         * lib/mktime.c (SHR): New macro, which is a portable
29848         substitute for >> that should work even on Crays.
29849         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
29850         Problem reported by Mark D. Baushke in
29851         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
29852         * lib/getdate.y (SHR): Likewise.
29853         (tm_diff): Use it.
29854         * lib/strftime.c (SHR): Likewise.
29855         (tm_diff): Use it.
29856         * lib/quotearg.c (struct quoting_options): Use unsigned int for
29857         quote_these_too, so that right shifts are well defined.  All uses
29858         changed.
29859
29860 2004-11-10  Jim Meyering  <jim@meyering.net>
29861
29862         Ensure that no close failure goes unreported.
29863         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
29864         return early when it seems there's nothing to flush.
29865         Don't include __fpending.h.
29866
29867 2004-11-10  Jim Meyering  <jim@meyering.net>
29868
29869         * modules/closeout (Depends-on): Remove fpending.
29870
29871 2004-11-10  Jim Meyering  <jim@meyering.net>
29872
29873         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
29874
29875 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
29876
29877         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
29878         gl_FUNC_STRFTIME.
29879         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
29880         and AC_REQUIRE when possible, to avoid duplicate checks.
29881         Check for <wchar.h>.
29882
29883 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
29884
29885         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
29886
29887 2004-11-09  Bruno Haible  <bruno@clisp.org>
29888
29889         * m4/sockpfaf.m4: New file.
29890
29891 2004-11-05  Bruno Haible  <bruno@clisp.org>
29892
29893         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
29894         Reported by Mark D. Baushke <mdb@cvshome.org>.
29895
29896 2004-11-04  Bruno Haible  <bruno@clisp.org>
29897
29898         2004-09-11  Bruno Haible  <bruno@clisp.org>
29899                 * allocsa.valgrind: New file.
29900         2004-02-06  Bruno Haible  <bruno@clisp.org>
29901                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
29902                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
29903                 Reported by Christopher Seip <chris.seip@hp.com>.
29904
29905 2004-11-04  Bruno Haible  <bruno@clisp.org>
29906
29907         * modules/allocsa (Files): Add lib/allocsa.valgrind.
29908         (Makefile.am): Distribute it.
29909
29910 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
29911
29912         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
29913         with errno == ERANGE if the buffer is too small.
29914         Problem reported by Mark D. Baushke.
29915
29916 2004-11-03  Albert Chin  <china@thewrittenword.com>
29917             Paul Eggert  <eggert@cs.ucla.edu>
29918
29919         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
29920         equivalent, substitute $ac_type for equivalent type rather than
29921         blindly using uint32_t *always* which won't work if uint32_t is not
29922         available.  Define _UINT32_T to work around typedef of uint32_t if
29923         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
29924         2.5.1.
29925
29926 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
29927
29928         * m4/jm-macros.m4: Sync from coreutils.
29929         (gl_MACROS): Check for mbrlen, for pathchk.
29930         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
29931
29932 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
29933
29934         * lib/xreadlink.c (MAXSIZE): New macro.
29935         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
29936         size does not exceed MAXSIZE.  Avoid cast.
29937         As suggested by Mark D. Baushke in
29938         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
29939         if readlink fails with buffer size just under MAXSIZE, try again
29940         with MAXSIZE.
29941
29942 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
29943
29944         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
29945
29946 2004-11-02  Derek R. Price  <derek@ximbiot.com>
29947         and  Paul Eggert  <eggert@cs.ucla.edu>
29948
29949         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
29950         (get_date): Overparenthesize to avoid GCC warning.
29951
29952 2004-11-02  Bruno Haible  <bruno@clisp.org>
29953
29954         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
29955         returns void.
29956
29957 2004-11-02  Bruno Haible  <bruno@clisp.org>
29958
29959         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
29960         function returns void.
29961
29962 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
29963
29964         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
29965         fflush_unlocked, flockfile, funlockfile, funlockfile,
29966         fputs_unlocked, putc_unlocked.
29967
29968 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
29969
29970         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
29971         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
29972         already declared.
29973
29974 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
29975
29976         * modules/getdate (Files): Add doc/getdate.texi.
29977         (Depends-on): Add setenv, xalloc.
29978
29979 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
29980
29981         * lib/getdate.y: Add support for TZ="foo" within a date string.
29982         Fix some bugs near time_t boundaries.  Reject dates with
29983         out-of-range components, e.g., "Sept 31".
29984         Include <stdlib.h>, "setenv.h", "xalloc.h".
29985         (ISDIGIT_LOCALE): Remove; unused.
29986         Note that the TZ and time functions used here are not reentrant.
29987         (mktime_ok, get_tz): New functions.
29988         (TZBUFSIZE): New constant.
29989         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
29990         This requires that we sometimes generate our own TZ="XXX..." setting.
29991
29992 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
29993
29994         * doc/getdate.texi: New file, from coreutils with modifications for
29995         the new TZ parsing.
29996
29997 2004-10-27  Derek R. Price  <derek@ximbiot.com>
29998
29999         * lib/mktime.c (not_equal_tm): Remove redundant check.
30000
30001 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30002
30003         * modules/regex (lib_SOURCES): Add regex.c.
30004         Reported by James Youngman in
30005         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
30006
30007 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30008
30009         * lib/getdate.y: Use Bison 1.875 features, and some minor
30010         code cleanups.  This change does not affect semantics.
30011         Don't include <stdlib.h>; no longer needed.
30012         Don't include unlocked-io.h; only the "#if TEST" code uses
30013         stdio, and performance isn't crucial there.
30014         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
30015         Bison 1.875 features as described below.
30016         All uses of "PC." replaced by "pc->".
30017         (YYSTYPE): Add a forward declaration.
30018         (yylex, yyerror): Use full prototypes in forward decls.
30019         Use "%pure-parser" rather than obsolescent "%pure_parser".
30020         Use %parse-param and %lex-param instead of obsolescent
30021         YYPARSE_PARAM and YYLEX_PARAM.
30022         (meridian_table, month_and_day_table, time_units_table,
30023         relative_time_table, time_zone_table, military_table,
30024         lookup_zone, lookup_word, get_date):
30025         Use NULL instead of 0 where appropriate.
30026         (to_hour): Avoid abort (), to avoid a dependency on
30027         stdlib.h.
30028         (yyerror, yylex): Now accepts parser_control * arg.
30029         (main) [TEST]: Use '\0' rather than 0 for char.
30030
30031 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30032
30033         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
30034
30035 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30036
30037         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
30038         It's now the caller's responsibility to handle the case where
30039         !HAVE_GETPAGESIZE && !defined getpagesize.
30040
30041         * lib/mktime.c (leapyear): Arg is long int, not int.
30042
30043 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
30044
30045         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
30046
30047 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
30048
30049         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
30050         missing.  Problem reported by James Youngman.
30051
30052 2004-10-16  Simon Josefsson  <jas@extundo.com>
30053
30054         * gnulib-tool: Fix comments.  Fix parse problem.
30055         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
30056
30057 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
30058
30059         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
30060         implementation of getopt_long.  Problem reported by Alexander Taler in:
30061         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
30062
30063 2004-10-15  Bruno Haible  <bruno@clisp.org>
30064
30065         * gnulib-tool: Untabify. Initialize supplied_libname.
30066         (func_usage): More homogenous output.
30067         (func_modules_transitive_closure, func_modules_to_filelist,
30068         func_emit_lib_Makefile_am): New functions.
30069         (func_import): New function, extracted from big case statement. Use
30070         func_get_license, func_modules_transitive_closure,
30071         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
30072         opt_lgpl. Don't use test -a, as it's not portable.
30073         (func_create_testdir): Use func_modules_transitive_closure,
30074         func_modules_to_filelist, func_emit_lib_Makefile_am.
30075
30076 2004-10-15  Bruno Haible  <bruno@clisp.org>
30077
30078         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
30079
30080 2004-10-15  Bruno Haible  <bruno@clisp.org>
30081
30082         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
30083         the portions belonging to each module.
30084         Suggested by Derek Robert Price <derek@ximbiot.com>.
30085
30086 2004-10-12  Simon Josefsson  <jas@extundo.com>
30087
30088         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
30089         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
30090         to real functions.
30091
30092 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30093
30094         * modules/vsnprintf: New file.
30095
30096 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30097
30098         * m4/vsnprintf.m4: New file.
30099
30100 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30101
30102         * lib/vsnprintf.h: New file.
30103         * lib/vsnprintf.c: New file.
30104
30105 2004-10-11  Bruno Haible  <bruno@clisp.org>
30106
30107         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
30108         vsnprintf.
30109
30110 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30111
30112         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
30113
30114 2004-10-07  Bruno Haible  <bruno@clisp.org>
30115
30116         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
30117         fits into the provided buffer.
30118
30119 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
30120
30121         * lib/diacrit.c, diacrit.h: Add GPL notice.
30122
30123         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
30124         notice.
30125         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
30126         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
30127         This avoids a potential constant-folding bug.
30128
30129 2004-10-05  Bruno Haible  <bruno@clisp.org>
30130
30131         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
30132         for the declaration of strsep.
30133
30134 2004-10-05  Bruno Haible  <bruno@clisp.org>
30135
30136         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
30137
30138 2004-10-04  Simon Josefsson  <jas@extundo.com>
30139
30140         * modules/memmem: New file.
30141         * tests/test-memmem.c: New file.
30142         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
30143
30144 2004-10-04  Simon Josefsson  <jas@extundo.com>
30145
30146         * m4/memmem.m4: New file.
30147
30148 2004-10-04  Simon Josefsson  <jas@extundo.com>
30149
30150         * lib/memmem.h: New file.
30151         * lib/memmem.c: New file, taken from glibc.
30152
30153 2004-10-04  Simon Josefsson  <jas@extundo.com>
30154
30155         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
30156         '#ifdef USE_UNLOCKED_IO'.
30157
30158 2004-10-04  Simon Josefsson  <jas@extundo.com>
30159
30160         * config/srclist.txt: Add memmem from glibc.
30161
30162 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
30163
30164         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
30165
30166         * modules/argmatch, modules/argp, modules/closeout, modules/error,
30167         modules/exclude, modules/getdate, modules/getline,
30168         modules/getndelim2, modules/getpass, modules/getpass-gnu,
30169         modules/getusershell, modules/linebuffer, modules/md5,
30170         modules/mountlist, modules/posixtm, modules/readtokens,
30171         modules/readutmp, modules/regex, modules/sha1,
30172         modules/version-etc, modules/yesno:
30173         Remove dependency on unlocked-io.
30174
30175 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
30176
30177         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
30178
30179         * m4/unlocked-io.m4: Add copyright notice.
30180         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
30181
30182 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
30183
30184         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
30185         * lib/xmalloc.c (xmemdup): Likewise.
30186         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
30187         XFREE): Remove these long-obsolescent macros.
30188         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
30189         * lib/xstrdup.c: Remove.
30190
30191         * lib/regex.c (re_comp): Cast gettext return value to char *,
30192         Problem reported by Martin Neitzel via Mark D. Baushke.
30193
30194 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
30195
30196         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
30197         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
30198         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
30199         regex.c, sha1.c, version-etc.c, yesno.c:
30200         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
30201         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
30202         the includer's responsibility.
30203
30204         Sync from coreutils.
30205
30206         * lib/modechange.c (mode_compile): Don't decrement a pointer that
30207         points to the start of a string, as the C Standard says the
30208         resulting behavior is undefined.
30209
30210         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
30211         simple -> simple_backups, numbered_existing ->
30212         numbered_existing_backups, numbered -> numbered_backups
30213         to avoid shadowing problems.  All uses changed.
30214         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
30215         * lib/backupfile.c (check_extension, numbered_backup):
30216         Rename locals to avoid shadowing 'basename'.
30217         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
30218         once.
30219
30220         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
30221         * lib/.cvsignore: Add getopt.h.
30222
30223 2004-10-04  Bruno Haible  <bruno@clisp.org>
30224
30225         * modules/README: New file.
30226         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
30227         not a module.
30228
30229 2004-10-02  Jim Meyering  <jim@meyering.net>
30230
30231         * lib/dirfd.h, getpagesize.h: Add copyright notice.
30232
30233 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30234
30235         * modules/strsep: New file.
30236
30237 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30238
30239         * m4/strsep.m4: New file.
30240
30241 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30242
30243         * lib/strsep.h: New file.
30244         * lib/strsep.c: New file.
30245
30246 2004-10-01  Simon Josefsson  <jas@extundo.com>
30247
30248         * lib/snprintf.c (snprintf): Handle size==0.
30249
30250 2004-10-01  Simon Josefsson  <jas@extundo.com>
30251             Bruno Haible  <bruno@clisp.org>
30252
30253         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
30254         (snprintf): Declare 'args'.
30255
30256 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
30257
30258         * lib/snprintf.c: Remove comments as to why each header is needed.
30259
30260 2004-10-01  Bruno Haible  <bruno@clisp.org>
30261
30262         * MODULES.html.sh: Add strsep.
30263
30264 2004-09-30  Simon Josefsson  <jas@extundo.com>
30265
30266         * modules/snprintf: New file.
30267
30268 2004-09-30  Simon Josefsson  <jas@extundo.com>
30269
30270         * m4/snprintf.m4: New file.
30271
30272 2004-09-30  Simon Josefsson  <jas@extundo.com>
30273
30274         * lib/snprintf.h, lib/snprintf.c: New files.
30275
30276 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30277
30278         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
30279         (hol_entry_help): Never translate an empty string.
30280         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
30281         * lib/argp.h (OPTION_NO_TRANS): New option.
30282
30283 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
30284
30285         * modules/argp (Maintainer): Replace Simon Josefsson
30286         by Sergey Poznyakoff.
30287
30288 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
30289
30290         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
30291         changes merged back into glibc.
30292
30293 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
30294
30295         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
30296
30297 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
30298
30299         * lib/xvasprintf.c: Include xalloc.h.
30300         (xvasprintf): Use xalloc_die, not xmalloc_die.
30301
30302 2004-09-29  Bruno Haible  <bruno@clisp.org>
30303
30304         * modules/alloca-opt: New file, derived from modules/alloca.
30305         * modules/allocsa: Depend on alloca-opt instead of alloca.
30306         * modules/setenv: Likewise.
30307         * modules/vasnprintf: Likewise.
30308         * MODULES.html.sh: Add alloca-opt.
30309
30310 2004-09-28  Simon Josefsson  <jas@extundo.com>
30311
30312         * gnulib-tool: New parameter --lgpl, to asseert that modules are
30313         LGPL, and to replace license template from GPL to LGPL.
30314
30315 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
30316
30317         * modules/dummy: Change license to LGPL.
30318
30319 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
30320
30321         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
30322
30323 2004-09-24  Simon Josefsson  <jas@extundo.com>
30324
30325         * modules/minmax (License): Change from GPL to LGPL.
30326
30327 2004-09-23  Simon Josefsson  <jas@extundo.com>
30328
30329         * gnulib-tool (--import): Typo.
30330
30331 2004-09-23  Simon Josefsson  <jas@extundo.com>
30332
30333         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
30334
30335 2004-09-22  Bruno Haible  <bruno@clisp.org>
30336
30337         * modules/*: Add 'License' field.
30338         * gnulib-tool: Accept --extract-license option.
30339         (func_get_license): New function.
30340
30341 2004-09-21  Bruno Haible  <bruno@clisp.org>
30342
30343         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
30344         Reported by Simon Josefsson.
30345
30346 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
30347
30348         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
30349         gl_AC_TYPE_LONG_LONG.
30350
30351 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
30352
30353         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
30354
30355 2004-09-18  Simon Josefsson  <jas@extundo.com>
30356         and  Paul Eggert  <eggert@cs.ucla.edu>
30357
30358         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
30359         calls with autoreconf.  Define GL_LIB.
30360
30361 2004-09-14  Karl Berry  <karl@gnu.org>
30362
30363         * config/srclist.txt: unsync setenv.c, sigh.
30364
30365 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30366
30367         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
30368         Problem reported by Bruno Haible in:
30369         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
30370
30371 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30372
30373         * config/srclist.txt: Comment out argp-pvh.c.
30374
30375 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
30376
30377         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
30378         in case some system header has #define'd it.  Problem reported by
30379         Soeren D. Schulze in
30380         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
30381
30382 2004-09-09  Karl Berry  <karl@gnu.org>
30383
30384         * regex.[ch]: delete from the root.  These were supposed to be
30385                 synced with emacs cvs, but this has not happened for about
30386                 a year, and anyway nothing else uses emacs regex.[ch].
30387                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
30388                 lib/regex[.ch] is untouched.
30389
30390 2004-09-09  Bruno Haible  <bruno@clisp.org>
30391
30392         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
30393
30394 2004-09-09  Bruno Haible  <bruno@clisp.org>
30395
30396         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
30397         modifications.
30398         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
30399
30400 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
30401
30402         * modules/xvasprintf: New file.
30403         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
30404
30405 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
30406
30407         * lib/xvasprintf.h: New file.
30408         * lib/xvasprintf.c: New file.
30409         * lib/xasprintf.c: New file.
30410
30411 2004-09-08  Bruno Haible  <bruno@clisp.org>
30412
30413         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
30414
30415 2004-09-08  Bruno Haible  <bruno@clisp.org>
30416
30417         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
30418         length is > INT_MAX.
30419         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
30420         more.
30421
30422 2004-09-08  Bruno Haible  <bruno@clisp.org>
30423
30424         * lib/stdint_.h: New file, taken from GNU clisp.
30425
30426 2004-09-08  Bruno Haible  <bruno@clisp.org>
30427             Oskar Liljeblad  <oskar@osk.mine.nu>
30428
30429         * modules/stdint: New file.
30430         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
30431
30432 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30433
30434         Import from coreutils.
30435         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
30436         strings on unbounded length.  alloca's performance benefits aren't
30437         that important here.
30438         (V_STRDUP): Remove.
30439         (parse_with_separator): New function, with most of the internals
30440         of the old parse_user_spec.  Allow user to omit both user and group,
30441         for compatibility with FreeBSD.
30442         Clone only the user name, not the entire spec.
30443         Do not set *uid, *gid unless entirely successful.
30444         Avoid memory leak in some failing cases.
30445         Fix regression for USER.GROUP reported by Dmitry V. Levin in
30446         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
30447         (parse_user_spec): Rewrite to use parse_with_separator.
30448
30449 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30450
30451         * modules/userspec: Don't depend on alloca.
30452
30453 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30454
30455         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
30456
30457 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
30458
30459         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
30460         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
30461         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
30462
30463 2004-08-16  Simon Josefsson  <jas@extundo.com>
30464
30465         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
30466         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
30467         Add --dry-run for --import.
30468         Let user provided command line parameters override configure.ac
30469         settings.
30470
30471 2004-08-12  Simon Josefsson  <jas@extundo.com>
30472
30473         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
30474         as discussed with Paul Eggert in threads rooted at
30475         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
30476         and
30477         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
30478         Before, the test was empty, and relied on ELIDE_CODE in source
30479         code.)
30480         (gl_PREREQ_GETOPT): New macro.
30481         (gl_GETOPT): Use them.
30482
30483 2004-08-12  Simon Josefsson  <jas@extundo.com>
30484
30485         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
30486         * lib/getopt_.h: Renamed from getopt.h.
30487
30488 2004-08-12  Simon Josefsson  <jas@extundo.com>
30489
30490         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
30491         Change default library name from libfoo to libgnu.
30492         Now, if you have a configure.ac that says:
30493                 gl_SOURCE_BASE(gl)
30494                 gl_M4_BASE(gl/m4)
30495                 gl_MODULES(error getopt etcetera)
30496                 gl_INIT
30497         you can import all you need by running:
30498                 ../gnulib/gnulib-tool --import
30499
30500         * modules/getopt (Files): Rename getopt.h to getopt_.h.
30501         (Makefile.am): Rewrite, use logic from argz.
30502         (Include): Use <getopt.h> instead of "getopt.h".
30503
30504 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
30505
30506         * modules/argp (Files): Add m4/unlocked-io.m4.
30507         (Depends-on): Add extensions.
30508
30509 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
30510
30511         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
30512         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
30513         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
30514         Check for program_invocation_name, program_invocation_short_name,
30515         flockfile, funlockfile, features.h, _getopt_long_only_r.
30516
30517 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
30518
30519         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
30520         its complicated substitute.
30521         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
30522         and program_invocation_name.
30523         (__argp_basename) [!_LIBC]: Remove; the only use was
30524         replaced by its body.
30525         (__argp_short_program_name): Change condition from
30526         !defined __argp_short_program_name to
30527         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
30528         to match argp-namefrob.h.
30529         (__argp_failure): Don't assume strerror_r returns char *.
30530         * lib/argp-parse.c (N_): Define unconditionally.
30531         (argp_default_options): Fill out initializers with 0 to avoid
30532         gcc warnings.
30533
30534 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
30535
30536         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
30537         getopt1.c.
30538
30539 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
30540
30541         Merge from coreutils.
30542
30543         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
30544
30545         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
30546         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
30547
30548 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
30549
30550         Merge from coreutils.
30551
30552         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
30553         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
30554         for Reliant Unix 5.43.
30555
30556         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
30557         (union fooround): Use uintmax_t, not long int.
30558         The rest is a merge from libc:
30559         [defined _LIBC]: Include <shlib-compat.h>.
30560         (_obstack) [defined _LIBC]: Remove after 2.3.4.
30561
30562         * lib/settime.c (settime): Recode to avoid warning with
30563         Sun Forte C 6U2.
30564
30565         * lib/strverscmp.c: Convert to UTF-8.
30566
30567 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
30568
30569         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
30570         m4/uintmax_t.m4.
30571
30572 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
30573
30574         * modules/xalloc-die: New file.
30575         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
30576
30577         * modules/md5 (Files): Add m4/uint32_t.m4.
30578         * modules/sha1: Renamed from modules/sha.
30579         (Files):
30580         Rename lib/sha.h to lib/sha1.h.
30581         Rename lib/sha.c to lib/sha1.c.
30582         Rename m4/sha.m4 to m4/sha1.m4.
30583         (lib_SOURCES): Likewise.
30584         (configure.ac): Rename gl_SHA to gl_SHA1.
30585         (Include): sha.h -> sha1.h.
30586
30587 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
30588
30589         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
30590         * m4/sha1.m4: Renamed from sha.m4.
30591         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
30592
30593 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
30594
30595         * lib/obstack.h (obstack_empty_p):
30596         Don't assume that chunk->contents is suitably aligned.
30597         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
30598         Likewise. Problem reported by Benno in
30599         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
30600
30601         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
30602         readable.  This could be improved further but it'd take some work.
30603
30604 2004-08-08  Simon Josefsson  <jas@extundo.com>
30605
30606         * modules/xgethostname (Depends-on): Remove exit and error (not
30607         used).
30608
30609         * modules/getpass-gnu: Add getpass.h.
30610         (Depends-on): Add stdbool.
30611         * modules/getpass: Add getpass.h.
30612
30613 2004-08-08  Simon Josefsson  <jas@extundo.com>
30614
30615         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
30616         Check getpass declaration.
30617
30618 2004-08-08  Simon Josefsson  <jas@extundo.com>
30619
30620         * lib/xgethostname.c: Don't include error.h (not used).
30621
30622         * lib/getpass.h: Add.
30623         * lib/getpass.c: Include getpass.h first.
30624
30625 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
30626
30627         * lib/xalloc-die.c: New file.
30628         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
30629         All uses removed.
30630         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
30631         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
30632         xalloc-die.c.
30633         (_, N_, xalloc_die): Move to xalloc-die.c.
30634         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
30635         so that we needn't mess with xalloc_msg_memory_exhausted.
30636
30637         * lib/sha1.h: Renamed from sha.h.
30638         (SHA1_H): Renamed from _SHA_H.
30639         (sha1_ctx): Renamed from sha_ctx.
30640         (sha1_init_ctx): Renamed from sha_init_ctx.
30641         (sha1_process_block): Renamed from sha_process_block.
30642         (sha1_process_bytes): Renamed from sha_process_bytes.
30643         (sha1_finish_ctx): Renamed from sha_finish_ctx.
30644         (sha1_read_ctx): Renamed from sha_read_ctx.
30645         (sha1_stream): Renamed from sha_stream.
30646         (sha1_buffer): Renamed from sha_buffer.
30647         * lib/sha1.c: Likewise; renamed from sha.c.
30648         Do not include <sys/types.h>.
30649         Include <stddef.h> rather than <stdlib.h>.
30650
30651 2004-08-08  Bruno Haible  <bruno@clisp.org>
30652
30653         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
30654         FILESYSTEM_PREFIX_LEN.
30655         * lib/progreloc.c: Likewise.
30656         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
30657
30658 2004-08-06  Simon Josefsson  <jas@extundo.com>
30659
30660         * modules/progname (Depends-on): Don't depend on stdbool.
30661
30662 2004-08-06  Simon Josefsson  <jas@extundo.com>
30663
30664         * modules/getsubopt: New file.
30665         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30666         getsubopt.
30667
30668 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
30669
30670         More merge from coreutils.
30671
30672         * m4/utimens.m4, m4/utimecmp.m4: New files.
30673         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
30674         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
30675         prereq.m4, sha.m4: Import changes from coreutils.
30676
30677 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
30678
30679         More merge from coreutils.
30680         * modules/raise, modules/readtokens0, modules/utimens:
30681         * modules/utimecmp, module/xnanosleep: New files.
30682         * modules/strftime: Add lib/strftime.h.
30683         Change include from <time.h> to "strftime.h".
30684         * modules/yesno: Add lib/yesno.h.
30685         * modules/backupfile: Remove lib/addext.c.
30686         * modules/euidaccess: Add stat-macros.h.
30687         * modules/canonicalize, modules/euidaccess,
30688         modules/filemode, modules/lchown, modules/makepath,
30689         modules/rmdir, modules/stat: Likewise.
30690
30691 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
30692
30693         Merge from tar.
30694         * lib/argp-help.c (make_hol, hol_append): Don't assume that
30695         SIZE_MAX is a valid preprocessor constant.
30696         (__argp_basename): Change from "#ifndef _LIBC"
30697         to "#ifndef __argp_short_program_name", so that
30698         we don't compile these functions for tar.
30699
30700         More merges from coreutils.
30701         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
30702         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
30703         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
30704         * lib/addext.c: Remove; no longer needed.
30705         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
30706         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
30707         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
30708         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
30709         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
30710         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
30711         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
30712         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
30713         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
30714         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
30715         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
30716         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
30717         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
30718         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
30719         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
30720         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
30721         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
30722         Import changes from coreutils.
30723
30724 2004-08-05  Simon Josefsson  <jas@extundo.com>
30725
30726         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
30727
30728 2004-08-05  Simon Josefsson  <jas@extundo.com>
30729
30730         * m4/getsubopt.m4: New file.
30731
30732 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
30733
30734         Merge from coreutils.
30735
30736         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
30737         * m4/getcwd-path-max.m4: New files.
30738
30739         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
30740         FILESYSTEM_PREFIX_LEN ->
30741         FILE_SYSTEM_PREFIX_LEN.
30742         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
30743         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
30744         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
30745         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
30746
30747         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
30748         prerequisite modules now handle the DOS stuff.
30749         Don't check for unistd.h.
30750
30751 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
30752
30753         Merge from coreutils.
30754
30755         * lib/.gdb-history: Remove; this doesn't belong here.
30756
30757         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
30758         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
30759         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
30760         * lib/getcwd.c: New files.
30761
30762         * lib/dirname.h: Include <stdbool.h>.
30763         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
30764         for consistency with POSIX terminology.  All uses changed.
30765         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
30766         (strip_trailing_slashes): Use bool for booleans.
30767         * lib/stripslash.c (strip_trailing_slashes): Likewise.
30768
30769         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
30770         sometimes returns a positive errno value even when it succeeds.
30771         (print_errno_message) [!LIBC]: Fall back on strerror if
30772         __strerror_r fails.
30773
30774         * lib/path-concat.c (mempcpy): Don't define if a system header defines
30775         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
30776         (longest_relative_suffix): New function.
30777         (path_concat): Use it.  Assume first argument is not NULL.
30778         Port to DOS.  Omit redundant separators.
30779         Report an error instead of returning NULL.
30780         Use mempcpy instead of memcpy.
30781         (xpath_concat): Remove: not declared or used.
30782
30783         * lib/same.h: Include <stdbool.h>
30784         (same_name): Return bool, not int.
30785         * lib/same.c (same_name): Likewise.
30786         (errno): Don't declare; we assume C89 or better now.
30787
30788         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
30789         if not already defined.
30790
30791         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
30792         * lib/dup-safer.c (errno): Likewise.
30793
30794 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
30795
30796         Merge from coreutils.
30797         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
30798         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
30799         * modules/path-concat: Don't depend on strdup.
30800
30801 2004-08-03  Simon Josefsson  <jas@extundo.com>
30802
30803         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
30804         * lib/progname.h: Don't include stdbool.h.
30805
30806 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
30807
30808         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
30809         * MODULES.html.sh (func_all_modules): Remove fatal.
30810
30811 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
30812
30813         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
30814
30815 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
30816
30817         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
30818         working.
30819
30820 2004-08-02  Simon Josefsson  <jas@extundo.com>
30821
30822         * lib/getsubopt.h: New file, with comments from Bruno Haible.
30823         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
30824         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
30825
30826 2004-08-01  Simon Josefsson  <jas@extundo.com>
30827
30828         * lib/xgetdomainname.c: Include stdlib.h, for free().
30829
30830 2004-07-19  Bruno Haible  <bruno@clisp.org>
30831
30832         * MODULES.html.sh (func_all_modules): Add dummy.
30833
30834 2004-07-16  Simon Josefsson  <jas@extundo.com>
30835
30836         * modules/dummy: New file.
30837
30838 2004-07-16  Simon Josefsson  <jas@extundo.com>
30839
30840         * lib/dummy.c: New file.
30841
30842 2004-07-16  Bruno Haible  <bruno@clisp.org>
30843
30844         * lib/backupfile.h: Add extern "C" for C++.
30845         * lib/closeout.h: Likewise.
30846         * lib/copy-file.h: Likewise.
30847         * lib/findprog.h: Likewise.
30848         * lib/full-write.h: Likewise.
30849         * lib/pathname.h: Likewise.
30850         * lib/progname.h: Likewise.
30851         * lib/stpcpy.h: Likewise.
30852         * lib/stpncpy.h: Likewise.
30853         * lib/strcase.h: Likewise.
30854         * lib/strstr.h: Likewise.
30855         * lib/xalloc.h: Likewise.
30856
30857         * lib/mbswidth.h: Add extern "C" for C++.
30858         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
30859
30860 2004-07-13  Robert Millan  <robertmh@gnu.org>
30861
30862         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
30863
30864 2004-07-09  Simon Josefsson  <jas@extundo.com>
30865
30866         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
30867         failed without this.)
30868
30869 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
30870
30871         * modules/chown (Files): Add lib/fchown-stub.c, since
30872         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
30873
30874 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
30875
30876         * lib/fchown-stub.c: New file.
30877
30878 2004-06-24  Jim Meyering  <jim@meyering.net>
30879
30880         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
30881
30882 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
30883
30884         * modules/argz: Omit "#include".
30885
30886         * MODULES.html.sh (func_all_modules): Add calloc, to match
30887         2004-06-01 addition of calloc module.
30888
30889 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
30890
30891         * m4/argz.m4: New file, which is autoupdated from libtool.
30892
30893 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
30894
30895         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
30896         libtool.
30897
30898 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
30899
30900         * config/srclist-update: Don't insist on "USA." before the
30901         close-comment, as libtool omits the period and puts the */ on a
30902         separate line.
30903         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
30904         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
30905
30906 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
30907
30908         * modules/argz: New file.
30909         * MODULES.html.sh (func_all_modules): Add argz.
30910
30911 2004-06-12  Jim Meyering  <jim@meyering.net>
30912         and  Paul Eggert  <eggert@cs.ucla.edu>
30913
30914         * modules/hash (Files): Add lib/xalloc.h.
30915         * modules/pipe (Depends-on): Add wait-process.
30916         * modules/stat (Depends-on): Add xalloc.
30917         * modules/userspec (Files): Add lib/userspec.h.
30918         * modules/xstrto
30919
30920         Upgrade from gettext-0.13.
30921         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
30922         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
30923         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
30924
30925 2004-06-10  Jim Meyering  <jim@meyering.net>
30926
30927         * lib/calloc.c: New file.
30928
30929 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
30930
30931         * lib/getdate.y (yylex): Allow space between sign and number.
30932         Problem reported by Dan Jacobson.
30933
30934 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
30935
30936         Merge from coreutils CVS.
30937
30938         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
30939         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
30940         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
30941         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
30942         xstrtol.m4: Fix copyright date and/or serial number.
30943
30944         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
30945         See if we need an fchown replacement.
30946         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
30947         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
30948         and use the replacement function if we detect either defect.
30949
30950         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
30951         gl_UTIMECMP.
30952
30953 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
30954         and  Jim Meyering  <jim@meyering.net>
30955
30956         Merge from coreutils CVS.
30957
30958         * lib/stat-macros.h: New file, with contents from file-type.h
30959         and coreutils' system.h.
30960         * lib/file-type.c: Include "stat-macros.h".
30961         * lib/file-type.h (file_type): Move all macro definitions to new file,
30962         stat-macros.h.
30963
30964         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
30965         Wrap old code with this conditional.
30966         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
30967         function that does not dereference symlinks.
30968         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
30969
30970         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
30971         dependency problems.
30972         (xreadlink): Accept new arg SIZE, for efficiency.
30973         All decls and uses changed.
30974         * lib/xreadlink.h: Include <stddef.h>, for size_t.
30975
30976         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
30977         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
30978
30979         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
30980         sysexits.h.
30981
30982 2004-06-01  Jim Meyering  <jim@meyering.net>
30983
30984         * m4/calloc.m4: New file.
30985
30986 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
30987
30988         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
30989         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
30990         Also, fix a typo in a diagnostic.
30991
30992 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
30993
30994         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
30995         or AC_FUNC_REALLOC.
30996
30997 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
30998
30999         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
31000         macros to be defined.
31001         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
31002         the allocator returns NULL because the requested size is zero.
31003
31004 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
31005
31006         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
31007         var.  Add comment explaining why libc still defines it.  This
31008         merges the following patch from glibc:
31009         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
31010
31011 2004-05-20  Andreas Schwab  <schwab@suse.de>
31012
31013         * m4/free.m4: Replace free if it not known to work, not the other
31014         way round.
31015
31016 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
31017
31018         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
31019         present in glibc since revision 1.1 of this file.
31020         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
31021         obstack_alignment_mask, obstack_alloc, obstack_base,
31022         obstack_blank, obstack_blank_fast, obstack_chunk_size,
31023         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
31024         obstack_grow0, obstack_init, obstack_int_grow,
31025         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
31026         obstack_next_free, obstack_object_size, obstack_ptr_grow,
31027         obstack_ptr_grow_fast, obstack_room): Remove declarations of
31028         nonexistent functions.
31029
31030 2004-05-18  Karl Berry  <karl@gnu.org>
31031
31032         * config/srclist.txt: break link for vasnprintf.c.
31033
31034 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
31035
31036         Port obstack to the AS/400, where pointers are 16 bytes wide and
31037         you cannot cast an integer to a valid pointer.  This patch is
31038         currently waiting to be integrated into glibc; see
31039         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
31040
31041         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
31042         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
31043         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
31044         (struct obstack): temp member is now a union of a pointer and
31045         an integer, instead of an integer.  All integer uses changed.
31046         This does not affect the physical layout of struct obstack,
31047         except on hosts (like the AS/400) where the size or alignment of
31048         void * is greater than that of ptrdiff_t.
31049         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
31050         __STDC__)]: Store temporary in pointer member of union, not
31051         integer member.
31052         * lib/obstack.c: Include <stddef.h>, for offsetof.
31053         (struct fooalign): Remove; it doesn't need a name.
31054         (union fooround): Change double to long double, and add void *.
31055         (DEFAULT_ALIGNMENT): Use offsetof to compute.
31056         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
31057         not a macro.  Hence the values are always int; so remove all
31058         casts-to-int in uses.
31059
31060 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
31061
31062         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
31063         we can get this patch merged into glibc.
31064
31065 2004-05-17  Derek R. Price  <derek@ximbiot.com>
31066             Paul Eggert  <eggert@cs.ucla.edu>
31067
31068         * m4/argp: Depend on alloca.
31069
31070 2004-05-17  Derek R. Price  <derek@ximbiot.com>
31071             Paul Eggert  <eggert@cs.ucla.edu>
31072
31073         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
31074         freecoding.
31075
31076 2004-05-17  Bruno Haible  <bruno@clisp.org>
31077
31078         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
31079         precision that consists of a '.' followed by an empty digit string.
31080         Patch by Tor Lillqvist <tml@iki.fi>.
31081
31082 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
31083
31084         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
31085         for backward compatibility with older code.  We need our own
31086         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
31087         it under some other name, and our alloca.h will define it.
31088
31089 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
31090             Derek Price  <derek@ximbiot.com>
31091
31092         * lib/alloca.c: Include <alloca.h>, to get our interface.
31093         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
31094         include <alloca.h> first.  Use C89 prototype for alloca; this
31095         requires including <stddef.h> for size_t.  Use extern "C" if C++.
31096         Use #elif for simplicity, since we can assume C89 now.
31097         Don't try to source the system alloca.h since it will not be found
31098         and to prevent recursively including its replacement.
31099         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
31100         * lib/regex.c: Likewise.
31101
31102 2004-05-16  Derek Price  <derek@ximbiot.com>
31103             Paul Eggert  <eggert@cs.ucla.edu>
31104
31105         getline cleanup.  This changes the getndelim2 API: both order of
31106         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
31107         no delimiter).
31108
31109         * lib/getline.c: Don't include stddef.h or stdio.h, since our
31110         interface does that.
31111         (getline): Always use getdelim, so that we don't have two
31112         copies of this code.
31113         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
31114         if available.
31115         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
31116         (GETNDELIM2_MAXIMUM): New macro.
31117         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
31118         instead of the old practice of delim2==0.  All callers changed.
31119         Return -1 on overflow, instead of returning junk.
31120         Do not set *linesize unless allocation succeeds.
31121         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
31122         that we include sys/types.h.
31123         * lib/getnline.h: Likewise.
31124         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
31125         (getndelim2): Reorder arguments.
31126         * lib/getnline.c (getnline, getndelim):
31127         Don't discard the NMAX argument.
31128         (getnline): Invoke getndelim, to avoid code duplication.
31129         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
31130         of (size_t) -1 by callers of the getnline family.
31131
31132 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
31133
31134         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
31135         Check for gettimeofday.
31136         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
31137         Check for settimeofday, stime.
31138
31139 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
31140
31141         * lib/nanosleep.c (suspended): Change its type from int to
31142         sig_atomic_t volatile.
31143         (first_call): Make it private to rpl_nanosleep, and have it
31144         be zero initially as that's a bit faster.
31145         (my_usleep): Round up fractional times instead of truncating them,
31146         as this is the usual meaning for 'sleep'.
31147
31148         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
31149         doesn't work.
31150         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
31151         (ENOSYS): Define if not defined.
31152         (settime): Fall back on stime if it exists and settimeofday fails.
31153         But don't bother with fallbacks if a method fails with errno == EPERM.
31154
31155 2004-05-11  Jim Meyering  <jim@meyering.net>
31156
31157         Prior to this change, the save_cwd caller required read access to the
31158         current directory on most systems (ones with the fchdir function).
31159
31160         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
31161         fails, try write-only, and finally, resort to using xgetcwd.
31162
31163 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
31164
31165         * lib/obstack.c, obstack.h: Import changes from libc.
31166
31167 2004-04-28  Bruno Haible  <bruno@clisp.org>
31168
31169         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
31170         also implicitly appends .exe to executables.
31171         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
31172         accepts Windows pathnames.
31173         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
31174         Treat Cygwin like Windows, since it now accepts Windows pathnames.
31175         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
31176         Treat Cygwin like Windows, since it now accepts Windows pathnames.
31177         Reported by Derek Robert Price <derek@ximbiot.com>.
31178
31179 2004-04-21  Karl Berry  <karl@gnu.org>
31180
31181         * config/srclist.txt (localcharset.c): break sync.
31182
31183 2004-04-20  Paul Eggert  <eggert@twinsun.com>
31184
31185         * m4/host-os.m4: Add a copyright notice.
31186
31187 2004-04-20  Jim Meyering  <jim@meyering.net>
31188
31189         Change UTILS_ to gl_ in AC_DEFINE'd names.
31190         Change utils_- and jm_-prefixed variables, too.
31191         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
31192         UTILS_FUNC_MKDIR_TRAILING_SLASH.
31193         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
31194
31195         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
31196         Don't emit trailing blanks.
31197         Also rename jm_-prefixed variables to have gl_ prefix.
31198
31199         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
31200         Also rename jm_-prefixed variables to have gl_ prefix.
31201
31202         * m4/jm-macros.m4: Reflect the renamings.
31203         * m4/prereq.m4: Likewise.
31204
31205 2004-04-20  Jim Meyering  <jim@meyering.net>
31206
31207         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
31208         memory.
31209
31210 2004-04-20  Jim Meyering  <jim@meyering.net>
31211             Bruno Haible  <bruno@clisp.org>
31212
31213         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
31214         memory when realloc fails.
31215
31216 2004-04-19  Jim Meyering  <jim@meyering.net>
31217
31218         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
31219         now that readutmp.c may call `free (0)'.
31220
31221 2004-04-19  Bruno Haible  <bruno@clisp.org>
31222
31223         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
31224         * m4/inttypes_h.m4: Likewise.
31225         * m4/stdint_h.m4: Likewise.
31226         * m4/intmax_t.m4: Likewise.
31227         * m4/uintmax_t.m4: Likewise.
31228
31229 2004-04-18  Jim Meyering  <jim@meyering.net>
31230
31231         * m4/prereq.m4: Don't forbid jm_ prefix.
31232
31233         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
31234         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
31235         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
31236         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
31237         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
31238         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
31239         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
31240         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
31241         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
31242         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
31243         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
31244         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
31245         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
31246         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
31247         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
31248         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
31249         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
31250         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
31251         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
31252
31253 2004-04-18  Jim Meyering  <jim@meyering.net>
31254
31255         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
31256         failure, don't leak memory and do call END_UTMP_ENT.
31257
31258 2004-04-16  Jim Meyering  <jim@meyering.net>
31259
31260         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
31261         coreutils' stat program.
31262         (gl_PREREQ): Don't require jm_PREREQ_STAT.
31263
31264 2004-04-11  Paul Eggert  <eggert@twinsun.com>
31265
31266         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
31267         C89.
31268         (CHAR_BIT): Remove, since we assume C89.
31269         Include <stdint.h> if available, as per current Autoconf CVS advice.
31270
31271 2004-03-31  Jim Meyering  <jim@meyering.net>
31272
31273         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
31274         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
31275         * m4/xalloc.m4: Likewise.
31276
31277 2004-03-30  Paul Eggert  <eggert@twinsun.com>
31278
31279         Merge from coreutils.
31280
31281         * m4/inttostr.m4: New file.
31282         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
31283         Require AM_STDBOOL_H and gl_TIMESPEC instead.
31284         Require gl_CLOCK_TIME.
31285         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
31286
31287 2004-03-30  Paul Eggert  <eggert@twinsun.com>
31288
31289         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
31290         not bool, to be more consistent with Unix conventions.
31291         Suggested by Bruno Haible.
31292
31293         Merge from coreutils.
31294
31295         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
31296         * lib/umaxtostr.c: New files.
31297
31298         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
31299         the usual <time.h> dance.
31300         (get_date): Change signature to support fractional time stamps.
31301         All callers changed.
31302         * lib/getdate.y: Include "getdate.h" first, as we can now
31303         assume C89 and don't need to worry about 'const'.
31304         Similarly, include "unlocked-io.h" near start, not in middle.
31305         Include <limits.h>.
31306         (textint.value): Use long int rather than int.
31307         (textint.digits): Use size_t rather than int.
31308         (BILLION, LOG10_BILLION): New constants.
31309         (parser_control): New member rel_ns.  Members day_ordinal,
31310         time_zone, month, day, hour, minutes, rel_year, rel_month,
31311         rel_day, rel_hour, rel_minutes, rel_seconds
31312         are now long int, not int.  Member seconds is now struct timespec,
31313         not int.  New member timespec_seen.  Members dates_seen, days_seen,
31314         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
31315         not int.
31316         (%union.intval): Now long int, not int.
31317         New member timespec.
31318         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
31319         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
31320         (spec): Now is a timespec or an item list.
31321         (timespec, items): New nonterminals.
31322         (time, rel, relunit, number, get_date):
31323         Add support for fractional seconds.
31324         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
31325         (gmtime, localtime, mktime): Remove decls; not needed with C89.
31326         (to_hour): First arg is now long int, not int.
31327         (to_year): Returns long int, not int.
31328         Don't treat year -70 like 70.
31329         (tm_diff): Returns long int, not int.
31330         (lookup_word): Use bool instead of int when appropriate.
31331         (yylex): Use size_t for count, not int.
31332         Detect overflow when parsing large integer constants.
31333         Add support for fractions.
31334         (get_date): Make pointers 'const' if possible.
31335         Use more-portable code to detect integer overflow.
31336         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
31337         Don't use ctime; it's not reliable if the year has >4 digits.
31338
31339         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
31340         This is for compatibility with BSD.
31341
31342         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
31343         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
31344         From coreutils' system.h.
31345
31346         * lib/userspec.c: Don't include "posixver.h".
31347         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
31348         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
31349         compatible extension.  Simplify code by removing a boolean int
31350         that was always nonzero if a string was nonnull.
31351
31352 2004-03-30  Jim Meyering  <jim@meyering.net>
31353
31354         Merge from coreutils.
31355
31356         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
31357         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
31358         on some systems one must include <grp.h> before it.
31359         Reported by Christian Krackowizer.
31360
31361 2004-03-30  Jim Meyering  <jim@meyering.net>
31362
31363         Merge from coreutils.
31364
31365         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
31366
31367         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
31368         an empty input stream.
31369
31370         * lib/readtokens.c: Include <stdbool.h>.
31371         (readtoken): Use `size_t' rather than int/long.
31372         All callers adjusted.
31373         Use `bool' rather than `int' where appropriate.
31374         Use memset rather than an explicit loop.
31375         Use x2nrealloc rather than xrealloc.
31376         Allow the use of `\0' as a delimiter.
31377         (readtokens): Likewise.
31378         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
31379
31380 2004-03-30  Jim Meyering  <jim@meyering.net>
31381
31382         * m4/realloc.m4: Remove file, since now it does no more than
31383         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
31384         the `configure.ac' section of module/realloc.
31385         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
31386
31387 2004-03-30  Bruno Haible  <bruno@clisp.org>
31388
31389         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
31390         nonnull.
31391
31392 2004-03-29  Paul Eggert  <eggert@twinsun.com>
31393
31394         Merge changes to getloadavg.c from coreutils and Emacs.
31395
31396         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
31397         Define to an expression, not to the empty string.
31398         Include cloexec.h and xalloc.h.
31399         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
31400         Use set_cloexec_flag rather than rolling our own.
31401         * lib/cloexec.c, lib/cloexec.h: New files.
31402
31403 2004-03-29  Paul Eggert  <eggert@twinsun.com>
31404
31405         * m4/cloexec.m4: New file.
31406
31407 2004-03-18  Paul Eggert  <eggert@twinsun.com>
31408
31409         * lib/getopt.h: Sync with libc CVS.
31410
31411 2004-03-18  Paul Eggert  <eggert@twinsun.com>
31412             Bruno Haible  <bruno@clisp.org>
31413
31414         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
31415         mbswidth.
31416
31417 2004-03-18  Paul Eggert  <eggert@twinsun.com>
31418             Bruno Haible  <bruno@clisp.org>
31419
31420         * lib/mbswidth.h: Include <wchar.h> only if
31421         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
31422         <wchar.h>.
31423         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
31424
31425 2004-03-09  Paul Eggert  <eggert@twinsun.com>
31426
31427         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
31428         Sync with libc CVS.
31429         * lib/getopt_int.h: New file, also synced from libc.
31430
31431 2004-03-09  Paul Eggert  <eggert@twinsun.com>
31432
31433         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
31434         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
31435         Bring back getopt.c, getopt.h, getopt1.c.
31436
31437 2004-03-07  Paul Eggert  <eggert@twinsun.com>
31438
31439         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
31440         All uses changed.  Check for sa_sigaction member; this fixes
31441         a bug first reported by Jason Andrade in
31442         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
31443
31444 2004-03-07  Paul Eggert  <eggert@twinsun.com>
31445
31446         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
31447         '#if' expressions.  Unlike the code it replaces, it does not
31448         depend on (defined _SC_PAGESIZE).  However, it does depend on
31449         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
31450         first reported by Jason Andrade in
31451         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
31452
31453 2004-02-25  Simon Josefsson  <jas@extundo.com>
31454
31455         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
31456
31457 2004-02-25  Simon Josefsson  <jas@extundo.com>
31458
31459         * lib/strdup.h: New file.
31460         * lib/strdup.c: Include it.
31461         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
31462         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
31463
31464 2004-02-23  Karl Berry  <karl@gnu.org>
31465
31466         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
31467         (from fencepost.gnu.org:/gd/gnuorg).
31468
31469 2004-02-23  Karl Berry  <karl@gnu.org>
31470
31471         * config/srclistvars.sh (GNUORG) [karl]: redefine.
31472         * config/srclist.txt: add maintain/standards documents.
31473
31474 2004-02-18  Bruno Haible  <bruno@clisp.org>
31475
31476         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
31477         Reported by Derek Robert Price <derek@ximbiot.com>.
31478
31479 2004-02-16  Karl Berry  <karl@gnu.org>
31480
31481         * config/mkinstalldirs, install-sh: update from automake.
31482
31483 2004-02-06  Karl Berry  <karl@gnu.org>
31484
31485         * m4/po.m4: update from gettext 0.14.1.
31486
31487 2004-02-06  Karl Berry  <karl@gnu.org>
31488
31489         * lib/config.charset: update from gettext 0.14.1.
31490
31491 2004-02-05  Paul Eggert  <eggert@twinsun.com>
31492
31493         Add comments and code, prompted by suggestions from Bruno Haible
31494         for sh-quote.
31495         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
31496         describing the enum quoting_style values.
31497         * lib/quotearg.c (quotearg_alloc): New function.
31498         (quotearg_buffer_restyled): Treat lone { and } as special.
31499         Treat = as special.  Work around bug with older shells
31500         that "see" a '\' that is really the 2nd byte of a multibyte char.
31501         Quote empty string with shell_quoting_style.
31502
31503 2004-02-03  Bruno Haible  <bruno@clisp.org>
31504
31505         * m4/pipe.m4: New file, from GNU gettext.
31506
31507 2004-02-03  Bruno Haible  <bruno@clisp.org>
31508
31509         * lib/pipe.h: New file, from GNU gettext.
31510         * lib/pipe.c: New file, from GNU gettext.
31511
31512 2004-01-27  Bruno Haible  <bruno@clisp.org>
31513
31514         * m4/execute.m4: New file, from GNU gettext.
31515
31516 2004-01-27  Bruno Haible  <bruno@clisp.org>
31517
31518         * lib/execute.h: New file, from GNU gettext.
31519         * lib/execute.c: New file, from GNU gettext.
31520         * lib/w32spawn.h: New file, from GNU gettext.
31521
31522 2004-01-24  Paul Eggert  <eggert@twinsun.com>
31523
31524         Merge from diffutils.
31525
31526         * lib/file-type.c (file_type): Add typed memory objects.
31527         * lib/file-type.h (S_TYPEISTMO): New macro.
31528
31529         * lib/c-stack.h (c_stack_action): Remove argv argument.
31530         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
31531         (die): Don't calculate message unless segv_action returns.
31532         (get_stack_location, min_address_from_argv, max_address_from_argv,
31533         volatile stack_base, volatile_stack_size): Remove.
31534         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
31535         that every segmentation violation is a stack overflow.  (Ouch!)
31536         See Debian bug 136249 (still outstanding) for more info about why
31537         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
31538
31539 2004-01-24  Paul Eggert  <eggert@twinsun.com>
31540
31541         Exit-status fix from coreutils.
31542
31543         Use exit_failure consistently in place of EXIT_FAILURE,
31544         so that program exit statuses are consistent on failure.
31545
31546         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
31547         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
31548         * lib/argmatch.h: Comment fix to match the above.
31549         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
31550         Now a macro referring to exit_failure, instead of a separate
31551         variable.  Include "exitfail.h" to get it.
31552         * lib/xstrtol.h: Include "exitfail.h".
31553         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
31554
31555         * lib/long-options.c (parse_long_options): Use prototype
31556         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
31557         for clarity.
31558
31559 2004-01-21  Jim Meyering  <jim@meyering.net>
31560
31561         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
31562         so as not to conflict with a different-sized __mktime_internal
31563         function in GNU libc.
31564         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
31565         Problem building statically-linked `ls' reported by Michael Brunnbauer.
31566
31567 2004-01-20  Karl Berry  <karl@gnu.org>
31568
31569         * config/config.guess: update from config.
31570
31571         * config/srclistvars.sh: GNUWWWLICENSES for karl.
31572
31573 2004-01-20  Bruno Haible  <bruno@clisp.org>
31574
31575         Safer stack allocation.
31576         * lib/setenv.c: Include allocsa.h.
31577         (alloca): Remove fallback definition.
31578         (freea): Remove macro.
31579         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
31580         instead of freea.
31581
31582 2004-01-20  Bruno Haible  <bruno@clisp.org>
31583
31584         * m4/eealloc.m4: New file, from GNU gettext.
31585
31586 2004-01-20  Bruno Haible  <bruno@clisp.org>
31587
31588         * m4/allocsa.m4: New file, from GNU gettext.
31589
31590 2004-01-20  Bruno Haible  <bruno@clisp.org>
31591
31592         * lib/xallocsa.h: New file, from GNU gettext.
31593         * lib/xallocsa.c: New file, from GNU gettext.
31594
31595 2004-01-20  Bruno Haible  <bruno@clisp.org>
31596
31597         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
31598
31599 2004-01-20  Bruno Haible  <bruno@clisp.org>
31600
31601         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
31602         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
31603         specially.
31604
31605 2004-01-20  Bruno Haible  <bruno@clisp.org>
31606
31607         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
31608         patch.
31609
31610 2004-01-20  Bruno Haible  <bruno@clisp.org>
31611
31612         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
31613
31614 2004-01-20  Bruno Haible  <bruno@clisp.org>
31615
31616         * lib/eealloc.h: New file.
31617
31618 2004-01-20  Bruno Haible  <bruno@clisp.org>
31619
31620         * lib/binary-io.h: Avoid warnings on Cygwin.
31621
31622 2004-01-20  Bruno Haible  <bruno@clisp.org>
31623
31624         * lib/allocsa.h: New file, from GNU gettext.
31625         * lib/allocsa.c: New file, from GNU gettext.
31626
31627 2004-01-18  Karl Berry  <karl@gnu.org>
31628
31629         * doc/gpl.texi, doc/lgpl.texi: new files.
31630
31631 2004-01-18  Karl Berry  <karl@gnu.org>
31632
31633         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
31634         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
31635
31636 2004-01-15  Paul Eggert  <eggert@twinsun.com>
31637
31638         Merge from coreutils.
31639
31640         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
31641         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
31642         (gl_DEFAULT_POSIX2_VERSION): Move
31643         the documentation from 'configure' into 'config.hin',
31644         so that 'configure --help' isn't burdened by it and
31645         we don't have to worry about its formatting there.
31646         Reword the documentation so that it's more succinct
31647         and can be run together into a single paragraph.
31648         * m4/same.m4 (gl_SAME): Check for pathconf.
31649
31650 2004-01-15  Paul Eggert  <eggert@twinsun.com>
31651
31652         Merge from coreutils.
31653
31654         * lib/posixver.c: Include posixver.h.
31655
31656         * lib/same.c: Include <stdbool.h>, <limits.h>.
31657         (_POSIX_NAME_MAX): Define if not defined.
31658         (MIN): New macro.
31659         (same_name): If file names are silently truncated, report
31660         that the file names are the same if they are the same after
31661         the silent truncation.
31662
31663         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
31664         conversion function.
31665         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
31666         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
31667         longer needed.
31668
31669 2004-01-15  Jim Meyering  <jim@meyering.net>
31670
31671         Merge from coreutils.
31672
31673         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
31674         if no library is required.
31675         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
31676         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
31677         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
31678         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
31679         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
31680         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
31681         value, $ac_cv_search_crypt, if it's "none required".
31682         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
31683         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
31684         not gl_FUNC_GETLOADAVG.
31685         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
31686         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
31687
31688 2004-01-15  Jim Meyering  <jim@meyering.net>
31689
31690         Merge from coreutils.
31691
31692         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
31693         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
31694         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
31695
31696         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
31697         optional configure-time default.
31698
31699         * lib/version-etc.c (version_etc_copyright): Update copyright date.
31700
31701         * lib/xreadlink.c (xreadlink): Correct outdated comment.
31702
31703 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
31704
31705         Merge from coreutils.
31706
31707         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
31708         value, $ac_cv_search_nanosleep, if it's "none required".
31709
31710 2004-01-14  Paul Eggert  <eggert@twinsun.com>
31711
31712         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
31713         with like-named macro in fnmatch.c.
31714         (EXT): Use an internal constant instead.
31715
31716         Merge fnmatch patches from glibc.
31717         * lib/fnmatch.c (mbsinit): Remove define.
31718         Add libc_hidden_ver (__fnmatch, fnmatch).
31719         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
31720         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
31721
31722 2004-01-14  Karl Berry  <karl@gnu.org>
31723
31724         * config/install-sh: update from automake.
31725
31726 2004-01-13  Karl Berry  <karl@gnu.org>
31727
31728         * config/install-sh: update from automake.
31729
31730 2004-01-09  Karl Berry  <karl@gnu.org>
31731
31732         * config/install-sh: update from automake.
31733
31734 2004-01-05  Karl Berry  <karl@gnu.org>
31735
31736         * config/config.{sub,guess}: update from config.
31737
31738 2003-12-31  Karl Berry  <karl@gnu.org>
31739
31740         * config/depcomp: update from automake.
31741
31742 2003-12-14  Karl Berry  <karl@gnu.org>
31743
31744         * lib/config.charset: update from gettext-runtime.
31745
31746 2003-12-03  Paul Eggert  <eggert@twinsun.com>
31747
31748         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
31749         Bug reported by Alfred M. Szmidt.
31750
31751 2003-12-03  Bruno Haible  <bruno@clisp.org>
31752
31753         * m4/gettext.m4: Upgrade from gettext-0.13.
31754         * m4/po.m4: Upgrade from gettext-0.13.
31755         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
31756         * m4/intmax.m4: New file, from gettext-0.13.
31757         * m4/printf-posix.m4: New file, from gettext-0.13.
31758
31759 2003-11-29  Karl Berry  <karl@gnu.org>
31760
31761         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
31762
31763 2003-11-25  Paul Eggert  <eggert@twinsun.com>
31764             Bruno Haible  <bruno@clisp.org>
31765
31766         * lib/printf-parse.h: Don't include sys/types.h.
31767         (ARG_NONE): New macro.
31768         (char_directive): Change type of *arg_index fields to size_t.
31769         * lib/printf-parse.c: Don't include sys/types.h.
31770         (SSIZE_MAX): Remove macro.
31771         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
31772         Remove unnecessary overflow check.
31773         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
31774         fields.
31775
31776 2003-11-25  Bruno Haible  <bruno@clisp.org>
31777
31778         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
31779
31780 2003-11-25  Bruno Haible  <bruno@clisp.org>
31781
31782         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
31783         gt_TYPE_SSIZE_T.
31784
31785 2003-11-24  Paul Eggert  <eggert@twinsun.com>
31786
31787         * modules/alloca: Remove dependency on xalloc.
31788
31789 2003-11-24  Paul Eggert  <eggert@twinsun.com>
31790
31791         * lib/alloca.c: Remove dependency on xalloc module.
31792         (xalloc_die): Remove.
31793         (memory_full) [!defined emacs]: New macro.
31794         [!defined emacs]: Don't include xalloc.h.
31795         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
31796         address arithmetic overflows.  Change datatypes a bit to avoid
31797         unnecessary casts.
31798
31799 2003-11-22  Jim Meyering  <jim@meyering.net>
31800
31801         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
31802         s/size/size_t/.
31803
31804 2003-11-21  Karl Berry  <karl@gnu.org>
31805
31806         * config/config.{sub,guess}: update from config.
31807
31808 2003-11-18  Karl Berry  <karl@gnu.org>
31809
31810         * config/config.{sub,guess}: update from config.
31811
31812         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
31813
31814 2003-11-17  Paul Eggert  <eggert@twinsun.com>
31815
31816         * README: Mention that S+T cannot overflow if S is the size of
31817         an existing object and T is sufficiently small.
31818
31819 2003-11-17  Jim Meyering  <jim@meyering.net>
31820
31821         On systems without utime and without a utimes function capable of
31822         dealing with a NULL struct utimbuf* argument, this utime replacement
31823         could -- in unusual circumstances -- leak a file descriptor.
31824         * lib/utime.c: Include <unistd.h> and <errno.h>.
31825         (utime_null): Be sure to close `fd' and to preserve errno.
31826         Reported by Geoff Collyer via Arnold Robbins.
31827
31828 2003-11-17  Bruno Haible  <bruno@clisp.org>
31829
31830         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
31831         (Depends-on): Add xsize.
31832
31833 2003-11-17  Bruno Haible  <bruno@clisp.org>
31834
31835         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
31836
31837 2003-11-17  Bruno Haible  <bruno@clisp.org>
31838
31839         * lib/vasnprintf.c (alloca): Remove fallback definition.
31840         (freea): Remove definition.
31841         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
31842         Reported by Paul Eggert.
31843
31844 2003-11-16  Paul Eggert  <eggert@twinsun.com>
31845             Bruno Haible  <bruno@clisp.org>
31846
31847         Protect against address arithmetic overflow.
31848         * lib/printf-args.h: Include stddef.h.
31849         (arguments): Change type of field 'count' to size_t.
31850         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
31851         'unsigned int' where appropriate.
31852         * lib/printf-parse.h: Include sys/types.h.
31853         (char_directive): Change type of *arg_index fields to ssize_t.
31854         (char_directives): Change type of fields 'count', max_*_length to
31855         size_t.
31856         * lib/printf-parse.c: Include sys/types.h and xsize.h.
31857         (SSIZE_MAX): Define fallback value.
31858         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
31859         instead of 'int' where appropriate. Check a_allocated, d_allocated
31860         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
31861         * lib/vasnprintf.c: Include xsize.h.
31862         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
31863         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
31864         overflow. Avoid wraparound when converting a width or precision from
31865         decimal to binary.
31866
31867 2003-11-16  Bruno Haible  <bruno@clisp.org>
31868
31869         Update from GNU gettext.
31870         * lib/printf-parse.c: Generalize to it can be compiled for wide
31871         strings.
31872         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
31873         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
31874         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
31875         SNPRINTF): New macros.
31876         Don't include <alloca.h> if the file is used inside libintl.
31877         (local_wcslen): New function, for Solaris 2.5.1.
31878         (VASNPRINTF): Use it instead of wcslen.
31879
31880 2003-11-16  Bruno Haible  <bruno@clisp.org>
31881
31882         * lib/xsize.h (xmax): New function.
31883         (xsum, xsum3, xsum4): Declare as "pure" functions.
31884
31885 2003-11-12  Paul Eggert  <eggert@twinsun.com>
31886
31887         * modules/xalloc (Files): Undo latest change, since xalloc.h
31888         no longer needs SIZE_MAX or PTRDIFF_MAX.
31889
31890 2003-11-12  Paul Eggert  <eggert@twinsun.com>
31891
31892         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
31893         gl_PTRDIFF_MAX.
31894
31895 2003-11-12  Paul Eggert  <eggert@twinsun.com>
31896
31897         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
31898         "return", to pacify some unknown compiler.  Problem reported
31899         by Joerg Schilling.
31900
31901 2003-11-12  Paul Eggert  <eggert@twinsun.com>
31902
31903         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
31904         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
31905         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
31906         heuristic is just as accurate as far as we know, and it removes a
31907         dependency on size_max.m4 and ptrdiff_max.m4.
31908
31909 2003-11-11  Bruno Haible  <bruno@clisp.org>
31910
31911         * modules/xsize (Files): Add m4/size_max.m4.
31912         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
31913
31914 2003-11-11  Bruno Haible  <bruno@clisp.org>
31915
31916         * m4/size_max.m4: New file.
31917         * m4/ptrdiff_max.m4: New file.
31918         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
31919         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
31920         (gl_XALLOC): Invoke it.
31921
31922 2003-11-11  Bruno Haible  <bruno@clisp.org>
31923
31924         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
31925         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
31926         defined.
31927
31928 2003-11-10  Paul Eggert  <eggert@twinsun.com>
31929
31930         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
31931         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
31932         rejected some allocations of exactly SIZE_MAX - 2 bytes.
31933         From Bruno Haible.
31934         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
31935         not (size_t) -1, since it's defined here.
31936
31937 2003-11-09  Karl Berry  <karl@gnu.org>
31938
31939         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
31940
31941 2003-11-06  Paul Eggert  <eggert@twinsun.com>
31942
31943         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
31944         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
31945         Reject sizes of exactly SIZE_MAX bytes.
31946         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
31947         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
31948
31949 2003-11-05  Bruno Haible  <bruno@clisp.org>
31950
31951         * lib/xsize.h: Include limits.h, to avoid a possible collision with
31952         SIZE_MAX defined in <limits.h> on Solaris.
31953
31954 2003-11-04  Jim Meyering  <jim@meyering.net>
31955
31956         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
31957         variable names, rather than @VAR@.
31958         * modules/poll: Likewise.
31959
31960 2003-11-04  Bruno Haible  <bruno@clisp.org>
31961
31962         * modules/xsize: New file.
31963         * modules/linebreak: Depend on xsize.
31964         * MODULES.html.sh (func_all_modules): Add xsize.
31965
31966 2003-11-04  Bruno Haible  <bruno@clisp.org>
31967
31968         * m4/xsize.m4: New file.
31969
31970 2003-11-04  Bruno Haible  <bruno@clisp.org>
31971
31972         * lib/xsize.h: New file.
31973         * lib/linebreak.c: Include xsize.h.
31974         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
31975         argument for overflow.
31976         Suggested by Paul Eggert.
31977
31978 2003-11-03  Karl Berry  <karl@gnu.org>
31979
31980         * config/config.{guess,sub}: update from config.
31981
31982 2003-11-03  Jim Meyering  <jim@meyering.net>
31983
31984         * modules/userspec (lib_SOURCES): Add userspec.h.
31985         (Include): Add "userspec.h".
31986         Improve description.
31987
31988 2003-11-03  Jim Meyering  <jim@meyering.net>
31989
31990         * lib/userspec.c: Include "userspec.h".
31991         * lib/userspec.h: New file.
31992
31993 2003-11-03  Bruno Haible  <bruno@clisp.org>
31994
31995         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
31996
31997 2003-11-03  Bruno Haible  <bruno@clisp.org>
31998
31999         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
32000         available, to avoid (extremely rare) race condition.
32001         Suggested by Paul Eggert.
32002
32003 2003-11-02  Karl Berry  <karl@gnu.org>
32004
32005         * config/srclist.txt (vasprintf.c): sync broken, sigh.
32006
32007 2003-10-31  Paul Eggert  <eggert@twinsun.com>
32008
32009         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
32010         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
32011         (read_filesystem_list): Set and use me_type_malloced.
32012         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
32013         whatever the type happens to be), for brevity and consistency.
32014         Check for size calculation overflow on Alphas running OSF/1.
32015
32016 2003-10-31  Jim Meyering  <jim@meyering.net>
32017
32018         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
32019
32020         * lib/linebuffer.c: Include <string.h> for declaration of memset.
32021
32022 2003-10-30  Paul Eggert  <eggert@twinsun.com>
32023             Bruno Haible  <bruno@clisp.org>
32024
32025         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
32026         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
32027
32028 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
32029
32030         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
32031         netbsd*-gnu*.  Suggested by Robert Millan.
32032
32033 2003-10-29  Paul Eggert  <eggert@twinsun.com>
32034
32035         * modules/group-member: Depend on stdbool.
32036
32037 2003-10-29  Paul Eggert  <eggert@twinsun.com>
32038
32039         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
32040
32041 2003-10-29  Paul Eggert  <eggert@twinsun.com>
32042
32043         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
32044         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
32045         after the 'gnu' in these cases.  This fixes some bugs in the
32046         previous change, and is based on suggestions by Robert Millan.
32047
32048 2003-10-29  Paul Eggert  <eggert@twinsun.com>
32049
32050         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
32051         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
32052         no longer needed.
32053         * lib/quotearg.c (quotearg_n_options): Use it.
32054         * lib/group-member.c: Include <stdbool.h>.
32055         (free_group_info): Arg is now const *; don't free arg.
32056         (get_group_info): Now returns bool and accepts struct group_info *,
32057         rather than returning a malloc'ed struct group_info *.
32058         All uses changed.  Check for overflow in internal size calculation.
32059
32060         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
32061         rather than xmalloc/xrealloc.
32062         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
32063         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
32064         conformance bug: the old code used a pointer after freeing the
32065         storage that it addressed.
32066         * lib/hash.c (hash_initialize): Simplify the code by using
32067         xalloc_oversized rather than doing it by hand.
32068         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
32069         the buffer preserved.  Use free and xmalloc instead.
32070         * lib/quotearg.c (quotearg_n_options): Likewise.
32071         Use a simpler test for size overflow.  Don't use xalloc_oversized
32072         because unsigned int might be wider than size_t (!); this suggests
32073         that we should switch from unsigned int to size_t for slot numbers.
32074
32075 2003-10-28  Paul Eggert  <eggert@twinsun.com>
32076
32077         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
32078         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
32079         NetBSD kernels.  Requested by Richard Stallman.
32080
32081 2003-10-27  Paul Eggert  <eggert@twinsun.com>
32082
32083         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
32084         to allocate the returned structure.  Do not allocate a subarray,
32085         as x2nrealloc will do that.
32086         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
32087         instead of xnrealloc.
32088         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
32089
32090 2003-10-27  Bruno Haible  <bruno@clisp.org>
32091
32092         * lib/stdbool_.h: Better support for BeOS.
32093
32094 2003-10-26  Paul Eggert  <eggert@twinsun.com>
32095
32096         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
32097         now uses inline.
32098
32099 2003-10-26  Paul Eggert  <eggert@twinsun.com>
32100
32101         * lib/xalloc.h (xalloc_oversized): New static inline function, for
32102         callers that want to do their own size-overflow checking.  Include
32103         <stdbool.h>, since xalloc_oversized returns bool.
32104         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
32105         to use xalloc_oversized.
32106
32107         Add two functions x2realloc, x2nrealloc, for programs that grow
32108         arrays dynamically by doubling their sizes.
32109         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
32110         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
32111         New functions.
32112
32113         Port to C99 semantics for 'inline' of external functions.
32114         Bug reported by Bruno Haible.
32115         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
32116         with the old contents of xnmalloc.
32117         (xnmalloc, xmalloc): Use it.
32118         (xnrealloc_inline): New static inline function,
32119         with the old contents of xnrealloc.
32120         (xnrealloc, xrealloc): Use it.
32121
32122         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
32123         that.
32124
32125 2003-10-26  Karl Berry  <karl@gnu.org>
32126
32127         * config/srclist.txt (COPYING.DOC): no longer available from
32128         /gd/gnuorg; don't know where the ultimate source is.
32129
32130 2003-10-25  Paul Eggert  <eggert@twinsun.com>
32131
32132         Fix several address-calculation bugs in the hash modules,
32133         plus some minor code cleanup.
32134
32135         * lib/hash.h: Include <stdbool.h>, for bool.
32136         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
32137         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
32138         hash_get_n_entries, hash_get_max_bucket_length,
32139         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
32140         hash_rehash): Use size_t rather than unsigned.
32141         * lib/hash.c (struct hash_table, hash_get_n_buckets,
32142         hash_get_n_buckets_used, hash_get_n_entries,
32143         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
32144         hash_get_entries, hash_do_for_each, hash_string, is_prime,
32145         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
32146         Likewise.
32147         (SIZE_MAX): Define if not defined.
32148         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
32149         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
32150         hash_print):
32151         Use const * when possible.
32152         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
32153         (check_tuning): Fix bug: if tuning parameters were very close to
32154         0 or 1, rounding errors could have caused subscript violations.
32155         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
32156         (hash_initialize): Add 'fail:' label
32157         to free table and return NULL, and use it to simplify code.
32158         Use calloc rather than clearing the storage ourself.
32159         (hash_initialize, hash_rehash): Check for arithmetic overflow in
32160         buffer size calculations.
32161         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
32162         Include <stddef.h>, for size_t.
32163         * lib/hash-pjw.c (hash_pjw): Likewise.
32164         Switch to method described by Bruno Haible.
32165         Include <limits.h>, for CHAR_BIT.
32166         (SIZE_BITS): New macro.
32167
32168 2003-10-23  Paul Eggert  <eggert@twinsun.com>
32169
32170         * m4/getline.m4 (AM_FUNC_GETLINE):
32171         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
32172         hosts.  Problem reported by Derek Robert Price in
32173         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
32174         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
32175         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
32176
32177 2003-10-21  Paul Eggert  <eggert@twinsun.com>
32178
32179         * lib/getndelim2.c (getndelim2): When size calculation overflows,
32180         ceiling the allocation at NMAX bytes rather than silently
32181         discarding input bytes before NMAX is reached.  This makes
32182         a difference only if NMAX exceeds SIZE_MAX / 2.
32183
32184         * lib/obstack.c: Merge from glibc.
32185         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
32186         Add libc_hidden_def (_obstack_newchunk).
32187         (_obstack_free) [! defined _LIBC]: Remove.
32188         [defined _LIBC]: Make a strong alias from obstack_free, rather than
32189         a clone of the function body.
32190         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
32191         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
32192
32193         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
32194         glibc.
32195         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
32196         arg to memcpy.
32197
32198         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
32199         (obstack_ptr_grow_fast, obstack_int_grow_fast):
32200         Don't use lvalue casts, as GCC plans to remove support for them
32201         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
32202         was also present in the non-GCC version, indicating that this
32203         code had always been buggy and had never been widely used.
32204         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
32205         Use the fast variant of each macro, rather than copying the
32206         definiens of the fast variant; that way, we'll be more likely to
32207         catch future bugs in the fast variants.
32208
32209 2003-10-20  Bruno Haible  <bruno@clisp.org>
32210
32211         * modules/wait-process: New file.
32212         * MODULES.html.sh (func_all_modules): Add wait-process.
32213
32214 2003-10-20  Bruno Haible  <bruno@clisp.org>
32215
32216         * m4/wait-process.m4: New file.
32217
32218 2003-10-20  Bruno Haible  <bruno@clisp.org>
32219
32220         * lib/wait-process.h: New file, from GNU gettext.
32221         * lib/wait-process.c: New file, from GNU gettext.
32222
32223 2003-10-19  Jim Meyering  <jim@meyering.net>
32224
32225         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
32226         HPUX 10.20.
32227
32228 2003-10-18  Karl Berry  <karl@gnu.org>
32229
32230         * config/config.guess: update from config.
32231
32232 2003-10-16  Paul Eggert  <eggert@twinsun.com>
32233
32234         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
32235         (getgroups): First arg is int, not size_t.
32236         Don't let 'free' mangle errno.
32237
32238 2003-10-16  Paul Eggert  <eggert@twinsun.com>
32239
32240         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
32241
32242 2003-10-16  Karl Berry  <karl@gnu.org>
32243
32244         * config/config.{guess,sub}: update from config.
32245
32246 2003-10-16  Jim Meyering  <jim@meyering.net>
32247
32248         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
32249         memcpy.
32250
32251 2003-10-15  Paul Eggert  <eggert@twinsun.com>
32252
32253         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
32254         (SIZE_MAX): Remove.
32255         (new_exclude, add_exclude_file): Initial size no longer needs to
32256         be a power of 2.
32257         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
32258         our own address arithmetic overflow checking.
32259
32260         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
32261         (fnmatch): Do not alloca more than 2000 wide characters;
32262         instead, use malloc for large buffers.
32263         Check for address arithmetic overflow, and return -1
32264         with errno set to ENOMEM in that case.
32265         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
32266         (NEW_PATTERN): Do not alloca more than 8000 bytes;
32267         instead, return -1.  Check for address arithmetic overflow.
32268
32269 2003-10-14  Paul Eggert  <eggert@twinsun.com>
32270
32271         Handle invalid suffixes and overflow independently, so that
32272         callers can treat them independently as needed.  Fix some bugs in
32273         suffix handling, e.g., "100k@" was not diagnosed as an invalid
32274         suffix for a human-readable blocksize.  The major caller-visible
32275         change is the addition of a new
32276         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
32277         that both overflow and suffix chars were found.
32278
32279         * lib/human.c (humblock): Don't check separately for invalid suffix
32280         char; that is xstrtoumax's job (now that its bug is fixed).
32281         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
32282         INTMAX_MAX]: New macros.
32283         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
32284         TYPE_MAXIMUM): New macros.
32285         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
32286         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
32287         if overflow occurs, as it's what __strtol does and it's more useful
32288         in practice.
32289         (__xstrtol): If __strtol reports some error other than ERANGE,
32290         reflect it to the caller as LONGINT_INVALID.  If it reports
32291         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
32292         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
32293         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
32294         value.
32295         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
32296         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
32297         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
32298         [defined UINTMAX_MAX]: New macros.
32299
32300 2003-10-14  Bruno Haible  <bruno@clisp.org>
32301
32302         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
32303
32304 2003-10-14  Bruno Haible  <bruno@clisp.org>
32305
32306         * m4/sig_atomic_t: New file, from GNU gettext.
32307         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
32308
32309 2003-10-14  Bruno Haible  <bruno@clisp.org>
32310
32311         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
32312         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
32313         Also use volatile where needed.
32314
32315 2003-10-12  Paul Eggert  <eggert@twinsun.com>
32316
32317         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
32318         Change maintainer from Bruno Haible to 'all'.
32319
32320 2003-10-12  Paul Eggert  <eggert@twinsun.com>
32321
32322         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
32323
32324 2003-10-12  Paul Eggert  <eggert@twinsun.com>
32325
32326         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
32327         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
32328         and define in terms of the other primitives.
32329         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
32330         (SIZE_MAX): Define if not already defined.
32331         (array_size_overflow): New function.
32332         (xalloc_die): Abort instead of exiting if 'error' returns.
32333         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
32334         (xmalloc, xrealloc): Use them.
32335         (xcalloc): Check for address arithmetic overflow.
32336         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
32337         a bit faster than strcpy.
32338
32339 2003-10-10  Simon Josefsson  <jas@extundo.com>
32340
32341         * modules/argp (Depends-on): Add restrict and strcase.
32342
32343 2003-10-10  Simon Josefsson  <jas@extundo.com>
32344
32345         * m4/argp.m4: Add AC_C_INLINE.
32346
32347 2003-10-08  Paul Eggert  <eggert@twinsun.com>
32348
32349         Merge getpass from libc, plus a few fixes.
32350
32351         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
32352         Include <stdbool.h>.
32353         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
32354         __fsetlocking to empty.
32355         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
32356         do include <bits/libc-lock.h>.
32357         Do not include <fcntl.h>; not needed.
32358         [_LIBC]: Include <wchar.h>.
32359         (NOTCANCEL_MODE): New macro.
32360         (flockfile, funlockfile) [_LIBC]: New macros.
32361         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
32362         [!_LIBC]: New macros.
32363         (call_fclose): New function.
32364         (getpass): Use it.  Save tty stream separately; this simplifies the
32365         code and makes it more reliable if stdin happens to equal stdout.
32366         Invoke __fsetlocking on tty.
32367         Handle thread cancellation if needed.
32368         Namespace cleanup (use __tcgetattr, __getline).
32369         Use bool for Booleans.
32370         [USE_IN_LIBIO]: Handle wide streams.
32371         [!_LIBC]: Unconditionally do the fseek, since we don't know what
32372         stream might go where.
32373
32374         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
32375         doesn't have to include <stdio.h> before us.
32376         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
32377         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
32378         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
32379         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
32380         if not declared, so that we can use getpass.c code from libc without
32381         rewriting it.
32382         (flockfile, ftrylockfile, funlockfile): New macros.
32383
32384 2003-10-08  Paul Eggert  <eggert@twinsun.com>
32385
32386         * modules/getpass: Depend on stdbool.
32387
32388 2003-10-08  Paul Eggert  <eggert@twinsun.com>
32389
32390         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
32391
32392 2003-10-07  Karl Berry  <karl@gnu.org>
32393
32394         * config/config.{guess,sub}: update from config.
32395
32396 2003-10-06  Jim Meyering  <jim@meyering.net>
32397             Bruno Haible  <bruno@clisp.org>
32398
32399         This lets translators provide better translations for the
32400         "Written by ..." part of --version output.
32401         * lib/version-etc.h: Include stdarg.h.
32402         (version_etc_copyright): Declare as readonly.
32403         (version_etc): Make this function variadic with a NULL-terminated list
32404         of author name strings.
32405         (version_etc_va): New declaration.
32406         * lib/version-etc.c: Include stdarg.h, stdlib.h.
32407         (version_etc_copyright): Declare as readonly.
32408         (version_etc_va): New function. Provide a different translatable string
32409         for each possible number of authors < 10. Abbreviate when there are 10
32410         authors or more.
32411         (version_etc): Make this function variadic. Call version_etc_va.
32412         Suggestion from Gary V. Vaughan.
32413
32414         * lib/long-options.h (parse_long_options): Change prototype: the
32415         authors string is moved to the end and becomes variadic.
32416         * lib/long-options.c: Include stdarg.h.
32417         (parse_long_options): Make this function variadic, too.
32418         Call version_etc_va, not version_etc.
32419
32420 2003-10-06  Bruno Haible  <bruno@clisp.org>
32421
32422         * modules/version-etc-2: Remove file.
32423         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
32424
32425 2003-10-06  Bruno Haible  <bruno@clisp.org>
32426
32427         * modules/fatal-signal: New file.
32428         * MODULES.html.sh (func_all_modules): Add fatal-signal.
32429
32430 2003-10-06  Bruno Haible  <bruno@clisp.org>
32431
32432         * m4/fatal-signal.m4: New file.
32433         * m4/signalblocking.m4: New file, from GNU gettext.
32434
32435 2003-10-06  Bruno Haible  <bruno@clisp.org>
32436
32437         * lib/version-etc-2.h: Remove file.
32438         * lib/version-etc-2.c: Remove file.
32439
32440 2003-10-06  Bruno Haible  <bruno@clisp.org>
32441
32442         * lib/fatal-signal.h: New file, from GNU gettext.
32443         * lib/fatal-signal.c: New file, from GNU gettext.
32444
32445 2003-10-05  Paul Eggert  <eggert@twinsun.com>
32446
32447         * README: Rework advice for preventing empty .o files.
32448         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
32449         not <sys/types.h>.
32450
32451 2003-10-04  Karl Berry  <karl@gnu.org>
32452
32453         * lib/argp*: update from libc.
32454
32455 2003-10-04  Karl Berry  <karl@gnu.org>
32456
32457         * config/config.{guess,sub}: update from config.
32458
32459 2003-10-02  Bruno Haible  <bruno@clisp.org>
32460
32461         * modules/lchown (Include): Add lchown.h.
32462         * modules/time_r (Include): Use "..." syntax.
32463         * modules/xgetdomainname (Include): Add xgetdomainname.h.
32464
32465 2003-10-01  Simon Josefsson  <jas@extundo.com>
32466
32467         * MODULES.html.sh (func_all_modules): Move gethostname from section
32468         'based on' to section 'lacking' POSIX:2001.
32469
32470 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
32471
32472         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
32473         to output mode on the same stream.
32474
32475 2003-09-29  Paul Eggert  <eggert@twinsun.com>
32476
32477         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
32478         Fix arg typo in previous patch.
32479
32480 2003-09-28  Jim Meyering  <jim@meyering.net>
32481
32482         * lib/error.c: Correct cpp indentation.
32483
32484 2003-09-27  Paul Eggert  <eggert@twinsun.com>
32485
32486         * modules/free: New file.
32487
32488 2003-09-27  Paul Eggert  <eggert@twinsun.com>
32489
32490         * m4/free.m4: New file.
32491
32492 2003-09-27  Paul Eggert  <eggert@twinsun.com>
32493
32494         * lib/minmax.h (MIN, MAX)
32495         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
32496         Omit the special code that used __typeof__, since we worry that
32497         it could be more trouble than it's worth.  See:
32498         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
32499         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
32500
32501         * lib/free.c: New file.
32502
32503 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
32504
32505         Trivial fixes to Makefile.am parts of module listings.
32506         * modules/strstr: Append strstr.h to lib_SOURCES.
32507         * modules/strcase: Likewise, for strcase.h.
32508
32509 2003-09-27  Karl Berry  <karl@gnu.org>
32510
32511         * config/mkinstalldirs: update from automake.
32512
32513 2003-09-26  Paul Eggert  <eggert@twinsun.com>
32514
32515         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
32516         (error_tail): Do not loop, reallocating temporary buffer, since
32517         the output cannot contain more wide characters than the input
32518         contains bytes, the size must be big enough already.  This avoids
32519         one potential size overflow calculation.  Check for size overflow
32520         when calculating temporary buffer size.  Free temporary buffer
32521         when done, if it was allocated with malloc; this plugs a memory
32522         leak.  Remove casts from void * to pointers, that are no longer
32523         needed now that we're assuming C89 or better.
32524
32525         Merge error changes from glibc.
32526
32527         * lib/error.c, error.h: Update copyright notice header to match glibc.
32528         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
32529         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
32530         Disable cancellation while printing error.
32531         * lib/error.h: Prepend __ to parameter names.
32532
32533 2003-09-26  Jim Meyering  <jim@meyering.net>
32534
32535         * lib/error.c (error_tail): Move some declarations
32536         into inner scope where the local variables are used.
32537
32538 2003-09-26  Bruno Haible  <bruno@clisp.org>
32539
32540         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
32541         stpncpy().
32542         Don't define stpncpy through config.h; it's now done through stpncpy.h.
32543
32544 2003-09-26  Bruno Haible  <bruno@clisp.org>
32545
32546         * lib/stpncpy.h (gnu_stpncpy): New declaration.
32547         (stpncpy): Define as alias for gnu_stpncpy.
32548         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
32549
32550 2003-09-25  Simon Josefsson  <jas@extundo.com>
32551
32552         * lib/xgetdomainname.h: New file.
32553         * lib/xgetdomainname.c: New file.
32554
32555 2003-09-25  Simon Josefsson  <jas@extundo.com>
32556             Bruno Haible  <bruno@clisp.org>
32557
32558         * modules/getdomainname: New file.
32559         * modules/xgetdomainname: New file.
32560         * MODULES.html.sh (func_all_modules): Add getdomainname,
32561         xgetdomainname.
32562
32563 2003-09-25  Simon Josefsson  <jas@extundo.com>
32564             Bruno Haible  <bruno@clisp.org>
32565
32566         * m4/getdomainname.m4: New file.
32567
32568 2003-09-25  Simon Josefsson  <jas@extundo.com>
32569             Bruno Haible  <bruno@clisp.org>
32570
32571         * lib/getdomainname.h: New file.
32572         * lib/getdomainname.c: New file.
32573
32574 2003-09-25  Karl Berry  <karl@gnu.org>
32575
32576         * lib/argp-fmtstream.c, argp-help.c: update from libc.
32577
32578 2003-09-25  Karl Berry  <karl@gnu.org>
32579
32580         * config/install-sh: update from automake.
32581
32582 2003-09-25  Bruno Haible  <bruno@clisp.org>
32583
32584         * modules/version-etc-2: New file, from modules/version-etc with
32585         modifications.
32586         * MODULES.html.sh (func_all_modules): Add version-etc-2.
32587
32588 2003-09-25  Bruno Haible  <bruno@clisp.org>
32589
32590         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
32591         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
32592
32593 2003-09-24  Simon Josefsson  <jas@extundo.com>
32594
32595         * modules/xgethostname: Add xgethostname.h.
32596
32597 2003-09-24  Paul Eggert  <eggert@twinsun.com>
32598
32599         * lib/linebuffer.c (freebuffer): Don't free the argument, just
32600         the buffer associated with the argument.  Bug reported by
32601         Simon Josefsson.
32602
32603 2003-09-24  Paul Eggert  <eggert@twinsun.com>
32604
32605         * README: Document assumptions that 'int' is at least 32 bits
32606         wide, that integer arithmetic is 2's complement without overflow,
32607         that there are no holes in integer values, that adding sizes of
32608         two nonoverlapping objects can't overflow, and that all-bits-zero
32609         yields scalar zero.  Fix spelling and capitalization typos.
32610
32611 2003-09-19  Karl Berry  <karl@gnu.org>
32612
32613         * lib/argp.h: update from libc.
32614
32615 2003-09-17  Paul Eggert  <eggert@twinsun.com>
32616
32617         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
32618         to avoid spurious warnings like "AC_RUN_IFELSE was called before
32619         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
32620
32621 2003-09-17  Paul Eggert  <eggert@twinsun.com>
32622
32623         * gnulib-tool: Use "test -h", not "test -L", for portability
32624         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
32625         (tags_regexp): Remove, since \| doesn't conform to POSIX.
32626         (sed_extract_prog): Issue s commands one-by-one, rather than
32627         using \| in one s command.
32628
32629 2003-09-16  Paul Eggert  <eggert@twinsun.com>
32630
32631         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
32632         input error, instead of returning NULL the next time we are called
32633         (and therefore losing track of errno).
32634
32635 2003-09-16  Bruno Haible  <bruno@clisp.org>
32636
32637         * gnulib-tool (func_create_testdir): Warn about duplicated
32638         dependencies.
32639
32640 2003-09-15  Paul Eggert  <eggert@twinsun.com>
32641
32642         * modules/argmatch, modules/fatal, modules/obstack,
32643         modules/xalloc, modules/xgethostname: Sort dependencies by
32644         importance, not alphabetically.
32645
32646 2003-09-15  Paul Eggert  <eggert@twinsun.com>
32647
32648         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
32649         fails, so that the caller gets the proper errno.
32650
32651         * lib/readutmp.c (read_utmp): Likewise.
32652         Check for fstat error.  Close stream and free storage
32653         when failing.
32654
32655 2003-09-14  Karl Berry  <karl@gnu.org>
32656
32657         * config/srclist.txt (strdup.c): disable for c89 changes.
32658
32659 2003-09-14  Jim Meyering  <jim@meyering.net>
32660
32661         * lib/getloadavg.c: Correct cpp indentation.
32662         * lib/strdup.c: Likewise.
32663         * lib/vasnprintf.c: Likewise.
32664
32665 2003-09-14  Bruno Haible  <bruno@clisp.org>
32666
32667         * modules/fwriteerror: New file.
32668         * MODULES.html.sh (func_all_modules): Add fwriteerror.
32669
32670 2003-09-14  Bruno Haible  <bruno@clisp.org>
32671
32672         * lib/fwriteerror.h: New file.
32673         * lib/fwriteerror.c: New file.
32674
32675 2003-09-12  Paul Eggert  <eggert@twinsun.com>
32676
32677         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
32678         modules/xgethostname, modules/xalloc: Depend on exit.
32679
32680 2003-09-12  Paul Eggert  <eggert@twinsun.com>
32681
32682         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
32683
32684         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
32685         and AC_MINIX, too, so that their extensions are available.
32686
32687         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
32688         This macro has been superseded by gl_BACKUPFILE.
32689
32690         More patches to assume C89 or better.
32691
32692         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
32693
32694         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
32695         unconditionally.
32696         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
32697         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
32698         Include <string.h>, <stdlib.h> unconditionally.
32699         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
32700         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
32701         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
32702         headers or for string.h.
32703         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
32704         or strtoul.
32705
32706         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
32707         headers.
32708         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
32709         * m4/userspec.m4 (gl_USERSPEC): Likewise.
32710         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
32711         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
32712         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
32713         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
32714         memcpy, memset.
32715         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
32716         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
32717         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
32718         strtol.
32719         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
32720         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
32721         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
32722         strtoul.
32723
32724 2003-09-12  Paul Eggert  <eggert@twinsun.com>
32725
32726         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
32727         * lib/obstack.c [!defined _LIBC]: Likewise.
32728         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
32729         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
32730         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
32731
32732         More changes to assume C89 or better.
32733
32734         * lib/error.c (error_tail): Assume vprintf.
32735
32736         * lib/argmatch.c (getenv): Remove decl.
32737         * lib/progreloc.c (get_full_program_name): Define via prototype.
32738         * lib/setenv.c (clearenv): Likewise.
32739         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
32740         needed.
32741         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
32742         (malloc, memcpy): Remove decls.
32743         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
32744         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
32745         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
32746         (memcpy): Remove macro.
32747         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
32748         (__P): Remove.  All uses removed.
32749         (PTR): Remove.  All uses changed to void *.
32750         (CHAR_BIT, NULL): Remove.
32751         (spaces, zeros, memset_space, memset_zero)
32752         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
32753         Remove.
32754         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
32755         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
32756         Define with prototype.
32757         Remove now-unnecessary prototype decl.
32758         (extra_args_spec): Assume ANSI C.  All uses changed.
32759         (extra_args_spec_iso): Remove.
32760         (my_strftime, emacs_strftimeu): Define via prototype.
32761         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
32762         unconditionally.
32763         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
32764         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
32765         (strtoul, strtol): Remove decls.
32766         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
32767         LONG_MAX): Remove.
32768         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
32769         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
32770         (LOCALE_PARAM_PROTO): New macro.
32771         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
32772         (INTERNAL (strtol), strtol): Define with a prototype.
32773         (PARAMS): Remove.  All uses removed.
32774         * lib/tempname.c: Include <string.h> unconditionally.
32775         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
32776         * lib/xgethostname.c (main): Define with a prototype.
32777         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
32778         Include <stdlib.h> unconditionally.
32779         (calloc, malloc, realloc, free): Remove decls.
32780         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
32781         Include <stdlib.h> unconditionally.  Sort include file names.
32782         (strtod): Remove.
32783         (xstrtod): Define with a prototype.
32784         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
32785         (strtol, strtoul): Remove decls.
32786
32787 2003-09-11  Paul Eggert  <eggert@twinsun.com>
32788
32789         More patches to assume C89 or better.
32790         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
32791         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
32792         string.h, memchr, STDC_HEADERS.
32793
32794 2003-09-11  Paul Eggert  <eggert@twinsun.com>
32795
32796         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
32797         Include <stdlib.h>, <string.h> unconditionally.
32798         Remove now-unnecessary cast to char *.
32799         * lib/strnlen.c: Include <string.h> unconditionally.
32800         * lib/yesno.c (yesno): Define with a prototype.
32801
32802 2003-09-11  Bruno Haible  <bruno@clisp.org>
32803
32804         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
32805
32806 2003-09-10  Jim Meyering  <jim@meyering.net>
32807
32808         * lib/error.c: Correct indentation of cpp directives.
32809
32810 2003-09-10  Bruno Haible  <bruno@clisp.org>
32811
32812         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
32813         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
32814         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
32815         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
32816         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
32817         <stdlib.h> and <string.h> checks.
32818         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
32819         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
32820
32821 2003-09-10  Bruno Haible  <bruno@clisp.org>
32822
32823         * lib/strcspn.c: Include <string.h> unconditionally.
32824         * lib/strpbrk.c: Include <string.h> unconditionally.
32825         * lib/strstr.c: Include <string.h> unconditionally.
32826         * lib/unicodeio.c: Include <string.h> unconditionally.
32827         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
32828         * lib/unsetenv.c: Likewise.
32829         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
32830         * lib/yesno.c: Include <stdlib.h> unconditionally.
32831         (rpmatch): Add prototype.
32832
32833 2003-09-09  Paul Eggert  <eggert@twinsun.com>
32834
32835         More patches to assume C89 or better.
32836         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
32837         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
32838         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
32839         or for string.h.
32840         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
32841         stdlib.h.
32842         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
32843         C headers.
32844         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
32845         string.h.
32846         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
32847         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
32848         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
32849         or for string.h.
32850         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
32851         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
32852         C headers.
32853         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
32854         memcpy.
32855         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
32856         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
32857         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
32858         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
32859         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
32860         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
32861         string.h, free.
32862         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
32863         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
32864         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
32865         C headers, or for string.h.
32866         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
32867         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
32868         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
32869         headers, memory.h, stdlib.h, string.h, strings.h.
32870         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
32871         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
32872         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
32873         strchr.
32874         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
32875         headers, memory.h, string.h.
32876         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
32877         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
32878         free.
32879         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
32880         headers.
32881         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
32882         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
32883         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
32884         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
32885         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
32886
32887 2003-09-09  Paul Eggert  <eggert@twinsun.com>
32888
32889         More K&R removal.
32890
32891         * lib/acosl.c (main): Use a prototype.
32892         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
32893         tanl.c: Likewise.
32894
32895         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
32896
32897         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
32898         (getopt, etopt_long, getopt_long_only, _getopt_internal)
32899         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
32900         with a prototype.
32901         * lib/getopt.c (const): Remove macro.
32902         Include <string.h> unconditionally.
32903         (my_index): Remove; all uses changed to strchr.
32904         (strlen): Remove decl.
32905         (exchange): Remove forward decl; no longer needed.
32906         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
32907         Define with prototype.
32908         * lib/getopt1.c (const): Remove macro.
32909         (getopt_long, getopt_long_only, main): Define with prototype.
32910
32911         * lib/getugroups.c: Include <string.h> unconditionally.
32912
32913         * lib/getusershell.c: Include <stdlib.h> unconditionally.
32914         (getusershell, setusershell, endusershell, readname, main):
32915         Define with prototypes.
32916
32917         * lib/group-member.c: Include group-member.h first.
32918         Include <stdlib.h> unconditionally.
32919
32920         * lib/hard-locale.c: Include hard-locale.h first.
32921         Include <stdlib.h>, <string.h> unconditionally.
32922
32923         * lib/hash.c (free, malloc): Remove decls.
32924         Include <stdlib.h> unconditionally.
32925
32926         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
32927         (getenv): Do not declare.
32928
32929         * lib/idcache.c: Include <string.h> unconditionally.
32930
32931         * lib/long-options.c: Include long-options.h first, to test interface.
32932         Include <stdlib.h> unconditionally.
32933
32934         * lib/makepath.c: Include makepath.h first, to test interface.
32935         Include <stdlib.h> and <string.h> unconditionally.
32936
32937         * lib/linebuffer.c: Include <stdlib.h>.
32938         (free): Remove decl.
32939
32940         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
32941         stddef.h. rpl_malloc returns void *, not char *.
32942         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
32943         prototype.
32944
32945         * lib/md5.h: Include <limits.h> unconditionally.
32946         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
32947         (__P): Remove; all uses removed.
32948         * lib/md5.c: Include "md5.h" first.
32949         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
32950         md5_buffer, md5_process_bytes, md5_process_block):
32951         Define with prototypes.
32952         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
32953         * lib/sha.c: Include "sha.h" first.
32954         Include <stdlib.h>, <string.h> unconditionally.
32955
32956         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
32957         * lib/memcmp.c (__ptr_t): Likewise.
32958         * lib/memrchr.c (__ptr_t): Likewise.
32959         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
32960         Include <string.h> unconditionally.
32961         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
32962         * lib/memchr.c: Include <stdlib.h> unconditionally.
32963         * lib/memchr.c (LONG_MAX): Remove.
32964         * lib/memrchr.c (LONG_MAX): Likewise.
32965         * lib/memchr.c (__memchr): Define via a prototype.
32966         * lib/memrchr.c (__memrchr): Likewise.
32967         * lib/memcmp.c (__P): Remove, and remove all uses.
32968         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
32969         Remove forward decls; no longer needed.
32970         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
32971         Use types required by C89 in prototype.
32972
32973         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
32974         * lib/savedir.c: Likewise.
32975         * lib/mkdir.c (free): Remove decl.
32976         * lib/rmdir.c (rmdir): Define with a prototype.
32977         * lib/savedir.c: Include savedir.h first, to test interface.
32978
32979         * lib/mktime.c (STDC_HEADERS): Remove.
32980         Include <stdlib.h>, <string.h> unconditionally.
32981
32982         * lib/modechange.c: Include <stdlib.h> unconditionally.
32983         (malloc): Remove decl.
32984
32985         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
32986         (free): Remove decl.
32987
32988         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
32989         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
32990         (This type really should be intptr_t, but that's a C99ism.)
32991         (_obstack_memcpy): Remove: all uses changed to memcpy.
32992         Include <string.h> unconditionally.
32993         (struct obstack): Assume __STDC__ for types of members
32994         chunkfun, freefun, extra_arg.
32995         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
32996         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
32997         obstack_begin, obstack_specify_allocation,
32998         obstack_specify_allocation_with_arg, obstack_chunkfun,
32999         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
33000         Remove unprototyped decls and the macros that use them.
33001         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
33002         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
33003         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
33004         (defined __STDC__ && __STDC__)]:
33005         Remove nonprototyped code.
33006         Include <stdlib.h> unconditionally.
33007         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
33008         _obstack_allocated_p, _obstack_free, obstack_free,
33009         _obstack_memory_used, print_and_abort):
33010         Define using prototypes.
33011         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
33012         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
33013         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
33014         obstack_next_free, obstack_object_size, obstack_room) [0]:
33015         Remove unused, unprototyped code.
33016
33017         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
33018
33019         * lib/physmem.c (physmem_total, physmem_available, main): Define
33020         with prototypes.
33021
33022         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
33023         (main): Define with a prototype.
33024
33025         * lib/posixver.c (getenv): Remove decl.
33026
33027         * lib/putenv.c (malloc): Returns void *, not char *.
33028         Include <string.h> unconditionally.
33029         (strchr, memcpy, NULL): Do not define.
33030
33031         * lib/readtokens.c: Include readtokens.h first, to test interface.
33032         Include <stdlib.h>, <string.h> unconditionally.
33033         (init_tokenbuffer): Define with a prototype.
33034
33035         * lib/regex.c (PARAMS): Remove.  All uses removed.
33036         All uses of _RE_ARGS removed, too.
33037         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
33038         unconditionally.
33039         (bzero): Assume memset exists.
33040         (memcmp, memcpy, NULL): Remove.
33041         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
33042         char, or assignments to local vars of type signed char.
33043         (init_syntax_once, PREFIX(extract_number_and_incr),
33044         PREFIX(print_partial_compiled_pattern),
33045         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
33046         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
33047         PREFIX(regex_grow_registers), PREFIX(regex_compile),
33048         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
33049         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
33050         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
33051         wcs_compile_range, byte_compile_range, truncate_wchar,
33052         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
33053         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
33054         count_mbs_length, wcs_re_match_2_internal,
33055         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
33056         PREFIX(alt_match_null_string_p),
33057         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
33058         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
33059         regfree, PREFIX(extract_number)): Define with prototype.  Remove
33060         now-unnecessary declaration, if any.
33061         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
33062         regcomp, regexec):
33063         Remove now-unnecessary casts among pointer types.
33064         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
33065
33066         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
33067         (free): Remove decl.
33068
33069         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
33070
33071         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
33072         (free): Remove decl.
33073
33074         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
33075         * lib/xgetcwd.c: Likewise.
33076
33077         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
33078         (free): Remove decl.
33079
33080         * lib/strchrnul.c (strchrnul): Define with a prototype.
33081         Fix bug: c_in was not converted to char before searching.
33082
33083         The following changes are not K&R related:
33084
33085         * lib/group-member.h: Include <sys/types.h>, so that this file is
33086         self-contained.
33087         * lib/makepath.h: Likewise.
33088
33089         * lib/getusershell.c (readname, default_index, line_size, readname):
33090         Use size_t, not int, for sizes.
33091         (readname): If the size overflows, report an error instead of
33092         looping forever.
33093
33094 2003-09-09  Paul Eggert  <eggert@twinsun.com>
33095
33096         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
33097         libc.
33098
33099 2003-09-09  Paul Eggert  <eggert@twinsun.com>
33100
33101         * README: New section: portability guidelines.
33102
33103 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
33104
33105         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
33106         C89 spec.
33107
33108 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
33109
33110         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
33111
33112 2003-09-08  Paul Eggert  <eggert@twinsun.com>
33113
33114         Assume C89 or better; remove K&R cruft.
33115         A few of these changes were first proposed by Derek Robert Price
33116         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
33117
33118         * lib/addext.c: Include <string.h> unconditionally.
33119         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
33120         Don't declare getenv or malloc.
33121
33122         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
33123         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
33124         (NULL): Remove.
33125         (find_stack_direction, alloca): Use prototypes.
33126
33127         * lib/atexit.c (atexit): Define using a prototype.
33128
33129         * lib/basename.c, dirname.c, stripslash.c:
33130         Include <string.h> unconditionally.
33131
33132         * lib/bcopy.c: Include <stddef.h>.
33133         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
33134
33135         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
33136
33137         * lib/error.h (error, error_at_line, error_print_progname)
33138         [! (defined (__STDC__) && __STDC__)]: Remove decls.
33139         * lib/error.c: Include error.h first, to check interface.
33140         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
33141         (VA_START): Remove; all uses changeed to va_start.
33142         (exit, strerror): Remove decls.
33143         (error_print_progname): Prototype uncondionally.
33144         Don't include <errno.h>; no longer needed.
33145         (private_strerror): Remove.
33146         (error_tail): Always define.
33147         (error, error_at_line): Assume C89 or better; always use prototypes.
33148         * lib/fatal.c: Include "fatal.h" first, to test interface.
33149         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
33150         (VA_START): Remove; all uses changed to va_start.
33151         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
33152         this case.
33153         (exit): Remove decl.
33154         (fatal): Prototype unconditionally.  Assume va_start works.
33155         Abort at end, to pacify gcc.
33156
33157         * lib/euidaccess.c (main): Define with a prototype.
33158
33159         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
33160
33161         * lib/exitfail.c: Include <stdlib.h> unconditionally.
33162
33163         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
33164         prototypes.
33165         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
33166         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
33167         (getenv): Remove decl.
33168         (fnmatch): Define using a prototype.
33169         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
33170         (FCT): Define using a prototype.
33171
33172         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
33173
33174         * lib/gethostname.c: Include <stddef.h>.
33175         (gethostname): Define with prototype.  Length is size_t, not int.
33176
33177 2003-09-08  Paul Eggert  <eggert@twinsun.com>
33178
33179         Assume C89 or better; remove K&R cruft.
33180         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
33181         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
33182         string.h, getenv, malloc.
33183         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
33184         headers.
33185         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
33186         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
33187         do not check for strerror.
33188         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
33189         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
33190         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
33191         do not check for doprnt or vprintf.
33192         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
33193         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
33194
33195 2003-09-08  Paul Eggert  <eggert@twinsun.com>
33196
33197         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
33198         getversion.c should have been removed then, but was accidentally
33199         preserved.
33200
33201         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
33202         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
33203
33204 2003-09-08  Karl Berry  <karl@gnu.org>
33205
33206         * config/config.sub, config.guess, srclistvars.sh: update from savannah
33207                 config, forget about prep.
33208
33209         * config/depcomp, missing: update from automake.
33210
33211 2003-09-07  Paul Eggert  <eggert@twinsun.com>
33212
33213         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
33214         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
33215
33216 2003-09-07  Paul Eggert  <eggert@twinsun.com>
33217
33218         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
33219         copy_tm_result.  Bug reported by Simon Josefsson in
33220         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
33221
33222 2003-09-06  Paul Eggert  <eggert@twinsun.com>
33223
33224         * m4/time_r.m4: New file.
33225         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
33226         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
33227         is. Check for timegm declaration.
33228         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
33229         Do not check for gmtime_r.
33230         Replace mktime if __mktime_internal does not exist and if mktime
33231         hasn't been replaced already.
33232
33233 2003-09-06  Paul Eggert  <eggert@twinsun.com>
33234
33235         * lib/time_r.c, lib/time_r.h: New files.
33236
33237         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
33238         __localtime_r.
33239         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
33240         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
33241
33242         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
33243         __gmtime_r.
33244         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
33245         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
33246         Include <time_r.h>.
33247
33248         * lib/timegm.c: Switch to glibc implementation, with the following
33249         changes:
33250         [defined HAVE_CONFIG_H]: Include <config.h>.
33251         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
33252         (__mktime_internal) [!defined _LIBC]: New decl.
33253         (__gmtime_r) [!defined _LIBC]: New macro and function.
33254         (timegm): Use a prototype, since gnulib assumes C89.
33255         Do not bother declaring tmp to be const, as it's not really usefu.
33256         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
33257         (timegm): Declare only if HAVE_DECL_TIMEGM.
33258
33259 2003-09-06  Paul Eggert  <eggert@twinsun.com>
33260
33261         * MODULES.html.sh (func_all_modules): Add time_r.
33262         * modules/time_r: New file.
33263         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
33264         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
33265
33266 2003-09-03  Paul Eggert  <eggert@twinsun.com>
33267
33268         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
33269         Bug reported by Lute Kamstra in
33270         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
33271
33272         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
33273         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
33274         course with correspondingly smaller numbers for tomorrow and
33275         yesterday.  From Tadayoshi Funaba.  Originally installed into
33276         sh-utils on 1999-08-07, but the patch got lost (I guess during the
33277         coreutils merge?).
33278
33279 2003-08-31  Simon Josefsson  <jas@extundo.com>
33280
33281         * modules/timegm: New file.
33282         * MODULES.html.sh (func_all_modules): Add timegm.
33283
33284 2003-08-31  Simon Josefsson  <jas@extundo.com>
33285
33286         * m4/timegm.m4: New file.
33287
33288 2003-08-31  Simon Josefsson  <jas@extundo.com>
33289
33290         * lib/timegm.h: New file.
33291         * lib/timegm.c: New file.  Based on
33292         wget-1.8.2/src/http.c:mktime_from_utc.
33293
33294 2003-08-31  Karl Berry  <karl@gnu.org>
33295
33296         * lib/argp.h: update from libc.
33297
33298 2003-08-28  Bruno Haible  <bruno@clisp.org>
33299
33300         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
33301         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
33302         followed by '#define fnmatch fnmatch_posix' gives an error.
33303
33304 2003-08-28  Bruno Haible  <bruno@clisp.org>
33305
33306         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
33307         warning on QNX, which defines O_BINARY to 000000.
33308
33309 2003-08-27  Jim Meyering  <jim@meyering.net>
33310
33311         * m4/mkstemp.m4: Require that the system mkstemp be able to create
33312         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
33313         would fail after 32.  Reported by Danny Levinson.  Details here:
33314         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
33315
33316 2003-08-24  Bruno Haible  <bruno@clisp.org>
33317
33318         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
33319         MSVC7 <stdio.h> is included later.
33320
33321 2003-08-22  Simon Josefsson  <jas@extundo.com>
33322
33323         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
33324
33325 2003-08-20  Karl Berry  <karl@gnu.org>
33326
33327         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
33328
33329 2003-08-20  Bruno Haible  <bruno@clisp.org>
33330
33331         * modules/progname: New file.
33332         * MODULES.html.sh (func_all_modules): Add progname.
33333
33334 2003-08-20  Bruno Haible  <bruno@clisp.org>
33335
33336         * lib/progname.h: New file, from GNU gettext.
33337         * lib/progname.c: New file, from GNU gettext.
33338         * lib/progreloc.c: New file, from GNU gettext.
33339
33340 2003-08-19  Jim Meyering  <jim@meyering.net>
33341
33342         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
33343         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
33344
33345 2003-08-19  Bruno Haible  <bruno@clisp.org>
33346
33347         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
33348         more.
33349
33350 2003-08-19  Bruno Haible  <bruno@clisp.org>
33351
33352         * lib/xstrdup.c: Assume <string.h> exists.
33353
33354 2003-08-18  Paul Eggert  <eggert@twinsun.com>
33355
33356         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
33357         in makefile rules.
33358
33359 2003-08-18  Jim Meyering  <jim@meyering.net>
33360
33361         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
33362         * m4/lib-ld.m4: Likewise.
33363
33364 2003-08-18  Jim Meyering  <jim@meyering.net>
33365
33366         * lib/setenv.h: Indent nested cpp directive.
33367         * lib/vasnprintf.c: Remove trailing blanks.
33368
33369 2003-08-17  Simon Josefsson  <jas@extundo.com>
33370
33371         * modules/xstrndup: New file.
33372         * MODULES.html.sh (func_all_modules): Add xstrndup.
33373
33374 2003-08-17  Simon Josefsson  <jas@extundo.com>
33375
33376         * modules/argp: Fix autoconf macro name. Add more dependencies.
33377
33378 2003-08-17  Simon Josefsson  <jas@extundo.com>
33379
33380         * m4/xstrndup.m4: New file.
33381
33382 2003-08-17  Simon Josefsson  <jas@extundo.com>
33383
33384         * m4/argp.m4: New file.
33385
33386 2003-08-17  Simon Josefsson  <jas@extundo.com>
33387             Bruno Haible  <bruno@clisp.org>
33388
33389         * lib/xstrndup.h: New file.
33390         * lib/xstrndup.c: New file.
33391
33392 2003-08-17  Bruno Haible  <bruno@clisp.org>
33393
33394         * modules/strndup (Files, Include): Add lib/strndup.h.
33395
33396 2003-08-17  Bruno Haible  <bruno@clisp.org>
33397
33398         * modules/euidaccess (Files): Add lib/euidaccess.h.
33399
33400 2003-08-17  Bruno Haible  <bruno@clisp.org>
33401
33402         * lib/strndup.h: New file.
33403
33404 2003-08-17  Bruno Haible  <bruno@clisp.org>
33405
33406         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
33407         like AC_GNU_SOURCE.
33408         * modules/extensions (configure.ac): Comment out the invocation of
33409         gl_USE_SYSTEM_EXTENSIONS.
33410
33411 2003-08-16  Paul Eggert  <eggert@twinsun.com>
33412
33413         Merges from coreutils, etc.
33414         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
33415         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
33416         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
33417         fixing a typo.
33418         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
33419         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
33420
33421 2003-08-16  Paul Eggert  <eggert@twinsun.com>
33422
33423         Document merge from coreutils.
33424         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
33425         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
33426         * modules/utime: Add m4/utimes-null.m4.
33427
33428 2003-08-16  Paul Eggert  <eggert@twinsun.com>
33429
33430         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
33431         space, undoing this 2003-08-12 change:
33432         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
33433
33434 2003-08-16  Paul Eggert  <eggert@twinsun.com>
33435
33436         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
33437         strtoul.c from libc, undoing this 2003-08-12 change:
33438         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
33439
33440 2003-08-16  Jim Meyering  <jim@meyering.net>
33441
33442         Merges from coreutils.
33443         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
33444         prefix.  Adjust cache variables similarly.  Create 500 rather than
33445         just 300 files, to exercise bug on Darwin6.5, too.
33446         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
33447         $missing_dir.
33448         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
33449         AM_SYS_POSIX_TERMIOS.
33450         Reported by mkc@mathdogs.com.
33451         Also change use of $am_cv_sys_posix_termios
33452         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
33453         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
33454         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
33455         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
33456         in /proc/mounts until it finds one with matching device number.  This
33457         is unnecessary when the FILE argument *is* a mount point.  No stat call
33458         is necessary in that case.  So, disable the statvfs-testing code on
33459         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
33460         as RedHat bug# 84846.
33461         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
33462         to 1MB, so as not to render systems with no stack size limit (e.g.,
33463         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
33464         Include <unistd.h>.  On some systems,
33465         it is required for the definition of _SC_PAGESIZE.
33466
33467 2003-08-16  Jim Meyering  <jim@meyering.net>
33468
33469         Merge from coreutils.
33470         * lib/xstrtoimax.c: #else #if -> #elif.
33471         * lib/xstrtoumax.c: Likewise.
33472
33473 2003-08-16  Jim Meyering  <jim@meyering.net>
33474
33475         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
33476         * m4/utimes.m4: Removed.
33477         * m4/utimes-null.m4: Renamed from utimes.m4.
33478
33479         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
33480         to 1MB, so as not to render systems with no stack size limit (e.g.,
33481         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
33482         Include <unistd.h>.  On some systems,
33483         it is required for the definition of _SC_PAGESIZE.
33484
33485 2003-08-16  Jim Meyering  <jim@meyering.net>
33486         and Paul Eggert  <eggert@cs.ucla.edu>
33487
33488         Merges from coreutils, etc.
33489
33490         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
33491         using the latest version from cvs.  This avoids problems with #line
33492         directives using a vendor (Sun) compiler.
33493         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
33494         Don't set GETGROUPS_LIB here; now it's
33495         done via getgroups.m4's wrapper function.
33496         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
33497         rather than just in sh-util/configure.in, so that the
33498         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
33499         same.
33500         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
33501         AC_FUNC_GETLOADAVG where to find getloadavg.c.
33502         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
33503         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
33504         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
33505         Remove code that is now done by the newly-required macros.
33506         Append $(EXEEXT) to DF_PROG.
33507         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
33508         Do not invoke or require the following here,
33509         since prereq.m4 or some gnulib .m4 now does this for us:
33510         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
33511         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
33512         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
33513         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
33514         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
33515         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
33516         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
33517         AC_FUNC_OBSTACK.
33518         Do not replace the following functions, as this is now the job
33519         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
33520         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
33521         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
33522         atexit getpass, strdup, getpagesize.
33523         Replace 'raise'.
33524         Do not check for the following functions, as this is now the job
33525         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
33526         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
33527         setregid.
33528         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
33529         Check for sys/sysctl.h.
33530         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
33531         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
33532         of checking for ssize_t ourselves.
33533
33534         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
33535         Require every macro that gnulib/modules/* suggests for us.
33536         (jm_PREREQ_ADDEXT): New macro.
33537         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
33538         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
33539
33540         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
33541         (gl_PHYSMEM): Use it.
33542         Also check for `table' function.
33543         Check for new headers and functions.
33544         Add check for sys/sysmp.h.
33545         With suggestions from Kaveh Ghazi.
33546         Ignore headers that are present but cannot be compiled.  This
33547         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
33548         C 5.4.
33549
33550 2003-08-15  Paul Eggert  <eggert@twinsun.com>
33551
33552         Document merge from coreutils.
33553         * modules/userspec: Depend on posixver.
33554         * modules/strftime: Depend on tzset.
33555
33556 2003-08-15  Paul Eggert  <eggert@twinsun.com>
33557
33558         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
33559         rather than tab, after '#' in shell-script copyright notices.
33560         Suggested by Bruno Haible.
33561
33562 2003-08-15  Paul Eggert  <eggert@twinsun.com>
33563
33564         * config/srclist-update: Use three spaces, rather than tab, after '#'
33565         in shell-script copyright notices.  Suggested by Bruno Haible.
33566         Remove unnecessary parenthesization in regular expression.
33567
33568 2003-08-15  Jim Meyering  <jim@meyering.net>
33569
33570         Merge from coreutils.
33571         * lib/xgethostname.c: Include <stdlib.h>.
33572         (xghostname): Don't exit for anything other than memory-related
33573         failure; just return NULL.
33574         * lib/userspec.c: Include "posixver.h".
33575         (parse_user_spec): Accept `.' as a separator only
33576         in pre-POSIX-200112 mode.
33577         * lib/strtoimax.c: Use #elif rather than #else #if.
33578         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
33579         Remove function, now that we can rely on a working tzset function.
33580         [!_LIBC]: Ensure that the required autoconf test has been run.
33581         [!defined _NL_CURRENT && HAVE_STRFTIME]:
33582         Use underlying_strftime for %r.
33583         * lib/sha.c: Merge in some clean-up and optimization changes from
33584         glibc.
33585         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
33586         Ensure that it is a multiple of 64.
33587         Rearrange loop exit tests so as to avoid performing an
33588         additional fread after encountering an error or EOF.
33589         * lib/realloc.c: Update copyright date.
33590
33591 2003-08-15  Jim Meyering  <jim@meyering.net>
33592         and Paul Eggert  <eggert@twinsun.com>
33593
33594         Merge from coreutils.
33595         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
33596         member but strut utmpx does not.  Needed for AIX 4.3.3.
33597         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
33598
33599 2003-08-15  Jim Meyering  <jim@meyering.net>
33600         and Paul Eggert  <eggert@cs.ucla.edu>
33601
33602         Merges from coreutils, etc.
33603         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
33604         Require gl_FUNC_TZSET_CLOBBER.
33605         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
33606         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
33607         members.
33608
33609 2003-08-14  Paul Eggert  <eggert@twinsun.com>
33610
33611         Help the merge from coreutils.
33612         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
33613         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
33614         * m4/tzset.m4: Use it too.
33615
33616 2003-08-14  Paul Eggert  <eggert@twinsun.com>
33617
33618         * modules/tzset: New file.
33619
33620 2003-08-14  Jim Meyering  <jim@meyering.net>
33621
33622         Merges from coreutils.
33623         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
33624         variable names, rather than @FNMATCH_H@.
33625         * modules/alloca: Likewise for $(ALLOCA_H).
33626
33627         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
33628         the three copies of the literal target, `fnmatch.h'.
33629         * modules/alloca (alloca.h): Likewise.
33630
33631 2003-08-14  Jim Meyering  <jim@meyering.net>
33632
33633         Merge from coreutils.
33634         * m4/tzset.m4: New file.
33635         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
33636         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
33637         otherwise, AIX 5.1 systems would end up using the latter.
33638         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
33639         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
33640         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
33641         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
33642
33643 2003-08-14  Jim Meyering  <jim@meyering.net>
33644
33645         Merge from coreutils.
33646         * lib/obstack.h: Whitespace changes.
33647         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
33648         and xcalloc return values.
33649         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
33650         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
33651         hang on OSF/1 5.1 for DIR on both local and remote file systems.
33652         Reported by (and fix confirmed by) Nelson H. F. Beebe.
33653         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
33654         error from mntctl.
33655         Use mntctl's return value to drive the entry-processing loop, since
33656         we can't rely on the value of the vmt_length member in the last
33657         entry.  On some systems doing so could result in exhausting
33658         virtual memory.  Based in part on a patch from Mike Jetzer.
33659
33660 2003-08-14  Jim Meyering  <jim@meyering.net>
33661         and Paul Eggert  <eggert@twinsun.com>
33662
33663         Merges from coreutils, plus other fixes.
33664         * lib/physmem.c: Merge in portability changes from gcc/libiberty
33665         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
33666         for credits and details.  Thanks to Kaveh Ghazi for helping
33667         to keep these files in sync.
33668         (ARRAY_SIZE): Define it.
33669         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
33670         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
33671         (memcasecmp): Don't assume size_t fits in unsigned int.
33672         Remove casts and duplicate code.
33673         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
33674         (memcpy): Remove definition.
33675         Merge in some clean-up and optimization changes from glibc.
33676         [BLOCKSIZE]: Move definition to top of file.
33677         Ensure that it is a multiple of 64.
33678         Rearrange loop exit tests so as to avoid performing an
33679         additional fread after encountering an error or EOF.
33680         * lib/md5.h (md5_uintptr): Define.
33681         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
33682         return to the initial working directory.  Preserve errno
33683         for caller.
33684         * lib/idcache.c: Include "xalloc.h".
33685         (xmalloc, xrealloc): Remove decls.
33686         (getuser): Remove casts no longer required in C89.
33687         * lib/human.c: Include stdio.h, for sprintf.
33688         * lib/group-member.c: Include "xalloc.h".
33689         (xmalloc, xrealloc): Remove decls.
33690         (get_group_info): Remove casts no longer required in C89.
33691         * lib/getusershell.c (readname): Remove casts no longer required in
33692         C89.
33693         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
33694         * lib/getline.c: Whitespace fix, from coreutils.
33695
33696 2003-08-13  Paul Eggert  <eggert@twinsun.com>
33697
33698         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
33699         Check for isascii.
33700
33701         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
33702         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
33703         Undo previous (whitespace-only) change.
33704
33705 2003-08-13  Paul Eggert  <eggert@twinsun.com>
33706
33707         * lib/exclude.c: Include <ctype.h>
33708         (IN_CTYPE_DOMAIN): New macro.
33709         (is_space): New fn.
33710         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
33711         and empty lines.
33712
33713         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
33714         Undo previous (whitespace-only) change.
33715
33716 2003-08-13  Paul Eggert  <eggert@twinsun.com>
33717
33718         * config/srclist-update: Change update back to the old behavior,
33719         leaving whitespace alone.  Use one 'sed' command rather than a
33720         pipeline.
33721         (fixlicense): Now a variable, not a function.
33722         (remove_trailing_blanks): Remove.
33723         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
33724         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
33725         Undo previous (whitespace-only) change.
33726
33727 2003-08-12  Paul Eggert  <eggert@twinsun.com>
33728
33729         Merge from coreutils.
33730         * modules/euidaccess: Add lib_SOURCES, include for new
33731         file euidaccess.h
33732
33733 2003-08-12  Paul Eggert  <eggert@twinsun.com>
33734
33735         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
33736         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
33737         Normalize leading white space and remove trailing white space.
33738
33739         Merge from coreutils
33740         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
33741
33742         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
33743         0.12.1.  These files are now being upgraded automatically by
33744         ../config/srclist-update.
33745
33746 2003-08-12  Paul Eggert  <eggert@twinsun.com>
33747
33748         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
33749         Normalize leading white space and remove trailing white space.
33750         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
33751         notice, as per ../config/srclist-update.
33752
33753         Merge from coreutils.
33754         * lib/euidaccess.h: New file.
33755         * lib/euidaccess.c: Include it.
33756         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
33757         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
33758         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
33759
33760 2003-08-12  Paul Eggert  <eggert@twinsun.com>
33761
33762         * config/srclist-update: Add copyright notice.
33763         (remove_id_lines, remove_trailing_blanks): New constants.
33764         (fixfile): Use them to normalize spacing a bit in copied files.
33765         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
33766         Normalize leading white space and remove trailing white space.
33767
33768         * config/texinfo.tex: Sync with texinfo.
33769
33770         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
33771         strtoul.c from libc, to merge coreutils whitespace changes.
33772
33773         * config/srclist.txt: Get the following m4 files from gettext:
33774         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
33775         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
33776         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
33777         wint_t.m4.
33778
33779 2003-08-12  Karl Berry  <karl@gnu.org>
33780
33781         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
33782         been made.
33783
33784 2003-08-11  Paul Eggert  <eggert@twinsun.com>
33785
33786         * modules/gnu-source, m4/gnu-source.m4:
33787         Remove; we're assuming Autoconf 2.54 or later now.
33788         Suggested by Bruno Haible.
33789         * MODULES.html.sh (func_all_modules): Remove gnu-source.
33790
33791 2003-08-11  Bruno Haible  <bruno@clisp.org>
33792
33793         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
33794
33795 2003-08-11  Bruno Haible  <bruno@clisp.org>
33796
33797         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
33798         (vasnprintf): Use it instead of wcslen.
33799
33800 2003-08-11  Bruno Haible  <bruno@clisp.org>
33801
33802         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
33803         value to ensure that _Bool promotes to int. Use #define for _Bool when
33804         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
33805
33806 2003-08-10  Karl Berry  <karl@gnu.org>
33807
33808         * lib/regex.h: update from libc (whitespace fix).
33809
33810 2003-08-09  Paul Eggert  <eggert@twinsun.com>
33811
33812         Merge some files from coreutils.  These changes were
33813         originally made by Jim Meyering.
33814         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
33815         many older Unixes require this.
33816         * lib/alloca.c (alloca): Remove cast to argument of free;
33817         no longer needed in C89.
33818         * lib/alloca_.h, regex.h: Fix white space to match
33819         what GNU indent does.
33820
33821 2003-08-09  Paul Eggert  <eggert@twinsun.com>
33822
33823         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
33824         apparently Emacs's Unicode mode got confused before my 2003-08-05
33825         checkin.
33826
33827 2003-08-08  Paul Eggert  <eggert@twinsun.com>
33828
33829         * m4/extensions.m4: New file.
33830         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
33831         Require gl_USE_SYSTEM_EXTENSIONS.
33832         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
33833         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
33834
33835 2003-08-08  Paul Eggert  <eggert@twinsun.com>
33836
33837         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
33838         * modules/extensions, modules/gnu-source: New files.
33839         * modules/timespec, modules/unlocked-io: Depend on extensions.
33840
33841 2003-08-07  Paul Eggert  <eggert@twinsun.com>
33842
33843         * modules/restrict: New file.
33844         * MODULES.html.sh (func_all_modules): Add restrict.
33845         * modules/regex: Depend on restrict.
33846
33847 2003-08-07  Paul Eggert  <eggert@twinsun.com>
33848
33849         * m4/restrict.m4: New file.
33850         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
33851
33852 2003-08-07  Bruno Haible  <bruno@clisp.org>
33853
33854         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
33855         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
33856
33857 2003-08-07  Bruno Haible  <bruno@clisp.org>
33858
33859         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
33860         makes the module 'getndelim2' compatible with the module 'getline'.
33861
33862 2003-08-05  Paul Eggert  <eggert@twinsun.com>
33863
33864         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
33865         byte with "\201" to avoid glitches when editing that source file
33866         with multi-gnome-terminal.
33867
33868 2003-08-05  Paul Eggert  <eggert@twinsun.com>
33869
33870         * lib/bumpalloc.h: Remove.
33871
33872 2003-08-05  Paul Eggert  <eggert@twinsun.com>
33873
33874         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
33875         * modules/bumpalloc: Remove.
33876
33877 2003-08-04  Paul Eggert  <eggert@twinsun.com>
33878
33879         * lib/getloadavg.c: Change copyright notice and spacing to conform to
33880         GNU coding style.
33881
33882         Merge from coreutils.
33883         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
33884         1. From glibc.
33885         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
33886         from Karl Berry, implemented by Jim Meyering.
33887         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
33888         from Dmitry V. Levin.
33889         Remove anachronistic cast of xrealloc.
33890         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
33891         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
33892         type. Otherwise, it wouldn't compile with at least /bin/cc on
33893         ymp-cray-unicos9.0.2.X.
33894         Combine two mostly-identical uses of alloca into one.
33895         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
33896
33897 2003-08-04  Dave Love  <d.love@dl.ac.uk>
33898
33899         [From Emacs.]
33900
33901         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
33902         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
33903         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
33904         obsolete NLIST_NAME_UNION.
33905         [__GNU__]: Undef BSD and FSCALE.
33906         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
33907
33908 2003-08-03  Paul Eggert  <eggert@twinsun.com>
33909
33910         * lib/stdbool_.h (_Bool): Make it signed char, instead of
33911         an enum type, so that it's guaranteed to promote to int.  See:
33912         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
33913
33914 2003-08-03  Karl Berry  <karl@gnu.org>
33915
33916         * config/depcomp: update from automake.
33917
33918 2003-07-31  Paul Eggert  <eggert@twinsun.com>
33919
33920         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
33921         (strerror): Don't assume that a printable int fits in 14 bytes.
33922
33923 2003-07-31  Bruno Haible  <bruno@clisp.org>
33924
33925         * modules/getpass-gnu: New file.
33926         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
33927
33928 2003-07-31  Bruno Haible  <bruno@clisp.org>
33929
33930         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
33931
33932 2003-07-24  Karl Berry  <karl@gnu.org>
33933
33934         * config/missing: update from automake.
33935
33936 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
33937             Bruno Haible  <bruno@clisp.org>
33938
33939         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
33940         * lib/getline.c (getline, getdelim): Likewise.
33941         Remove _GNU_SOURCE define; now it's defined in config.h through
33942         m4/getline.m4.
33943
33944 2003-07-23  Karl Berry  <karl@gnu.org>
33945
33946         * config/config.sub: update from prep.
33947
33948 2003-07-22  Paul Eggert  <eggert@twinsun.com>
33949
33950         * modules/xalloc (Depends-on): Add exitfail.
33951         * modules/xmemcoll: Likewise.
33952
33953 2003-07-22  Paul Eggert  <eggert@twinsun.com>
33954
33955         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
33956         over-parenthesization in macros.
33957
33958         Sync with coreutils.
33959
33960         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
33961         required by C99.
33962
33963         Use `exit_failure' for xalloc and xmemcoll instead of their own
33964         private exit-failure variables.
33965         * lib/xalloc.h (xalloc_exit_failure): Remove.
33966         * lib/xmalloc.c: Likewise.  Include exitfail.h.
33967         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
33968         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
33969         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
33970         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
33971
33972 2003-07-20  Jim Meyering  <jim@meyering.net>
33973
33974         * modules/closeout (Depends-on): Add exitfail.
33975         Suggestion from Bruno Haible.
33976
33977 2003-07-19  Karl Berry  <karl@gnu.org>
33978
33979         * config/config.sub: update from prep.
33980
33981 2003-07-18  Paul Eggert  <eggert@twinsun.com>
33982
33983         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
33984         Remove.
33985         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
33986         to test that it can stand by itself.  Include "exitfail.h".
33987         Clients should set exit_failure instead.
33988         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
33989
33990 2003-07-18  Bruno Haible  <bruno@clisp.org>
33991
33992         * modules/getndelim2: New file.
33993         * modules/getline: Share files with module getndelim2.
33994         * modules/getnline: Depend on getndelim2 instead of sharing files with
33995         it. Add getnline.c to lib_SOURCES.
33996         * MODULES.html.sh (func_all_modules): Add getndelim2.
33997
33998 2003-07-18  Bruno Haible  <bruno@clisp.org>
33999
34000         * m4/getndelim2.m4: New file.
34001         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
34002         invoke gl_PREREQ_GETNDELIM2.
34003         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
34004         gl_PREREQ_GETNDELIM2.
34005         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
34006         gl_GETNDELIM2.
34007
34008 2003-07-18  Bruno Haible  <bruno@clisp.org>
34009
34010         * lib/getndelim2.h: New file.
34011         * lib/getndelim2.c: Make into a module of its own. Include config.h,
34012         getndelim2.h.
34013         (getndelim2): Make non-static. Change return type to ssize_t.
34014         * lib/getline.h: Change argument names.
34015         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
34016         * lib/getnline.c: Include getndelim2.h.
34017
34018 2003-07-18  Andreas Schwab  <schwab@suse.de>
34019
34020         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
34021
34022 2003-07-17  Karl Berry  <karl@gnu.org>
34023
34024         * config/config.sub: update from prep.
34025
34026 2003-07-17  Bruno Haible  <bruno@clisp.org>
34027
34028         * modules/getnline: New file.
34029         * modules/getline: Add lib/getndelim2.c to source file list.
34030         * MODULES.html.sh (func_all_modules): Add getnline.
34031
34032 2003-07-17  Bruno Haible  <bruno@clisp.org>
34033
34034         * m4/getnline.m4: New file.
34035
34036 2003-07-17  Bruno Haible  <bruno@clisp.org>
34037
34038         * m4/Makefile.am.in: Remove file.
34039         * m4/Makefile.am: Remove file.
34040         * m4/Makefile.in: Remove file.
34041
34042 2003-07-17  Bruno Haible  <bruno@clisp.org>
34043
34044         * lib/getnline.h: New file.
34045         * lib/getnline.c: New file.
34046         * lib/getndelim2.c: New file, extracted from getline.c.
34047         (getndelim2): Renamed from getdelim2, with added nmax argument.
34048         * lib/getline.c: Include getndelim2.c.
34049         (getdelim2): Moved out to getndelim2.c.
34050         (getline, getdelim): Update.
34051
34052 2003-07-17  Bruno Haible  <bruno@clisp.org>
34053
34054         * lib/Makefile.am: Remove file.
34055         * lib/Makefile.in: Remove file.
34056
34057 2003-07-17  Bruno Haible  <bruno@clisp.org>
34058
34059         * configure.in: Remove file.
34060         * Makefile.in: Remove file.
34061
34062 2003-07-17  Bruno Haible  <bruno@clisp.org>
34063
34064         * MODULES.html.sh: Put the </BODY> right before </HTML>.
34065
34066 2003-07-16  Karl Berry  <karl@gnu.org>
34067
34068         * config/srclist-update: was running fixlicense twice, which caused
34069                 texinfo.tex to be nullified for some reason.  Simplify,
34070                 $gplsrc is no longer needed as far as I can see?
34071
34072 2003-07-16  Jim Meyering  <jim@meyering.net>
34073
34074         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
34075
34076 2003-07-15  Paul Eggert  <eggert@twinsun.com>
34077
34078         * config/srclist.txt: Get the following files from gettext-runtime/intl
34079         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
34080         ref-del.sin.  From Bruno Haible.
34081         * config/srclist-update (fixfile): Change grep pattern again, since the
34082         previous fix didn't work (there was another trailing $).  Use
34083         '[$]' to escape the $s.
34084
34085 2003-07-15  Karl Berry  <karl@gnu.org>
34086
34087         * lib/vasnprintf.c: update from gettext.
34088
34089 2003-07-15  Karl Berry  <karl@gnu.org>
34090
34091         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
34092         gets expanded when surrounded by '$'.
34093
34094 2003-07-15  Jim Meyering  <jim@meyering.net>
34095
34096         * modules/save-cwd: Don't depend on error.  From Derek Price.
34097
34098 2003-07-15  Jim Meyering  <jim@meyering.net>
34099
34100         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
34101
34102 2003-07-14  Simon Josefsson  <jas@extundo.com>
34103
34104         * modules/mempcpy: New file.
34105         * MODULES.html.sh (func_all_modules): Add mempcpy.
34106
34107 2003-07-14  Simon Josefsson  <jas@extundo.com>
34108
34109         * m4/mempcpy.m4: New file.
34110
34111 2003-07-14  Simon Josefsson  <jas@extundo.com>
34112
34113         * lib/mempcpy.h: New file.
34114         * lib/mempcpy.c: New file.
34115
34116 2003-07-14  Paul Eggert  <eggert@twinsun.com>
34117
34118         * modules/getdate, modules/posixtm: Depend on mktime.
34119
34120 2003-07-14  Paul Eggert  <eggert@twinsun.com>
34121
34122         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
34123         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
34124         unicodeio.c, unicodeio.h, unlocked-io.h:
34125         Switch from LGPL to GPL.
34126
34127 2003-07-14  Paul Eggert  <eggert@twinsun.com>
34128
34129         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
34130         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
34131         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
34132         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
34133         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
34134         updated automatically by ../config/srclist-update.  This changes
34135         their license from LPGL to GPL.
34136
34137 2003-07-14  Paul Eggert  <eggert@twinsun.com>
34138
34139         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
34140         assumed to refer to the root of the most recent stable gettext version.
34141         * config/srclistvars.sh: Add defaults for eggert.
34142         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
34143         Match "This program" as well as "The program".  This is needed
34144         for gettext.
34145
34146 2003-07-14  Jim Meyering  <jim@meyering.net>
34147
34148         Don't emit diagnostics.  Let callers do that.
34149         * lib/save-cwd.c: Don't include "error.h".
34150         (save_cwd): Don't call error.  Ensure that errno is valid
34151         when returning nonzero.
34152
34153         * lib/save-cwd.h (restore_cwd): Update prototype.
34154         * lib/save-cwd.c (restore_cwd): Remove two parameters.
34155         Simplify.  Don't call error upon failure.  Let callers do that.
34156         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
34157         when auditing is enabled.  But don't bother updating the #if.
34158
34159 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
34160
34161         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
34162         it breaks C++ compilation.
34163         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
34164
34165 2003-07-10  Simon Josefsson  <jas@extundo.com>
34166
34167         * modules/strchrnul (Makefile.am): Add strchrnul.h.
34168
34169 2003-07-10  Jim Meyering  <jim@meyering.net>
34170
34171         * m4/clock_time.m4: Remove trailing blank.
34172         * m4/intmax_t.m4: Likewise.
34173
34174 2003-07-10  Jim Meyering  <jim@meyering.net>
34175
34176         * lib/vasnprintf.c: Remove trailing blanks.
34177         Make cpp indentation consistent.
34178
34179 2003-07-09  Paul Eggert  <eggert@twinsun.com>
34180
34181         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
34182         posixver.c, strftime.c, strnlen.c, strverscmp.c:
34183         Switch from LGPL to GPL.
34184
34185 2003-07-09  Paul Eggert  <eggert@twinsun.com>
34186
34187         * config/srclist.txt: Sort sublists.  Add
34188         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
34189         that differ from gnulib for one reason or another; we'd like this list
34190         to be smaller but for now let's document what we have.
34191
34192 2003-07-08  Paul Eggert  <eggert@twinsun.com>
34193
34194         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
34195         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
34196         and sweeter "eval x=$x".
34197         * config/srclist.txt: Get lib/argp* from glibc.
34198
34199 2003-07-07  Paul Eggert  <eggert@twinsun.com>
34200
34201         * lib/mktime.c: Fix some boundary cases and remove need for floating
34202         point.
34203
34204         Issue a compile-time diagnostic if time_t is floating point, or if
34205         two's complement arithmetic is not in effect, or if arithmetic
34206         right shift does not propagate the sign.  These assumptions were
34207         all in the original code but they weren't checked.
34208
34209         (TIME_T_MIDPOINT, verify): New macros.
34210         (__isleap): Remove; it has integer overflow problems.
34211         (leapyear): New function, without those problems.
34212         (ydhms_tm_diff): Remove; splitting into two parts.
34213         (ydhms_diff): New function, containing the arithmetic part of
34214         the old ydhms_tm_diff function.  Issue a compile-time
34215         diagnostic if we are not using C99 integer division.
34216         Avoid casts when possible.
34217         (guess_time_tm): New function, containing the checking part of
34218         the old ydhms_tm_diff function.  Return the new value, rather than
34219         the difference between it and the old.  Accept a new argument T
34220         so that *T specifies the old value.  Check for overflow in the result.
34221
34222         (__mktime_internal): Use a time_t offset, not a long int offset.
34223         This undoes the 2003-06-04 change, which is no longer needed now
34224         that we have better overflow checking.
34225         (localtime_offset): Likewise.
34226
34227         (__mktime_internal): Avoid harmful overflow on hosts where time_t
34228         and long are 64-bit but int is only 32-bit.
34229         (ydhms_diff): Use long int to store year1 and yday1.
34230         Issue a compile-time diagnostic if long int is not wide enough.
34231
34232         (__mktime_internal): Use long int to store adjusted year and yday.
34233         Use plain C rather than preprocessor commands, if that doesn't
34234         affect efficiency.
34235         Check for overflow (and try to repair) after each probe
34236         rather than checking only at the very end.  This avoids some bugs
34237         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
34238         does not equal GMT offset at maximum time).
34239         Use integer to check for overflow rather than floating point; this
34240         is more portable to non-IEEE hosts, and is a tad faster.
34241         When we detect that we are oscillating between two values,
34242         don't check whether tm_isdst has the requested value, since
34243         we already know the answer.  When tm_isdst has the wrong value,
34244         use a different heuristic to find the right one, based on the
34245         extreme values actually observed in practice in tz2003a,
34246         rather than the (overly optimistic) "previous 3 calendar quarters".
34247
34248         (not_equal_tm, print_tm, check_result): Use "const T" rather than
34249         "T const" to accommodate glibc style.
34250         (check_result): Use less-confusing report format.  "long" -> "long int.
34251         (main): Likewise.
34252         Don't loop if the iteration overflows time_t.
34253         Allow a negative step in the iteration.
34254
34255 2003-07-06  Karl Berry  <karl@gnu.org>
34256
34257         * config/depcomp: update from automake.
34258         * config/config.sub: update from prep.
34259
34260 2003-07-03  Karl Berry  <karl@gnu.org>
34261
34262         * config/config.guess: update from prep.
34263
34264 2003-07-01  Paul Eggert  <eggert@twinsun.com>
34265
34266         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
34267         xreadlink.c now includes it unconditionally.
34268
34269 2003-07-01  Paul Eggert  <eggert@twinsun.com>
34270
34271         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
34272         having it depend on HAVE_SYS_TYPES_H.
34273
34274 2003-07-01  Bruno Haible  <bruno@clisp.org>
34275
34276         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
34277         <sys/types.h> should be sufficient.
34278         Reported by Paul Eggert.
34279
34280 2003-06-26  Karl Berry  <karl@gnu.org>
34281
34282         * config/depcomp: update from automake.
34283
34284 2003-06-26  Bruno Haible  <bruno@clisp.org>
34285
34286         * modules/human: Depend on module stdbool.
34287
34288 2003-06-25  Bruno Haible  <bruno@clisp.org>
34289
34290         * modules/readlink: New file.
34291         * modules/xreadlink: Depend on it.
34292         * MODULES.html.sh (func_all_modules): Add readlink.
34293
34294 2003-06-25  Bruno Haible  <bruno@clisp.org>
34295
34296         * m4/readlink.m4: New file.
34297
34298 2003-06-25  Bruno Haible  <bruno@clisp.org>
34299
34300         * lib/readlink.c: New file.
34301
34302 2003-06-22  Karl Berry  <karl@gnu.org>
34303
34304         * config/srclist.txt: update mkinstalldirs from automake.
34305         * config/mkinstalldirs: update.
34306
34307 2003-06-22  Bruno Haible  <bruno@clisp.org>
34308
34309         Portability to mingw32.
34310         * m4/ssize_t.m4: New file, from GNU gettext.
34311         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
34312         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
34313
34314 2003-06-22  Bruno Haible  <bruno@clisp.org>
34315
34316         * modules/safe-read: Add m4/ssize_t.m4.
34317         * modules/xreadlink: Add m4/ssize_t.m4.
34318
34319 2003-06-20  Bruno Haible  <bruno@clisp.org>
34320
34321         Assume C89, so PARAMS isn't needed.
34322         * lib/unicodeio.h (PARAMS): Remove.
34323         * lib/unicodeio.c: Don't use PARAMS.
34324
34325 2003-06-18  Karl Berry  <karl@gnu.org>
34326
34327         * config/config.{guess,sub}: update from prep.
34328
34329 2003-06-18  Jim Meyering  <jim@meyering.net>
34330
34331         Merge changes from coreutils.
34332         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
34333         Remove explicit declarations of xmalloc and realloc.
34334         Include xalloc.h.
34335         (read_utmp): Remove anachronistic cast of xmalloc.
34336
34337 2003-06-17  Paul Eggert  <eggert@twinsun.com>
34338
34339         Assume C89, so PARAMS isn't needed.
34340         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
34341         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
34342         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
34343         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
34344         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
34345         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
34346         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
34347         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
34348         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
34349         lib/xstrtod.h, lib/xstrtol.h: Likewise.
34350         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
34351         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
34352         no longer needed. Anyway, config.h should always be included before any
34353         other file.
34354
34355 2003-06-11  Simon Josefsson  <jas@extundo.com>
34356
34357         * modules/sysexits: New file.
34358         * MODULES.html.sh (func_all_modules): Add sysexits.
34359
34360 2003-06-11  Simon Josefsson  <jas@extundo.com>
34361
34362         * lib/sysexit_.h: New file.
34363
34364 2003-06-11  Derek Price  <derek@ximbiot.com>
34365
34366         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
34367         necessary.
34368
34369 2003-06-11  Bruno Haible  <bruno@clisp.org>
34370
34371         * m4/sysexits.m4: New file.
34372
34373 2003-06-10  Simon Josefsson  <jas@extundo.com>
34374
34375         * lib/argp.h: New file, from glibc.
34376         * lib/argp-ba.c: New file, from glibc.
34377         * lib/argp-eexst.c: New file, from glibc.
34378         * lib/argp-fmtstream.c: New file, from glibc.
34379         * lib/argp-fmtstream.h: New file, from glibc.
34380         * lib/argp-fs-xinl.c: New file, from glibc.
34381         * lib/argp-help.c: New file, from glibc.
34382         * lib/argp-namefrob.h: New file, from glibc.
34383         * lib/argp-parse.c: New file, from glibc.
34384         * lib/argp-pv.c: New file, from glibc.
34385         * lib/argp-pvh.c: New file, from glibc.
34386         * lib/argp-xinl.c: New file, from glibc.
34387
34388 2003-06-10  Simon Josefsson  <jas@extundo.com>
34389
34390         * modules/strchrnul: New file.
34391
34392 2003-06-10  Simon Josefsson  <jas@extundo.com>
34393
34394         * modules/argp: New file.
34395
34396 2003-06-10  Simon Josefsson  <jas@extundo.com>
34397
34398         * m4/strchrnul.m4: New file.
34399
34400 2003-06-10  Simon Josefsson  <jas@extundo.com>
34401
34402         * lib/strchrnul.h: New file.
34403         * lib/strchrnul.c: New file.
34404
34405 2003-06-10  Bruno Haible  <bruno@clisp.org>
34406
34407         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
34408
34409 2003-06-07  Karl Berry  <karl@gnu.org>
34410
34411         * config/config.{guess,sub}: update from prep.
34412
34413 2003-06-07  Jim Meyering  <jim@meyering.net>
34414
34415         * modules/strtod: Use $(...) notation, not @...@ for
34416         AC_REPLACE'd variables.
34417         * modules/localcharset: Likewise.
34418
34419 2003-06-07  Jim Meyering  <jim@meyering.net>
34420
34421         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
34422         in place of my name in the copyright comment.
34423         Remove definition and uses of __P.
34424
34425         From coreutils.
34426         * lib/stat.c: Don't declare xmalloc explicitly.
34427         Instead, include "xalloc.h".
34428         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
34429         xrealloc, and xcalloc return values.
34430         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
34431         Improve comment.
34432         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
34433
34434 2003-06-07  Bruno Haible  <bruno@clisp.org>
34435
34436         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
34437         avoid AC_CONFIG_LINKS.
34438         * modules/fnmatch (Makefile.am): Use explicit creation rule for
34439         fnmatch.h, to avoid AC_CONFIG_LINKS.
34440         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
34441
34442 2003-06-07  Bruno Haible  <bruno@clisp.org>
34443
34444         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
34445         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
34446         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
34447         directory.
34448         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
34449         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
34450         directory.
34451
34452 2003-06-06  Jim Meyering  <jim@meyering.net>
34453
34454         Merge from coreutils.
34455         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
34456         Consolidate declarations and initializations of *_base* locals.
34457
34458         Merge from coreutils.
34459         This avoids a core dump on systems without GNU putenv,
34460         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
34461         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
34462         (unsetenv): New static function, from GNU libc.
34463         (rpl_putenv): Use it.
34464
34465         * lib/modechange.c: Remove trailing blanks.
34466
34467         Merge from coreutils.
34468         * lib/fsusage.c: Remove declaration of statfs.
34469         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
34470
34471         * lib/posixtm.c: Include <stdbool.h> unconditionally.
34472
34473 2003-06-06  Jim Meyering  <jim@meyering.net>
34474
34475         * lib/stdbool_.h: Renamed from stdbool.h.in.
34476
34477 2003-06-06  Jim Meyering  <jim@meyering.net>
34478             Bruno Haible  <bruno@clisp.org>
34479
34480         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
34481         Adjust Makefile.am snippet not to redirect directly to target.
34482         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
34483
34484 2003-06-05  Paul Eggert  <eggert@twinsun.com>
34485
34486         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
34487         mismatch, look in future quarters as well as past.  This fixes a
34488         bug when processing fall-backwards gaps immediately after a long
34489         period of daylight-saving time.
34490
34491         * lib/mktime.c: Assume freestanding C89 or better.
34492         (HAVE_LIMITS_H): Remove.  Assume it's 1.
34493         (__P): Remove; not used.
34494         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
34495         (mktime, not_equal_tm, print_tm, check_result,
34496         main): Use prototypes.  Use const * where appropriate.
34497         (main): Fix typo in testing code that uncovered by above changes.
34498         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
34499
34500 2003-06-04  Paul Eggert  <eggert@twinsun.com>
34501
34502         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
34503         locale.h, localeconv.  This merges changes from coreutils.
34504
34505         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
34506         It can be removed after the next Autoconf is released.
34507         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
34508         needed.
34509
34510 2003-06-04  Paul Eggert  <eggert@twinsun.com>
34511
34512         * lib/mktime.c: Fix Debian bug 177940
34513         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
34514         (localtime_offset): Now long int, not time_t, because we want it
34515         to be guaranteed to be signed.  All uses changed.
34516         (__mktime_internal): If overflow would occur when adding offset,
34517         don't add it.
34518
34519         Merge 'human' changes from coreutils.  Rewrite to support
34520         locale-specific notations like thousands separators.
34521         * lib/human.c: Simplify authorship notice.
34522         Include human.h immediately after config.h.
34523         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
34524         <limits.h>: Do not include, since human.h does.
34525         (SIZE_MAX, UINTMAX_MAX): New macros.
34526         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
34527         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
34528         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
34529         (power_letter): Renamed from suffixes.
34530         (generate_suffix_backwards): Remove.
34531         (adjust_value): Now takes int style (because of human.h changes)
34532         and long double value (for greater precision on some platforms).
34533         (group_number): New function.
34534         (human_readable): Use it.  Use integer options, not enum.
34535         Put the options before the sizes in the arg list.
34536         Support all the new options.
34537         The old human_readable function has been removed;
34538         use inttostr.h instead.
34539         (human_readable, default_block_size, humblock):
34540         Use uintmax_t, not int, for block sizes.
34541         (human_readable_inexact, block_size_types): Remove.
34542         (block_size_opts): New constant.
34543         (human_options): Renamed from human_block_size, with new signature
34544         that allows block sizes up to UINTMAX_MAX.  All callers changed.
34545         * lib/human.h: Add copyright and authorship notice.
34546         Include <limits.h> and <stdbool.h> unconditionally.
34547         (PARAMS): Remove.  All uses removed.
34548         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
34549         (enum human_inexact_style): Remove tag; now a nameless enum.
34550         (human_floor, human_ceiling, human_round_to_even): Now have
34551         values 2, 0, 1 rather than -1, 1, 0.
34552         (human_group_digits, human_suppress_point_zero, human_autoscale,
34553         human_base_1024, human_SI, human_B): New constants.
34554         (human_readable_inexact, human_block_size): Remove.
34555         (human_readable): Size args are now uintmax_t, not int.
34556         (human_options): New decl.
34557
34558         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
34559         unnecessary now that we assume C89 or better.  This change
34560         imported from coreutils.
34561
34562         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
34563         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
34564         in the 2003-05-30 sync from glibc.
34565
34566         .h files should stand alone, but we shouldn't include <sys/types.h>
34567         if we can get away with just <stddef.h>.
34568
34569         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
34570         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
34571         rather than <sys/types.h>, as we merely need size_t.
34572         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
34573         to get size_t.
34574         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
34575         Include <stdio.h>, to get FILE.
34576         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
34577         memcasecmp.h has included <stddef.h> and all we need is size_t.
34578         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
34579         our interface, instead of including <sys/types.h>
34580
34581 2003-06-04  Paul Eggert  <eggert@twinsun.com>
34582
34583         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
34584         now, as glibc mktime is buggy on non-glibc systems.
34585
34586 2003-06-03  Karl Berry  <karl@gnu.org>
34587
34588         * config/config.sub: update from prep.
34589
34590 2003-06-02  Paul Eggert  <eggert@twinsun.com>
34591
34592         [from coreutils]
34593         Fix some minor time-related bugs with POSIX time arguments.
34594         Some valid time stamps were being rejected (notably -1, and
34595         time stamps before 1900 on 64-bit hosts).  And some invalid
34596         time stamps were being accepted, e.g. September 31.
34597
34598         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
34599         that we can return (time_t) -1 successfully.
34600         * lib/posixtm.c: Likewise.
34601         [HAVE_STDBOOL_H]: Include <stdbool.h>.
34602         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
34603         (t): Remove static var.
34604         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
34605         of static var.  All uses changed.
34606         (year): Do not reject years before 1900; they can occur with
34607         64-bit time_t.
34608         (posix_time_parse): Do not check for out-of-range components;
34609         that is now the caller's responsibility, since our checks were
34610         only approximations.
34611         (posixtime): Use mktime to check for out-of-range components,
34612         since it knows them exactly.
34613         If mktime returns (time_t) -1, check whether an error actually occurred
34614         by invoking localtime on -1.
34615         (main) [TEST_POSIXTIME]: Check for input data errors, and report
34616         posixtime failures better.
34617         Improve the test data (in comments only).
34618
34619 2003-06-02  Karl Berry  <karl@gnu.org>
34620
34621         * config/mkinstalldirs (version): new variable.
34622         (--version): new option.
34623         (usage): improve message.
34624
34625 2003-05-30  Karl Berry  <karl@gnu.org>
34626
34627         * lib/mktime.c: update from libc.
34628
34629 2003-05-30  Bruno Haible  <bruno@clisp.org>
34630
34631         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
34632         * config/config.rpath: Upgrade to gettext-0.12.1.
34633
34634 2003-05-30  Bruno Haible  <bruno@clisp.org>
34635
34636         * m4/gettext.m4: Upgrade to gettext-0.12.1.
34637         * m4/nls.m4: New file, from gettext-0.12.1.
34638         * m4/po.m4: New file, from gettext-0.12.1.
34639         * m4/progtest.m4: Upgrade to gettext-0.12.1.
34640
34641 2003-05-30  Bruno Haible  <bruno@clisp.org>
34642
34643         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
34644         * lib/localcharset.h: Likewise.
34645         * lib/localcharset.c: Likewise.
34646
34647 2003-05-29  Karl Berry  <karl@gnu.org>
34648
34649         * config/config.rpath: update from gettext.
34650
34651 2003-05-28  Paul Eggert  <eggert@twinsun.com>
34652
34653         Assume the headers required for C89 freestanding compilers.
34654         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
34655         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
34656         * m4/human.m4 (gl_HUMAN): Likewise.
34657         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
34658         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
34659         * m4/userspec.m4 (gl_USERSPEC): Likewise.
34660         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
34661         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
34662         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
34663
34664 2003-05-28  Paul Eggert  <eggert@twinsun.com>
34665
34666         Assume the headers required for C89 freestanding compilers.
34667         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
34668         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
34669         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
34670         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
34671         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
34672         define, since <limits.h> is guaranteed to do that.
34673         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
34674         * lib/exclude.c: Include <stdbool.h> unconditionally.
34675         * lib/tempname.c: Include <stddef.h> unconditionally.
34676         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
34677         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
34678         <stddef.h> does that.
34679         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
34680         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
34681         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
34682         needed.
34683         * lib/xstrtol.c: Likewise.
34684         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
34685         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
34686
34687         * lib/addext.c (addext): Use assignment rather than cast, to avoid
34688         warnings on some platforms.
34689
34690         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
34691         arbitrarily.
34692
34693 2003-05-26  Jim Meyering  <jim@meyering.net>
34694
34695         Merge in a change from coreutils:
34696         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
34697         that is guaranteed to be `no'.  Use `no_such_member' to indicate
34698         that condition, rather than `-1' which is slightly misleading.
34699         Change the name of the cache variable to have the gl_ prefix.
34700         Prompted by a patch from Richard Dawe for DJGPP.
34701
34702 2003-05-24  Karl Berry  <karl@gnu.org>
34703
34704         * config/config.guess: update from prep.
34705
34706 2003-05-22  Karl Berry  <karl@gnu.org>
34707
34708         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
34709
34710 2003-05-20  Karl Berry  <karl@gnu.org>
34711
34712         * config/config.guess: update from prep.
34713
34714 2003-05-18  Karl Berry  <karl@gnu.org>
34715
34716         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
34717         might actually be set by the user.
34718
34719         * config/depcomp, install-sh, mdate-sh: update from automake.
34720
34721 2003-05-17  Bruno Haible  <bruno@clisp.org>
34722
34723         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
34724         invalid expansion for AC_EGREP_CPP.
34725         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
34726         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
34727         Suggested by Akim Demaille <akim@epita.fr> in
34728         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
34729
34730 2003-05-12  Jim Meyering  <jim@meyering.net>
34731
34732         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
34733         the space-padded-by-default conversion specifiers, %e, %k, %l.
34734
34735 2003-05-12  Bruno Haible  <bruno@clisp.org>
34736
34737         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
34738         the string is longer than 4 KB.
34739
34740 2003-05-11  Karl Berry  <karl@gnu.org>
34741
34742         * config/config.{guess,sub}: update from prep.
34743
34744 2003-05-09  Bruno Haible  <bruno@clisp.org>
34745
34746         * modules/error: Add m4/strerror_r.m4 to file list.
34747
34748 2003-05-03  Bruno Haible  <bruno@clisp.org>
34749
34750         Upgrade to Unicode-4.0.
34751         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
34752         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
34753         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
34754         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
34755         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
34756         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
34757         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
34758         Change width of U+E0100..U+E01EF from 1 to 0.
34759
34760 2003-04-25  Jim Meyering  <jim@meyering.net>
34761
34762         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
34763         of type size_t, not int.
34764
34765 2003-04-25  Bruno Haible  <bruno@clisp.org>
34766
34767         * lib/copy-file.c: Include <stddef.h>, for size_t.
34768
34769 2003-04-21  Paul Eggert  <eggert@twinsun.com>
34770
34771         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
34772         code which expansion is under static control.  Patch imported from
34773         Akim Demaille's patch to Bison; see
34774         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
34775
34776 2003-04-14  Bruno Haible  <bruno@clisp.org>
34777
34778         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
34779
34780 2003-04-11  Jim Meyering  <jim@meyering.net>
34781
34782         Merge changes from Coreutils.
34783
34784         2003-03-22  Jim Meyering  <jim@meyering.net>
34785
34786         * lib/strftime.c (widen): Cast alloca return value to proper type.
34787
34788         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
34789
34790         From GNU libc.
34791         * lib/strftime.c (my_strftime): Handle very large width
34792         specifications for numeric values correctly.  Improve checks for
34793         overflow.
34794
34795         2003-01-19  Jim Meyering  <jim@meyering.net>
34796
34797         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
34798         definitions.
34799         (nl_get_alt_digit) [! defined my_strftime]: Define.
34800         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
34801         _nl_get_alt_digit and _nl_get_walt_digit.
34802
34803         * lib/strftime.c (my_strftime): Merge in locale-related changes from
34804         libc. These changes have no effect outside of _LIBC.
34805
34806 2003-04-10  Bruno Haible  <bruno@clisp.org>
34807
34808         * modules/findprog: New file.
34809         * MODULES.html.sh (func_all_modules): Add it.
34810
34811 2003-04-10  Bruno Haible  <bruno@clisp.org>
34812
34813         * m4/findprog.m4: New file.
34814         * m4/eaccess.m4: New file.
34815
34816 2003-04-10  Bruno Haible  <bruno@clisp.org>
34817
34818         * lib/findprog.h: New file, from GNU gettext.
34819         * lib/findprog.c: New file, from GNU gettext.
34820
34821 2003-04-05  Jim Meyering  <jim@meyering.net>
34822
34823         Merge changes from Coreutils.
34824
34825         * lib/exclude.h (PARAMS): Remove definition and uses.
34826         * lib/exclude.c: Remove uses of `PARAMS'.
34827
34828         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
34829         Add test-cases for DOS filenames. Declare program_name.
34830         (main): Set up program_name.  Patch by Rich Dawe.
34831
34832         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
34833         error from mntctl.
34834         Use mntctl's return value to drive the entry-processing loop, since
34835         we can't rely on the value of the vmt_length member in the last
34836         entry.  On some systems doing so could result in exhausting
34837         virtual memory.  Based in part on a patch from Mike Jetzer.
34838
34839 2003-04-04  Bruno Haible  <bruno@clisp.org>
34840
34841         * modules/linebreak: New file.
34842         * MODULES.html.sh (func_all_modules): Add it.
34843
34844 2003-04-04  Bruno Haible  <bruno@clisp.org>
34845
34846         * m4/linebreak.m4: New file.
34847
34848 2003-04-04  Bruno Haible  <bruno@clisp.org>
34849
34850         * lib/linebreak.h: New file, from GNU gettext.
34851         * lib/linebreak.c: New file, from GNU gettext with slight
34852         modifications.
34853         * lib/lbrkprop.h: New file, from GNU gettext.
34854
34855 2003-04-03  Bruno Haible  <bruno@clisp.org>
34856
34857         * modules/utf8-ucs4: New file.
34858         * modules/utf16-ucs4: New file.
34859         * modules/ucs4-utf8: New file.
34860         * modules/ucs4-utf16: New file.
34861         * MODULES.html.sh (func_all_modules): Add them.
34862
34863 2003-04-03  Bruno Haible  <bruno@clisp.org>
34864
34865         * m4/utf-ucs4.m4: New file.
34866         * m4/ucs4-utf.m4: New file.
34867
34868 2003-04-03  Bruno Haible  <bruno@clisp.org>
34869
34870         * lib/utf8-ucs4.h: New file, from GNU gettext.
34871         * lib/utf16-ucs4.h: New file, from GNU gettext.
34872         * lib/ucs4-utf8.h: New file, from GNU gettext.
34873         * lib/ucs4-utf16.h: New file, from GNU gettext.
34874
34875 2003-04-02  Bruno Haible  <bruno@clisp.org>
34876
34877         * modules/binary-io: New file.
34878         * MODULES.html.sh (func_all_modules): Add it.
34879
34880 2003-04-02  Bruno Haible  <bruno@clisp.org>
34881
34882         * lib/binary-io.h: New file, from GNU gettext.
34883
34884 2003-04-01  Bruno Haible  <bruno@clisp.org>
34885
34886         * modules/pathname: New file.
34887         * MODULES.html.sh (func_all_modules): Add it.
34888
34889 2003-04-01  Bruno Haible  <bruno@clisp.org>
34890
34891         * lib/pathname.h: New file, from GNU gettext.
34892         * lib/concatpath.c: New file, from GNU gettext.
34893
34894 2003-03-30  Bruno Haible  <bruno@clisp.org>
34895
34896         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
34897
34898 2003-03-30  Bruno Haible  <bruno@clisp.org>
34899
34900         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
34901         function chown() doesn't exist.
34902
34903 2003-03-28  Bruno Haible  <bruno@clisp.org>
34904
34905         * modules/copy-file: New file.
34906         * MODULES.html.sh (func_all_modules): Add it.
34907
34908 2003-03-28  Bruno Haible  <bruno@clisp.org>
34909
34910         * m4/copy-file.m4: New file.
34911
34912 2003-03-28  Bruno Haible  <bruno@clisp.org>
34913
34914         * lib/copy-file.h: New file, from GNU gettext.
34915         * lib/copy-file.c: New file, from GNU gettext.
34916
34917 2003-03-18  Jim Meyering  <jim@meyering.net>
34918
34919         * lib/quote.c (quote_n): Fix typo in comment.
34920
34921 2003-03-18  Bruno Haible  <bruno@clisp.org>
34922
34923         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
34924         checking.
34925         * m4/onceonly_2_57.m4: Likewise.
34926
34927 2003-03-17  Bruno Haible  <bruno@clisp.org>
34928
34929         * m4/onceonly.m4: Require autoconf 2.54 or newer.
34930         (m4_quote): Remove macro.
34931         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
34932
34933 2003-03-14  Jim Meyering  <jim@meyering.net>
34934
34935         Merge changes from Coreutils.
34936         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
34937         to be const, in order to avoid warnings.
34938         (obstack_room): Likewise.
34939         (obstack_empty_p): Likewise.
34940
34941 2003-03-14  Bruno Haible  <bruno@clisp.org>
34942
34943         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
34944         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
34945
34946 2003-03-13  Paul Eggert  <eggert@twinsun.com>
34947
34948         Merge changes from Bison.
34949         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
34950         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
34951         when compiling Bison 1.875's `bitset bset = obstack_alloc
34952         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
34953         * lib/hash.c: Include <stdbool.h> unconditionally.
34954
34955 2003-03-13  Paul Eggert  <eggert@twinsun.com>
34956
34957         * m4/onceonly.m4 (m4_quote): New macro.
34958         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
34959         Quote AC_FOREACH variable-expansions properly.
34960
34961 2003-03-13  Paul Eggert  <eggert@twinsun.com>
34962
34963         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
34964
34965 2003-03-09  Paul Eggert  <eggert@twinsun.com>
34966
34967         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
34968         Reported by Bruce Becker; see:
34969         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
34970
34971 2003-03-03  Paul Eggert  <eggert@twinsun.com>
34972             Bruno Haible  <bruno@clisp.org>
34973
34974         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
34975         Reported by John Hughes, see
34976         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
34977
34978 2003-02-20  Bruno Haible  <bruno@clisp.org>
34979
34980         * MODULES.html.sh (func_all_modules): Add poll.
34981
34982 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
34983
34984         * modules/poll: New file.
34985
34986 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
34987
34988         * lib/poll_.h: New file.
34989         * lib/poll.c: New file.
34990
34991 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
34992
34993         * m4/poll.m4: New file.
34994
34995 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
34996
34997         * modules/mathl: New file.
34998
34999 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
35000
35001         * lib/mathl.h: New file.
35002         * lib/acosl.c: New file.
35003         * lib/asinl.c: New file.
35004         * lib/atanl.c: New file.
35005         * lib/ceill.c: New file.
35006         * lib/cosl.c: New file.
35007         * lib/expl.c: New file.
35008         * lib/floorl.c: New file.
35009         * lib/frexpl.c: New file.
35010         * lib/ldexpl.c: New file.
35011         * lib/logl.c: New file.
35012         * lib/sincosl.c: New file.
35013         * lib/sinl.c: New file.
35014         * lib/sqrtl.c: New file.
35015         * lib/tanl.c: New file.
35016         * lib/trigl.c: New file.
35017         * lib/trigl.h: New file.
35018
35019 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
35020
35021         * m4/mathl.m4: New file.
35022
35023 2003-02-18  Bruno Haible  <bruno@clisp.org>
35024
35025         * MODULES.html.sh (func_all_modules): Add mathl.
35026
35027 2003-02-17  Bruno Haible  <bruno@clisp.org>
35028
35029         * modules/mkdtemp: New module.
35030         * MODULES.html.sh (func_all_modules): Add it.
35031
35032 2003-02-17  Bruno Haible  <bruno@clisp.org>
35033
35034         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
35035
35036 2003-02-17  Bruno Haible  <bruno@clisp.org>
35037
35038         * lib/mkdtemp.h: New file, from GNU gettext.
35039         * lib/mkdtemp.c: New file, from GNU gettext.
35040
35041 2003-02-02  Jim Meyering  <jim@meyering.net>
35042
35043         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
35044         e.g. glibc-2.2.93.
35045
35046 2003-01-31  Bruno Haible  <bruno@clisp.org>
35047
35048         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
35049         'rpl_rename'.
35050         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
35051         'rpl_strnlen'.
35052         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
35053         'rpl_strtod'.
35054         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
35055         'rpl_utime'.
35056
35057 2003-01-31  Bruno Haible  <bruno@clisp.org>
35058
35059         * lib/rename.c: #undef rename before defining rpl_rename.
35060         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
35061
35062 2003-01-30  Bruno Haible  <bruno@clisp.org>
35063
35064         * modules/vasnprintf, modules/vasprintf: New modules.
35065         * MODULES.html.sh (func_all_modules): Add them.
35066
35067 2003-01-30  Bruno Haible  <bruno@clisp.org>
35068
35069         * m4/signed.m4: New file, from GNU gettext.
35070         * m4/longdouble.m4: New file, from GNU gettext.
35071         * m4/wchar_t.m4: New file, from GNU gettext.
35072         * m4/wint_t.m4: New file, from GNU gettext.
35073         * m4/vasnprintf.m4: New file.
35074         * m4/vasprintf.m4: New file.
35075
35076 2003-01-30  Bruno Haible  <bruno@clisp.org>
35077
35078         * lib/printf-args.h: New file, from GNU gettext.
35079         * lib/printf-args.c: New file, from GNU gettext.
35080         * lib/printf-parse.h: New file, from GNU gettext.
35081         * lib/printf-parse.c: New file, from GNU gettext.
35082         * lib/vasnprintf.h: New file, from GNU gettext.
35083         * lib/vasnprintf.c: New file, from GNU gettext.
35084         * lib/asnprintf.c: New file, from GNU gettext.
35085         * lib/vasprintf.h: New file, from GNU gettext with modifications.
35086         * lib/vasprintf.c: New file, from GNU gettext.
35087         * lib/asprintf.c: New file, from GNU gettext.
35088
35089 2003-01-29  Bruno Haible  <bruno@clisp.org>
35090
35091         * modules/stpncpy: New module.
35092         * MODULES.html.sh (func_all_modules): Add it.
35093
35094 2003-01-29  Bruno Haible  <bruno@clisp.org>
35095
35096         * m4/stpncpy.m4: New file.
35097
35098 2003-01-29  Bruno Haible  <bruno@clisp.org>
35099
35100         * lib/stpncpy.h: New file, from GNU gettext with modifications.
35101         * lib/stpncpy.c: New file, from GNU gettext with modifications.
35102
35103 2003-01-28  Bruno Haible  <bruno@clisp.org>
35104
35105         * modules/c-ctype: New module.
35106         * MODULES.html.sh (func_all_modules): Add it.
35107
35108 2003-01-28  Bruno Haible  <bruno@clisp.org>
35109
35110         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
35111         Paul Eggert.
35112         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
35113         Paul Eggert.
35114
35115 2003-01-27  Bruno Haible  <bruno@clisp.org>
35116
35117         * modules/xsetenv: New module.
35118         * MODULES.html.sh (func_all_modules): Add it.
35119
35120 2003-01-27  Bruno Haible  <bruno@clisp.org>
35121
35122         * lib/xsetenv.h: New file, from GNU gettext.
35123         * lib/xsetenv.c: New file, from GNU gettext.
35124
35125 2003-01-23  Jim Meyering  <jim@meyering.net>
35126
35127         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
35128         from working on systems without dirfd (at least Irix and OSF1/Tru64).
35129
35130 2003-01-23  Bruno Haible  <bruno@clisp.org>
35131
35132         * modules/minmax: New module.
35133         * MODULES.html.sh (func_all_modules): Add it.
35134
35135 2003-01-23  Bruno Haible  <bruno@clisp.org>
35136
35137         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
35138         Eggert.
35139
35140 2003-01-22  Bruno Haible  <bruno@clisp.org>
35141
35142         * modules/exit: New module.
35143         * MODULES.html.sh (func_all_modules): Add it.
35144
35145 2003-01-22  Bruno Haible  <bruno@clisp.org>
35146
35147         * lib/exit.h: New file, from GNU gettext.
35148
35149 2003-01-19  Bruno Haible  <bruno@clisp.org>
35150
35151         * gnulib-tool: Recognize option --extract-maintainer.
35152         (func_get_maintainer): New function.
35153         * modules/*: Add Maintainer entry.
35154
35155 2003-01-16  Jim Meyering  <jim@meyering.net>
35156
35157         * m4/regex.m4: The `regex' struct is both input and output.
35158         Initialize it before each use.  Patch by Tim Waugh.
35159
35160 2003-01-16  Bruno Haible  <bruno@clisp.org>
35161
35162         * MODULES.html.sh: Add a table of contents. Add the module name as
35163         leftmost column. Add hyperlinks.
35164
35165 2003-01-15  Bruno Haible  <bruno@clisp.org>
35166
35167         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
35168
35169 2003-01-15  Bruno Haible  <bruno@clisp.org>
35170
35171         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
35172         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
35173         suffix.
35174
35175 2003-01-15  Bruno Haible  <bruno@clisp.org>
35176
35177         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
35178
35179 2003-01-15  Bruno Haible  <bruno@clisp.org>
35180
35181         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
35182         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
35183
35184 2003-01-14  Jim Meyering  <jim@meyering.net>
35185
35186         * lib/same.c (same_name): Tweak a comment.
35187
35188 2003-01-14  Bruno Haible  <bruno@clisp.org>
35189
35190         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
35191         when a string comparison is sufficient.
35192
35193 2003-01-14  Bruno Haible  <bruno@clisp.org>
35194
35195         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
35196         'unsigned int'.
35197
35198 2003-01-14  Bruno Haible  <bruno@clisp.org>
35199
35200         * lib/hash-pjw.c: Add comment about low quality of this function.
35201
35202 2003-01-13  Bruno Haible  <bruno@clisp.org>
35203
35204         * modules/stpcpy: Distribute lib/stpcpy.h.
35205         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
35206
35207 2003-01-13  Bruno Haible  <bruno@clisp.org>
35208
35209         * modules/*: Add a description.
35210         * modules/strpbrk: Fix Makefile.am snippet.
35211         * modules/strtoimax: Fix dependencies.
35212         * modules/strtoumax: Likewise.
35213
35214 2003-01-13  Bruno Haible  <bruno@clisp.org>
35215
35216         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
35217         * modules/alloca (Makefile.am): All object files depend on alloca.h.
35218         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
35219
35220 2003-01-13  Bruno Haible  <bruno@clisp.org>
35221
35222         * gnulib-tool (func_create_testdir): Store config/* files in the main
35223         directory.
35224         * config.rpath: Move to ...
35225         * config/config.rpath: ... here.
35226         * modules/gettext: Contains config/config.rpath, not config.rpath.
35227         * modules/iconv: Likewise.
35228
35229 2003-01-12  Paul Eggert  <eggert@twinsun.com>
35230
35231         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
35232         to avoid collisions with libcurses and libreadline.
35233
35234         * m4/getstr.m4: Remove.
35235         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
35236
35237 2003-01-12  Paul Eggert  <eggert@twinsun.com>
35238
35239         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
35240         to avoid collisions with libcurses and libreadline.
35241
35242         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
35243         * lib/getstr.h, getstr.c: Remove.
35244         * lib/getline.c: Include "getline.h", to check interface.
35245         Move body of old getstr.c here: this defines MIN_CHUNK and
35246         declares getdelim2, which is renamed from getstr.
35247         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
35248
35249         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
35250         All uses changed.
35251         * lib/linebuffer.h: Likewise.
35252         (readline): Remove backward-compatibility macro.
35253
35254 2003-01-12  Paul Eggert  <eggert@twinsun.com>
35255
35256         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
35257         to avoid collisions with libcurses and libreadline.
35258         * getstr: Remove.
35259         * MODULES.html.sh: Remove getstr.
35260         * modules/getline: Depend on unlocked-io, not getstr.
35261
35262 2003-01-12  Jim Meyering  <jim@meyering.net>
35263
35264         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
35265
35266 2003-01-10  Bruno Haible  <bruno@clisp.org>
35267
35268         * modules/alloca: Change Makefile.am requirements. Simplify Include
35269         requirements. Add lib/alloca_.h to file list.
35270
35271 2003-01-10  Bruno Haible  <bruno@clisp.org>
35272
35273         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
35274
35275 2003-01-10  Bruno Haible  <bruno@clisp.org>
35276
35277         * lib/alloca_.h: New file.
35278         * lib/getdate.y: Unconditionally include alloca.h.
35279         * lib/makepath.c: Likewise.
35280         * lib/setenv.c: Likewise.
35281         * lib/userspec.c: Likewise.
35282
35283 2003-01-09  Karl Berry  <karl@gnu.org>
35284
35285         * MODULES.html.sh: include `dirname $0` in PATH, to find
35286         gnulib-tool.
35287
35288 2003-01-09  Bruno Haible  <bruno@clisp.org>
35289
35290         * modules/stdbool: Change configure.ac, Makefile.am requirements.
35291         Simplify Include requirements. Add lib/stdbool.h.in to file list.
35292
35293 2003-01-09  Bruno Haible  <bruno@clisp.org>
35294
35295         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
35296
35297 2003-01-09  Bruno Haible  <bruno@clisp.org>
35298
35299         * lib/stdbool.h.in: New file.
35300
35301 2003-01-09  Bruno Haible  <bruno@clisp.org>
35302
35303         * gnulib-tool (func_all_modules): Ignore files ending in ~.
35304         * MODULES.html.sh: Likewise.
35305
35306 2003-01-08  Jim Meyering  <jim@meyering.net>
35307
35308         * lib/full-write.c: Undefine and define-away `const' after inclusion
35309         of errno.h, not before.  Suggestion from Bruno Haible.
35310
35311 2003-01-08  Bruno Haible  <bruno@clisp.org>
35312
35313         * modules/full-read: Depend on full-write.
35314
35315 2003-01-08  Bruno Haible  <bruno@clisp.org>
35316
35317         * lib/safe-read.c: Include specification header first, to ensure its
35318         selfcontainedness.
35319         * lib/full-write.c: Likewise.
35320
35321 2003-01-07  Jim Meyering  <jim@meyering.net>
35322
35323         * lib/full-write.c: Rework so that it may serve to define full_read,
35324         too.
35325         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
35326
35327 2003-01-07  Bruno Haible  <bruno@clisp.org>
35328
35329         * lib/strtoimax.c: Include <stdint.h> as an alternative to
35330         <inttypes.h>.
35331         * lib/xstrtol.h: Likewise.
35332         * lib/xstrtoimax.c: Likewise.
35333         * lib/xstrtoumax.c: Likewise.
35334         * lib/human.h: Likewise.
35335
35336         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
35337         on systems that have <inttypes.h> but not <stdint.h>.
35338
35339 2003-01-07  Bruno Haible  <bruno@clisp.org>
35340
35341         * MODULES.html.sh: Add copyright notice.
35342         (missed_files): Omit CVS directory entries.
35343         (func_module): Make it work with sed-3.02.
35344         * MODULES.txt: Remove file.
35345
35346 2003-01-06  Jim Meyering  <jim@meyering.net>
35347
35348         * lib/version-etc.c: Update year in translatable copyright string.
35349
35350 2003-01-03  Karl Berry  <karl@gnu.org>
35351
35352         * config/config.{guess,sub}: update from prep.
35353
35354 2003-01-02  Karl Berry  <karl@gnu.org>
35355
35356         * doc/COPYING.DOC: belatedly updated to 1.2.
35357
35358 2003-01-01  Karl Berry  <karl@gnu.org>
35359
35360         * gnulib-tool (func_verify_module): report module name $module in
35361         error message, not $1.
35362         * gnulib-tool (create-testdir): don't complain if destdir couldn't
35363         be created, only if it doesn't exist.
35364         * gnulib-tool (last_checkin_date): don't expand the $Date here.
35365
35366 2002-12-31  Paul Eggert  <eggert@twinsun.com>
35367
35368         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
35369
35370 2002-12-31  Paul Eggert  <eggert@twinsun.com>
35371
35372         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
35373         memcmp if strcoll doesn't work.
35374
35375 2002-12-31  Bruno Haible  <bruno@clisp.org>
35376
35377         * lib/utime.c (utime_null): No need to call ftruncate if the file was
35378         nonempty.
35379
35380 2002-12-31  Bruno Haible  <bruno@clisp.org>
35381
35382         * lib/memcoll.c (STRCOLL): New macro.
35383         (memcoll): Use it.
35384
35385 2002-12-31  Bruno Haible  <bruno@clisp.org>
35386
35387         * lib/localcharset.h: New file.
35388         * lib/localcharset.c: Include it.
35389         * lib/unicodeio.c: Likewise.
35390
35391 2002-12-31  Bruno Haible  <bruno@clisp.org>
35392
35393         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
35394         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
35395
35396 2002-12-31  Bruno Haible  <bruno@clisp.org>
35397
35398         * lib/getline.h: Include <stddef.h>, for size_t.
35399
35400         * lib/unicodeio.h: Include <stddef.h>, for size_t.
35401         * lib/unicodeio.c: Don't include <stddef.h>.
35402
35403 2002-12-31  Bruno Haible  <bruno@clisp.org>
35404
35405         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
35406         HAVE_TM_ZONE.
35407
35408 2002-12-24  Karl Berry  <karl@gnu.org>
35409
35410         * config/config.guess: update from prep.
35411
35412 2002-12-24  Bruno Haible  <bruno@clisp.org>
35413
35414         General infrasructure.
35415         * m4/README: Rewritten.
35416         * m4/onceonly.m4: New file.
35417         * m4/onceonly_2_57.m4: New file.
35418
35419         Module atexit.
35420         * m4/atexit.m4: New file.
35421
35422         Module strtod.
35423         * m4/strtod.m4: New file.
35424
35425         Module strtol.
35426         * m4/strtol.m4: New file.
35427
35428         Module strtoul.
35429         * m4/strtoul.m4: New file.
35430
35431         Module memchr.
35432         * m4/memchr.m4: New file.
35433
35434         Module memcmp.
35435         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
35436         (jm_FUNC_MEMCMP): Invoke it.
35437
35438         Module memcpy.
35439         * m4/memcpy.m4: New file.
35440
35441         Module memmove.
35442         * m4/memmove.m4: New file.
35443
35444         Module memset.
35445         * m4/memset.m4: New file.
35446
35447         Module strcspn.
35448         * m4/strcspn.m4: New file.
35449
35450         Module strpbrk.
35451         * m4/strpbrk.m4: New file.
35452
35453         Module strstr.
35454         * m4/strstr.m4: New file.
35455
35456         Module strerror.
35457         * m4/strerror.m4: New file.
35458
35459         Module mktime.
35460         * m4/mktime.m4: Renamed from jm-mktime.m4.
35461         (gl_PREREQ_MKTIME): New macro.
35462         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
35463
35464         Module malloc.
35465         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
35466         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
35467         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
35468
35469         Module realloc.
35470         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
35471         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
35472         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
35473
35474         Module strftime.
35475         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
35476         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
35477         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
35478         gl_TM_GMTOFF.
35479         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
35480
35481         Module xalloc.
35482         * m4/xalloc.m4: New file.
35483
35484         Module alloca.
35485         * m4/alloca.m4: New file.
35486
35487         Module putenv.
35488         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
35489         (jm_FUNC_PUTENV): Invoke it.
35490
35491         Module setenv.
35492         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
35493         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
35494         when invoked twice.
35495         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
35496         gt_FUNC_SETENV.
35497
35498         Module memrchr.
35499         * m4/memrchr.m4: New file.
35500
35501         Module stpcpy.
35502         * m4/stpcpy.m4: New file.
35503
35504         Module strcase.
35505         * m4/strcase.m4: New file.
35506
35507         Module strdup.
35508         * m4/strdup.m4: New file.
35509
35510         Module strnlen.
35511         * m4/strnlen.m4: New file.
35512
35513         Module strndup.
35514         * m4/strndup.m4: New file.
35515
35516         Module xstrtod.
35517         * m4/xstrtod.m4: New file.
35518
35519         Module xstrtol.
35520         * m4/xstrtol.m4: New file.
35521
35522         Module getdate.
35523         * m4/getdate.m4: New file.
35524
35525         Module unlocked-io.
35526         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
35527         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
35528         * m4/jm-glibc-io.m4n: Remove file.
35529
35530         Module long-options.
35531         * m4/long-options.m4: New file.
35532
35533         Module md5.
35534         * m4/md5.m4: New file.
35535
35536         Module sha.
35537         * m4/sha.m4: New file.
35538
35539         Module getstr.
35540         * m4/getstr.m4: New file.
35541
35542         Module getline.
35543         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
35544         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
35545         <sys/types.h>, for size_t. Use the function name gnu_getline, not
35546         simply getline. Infoke gl_PREREQ_GETLINE.
35547
35548         Module obstack.
35549         * m4/obstack.m4: New file.
35550
35551         Module hash.
35552         * m4/hash.m4: New file.
35553
35554         Module readtokens.
35555         * m4/readtokens.m4: New file.
35556
35557         Module strverscmp.
35558         * m4/strverscmp.m4: New file.
35559
35560         Module stdbool.
35561         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
35562         OSF/1.
35563
35564         Module strtoll.
35565         * m4/strtoll.m4: New file.
35566
35567         Module strtoull.
35568         * m4/strtoull.m4: New file.
35569
35570         Module strtoimax.
35571         * m4/strtoimax.m4: New file.
35572
35573         Module strtoumax.
35574         * m4/strtoumax.m4: New file.
35575
35576         Module xstrtoimax.
35577         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
35578         jm_AC_PREREQ_XSTRTOIMAX.
35579         Moved the strtol prerequisites to strtol.m4.
35580         Moved the strtoll prerequisites to strtoll.m4.
35581         Moved the strtoimax prerequisites to strtoimax.m4.
35582
35583         Module xstrtoumax.
35584         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
35585         jm_AC_PREREQ_XSTRTOUMAX.
35586         Moved the strtoul prerequisites to strtoul.m4.
35587         Moved the strtoull prerequisites to strtoull.m4.
35588         Moved the strtoumax prerequisites to strtoumax.m4.
35589
35590         Module chown.
35591         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
35592         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
35593
35594         Module dup2.
35595         * m4/dup2.m4: New file.
35596
35597         Module ftruncate.
35598         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
35599         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
35600
35601         Module getgroups.
35602         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
35603         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
35604
35605         Module gettimeofday.
35606         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
35607         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
35608         gl_PREREQ_GETTIMEOFDAY.
35609
35610         Module mkdir.
35611         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
35612         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
35613
35614         Module mkstemp.
35615         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
35616         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
35617         jm_AC_TYPE_UINTMAX_T.
35618         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
35619
35620         Module stat.
35621         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
35622         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
35623
35624         Module lstat.
35625         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
35626         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
35627
35628         Module timespec.
35629         * m4/timespec.m4 (gl_TIMESPEC): New macro.
35630         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
35631         * m4/st_mtim.m4: Indentation.
35632
35633         Module nanosleep.
35634         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
35635         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
35636         gl_PREREQ_NANOSLEEP.
35637
35638         Module regex.
35639         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
35640         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
35641         (gl_REGEX): New macro.
35642
35643         Module rename.
35644         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
35645         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
35646
35647         Module rmdir.
35648         * m4/rmdir.m4: New file.
35649
35650         Module utime.
35651         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
35652         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
35653         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
35654
35655         Module dirname.
35656         * m4/dirname.m4: New file.
35657
35658         Module getopt.
35659         * m4/getopt.m4: New file.
35660
35661         Module unistd-safer.
35662         * m4/unistd-safer.m4: New file.
35663
35664         Module fnmatch.
35665         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
35666         declaration.
35667         (gl_PREREQ_FNMATCH_EXTRA): New macro.
35668         (gl_FUNC_FNMATCH_POSIX): New macro.
35669         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
35670         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
35671         simply fnmatch.
35672
35673         Module exclude.
35674         * m4/exclude.m4: New file.
35675
35676         Module human.
35677         * m4/human.m4: New file.
35678
35679         Module acl.
35680         * m4/acl.m4: Nop.
35681
35682         Module backupfile.
35683         * m4/backupfile.m4: New file.
35684         * m4/d-ino.m4: Indentation.
35685
35686         Module fsusage.
35687         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
35688         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
35689         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
35690
35691         Module dirfd.
35692         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
35693         requirements.
35694
35695         Module euidaccess.
35696         * m4/euidaccess.m4: New file.
35697
35698         Module file-type.
35699         * m4/file-type.m4: New file.
35700
35701         Module fileblocks.
35702         * m4/fileblocks.m4: New file.
35703
35704         Module filemode.
35705         * m4/filemode.m4: New file.
35706
35707         Module isdir.
35708         * m4/isdir.m4: New file.
35709
35710         Module lchown.
35711         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
35712         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
35713
35714         Module makepath.
35715         * m4/makepath.m4: New file.
35716
35717         Module modechange.
35718         * m4/modechange.m4: New file.
35719
35720         Module mountlist.
35721         * m4/mountlist.m4: New file.
35722         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
35723         Indentation.
35724
35725         Module path-concat.
35726         * m4/path-concat.m4: New file.
35727
35728         Module pathmax.
35729         * m4/pathmax.m4: New file.
35730
35731         Module same.
35732         * m4/same.m4: New file.
35733
35734         Module save-cwd.
35735         * m4/save-cwd.m4: New file.
35736
35737         Module savedir.
35738         * m4/savedir.m4: New file.
35739
35740         Module xgetcwd.
35741         * m4/xgetcwd.m4: New file.
35742         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
35743
35744         Module xreadlink.
35745         * m4/xreadlink.m4: New file.
35746
35747         Module safe-read.
35748         * m4/safe-read.m4: New file.
35749
35750         Module safe-write.
35751         * m4/safe-write.m4: New file.
35752
35753         Module closeout.
35754         * m4/closeout.m4: New file.
35755
35756         Module stdio-safer.
35757         * m4/stdio-safer.m4: New file.
35758
35759         Module getpass.
35760         * m4/getpass.m4: New file.
35761
35762         Module getugroups.
35763         * m4/getugroups.m4: New file.
35764
35765         Module group-member.
35766         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
35767         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
35768
35769         Module idcache.
35770         * m4/idcache.m4: New file.
35771
35772         Module userspec.
35773         * m4/userspec.m4: New file.
35774
35775         Module gettime.
35776         * m4/clock_time.m4: New file.
35777         * m4/gettime.m4: New file.
35778
35779         Module settime.
35780         * m4/settime.m4: New file.
35781
35782         Module posixtm.
35783         * m4/posixtm.m4: New file.
35784
35785         Module gethostname.
35786         * m4/gethostname.m4: New file.
35787
35788         Module canon-host.
35789         * m4/canon-host.m4: New file.
35790
35791         Module gettext.
35792         * m4/codeset.m4: New file, from gettext-0.11.5.
35793         * m4/gettext.m4: New file, from gettext-0.11.5.
35794         * m4/glibc21.m4: New file, from gettext-0.11.5.
35795         * m4/iconv.m4: New file, from gettext-0.11.5.
35796         * m4/intdiv0.m4: New file, from gettext-0.11.5.
35797         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
35798         * m4/inttypes.m4: New file, from gettext-0.11.5.
35799         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
35800         * m4/isc-posix.m4: New file, from gettext-0.11.5.
35801         * m4/lcmessage.m4: New file, from gettext-0.11.5.
35802         * m4/lib-ld.m4: New file, from gettext-0.11.5.
35803         * m4/lib-link.m4: New file, from gettext-0.11.5.
35804         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
35805         * m4/progtest.m4: New file, from gettext-0.11.5.
35806         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
35807         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
35808         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
35809
35810         Module localcharset.
35811         * m4/localcharset.m4: New file.
35812
35813         Module hard-locale.
35814         * m4/hard-locale.m4: New file.
35815
35816         Module mbswidth.
35817         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
35818         onceonly macros.
35819         * m4/mbrtowc.m4: Add comment.
35820
35821         Module memcasecmp.
35822         * m4/memcasecmp.m4: New file.
35823
35824         Module memcoll.
35825         * m4/memcoll.m4: New file.
35826
35827         Module unicodeio.
35828         * m4/unicodeio.m4: New file.
35829
35830         Module rpmatch.
35831         * m4/rpmatch.m4: New file.
35832
35833         Module yesno.
35834         * m4/yesno.m4: New file.
35835
35836         Module exitfail.
35837         * m4/exitfail.m4: New file.
35838
35839         Module c-stack.
35840         * m4/c-stack.m4 (gl_C_STACK): New macro.
35841         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
35842
35843         Module error.
35844         * m4/error.m4 (gl_ERROR): New macro.
35845         (jm_PREREQ_ERROR): Use onceonly macros.
35846
35847         Module fatal.
35848         * m4/fatal.m4: New file.
35849
35850         Module getloadavg.
35851         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
35852         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
35853
35854         Module getpagesize.
35855         * m4/getpagesize.m4: New file.
35856
35857         Module getusershell.
35858         * m4/getusershell.m4: New file.
35859
35860         Module physmem.
35861         * m4/physmem.m4: New file.
35862
35863         Module posixver.
35864         * m4/posixver.m4: New file.
35865
35866         Module quotearg.
35867         * m4/quotearg.m4: New file.
35868
35869         Module quote.
35870         * m4/quote.m4: New file.
35871
35872         Module readutmp.
35873         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
35874
35875         Module sig2str.
35876         * m4/sig2str.m4: New file.
35877
35878         Other.
35879         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
35880         ulonglong.m4.
35881         * m4/intmax_t.m4: New file.
35882         * m4/d-type.m4: Indentation.
35883         * m4/jm-macros.m4: Update.
35884         * m4/prereq.m4 (jm_PREREQ): Update.
35885         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
35886         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
35887         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
35888         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
35889         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
35890         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
35891         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
35892         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
35893         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
35894         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
35895         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
35896         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
35897         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
35898         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
35899         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
35900         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
35901         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
35902         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
35903         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
35904
35905 2002-12-24  Bruno Haible  <bruno@clisp.org>
35906
35907         * MODULES.txt: Update according to m4/ changes.
35908
35909         Module gettext.
35910         * config.rpath: New file, from gettext-0.11.5.
35911
35912         * modules/*: New module descriptions.
35913         * gnulib-tool: New file.
35914         * MODULES.html.sh: New file.
35915
35916 2002-12-21  Karl Berry  <karl@gnu.org>
35917
35918         * doc/fdl.texi: update to version 1.2.
35919
35920 2002-12-19  Karl Berry  <karl@gnu.org>
35921
35922         * config/config.guess: update from prep.
35923
35924 2002-12-18  Bruno Haible  <bruno@clisp.org>
35925
35926         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
35927         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
35928
35929 2002-12-17  Bruno Haible  <bruno@clisp.org>
35930
35931         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
35932         stdlib.h, string.h.
35933
35934 2002-12-17  Bruno Haible  <bruno@clisp.org>
35935
35936         * lib/canon-host.c (strdup): Remove unused declaration.
35937
35938         * lib/fsusage.c: Include full_read.h.
35939         (get_fs_usage): Use full_read instead of safe_read.
35940
35941         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
35942
35943 2002-12-12  Karl Berry  <karl@gnu.org>
35944
35945         * config/config.guess: update from prep.
35946
35947 2002-12-11  Bruno Haible  <bruno@clisp.org>
35948
35949         * m4/setenv.m4: New file, from gettext-0.11.5.
35950
35951 2002-12-11  Bruno Haible  <bruno@clisp.org>
35952
35953         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
35954         not unsetenv().
35955         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
35956         modifications:
35957
35958         2002-12-11  Bruno Haible  <bruno@clisp.org>
35959
35960                 * setenv.c (alloca): Fall back to malloc.
35961                 (freea): New macro.
35962                 (setenv): Use freea() to free memory allocated with alloca().
35963
35964         2002-11-13  Bruno Haible  <bruno@clisp.org>
35965
35966                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
35967                 function declarations.
35968                 * unsetenv.c (unsetenv): Likewise.
35969
35970         2002-03-04  Bruno Haible  <bruno@clisp.org>
35971
35972                 Portability to AIX 4.3.3.
35973                 * unsetenv.c: New file, extracted from setenv.c.
35974                 * setenv.c: Move the unsetenv() function to unsetenv.c.
35975
35976         2001-12-20  Bruno Haible  <bruno@clisp.org>
35977
35978                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
35979                 use malloc instead. For SunOS 4.
35980
35981         2001-12-11  Bruno Haible  <bruno@clisp.org>
35982
35983                 * setenv.c: Declare alloca.
35984                 (compar_fn_t): New typedef.
35985                 (KNOWN_VALUE, STORE_VALUE): Use it.
35986
35987         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
35988         setenv.h.
35989
35990 2002-12-10  Paul Eggert  <eggert@twinsun.com>
35991
35992         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
35993         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
35994         Choose values that are less likely to collide with system fnmatch
35995         options.
35996         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
35997         defined (e.g., a pure POSIX system).
35998         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
35999         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
36000
36001 2002-12-06  Paul Eggert  <eggert@twinsun.com>
36002
36003         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
36004         a pain in practice to deal with generated m4 files.  This change
36005         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
36006
36007         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
36008         and jm-glibc-io.m4, as they are no longer a special case.
36009         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
36010         kludge and the auto-generation stuff.  Check only whether the
36011         functions are declared, not whether they exist, since older hosts
36012         that don't declare the functions can't use the optimization anyway.
36013
36014 2002-12-06  Jim Meyering  <jim@meyering.net>
36015
36016         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
36017
36018         Merge in changes from libc's misc/error.c, in preparation
36019         for the merge of gnulib's changes back into libc.
36020
36021         * lib/error.c (_): Define only if not already defined.
36022         Move definition to follow all #include directives.
36023         Include unlocked-io.h only if !_LIBC.
36024         [_LIBC]: Include <libio/libioP.h>.
36025         [USE_IN_LIBIO]: Include <libio/iolibio.h>
36026         (fflush): Tweak definition to use INTUSE.
36027         (putc): Define.
36028
36029 2002-12-05  Paul Eggert  <eggert@twinsun.com>
36030
36031         * lib/alloca.c [defined emacs]: Include "lisp.h".
36032         (xalloc_die) [defined emacs]: New macro.
36033         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
36034         [! defined emacs]: Include <xalloc.h>.
36035         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
36036         (pointer): Typedef to POINTER_TYPE *.
36037         (malloc): Remove decl; we now always use xmalloc.
36038         (alloca): Use old-style definition, since Emacs needs this.
36039         Check for arithmetic overflow when computing combined size.
36040
36041 2002-12-04  Paul Eggert  <eggert@twinsun.com>
36042
36043         Do not generate unlocked-io.h automatically, since it's easier to
36044         maintain it by hand.
36045
36046         * lib/unlocked-io.h: New file, from GNU diffutils,
36047         but with proper copyright notice and attribution.
36048         * lib/gen-uio: Remove.
36049         * lib/Makefile.am: Add copyright notice.
36050         (libfetish_a_SOURCES): Add unlocked-io.h.
36051         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
36052         (DISTCLEANFILES, io_functions): Remove macros.
36053         (EXTRA_DIST): Remove gen_uio.
36054         (unlocked-io.h): Remove rule.
36055
36056 2002-12-04  Jim Meyering  <jim@meyering.net>
36057
36058         Reflect the fact that stat.c and lstat.c are no longer generated.
36059         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
36060         (DISTCLEANFILES): Likewise.
36061         (EXTRA_DIST): Likewise.
36062         (all_local): Don't depend on stat.c or lstat.c.
36063         (stat.c, lstat.c): Remove rules.
36064         (EXTRA_DIST): Remove xstat.in.
36065
36066         * lib/xstat.in: Remove file.  Contents moved into stat.c.
36067         * lib/stat.c: New file.  Contents mostly from xstat.in.
36068         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
36069         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
36070
36071         * lib/safe-read.c: Rework so that it may serve to define safe_write,
36072         too.
36073         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
36074
36075 2002-12-03  Jim Meyering  <jim@meyering.net>
36076
36077         * lib/safe-read.c, safe-write.c: Change variable names and comments,
36078         but not semantics, to minimize the differences between these two files.
36079         (safe_read): Change comment to mention SAFE_READ_ERROR.
36080
36081         * lib/safe-read.c (IS_EINTR): Define.
36082         (safe_read): Use IS_EINTR in place of in-function cpp directives.
36083
36084 2002-12-02  Jim Meyering  <jim@meyering.net>
36085
36086         * lib/safe-read.c (EINTR): Define.
36087         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
36088         (INT_MAX): Provide fallback.
36089         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
36090
36091         * lib/safe-read.h (SAFE_READ_ERROR): Define.
36092
36093 2002-12-02  Bruno Haible  <bruno@clisp.org>
36094
36095         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
36096         Define, taken from safe-read.c.
36097         (INT_MAX): Provide fallback.
36098         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
36099         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
36100
36101         * lib/safe-read.c (EINTR): Remove definition.
36102         (safe_read): Don't use EINTR if it is absent.
36103
36104 2002-12-01  Jim Meyering  <jim@meyering.net>
36105
36106         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
36107         zero.
36108         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
36109
36110 2002-11-27  Paul Eggert  <eggert@twinsun.com>
36111
36112         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
36113         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
36114         with `if (! (value < limit)) abort ();', for readability.
36115
36116 2002-11-26  Karl Berry  <karl@gnu.org>
36117
36118         * lib/strdup.c: copy from libc again, with jim's ok.
36119         * lib/.cppi-disable: re-add strdup.c
36120
36121 2002-11-25  Karl Berry  <karl@gnu.org>
36122
36123         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
36124         instead of "strtol.c".
36125
36126 2002-11-25  Karl Berry  <karl@gnu.org>
36127
36128         * config/install-sh: update from automake for variable quoting, $0 in
36129         error msgs, etc.
36130
36131         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
36132         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
36133         entry.
36134
36135 2002-11-25  Jim Meyering  <jim@meyering.net>
36136
36137         * lib/mktime.c: Sync from libc, now that it has the latest fix.
36138
36139 2002-11-24  Karl Berry  <karl@gnu.org>
36140
36141         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
36142         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
36143
36144 2002-11-24  Jim Meyering  <jim@meyering.net>
36145
36146         Update from coreutils:
36147
36148         * lib/mktime.c: Merge in changes from libc.
36149
36150         Avoid a link-time failure on some Linux systems.
36151         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
36152         (otherwise).
36153         (__mon_yday): Declare with the STATIC attribute.
36154         (__mktime_internal): Likewise.
36155         Based on a report from Greg Schafer.
36156
36157 2002-11-23  Jim Meyering  <jim@meyering.net>
36158
36159         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
36160         Use `unsigned', not `int', as type of index.
36161
36162         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
36163
36164         * lib/fsusage.c: Remove unneeded parentheses around operands of
36165         `defined'.
36166
36167 2002-11-22  Paul Eggert  <eggert@twinsun.com>
36168
36169         * lib/quotearg.h: Allow multiple inclusion by surrounding with
36170         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
36171         so that we can be included first.
36172         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
36173         * lib/quotearg.c: Include quotearg.h immediately after config.h.
36174         No need to include stddef.h or sys/types.h any more.
36175         Surround local include files with "", not "<>".
36176         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
36177         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
36178         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
36179         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
36180         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
36181         (ISPRINT): Remove; no longer needed now that we assume C89.
36182
36183         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
36184         Preserve errno.
36185
36186         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
36187         quotearg_char): Use SIZE_MAX rather than
36188         (size_t) -1 when we are talking about "infinity".
36189
36190         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
36191
36192 2002-11-22  Paul Eggert  <eggert@twinsun.com>
36193
36194         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
36195         hint that one should use `if (! x) abort ();' rather than `assert
36196         (x);', and anyway it's one less thing to worry about configuring.
36197         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
36198         hash_rehash, hash_insert): Use abort rather than assert.
36199
36200 2002-11-22  Bruno Haible  <bruno@clisp.org>
36201
36202         * lib/safe-read.h: Assume C89. Add comments.
36203         (safe_read): Change return type to size_t.
36204         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
36205         byte counts > SSIZE_MAX correctly.
36206         * lib/safe-write.h: New file.
36207         * lib/safe-write.c: New file.
36208         * lib/full-read.h: New file.
36209         * lib/full-read.c: New file.
36210         * lib/full-write.h: Assume C89. Add comments.
36211         * lib/full-write.c: Include safe-write.h.
36212         (full_write): Rewritten to use safe_write.
36213         Suggested by Jim Meyering and Paul Eggert.
36214
36215 2002-11-21  Jim Meyering  <jim@meyering.net>
36216
36217         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
36218
36219         Merge in changes from the coreutils.
36220
36221         2002-09-25  Paul Eggert  <eggert@twinsun.com>
36222         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
36223         <stdint.h>.
36224         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
36225         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
36226         int.  Work more efficiently if X is the same width as uintmax_t.
36227         Do not compare X to -1, to avoid bogus compiler warning.
36228         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
36229         Don't assume that f_frsize and f_bsize are the same type.
36230
36231         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
36232         warning on FreeBSD.
36233
36234         * lib/makepath.c (make_path): Restore umask *before* creating the final
36235         component.
36236         (make_path): Minor reformatting.
36237
36238         * lib/xmalloc.c: Adjust to work with new autoconf macros,
36239         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
36240         HAVE_MALLOC/HAVE_REALLOC.
36241
36242         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
36243         dummy ones.  At least on GNU/Linux systems, `auto' means something
36244         else.
36245         From Michael Stone.
36246
36247 2002-11-21  Bruno Haible  <bruno@clisp.org>
36248
36249         Remove case insensitive option matching.
36250         * lib/argmatch.h (argcasematch): Remove declaration.
36251         (ARGCASEMATCH): Remove macro.
36252         (__xargmatch_internal): Remove case_sensitive argument.
36253         (XARGMATCH): Update.
36254         (XARGCASEMATCH): Remove macro.
36255         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
36256         case_sensitive argument.
36257         (argcasematch): Remove function.
36258         (__xargmatch_internal): Remove case_sensitive argument.
36259         (main): Use XARGMATCH instead of XARGCASEMATCH.
36260
36261         * lib/xmalloc.c: Change compile-time error message. Add comment about
36262         required autoconf version.
36263
36264 2002-11-20  Paul Eggert  <eggert@twinsun.com>
36265
36266         Merge argmatch cleanups from Bison.  Assume C89.
36267
36268         * lib/argmatch.c: Include config.h here, not in argmatch.h.
36269         Include stdlib.h, for EXIT_FAILURE.
36270         Always include <string.h>, since we assume C89.
36271         (EXIT_FAILURE): Remove pre-C89 bug workaround.
36272         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
36273         Include <stddef.h> instead, since it's all we need for size_t.
36274         (PARAMS): Remove.  All uses removed.
36275         (ARRAY_CARDINALITY): Do not bother to #undef.
36276         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
36277         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
36278         Remove unnecessary parentheses.
36279         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
36280         Insert necessary parentheses.
36281         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
36282         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
36283
36284 2002-11-19  Bruno Haible  <bruno@clisp.org>
36285
36286         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
36287         * lib/mbswidth.h: Include <stddef.h>, for size_t.
36288
36289         * lib/mbswidth.h (PARAMS): Remove macro.
36290         (mbswidth, mbsnwidth): Use ANSI C function declarations.
36291         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
36292
36293         * lib/gcd.h (PARAMS): Remove macro.
36294         (gcd): Use ANSI C function declarations.
36295         * lib/gcd.c (gcd): Likewise.
36296
36297 2002-11-15  Bruno Haible  <bruno@clisp.org>
36298
36299         * lib/strcspn.c: Include <stddef.h>.
36300         (strcspn): Use ANSI C function declaration. Change return type to
36301         size_t. Use NULL.
36302         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
36303         (strpbrk): Use NULL.
36304         * lib/strpbrk.h (PARAMS): Remove macro.
36305         (strpbrk): Use ANSI C function declaration.
36306         * lib/strstr.c: Don't include <sys/types.h>.
36307         * lib/strstr.h (PARAMS): Remove macro.
36308         (strstr): Use ANSI C function declarations.
36309
36310 2002-11-14  Karl Berry  <karl@gnu.org>
36311
36312         * config/mkinstalldirs: `do' on separate line, instead of
36313         `for var; do'.
36314
36315 2002-11-06  Bruno Haible  <bruno@clisp.org>
36316
36317         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
36318         * lib/gcd.c (gcd): Likewise.
36319
36320 2002-11-05  Bruno Haible  <bruno@clisp.org>
36321
36322         * lib/gcd.h: New file, from gettext-0.11.5.
36323         * lib/gcd.c: New file, from gettext-0.11.5.
36324
36325 2002-11-05  Bruno Haible  <bruno@clisp.org>
36326
36327         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
36328         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
36329         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
36330         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
36331
36332         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
36333         <libintl.h>.
36334         * lib/makepath.c: Include gettext.h instead of <locale.h> and
36335         <libintl.h>.
36336
36337         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
36338         * lib/human.c: Include gettext.h instead of <libintl.h>.
36339         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
36340         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
36341         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
36342         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
36343         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
36344         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
36345         (textdomain): Remove definition.
36346         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
36347
36348         * lib/long-options.c: Remove include of <libintl.h> and definition of
36349         _.
36350         * lib/same.c: Remove include of <libintl.h> and definition of _.
36351
36352 2002-11-04  Owen Taylor  <otaylor@redhat.com>
36353
36354         * lib/config.charset: A few additions for Solaris.
36355
36356 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
36357
36358         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
36359         * lib/localcharset.c (locale_charset): Declare as extern "C".
36360
36361 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
36362
36363         * lib/config.charset: msdos in uk_UA uses CP1125.
36364
36365 2002-11-04  Bruno Haible  <bruno@clisp.org>
36366
36367         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
36368         * lib/strcase.h: New file, from GNU gettext-0.11.5.
36369         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
36370         * lib/strstr.h: New file, from GNU gettext-0.11.5.
36371         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
36372
36373 2002-11-04  Bruno Haible  <bruno@clisp.org>
36374
36375         * lib/localcharset.c (locale_charset): Don't return an empty string.
36376
36377 2002-11-04  Bruno Haible  <bruno@clisp.org>
36378
36379         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
36380         aliases.
36381
36382 2002-11-04  Bruno Haible  <bruno@clisp.org>
36383
36384         * lib/config.charset: Update for newest glibc. Add canonical names
36385         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
36386
36387 2002-11-04  Bruno Haible  <bruno@clisp.org>
36388
36389         * lib/config.charset: Add support for NetBSD.
36390
36391 2002-11-04  Bruno Haible  <bruno@clisp.org>
36392
36393         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
36394
36395 2002-11-01  Bruno Haible  <bruno@clisp.org>
36396
36397         * configure.in: Add AC_CONFIG_AUX_DIR call.
36398         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
36399         test/Makefile.
36400         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
36401
36402 2002-09-28  Karl Berry  <karl@gnu.org>
36403
36404         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
36405         installed automake until the next release, since changes have been
36406         made.
36407
36408 2002-09-25  Karl Berry  <karl@gnu.org>
36409
36410         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
36411         * lib/getopt*: copy from libc/posix.
36412         * lib/gettext.h: copy from gettext.
36413         * lib/.cppi-disable: add strdup.c, gettext.h.
36414
36415 2002-09-25  Karl Berry  <karl@gnu.org>
36416
36417         * config/srclist.txt: enable gettext.h check.
36418         * config/config.{guess,sub}: update from prep.
36419         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
36420                 from automake 1.6.3.
36421         See srclist*.
36422
36423 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
36424
36425         * regex.c (PATFETCH): Remove the translating fetch.
36426         (PATFETCH_RAW): Rename to PATFETCH.
36427         (set_image_of_range): New fun.
36428         (SET_RANGE_TABLE_WORK_AREA): Use it.
36429         (regex_compile): Don't translate the pattern chars so eagerly.
36430         Only do it when inserting an `exactn' bytecode or when handling
36431         a char-range.
36432         (mutually_exclusive_p): Avoid empty statement.
36433
36434 2002-07-06  Jim Meyering  <meyering@lucent.com>
36435
36436         * m4/README: Don't mention Makefile.am.in.
36437         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
36438
36439 2002-07-01  Jim Meyering  <meyering@lucent.com>
36440
36441         * lib/c-stack.c: Include sys/time.h.
36442         From Volker Borchert.
36443
36444 2002-06-26  Paul Eggert  <eggert@twinsun.com>
36445
36446         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
36447
36448 2002-06-26  Paul Eggert  <eggert@twinsun.com>
36449
36450         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
36451         New macro.  Use it uniformly instead of
36452         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
36453         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
36454         reported by Vin Shelton.
36455
36456 2002-06-22  Paul Eggert  <eggert@twinsun.com>
36457
36458         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
36459         Do not assume SA_SIGINFO behavior.
36460         Bug reported by Jim Meyering on NetBSD 1.5.2.
36461
36462 2002-06-22  Jim Meyering  <meyering@lucent.com>
36463
36464         * m4/c-stack.m4: New file, from diffutils-2.8.2.
36465         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
36466
36467         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
36468         now that configure.ac uses AC_GNU_SOURCE.
36469         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
36470         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
36471
36472         Update to latest tools.  Suggestions from Paul Eggert.
36473         * m4/stdbool.m4: New file, from diffutils-2.8.2.
36474         * m4/gnu-source.m4: Update from diffutils-2.8.2.
36475         * m4/fnmatch.m4: Likewise.
36476         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
36477         to AC_HEADER_STDBOOL
36478
36479 2002-06-22  Jim Meyering  <meyering@lucent.com>
36480
36481         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
36482         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
36483
36484 2002-06-22  Jim Meyering  <meyering@lucent.com>
36485
36486         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
36487
36488         * lib/exitfail.c, exitfail.h: Likewise.
36489         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
36490
36491         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
36492         of fnmatch.h.
36493         (EXTRA_DIST): Add fnmatch_loop.c.
36494         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
36495
36496         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
36497         * lib/fnmatch.c: Update from diffutils-2.8.2.
36498         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
36499         * lib/fnmatch.h: Remove file.
36500
36501 2002-06-21  Jim Meyering  <meyering@lucent.com>
36502
36503         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
36504         * m4/mbrtowc.m4: Likewise.
36505
36506         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
36507         * m4/mbswidth.m4: Reflect name change:
36508         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
36509         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
36510
36511         * m4/lib-link.m4: Update from gettext-0.11.2.
36512         * m4/gettext.m4: Likewise.
36513
36514         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
36515         From Alfred M. Szmidt.
36516
36517 2002-06-18  Paul Eggert  <eggert@twinsun.com>
36518
36519         * lib/file-type.h: Report an error if neither S_ISREG nor
36520         S_IFREG is defined, instead of using a test specific to glibc
36521         2.2.  This should be safe, since POSIX requires S_ISREG and
36522         Unix Version 7 had S_IFREG.  We don't need to check for
36523         <sys/types.h> since we don't use any symbols that it defines.
36524
36525 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
36526
36527         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
36528         $@-t, so that each temporary file name is unique and valid in the first
36529         8 characters, for operation under DOS.
36530
36531 2002-06-15  Paul Eggert  <eggert@twinsun.com>
36532
36533         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
36534
36535 2002-06-15  Jim Meyering  <meyering@lucent.com>
36536
36537         Work even with DJGPP 2.03, which lacks support for symlinks.
36538         From Richard Dawe.
36539         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
36540         is defined.
36541         * lib/lchown.c (S_ISLNK): Likewise.
36542
36543 2002-06-15  Jim Meyering  <meyering@lucent.com>
36544
36545         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
36546         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
36547         have been included before this file.
36548
36549 2002-06-14  Jim Meyering  <meyering@lucent.com>
36550
36551         * lib/file-type.h: Use the version from diffutils-2.8.2.
36552         * lib/file-type.c: Likewise.
36553
36554 2002-06-07  Jim Meyering  <meyering@lucent.com>
36555
36556         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
36557         They're needed at least for NetBSD 1.5.2.
36558         ($statxfs_includes): Include those same headers.
36559         ($statxfs_includes): Include sys/vfs.h if available.
36560         ($statxfs_includes): Likewise for sys/statvfs.h.
36561         Check for the following members in both structs statfs and statvfs:
36562         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
36563
36564 2002-06-01  Jim Meyering  <meyering@lucent.com>
36565
36566         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
36567         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
36568
36569 2002-05-28  Jim Meyering  <meyering@lucent.com>
36570
36571         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
36572         Reported by Volker Borchert.
36573
36574 2002-05-27  Jim Meyering  <meyering@lucent.com>
36575
36576         Fix a problem seen only on nonconforming systems whereby ls.c's
36577         use of localtime, and then of gettimeofday would cause trouble:
36578         the localtime call used to initialize rpl_gettimeofday's save
36579         mechanism would clobber ls's current local time information so
36580         that in any long listing the first file would always be listed
36581         with date 1970-01-01.  Analysis by Volker Borchert.
36582
36583         * lib/gettimeofday.c (localtime): Undefine.
36584         (rpl_localtime): New function.
36585
36586 2002-05-27  Jim Meyering  <meyering@lucent.com>
36587
36588         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
36589         localtime.
36590
36591         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
36592         use the replacement function; it wouldn't resolve at link time.
36593         Reported by Volker Borchert.
36594
36595 2002-05-22  Jim Meyering  <meyering@lucent.com>
36596
36597         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
36598         file-type.h.
36599         * lib/file-type.h: New file.
36600         * lib/file-type.c (file_type): New file/function.  Extracted from
36601         diffutils.
36602
36603 2002-04-30  Jim Meyering  <meyering@lucent.com>
36604
36605         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
36606
36607 2002-04-29  Paul Eggert  <eggert@twinsun.com>
36608
36609         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
36610
36611 2002-04-29  Paul Eggert  <eggert@twinsun.com>
36612
36613         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
36614         Do not check for alloca.h (no longer used) or stdbool.h (was never
36615         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
36616
36617 2002-04-29  Paul Eggert  <eggert@twinsun.com>
36618
36619         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
36620
36621 2002-04-29  Jim Meyering  <meyering@lucent.com>
36622
36623         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
36624         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
36625         Use AC_FUNC_STRNLEN here instead.
36626
36627         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
36628         With autoconf-2.53a, it's part of AC_PROG_CC.
36629
36630 2002-04-28  Paul Eggert  <eggert@twinsun.com>
36631
36632         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
36633         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
36634
36635 2002-04-28  Paul Eggert  <eggert@twinsun.com>
36636
36637         * lib/sig2str.h, lib/sig2str.c: New files.
36638         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
36639
36640 2002-04-28  Paul Eggert  <eggert@twinsun.com>
36641
36642         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
36643         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
36644         of 127, since 64 is the largest conceivable number for ancient
36645         nonstandard hosts.
36646         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
36647
36648 2002-04-28  Jim Meyering  <meyering@lucent.com>
36649
36650         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
36651
36652 2002-04-24  Jim Meyering  <meyering@lucent.com>
36653
36654         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
36655         (jm_PREREQ): Use it.
36656
36657         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
36658         mach/mach.h fcntl.h.
36659         Check for this function: setlocale.
36660
36661 2002-04-24  Jim Meyering  <meyering@lucent.com>
36662
36663         * lib/gettext.h: New file, from Gettext.
36664         * lib/Makefile.am (INCLUDES): Remove -I../intl.
36665         (libfetish_a_SOURCES): Add gettext.h.
36666
36667 2002-04-16  Jim Meyering  <meyering@lucent.com>
36668
36669         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
36670         ut_pid, ut_id, ut_exit.
36671
36672 2002-04-16  Jim Meyering  <meyering@lucent.com>
36673
36674         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
36675         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
36676         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
36677
36678 2002-04-12  Jim Meyering  <meyering@lucent.com>
36679
36680         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
36681         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
36682         existence of the getmntinfo function.  Needed for Darwin 5.3.
36683
36684         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
36685         This is necessary at least on Darwin 5.3.
36686
36687         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
36688         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
36689         strnlen.o in the library, and that makes some versions of ranlib
36690         object.
36691
36692 2002-04-12  Jim Meyering  <meyering@lucent.com>
36693
36694         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
36695
36696 2002-04-09  Jim Meyering  <meyering@lucent.com>
36697
36698         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
36699         to be more precise.  Rather than saying we're checking whether the
36700         function `works', say what we're testing.
36701         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
36702         Reported by Bruno Haible.
36703
36704 2002-03-10  Jim Meyering  <meyering@lucent.com>
36705
36706         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
36707         Suggestion from Santiago Vila.
36708
36709 2002-03-08  Jim Meyering  <meyering@lucent.com>
36710
36711         * lib/rename.c: Mention that this wrapper is needed also on
36712         mips-dec-ultrix4.4 systems.
36713
36714 2002-03-02  Jim Meyering  <meyering@lucent.com>
36715
36716         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
36717         not HAVE_CLOCK_SETTIME.
36718
36719 2002-02-27  Paul Eggert  <eggert@twinsun.com>
36720
36721         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
36722         Check for clock_settime.
36723
36724 2002-02-27  Paul Eggert  <eggert@twinsun.com>
36725
36726         * lib/nanosleep.h: Rename to....
36727         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
36728
36729         * lib/gettime.c: New file.
36730         * lib/settime.c: New file.
36731         * lib/stime.c: Remove.
36732
36733         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
36734         timespec.h.  Remove nanosleep.h.
36735
36736 2002-02-25  Paul Eggert  <eggert@twinsun.com>
36737
36738         * m4/acl.m4: New file.
36739         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
36740         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
36741
36742 2002-02-25  Paul Eggert  <eggert@twinsun.com>
36743
36744         * lib/acl.c, lib/acl.h: New files.
36745         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
36746
36747 2002-02-24  Jim Meyering  <meyering@lucent.com>
36748
36749         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
36750         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
36751         cause trouble.  Reported by Nelson Beebe.
36752
36753 2002-02-23  Paul Eggert  <eggert@twinsun.com>
36754
36755         * lib/path-concat.c (xpath_concat): Reorder code to pacify
36756         compilers that don't know that xalloc_die never returns.
36757
36758 2002-02-20  Jim Meyering  <meyering@lucent.com>
36759
36760         * lib/getdate.c: Regenerate using bison-1.33.
36761
36762 2002-02-17  Jim Meyering  <meyering@lucent.com>
36763
36764         * config/config.guess (main): Don't use `head -1'; it's no longer
36765         portable. Use `sed 1q' instead.
36766
36767 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
36768
36769         * m4/codeset.m4: Upgrade to gettext-0.11.
36770         * m4/gettext.m4: Upgrade to gettext-0.11.
36771         * m4/glibc21.m4: Upgrade to gettext-0.11.
36772         * m4/iconv.m4: Upgrade to gettext-0.11.
36773         * m4/isc-posix.m4: Upgrade to gettext-0.11.
36774         * m4/lcmessage.m4: Upgrade to gettext-0.11.
36775         * m4/lib-ld.m4: New file, from gettext-0.11.
36776         * m4/lib-link.m4: New file, from gettext-0.11.
36777         * m4/lib-prefix.m4: New file, from gettext-0.11.
36778         * m4/progtest.m4: Upgrade to gettext-0.11.
36779
36780 2002-02-15  Paul Eggert  <eggert@twinsun.com>
36781
36782         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
36783         (jm_PREREQ): Use it.
36784
36785 2002-02-15  Paul Eggert  <eggert@twinsun.com>
36786
36787         * lib/posixver.c, lib/posixver.h: New files.
36788         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
36789
36790 2002-02-02  Paul Eggert  <eggert@twinsun.com>
36791             Bruno Haible  <bruno@clisp.org>
36792
36793         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
36794         (fwrite_success_callback): New declaration.
36795         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
36796         print_unicode_char. Call failure callback instead of error.
36797         (fwrite_success_callback): New function.
36798         (exit_failure_callback): New function.
36799         (fallback_failure_callback): New function.
36800         (print_unicode_char): Call unicode_to_mb.
36801
36802 2002-01-26  Jim Meyering  <meyering@lucent.com>
36803
36804         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
36805         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
36806
36807 2002-01-26  Jim Meyering  <meyering@lucent.com>
36808
36809         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
36810
36811 2002-01-22  Paul Eggert  <eggert@twinsun.com>
36812
36813         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
36814
36815 2002-01-22  Jim Meyering  <meyering@lucent.com>
36816
36817         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
36818         Otherwise, some versions of automake would omit the rule that makes
36819         Makefile from Makefile.in.
36820
36821 2002-01-21  Paul Eggert  <eggert@twinsun.com>
36822
36823         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
36824         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
36825         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
36826         (memcoll): Set errno to zero if there is no error.
36827
36828         * lib/quotearg.c (quotearg_buffer_restyled):
36829         Fix bug with quoting buffers containing NUL when backslashing escapes.
36830         This bug was exposed by the other changes in this patch.
36831         (quotearg_n_options): New arg ARGSIZE.
36832         All callers changed.
36833         (quoting_options_from_style): New function.
36834         (quotearg_n_style): Use it.
36835         (quotearg_n_style_mem): New function.
36836
36837         * lib/quotearg.h (quotearg_n_style_mem): New function.
36838
36839 2002-01-19  Jim Meyering  <meyering@lucent.com>
36840
36841         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
36842         Remove useless quotes: DF_PROG="df".
36843         * m4/strnlen.m4: New file.
36844
36845 2002-01-16  Paul Eggert  <eggert@twinsun.com>
36846
36847         * lib/backupfile.c (ISDIGIT): Comment fix.
36848         * lib/getdate.y (ISDIGIT): Likewise.
36849         * lib/posixtm.c (ISDIGIT, year): Likewise.
36850         * lib/strverscmp.c (ISDIGIT): Likewise.
36851         * lib/userspec.c (ISDIGIT): Likewise.
36852
36853 2002-01-16  Jim Meyering  <meyering@lucent.com>
36854
36855         * lib/getdate.y: Add three semicolons, each just before a closing
36856         brace. Bison (as of version 1.31) no longer papers over that mistake.
36857
36858 2002-01-05  Jim Meyering  <meyering@lucent.com>
36859
36860         * lib/version-etc.c (version_etc_copyright): Update copyright year.
36861
36862 2001-12-19  Paul Eggert  <eggert@twinsun.com>
36863
36864         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
36865         not silently exit merely because the output buffer happens to
36866         have nothing pending.
36867
36868 2001-12-18  Paul Eggert  <eggert@twinsun.com>
36869
36870         See the big note in ../ChangeLog.
36871         * lib/human.c (suffixes): Prefer K to k for 1024.
36872         (generate_suffix_backwards): New function.
36873         (human_readable_inexact): Use it.
36874         * lib/xstrtol.c (__xstrtol): If there is no number but there
36875         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
36876         Accept 'K' as well as 'k'.
36877
36878 2001-12-15  Jim Meyering  <meyering@lucent.com>
36879
36880         * lib/regex.h (__restrict_arr): Update from libc.
36881
36882         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
36883         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
36884         (STREQ): Define.
36885
36886 2001-12-14  Jim Meyering  <meyering@lucent.com>
36887
36888         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
36889         Suggestion from Bruno Haible.
36890
36891 2001-12-10  Jim Meyering  <meyering@lucent.com>
36892
36893         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
36894         xrealloc, Instead, include "xalloc.h".
36895         (initbuffer): Don't cast xmalloc return value to char*.
36896         (readline): Reword comment.
36897         Don't cast xrealloc return value to char*
36898         Return NULL, not 0.
36899
36900 2001-12-09  Jim Meyering  <meyering@lucent.com>
36901
36902         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
36903         about `signed and unsigned type in conditional expression'.
36904         * lib/posixtm.c (posix_time_parse): Likewise.
36905
36906         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
36907
36908         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
36909         to avoid a pedantic warning.
36910
36911         * lib/getstr.c: Don't include assert.h.
36912         (getstr): Remove warning-evoking assertions.
36913         Return -1 if offset parameter is out of bounds.
36914         Change the type of a local from int to size_t.
36915
36916         * lib/strftime.c (my_strftime_localtime_r): Include this function
36917         definition in the `#if ! HAVE_TM_GMTOFF' block.
36918
36919         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
36920         Include xalloc.h instead.
36921
36922 2001-12-02  Jim Meyering  <meyering@lucent.com>
36923
36924         * lib/tempname.c: Don't declare getenv, thus reverting the change of
36925         2001-11-18.  It's no longer necessary, now that stdlib.h is always
36926         included.
36927
36928         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
36929         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
36930
36931 2001-11-30  Akim Demaille  <akim@epita.fr>
36932
36933         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
36934         before being defined.
36935
36936 2001-11-27  Paul Eggert  <eggert@twinsun.com>
36937
36938         * lib/quotearg.h (quotearg_n, quotearg_n_style):
36939         First arg is int, not unsigned.
36940         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
36941         (SIZE_MAX, UINT_MAX): New macros.
36942         (quotearg_n_options): Abort if N is negative.
36943         Avoid overflow check on hosts where size_t is 64 bits and int
36944         is 32 bits, as overflow is impossible there.
36945         Fix off-by-one typo that caused unnecessary reallocation.
36946
36947 2001-11-27  Jim Meyering  <meyering@lucent.com>
36948
36949         * lib/tempname.c: Merge with version from libc.
36950         * lib/regex.c: Likewise.
36951
36952         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
36953         systems for which STDC_HEADERS is 0, it was not included, resulting in
36954         a warning about an integer-to-pointer conversion problem with getenv.
36955         Reported by Volker Borchert.
36956
36957 2001-11-26  Jim Meyering  <meyering@lucent.com>
36958
36959         * lib/gtod.h: Remove file.
36960         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
36961         * lib/gettimeofday.c: Don't include gtod.h.
36962         (GTOD_init): Remove function.
36963         (rpl_gettimeofday): Do its job here instead, rather than aborting.
36964         Suggestion from Volker Borchert.
36965
36966 2001-11-23  Jim Meyering  <meyering@lucent.com>
36967
36968         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
36969         it.
36970         * lib/hash.c (struct hash_table): Define it here instead.
36971
36972 2001-11-22  Jim Meyering  <meyering@lucent.com>
36973
36974         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
36975
36976 2001-11-20  Jim Meyering  <meyering@lucent.com>
36977
36978         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
36979         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
36980
36981 2001-11-19  Jim Meyering  <meyering@lucent.com>
36982
36983         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
36984         directory.  Use "conftestXXXXXX" as the template.
36985         Suggestion from Paul Eggert.
36986
36987         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
36988         immediately, so the test doesn't mistakenly hit the max-open-files
36989         limit.
36990
36991 2001-11-18  Paul Eggert  <eggert@twinsun.com>
36992
36993         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
36994         (TEMPORARIES): New macro.
36995         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
36996         removes an artificial limitation (e.g. HP-UX 10.20, where
36997         TMP_MAX is 17576).
36998
36999 2001-11-18  Jim Meyering  <meyering@lucent.com>
37000
37001         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
37002
37003 2001-11-18  Jim Meyering  <meyering@lucent.com>
37004
37005         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
37006         on SunOS 4.
37007
37008         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
37009         files will be created before anything else.
37010
37011 2001-11-17  Paul Eggert  <eggert@twinsun.com>
37012
37013         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
37014         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
37015
37016 2001-11-17  Jim Meyering  <meyering@lucent.com>
37017
37018         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
37019         Prompted by a report from Bob Proulx.
37020
37021         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
37022         Instead, require UTILS_FUNC_MKSTEMP.
37023
37024 2001-11-17  Jim Meyering  <meyering@lucent.com>
37025
37026         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
37027         Now, that's done as part of AC_FUNC_STRTOD.
37028
37029 2001-11-17  Jim Meyering  <meyering@lucent.com>
37030
37031         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
37032         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
37033         rather than group writable.  Patch by Juan F. Codagnone.
37034
37035         * lib/readtokens.c: Remove explicit declarations of xmalloc and
37036         xrealloc, Instead, include "xalloc.h".
37037
37038         * lib/mountlist.c: Include unlocked-io.h after all system headers.
37039         Remove explicit declarations of xmalloc, xrealloc,
37040         and xstrdup.  Instead, include "xalloc.h".
37041
37042         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
37043         unlocked-io.h.
37044         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
37045         Likewise.
37046         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
37047
37048         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
37049         Reported by Padraig Brady.
37050
37051         * lib/mkstemp.c: #undef mkstemp.
37052         Include config.h.
37053         (rpl_mkstemp): Rename from mkstemp.
37054         Protoize.
37055
37056 2001-11-16  Jim Meyering  <meyering@lucent.com>
37057
37058         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
37059         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
37060         determine the amount of total physical memory, use pstat_getstatic.
37061         HPUX-11 doesn't define _SC_PHYS_PAGES.
37062         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
37063         If sysconf couldn't be used to determine the amount of available
37064         physical memory, use both pstat_getstatic and pstat_getdynamic.
37065         Based on a patch from Bob Proulx.
37066
37067 2001-11-10  Jim Meyering  <meyering@lucent.com>
37068
37069         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
37070         (jm_PREREQ): Use it.
37071
37072 2001-11-09  Jim Meyering  <meyering@lucent.com>
37073
37074         * m4/jm-macros.m4: Require autoconf-2.52f.
37075         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
37076         Use these AC_-prefixed names, not the AM_-prefixed ones.
37077
37078         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
37079
37080 2001-11-05  Jim Meyering  <meyering@lucent.com>
37081
37082         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
37083
37084 2001-11-04  Jim Meyering  <meyering@lucent.com>
37085
37086         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
37087         $DEFS.
37088
37089 2001-11-03  Jim Meyering  <meyering@lucent.com>
37090
37091         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
37092         of AC_DEFUN.
37093
37094         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
37095         know the name of the variable in the macro definition.
37096
37097 2001-11-03  Jim Meyering  <meyering@lucent.com>
37098
37099         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
37100         in argmatch_to_argument call.
37101
37102         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
37103         argument.
37104
37105         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
37106         e.g., a fault due to an attempt to free a NULL pointer.
37107
37108 2001-11-01  Jim Meyering  <meyering@lucent.com>
37109
37110         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
37111         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
37112
37113 2001-11-01  Jim Meyering  <meyering@lucent.com>
37114
37115         * lib/dirfd.c, lib/dirfd.h: New files.
37116         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
37117
37118         * lib/hash.c (hash_print) [TESTING]: Clean up.
37119
37120 2001-10-22  Paul Eggert  <eggert@twinsun.com>
37121
37122         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
37123         to avoid a warning if -Wall.
37124
37125 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
37126
37127         * README: New file
37128         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
37129         (per RMS's instructions, this is now the canonical source)
37130         * lgpl/, gpl/: New directories.
37131
37132 2001-10-21  Paul Eggert  <eggert@twinsun.com>
37133
37134         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
37135
37136 2001-10-21  Jim Meyering  <meyering@lucent.com>
37137
37138         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
37139         this code would end up calling gettext even in packages built
37140         with --disable-nls.
37141         * lib/getopt.c (_): Likewise.
37142         * lib/regex.c (_): Likewise.
37143
37144 2001-10-20  Paul Eggert  <eggert@twinsun.com>
37145
37146         * m4/error.m4 (jm_PREREQ_ERROR):
37147         Do not invoke AC_CHECK_FUNCS with strerror_r, as
37148         AC_FUNC_STRERROR_R does that.
37149         Check for strerror declaration.
37150
37151         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
37152         are supposed to have them these days.
37153         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
37154         Merge changes from latest Autoconf CVS.
37155         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
37156         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
37157         POSIX decided to standardize on the int flavor of strerror_r.
37158
37159 2001-10-20  Paul Eggert  <eggert@twinsun.com>
37160
37161         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
37162         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
37163         Use strerror_r that is only a macro, even if it is not a function.
37164         (strerror): Check for HAVE_DECL_STRERROR before declaring.
37165         (private_strerror): Use prototypes, not old-style function definition.
37166         (print_errno_message): New function.
37167         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
37168         char*-flavored one.
37169         (error_tail, error, error_at_line): Use it.
37170
37171 2001-10-11  Jim Meyering  <meyering@lucent.com>
37172
37173         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
37174         and quote_n (1, ... to avoid clobbering a buffer.
37175
37176 2001-10-05  Jim Meyering  <meyering@lucent.com>
37177
37178         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
37179         hash-pjw.h.
37180         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
37181         * lib/hash-pjw.h: New file.
37182
37183 2001-09-30  Jim Meyering  <meyering@lucent.com>
37184
37185         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
37186         `struct fsstat' has the `f_fstypename' member.
37187         Use that to define FS_TYPE, which is now used to make
37188         the getfsstat link test tighter.
37189
37190 2001-09-30  Jim Meyering  <meyering@lucent.com>
37191
37192         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
37193         Include <sys/ucred.h>, for Apple Darwin.
37194         Include sys/mount.h and sys/fs_types.h only if available.
37195         (FS_TYPE): Define.
37196         (read_filesystem_list): Use FS_TYPE.
37197
37198 2001-09-29  Paul Eggert  <eggert@twinsun.com>
37199
37200         * lib/exclude.c (excluded_filename): 0 -> false, since it's
37201         a boolean context.
37202
37203 2001-09-29  Jim Meyering  <meyering@lucent.com>
37204
37205         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
37206         [one-argument getmntent function]): Include stdio.h before mntent.h.
37207         SunOS 4.1.x needs it for the declaration of `FILE'.
37208         Patch by Volker Borchert.
37209
37210         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
37211         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
37212         sys/fs_types.h, and make the link-test for getfsstat guard #include
37213         directives with appropriate #if HAVE_*_H tests so that we can
37214         detect getfsstat on Apple Darwin1.3.7 systems.
37215         Reported by Nelson Beebe.
37216         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
37217
37218 2001-09-28  Paul Eggert  <eggert@twinsun.com>
37219
37220         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
37221         #defines strtoimax.  Also treat the other strto* functions
37222         like strtoimax.
37223
37224         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
37225         Check for strtoul and strtoumax,
37226         as those declarations are made even in the signed case.
37227         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
37228         Likewise, for strtol and strtoimax.
37229
37230 2001-09-28  Paul Eggert  <eggert@twinsun.com>
37231
37232         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
37233         #defines strtoimax.  Also treat the other strto* functions
37234         like strtoimax.
37235
37236         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
37237         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
37238         (strtoimax, strtoumax): Do not declare if already defined as a macro.
37239
37240 2001-09-26  Jim Meyering  <meyering@lucent.com>
37241
37242         Most macros in unlocked-io.h had the wrong number of arguments.
37243         * lib/gen-uio: New script.
37244         (USE_UNLOCKED_IO): Define to 1 if not already defined.
37245         * lib/unlocked-io.hin: Remove file.
37246         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
37247         rather than trying to embed it here.
37248         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
37249         Reported by Padraig Brady.
37250
37251 2001-09-25  Volker Borchert  <bt@teknon.de>
37252
37253         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
37254         `result'.
37255
37256 2001-09-24  Jim Meyering  <meyering@lucent.com>
37257
37258         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
37259
37260 2001-09-23  Jim Meyering  <meyering@lucent.com>
37261
37262         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
37263         instead of the mere test for existence of mntent.h.  The latter
37264         would get a false-positive on AIX 3.4 systems.
37265         In the outer getmntent if-block, don't die if neither of the getmntent
37266         tests succeeds.  Instead, just fall through and continue with the
37267         remaining tests.
37268
37269 2001-09-23  Jim Meyering  <meyering@lucent.com>
37270
37271         * lib/mountlist.c: Remove useless parentheses in #if directives.
37272         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
37273         the deprecated MOUNTED symbol is no longer defined in mntent.h.
37274
37275 2001-09-22  Jim Meyering  <meyering@lucent.com>
37276
37277         * m4/gettext.m4: New file.  From gettext.
37278         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
37279         * m4/progtest.m4: Likewise
37280         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
37281         * m4/glibc21.m4: Likewise.
37282
37283         * m4/libintl.m4: Remove.  No longer used.
37284
37285 2001-09-22  Jim Meyering  <meyering@lucent.com>
37286
37287         * lib/localcharset.c: Update from latest gettext.
37288         * lib/config.charset: Likewise.
37289
37290 2001-09-20  Jim Meyering  <meyering@lucent.com>
37291
37292         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
37293         strtoimax.
37294         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
37295         strtoumax.
37296
37297 2001-09-20  Jim Meyering  <meyering@lucent.com>
37298
37299         * lib/xstrtol.c (strtoimax): Guard declaration with
37300         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
37301         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
37302         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
37303         (strtoumax): Likewise, for completeness (it wasn't necessary).
37304
37305 2001-09-17  Paul Eggert  <eggert@twinsun.com>
37306
37307         * lib/strtoimax.c (HAVE_LONG_LONG):
37308         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
37309         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
37310         to work around bug in IBM C compiler.
37311
37312 2001-09-17  Jim Meyering  <meyering@lucent.com>
37313
37314         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
37315         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
37316         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
37317         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
37318         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
37319         whenever the right hand side need not be expanded by the shell.
37320
37321 2001-09-16  Paul Eggert  <eggert@twinsun.com>
37322
37323         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
37324         library.  It's not correct, as some older glibcs are buggy.
37325         fnmatch wasn't fixed until glibc 2.2.
37326
37327         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
37328         special shell magic here.
37329
37330 2001-09-16  Jim Meyering  <meyering@lucent.com>
37331
37332         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
37333         * m4/jm-macros.m4: Require it.
37334
37335 2001-09-16  Jim Meyering  <meyering@lucent.com>
37336
37337         * lib/mkdir.c: New file.
37338
37339 2001-09-15  Jim Meyering  <meyering@lucent.com>
37340
37341         * m4/jm-macros.m4: Check for help2man.
37342
37343 2001-09-11  Jim Meyering  <meyering@lucent.com>
37344
37345         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
37346         The body, by Paul Eggert, was moved here from configure.in.
37347         * m4/jm-macros.m4: Require UTILS_HOST_OS.
37348
37349 2001-09-04  Paul Eggert  <eggert@twinsun.com>
37350
37351         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
37352         (jm_PREREQ): Use it.
37353
37354 2001-09-04  Paul Eggert  <eggert@twinsun.com>
37355
37356         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
37357         Use ssize_t, not int, to store result of readlink.
37358         Check for ssize_t overflow as well as size_t overflow,
37359         as POSIX says the result of readlink is implementation-defined
37360         when ssize_t overflows.
37361         Remove unnecessary cast to char*.
37362         Use free+malloc instead of realloc, as the storage doesn't need
37363         to be preserved and it's clearer and can be more efficient that way.
37364         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
37365         * lib/xreadlink.h (xreadlink): Update prototype.
37366
37367 2001-09-04  Paul Eggert  <eggert@twinsun.com>
37368
37369         * lib/xgetcwd.c: Revert some of the previous change; intead,
37370         fix the HAVE_GETCWD_NULL code to behave more like the
37371         !HAVE_GETCWD_NULL code used to.
37372
37373         Include "xalloc.h".
37374         (xgetcwd): Do not return NULL when memory is exhausted; instead,
37375         invoke xalloc_die.
37376
37377 2001-09-03  Paul Eggert  <eggert@twinsun.com>
37378
37379         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
37380         sys/param.h, as pathmax.h includes them.
37381
37382 2001-09-03  Paul Eggert  <eggert@twinsun.com>
37383
37384         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
37385         (jm_PREREQ_XGETCWD): New macro.
37386
37387         * m4/getcwd.m4: New file.
37388
37389 2001-09-03  Paul Eggert  <eggert@twinsun.com>
37390
37391         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
37392         like the HAVE_GETCWD_NULL code.
37393         Include pathmax.h if not HAVE_GETCWD.
37394         Do not include xalloc.h.
37395         (INITIAL_BUFFER_SIZE): New symbol.
37396         Do not use xmalloc / xrealloc, since the caller is responsible for
37397         handling errors.  Preserve errno around `free' during failure.
37398         Do not overrun buffer when using getwd.
37399
37400 2001-09-03  Paul Eggert  <eggert@twinsun.com>
37401
37402         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
37403         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
37404         getcwd (NULL, 0).
37405
37406 2001-09-03  Paul Eggert  <eggert@twinsun.com>
37407
37408         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
37409         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
37410         spotted by Jim Meyering.
37411
37412 2001-09-03  Jim Meyering  <meyering@lucent.com>
37413
37414         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
37415         failure.
37416
37417 2001-09-02  Jim Meyering  <meyering@lucent.com>
37418
37419         * lib/error.c: Update from GNU libc.
37420
37421 2001-09-01  Jim Meyering  <meyering@lucent.com>
37422
37423         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
37424         Used by df.
37425
37426 2001-09-01  Jim Meyering  <meyering@lucent.com>
37427
37428         * lib/xreadlink.c: New file.
37429         * lib/xreadlink.h: New file.
37430         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
37431         xreadlink.h.
37432
37433         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
37434         doesn't conflict with sparc Solaris 7's definition in
37435         /usr/include/sys/int_types.h.
37436
37437         * lib/exclude.c: Use `""', not `<>' to #include non-system header
37438         files.
37439         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
37440         and strncasecmp as r-values.  Unixware didn't have declarations.
37441
37442 2001-08-31  Paul Eggert  <eggert@twinsun.com>
37443
37444         * lib/xstrtol.h: Add copyright notice.
37445         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
37446         LONGINT_INVALID_SUFFIX_CHAR.
37447
37448 2001-08-31  Paul Eggert  <eggert@twinsun.com>
37449
37450         * lib/xstrtol.c (strtoimax): New decl.
37451
37452 2001-08-31  Paul Eggert  <eggert@twinsun.com>
37453
37454         * lib/xgetcwd.c: Don't include pathmax.h.
37455         Include stdlib.h and unistd.h if available.
37456         Include xalloc.h.
37457         (xmalloc, xstrdup, free): Remove decls.
37458         (xgetcwd): Don't assume sizes fit in unsigned.
37459         Check for overflow when computing sizes.
37460         Simplify reallocation code.
37461
37462 2001-08-31  Paul Eggert  <eggert@twinsun.com>
37463
37464         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
37465         a directory's st_size can have an arbitrary value, so the old
37466         usage could waste an arbitrary amount of memory.  All uses
37467         changed.
37468         * lib/savedir.h: Update prototype.
37469
37470 2001-08-31  Paul Eggert  <eggert@twinsun.com>
37471
37472         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
37473
37474         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
37475         old strtoimax.c.
37476
37477         Also, make the following further changes to make this file's
37478         configuration more similar to that of strtol.c:
37479         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
37480         (strtoumax, uintmax_t, strtoull, strtol): Remove.
37481         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
37482         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
37483         changed to signed values.
37484
37485         And make the following changes as well:
37486         Fix copyright notice, as 1999 was missing.
37487         (verify): New macro.
37488         (strtoimax): Check sizes at compile-time, not run-time.
37489         Prefer strtol to strtoll if both work.
37490         (main): Remove; it was not that useful and was a pain to maintain.
37491
37492         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
37493
37494 2001-08-31  Jim Meyering  <meyering@lucent.com>
37495
37496         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
37497         Use an initial, malloc'd, buffer of length 128 rather than
37498         a statically allocated one of length 1024.
37499
37500 2001-08-30  Paul Eggert  <eggert@twinsun.com>
37501
37502         Simplify code, partly by assuming autoconf 2.52 semantics.
37503
37504         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
37505
37506         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
37507         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
37508         All uses removed.
37509         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
37510         Move AC_REQUIRE to next-to-top level, to avoid confusion.
37511         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
37512         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
37513         jm_AC_HEADER_INTTYPES_H.
37514         * m4/jm-macros.m4 (jm_MACROS): Likewise.
37515
37516         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
37517
37518         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
37519         Quote first arg of AC_DEFUN.
37520         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
37521         since they are needed to parse the include file even if we need
37522         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
37523         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
37524         but with opposite signedness.
37525
37526 2001-08-30  Paul Eggert  <eggert@twinsun.com>
37527
37528         Merge 'exclude' changes from tar 1.13.22.
37529         This fixes one or two unlikely storage allocation overflow bugs,
37530         but doesn't change user-visible behavior otherwise.
37531
37532 2001-08-30  Paul Eggert  <eggert@twinsun.com>
37533
37534         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
37535         (jm_PREREQ_EXCLUDE): New macro.
37536
37537 2001-08-30  Paul Eggert  <eggert@twinsun.com>
37538
37539         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
37540         tm to be declared.
37541
37542 2001-08-30  Paul Eggert  <eggert@twinsun.com>
37543
37544         * lib/hash.c: Remove '2001' from copyright notice.
37545
37546 2001-08-30  Paul Eggert  <eggert@twinsun.com>
37547
37548         * lib/full-write.h: New file.
37549         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
37550         * lib/full-write.c: Correct credits, as cccp.c no longer
37551         exists and anyway it was so heavily changed from the old cccp
37552         code as to be unrecognizable.  Include full-write.h.
37553         (full_write) Return size_t, with short writes meaning failure.
37554         All callers changed.  This fixes a bug with large buffers
37555         on 64-bit hosts.
37556         * lib/utime.c: Include full-write.h.
37557
37558 2001-08-30  Paul Eggert  <eggert@twinsun.com>
37559
37560         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
37561         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
37562         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
37563         Include if available.
37564         (<xalloc.h>): Include
37565         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
37566         (verify): New macro.  Use it to verify that EXCLUDE macros do not
37567         collide with FNM macros.
37568         (struct patopts): New struct.
37569         (struct exclude): Use it, as exclude patterns now come with options.
37570         (new_exclude): Support above changes.
37571         (new_exclude, add_exclude_file):
37572         Initial size must now be a power of two to simplify overflow checking.
37573         (free_exclude, fnmatch_no_wildcards): New function.
37574         (excluded_filename): No longer requires options arg, as the options
37575         are determined by add_exclude.  Now returns bool, not int.
37576         (excluded_filename, add_exclude):
37577         Add support for the fancy new exclusion options.
37578         (add_exclude, add_exclude_file): Now takes int options arg.
37579         Check for arithmetic overflow when computing sizes.
37580         (add_exclude_file): xrealloc might modify errno, so don't
37581         realloc until after errno might be used.
37582
37583         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
37584         New macros.
37585         (free_exclude): New decl.
37586         (add_exclude, add_exclude_file): Now takes int options arg.
37587         (excluded_filename): No longer requires options arg, as the options
37588         are determined by add_exclude.  Now returns bool, not int.
37589
37590 2001-08-30  Paul Eggert  <eggert@twinsun.com>
37591
37592         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
37593
37594 2001-08-27  Jim Meyering  <meyering@lucent.com>
37595
37596         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
37597
37598         * lib/version-etc.c (N_): Remove definition.
37599         Revert most of last change.
37600         Instead, simply don't mark the `Copyright...' string for translation.
37601         Based on advice from Paul Eggert.
37602
37603         * lib/strtoxmax.c: Tweak comment.
37604
37605 2001-08-26  Jim Meyering  <meyering@lucent.com>
37606
37607         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
37608
37609         * m4/xstrtoimax.m4: New file.
37610         * m4/xstrtoumax.m4: Add comments explaining why we
37611         AC_REPLACE_FUNCS(strtol).
37612
37613 2001-08-26  Jim Meyering  <meyering@lucent.com>
37614
37615         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
37616         of copyright with `%s' so translators don't get an untranslated
37617         message in 2002.
37618         (COPYRIGHT_YEAR): Define.
37619         (version_etc): Use fprintf rather than fputs.
37620         Suggestion from Ulrich Drepper.
37621
37622         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
37623
37624         * lib/strtoll.c: New file, from GNU libc.
37625         * lib/xstrtoimax.c: New file.
37626
37627         * lib/xstrtol.h: Add xstrtoimax.
37628         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
37629         * lib/strtoimax.c: New file.  Likewise, but first define
37630         STRTOUXMAX_SIGNED.
37631
37632         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
37633         ...
37634         * lib/strtoxmax.c: ... then renamed to this.
37635
37636 2001-08-18  Paul Eggert  <eggert@twinsun.com>
37637
37638         * m4/inttypes.m4: Add AC_PREREQ(2.13).
37639         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
37640         (jm_AC_TYPE_INTMAX_T): New macro.
37641         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
37642
37643         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
37644
37645         * m4/longlong.m4: Renamed from ulonglong.m4.
37646         * m4/inttypes.m4: Renamed from inttypes_h.m4.
37647         * m4/uintmax_t.m4: Removed.
37648
37649 2001-08-13  Paul Eggert  <eggert@twinsun.com>
37650
37651         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
37652         Port to Solaris 8, where 'sed' requires a space after the 'r'
37653         command, and where sh dislikes "$/".  Clean up the spacing a bit.
37654         Redirect output to $tmp just once.
37655
37656 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
37657
37658         * lib/addext.c (<errno.h>): Include.
37659         (errno): Declare if not defined.
37660         (addext): Work correctly when pathconf returns -1 and leaves
37661         errno alone because there is no limit.  Also, work even if
37662         pathconf returns a value greater than SIZE_MAX.
37663
37664 2001-08-12  Jim Meyering  <meyering@lucent.com>
37665
37666         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
37667         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
37668         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
37669         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
37670         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
37671         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
37672         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
37673         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
37674         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
37675         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
37676         utime.m4, utimes.m4, xstrtoumax.m4:
37677         Quote the first argument in each use of AC_DEFUN.
37678
37679 2001-08-12  Jim Meyering  <meyering@lucent.com>
37680
37681         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
37682         Simply `return getcwd (NULL, 0);'.
37683         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
37684         Use 1300 as initial value for length, not PATH_MAX.
37685
37686         * lib/pathmax.h: Clean up cpp syntax.
37687
37688 2001-08-12  Jim Meyering  <meyering@lucent.com>
37689
37690         * lib/gettimeofday.c: New file.
37691         * lib/gtod.h: New file.
37692         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
37693
37694 2001-08-05  Jim Meyering  <meyering@lucent.com>
37695
37696         * m4/jm-macros.m4: Require autoconf-2.52.
37697
37698 2001-08-04  Jim Meyering  <meyering@lucent.com>
37699
37700         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
37701         stmt, to get in sync with glibc.
37702
37703 2001-08-03  Paul Eggert  <eggert@twinsun.com>
37704
37705         The following changes are from gettext 0.10.39 as maintained by
37706         Bruno Haible.
37707
37708         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
37709         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
37710         with inverted sense.  All uses changed.
37711
37712         * lib/mbswidth.c: Don't include <limits.h>.
37713         Include <stdlib.h> and <string.h> unconditionally.
37714         (iswcntrl, mbsinit, ISCNTRL): New macros.
37715         (mbsnwidth): Use K&R style function declarations.
37716         Don't bother checking for MB_LEN_MAX == 1, since the compiler
37717         can optimize it when MB_CUR_MAX == 1.
37718         The width of control characters is zero, not 1.
37719
37720 2001-08-03  Paul Eggert  <eggert@twinsun.com>
37721
37722         The following changes are from gettext 0.10.39 as maintained by
37723         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
37724
37725         * m4/codeset.m4: Upgrade to serial AM1.
37726         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
37727         all uses changed.  Quote first arg of AC_DEFUN.
37728         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
37729
37730         * m4/iconv.m4: Upgrade to serial AM2.
37731         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
37732         Add --with-libconv-prefix.
37733         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
37734         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
37735         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
37736         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
37737         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
37738
37739         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
37740         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
37741         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
37742         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
37743         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
37744         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
37745         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
37746         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
37747         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
37748
37749         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
37750         string.h any more.
37751
37752         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
37753         not the default value.
37754
37755         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
37756         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
37757         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
37758         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
37759         Also check for iswcntrl, used for wcwidth fallback.
37760         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
37761         to Autoconf 2.13.
37762
37763 2001-08-03  Jim Meyering  <meyering@lucent.com>
37764
37765         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
37766         as it was in the original.  Reported by Paul Eggert.
37767
37768 2001-07-16  Jim Meyering  <meyering@lucent.com>
37769
37770         * m4/gettimeofday.m4: New file.
37771         Prompted by a report from Bernhard Baehr.
37772
37773 2001-07-15  Jim Meyering  <meyering@lucent.com>
37774
37775         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
37776         stuff. Now it's in ../Makefile.cfg.
37777
37778 2001-07-15  Jim Meyering  <meyering@lucent.com>
37779
37780         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
37781         (BUILT_SOURCES): Add unlocked-io.h.
37782         (io_functions): Define.
37783         (unlocked-io.h): New rule.
37784         (DISTCLEANFILES): Add unlocked-io.h.
37785         (all-local): Depend on unlocked-io.h, to ensure it is created.
37786
37787         * lib/unlocked-io.hin: New file
37788
37789         * lib/regex.c: Update from glibc.
37790
37791 2001-07-05  Jim Meyering  <meyering@lucent.com>
37792
37793         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
37794         recommendation.
37795         (libfetish_a_SOURCES): Put all .h files here instead.
37796         Remove a thus-exposed (better checks in automake) duplicate and
37797         two unnecessary .h files.
37798
37799 2001-07-04  Jim Meyering  <meyering@lucent.com>
37800
37801         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
37802         that generates jm-glibc-io.m4 so that it doesn't trigger any make
37803         distcheck failure.
37804
37805 2001-07-02  Jim Meyering  <meyering@lucent.com>
37806
37807         The following changes were prompted by suggestions from Bruno Haible.
37808
37809         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
37810         is now generated.
37811         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
37812         definition of EXTRA_DIST.
37813         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
37814         ensure that the generated file is created/updated whenever the list
37815         of $(unlocked_functions) is changed.
37816         (jm-glibc-io.m4): New rule.
37817         (unlocked-io.h): New rule -- currently unused.
37818
37819 2001-06-24  Jim Meyering  <meyering@lucent.com>
37820
37821         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
37822         unmatched right bracket, rather than kludging it with an extra,
37823         falsely-matching quote in a comment.  Patch by Akim Demaille.
37824
37825 2001-06-11  Jim Meyering  <meyering@lucent.com>
37826
37827         * lib/regex.c: Update from GNU libc.
37828
37829 2001-05-27  Jim Meyering  <meyering@lucent.com>
37830
37831         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
37832         Check for ut_type in struct utmp.
37833
37834 2001-05-27  Jim Meyering  <meyering@lucent.com>
37835
37836         * lib/readutmp.h (UT_TYPE): Define.
37837
37838 2001-05-24  Jim Meyering  <meyering@lucent.com>
37839
37840         * lib/argmatch.c: Include "quote.h".
37841         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
37842         quote function.  Reported by Göran Uddeborg.
37843
37844 2001-05-22  Jim Meyering  <meyering@lucent.com>
37845
37846         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
37847         now that we use the package-supplied version unconditionally.
37848         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
37849
37850 2001-05-21  Jim Meyering  <meyering@lucent.com>
37851
37852         * m4/regex.m4: Change a couple backticks to single quotes to avoid
37853         shell syntax errors.
37854
37855 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
37856
37857         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
37858
37859 2001-05-20  Paul Eggert  <eggert@twinsun.com>
37860
37861         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
37862         Don't bother to check library strftime, since
37863         we'll be using our own my_strftime function anyway.
37864         Define my_strftime instead of strftime.
37865
37866 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
37867
37868         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
37869         which is not yet declared.
37870
37871 2001-05-15  Jim Meyering  <meyering@lucent.com>
37872
37873         * m4/regex.m4: Use proper quoting so brackets appear in the test
37874         program.
37875         Reported by, and with help from, Bruno Haible.
37876
37877 2001-05-13  Jim Meyering  <meyering@lucent.com>
37878
37879         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
37880         undefined.
37881
37882 2001-05-11  Paul Eggert  <eggert@twinsun.com>
37883
37884         dirname code cleanup.  base_name now behaves more compatibly
37885         with POSIX basename when given file names that have trailing
37886         slashes, and similarly for dir_name.  Add new primitives
37887         base_len and dir_len.  Put the directory-name-related decls
37888         into dirname.h.
37889
37890         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
37891         * lib/backupfile.c (base_name): Likewise.
37892         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
37893         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
37894         * lib/makepath.c (strip_trailing_slashes): Likewise.
37895         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
37896         ISSLASH): Likewise.
37897         * lib/rename.c (strip_trailing_slashes): Likewise.
37898         * lib/same.c (base_name): Likewise.
37899         * lib/stripslash.c (ISSLASH): Likewise.
37900
37901         * lib/addext.c: Include <dirname.h> after size_t is defined.
37902         * lib/backupfile.c: Likewise.
37903
37904         * lib/addext.c (addext): Use base_len to trim redundant
37905         trailing slashes instead of doing it ourselves.
37906         But do not trim the last slash if it is not redundant.
37907
37908         * lib/backupfile.c (find_backup_file_name,
37909         max_backup_version): Use base_len instead of rolling it ourselves.
37910         Handle the case of "" and (on DOS) "C:" correctly.
37911
37912         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
37913         needed. Include <string.h>, <dirname.h>.
37914         (base_name): Allow file names ending in slashes, other than names
37915         that are all slashes.  In this case, return the basename followed
37916         by the slashes.  This is more general, and can be used in places
37917         where the original base_name purposely had an assertion failure.
37918         (base_len): New function.
37919
37920         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
37921         Do not include <assert.h>; no longer needed.
37922         Include xalloc.h.
37923         (memrchr): Remove decl.
37924         (dir_name_r): Remove.
37925         (dir_len): Renamed from dirlen.  All callers changed.
37926         Rewrite in terms of base_name, for simplicity and consistency.
37927         (dir_name): Never return NULL.  All callers changed.
37928         Do not include <stdlib.h> in test program; no longer needed.
37929         return 0; is fine for test program.
37930
37931         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
37932         New macros.
37933         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
37934
37935         * lib/path-concat.c (path_concat): Use base_len to compute
37936         base length, not strlen; this means we cannot rely on memcpy
37937         to null-terminate.
37938
37939         * lib/same.c (STREQ): Remove.
37940         (same_name): Handle the case where the basename ends in trailing '/'.
37941
37942         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
37943         a slash was stripped.  Do not strip the last slash after a
37944         file system prefix.
37945
37946 2001-05-11  Paul Eggert  <eggert@twinsun.com>
37947
37948         * lib/Makefile.am (libfetish_a_SOURCES):
37949         Add strftime.c, since we now compile it on all hosts.
37950
37951         * lib/strftime.c (my_strftime):
37952         Define to nstrftime if emacs, but only if my_strftime is not defined.
37953         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
37954         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
37955         Add one more extra argument: a nanoseconds value.
37956         All uses changed.
37957         (ns): New macro.
37958         (my_strftime function): Add %N format.
37959         (emacs_strftimeu): Renamed from emacs_strftime,
37960         with extra ut argument.
37961
37962 2001-05-09  Paul Eggert  <eggert@twinsun.com>
37963
37964         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
37965
37966 2001-04-21  Jim Meyering  <meyering@lucent.com>
37967
37968         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
37969         doesn't interfere.
37970
37971 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
37972
37973         * m4/ftruncate.m4: Check for chsize.
37974         Link with ftruncate.o unconditionally if ftruncate is missing.
37975         This was required when cross-compiling to i586-mingw32msvc.
37976
37977 2001-04-08  Jim Meyering  <meyering@lucent.com>
37978
37979         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
37980         recomputed; that's necessary when the offset spans a DST transition.
37981         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
37982
37983 2001-04-02  Jim Meyering  <meyering@lucent.com>
37984
37985         * lib/regex.h, regex.c: Update from GNU libc.
37986
37987 2001-03-24  Jim Meyering  <meyering@lucent.com>
37988
37989         * m4/jm-macros.m4: Require autoconf-2.49d.
37990
37991 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
37992
37993         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
37994
37995 2001-03-19  Paul Eggert  <eggert@twinsun.com>
37996
37997         * lib/version-etc.c (version_etc_copyright): Update to 2001.
37998
37999 2001-03-17  Jim Meyering  <meyering@lucent.com>
38000
38001         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
38002         now that the version in autoconf is equivalent.
38003         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
38004
38005         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
38006         Suggestion from Akim Demaille.
38007
38008         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
38009         (jm_PREREQ_TEMPNAME): New function.
38010
38011 2001-03-16  Paul Eggert  <eggert@twinsun.com>
38012
38013         * lib/tempname.c (uint64_t): Define to uintmax_t if
38014         not defined, and if UINT64_MAX is not defined.
38015         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
38016         Reported by John David Anglin.
38017
38018 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
38019
38020         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
38021         resolve alias if codeset is empty.
38022         * lib/config.charset (BeOS): Use wildcard syntax.
38023
38024 2001-03-13  Jim Meyering  <meyering@lucent.com>
38025
38026         * lib/path-concat.c (path_concat)
38027         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
38028         concatenating e.g., `C:' and `foo'.
38029         From Bruno Haible.
38030
38031 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
38032
38033         * lib/localcharset.c (locale_charset): Don't use
38034         setlocale(LC_CTYPE,NULL). Don't return NULL.
38035         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
38036
38037 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
38038
38039         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
38040         support for DOS/DJGPP.
38041
38042 2001-03-01  Paul Eggert  <eggert@twinsun.com>
38043
38044         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
38045         lacks mkstemp.  Compile our own tempname.c if we compile our own
38046         mkstemp.c, as mkstemp relies on tempname.
38047
38048 2001-03-01  Jim Meyering  <meyering@lucent.com>
38049
38050         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
38051         AH_VERBATIM really does output its argument verbatim.
38052
38053 2001-02-28  Paul Eggert  <eggert@twinsun.com>
38054
38055         * lib/Makefile.am (libfetish_a_SOURCES):
38056         Add dup-safer.c, fopen-safer.c.
38057         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
38058
38059         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
38060         * lib/unistd-safer.h: New files.
38061
38062 2001-02-25  Paul Eggert  <eggert@twinsun.com>
38063
38064         The mkstemp replacement is taken from glibc 2.2.2, with some
38065         portability fixes for use outside glibc, as follows:
38066
38067         * lib/tempname.c (struct_stat64): New macro.
38068         (direxists, __gen_tempname): Use it.
38069         This avoids a portability problem with Solaris 8.
38070
38071         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
38072         (<stddef.h>, <stdint.h>, <string.h>):
38073         Include only if STDC_HEADERS || _LIBC.
38074         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
38075         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
38076         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
38077         (__set_errno): Define this macro if <errno.h> doesn't.
38078         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
38079         Define these macros if <stdio.h> doesn't.
38080         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
38081         Define these macros if <sys/stat.h>
38082         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
38083         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
38084         __xstat64): Define if not _LIBC.
38085         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
38086         (__gen_tempname): Invoke gettimeofday only if
38087         HAVE_GETTIMEOFDAY || _LIBC;
38088         otherwise, fall back on plain "time".
38089         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
38090
38091         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
38092
38093         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
38094
38095 2001-02-18  Paul Eggert  <eggert@twinsun.com>
38096
38097         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
38098
38099 2001-02-17  Paul Eggert  <eggert@twinsun.com>
38100
38101         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
38102         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
38103         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
38104         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
38105
38106 2001-02-17  Paul Eggert  <eggert@twinsun.com>
38107
38108         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
38109         Remove workaround macros for hosts that have mbrtowc but not
38110         mbstate_t, as we now insist on proper declarations for both
38111         before using mbrtowc.
38112
38113 2001-02-17  Jim Meyering  <meyering@lucent.com>
38114
38115         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
38116         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
38117         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
38118         UnixWare 7.1.1.
38119
38120         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
38121         rather than AC_CACHE_VAL.
38122
38123 2001-02-17  Jim Meyering  <meyering@lucent.com>
38124
38125         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
38126         around included file name.
38127
38128         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
38129
38130         * lib/strftime.c: Update from GNU libc (the only changes were to
38131         comments).
38132
38133 2001-02-17  Jim Meyering  <meyering@lucent.com>
38134
38135         * lib/regex.c: Update from libc.
38136
38137 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
38138
38139         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
38140         clash.
38141
38142 2001-02-16  Paul Eggert  <eggert@twinsun.com>
38143
38144         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
38145         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
38146         Reported by Mark Hounschell via Paul Eggert.
38147
38148 2001-02-07  Jim Meyering  <meyering@lucent.com>
38149
38150         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
38151
38152 2001-02-05  Jim Meyering  <meyering@lucent.com>
38153
38154         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
38155         it includes the patch required for `large file' support with at least
38156         HP-UX's 10.20 /bin/cc.
38157
38158 2001-02-03  Jim Meyering  <meyering@lucent.com>
38159
38160         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
38161         AS_IF, now that it works once again (mysteriously).
38162         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
38163
38164 2001-01-30  Jim Meyering  <meyering@lucent.com>
38165
38166         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
38167         * m4/chown.m4: Rename conftestchown to conftest.chown.
38168         * m4/rename.m4: s/conftestdir/conftest.d1/ and
38169         s/conftestdir2/conftest.d2/.
38170         * m4/utimes.m4: s/conftestdata/conftest.data/
38171         Inspired by Pavel Roskin's change in autoconf.
38172
38173 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
38174
38175         * lib/config.charset: Update for FreeBSD 4.2.
38176
38177 2001-01-27  Jim Meyering  <meyering@lucent.com>
38178
38179         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
38180         a use of AS_IF.
38181         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
38182
38183 2001-01-26  Jim Meyering  <meyering@lucent.com>
38184
38185         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
38186         quotearg.c includes it.
38187
38188 2001-01-26  Jim Meyering  <meyering@lucent.com>
38189
38190         * lib/quotearg.c: Include stddef.h.
38191         * lib/quote.c: Include stddef.h.
38192         Reported by Axel Kittenberger.
38193
38194         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
38195         line in double quotes so that it evokes a better diagnostic.
38196         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
38197         Reported by Axel Kittenberger.
38198
38199 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
38200
38201         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
38202         as if it was a `charset'.
38203
38204 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
38205
38206         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
38207         has const.
38208
38209 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
38210
38211         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
38212         to avoid a warning.  Add back 'const' to inptr.
38213
38214 2001-01-20  Jim Meyering  <meyering@lucent.com>
38215
38216         Be sure that headers are checked before used in code compiled
38217         for the type checks.
38218         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
38219         In place of that, invoke jm_CHECK_ALL_TYPES.
38220         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
38221         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
38222         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
38223         The check for ssize_t was mistakenly run before the test for unistd.h.
38224
38225         The configure-time check for stdbool.h was missing.
38226         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
38227         (jm_PREREQ_HASH): New function.
38228
38229 2001-01-17  Jim Meyering  <meyering@lucent.com>
38230
38231         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
38232         for autoconf-2.49c.
38233         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
38234
38235 2001-01-16  Jim Meyering  <meyering@lucent.com>
38236
38237         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
38238         From Bruno Haible.
38239
38240 2001-01-14  Jim Meyering  <meyering@lucent.com>
38241
38242         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
38243         foo and bar.  Create conftestdir/ in the script, not in the C code.
38244         Remove directories in the script, not in the C code.
38245         Remove conftestdir{,2} before trying to create the directory.
38246         Make the entire configure script fail if the mkdir fails.
38247
38248 2001-01-14  Jim Meyering  <meyering@lucent.com>
38249
38250         * lib/rename.c: New file.  From Volker Borchert.
38251         Include stdlib.h, string.h or strings.h, and xalloc.h.
38252         Use strip_trailing_slashes rather than open-coding it.
38253
38254 2001-01-03  Paul Eggert  <eggert@twinsun.com>
38255
38256         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
38257
38258 2001-01-03  Jim Meyering  <meyering@lucent.com>
38259
38260         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
38261         of local `inptr' to avoid warning with some system declarations of
38262         iconv.
38263
38264 2001-01-02  Volker Borchert  <bt@teknon.de>
38265
38266         * m4/rename.m4: New file.
38267         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
38268
38269 2001-01-01  Jim Meyering  <meyering@lucent.com>
38270
38271         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
38272         even on systems with utmpx.h.  It's necessary for the declaration of
38273         utmp's ut_user member.  Reported by Andreas Jaeger.
38274
38275         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
38276         available. They are required for the declarations of getgrgid and
38277         getpwuid resp.
38278         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
38279         Reported by Andreas Jaeger.
38280
38281 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
38282
38283         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
38284         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
38285         so `make install' also works in VPATH builds.
38286
38287 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
38288
38289         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
38290         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
38291         can be used in subdirectories.
38292
38293 2000-12-29  Paul Eggert  <eggert@twinsun.com>
38294
38295         * lib/modechange.c: Do not assume that mode_t uses the
38296         traditional octal encoding.  E.g. "chmod 1 FOO" should set
38297         the other-execute bit of FOO even if S_IXOTH != 1.
38298
38299         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
38300         WOTH, XOTH, ALLM): New macros.
38301         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
38302          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
38303         Use them.
38304         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
38305         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
38306         (mode_compile):
38307         No need to use uintmax_t; unsigned long is long enough.
38308         Don't bother to get suffix since we don't use it.
38309
38310 2000-12-26  Jim Meyering  <meyering@lucent.com>
38311
38312         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
38313         better with autoheader.
38314
38315 2000-12-24  Jim Meyering  <meyering@lucent.com>
38316
38317         * lib/hash.c (is_prime): Return explicit boolean values.
38318         (hash_get_first): Return NULL to appease Irix5.6's 89.
38319         Reported by Nelson Beebe.
38320
38321 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
38322
38323         * lib/localcharset.c (locale_charset): Add support for Win32.
38324
38325 2000-12-18  Paul Eggert  <eggert@twinsun.com>
38326
38327         * lib/physmem.h, lib/physmem.c: New files.
38328
38329         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
38330         (noinst_HEADERS): Add physmem.h.
38331
38332         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
38333         't' for compatibility with Solaris 8 sort.
38334
38335 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
38336
38337         * lib/config.charset: Add support for BeOS.
38338
38339 2000-12-17  Jim Meyering  <meyering@lucent.com>
38340
38341         * m4/dos.m4 (jm_AC_DOS): New file and macro.
38342         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
38343
38344 2000-12-16  Jim Meyering  <meyering@lucent.com>
38345
38346         This bug had a serious impact on chown: `chown N:M FILE' (for integer
38347         N and M) would have treated it like `chown N:N FILE'.
38348
38349         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
38350
38351 2000-12-16  Jim Meyering  <meyering@lucent.com>
38352
38353         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
38354         SHELLS_FILE to a file name that's useful on djgpp systems.
38355         Include stdlib.h.
38356         (ADDITIONAL_DEFAULT_SHELLS): Define.
38357         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
38358         Based mostly on a patch from Prashant TR.
38359
38360 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
38361
38362         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
38363         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
38364         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
38365
38366 2000-12-08  Andreas Schwab  <schwab@suse.de>
38367
38368         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
38369         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
38370
38371 2000-12-07  Jim Meyering  <meyering@lucent.com>
38372
38373         * lib/stripslash.c (ISSLASH): Define.
38374         (strip_trailing_slashes): Use ISSLASH rather than comparing against
38375         `/'.
38376         From Prashant TR.
38377
38378         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
38379         (dir_name_r): Declare this function as static.
38380         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
38381         manifest itself on a name containing a mix of slashes and
38382         backslashes.
38383         Make this function work with names starting with a DOS-style
38384         drive letter and colon prefix.
38385         (dir_name): Append `.' if necessary.
38386         Based mostly on patches from Prashant TR and Eli Zaretskii.
38387
38388         * lib/dirname.h (dir_name_r): Remove prototype.
38389
38390 2000-12-06  Paul Eggert  <eggert@twinsun.com>
38391
38392         * m4/off_t-format.m4: Remove this file.
38393         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
38394
38395 2000-12-06  Jim Meyering  <meyering@lucent.com>
38396
38397         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
38398         replacement strtoull, we may well need the replacement strtoul, too.
38399         Check for declarations of strtoul and strtoull.
38400         Check for strtol.  Mainly as a cue to cause automake to include
38401         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
38402         Check for limits.h -- strtol.c needs it.
38403
38404 2000-12-05  Jim Meyering  <meyering@lucent.com>
38405
38406         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
38407
38408 2000-12-04  Jim Meyering  <meyering@lucent.com>
38409
38410         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
38411         Also include memory.h, stdlib.h, unistd.h if appropriate.
38412         Reported by Andreas Jaeger (conflicting declaration of malloc).
38413
38414 2000-12-02  Jim Meyering  <meyering@lucent.com>
38415
38416         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
38417         * m4/jm-macros.m4 (jm_MACROS): require it.
38418
38419 2000-12-02  Jim Meyering  <meyering@lucent.com>
38420
38421         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
38422
38423 2000-12-01  Paul Eggert  <eggert@twinsun.com>
38424
38425         * lib/memrchr.c: Include <config.h> before any system include file.
38426
38427 2000-11-30  Jim Meyering  <meyering@lucent.com>
38428
38429         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
38430
38431 2000-11-30  Jim Meyering  <meyering@lucent.com>
38432
38433         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
38434
38435 2000-11-29  Paul Eggert  <eggert@twinsun.com>
38436
38437         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
38438
38439 2000-11-26  Jim Meyering  <meyering@lucent.com>
38440
38441         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
38442
38443 2000-11-22  Paul Eggert  <eggert@twinsun.com>
38444
38445         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
38446         size of (size_t) -1; it's not portable.
38447
38448 2000-11-17  Jim Meyering  <meyering@lucent.com>
38449
38450         * lib/strstr.c: Update from GNU libc.
38451
38452 2000-11-17  Akim Demaille  <akim@epita.fr>
38453
38454         * lib/obstack.h: Formatting changes.
38455         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
38456         prevent type checking.
38457         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
38458         cast the value to (void *): assigning a `foo *' to a `void *'
38459         variable is valid.
38460         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
38461
38462 2000-11-16  Jim Meyering  <meyering@lucent.com>
38463
38464         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
38465
38466 2000-11-11  Jim Meyering  <meyering@lucent.com>
38467
38468         * lib/error.c: Add a couple #includes, merging from GNU libc version.
38469
38470 2000-11-10  Jim Meyering  <meyering@lucent.com>
38471
38472         * lib/obstack.h: Update from GNU libc.
38473         * lib/obstack.c: Likewise.
38474
38475 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
38476
38477         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
38478
38479 2000-11-06  Paul Eggert  <eggert@twinsun.com>
38480
38481         * lib/getusershell.c (setusershell): Use rewind rather than
38482         fseek/fseeko, to avoid configuration hassles with fseeko.
38483         Don't bother opening SHELLS_FILE if shellstream is NULL;
38484         it's not necessary.
38485
38486 2000-11-05  Jim Meyering  <meyering@lucent.com>
38487
38488         * lib/makepath.h (make_dir): Declare.
38489         * lib/makepath.c (make_dir): Remove `static' attribute.
38490         Tweak a comment.
38491
38492 2000-11-04  Jim Meyering  <meyering@lucent.com>
38493
38494         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
38495
38496 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
38497
38498         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
38499         last one in a bucket, advance to the next bucket.
38500
38501 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
38502
38503         * lib/fnmatch.c: Do not comment out all the code if we are using
38504         the GNU C library, because in some cases we are replacing buggy
38505         code in the GNU C library itself.
38506
38507 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
38508
38509         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
38510         (regex_compile): Catch bogus \(\1\).
38511
38512 2000-10-30  Paul Eggert  <eggert@twinsun.com>
38513
38514         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
38515         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
38516         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
38517
38518 2000-10-30  Paul Eggert  <eggert@twinsun.com>
38519
38520         * lib/error.h, getline.h, modechange.h:
38521         Remove "2000" from Copyright line, as the file hasn't been
38522         changed this year other than in the copyright notice.
38523
38524         * lib/xalloc.h: Add "2000" to Copyright line, as this file
38525         was changed this year.
38526
38527 2000-10-29  Jim Meyering  <meyering@lucent.com>
38528
38529         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
38530         renaming.
38531         * m4/ls-mntd-fs.m4: Likewise
38532
38533 2000-10-29  Jim Meyering  <meyering@lucent.com>
38534
38535         * lib/xstat.in: Fix grammar in comment.
38536
38537 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
38538
38539         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
38540         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
38541         doesn't define __restrict_arr.
38542
38543 2000-10-28  Jim Meyering  <meyering@lucent.com>
38544
38545         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
38546         (jm_PREREQ_MEMCHR): New function.
38547
38548 2000-10-28  Jim Meyering  <meyering@lucent.com>
38549
38550         * lib/memchr.c: Update from libc.
38551         Adjust for portability:
38552         [HAVE_STDLIB_H]: Include stdlib.h.
38553         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
38554         Undef __memchr, too.
38555         [!weak_alias]: Define __memchr to memchr.
38556
38557         * lib/regex.c: Update from libc.
38558         * lib/regex.h: Likewise.
38559         * lib/getopt1.c: Likewise.
38560         * lib/memcmp.c: Likewise.
38561
38562         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
38563         Avoid using fseek, when possible -- it's broken by design.
38564         Patch by Ulrich Drepper.
38565
38566 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
38567
38568         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
38569         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
38570         Giving in to popular pressure to shut up the compiler with casts.
38571
38572 2000-10-26  Jim Meyering  <meyering@lucent.com>
38573
38574         * lib/strftime.c: Update from libc.
38575
38576 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
38577
38578         * regex.c: More `unsigned char' -> `re_char' changes.
38579         Also change several `int' into `re_wchar_t'.
38580         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
38581         (PUSH_FAILURE_POINTER): Don't cast any more.
38582         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
38583         We want GCC to complain, since this piece of code makes
38584         re_match non-reentrant, which *should* be fixed.
38585         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
38586         (EXTEND_BUFFER): Use RETALLOC.
38587         (SET_LIST_BIT): Don't cast.
38588         (re_wchar_t): New type.
38589         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
38590         that those two functions will always properly return.
38591         (IMMEDIATE_QUIT_CHECK): Cast to void.
38592         (analyse_first): Use recursion rather than an explicit stack.
38593         (re_compile_fastmap): Can't fail anymore.
38594         (re_search_2): Don't check re_compile_fastmap for failure.
38595         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
38596         Now also sets the new value (passed in a new argument).
38597         (re_match_2_internal): Use it.
38598         Also, use a new var `reg' of type size_t when looping through regs
38599         rather than reuse the inappropriate `mcnt'.
38600
38601 2000-10-25  Jim Meyering  <meyering@lucent.com>
38602
38603         * lib/obstack.c: Update from libc.
38604
38605 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
38606
38607         * regex.c (regex_compile): Change the way of handling a range from
38608         a char less than 256 to a char not less than 256.
38609
38610 2000-10-24  Andrew Innes  <andrewi@gnu.org>
38611
38612         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
38613         NT-Emacs only.
38614         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
38615         so that re_search functions only quit when callers expect them to.
38616
38617 2000-10-23  Jim Meyering  <meyering@lucent.com>
38618
38619         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
38620         wrong.  That set_locale call must not have any side effects.
38621         From Paul Eggert.
38622
38623 2000-10-22  Jim Meyering  <meyering@lucent.com>
38624
38625         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
38626         [CYCLIC]: Remove now-unused definition.
38627
38628         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
38629         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
38630         Suggestion from Ulrich Drepper.
38631
38632 2000-10-21  Jim Meyering  <meyering@lucent.com>
38633
38634         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
38635         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
38636         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
38637
38638 2000-10-21  Jim Meyering  <meyering@lucent.com>
38639
38640         * lib/dirname.c (memrchr): Declare if necessary.
38641         (dir_name): Remove the restriction that there be no
38642         trailing slashes.  Now, this code skips past them, effectively
38643         ignoring them.
38644         [TEST_DIRNAME] (main): New unit tests.
38645
38646         * lib/memrchr.c: New file from GNU libc.
38647         Undef __memrchr, too.
38648         [!weak_alias]: Define __memrchr to memrchr.
38649         Guard weak_alias use with `#ifdef weak_alias'.
38650
38651 2000-10-21  Jim Meyering  <meyering@lucent.com>
38652
38653         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
38654         (dir_name): Use dir_name_r.
38655         * lib/dirname.h (dir_name_r): Declare it.
38656
38657 2000-10-17  Jim Meyering  <meyering@lucent.com>
38658
38659         * lib/quote.h (PARAMS): Define and use.
38660         Reported by Akim Demaille.
38661
38662         * lib/getopt.c: Update from libc.
38663
38664 2000-10-16  Jim Meyering  <meyering@lucent.com>
38665
38666         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
38667         setlocale.
38668         From Jan Fedak.
38669
38670 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
38671
38672         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
38673
38674 2000-09-25  Jim Meyering  <meyering@lucent.com>
38675
38676         * lib/md5.h (rol): Define (from GnuPG).
38677
38678         * lib/sha.c: Give credit (GnuPG) where due.
38679         (M): Use rol rather than open-coding it.
38680         Add a FIXME comment.
38681
38682 2000-09-21  Jim Meyering  <meyering@lucent.com>
38683
38684         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
38685         Reported by Michael Stone.
38686
38687 2000-09-20  Jim Meyering  <meyering@lucent.com>
38688
38689         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
38690         (noinst_HEADERS): Add sha.h.
38691         Based on code from Scott G. Miller and from GnuPG.
38692
38693 2000-09-18  Jim Meyering  <meyering@lucent.com>
38694
38695         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
38696         LIBS. Otherwise, everyone ends up linking with -lelf for some
38697         configurations.
38698         Reported by Mike Stone.
38699
38700 2000-09-15  Jim Meyering  <meyering@lucent.com>
38701
38702         * lib/regex.c: Update from libc.
38703
38704 2000-09-10  Jim Meyering  <meyering@lucent.com>
38705
38706         * lib/getopt.c (_getopt_internal): Update from glibc.
38707
38708 2000-09-09  Jim Meyering  <meyering@lucent.com>
38709
38710         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
38711         think it should be used as a general replacement for isascii.
38712         * lib/fnmatch.c: Likewise.
38713         * lib/mbswidth.c: Likewise
38714         * lib/regex.c: Likewise.
38715
38716         Don't use atoi.
38717         * lib/userspec.c: Include sys/param.h and limits.h.
38718         Include xstrtol.h.
38719         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
38720         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
38721         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
38722         UID, GID.  Check range.
38723
38724 2000-09-06  Jim Meyering  <meyering@lucent.com>
38725
38726         * lib/getopt.c (_getopt_internal): Update from glibc.
38727
38728 2000-08-30  Jim Meyering  <meyering@lucent.com>
38729
38730         * lib/strftime.c: Merge in changes from GNU libc.
38731
38732 2000-08-26  Jim Meyering  <meyering@lucent.com>
38733
38734         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
38735         * m4/fpending.m4: New file.
38736
38737 2000-08-26  Jim Meyering  <meyering@lucent.com>
38738
38739         * lib/closeout.c: Include "__fpending.h".
38740         (close_stdout_status): Return right away if there's nothing to flush.
38741
38742         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
38743         * lib/__fpending.c: New file.
38744         * lib/__fpending.h: New file.
38745
38746 2000-08-20  Jim Meyering  <meyering@lucent.com>
38747
38748         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
38749         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
38750         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
38751
38752 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
38753
38754         Improve fileutils installation on systems where running
38755         programs (like install) can't be unlinked.
38756         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
38757         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
38758
38759 2000-08-07  Paul Eggert  <eggert@twinsun.com>
38760
38761         Standardize on "memory exhausted" instead of "Memory exhausted"
38762         or "virtual memory exhausted".
38763         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
38764         "virtual memory exhausted".
38765         * lib/same.c (same_name): Invoke xalloc_die instead of printing
38766         our own message.
38767         * lib/userspec.c (parse_user_spec): Likewise.
38768         * lib/bumpalloc.h: comment fix
38769         * lib/same.c, userspec.c: Include xalloc.h.
38770
38771         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
38772         not char *const and pointing to a constant array.
38773         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
38774         (xrealloc): Comment fix.
38775
38776         * lib/userspec.c (parse_user_spec):
38777         Don't translate a message until just before returning,
38778         to avoid unnecessary translation.
38779
38780 2000-08-07  Jim Meyering  <meyering@lucent.com>
38781
38782         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
38783         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
38784         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
38785         getgroups.c, gethostname.c, getopt.h, group-member.c,
38786         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
38787         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
38788         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
38789         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
38790         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
38791         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
38792         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
38793         yesno.c: Back out Copyright date changes for each file with no change
38794         this year.  This eases coordination with other programs using the same
38795         source code modules.  From Paul Eggert.
38796
38797 2000-08-06  Paul Eggert  <eggert@twinsun.com>
38798
38799         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
38800         not char, for compatibility with glibc 2.1.3 strftime.c.
38801
38802 2000-08-03  Greg McGary  <greg@mcgary.org>
38803
38804         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
38805         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
38806         (EXTEND_BUFFER): Use them.
38807
38808 2000-08-01  Jim Meyering  <meyering@lucent.com>
38809
38810         * lib/dirname.c (ISSLASH): Define.
38811         (BACKSLASH_IS_PATH_SEPARATOR): Define.
38812         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
38813         both `\' and `/' may be use as path separators.
38814         Based on a patch from Prashant TR.
38815
38816 2000-07-31  Paul Eggert  <eggert@twinsun.com>
38817
38818         * lib/quotearg.c (quotearg_n_options): Don't make the initial
38819         slot vector a constant, since it might get modified.
38820
38821 2000-07-31  Jim Meyering  <meyering@lucent.com>
38822
38823         * lib/xmalloc.c: Use `virtual memory exhausted', not
38824         `Memory exhausted'.
38825         * lib/obstack.c (print_and_abort): Likewise.
38826
38827 2000-07-30  Paul Eggert  <eggert@twinsun.com>
38828
38829         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
38830         buffer, so that the caller can always quote one small
38831         component of a "memory exhausted" message in slot 0.
38832         From a suggestion by Jim Meyering.
38833
38834 2000-07-30  Jim Meyering  <meyering@lucent.com>
38835
38836         * lib/makepath.c (make_path): Quote the other instance, too.
38837
38838         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
38839         (STATIC_BUF_SIZE): Define.
38840         (quotearg_n_options): Use only statically allocated storage when
38841         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
38842         than STATIC_BUF_SIZE.
38843
38844 2000-07-29  Jim Meyering  <meyering@lucent.com>
38845
38846         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
38847         * lib/dirname.c (dir_name): Likewise.
38848
38849         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
38850         `/'.
38851
38852         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
38853         (dir_name): Assert that there are no trailing slashes.
38854
38855 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
38856
38857         * lib/mbswidth.h (mbswidth): Add a flags argument.
38858         (mbswidth): New declaration.
38859         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
38860         * lib/mbswidth.c (mbswidth): Add a flags argument.
38861         (mbsnwidth): New function.
38862
38863 2000-07-24  Jim Meyering  <meyering@lucent.com>
38864
38865         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
38866
38867 2000-07-23  Paul Eggert  <eggert@twinsun.com>
38868
38869         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
38870
38871 2000-07-23  Paul Eggert  <eggert@twinsun.com>
38872
38873         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
38874         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
38875         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
38876         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
38877         invoke multibyte primitives.
38878
38879 2000-07-23  Paul Eggert  <eggert@twinsun.com>
38880
38881         * lib/quotearg.c:
38882         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
38883         so that mbstate_t is always defined.
38884
38885         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
38886         be 1 in at least one GCC installation, and this configuration
38887         error is likely to be common.  Ignoring MB_LEN_MAX hurts
38888         performance on hosts that have mbrtowc but have only unibyte
38889         locales, but I assume these hosts are rare.
38890
38891 2000-07-23  Paul Eggert  <eggert@twinsun.com>
38892
38893         * lib/mbswidth.c (_XOPEN_SOURCE):
38894         Don't define; this causes problems on Solaris 7.
38895         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
38896
38897 2000-07-23  Jim Meyering  <meyering@lucent.com>
38898
38899         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
38900         too: getgrgid, getpwuid, getuid.
38901
38902 2000-07-23  Jim Meyering  <meyering@lucent.com>
38903
38904         * lib/basename.c (base_name): Add an assertion.
38905
38906 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
38907
38908         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
38909         shadow its mbsinit function.
38910
38911 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
38912
38913         * lib/mbswidth.h: New file.
38914         * lib/mbswidth.c: New file.
38915         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
38916         (noinst_HEADERS): Add mbswidth.h.
38917
38918 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
38919
38920         * lib/config.charset: Add support for FreeBSD. Improve support for
38921         HP-UX and IRIX 6.
38922
38923 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
38924
38925         * m4/mbswidth.m4: New file.
38926         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
38927
38928 2000-07-15  Jim Meyering  <meyering@lucent.com>
38929
38930         * lib/makepath.c: Include quote.h.
38931         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
38932         corresponding argument in a `quote (...)' call.
38933         Give better diagnostics.
38934
38935         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
38936         (noinst_HEADERS): Add quote.h.
38937
38938         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
38939         from tar's src/misc.c.
38940         * lib/quote.h: New file.  Prototypes for same.
38941
38942 2000-07-14  Paul Eggert  <eggert@twinsun.com>
38943
38944         From a suggestion by Bruno Haible.
38945         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
38946         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
38947         to decide whether to define the BeOS workaround macro;
38948         this adjusts to the change to AC_MBSTATE_T.
38949
38950 2000-07-14  Jim Meyering  <meyering@lucent.com>
38951
38952         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
38953         jm_AC_TYPE_UINTMAX_T.
38954
38955 2000-07-13  Paul Eggert  <eggert@twinsun.com>
38956
38957         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
38958
38959         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
38960         quotearg_buffer_restyled): Add support for
38961         clocale_quoting_style.  Undo previous change to
38962         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
38963         and "{RIGHT QUOTATION MARK}" msgids.
38964
38965 2000-07-10  Paul Eggert  <eggert@twinsun.com>
38966
38967         From a suggestion by Bruno Haible.
38968         * m4/mbstate_t.m4 (AC_MBSTATE_T):
38969         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
38970         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
38971         and mbstate_t, to a single-part test that simply defines mbstate_t.
38972         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
38973         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
38974
38975 2000-07-10  Jim Meyering  <meyering@lucent.com>
38976
38977         * m4/strerror_r.m4: Mirror the correction made in autoconf.
38978
38979         * m4/gnu-source.m4: Output to confdefs.h directly.
38980         Suggestion from Akim Demaille.
38981
38982 2000-07-09  Paul Eggert  <eggert@twinsun.com>
38983
38984         The old behavior of quoting `like this' doesn't look good with
38985         newer, ISO-style fonts.  See:
38986         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
38987
38988         Instead, quote "like this" by default.  Let the translator
38989         tailor the locale-specific quoting behavior by providing
38990         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
38991
38992         * lib/quotearg.c (N_): New macro.
38993         (gettext_default): New function.
38994         (quotearg_buffer_restyled): Use
38995         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
38996         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
38997
38998 2000-07-09  Jim Meyering  <meyering@lucent.com>
38999
39000         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
39001         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
39002
39003         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
39004         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
39005
39006 2000-07-09  Jim Meyering  <meyering@lucent.com>
39007
39008         * lib/Most files: Update copyright dates to include 2000.
39009
39010 2000-07-08  Jim Meyering  <meyering@lucent.com>
39011
39012         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
39013         if not defined.
39014         (xgethostname): Remove now-unnecessary #ifdef.
39015         Move declaration of `err' into loop where it's used.
39016
39017 2000-07-05  Paul Eggert  <eggert@twinsun.com>
39018         and Bruno Haible  <haible@clisp.cons.org>
39019
39020         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
39021         only if the test for an object-type mbstate_t fails.  This
39022         prevents us from mistakenly reporting that mbstate_t is a
39023         system object type after we "#define mbstate_t int" to work
39024         around its lack.
39025
39026 2000-07-05  Paul Eggert  <eggert@twinsun.com>
39027         and Bruno Haible  <haible@clisp.cons.org>
39028
39029         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
39030
39031 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
39032
39033         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
39034         to strerror_r.
39035         Include <ctype.h> for use of isalpha.
39036
39037 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
39038
39039         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
39040         by allocating a larger buffer. Test the gethostname return value for
39041         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
39042         returns an error and ENAMETOOLONG isn't defined.
39043
39044 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
39045
39046         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
39047         dimension.
39048
39049 2000-07-04  Jim Meyering  <meyering@lucent.com>
39050
39051         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
39052         of the deprecated AC_CHECKING.
39053
39054 2000-07-04  Jim Meyering  <meyering@lucent.com>
39055
39056         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
39057         Reported by Bruno Haible.
39058
39059 2000-07-04  Jim Meyering  <meyering@lucent.com>
39060
39061         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
39062         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
39063         lacks mbrtowc.
39064
39065 2000-07-03  Paul Eggert  <eggert@twinsun.com>
39066
39067         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
39068         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
39069
39070 2000-07-03  Paul Eggert  <eggert@twinsun.com>
39071         and Bruno Haible  <haible@clisp.cons.org>
39072
39073         * lib/quotearg.c (mbrtowc):
39074         Assign to *pwc, and return 1 only if result is nonzero.
39075         (iswprint): Use ISPRINT when substituting our own mbrtowc.
39076
39077 2000-07-03  Jim Meyering  <meyering@lucent.com>
39078
39079         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
39080
39081 2000-07-03  Jim Meyering  <meyering@lucent.com>
39082
39083         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
39084         This is necessary to get a definition of e.g., UTMP_FILE on
39085         HP-UX 10.20.
39086         From Bob Proulx.
39087
39088 2000-07-02  Jim Meyering  <meyering@lucent.com>
39089
39090         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
39091
39092         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
39093         AC_LIBOBJ(function_name).
39094         * m4/chown.m4: Likewise.
39095         * m4/fnmatch.m4: Likewise.
39096         * m4/ftruncate.m4: Likewise.
39097         * m4/getgroups.m4: Likewise.
39098         * m4/getline.m4: Likewise.
39099         * m4/group-member.m4: Likewise.
39100         * m4/jm-macros.m4: Likewise.
39101         * m4/lstat.m4: Likewise.
39102         * m4/malloc.m4: Likewise.
39103         * m4/memcmp.m4: Likewise.
39104         * m4/nanosleep.m4: Likewise.
39105         * m4/putenv.m4: Likewise.
39106         * m4/realloc.m4: Likewise.
39107         * m4/regex.m4: Likewise.
39108         * m4/stat.m4: Likewise.
39109         * m4/strftime.m4: Likewise.
39110
39111 2000-07-02  Jim Meyering  <meyering@lucent.com>
39112
39113         * lib/quotearg.c (mbstate_t): Don't define here.
39114
39115 2000-07-02  Jim Meyering  <meyering@lucent.com>
39116
39117         * lib/nanosleep.c (SIGCONT): Define if not already defined.
39118
39119 2000-07-01  Jim Meyering  <meyering@lucent.com>
39120
39121         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
39122
39123 2000-07-01  Jim Meyering  <meyering@lucent.com>
39124
39125         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
39126         problem.
39127
39128 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
39129
39130         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
39131         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
39132
39133 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
39134
39135         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
39136         per change in ../m4/ls-mntd-fs.m4.
39137         (read_filesystem_list): Ignore symbolic links.
39138
39139 2000-06-29  Jim Meyering  <meyering@lucent.com>
39140
39141         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
39142         for declaration of strcmp.
39143
39144         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
39145
39146         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
39147         Avoid warning by casting result to `char *' to remove `const'.
39148
39149 2000-06-28  Jim Meyering  <meyering@lucent.com>
39150
39151         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
39152         included by quotearg.c, for which we perform this test.  From
39153         Bruno Haible.
39154
39155 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
39156
39157         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
39158         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
39159         <utmpx.h> exists, put readutmp.o into LIBOBJS.
39160
39161 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
39162
39163         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
39164
39165 2000-06-26  Paul Eggert  <eggert@twinsun.com>
39166
39167         savedir now sets errno on failure and invokes xmalloc to get memory.
39168         Fix a couple of other minor bugs while we're at it.
39169
39170         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
39171         (NAMLEN): Remove macro.
39172         (malloc, realloc): Remove decls.
39173         (stpcpy): Likewise.
39174         ("xalloc.h"): Include.
39175         (NAME_SIZE_DEFAULT): New macro.
39176         (savedir): Use xmalloc / xrealloc to allocate memory.
39177         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
39178         Skip "" directory entries.
39179         Use strlen to calculate directory entry length, since the old method
39180         is rarely used these days and isn't worth supporting.
39181         Don't use a pointer after freeing it.
39182         Check for integer overflow when calculating allocation size.
39183         Use memcpy to copy entries, instead of stpcpy.
39184         Set errno properly when returning NULL.
39185         Check for readdir error.
39186
39187 2000-06-26  Jim Meyering  <meyering@lucent.com>
39188
39189         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
39190
39191 2000-06-25  Jim Meyering  <meyering@lucent.com>
39192
39193         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
39194         Linux header bug when _XOPEN_SOURCE is defined to 500.
39195
39196 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
39197
39198         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
39199         deficiency.
39200
39201 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
39202
39203         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
39204         Include xalloc.h.
39205         Don't include <stdlib.h>.  Don't declare malloc, realloc.
39206
39207 2000-06-24  Jim Meyering  <meyering@lucent.com>
39208
39209         * m4/strerror_r.m4: Revive this file -- to try out an experimental
39210         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
39211         for which strerror does return char*, but which lacks a conveniently
39212         accessible declaration of the function.  If the compile-test says
39213         strerror_r doesn't work, then resort to a `run'-test that works on
39214         BeOS and segfaults on DEC Unix.
39215
39216 2000-06-24  Jim Meyering  <meyering@lucent.com>
39217
39218         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
39219
39220 2000-06-23  Paul Eggert  <eggert@twinsun.com>
39221
39222         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
39223         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
39224
39225 2000-06-23  Paul Eggert  <eggert@twinsun.com>
39226
39227         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
39228         (mbrtowc, mbstate_t): Define substitutes if
39229         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
39230         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
39231         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
39232
39233 2000-06-23  Jim Meyering  <meyering@lucent.com>
39234
39235         * m4/afs.m4: Add missing AC_MSG_RESULT.
39236         Reported by Bruno Haible.
39237
39238         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
39239         Suggestion from Bruno Haible.
39240
39241 2000-06-23  Jim Meyering  <meyering@lucent.com>
39242
39243         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
39244
39245 2000-06-21  Jim Meyering  <meyering@lucent.com>
39246
39247         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
39248
39249 2000-06-21  Jim Meyering  <meyering@lucent.com>
39250
39251         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
39252         (noinst_HEADERS): Add getstr.h.
39253
39254         * lib/getline.c (getstr): Move into a separate file.
39255         * lib/getstr.c (getstr): New file, extracted from getline.c, with
39256         the following changes: new parameter, delim2; both delim[12]
39257         parameters have type `int', not `char'.  The latter would lose
39258         with 8-bit delimiters.
39259         * lib/getstr.h: New file.
39260
39261 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
39262
39263         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
39264         than 1024, return a memory chunk of least possible size, instead
39265         of size PATH_MAX + 2. In the loop, increment the size proportionally.
39266         Use free/xmalloc instead of xrealloc to avoid copying for very long
39267         paths.
39268
39269 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
39270
39271         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
39272         the empty string.
39273
39274 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
39275
39276         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
39277         address, not strdup.  Include <stdlib.h> and don't declare free().
39278
39279 2000-06-19  Jim Meyering  <meyering@lucent.com>
39280
39281         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
39282
39283 2000-06-18  Jim Meyering  <meyering@lucent.com>
39284
39285         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
39286
39287         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
39288         `checking whether...' message to be consistent with that of the
39289         lstat test.
39290
39291 2000-06-18  Jim Meyering  <meyering@lucent.com>
39292
39293         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
39294         Besides, these days every porting target provides a mkdir function.
39295
39296         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
39297         needed. (this snippet comes from src/system.h).
39298
39299 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
39300
39301         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
39302
39303 2000-06-15  Paul Eggert  <eggert@twinsun.com>
39304
39305         * lib/human.c (adjust_value): New function.
39306         (human_readable_inexact): Apply rounding style even when
39307         printing approximate values.
39308
39309 2000-06-14  Paul Eggert  <eggert@twinsun.com>
39310
39311         * lib/human.c (human_readable_inexact): Allow an input block
39312         size that is not a multiple of the output block size, and vice versa.
39313         Reported by Piergiorgio Sartor.
39314
39315 2000-06-14  Paul Eggert  <eggert@twinsun.com>
39316
39317         * lib/getdate.y (get_date): Apply relative times after time
39318         zone indicator, not before.  Reported by Todd A. Jacobs.
39319
39320 2000-06-13  Jim Meyering  <meyering@lucent.com>
39321
39322         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
39323
39324         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
39325
39326 2000-06-12  Paul Eggert  <eggert@twinsun.com>
39327
39328         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
39329
39330 2000-06-12  Jim Meyering  <meyering@lucent.com>
39331
39332         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
39333         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
39334         optional argument.
39335         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
39336         the optional argument, `lib'.
39337
39338 2000-06-08  Jim Meyering  <meyering@lucent.com>
39339
39340         * m4/largefile.m4: Remove file (now that it's part of autoconf).
39341
39342 2000-06-04  Paul Eggert  <eggert@twinsun.com>
39343
39344         Rewrite largefile configuration so that we don't need to run
39345         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
39346         AC_CANONICAL_HOST in configure.in -- jmm]
39347
39348         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
39349         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
39350         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
39351         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
39352         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
39353         All uses changed.
39354         Instead of inspecting the output of getconf, try to compile the
39355         test program without and with the macro definition.
39356         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
39357         for getconf.  Instead, check for the needed flags by compiling
39358         test programs.
39359
39360 2000-06-04  Paul Eggert  <eggert@twinsun.com>
39361
39362         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
39363
39364 2000-06-04  Jim Meyering  <meyering@lucent.com>
39365
39366         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
39367         SunOS 4.1.4 for which gid_t is an unsigned type.
39368
39369 2000-06-03  Jim Meyering  <meyering@lucent.com>
39370
39371         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
39372         now that autoconf requires that.
39373
39374         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
39375         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
39376         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
39377
39378 2000-06-03  Jim Meyering  <meyering@lucent.com>
39379
39380         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
39381
39382 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
39383
39384         * m4/glibc21.m4: New file.
39385         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
39386
39387 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
39388
39389         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
39390         newer, don't install charset.alias.
39391         * lib/config.charset: Change the Linux/glibc rules so they become empty
39392         on glibc-2.1 or newer.
39393
39394 2000-06-02  Jim Meyering  <meyering@lucent.com>
39395
39396         * lib/mountlist.c: Back out last change.  Instead, do this...
39397         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
39398         me_dummy member using the same `ignore'-testing code.
39399         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
39400         fs_type strings.
39401         From Mark D. Roth.
39402
39403 2000-05-29  Jim Meyering  <meyering@lucent.com>
39404
39405         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
39406         mounts with the `ignore' attribute.  Based on a patch from
39407         Mark D. Roth.
39408
39409 2000-05-28  Jim Meyering  <meyering@lucent.com>
39410
39411         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
39412         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39413         * m4/stat.m4: Likewise.
39414         * m4/lstat.m4: Likewise.
39415         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
39416
39417         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
39418         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
39419
39420 2000-05-26  Jim Meyering  <meyering@lucent.com>
39421
39422         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
39423
39424 2000-05-24  Jim Meyering  <meyering@lucent.com>
39425
39426         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
39427         autoconf requires that.
39428         * m4/lib-check.m4: Likewise.
39429         * m4/jm-macros.m4: Likewise.
39430         * m4/strftime.m4: Likewise.
39431
39432         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
39433         AC_CHECK_DECLS, now that autoconf requires that.
39434
39435 2000-05-22  Jim Meyering  <meyering@lucent.com>
39436
39437         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39438         * m4/lstat.m4: Likewise.
39439
39440 2000-05-22  Jim Meyering  <meyering@lucent.com>
39441
39442         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
39443
39444 2000-05-20  Jim Meyering  <meyering@lucent.com>
39445
39446         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
39447         (jm_PREREQ): Use it.
39448
39449 2000-05-18  Jim Meyering  <meyering@lucent.com>
39450
39451         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
39452         back, too, since it may have been modified by allocate_entry.
39453         (hash_delete): Rewrite to use neither the assignment operator
39454         nor the comma operator in an if-expression.
39455
39456 2000-05-15  Paul Eggert  <eggert@twinsun.com>
39457
39458         * lib/closeout.c:
39459         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
39460         Remove; no longer needed.
39461         "quotearg.h": Add include.
39462         (file_name): Do not bother to explicitly initialize to NULL; it's less
39463         efficient on some hosts.
39464         (close_stdout_status): Remove test as to whether stdout was already
39465         closed; it breaks for the case "echo x | sort >&-".
39466         Quote file name colons.
39467         Do not assume that _("write error") lacks format strings.
39468
39469 2000-05-15  Jim Meyering  <meyering@lucent.com>
39470
39471         * lib/version-etc.c (version_etc_copyright): Update the copyright
39472         string used in all --version output.
39473
39474 2000-05-14  Jim Meyering  <meyering@lucent.com>
39475
39476         * lib/closeout.c (close_stdout_set_file_name): New function.
39477         (close_stdout_status): Use new file-scoped global.
39478         Return right away if fstat says the stdout file descriptor is invalid.
39479         * lib/closeout.h (close_stdout_set_file_name): Declare.
39480
39481 2000-05-10  Jim Meyering  <meyering@lucent.com>
39482
39483         * lib/closeout.c [default_exit_status]: New file-scoped variable.
39484         (close_stdout_set_status): New function.
39485         * lib/closeout.h (close_stdout_set_status): Declare.
39486
39487 2000-05-09  Jim Meyering  <meyering@lucent.com>
39488
39489         * m4/gettext.m4: Rename this...
39490         * m4/libintl.m4: ...to this.
39491
39492 2000-05-08  Jim Meyering  <meyering@lucent.com>
39493
39494         * lib/long-options.c: Don't include closeout.h.
39495         (parse_long_options): Don't call close_stdout for --version.
39496
39497 2000-05-06  Paul Eggert  <eggert@twinsun.com>
39498
39499         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
39500         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
39501         2.1.3 bug.  This avoids a clash when files like regex.c define
39502         _GNU_SOURCE.
39503
39504 2000-05-06  Jim Meyering  <meyering@lucent.com>
39505
39506         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
39507         (AC_REPLACE_FUNCS): Add strnlen.
39508
39509         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
39510         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
39511
39512         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
39513         AC_SEARCH_LIBS call for nanosleep.
39514         (LIB_NANOSLEEP): Set and AC_SUBST.
39515
39516 2000-05-06  Jim Meyering  <meyering@lucent.com>
39517
39518         * lib/strnlen.c: Undefine __strnlen and strnlen.
39519         [!weak_alias]: Define __strnlen to strnlen.
39520
39521         * lib/atexit.c: New file, from libiberty.
39522
39523 2000-05-06  Jim Meyering  <meyering@lucent.com>
39524
39525         * lib/closeout.c (close_stdout_status): Also check for errors on the
39526         stderr stream.
39527
39528 2000-05-05  Jim Meyering  <meyering@lucent.com>
39529
39530         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
39531         AC_SEARCH_LIBS call for clock_gettime.
39532         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
39533
39534         * m4/search-libs.m4: Update from autoconf.
39535
39536         su doesn't work on Solaris 2.6.
39537         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
39538         <shadow.h>.  Reported by Dragos Harabor.
39539
39540 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
39541
39542         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
39543         memcpy instead of xmalloc, xrealloc, path_concat.
39544         (locale_charset): Treat empty environment variables as absent.
39545         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
39546
39547 2000-05-04  Jim Meyering  <meyering@lucent.com>
39548
39549         * lib/getopt.c: Update from glibc.
39550         * lib/obstack.c: Likewise.
39551         * lib/obstack.h: Likewise.
39552         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
39553         file
39554
39555         * lib/regex.h: Likewise.
39556         * lib/strndup.c: Likewise.
39557         * lib/strnlen.c: New file, from glibc.
39558
39559 2000-05-03  Jim Meyering  <meyering@lucent.com>
39560
39561         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
39562
39563 2000-05-02  Paul Eggert  <eggert@twinsun.com>
39564
39565         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
39566         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
39567         compile-time test, rather than inspecting host and OS, to
39568         decide whether to define _LARGEFILE_SOURCE.
39569
39570 2000-05-01  Jim Meyering  <meyering@lucent.com>
39571
39572         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
39573
39574         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
39575         Based on a patch from Bruno Haible.
39576
39577 2000-05-01  Jim Meyering  <meyering@lucent.com>
39578
39579         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
39580
39581 2000-04-29  Jim Meyering  <meyering@lucent.com>
39582
39583         * lib/path-concat.c: Declare strdup only if it's not defined.
39584         * lib/canon-host.c: Likewise.
39585
39586 2000-04-28  Jim Meyering  <meyering@lucent.com>
39587
39588         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
39589         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
39590         is included first, then limits.h is included by locale.h by libintl.h.
39591         From John David Anglin.
39592
39593 2000-04-25  Jim Meyering  <meyering@lucent.com>
39594
39595         * lib/makepath.c (S_IRWXUGO): Define.
39596         (make_path): Always perform explicit chmod if MODE specifies any
39597         of the `special' permission bits.  Prompted by a bug report against
39598         install from Mate Wierdl and Joost van Baal.
39599
39600 2000-04-18  Jim Meyering  <meyering@lucent.com>
39601
39602         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
39603         (jm_PREREQ): Use it.
39604
39605 2000-04-18  Jim Meyering  <meyering@lucent.com>
39606
39607         * lib/README: New file.
39608
39609         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
39610         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
39611
39612 2000-04-17  Jim Meyering  <meyering@lucent.com>
39613
39614         Get it right :-)
39615         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
39616         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
39617         Suggestion from Akim Demaille.
39618
39619 2000-04-17  Jim Meyering  <meyering@lucent.com>
39620
39621         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
39622         the definition of it to rpl_strftime also defined-away the system's
39623         declaration.
39624
39625 2000-04-15  Jim Meyering  <meyering@lucent.com>
39626
39627         Use `C' to denote so-called `contiguous' files, the same way
39628         that tar does.
39629         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
39630         (ftypelet): Use S_ISCTG.
39631         From Michael Deutschmann.
39632
39633 2000-04-14  Jim Meyering  <meyering@lucent.com>
39634
39635         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
39636         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
39637         clobbered.
39638
39639 2000-04-14  Jim Meyering  <meyering@lucent.com>
39640
39641         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
39642
39643 2000-04-13  Jim Meyering  <meyering@lucent.com>
39644
39645         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
39646         AH_VERBATIM to insert required #ifndef into config.h.in.
39647         Suggestion from Akim Demaille.
39648
39649 2000-04-12  Jim Meyering  <meyering@lucent.com>
39650
39651         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
39652         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
39653         Christian Krackowizer.
39654
39655         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
39656         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
39657         (AC_SYS_LARGEFILE): Require.
39658         (AM_C_PROTOTYPES): Require.
39659
39660 2000-04-08  Jim Meyering  <meyering@lucent.com>
39661
39662         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
39663         names don't conflict.  Reported by Eli Zaretskii.
39664
39665 2000-04-07  Jim Meyering  <meyering@lucent.com>
39666
39667         * lib/putenv.c: Move inclusion of errno.h so it follows that of
39668         sys/types.h, to work around system header problems on AIX 3.2.5.
39669         From Bruno Haible.
39670
39671 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
39672
39673         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
39674         bug.  Deal with the different error behavior of Irix iconv.
39675
39676 2000-04-05  Paul Eggert  <eggert@twinsun.com>
39677
39678         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
39679         IRIX if the installer said otherwise.
39680
39681 2000-04-05  Jim Meyering  <meyering@lucent.com>
39682
39683         Portability tweaks required for ultrix4.3.
39684         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
39685         (jm_CHECK_DECLS): Add getutent to the list of functions.
39686         (_jm_DECL_HEADERS): Add utmpx.h.
39687         From John David Anglin.
39688
39689         * m4/strftime.m4: Back out the 2000-04-02 change.
39690         Instead of that change, simply undefine putenv in the test program.
39691
39692 2000-04-05  Jim Meyering  <meyering@lucent.com>
39693
39694         Portability tweaks required for ultrix4.3.
39695         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
39696         getutent.
39697         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
39698         * lib/canon-host.c: Declare strdup.
39699         * lib/path-concat.c: Likewise.
39700         From John David Anglin.
39701
39702 2000-04-04  Jim Meyering  <meyering@lucent.com>
39703
39704         Be more DOS 8.3-friendly.
39705         * lib/ref-add.sin: Renamed from ref-add.sed.in.
39706         * lib/ref-del.sin: Renamed from ref-del.sed.in.
39707         * lib/Makefile.am: Reflect renaming.
39708         Reported by Eli Zaretskii.
39709
39710         Use a temporary file name that won't clash with `charset.alias'
39711         in the DOS 8.3 name space.
39712         * lib/Makefile.am (charset_tmp): Define.
39713         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
39714         (uninstall-local): Likewise.
39715         Reported by Eli Zaretskii.
39716
39717 2000-04-03  Jim Meyering  <meyering@lucent.com>
39718
39719         * m4/gettext.m4: Fix typo in comment.
39720
39721         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
39722         textutils/configure.in).  Suggestion from Paul Eggert.
39723         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
39724
39725 2000-04-02  Paul Eggert  <eggert@twinsun.com>
39726
39727         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
39728         variable in the shell rather than using putenv, which isn't
39729         portable.  This avoids the configure-time inter-test dependency
39730         on the potentially-renamed putenv function.
39731
39732 2000-03-30  Paul Eggert  <eggert@twinsun.com>
39733
39734         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
39735         before checking struct stat.st_blksize, so that
39736         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
39737
39738 2000-03-29  Paul Eggert  <eggert@twinsun.com>
39739
39740         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
39741         since strftime.c uses HAVE_STRFTIME to decide whether to use
39742         the underlying strftime.
39743
39744 2000-03-29  Paul Eggert  <eggert@twinsun.com>
39745
39746         * lib/time/strftime.c (my_strftime): Make sure we call the system
39747         strftime, not ourselves, when invoking the underlying strftime.
39748
39749 2000-03-24  Jim Meyering  <meyering@lucent.com>
39750
39751         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
39752         (charset_alias): Define.
39753         (install-exec-local): Factor out common code.
39754         (uninstall-local): Split lines longer than 80.
39755         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
39756         (SUFFIXES): Define.
39757         (.sed.in.sed): New rule.  Don't redirect directly to $@.
39758         (CLEANFILES): Add ref-add.sed and ref-del.sed.
39759
39760 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
39761
39762         * lib/config.charset: Output a line containing "Packages using this
39763         file".
39764         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
39765         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
39766         ref-del.sed): New rules.
39767
39768 2000-03-17  Jim Meyering  <meyering@lucent.com>
39769
39770         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
39771         Otherwise, include <strings.h>
39772
39773 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
39774
39775         * lib/unicodeio.c (utf8_wctomb): New function.
39776         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
39777         format instead of in UCS-4 with platform dependent endianness.
39778
39779 2000-03-10  Jim Meyering  <meyering@lucent.com>
39780
39781         * m4/lib-check.m4: Look for getspnam in -lgen, too.
39782         From Marco Franzen.
39783
39784 2000-03-07  Paul Eggert  <eggert@twinsun.com>
39785
39786         * lib/savedir.c (savedir): Work even if directory size is
39787         negative; this can happen with some screwy NFS configurations.
39788
39789 2000-03-06  Jim Meyering  <meyering@lucent.com>
39790
39791         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
39792         if it's NULL (because we ran out of memory).  From Bruno Haible.
39793
39794 2000-03-05  Jim Meyering  <meyering@lucent.com>
39795
39796         * lib/localcharset.c ("path-concat.h"): Include.
39797         (get_charset_aliases): Use path_concat instead of ANSI string
39798         concatenation.
39799
39800         * lib/unicodeio.h (PARAMS): Define.
39801         Use it to guard prototype.
39802
39803 2000-03-04  Jim Meyering  <meyering@lucent.com>
39804
39805         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
39806         for lib/localcharset.c.
39807
39808 2000-03-04  Jim Meyering  <meyering@lucent.com>
39809
39810         * lib/Makefile.am (install-exec-local): Create $(libdir) before
39811         installing into it.
39812         (uninstall-local): Uncomment this rule so `make distcheck' works
39813         once again.
39814
39815         * lib/unicodeio.c (<errno.h>): Include it.
39816         (errno): Declare if not defined.
39817
39818         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
39819
39820         * lib/config.charset: New version, incorporating remarks from a linux
39821         i18n mailing list.  From Bruno Haible.
39822
39823 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
39824
39825         * m4/codeset.m4: New file.
39826         * m4/iconv.m4: New file.
39827         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
39828
39829 2000-03-03  Jim Meyering  <meyering@lucent.com>
39830
39831         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
39832
39833 2000-03-02  Jim Meyering  <meyering@lucent.com>
39834
39835         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
39836         the messages come out on separate lines.
39837
39838         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
39839         rather than jm_CHECK_DECLARATIONS.
39840         * m4/decl.m4: Remove now-unused file.
39841
39842         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
39843         geteuid.
39844
39845 2000-03-02  Jim Meyering  <meyering@lucent.com>
39846
39847         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
39848
39849 2000-03-01  Jim Meyering  <meyering@lucent.com>
39850
39851         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
39852         * lib/unicodeio.c: Likewise.
39853
39854 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
39855
39856         * lib/config.charset: New file.
39857         * lib/localcharset.c: New file.
39858         * lib/unicodeio.h, lib/unicodeio.c: New files.
39859         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
39860         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
39861         (noinst_HEADERS): Add unicodeio.h.
39862         (all-local, install-exec-local, charset.alias): New targets.
39863
39864 2000-02-28  Paul Eggert  <eggert@twinsun.com>
39865
39866         * lib/quotearg.c (ALERT_CHAR): New macro.
39867         (quotearg_buffer_restyled): Use it.
39868
39869 2000-02-27  Jim Meyering  <meyering@lucent.com>
39870
39871         * m4/check-decl.m4: Add getenv to the list.
39872
39873 2000-02-27  Jim Meyering  <meyering@lucent.com>
39874
39875         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
39876         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
39877
39878         * lib/backupfile.c: Guard inclusion of stdlib.h with
39879         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
39880         Declare malloc if needed.
39881
39882         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
39883         `#ifndef HAVE_DECL..'
39884         now that autoconf always defines the HAVE_DECL_ symbols.
39885         * lib/human.c: Likewise.
39886         * lib/same.c: Likewise.
39887         * lib/strtoumax.c: Likewise.
39888
39889         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
39890         declaration check was not run.
39891         * lib/hash.c: Likewise.
39892         * lib/human.c: Likewise.
39893         * lib/same.c: Likewise.
39894         * lib/strtoumax.c: Likewise.
39895
39896         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
39897         `.', then first look up the entire `.'-containing string as a login
39898         name.
39899
39900 2000-02-23  Jim Meyering  <meyering@lucent.com>
39901
39902         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
39903         in place of my hack.
39904
39905 2000-02-18  Paul Eggert  <eggert@twinsun.com>
39906
39907         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
39908         (textint): New typedef.
39909         (parser_control): Member year changed from int to textint.
39910         All uses changed.
39911         (YYSTYPE): Removed; replaced by %union with int and textint members.
39912         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
39913         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
39914         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
39915         (tSNUMBER, tUNUMBER): Now of type <textintval>.
39916         (date, number, to_year): Use width of number in digits, not its value,
39917         to determine whether it's a 2-digit year, or a 2-digit time.
39918         (yylex): Store number of digits of numeric tokens.
39919         Reported by John Kendall.
39920
39921         (parser_control): Changed from struct parser_control to typedef (for
39922         consistency).  All uses changed.
39923
39924         (tID): Removed; not used.
39925         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
39926
39927 2000-02-14  Paul Eggert  <eggert@twinsun.com>
39928
39929         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
39930         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
39931
39932 2000-02-12  Jim Meyering  <meyering@lucent.com>
39933
39934         * lib/userspec.c (ISDIGIT): Define it.
39935         (isdigit): Remove definition.
39936         (is_number): Use ISDIGIT, not isdigit.
39937         <libintl.h>: Include.
39938         (_ and N_): Define.
39939         (parse_user_spec): Mark translatable strings.
39940
39941 2000-02-10  Jim Meyering  <meyering@lucent.com>
39942
39943         With these changes, nanosleep.[ch] are finally enough like the other
39944         lib/* replacement files to compile on a few more losing systems.
39945
39946         * lib/nanosleep.h: Don't include config.h.
39947         Remove prototype from declaration of nanosleep.
39948         (PARAMS): Remove now-unneeded definition.
39949         * lib/nanosleep.c: #undef nanosleep.
39950         (rpl_nanosleep): Rename from nanosleep.
39951
39952 2000-02-10  Jim Meyering  <meyering@lucent.com>
39953
39954         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
39955         gnu_nanosleep to rpl_nanosleep.
39956
39957 2000-02-09  Jim Meyering  <meyering@lucent.com>
39958
39959         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
39960         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
39961
39962 2000-02-08  Akim Demaille  <akim@epita.fr>
39963
39964         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
39965         `[' and `]' and remove uses of `changequote'.
39966         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
39967         (AC_SYS_LARGEFILE): Likewise.
39968         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
39969         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
39970         of changequote.
39971         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
39972         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
39973         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
39974         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
39975
39976 2000-02-05  Jim Meyering  <meyering@lucent.com>
39977
39978         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
39979         Remove explicit use of AC_HEADER_TIME.  It is required by
39980         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
39981         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
39982         in autoconf whereby the expansion of the latter ended up preceding
39983         the expansion of its prerequisite, AC_HEADER_TIME.
39984         Reported by Volker Borchert.
39985
39986 2000-02-03  Jim Meyering  <meyering@lucent.com>
39987
39988         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
39989
39990 2000-02-03  Jim Meyering  <meyering@lucent.com>
39991
39992         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
39993         rather than with `#if HAVE_UTMPNAME'.
39994
39995 2000-02-02  Jim Meyering  <meyering@lucent.com>
39996
39997         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
39998         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
39999         Reported by Eli Zaretskii.
40000
40001 2000-02-01  Jim Meyering  <meyering@lucent.com>
40002
40003         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
40004
40005 2000-01-31  Jim Meyering  <meyering@lucent.com>
40006
40007         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
40008         functions.  Add the time.h and sys/time.h headers along with the
40009         AC_REQUIRE'ment of AC_HEADER_TIME.
40010
40011 2000-01-31  Jim Meyering  <meyering@lucent.com>
40012
40013         * lib/nanosleep.h (nanosleep): Guard declaration with
40014         `#if ! HAVE_DECL_NANOSLEEP'.
40015         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
40016         the declaration in that vendor's sys/timers.h.
40017         Reported by Christian Krackowizer.
40018
40019         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
40020         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
40021         (ISPRINT): Likewise.
40022         Reported by Tom Tromey.
40023
40024 2000-01-30  Jim Meyering  <meyering@lucent.com>
40025
40026         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
40027
40028         * m4/prereq.m4 (utmp_includes): Define.
40029         Check for ut_user and ut_name members in both struct utmpx
40030         and struct utmp.
40031
40032 2000-01-30  Jim Meyering  <meyering@lucent.com>
40033
40034         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
40035         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
40036         header files where only utmpx.ut_user is declared.
40037
40038         * lib/readutmp.h (UT_USER): Define.
40039
40040 2000-01-29  Jim Meyering  <meyering@lucent.com>
40041
40042         * m4/lib-check.m4: New file containing library-related checks from
40043         fileutils and sh-utils (textutils had none).
40044
40045 2000-01-28  Jim Meyering  <meyering@lucent.com>
40046
40047         * m4/perl.m4: Change format of warning message to look more like that
40048         from the missing script.  Suggestion from François Pinard.
40049
40050 2000-01-25  Jim Meyering  <meyering@lucent.com>
40051
40052         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
40053         well as time.h in the compile check.
40054         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
40055         Fix typo in cross-compiling case: s/yes/no/.
40056
40057 2000-01-23  Jim Meyering  <meyering@lucent.com>
40058
40059         * m4/jm-macros.m4: Move df-related tests here from
40060         fileutils/configure.in
40061
40062         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
40063         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
40064
40065         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
40066         s/space/ac_fsusage_space/.
40067         (jm_FILE_SYSTEM_USAGE): Take two parameters.
40068
40069         * m4/ftruncate.m4: New file (derived from part of
40070         fileutils/configure.in).
40071         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
40072         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
40073
40074         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
40075         AC_SUBST these here, rather than just in sh-util/configure.in, so
40076         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
40077         all the same.
40078         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
40079         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
40080         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
40081         (AC_SUBST(POW_LIBM)): Likewise.
40082         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
40083
40084 2000-01-23  Jim Meyering  <meyering@lucent.com>
40085
40086         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
40087         obstack.c.
40088
40089 2000-01-22  Jim Meyering  <meyering@lucent.com>
40090
40091         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
40092
40093         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
40094
40095         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
40096         configure.in
40097         (AC_CHECK_HEADERS): Likewise for sh-utils.
40098         (AC_CHECK_HEADERS): Likewise for textutils.
40099         Merge the three lists of headers.
40100
40101         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
40102         from fileutils' configure.in.
40103
40104         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
40105         code. Moved tests into their own function (_jm_DECL_HEADERS) in
40106         check-decl.m4.
40107
40108         * m4/check-decl.m4: Use #if rather than #ifdef.
40109         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
40110         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
40111         (_jm_DECL_HEADERS): Define new function.
40112         (jm_CHECK_DECLARATIONS): Require it.
40113
40114 2000-01-22  Jim Meyering  <meyering@lucent.com>
40115
40116         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
40117         [! HAVE_DECL_STRTOULL]: Declare strtoull.
40118         Required for some AIX systems.  Reported by Christian Krackowizer.
40119         [TESTING] (main): New function.
40120
40121         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
40122         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
40123         letters.
40124
40125         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
40126         iswprint.
40127
40128         * lib/strverscmp.c (ISDIGIT): Define.
40129         (strverscmp): Use ISDIGIT, not isdigit.
40130
40131 2000-01-19  Jim Meyering  <meyering@lucent.com>
40132
40133         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
40134         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
40135         defines `struct timespec' in <sys/time.h>
40136
40137         * m4/c-bs-a.m4: Remove uses of changequote altogether.
40138         Thanks to Akim for explaining.
40139
40140 2000-01-17  Paul Eggert  <eggert@twinsun.com>
40141
40142         * lib/nanosleep.c (nanosleep):
40143         Don't use SA_INTERRUPT to decide whether to call sigaction, as
40144         POSIX.1 doesn't require SA_INTERRUPT and some systems
40145         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
40146         it's been part of POSIX.1 since day 1 (in 1988).
40147
40148 2000-01-17  Jim Meyering  <meyering@lucent.com>
40149
40150         * lib/interlock: Remove unused file.  Reported by François Pinard.
40151
40152 2000-01-16  Paul Eggert  <eggert@twinsun.com>
40153
40154         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
40155         alert, backslash, formfeed, and vertical tab unnecessarily in
40156         shell quoting style.
40157
40158 2000-01-16  Jim Meyering  <meyering@lucent.com>
40159
40160         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
40161         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
40162         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
40163         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
40164
40165 2000-01-16  Jim Meyering  <meyering@lucent.com>
40166
40167         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
40168         because the latter didn't work.
40169
40170 2000-01-15  Jim Meyering  <meyering@lucent.com>
40171
40172         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
40173         (AC_REPLACE_FUNCS): Add memcpy and memset.
40174         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
40175         Add strpbrk.
40176         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
40177
40178 2000-01-12  Jim Meyering  <meyering@lucent.com>
40179
40180         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
40181         (jm_PREREQ): Use it.
40182         (jm_PREREQ_READUTMP): New macro.
40183         (jm_PREREQ): Use it.
40184
40185 2000-01-11  Paul Eggert  <eggert@twinsun.com>
40186
40187         Quote multibyte characters correctly.
40188         * m4/c-bs-a.m4: New file.
40189         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
40190         (jm_PREREQ): Use it.
40191
40192 2000-01-11  Paul Eggert  <eggert@twinsun.com>
40193
40194         * m4/uintmax_t.m4: Port to autoconf 2.13.
40195
40196 2000-01-08  Jim Meyering  <meyering@ascend.com>
40197
40198         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
40199         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
40200
40201 2000-01-04  Jim Meyering  <meyering@ascend.com>
40202
40203         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
40204         jm_STRUCT_DIRENT_D_TYPE.
40205         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
40206         jm_STRUCT_DIRENT_D_INO.
40207         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
40208         jm_STRUCT_UTIMBUF.
40209         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
40210         renamings.
40211         * m4/utime.m4: Likewise.
40212
40213         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
40214         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
40215
40216 2000-01-03  Paul Eggert  <eggert@twinsun.com>
40217
40218         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
40219         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
40220
40221 2000-01-02  Jim Meyering  <meyering@ascend.com>
40222
40223         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
40224         remember if this is necessary.
40225
40226 1999-12-26  Jim Meyering  <meyering@ascend.com>
40227
40228         * m4/jm-macros.m4: Use it here.
40229         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
40230
40231 1999-12-23  Jim Meyering  <meyering@ascend.com>
40232
40233         * m4/jm-macros.m4: Check for clock_gettime (moved from
40234         fileutils/configure.in)
40235         Check for gettimeofday.
40236
40237 1999-12-20  Jim Meyering  <meyering@ascend.com>
40238
40239         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
40240         autoconf-2.14a-1999-12-20.
40241
40242 1999-12-19  Jim Meyering  <meyering@ascend.com>
40243
40244         * m4/lstat-slash.m4: New file.
40245         * m4/jm-macros.m4: Use the new macro:
40246         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
40247
40248 1999-12-07  Jim Meyering  <meyering@ascend.com>
40249
40250         * m4/perl.m4: Require that File::Compare be available, too.
40251         Too many systems seem to lack it.
40252
40253         * m4/strftime.m4: Add checks for most of the cpp macros tested in
40254         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
40255
40256 1999-11-18  Paul Eggert  <eggert@twinsun.com>
40257
40258         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
40259         problem with the QNX 4.25 shell, which doesn't propagate exit
40260         status of failed commands inside shell assignments.
40261
40262 1999-11-17  Jim Meyering  <meyering@ascend.com>
40263
40264         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
40265
40266 1999-11-07  Jim Meyering  <meyering@ascend.com>
40267
40268         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
40269
40270 1999-11-06  Jim Meyering  <meyering@ascend.com>
40271
40272         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
40273         * m4/jm-macros.m4 (jm_MACROS): Use it here.
40274
40275 1999-11-05  Jim Meyering  <meyering@ascend.com>
40276
40277         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
40278         configure.in of textutils, fileutils, and sh-utils into this one
40279         (shared between those packages) file.
40280         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
40281         AC_STRUCT_ST_BLKSIZE.
40282
40283 1999-11-03  Jim Meyering  <meyering@ascend.com>
40284
40285         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
40286         of AC_CHECK_TYPE checks includes unistd.h.
40287         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
40288         Suggestion from Akim Demaille.
40289
40290 1999-10-30  Jim Meyering  <meyering@ascend.com>
40291
40292         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
40293         m4-quoted string.
40294         * m4/ls-mntd-fs.m4: Likewise.
40295         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
40296         * m4/jm-winsz1.m4: Likewise.
40297
40298         * m4/const.m4: Remove file, since the fix made it into the experimental
40299         version of autoconf.
40300         * m4/mktime.m4: Likewise.
40301
40302         * m4/check-type.m4: Remove file, now that the latest version of
40303         AC_CHECK_TYPE takes a third arg to specify additional #includes.
40304
40305         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
40306         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
40307         AC_CHECK_TYPE.
40308
40309 1999-10-04  Jim Meyering  <meyering@ascend.com>
40310
40311         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
40312
40313 1999-09-22  Paul Eggert  <eggert@twinsun.com>
40314
40315         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
40316         2.95.1 bug with HP-UX 10.20.
40317
40318 1999-09-17  Jim Meyering  <meyering@ascend.com>
40319
40320         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
40321         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
40322         due to missing strdup (against sh-utils-2.0).
40323
40324 1999-08-29  Jim Meyering  <meyering@ascend.com>
40325
40326         * m4/jm-macros.m4: Require jm_BISON.
40327         * m4/bison.m4: New file.
40328
40329 1999-08-17  Paul Eggert  <eggert@twinsun.com>
40330
40331         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
40332         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
40333
40334 1999-08-05  Jim Meyering  <meyering@ascend.com>
40335
40336         * m4/getline.m4: Rename test file from conftestdata to conftest.data
40337         to avoid conflicts with `conftest' on 8+3 filesystems.
40338         Suggestion from Eli Zaretskii.
40339
40340 1999-08-04  Jim Meyering  <meyering@ascend.com>
40341
40342         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
40343         fileutils and sh-utils (textutils's getline test was inadequate).
40344         (AM_FUNC_GETLINE): Run this test.
40345         (AC_CHECK_FUNCS): Check for getdelim.
40346         Reported by Bob Proulx.
40347
40348 1999-08-02  Jim Meyering  <meyering@ascend.com>
40349
40350         * m4/jm-macros.m4: Add a comment.
40351
40352 1999-08-01  Paul Eggert  <eggert@twinsun.com>
40353
40354         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
40355         <inttypes.h> defines strtoumax as a macro (and not as a
40356         function).
40357
40358 1999-08-01  Paul Eggert  <eggert@twinsun.com>
40359
40360         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
40361         that we can shift, multiply and divide unsigned long long
40362         values; Ultrix cc can't do it.
40363
40364 1999-08-01  Paul Eggert  <eggert@twinsun.com>
40365
40366         * m4/mktime.m4: New file, which is a preview of what should appear
40367         in the next public autoconf release.
40368
40369 1999-08-01  Paul Eggert  <eggert@twinsun.com>
40370
40371         * m4/lfs.m4: Remove this file.
40372         * m4/largefile.m4: New file.  It contains the old contents of
40373         lfs.m4, except that all names with prefix AC_LFS have been
40374         changed to use the prefix AC_SYS_LARGEFILE instead, to be
40375         compatible with future autoconf versions.  Also, some minor m4
40376         quoting problems have been fixed.
40377
40378 1999-08-01  Paul Eggert  <eggert@twinsun.com>
40379
40380         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
40381         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
40382         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
40383         and simplify the shell code.
40384
40385 1999-08-01  Jim Meyering  <meyering@ascend.com>
40386
40387         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
40388         m4.
40389
40390 1999-07-20  Jim Meyering  <meyering@ascend.com>
40391
40392         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
40393
40394 1999-07-15  Jim Meyering  <meyering@ascend.com>
40395
40396         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
40397
40398 1999-05-22  Jim Meyering  <meyering@ascend.com>
40399
40400         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
40401
40402 1999-05-20  Jim Meyering  <meyering@ascend.com>
40403
40404         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
40405         Add a colon after each `then' in case $4 is empty.
40406
40407 1999-05-16  Jim Meyering  <meyering@ascend.com>
40408
40409         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
40410
40411 1999-05-10  Jim Meyering  <meyering@ascend.com>
40412
40413         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
40414
40415         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
40416         AC_FUNC_MKTIME.
40417
40418 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
40419
40420         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
40421
40422 1999-05-04  Paul Eggert  <eggert@twinsun.com>
40423
40424         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
40425         not CPPFLAGS, so that linking works correctly in IRIX.
40426
40427 1999-04-30  Paul Eggert  <eggert@twinsun.com>
40428
40429         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
40430
40431 1999-04-20  Paul Eggert  <eggert@twinsun.com>
40432
40433         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
40434         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
40435         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
40436         jm_AC_TYPE_UNSIGNED_LONG_LONG.
40437         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
40438
40439         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
40440
40441 1999-04-20  Jim Meyering  <meyering@ascend.com>
40442
40443         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
40444         AC_REPLACE xstroull if necessary.  From Paul Eggert.
40445         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
40446
40447 1999-04-18  Jim Meyering  <meyering@ascend.com>
40448
40449         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
40450         * m4/jm-macros.m4: Use it.
40451
40452 1999-04-06  Jim Meyering  <meyering@ascend.com>
40453
40454         * m4/strftime.m4: Remove test for %f.
40455
40456 1999-03-29  Jim Meyering  <meyering@ascend.com>
40457
40458         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
40459         superset of the AC_TYPE_* checks in the textutils, fileutils,
40460         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
40461         AC_TYPE_PID_T.
40462
40463 1999-03-28  Jim Meyering  <meyering@ascend.com>
40464
40465         * m4/jm-macros.m4: Define GNU_PACKAGE here.
40466         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
40467         replaced e.g., in the *.sh files of the sh-utils.
40468
40469 1999-03-20  Jim Meyering  <meyering@ascend.com>
40470
40471         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
40472         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
40473         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
40474
40475 1999-03-19  Jim Meyering  <meyering@ascend.com>
40476
40477         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
40478
40479 1999-03-12  Jim Meyering  <meyering@ascend.com>
40480
40481         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
40482
40483 1999-03-07  Jim Meyering  <meyering@ascend.com>
40484
40485         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
40486         declared.
40487
40488 1999-02-17  Jim Meyering  <meyering@ascend.com>
40489
40490         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
40491         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
40492
40493 1999-02-07  Jim Meyering  <meyering@ascend.com>
40494
40495         * m4/group-member.m4: New file -- extracted from sh-utils'
40496         configure.in.
40497
40498         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
40499         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
40500
40501 1999-02-06  Jim Meyering  <meyering@ascend.com>
40502
40503         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
40504         * m4/fnmatch.m4: Likewise.
40505         * m4/getgroups.m4: Likewise.
40506         * m4/lstat.m4: Likewise.
40507         * m4/malloc.m4: Likewise.
40508         * m4/putenv.m4: Likewise.
40509         * m4/realloc.m4: Likewise.
40510         * m4/regex.m4: Likewise.
40511         * m4/stat.m4: Likewise.
40512         * m4/strftime.m4: Likewise.
40513         Suggestion from Alain Magloire.
40514
40515         * m4/chown.m4: Use `.$ac_objext', not `.o'.
40516         * m4/fnmatch.m4: Likewise.
40517         * m4/getgroups.m4: Likewise.
40518         * m4/getline.m4: Likewise.
40519         * m4/lstat.m4: Likewise.
40520         * m4/malloc.m4: Likewise.
40521         * m4/memcmp.m4: Likewise.
40522         * m4/putenv.m4: Likewise.
40523         * m4/realloc.m4: Likewise.
40524         * m4/regex.m4: Likewise.
40525         * m4/stat.m4: Likewise.
40526         * m4/strftime.m4: Likewise.
40527         Suggestion from Alain Magloire.
40528
40529         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
40530         an argument.
40531
40532         * m4/regex.m4: Add a run-time Test for proper operation of
40533         re_compile_pattern.
40534
40535 1999-01-31  Jim Meyering  <meyering@ascend.com>
40536
40537         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
40538
40539 1999-01-30  Jim Meyering  <meyering@ascend.com>
40540
40541         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
40542
40543         * m4/jm-mktime.m4: Make this a wrapper around the official
40544         AM_FUNC_MKTIME rather than my private copy, now that the official one
40545         is up to date.
40546         * m4/mktime.m4: Remove file.
40547
40548         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
40549         * m4/uptime.m4: Likewise.
40550         * m4/uintmax_t.m4: Likewise.
40551
40552 1999-01-28  Jim Meyering  <meyering@ascend.com>
40553
40554         * m4/jm-macros.m4: Use jm_AFS.
40555         * m4/afs.m4: New file (from fileutils' configure.in).
40556
40557         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
40558         * m4/chown.m4: Likewise.
40559         * m4/d-ino.m4: Likewise.
40560         * m4/d-type.m4: Likewise.
40561         * m4/fnmatch.m4: Likewise.
40562         * m4/getgroups.m4: Likewise.
40563         * m4/gettext.m4: Likewise.
40564         * m4/jm-mktime.m4: Likewise.
40565         * m4/jm-winsz2.m4: Likewise.
40566         * m4/lcmessage.m4: Likewise.
40567         * m4/ls-mntd-fs.m4: Likewise.
40568         * m4/malloc.m4: Likewise.
40569         * m4/memcmp.m4: Likewise.
40570         * m4/putenv.m4: Likewise.
40571         * m4/realloc.m4: Likewise.
40572         * m4/st_mtim.m4: Likewise.
40573         * m4/strftime.m4: Likewise.
40574
40575 1999-01-16  Jim Meyering  <meyering@ascend.com>
40576
40577         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
40578         (ARGMATCH_DIE_DECL): Define.
40579
40580 1999-01-12  Jim Meyering  <meyering@ascend.com>
40581
40582         * m4/Makefile.am.in: Rewrite to avoid using fmt.
40583         Reported by Lars Hecking.
40584
40585 1999-01-10  Jim Meyering  <meyering@ascend.com>
40586
40587         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
40588         gross kludge.
40589         * m4/inttypes_h.m4: Likewise.
40590         * m4/lstat.m4: Likewise.
40591         * m4/malloc.m4: Likewise.
40592         * m4/readdir.m4: Likewise.
40593         * m4/realloc.m4: Likewise.
40594         * m4/st_dm_mode.m4: Likewise.
40595         * m4/stat.m4: Likewise.
40596         * m4/utimbuf.m4: Likewise.
40597         * m4/utimes.m4: Likewise.
40598
40599         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
40600         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
40601         comments in config.h.in are meaningful.
40602
40603         * m4/jm-macros.m4: Require autoconf-2.13 here.
40604
40605         * m4/regex.m4: By default, don't use the included regex.c on systems
40606         with glibc 2.  Suggestion from Uli Drepper.
40607
40608 1999-01-02  Jim Meyering  <meyering@ascend.com>
40609
40610         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
40611
40612 1998-12-18  Jim Meyering  <meyering@ascend.com>
40613
40614         * m4/Makefile.am.in (Makefile.am): Simplify rule.
40615         Based on a suggestion from Lars Hecking.
40616
40617 1998-11-16  Paul Eggert  <eggert@twinsun.com>
40618
40619         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
40620
40621 1998-11-16  Jim Meyering  <meyering@ascend.com>
40622
40623         * m4/lfs.m4: Double-quote the `uname...` expression.
40624
40625 1998-11-14  Jim Meyering  <meyering@ascend.com>
40626
40627         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
40628         * m4/stat.m4: Likewise.
40629
40630 1998-11-03  Jim Meyering  <meyering@ascend.com>
40631
40632         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
40633         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
40634
40635 1998-10-18  Jim Meyering  <meyering@ascend.com>
40636
40637         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
40638
40639 1998-10-17  Jim Meyering  <meyering@ascend.com>
40640
40641         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
40642         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
40643         calls for those previously hard-coded headers.  Instead, take a new
40644         parameter.
40645         (jm_CHECK_DECLARATIONS): Reflect interface change.
40646         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
40647         (jm_CHECK_DECL_LOCALTIME_R): New macro.
40648
40649         * m4/mktime.m4: Test for spring-forward gap before long-running test.
40650
40651 1998-10-14  Jim Meyering  <meyering@ascend.com>
40652
40653         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
40654         instead of "TZ=America/Vancouver".  From Paul Eggert.
40655
40656 1998-10-11  Jim Meyering  <meyering@ascend.com>
40657
40658         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
40659         This adds a test for a recently added compatibility fix for mktime.c.
40660         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
40661
40662 1998-09-27  Jim Meyering  <meyering@ascend.com>
40663
40664         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
40665
40666         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
40667         ../configure.in, including a change from Gordon Matzigkeit to allow
40668         cross-compiling for the Hurd.
40669
40670         * m4/glibc.m4: New file/macro to test for the GNU C Library
40671         versions 1 and 2.  From Gordon Matzigkeit.
40672         Indent.
40673
40674 1998-09-21  Jim Meyering  <meyering@ascend.com>
40675
40676         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
40677
40678 1998-08-18  Paul Eggert  <eggert@twinsun.com>
40679
40680         Port nanosecond-resolution times to UnixWare 2.1.2 and
40681         pedantic Solaris 2.6.
40682
40683         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
40684         AC_STRUCT_ST_MTIM.
40685         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
40686         Generate name of ns member, instead of just 1 or undef.
40687         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
40688
40689 1998-08-15  Jim Meyering  <meyering@ascend.com>
40690
40691         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
40692         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
40693         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
40694         instead of jm_TYPE_SSIZE_T.
40695
40696 1998-08-12  Jim Meyering  <meyering@ascend.com>
40697
40698         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
40699
40700 1998-08-02  Jim Meyering  <meyering@ascend.com>
40701
40702         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
40703         in acconfig.h manually.
40704
40705 1998-07-31  Paul Eggert  <eggert@twinsun.com>
40706
40707         * m4/st_mtim.m4: New file.
40708
40709 1998-07-28  Jim Meyering  <meyering@ascend.com>
40710
40711         * m4/utimes.m4: Undef stat.
40712
40713 1998-07-25  Jim Meyering  <meyering@ascend.com>
40714
40715         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
40716         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
40717
40718 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
40719
40720         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
40721         uid and gid actually remain unchanged.
40722
40723 1998-07-07  Jim Meyering  <meyering@ascend.com>
40724
40725         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
40726
40727 1998-07-04  Jim Meyering  <meyering@ascend.com>
40728
40729         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
40730         to prove that this macro can be used in packages without regex.c.
40731
40732 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
40733
40734         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
40735         is to be used.
40736
40737 1998-07-03  Jim Meyering  <meyering@ascend.com>
40738
40739         * m4/gettext.m4: Add -lintl if it's found to be necessary.
40740
40741         * m4/gettext.m4: New file -- from gettext-0.10.35.
40742         * m4/lcmessage.m4: Likewise.
40743         * m4/progtest.m4: Likewise.
40744
40745         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
40746         * m4/jm-macros.m4: Require the new macro.
40747
40748 1998-06-29  Jim Meyering  <meyering@ascend.com>
40749
40750         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
40751         for the definition of NGROUPS (used in a system header included
40752         by sys/mount.h).
40753
40754 1998-06-28  Jim Meyering  <meyering@ascend.com>
40755
40756         * m4/ls-mntd-fs.m4: New file.
40757         * m4/fstypename.m4: New file.
40758
40759         * m4/jm-macros.m4: Require the new macro.
40760         * m4/jm-glibc-io.m4: New file.
40761
40762 1998-05-19  Jim Meyering  <meyering@ascend.com>
40763
40764         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
40765         * m4/lchown.m4: New file.
40766
40767         * m4/Makefile.am.in: New file.
40768         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
40769
40770 1998-05-14  Jim Meyering  <meyering@ascend.com>
40771
40772         * m4/Makefile.am (EXTRA_DIST): Add them.
40773         * m4/jm-macros.m4: New file.
40774         * m4/utimbuf.m4: New file.
40775
40776 1998-05-12  Jim Meyering  <meyering@ascend.com>
40777
40778         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
40779
40780 1998-05-11  Jim Meyering  <meyering@ascend.com>
40781
40782         * m4/isc-posix.m4: New file.
40783
40784 1998-05-10  Jim Meyering  <meyering@ascend.com>
40785
40786         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
40787
40788 1998-05-09  Jim Meyering  <meyering@ascend.com>
40789
40790         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
40791         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
40792         with automake.
40793
40794         * m4/ssize_t.m4: New file.
40795         * m4/mktime.m4: Remove file -- the new automake has this now.
40796
40797 1998-04-26  Jim Meyering  <meyering@ascend.com>
40798
40799         * m4/assert.m4: New file.
40800         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
40801
40802 1998-04-05  Jim Meyering  <meyering@ascend.com>
40803
40804         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
40805         (jm_PREREQ): Use it here.
40806
40807 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
40808
40809         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
40810         in acconfig.h.
40811
40812 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
40813
40814         * m4/prereq.m4: New file.
40815         * m4/error.m4: New file.
40816         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
40817
40818 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
40819
40820         * m4/getline.m4: Don't set am_cv_func_working_getline before the
40821         cache-check for the same variable -- that defeated the purpose of
40822         the test; the test program was never run.  This was a problem only
40823         on systems with losing getline functions -- HP-UX 10.20 is one.
40824         Reported by Bjorn Helgaas.
40825
40826 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
40827
40828         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
40829
40830 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
40831
40832         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
40833
40834         * m4/const.m4: New file.  Use an initializer in this declaration
40835         typedef int charset[2]; const charset x;
40836         Reported by Bob Glickstein.
40837
40838 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
40839
40840         * m4/chown.m4: Fix reversed types on -1 args to chown.
40841         From Kaveh Ghazi.
40842
40843 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
40844
40845         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
40846         Add lseek and memchr.
40847
40848         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
40849         T.E.Dickey <dickey@clark.net> said that some older preprocessors
40850         have a 20-character limit on names.
40851
40852 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
40853
40854         * m4/inttypes_h.m4: New file.
40855         * m4/uintmax_t.m4: New file.
40856         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
40857
40858
40859         -----
40860
40861         Local Variables:
40862         coding: utf-8
40863         End:
40864
40865         Copyright (C) 1997-2008 Free Software Foundation, Inc.
40866
40867         Copying and distribution of this file, with or without
40868         modification, are permitted provided the copyright notice
40869         and this notice are preserved.